SMall work on attestation loc

This commit is contained in:
Rick Falkvinge
2013-02-10 11:18:34 +00:00
parent e71a25bed1
commit 4ff1eaa7c9
10 changed files with 117 additions and 68 deletions
+19 -3
View File
@@ -134,9 +134,6 @@ namespace Swarmops.Database
}
// TODO: SetCashAdvanceAttested
public void SetCashAdvanceOpen(int cashAdvanceId, bool open)
{
using (DbConnection connection = GetMySqlDbConnection())
@@ -154,6 +151,25 @@ namespace Swarmops.Database
}
public void SetCashAdvanceAttested(int cashAdvanceId, bool attested, int attestedByPersonId)
{
using (DbConnection connection = GetMySqlDbConnection())
{
connection.Open();
DbCommand command = GetDbCommand("SetCashAdvanceAttested", connection);
command.CommandType = CommandType.StoredProcedure;
AddParameterWithName(command, "cashAdvanceId", cashAdvanceId);
AddParameterWithName(command, "attested", attested);
AddParameterWithName(command, "attestedByPersonId", attestedByPersonId);
AddParameterWithName(command, "attestedDateTime", DateTime.Now);
command.ExecuteNonQuery();
}
}
public void SetCashAdvancePaidOut(int cashAdvanceId, bool paidOut)
{
using (DbConnection connection = GetMySqlDbConnection())