예제 #1
0
 public void Update(IncomeCategory incCat)
 {
     try
     {
         Helpers.NonQueryHelper.Update(incCat, "spIncomeCategory", 3);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
예제 #2
0
 public void Delete(IncomeCategory incCat)
 {
     try
     {
         Helpers.NonQueryHelper.DeleteOnId("spIncomeCategory", 4, incCat.Id);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
예제 #3
0
 public void SetStatusId(IncomeCategory incCat, string statusName)
 {
     incCat.StatusID = Helpers.ReaderHelper.SelectId("select id from status where name = '" + statusName + "'");
     Update(incCat);
 }