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