Exemple #1
0
 public static void saveBill(Salebills bill)
 {
     try
     {
         bill.Save();
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         MessageHelper.ShowMessage("E999", "账单信息保存失败。");
     }
 }
Exemple #2
0
 public static void saveAddBill(Salebills bill)
 {
     try
     {
         //根据结算起始日期判断电路代码是否有重复
         DateTime time = DateTime.Parse(bill.Settlementstart).Date;
         bill.Save();
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         MessageHelper.ShowMessage("E999", ex.Message);
     }
 }
Exemple #3
0
 public static Salebills getBillByCondition(int cusid, int cableid, int month, int year)
 {
     try
     {
         Salebills bills = SalebillsDao.FindFirst(new EqExpression("Cableid", cableid), new EqExpression("Customerid", cusid), new EqExpression("Year", year),
                                                  new EqExpression("Month", month), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中));
         return(bills);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         MessageHelper.ShowMessage("E999", ex.Message);
         return(null);
     }
 }