Пример #1
0
 /// <summary>
 /// 效验条码
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 ///
 public ActionResult ValidateBarcode(MatchpLateV2Model model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new MatchpLateV2Service(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("OldTrayNO", model.OldTrayNO);
         service.SetParameter("TrayNO", model.TrayNO);
         service.SetParameter("Barcode", model.Barcode);
         service.ExecuteBusinessCheck("RF_PastesPartofV2", "Barcode");
         DataTable dt = service.GetMatchPlateGoods();
         if (dt != null && dt.Rows.Count > 0)
         {
             return(Content(JsonHelper.ToJson(dt)));
         }
         else
         {
             return(Content("数据异常,请检查!"));
         }
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }
Пример #2
0
 /// <summary>
 /// 效验数量并提交
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 ///
 public ActionResult ValidateQty(MatchpLateV2Model model)
 {
     GetLoginInfo();
     if (Login_Info == null)
     {
         return(Content("<script>location.href='/Home'</script>"));
     }
     service = new MatchpLateV2Service(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token);
     try
     {
         service.SetParameter("OldTrayNO", model.OldTrayNO);
         service.SetParameter("TrayNO", model.TrayNO);
         service.SetParameter("Barcode", model.Barcode);
         service.SetParameter("StockBatchNO", model.StockBatchNO);
         service.SetParameter("IsCheckTrayNO", model.IsCheckTrayNO);
         //service.ExecuteBusinessCheck("RF_PastesPartofV2", "*");
         service.ExecuteBusinessProcess("RF_PastesPartofV2");
         return(Content(""));
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         return(Content(ex.Message));
     }
 }