Ejemplo n.º 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));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 提交出库箱
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 ///
 public ActionResult SubmitTrayNO(SetViewModel model)
 {
     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_SetUpdateTray", "*");
         service.ExecuteBusinessProcess("RF_SetUpdateTray");
         return(Content(""));
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }