示例#1
0
 /// <summary>
 /// 获取待打包订单列表
 /// </summary>
 /// <param name="pickNo">拣货单号</param>
 /// <param name="MerchantId"></param>
 /// <param name="jqgridparam">分页参数</param>
 /// <param name="WarehouseId"></param>
 /// <returns></returns>
 public ActionResult GetOrderList(string pickNo, string WarehouseId, string MerchantId, JqGridParam jqgridparam)
 {
     try
     {
         Stopwatch watch = CommonHelper.TimerStart();
         List <SaleOrderViewModel> listData = _orderBll.GetWaitPackageOrderList(WarehouseId, MerchantId, pickNo, jqgridparam);
         var jsonData = new
         {
             total    = jqgridparam.total,
             page     = jqgridparam.page,
             records  = jqgridparam.records,
             costtime = CommonHelper.TimerEnd(watch),
             rows     = listData,
         };
         return(Content(jsonData.ToJson()));
     }
     catch (Exception ex)
     {
         BaseSysLogBll.Instance.WriteLog("", OperationType.Query, "-1", "异常错误:" + ex.Message);
         return(null);
     }
 }