예제 #1
0
 /// <summary>
 /// 验证出库箱并提交
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult ValidateTrayNO(ToStoreModels model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new ToStoreService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("PaperNO", model.PaperNO);
         service.SetParameter("Item", model.Item);
         service.SetParameter("OldTrayNO", model.OldTrayNO);
         service.SetParameter("TrayNO", model.TrayNO);
         service.SetParameter("CPCrossNO", model.Postion2);
         service.ExecuteBusinessCheck("RF_TwoCross", "*");
         service.ExecuteBusinessProcess("RF_TwoCross");
         return(Content(""));
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }
예제 #2
0
        /// <summary>
        /// 验证出库箱并提交
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult ValidateTrayNO2(ToStoreModels model)
        {
            GetLoginInfo();
            if (Login_Info == null)
            {
                return(Content("<script>location.href='/Home'</script>"));
            }
            service = new ToStoreService(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
            try
            {
                service.SetParameter("PaperNO", model.PaperNO);
                service.SetParameter("Item", model.Item);
                service.SetParameter("OldTrayNO", model.OldTrayNO);
                service.SetParameter("TrayNO", model.TrayNO);
                service.SetParameter("CPCrossNO", model.Postion2);

                service.SetParameter("Barcode", model.Barcode);

                service.SetParameter("SeedQty", model.SeedQty);
                service.ExecuteBusinessCheck("RF_TwoCross2", "*");

                service.ExecuteBusinessProcess("RF_TwoCross2");

                DataTable dt = service.GetCrossGoods2();
                if (dt != null && dt.Rows.Count > 0)
                {
                    return(Content(JsonHelper.ToJson(dt)));
                }

                return(Content(""));
            }
            catch (Exception ex)
            {
                Loger.Error(ex);
                return(Content(ex.Message));
            }
        }