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