Esempio n. 1
0
 public JsonResult HasDispatchDeliverPlans(string customerId, string warehouse)
 {
     //读取数据
     string strErrText;
     PlanSystem plan = new PlanSystem();
     List<DeliverPlan> listPlan = plan.LoadDispatchDeliverPlansByCustomerIdAndWarehouse(long.Parse(customerId), warehouse, LoginAccountId, LoginStaffName, out strErrText);
     if (listPlan == null)
     {
         throw new Exception(strErrText);
     }
     if (listPlan.Count > 0)
         return Json(true, JsonRequestBehavior.AllowGet);
     else
         return Json(false, JsonRequestBehavior.AllowGet);
 }