|  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region çç»èµæ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ«ç è¿åçç»ä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetGroup_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetGroup_Json(string HBarCode, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 Int64 HGroupID = 0; | 
 |  |  |                 HGroupID = DBUtility.ClsPub.isLong(HBarCode); | 
 |  |  |                 ds = oCn.RunProcReturn("select HItemID,HNumber,HName from Gy_Group with(nolock) where HStopflag=0 and HItemID=" + HGroupID.ToString() + " and HUSEORGID = " + HStockOrgID.ToString(), "Gy_Group"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼è¯·ç¡®è®¤ææ«çç»æ¡ç æ¯å¦å±äºè¯¥ç»ç»ï¼ä¸ä¸ºéç¦ç¨ç¶æï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æåï¼"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è¿åçç»ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// è·åçç»åè¡¨ä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetGroupList_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetGroupList_Json(string Group, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oCn.RunProcReturn("select HItemID,HNumber,HName from Gy_Group with(nolock) where HStopflag=0 and HUSEORGID=" + HStockOrgID.ToString() + " and (HNumber like '%" + Group + "%' or HName like '%" + Group + "%')", "Gy_Group"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "没æè¿åä»»ä½çç»è®°å½ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æåï¼"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è¿åçç»ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region æ«ç æ¨¡åè°ç¨æ¹æ³ | 
 |  |  |  | 
 |  |  |         #region ç´æ¥è°æ¨    è·åè°æ¨åºè´§ç±»å | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// è·åè°æ¨åºè´§ç±»å | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetStockMoveStyle_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public Object GetStockMoveStyle_Json() | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oWebs.get_StockMoveStyle(); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ¥è¯¢ä¸å°åºè´§ç±»åä¿¡æ¯ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æå"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è·ååºè´§ç±»åä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region ç´æ¥è°æ¨    è·åè°æ¨æ¹å | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// è·åè°æ¨æ¹å | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetMoveDirect_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public Object GetMoveDirect_Json() | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oWebs.get_MoveDirect(); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ¥è¯¢ä¸å°è°æ¨æ¹åä¿¡æ¯ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æå"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è·åè°æ¨æ¹åä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ ¹æ®åæ®ç±»åè·ååæ®åç±»å | 
 |  |  |  | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å·²ä¸ä¼ æ¥è¯¢çé¢ï¼æ ¹æ®åæ®ç±»åãåæ®å·ãæºåå·ãç¨æ·ãèªå®ä¹å段æ¥è¯¢å·²ä¸ä¼ åæ®ä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetKf_ICStockBillList_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetKf_ICStockBillList_Json(string HBillType, string HBillNo, string HSourceBillNo, string HMaker, Int64 HStockOrgID, string sWhere) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Kf_ICStockBillQueryList_New '" + HBillType + "','" + HBillNo + "','" + HSourceBillNo + "','" + HMaker + "'," + HStockOrgID.ToString() + ",'" + sWhere+"'", "h_p_Kf_ICStockBillQueryList_New"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ¥è¯¢ä¸å°è¯¥åæ®è®°å½ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     List<object> columnNameList = new List<object>(); | 
 |  |  |                     //æ·»å åå | 
 |  |  |                     foreach (DataColumn col in ds.Tables[0].Columns) | 
 |  |  |                     { | 
 |  |  |                         Type dataType = col.DataType; | 
 |  |  |                         string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; | 
 |  |  |                         columnNameList.Add(JsonConvert.DeserializeObject(ColmString));  //è·åå°DataColumnå对象çåå | 
 |  |  |                     } | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "è·ååæ®ä¿¡æ¯æåï¼"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     objJsonResult.list = columnNameList; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è·åå·²ä¸ä¼ åæ®ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #region æäº¤çåå¤çæ¹æ³ | 
 |  |  |  | 
 |  |  |         #region çäº§æ±æ¥    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region çäº§æ±æ¥    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// çäº§æ±æ¥æ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveICMOReportBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveICMOReportBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsSc_ICMOReportBillMain> lsmain = new List<Model.ClsSc_ICMOReportBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getICMOReportBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsSc_ICMOReportBillMain websLsmain = new WebS.ClsSc_ICMOReportBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HGroupID = lsmain[0].HGroupID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HCheckType = lsmain[0].HCheckType; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "3710") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "ç产订å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HPRDORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveICMOReportBill_New(websLsmain, sSourceType, 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 ç产å
¥åº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// ç产å
¥åºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveProductInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveProductInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_ProductInBillMain> lsmain = new List<Model.ClsKf_ProductInBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getProductInBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_ProductInBillMain websLsmain = new WebS.ClsKf_ProductInBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "3710") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "ç产订å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "3711") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "çäº§æ±æ¥å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "3714") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "å·¥åºæ±æ¥å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveProductInBill_New(websLsmain, sSourceType, 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 éè´å
¥åº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// éè´å
¥åºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SavePOStockInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SavePOStockInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_POStockInBillMain> lsmain = new List<Model.ClsKf_POStockInBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getPOStockInBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_POStockInBillMain websLsmain = new WebS.ClsKf_POStockInBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1102") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "éè´è®¢å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1103") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æ¶æéç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SavePOStockInBill_New(websLsmain, sSourceType, 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 å§å¤å
¥åº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å§å¤å
¥åºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveEntrustInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveEntrustInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_EntrustInBillMain> lsmain = new List<Model.ClsKf_EntrustInBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getEntrustInBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_EntrustInBillMain websLsmain = new WebS.ClsKf_EntrustInBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HMangerID = lsmain[0].HMangerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1601") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "å§å¤è®¢å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1103") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æ¶æéç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveEntrustInBill_New(websLsmain, sSourceType, 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 | 
 |  |  |  | 
 |  |  |         #region é¢æåºåº    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region é¢æåºåº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// é¢æåºåºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveMateOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMateOutBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_MateOutBillMain> lsmain = new List<Model.ClsKf_MateOutBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getMateOutBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_MateOutBillMain websLsmain = new WebS.ClsKf_MateOutBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "3720") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "çäº§ç¨ææ¸
å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1214") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "ç产åæéç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "3721") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "çäº§å¤æå"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveMateOutBill_New(websLsmain, sSourceType, 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 éå®åºåº    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region å§å¤é¢æ    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region å§å¤é¢æ    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å§å¤é¢ææ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveEntrustOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveEntrustOutBill_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); | 
 |  |  |                 WebS.ClsKf_EntrustOutBillMain websLsmain = new WebS.ClsKf_EntrustOutBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HMangerID = lsmain[0].HMangerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1604") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "å§å¤ç¨ææ¸
å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveEntrustOutBill_New(websLsmain, sSourceType, 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 | 
 |  |  |  | 
 |  |  |         #region å§å¤é¢æ    æ ¡éªæ¨¡å¼ | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region å
¶ä»åºåº    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region å
¶ä»åºåº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å
¶ä»åºåºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveOtherOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveOtherOutBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_OtherOutBillMain> lsmain = new List<Model.ClsKf_OtherOutBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getOtherOutBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_OtherOutBillMain websLsmain = new WebS.ClsKf_OtherOutBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HStockStyle = lsmain[0].HStockStyle; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1242") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "åºåºç³è¯·å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveOtherOutBill_New(websLsmain, sSourceType, 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 ç产补栠  ä¸ä¼ çå | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region å§å¤è¡¥æ    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region å§å¤è¡¥æ    æ ¡éªæ¨¡å¼ | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region ç´æ¥è°æ¨    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region ç´æ¥è°æ¨    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// ç´æ¥è°æ¨æ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveMoveStockBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMoveStockBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_MoveStockBillMain> lsmain = new List<Model.ClsKf_MoveStockBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getMoveStockBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_MoveStockBillMain websLsmain = new WebS.ClsKf_MoveStockBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 websLsmain.HStockStyle = lsmain[0].HStockStyle; | 
 |  |  |                 websLsmain.HTransferDirect = lsmain[0].HTransferDirect; | 
 |  |  |                 websLsmain.HShipType = lsmain[0].HShipType; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1402") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "åè´§éç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1243") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "è°æ¨ç³è¯·å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "3720") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "çäº§ç¨ææ¸
å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1604") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "å§å¤ç¨ææ¸
å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1214") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "ç产åæéç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "3721") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "çäº§å¤æå"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1242") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "åºåºç³è¯·å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID; | 
 |  |  |                 websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HStockOutOrgID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveMoveStockBill(websLsmain, sSourceType, 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 | 
 |  |  |  | 
 |  |  |         #region æ¢æè°æ¨å | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region åæ¥å¼è°åº    ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         #region åæ¥å¼è°åº    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// åæ¥å¼è°åºæ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveMoveStockStepOutBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMoveStockStepOutBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_MoveStockStepOutBillMain> lsmain = new List<Model.ClsKf_MoveStockStepOutBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getMoveStockStepOutBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_MoveStockStepOutBillMain websLsmain = new WebS.ClsKf_MoveStockStepOutBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 websLsmain.HStockStyle = lsmain[0].HStockStyle; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1402") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "åè´§éç¥å"; | 
 |  |  |                 } | 
 |  |  |                 else if (lsmain[0].HMainSourceBillType == "1243") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "è°æ¨ç³è¯·å"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID; | 
 |  |  |                 websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HStockOutOrgID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveMoveStockStepOutBill_New(websLsmain, sSourceType, 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 åæ¥å¼è°å
¥    æ°å¢æ¨¡å¼ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// åæ¥å¼è°å
¥æ°å¢ä¸ä¼  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveMoveStockStepInBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveMoveStockStepInBill_Json([FromBody] JObject oMain) | 
 |  |  |         { | 
 |  |  |             var _value = oMain["oMain"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsKf_MoveStockStepInBillMain> lsmain = new List<Model.ClsKf_MoveStockStepInBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getMoveStockStepInBillMainByJson(msg1); | 
 |  |  |                 WebS.ClsKf_MoveStockStepInBillMain websLsmain = new WebS.ClsKf_MoveStockStepInBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 websLsmain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 websLsmain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 websLsmain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 websLsmain.HDate = lsmain[0].HDate; | 
 |  |  |                 websLsmain.HDeptID = lsmain[0].HDeptID; | 
 |  |  |                 websLsmain.HWHID = lsmain[0].HWHID; | 
 |  |  |                 websLsmain.HSCWHID = lsmain[0].HSCWHID; | 
 |  |  |                 websLsmain.HSupID = lsmain[0].HSupID; | 
 |  |  |                 websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
 |  |  |                 websLsmain.HSecManagerID = lsmain[0].HSecManagerID; | 
 |  |  |                 websLsmain.HEmpID = lsmain[0].HEmpID; | 
 |  |  |                 websLsmain.HManagerID = lsmain[0].HManagerID; | 
 |  |  |                 websLsmain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 websLsmain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo; | 
 |  |  |                 websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; | 
 |  |  |                 websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
 |  |  |                 websLsmain.HStockStyle = lsmain[0].HStockStyle; | 
 |  |  |                 if (lsmain[0].HMainSourceBillType == "1250") | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "忥å¼è°åºå"; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     websLsmain.HMainSourceBillType = "æå·¥å½å
¥"; | 
 |  |  |                 } | 
 |  |  |                 websLsmain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 websLsmain.HBillerID = lsmain[0].HBillerID; | 
 |  |  |                 websLsmain.HStockInOrgID = lsmain[0].HStockInOrgID; | 
 |  |  |                 websLsmain.HStockOutOrgID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HSTOCKORGID = lsmain[0].HStockOutOrgID; | 
 |  |  |                 websLsmain.HOWNERID = lsmain[0].HStockOutOrgID; | 
 |  |  |  | 
 |  |  |                 if (oWebs.set_SaveMoveStockStepInBill_New(websLsmain, sSourceType, 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 æºåæ¡ç å¤çæ¹æ³ | 
 |  |  |  | 
 |  |  |         #region çäº§æ±æ¥    æ«ææºåæ¡ç  | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// çäº§æ±æ¥    æ«ææºåæ¡ç  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/Get_SourceBarCode_ICMOReport_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object get_SourceBarCode_ICMOReport_Json(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 WebSoBar = oWebs.get_SourceBarCode_ICMOReport(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, 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; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region ç产å
¥åº    æ«ææºåæ¡ç  | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region å§å¤å
¥åº    æ«ææºåæ¡ç  | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// å§å¤å
¥åº    æ«ææºåæ¡ç  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/Get_SourceBarCode_EntrustIn_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object get_SourceBarCode_EntrustIn_Json(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 WebSoBar = oWebs.get_SourceBarCode_EntrustIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, 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; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region å
¶ä»å
¥åº    æ«ææºåæ¡ç  | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region çäº§é¢æ    æ«ææºåæ¡ç  | 
 |  |  |  | 
 |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region ç©ææ¡ç å¤çæ¹æ³    è°æ¨æ¨¡å | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// ç©ææ¡ç ææ¬æ¡ è°æ¨æ«ç è°ç¨  20240222 | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/get_BarCode_MoveStock_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public Object get_BarCode_MoveStock_Json(string sBarCode, Int64 HInterID, string HBillType, string HBillNo, string HMaker, Int64 HWhID, Int64 HSPID, Int64 HSCWHID, Int64 HSCSPID, Double HQty, bool SourceFlag, string HSourceBillNo, string HSourceBillType, Int64 HStockInOrgID, Int64 HStockOutOrgID, string HScanStyle, string HCustom1, string HCustom2) | 
 |  |  |         { | 
 |  |  |             string sErrMsg = ""; | 
 |  |  |             string sJXCode = ""; | 
 |  |  |             if (oSystemParameter.ShowBill(ref sErrMsg) == true) | 
 |  |  |             { | 
 |  |  |                 if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ°  å®¢æ·å®å¶ååç§°     ç©ºç½ä¸ºéç¨ | 
 |  |  |                 { | 
 |  |  |                     sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOutOrgID, HBillNo, HMaker); | 
 |  |  |                     SourceFlag = true; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     sJXCode = sBarCode; | 
 |  |  |                 } | 
 |  |  |                 try | 
 |  |  |                 { | 
 |  |  |                     WebSoBar = oWebs.get_BarCode_MoveStock(sJXCode, HInterID, HBillType, HBillNo, HMaker, HWhID, HSPID, HSCWHID, HSCSPID, HQty, SourceFlag, HSourceBillNo, HSourceBillType, HStockInOrgID, HStockOutOrgID, HScanStyle, ref DBUtility.ClsPub.sErrInfo, HCustom1, HCustom2); | 
 |  |  |                     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 = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// ç©ææ¡ç ææ¬æ¡ æ«ç è°ç¨ | 
 |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region åºé¨ç¡®è®¤å模åè°ç¨æ¹æ³     20240308 | 
 |  |  |  | 
 |  |  |         #region æ«æåæ®å·æ¡ç è°ç¨ | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ«æåæ®å·æ¡ç  | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/Get_SourceBarCode_OutDoorCheck_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object Get_SourceBarCode_OutDoorCheck_Json(string HBarCode, Int64 HStockOrgID) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_WMS_AddSourceBarCode_OutDoorCheck '" + HBarCode + "'," + HStockOrgID.ToString(), "h_p_WMS_AddSourceBarCode_OutDoorCheck"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "æ«æåæ®å·æ¡ç å¤æå¤±è´¥ï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0][0]) == 0) | 
 |  |  |                     { | 
 |  |  |                         List<object> columnNameList = new List<object>(); | 
 |  |  |                         //æ·»å åå | 
 |  |  |                         foreach (DataColumn col in ds.Tables[0].Columns) | 
 |  |  |                         { | 
 |  |  |                             Type dataType = col.DataType; | 
 |  |  |                             string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; | 
 |  |  |                             columnNameList.Add(JsonConvert.DeserializeObject(ColmString));  //è·åå°DataColumnå对象çåå | 
 |  |  |                         } | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 1; | 
 |  |  |                         objJsonResult.Message = "æåï¼"; | 
 |  |  |                         objJsonResult.data = ds.Tables[0]; | 
 |  |  |                         objJsonResult.list = columnNameList; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                     else | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 0; | 
 |  |  |                         objJsonResult.Message = "æ«æåæ®å·æ¡ç å¤±è´¥ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "è·å忮巿¡ç ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region åºé¨ç¡®è®¤å   ä¸ä¼ çå | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ°å¢çæåºé¨ç¡®è®¤å | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/set_SaveOutDoorCheckBill_Json")] | 
 |  |  |         [HttpPost] | 
 |  |  |         public object set_SaveOutDoorCheckBill_Json([FromBody] JObject sMainSub) | 
 |  |  |         { | 
 |  |  |             var _value = sMainSub["sMainSub"].ToString(); | 
 |  |  |             string msg1 = _value.ToString(); | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 List<Model.ClsXs_OutDoorCheckBillMain> lsmain = new List<Model.ClsXs_OutDoorCheckBillMain>(); | 
 |  |  |                 ListModels oListModels = new ListModels(); | 
 |  |  |                 lsmain = oListModels.getOutDoorCheckBillMainByJson(msg1); | 
 |  |  |                 ClsXs_OutDoorCheckBillMain oMain = new ClsXs_OutDoorCheckBillMain(); | 
 |  |  |                 string sSourceType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 oMain.HInterID = lsmain[0].HInterID; | 
 |  |  |                 oMain.HBillNo = lsmain[0].HBillNo; | 
 |  |  |                 oMain.HBillType = lsmain[0].HBillType; | 
 |  |  |                 oMain.HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString()); | 
 |  |  |                 oMain.HMainSourceBillType = lsmain[0].HMainSourceBillType; | 
 |  |  |                 oMain.HMainSourceInterID = lsmain[0].HMainSourceInterID; | 
 |  |  |                 oMain.HMainSourceEntryID = lsmain[0].HMainSourceEntryID; | 
 |  |  |                 oMain.HMainSourceBillNo = lsmain[0].HMainSourceBillNo; | 
 |  |  |                 oMain.HExplanation = lsmain[0].HExplanation; | 
 |  |  |                 oMain.HRemark = lsmain[0].HRemark; | 
 |  |  |                 oMain.HMaker = lsmain[0].HMaker; | 
 |  |  |                 oMain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
 |  |  |  | 
 |  |  |                 //夿ä¼è®¡ææ¯å¦åç | 
 |  |  |                 string s = ""; | 
 |  |  |                 int sYear = 0; | 
 |  |  |                 int sPeriod = 0; | 
 |  |  |                 if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(oMain.HDate, ref sYear, ref sPeriod, ref s) == false) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = s; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     oMain.HYear = sYear; | 
 |  |  |                     oMain.HPeriod = sPeriod; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 oCn.BeginTran(); | 
 |  |  |                 //çæåºé¨ç¡®è®¤åï¼åªéçæä¸»è¡¨æ°æ®ï¼ | 
 |  |  |                 //æå
¥ä¸»è¡¨ | 
 |  |  |                 oCn.RunProc("Insert Into Xs_OutDoorCheckBillMain " + | 
 |  |  |                 "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + | 
 |  |  |                 ",HYear,HPeriod,HBillStatus,HRemark,HMaker,HMakeDate" + | 
 |  |  |                 ",HMainSourceBillType,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo" + | 
 |  |  |                 ",HExplanation,HSTOCKORGID" + | 
 |  |  |                 ") " + | 
 |  |  |                 " values('" + oMain.HBillType + "','" + oMain.HBillType + "'," + oMain.HInterID.ToString() + ",'" + oMain.HBillNo + "','" + oMain.HDate.ToShortDateString() + "'" + | 
 |  |  |                 ", " + oMain.HYear.ToString() + "," + oMain.HPeriod.ToString() + ",1,'" + oMain.HRemark + "','" + oMain.HMaker + "',getdate()" + | 
 |  |  |                 ",'" + oMain.HMainSourceBillType + "'," + oMain.HMainSourceInterID.ToString() + "," + oMain.HMainSourceEntryID.ToString() + ",'" + oMain.HMainSourceBillNo + "'" + | 
 |  |  |                 ",'" + oMain.HExplanation + "'," + oMain.HSTOCKORGID.ToString() + | 
 |  |  |                 ") "); | 
 |  |  |  | 
 |  |  |                 //å®¡æ ¸åæ® | 
 |  |  |                 oCn.RunProc("Update Xs_OutDoorCheckBillMain Set HChecker='" + oMain.HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + oMain.HInterID.ToString()); | 
 |  |  |  | 
 |  |  |                 oCn.Commit(); | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 1; | 
 |  |  |                 objJsonResult.Message = "çæå¹¶å®¡æ ¸åºé¨ç¡®è®¤åæåï¼åæ®å·ä¸ºï¼" + oMain.HBillNo; | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 oCn.RollBack(); | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "åºé¨ç¡®è®¤åä¸ä¼ å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         #region å¤çæ¹æ³ | 
 |  |  |  | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¡ç åºå
¥åºæ¥è¯¢è°ç¨æ¹æ³ | 
 |  |  |         /// <summary> | 
 |  |  |         /// è·åæ¡ç ä¿¡æ¯ | 
 |  |  |         /// </summary> | 
 |  |  |         /// <returns></returns> | 
 |  |  |         [Route("WEBSController/GetGy_BarCodeBillInOut_PDA_Json")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object GetGy_BarCodeBillInOut_PDA_Json(string HBarCode) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Gy_BarCodeBillInOut_PDA_QiaoYi '" + HBarCode + "'", "h_p_Gy_BarCodeBillInOut_PDA_QiaoYi"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "å½åæè¾å
¥è¿æ»¤æ¡ä»¶ï¼æ²¡æè¿åä»»ä½ç»æï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     List<object> columnNameList = new List<object>(); | 
 |  |  |                     //æ·»å åå | 
 |  |  |                     foreach (DataColumn col in ds.Tables[0].Columns) | 
 |  |  |                     { | 
 |  |  |                         Type dataType = col.DataType; | 
 |  |  |                         string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; | 
 |  |  |                         columnNameList.Add(JsonConvert.DeserializeObject(ColmString));  //è·åå°DataColumnå对象çåå | 
 |  |  |                     } | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "æåï¼"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     objJsonResult.list = columnNameList; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "æ¥è¯¢æ¡ç ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// æ ¹æ®åºç¡èµæID æ¥æ¾è®°å½ | 
 |  |  |         ///åæ°ï¼string sqlã | 
 |  |  |         ///è¿åå¼ï¼objectã | 
 |  |  |         /// </summary> | 
 |  |  |         [Route("Gy_BarCodeBillInOut/cx")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object cx(string HBarCode) | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |  | 
 |  |  |                 ds = oCn.RunProcReturn("exec h_p_Gy_BarCodeBillInOut_PDA_QiaoYi '" + HBarCode + "'", "h_p_Gy_BarCodeBillInOut_PDA_QiaoYi"); | 
 |  |  |                 if (ds == null || ds.Tables[0].Rows.Count == 0) | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "0"; | 
 |  |  |                     objJsonResult.count = 0; | 
 |  |  |                     objJsonResult.Message = "falseï¼"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     objJsonResult.code = "1"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "Sucessï¼"; | 
 |  |  |                     objJsonResult.data = ds.Tables[0]; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "Exceptionï¼" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region æ¥è¡¨æ°æ®è·åæ¹æ³ | 
 |  |  |  | 
 |  |  |         #region æ¡ç åºå
¥åºè®°å½æ¥è¡¨ |