|  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region å§å¤é¢æ    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region å§å¤é¢æ    æ ¡éªæ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å§å¤é¢ææ ¡éªä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveEntrustOutBill_BillCheck_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveEntrustOutBill_BillCheck_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |  | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_EntrustOutBillMain> lsmain = new List<Model.ClsKf_EntrustOutBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getEntrustOutBillMainByJson(msg1); | 
 |  |  |  | 
 |  |  |                 WebAPI.WebS.ClsKf_EntrustOutBillMain websLsmain = new WebS.ClsKf_EntrustOutBillMain(); | 
 |  |  |  | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = "1211"; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveEntrustOutBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //å¤±è´¥ï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "å§å¤é¢ææ ¡éªå¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region ç产补栠  ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region ç产补栠  æ ¡éªæ¨¡å¼ | 
 |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region å§å¤è¡¥æ    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region å§å¤è¡¥æ    æ ¡éªæ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å§å¤è¡¥ææ ¡éªä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveEntrustReplenishOutBill_BillCheck_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveEntrustReplenishOutBill_BillCheck_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |  | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_EntrustReplenishOutBillMain> lsmain = new List<Model.ClsKf_EntrustReplenishOutBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getEntrustReplenishOutBillMainByJson(msg1); | 
 |  |  |  | 
 |  |  |                 WebAPI.WebS.ClsKf_EntrustReplenishOutBillMain websLsmain = new WebS.ClsKf_EntrustReplenishOutBillMain(); | 
 |  |  |  | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = "1255"; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveEntrustReplenishOutBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //æåï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //å¤±è´¥ï¼ | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "å§å¤è¡¥ææ ¡éªå¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  | 
 |  |  |         [HttpGet] | 
 |  |  |         public Object get_BarCode_Json(string sBarCode, Int64 HInterID, string HBillType, string HBillNo, string HMaker, Int64 HWhID, Int64 HSPID, Double HQty, bool HRedBlueFlag, bool SourceFlag, string HSourceBillNo, string HSourceBillType, Int64 HStockOrgID, string HScanStyle, string HCustom1, string HCustom2) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             //è·åç³»ç»åæ° | 
 |  |  |             string sErrMsg = ""; | 
 |  |  |             string sJXCode = ""; | 
 |  |  |             if (oSystemParameter.ShowBill(ref sErrMsg) == true) | 
 |  |  |             { | 
 |  |  |                 var sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOrgID, HBillNo,HMaker); | 
 |  |  |                 SourceFlag = true; | 
 |  |  |                 WebSoBar = oWebs.get_BarCode(sJXCode, HInterID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HRedBlueFlag, SourceFlag, HSourceBillNo, HSourceBillType, HStockOrgID, HScanStyle, HCustom1, HCustom2, ref DBUtility.ClsPub.sErrInfo); | 
 |  |  |                 if (WebSoBar == null) | 
 |  |  |                 if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ°  å®¢æ·å®å¶ååç§°     ç©ºç½ä¸ºéç¨ | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                     sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOrgID, HBillNo, HMaker); | 
 |  |  |                     SourceFlag = true; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     sJXCode = sBarCode; | 
 |  |  |                 } | 
 |  |  |                 try | 
 |  |  |                 { | 
 |  |  |                     WebSoBar = oWebs.get_BarCode(sJXCode, HInterID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HRedBlueFlag, SourceFlag, HSourceBillNo, HSourceBillType, HStockOrgID, HScanStyle, HCustom1, HCustom2, ref DBUtility.ClsPub.sErrInfo); | 
 |  |  |                     if (WebSoBar == null) | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 0; | 
 |  |  |                         objJsonResult.Message = DBUtility.ClsPub.sErrInfo; | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                     else | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 1; | 
 |  |  |                         objJsonResult.Message = "æå"; | 
 |  |  |                         objJsonResult.data = WebSoBar; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 catch (Exception e) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æå"; | 
 |  |  |                     objJsonResult.data = WebSoBar; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ«ææ¡ç å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             else | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "æ«ææ¡ç å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |          } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  | 
 |  |  |         [HttpGet] | 
 |  |  |         public Object get_CheckTypeByBarCode_BillCheck_Json(string sBarCode, Int64 HBillID, string HBillType, string HBillNo, string HMaker, Int64 HWhID, Int64 HSPID, Double HQty, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             //è·åç³»ç»åæ° | 
 |  |  |             string sErrMsg = ""; | 
 |  |  |             string sJXCode = ""; | 
 |  |  |             if (oSystemParameter.ShowBill(ref sErrMsg) == true) | 
 |  |  |             { | 
 |  |  |                 var sJXCode = POStockInBillController.JX_Json(sBarCode, HBillID, HBillType, HStockOrgID, HBillNo, HMaker); | 
 |  |  |                 WebSoBar = oWebs.get_CheckTypeByBarCode_BillCheck(sJXCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); | 
 |  |  |                 if (WebSoBar == null) | 
 |  |  |                 if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ°  å®¢æ·å®å¶ååç§°     ç©ºç½ä¸ºéç¨ | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = DBUtility.ClsPub.sErrInfo; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                     sJXCode = POStockInBillController.JX_Json(sBarCode, HBillID, HBillType, HStockOrgID, HBillNo, HMaker); | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æå"; | 
 |  |  |                     objJsonResult.data = WebSoBar; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                     sJXCode = sBarCode; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |                 try | 
 |  |  |                 { | 
 |  |  |                     WebSoBar = oWebs.get_CheckTypeByBarCode_BillCheck(sJXCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); | 
 |  |  |                     if (WebSoBar == null) | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 0; | 
 |  |  |                         objJsonResult.Message = DBUtility.ClsPub.sErrInfo; | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                     else | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 1; | 
 |  |  |                         objJsonResult.Message = "æå"; | 
 |  |  |                         objJsonResult.data = WebSoBar; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 catch (Exception e) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ ¡éªæ¨¡å¼ï¼æ«ææ¡ç å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             else | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "æ ¡éªæ¨¡å¼ï¼æ«ææ¡ç å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } |