Beispiel #1
0
 public static void RollbackBillNo(string billNoReqType, ResBillNoOrIdEntity entity)
 {
     try
     {
         var billNoHelper = new Enterprise3.WebApi.SDK.Common.BillNoHelper(billNoReqType);
         billNoHelper.RollbackBillNo(entity);
     }
     catch (Exception ex)
     {
         throw new Exception("回滚单据用户编码失败:" + ex.Message);
     }
 }
Beispiel #2
0
 public static ResBillNoOrIdEntity GetBillNoIntensive(string billNoReqType)
 {
     try
     {
         var billNoHelper = new Enterprise3.WebApi.SDK.Common.BillNoHelper(billNoReqType);
         return(billNoHelper.GetBillNo(true));
     }
     catch (Exception ex)
     {
         throw new Exception("获取单据编码规则编码失败:" + ex.Message);
     }
 }
Beispiel #3
0
 public static Int64 GetBillId(string tablename, string key)
 {
     try
     {
         var billNoCommon = new Enterprise3.WebApi.SDK.Common.BillNoHelper(); //new BillNoCommon();
         return(billNoCommon.GetBillId(tablename, key));
     }
     catch (Exception ex)
     {
         throw new Exception("获取编码失败:" + ex.Message);
     }
 }
Beispiel #4
0
 public static List <long> GetBillId(string tablename, string key, int needCount = 1)
 {
     try
     {
         var billNoCommon       = new Enterprise3.WebApi.SDK.Common.BillNoHelper();
         ResBillNoOrIdEntity en = billNoCommon.GetBillId(tablename, key, needCount);
         return(en.BillIdList.ToList());
     }
     catch (Exception ex)
     {
         throw new Exception("获取编码失败:" + ex.Message);
     }
 }