Exemple #1
0
 public ActionResult ValidateTrayNO(SetViewModel model)
 {
     //tStore 表返回 门店编码 和名称  集货道口编码
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new SetService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("TrayNO", model.TrayNO);
         service.ExecuteBusinessCheck("RF_Set", "TrayNO");
         DataTable dt = service.QueryStore();
         if (dt == null || dt.Rows.Count <= 0)
         {
             return(Content("出库箱异常,请检查!"));
         }
         else
         {
             return(Content(JsonHelper.ToJson(dt)));
         }
         //return Content("");
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }