|  |  |  | 
|---|
|  |  |  | public bool sRedBlueFlag = false; | 
|---|
|  |  |  | public bool SourceFlag = false; | 
|---|
|  |  |  | //public string sSourceType = "1601"; | 
|---|
|  |  |  | // public bool sRedBlue = false; | 
|---|
|  |  |  | // public bool sRedBlue = false; | 
|---|
|  |  |  | public WebServer webserver = new WebServer(); | 
|---|
|  |  |  | public DataSet ds = new DataSet(); | 
|---|
|  |  |  | public ClsGy_BarCodeBill_WMS_Model_View oView = new ClsGy_BarCodeBill_WMS_Model_View(); | 
|---|
|  |  |  | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ds = webserver.GetKf_PonderationBillMain_TempList(HBillType, sWhere); | 
|---|
|  |  |  | if (ds == null || ds.Tables[0].Rows.Count <= 0) | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "没有返回任何记录!"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | //DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = "获取信息成功!"; | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = "获取信息成功!"; | 
|---|
|  |  |  | objJsonResult.data = ds.Tables[0]; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | catch (Exception e) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public Object get_CheckTypeByBarCode_All_Json(string sCode, Int64 sInterID, string sBillNo, string sMaker, Int64 WhID, Int64 SPID, Double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, Int64 HOWNERID, string sExpressNumber) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | oBar = webserver.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID,sExpressNumber, ref DBUtility.ClsPub.sErrInfo); | 
|---|
|  |  |  | oBar = webserver.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, sExpressNumber, ref DBUtility.ClsPub.sErrInfo); | 
|---|
|  |  |  | if (oBar == null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 生成委外入库单 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | [Route("Kf_EntrustInBill/set_SaveEntrustInBill_Json")] | 
|---|
|  |  |  | [HttpPost] | 
|---|
|  |  |  | public object set_SaveEntrustInBill_Json([FromBody]JObject oMain) | 
|---|
|  |  |  | public object set_SaveEntrustInBill_Json([FromBody] JObject oMain) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | var _value = oMain["oMain"].ToString(); | 
|---|
|  |  |  | string msg1 = _value.ToString(); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (webserver.set_SaveEntrustInBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.code = "1"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = "生成委外入库单成功!单据号为:"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | [Route("Kf_EntrustInBill/set_SaveEntrustInBill_New_Json")] | 
|---|
|  |  |  | [HttpPost] | 
|---|
|  |  |  | public object set_SaveEntrustInBill_New_Json([FromBody]JObject oMain) | 
|---|
|  |  |  | public object set_SaveEntrustInBill_New_Json([FromBody] JObject oMain) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | var _value = oMain["oMain"].ToString(); | 
|---|
|  |  |  | string msg1 = _value.ToString(); | 
|---|
|  |  |  | 
|---|
|  |  |  | websLsmain.HMainSourceBillType = "1103"; | 
|---|
|  |  |  | websLsmain.HMangerID = lsmain[0].HMangerID; | 
|---|
|  |  |  | websLsmain.HWHID = lsmain[0].HWHID; | 
|---|
|  |  |  | websLsmain.HExplanation = ""; | 
|---|
|  |  |  | websLsmain.HExplanation = lsmain[0].HExplanation; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string sSourceBillType = "1103"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | [Route("Kf_EntrustInBill/set_SaveEntrustInBackBill_Json")] | 
|---|
|  |  |  | [HttpPost] | 
|---|
|  |  |  | public object set_SaveEntrustInBackBill_Json([FromBody]JObject oMain) | 
|---|
|  |  |  | public object set_SaveEntrustInBackBill_Json([FromBody] JObject oMain) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | var _value = oMain["oMain"].ToString(); | 
|---|
|  |  |  | string msg1 = _value.ToString(); | 
|---|