Beispiel #1
0
 public HttpResponseMessage GetCycleNo()
 {
     return(this.ExecuteTryCatch(() =>
     {
         var po = new OrderCycleBL(GetCurUSerLocalization());
         return po.GetOrderCycleConfig();
     }));
 }
Beispiel #2
0
 public HttpResponseMessage UpdateCycles([FromBody] OrderCycleTM pcycle)
 {
     return(this.ExecuteTryCatch(() =>
     {
         var po = new OrderCycleBL(GetCurUSerLocalization());
         pcycle.StartDate = pcycle.StartDate.ToLocalTime();
         pcycle.EndDate = pcycle.EndDate.ToLocalTime();
         if (!po.UpdateOrderCycle <OrderCycleTM>(pcycle))
         {
             throw new Exception("保存错误");
         }
         return true;
     }));
 }