コード例 #1
0
ファイル: 补货.cs プロジェクト: luisfly/wmsRF-
 /// <summary>
 /// 提交中间托盘检查是否有未上架数据
 /// </summary>
 /// <returns></returns>
 ///
 public ActionResult SubmitMiddleTrayNO(ReplenishViewModel model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new ReplenishService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("TrayNO", model.TrayNO);
         DataTable dt = service.SubmitMiddleTrayNO("RF_RepRetailGoods");
         if (dt != null && dt.Rows.Count > 0) //
         {
             return(Content(""));
         }
         else
         {
             return(Content("托盘无效,请重新输入"));
         }
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }
コード例 #2
0
ファイル: 补货.cs プロジェクト: luisfly/wmsRF-
 /// <summary>
 /// 提交处理补货上架过程
 /// </summary>
 /// <returns></returns>
 ///
 public ActionResult SubmitRepShelves(ReplenishViewModel model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new ReplenishService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("TrayNO", model.TrayNO);
         service.SetParameter("Barcode", model.Barcode);
         service.SetParameter("PickBarcode", model.PickBarcode);
         service.SetParameter("PaperNO", model.PaperNO);
         service.SetParameter("ToLocationNO", model.ToLocationNO);
         service.SetParameter("CheckLocationNO", model.CheckLocationNO);
         service.ExecuteBusinessCheck("RF_RepRetailShelves", "*");
         service.ExecuteBusinessProcess("RF_RepRetailShelves");
         return(Content(""));
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }
コード例 #3
0
ファイル: 补货.cs プロジェクト: luisfly/wmsRF-
 /// <summary>
 /// 提交业务过程处理拣货到中间托盘
 /// </summary>
 public ActionResult PickGoods(ReplenishViewModel model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new ReplenishService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("FromTrayNO", model.FromTrayNO);
         service.SetParameter("CheckFromTrayNO", model.CheckFromTrayNO);
         service.SetParameter("FromLocationNO", model.FromLocationNO);
         service.SetParameter("CheckLocationNO", model.CheckLocationNO);
         service.SetParameter("TrayNO", model.TrayNO);
         service.SetParameter("ToDoNO", model.ToDoNO);
         service.SetParameter("PaperNO", model.PaperNO);
         service.SetParameter("GrpTypeID", model.GrpTypeID);
         service.ExecuteBusinessCheck("RF_RepRetailPick", "*");
         service.ExecuteBusinessProcess("RF_RepRetailPick");
         return(Content(""));
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }
コード例 #4
0
 public ActionResult ReplenishAccount(ReplenishViewModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             data.CustomerRepos.ReplenishmentAccount(data.CustomerRepos.GetAll()
                                                     .Where(n => n.UserId.UserName.Equals(User.Identity.Name))
                                                     .FirstOrDefault(), model.Amount);
             data.Commit();
             return(RedirectToAction("/"));
         }
         catch (Exception)
         {
             return(HttpNotFound());
         }
     }
     else
     {
         return(View(model));
     }
 }