NETERPNoWin/bin/x86/Debug/AxInterop.grdes6Lib.dllBinary files differ
NETERPNoWin/bin/x86/Debug/AxInterop.gregn6Lib.dllBinary files differ
NETERPNoWin/bin/x86/Debug/BLL.dllBinary files differ
NETERPNoWin/bin/x86/Debug/BLL.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/BaseSet.dllBinary files differ
NETERPNoWin/bin/x86/Debug/BaseSet.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/BouncyCastle.Crypto.dllBinary files differ
NETERPNoWin/bin/x86/Debug/BouncyCastle.Crypto.xml
New file Diff too large NETERPNoWin/bin/x86/Debug/DAL.dllBinary files differ
NETERPNoWin/bin/x86/Debug/DAL.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/DBUtility.dllBinary files differ
NETERPNoWin/bin/x86/Debug/DBUtility.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/ICSharpCode.SharpZipLib.dllBinary files differ
NETERPNoWin/bin/x86/Debug/ICSharpCode.SharpZipLib.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/ICSharpCode.SharpZipLib.xml
New file Diff too large NETERPNoWin/bin/x86/Debug/Interop.gregn6Lib.dllBinary files differ
NETERPNoWin/bin/x86/Debug/Kanban.dllBinary files differ
NETERPNoWin/bin/x86/Debug/Kanban.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/Kingdee.BOS.WebApi.Client.dllBinary files differ
NETERPNoWin/bin/x86/Debug/M2Mqtt.Net.dllBinary files differ
NETERPNoWin/bin/x86/Debug/M2Mqtt.Net.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/Model.dllBinary files differ
NETERPNoWin/bin/x86/Debug/Model.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NETERPNoWin.exeBinary files differ
NETERPNoWin/bin/x86/Debug/NETERPNoWin.exe.config
New file @@ -0,0 +1,3 @@ <?xml version="1.0" encoding="utf-8"?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> NETERPNoWin/bin/x86/Debug/NETERPNoWin.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OOXML.dllBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OOXML.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OOXML.xml
New file Diff too large NETERPNoWin/bin/x86/Debug/NPOI.OpenXml4Net.dllBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OpenXml4Net.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OpenXmlFormats.dllBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.OpenXmlFormats.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.dllBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/NPOI.xml
New file Diff too large NETERPNoWin/bin/x86/Debug/Newtonsoft.Json.dllBinary files differ
NETERPNoWin/bin/x86/Debug/OAM.dllBinary files differ
NETERPNoWin/bin/x86/Debug/OAM.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/PlanM.dllBinary files differ
NETERPNoWin/bin/x86/Debug/PlanM.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/Pub_Class.dllBinary files differ
NETERPNoWin/bin/x86/Debug/Pub_Class.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/Pub_Control.dllBinary files differ
NETERPNoWin/bin/x86/Debug/Pub_Control.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/SQLHelper.dllBinary files differ
NETERPNoWin/bin/x86/Debug/SQLHelper.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/WarM.dllBinary files differ
NETERPNoWin/bin/x86/Debug/WarM.dll.config
New file @@ -0,0 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> </configSections> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration> NETERPNoWin/bin/x86/Debug/WarM.pdbBinary files differ
NETERPNoWin/bin/x86/Debug/WorkM.dllBinary files differ
NETERPNoWin/bin/x86/Debug/WorkM.pdbBinary files differ
WebAPI/Controllers/SCGL/Èռƻ®¹ÜÀí/JIT_DayPlanPlatFormBillController.cs
@@ -3586,6 +3586,66 @@ } #endregion #region ç产æ¥è®¡åå¹³å° æ ¹æ®è½¦é´æ·»å æªæäº§ç产订åï¼äº¤æå夿åï¼ [Route("JIT_DayPlanPlatFormBill/JIT_ICMOBillListByDept_Reply")] [HttpGet] public object JIT_ICMOBillListByDept_Reply(string HDeptID) { try { //è·åæ¾ç¤ºç³»ç»åæ° string sReturn = ""; oSystemParameter.ShowBill(ref sReturn); //æ¥è¯¢éæ©è½¦é´ä¸æªæäº§è¿çç产订åä¿¡æ¯ï¼æ·»åº·ç§æ--ç产订åç¶æä¸ºä¸è¾¾ï¼ ds = oCN.RunProcReturn($"exec h_p_JIT_ICMOBillListByDept_Reply '{HDeptID}'", "h_p_JIT_ICMOBillListByDept_Reply"); if (ds.Tables[0].Rows.Count > 0 && ds != null) { if (oSystemParameter.omodel.WMS_CampanyName == "æ·»åº·ç§æ") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° 空ç½ä¸ºéç¨ { //æ°æ®è¡¨æ ¼æ·»å å¨ææ¥æ for (int j = 1; j <= 180; j++) { ds.Tables[0].Columns.Add(DateTime.Now.AddDays(j - 1).ToString("yyyy-MM-dd"), typeof(Int32)); } } else { //æ°æ®è¡¨æ ¼æ·»å å¨ææ¥æ for (int j = 1; j <= 31; j++) { ds.Tables[0].Columns.Add(DateTime.Now.AddDays(j - 1).ToString("yyyy-MM-dd"), typeof(Int32)); } } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¥æ æ°æ®ï¼å½åæé车é´ä¸ææ æªæäº§ä¸è®¢åç¶æä¸ºä¸è¾¾çç产订åä¿¡æ¯ï¼"; objJsonResult.data = ""; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ç产æ¥è®¡åå¹³å° è·åå®å·¥æ¥æ [Route("JIT_DayPlanPlatFormBill/GetICMOCompletionDate")] [HttpGet] WebAPI/Controllers/SCGL/Èռƻ®¹ÜÀí/JIT_DayPlanPlatFormImportController.cs
@@ -1977,5 +1977,513 @@ } #endregion #region ç产æ¥è®¡å æä»¶ä¸ä¼ [添康交æåå¤] [Route("JIT_DayPlanPlatFormImport/JIT_DayPlanPlatFormImport_DR_Reply")] [HttpPost] public object JIT_DayPlanPlatFormImport_DR_Reply() { try { //è·åæä»¶åç§° var file = HttpContext.Current.Request.Files[0]; //è·åæä»¶ç©çè·¯å¾ string ExcelPath = HttpContext.Current.Server.MapPath("~/" + file.FileName); //ä¿åæä»¶ file.SaveAs(ExcelPath); NpoiHelper np = new NpoiHelper(); DataSet ExcelDs = np.ReadExcel(ExcelPath, 1, 1, "0"); //å 餿件 File.Delete(ExcelPath); //å建临æ¶è¡¨ DataTable tb2 = new DataTable("dt2"); //æ·»å åå for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) { tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); } //模æ¿ç¼ºå°å ä½éè¦ä»æ°æ®åºä¸æ¥è¯¢åºæ¥æ¾ç¤ºå¨é¡µé¢çåæ®µ tb2.Columns.Add("hmainid", typeof(Int32)); tb2.Columns.Add("HMaterID", typeof(Int32));//ç©æID tb2.Columns.Add("åæ®å·", typeof(string)); tb2.Columns.Add("HWorkShopID", typeof(Int32));//çäº§è½¦é´ tb2.Columns.Add("HEmpID", typeof(Int32));//èå tb2.Columns.Add("åå·¥", typeof(string));//èå tb2.Columns.Add("HUnitID", typeof(Int32));//计éåä½ tb2.Columns.Add("HSourceID", typeof(Int32));//çäº§èµæºid tb2.Columns.Add("ICMOBillHInterID", typeof(Int32));//ç产订å主id tb2.Columns.Add("ICMOBillHEntryID", typeof(Int32));//ç产订ååid tb2.Columns.Add("HProdORGID", typeof(Int32));//ç»ç»id tb2.Columns.Add("HSeOrderBillNo", typeof(string));//éå®è®¢åå· tb2.Columns.Add("HVersion_Import", typeof(string));//å¯¼å ¥åºåå· //è·åç³»ç»åæ° string Ret = ""; oSystemParameter.ShowBill(ref Ret); LogService.Write("excelå¼ï¼" + ExcelDs.Tables[0].Rows[1][15].ToString());//2024-11-26 //æ·»å æ°æ® for (int i = 1; i < ExcelDs.Tables[0].Rows.Count; i++) { DataRow row = tb2.NewRow(); for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) { row[j] = ExcelDs.Tables[0].Rows[i][j].ToString(); } //å¦æè¡¨æ ¼ç¬¬iè¡ç第ä¸å为空ï¼åå¤æä¸ºè¿ä¸è¡çæ°æ®ä¸ºç©ºï¼è·³åºå¾ªç¯å¹¶ä¸ä¸ææ°æ®åå ¥ tb2 if (ExcelDs.Tables[0].Rows[i][0].ToString() == "" && ExcelDs.Tables[0].Rows[i][1].ToString() == "") { continue; } //else if (oSystemParameter.omodel.JIT_DayPlan_TimeFrame != "0" && oSystemParameter.omodel.JIT_DayPlan_TimeFrame != "") //{ // Int32 HDays = Convert.ToInt32(oSystemParameter.omodel.JIT_DayPlan_TimeFrame) * 7; // for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) // { // if (Convert.ToInt32(ExcelDs.Tables[0].Rows[i][j].ToString()) > 0 ) // { // continue; // } // } //} else { tb2.Rows.Add(row); } } var error = ""; var ErrorResult = ""; //æ¥è¯¢ç产订åè¡¨å¤æææ²¡æç产订åä¿¡æ¯ for (int i = 0; i < tb2.Rows.Count; i++) { tb2.Rows[i]["HVersion_Import"] = DateTime.Now.ToString("yyyy-MM-dd HH"); if (tb2.Rows[i]["ç»ç»ç¼ç *"].ToString() == "") error += "ç»ç»ç¼ç ä¸è½ä¸ºç©º;"; if (tb2.Rows[i]["ç产订åå·*"].ToString() == "") error += "ç产订åå·ä¸è½ä¸ºç©º;\n"; if (tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString() == "") error += "ç产订åæç»è¡å·ä¸è½ä¸ºç©º;"; if (tb2.Rows[i]["ç产车é´ç¼ç *"].ToString() == "") error += "ç产车é´ç¼ç ä¸è½ä¸ºç©º;"; if (tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString() == "") error += "çäº§èµæºç¼ç ä¸è½ä¸ºç©º;"; if (tb2.Rows[i]["ç©æç¼ç *"].ToString() == "") error += "ç©æç¼ç ä¸è½ä¸ºç©º;"; if (error.Length > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = ErrorResult += $"Excel模æ¿åå¨é误ï¼è¡æ°{i + 1}:{error}\r\n"; ; objJsonResult.data = null; return objJsonResult; } string sql1 = string.Format("select * from h_v_JIT_ICMOBillList_DR where åæ®å·='{0}' and ç产车é´ä»£ç ='{1}' and 产å代ç ='{2}' " + "and æç»è¡å·={3} ",tb2.Rows[i]["ç产订åå·*"].ToString(), tb2.Rows[i]["ç产车é´ç¼ç *"].ToString(), tb2.Rows[i]["ç©æç¼ç *"].ToString(), tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()); ds = oCN.RunProcReturn(sql1, "h_v_JIT_ICMOBillList_DR"); if (ds.Tables[0].Rows.Count == 0) { error += $"没æç产订åä¿¡æ¯ï¼ç产订åå·:{ tb2.Rows[i]["ç产订åå·*"].ToString()},ç产车é´ç¼ç :{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}" + $",ç产订åæç»è¡å·:{ tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()},ç©æç¼ç :{ tb2.Rows[i]["ç©æç¼ç *"].ToString()}"; } if (error.Length > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = ErrorResult += $"Excel模æ¿åå¨é误ï¼è¡æ°{i + 1}:{error}\r\n"; ; objJsonResult.data = null; return objJsonResult; } else { tb2.Rows[i]["HMaterID"] = ds.Tables[0].Rows[0]["HMaterID"].ToString(); tb2.Rows[i]["ç©æåç§°"] = ds.Tables[0].Rows[0]["产ååç§°"].ToString(); tb2.Rows[i]["è§æ ¼åå·"] = ds.Tables[0].Rows[0]["è§æ ¼åå·"].ToString(); tb2.Rows[i]["HWorkShopID"] = ds.Tables[0].Rows[0]["HDeptID"].ToString(); tb2.Rows[i]["ICMOBillHInterID"] = ds.Tables[0].Rows[0]["hmainid"].ToString();//ç产订å主id tb2.Rows[i]["ICMOBillHEntryID"] = ds.Tables[0].Rows[0]["HEntryID"].ToString();//ç产订ååid string sErr = ""; if (oSystemParameter.ShowBill(ref sErr)) { if (oSystemParameter.omodel.WMS_CampanyName != "å®å·¥") { tb2.Rows[i]["çäº§è®¢åæ°é"] = ds.Tables[0].Rows[0]["ç产任å¡åæ°é"].ToString();//çäº§è®¢åæ°é } } //tb2.Rows[i]["çäº§è®¢åæ°é"] = ds.Tables[0].Rows[0]["ç产任å¡åæ°é"].ToString();//çäº§è®¢åæ°é tb2.Rows[i]["HSeOrderBillNo"] = ds.Tables[0].Rows[0]["éå®è®¢åå·"].ToString();//éå®è®¢åå· } ds = oCN.RunProcReturn("select * from h_v_JIT_WorkBillSortBillList_DR " + $"where ç产订åå·='{tb2.Rows[i]["ç产订åå·*"].ToString()}' and ç产订åæç»è¡å·='{tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()}' " + $"and ç产车é´ç¼ç ='{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}' and ç©æä»£ç ='{tb2.Rows[i]["ç©æç¼ç *"].ToString()}' " + $"and çäº§èµæºç¼ç ='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}' ", "h_v_JIT_WorkBillSortBillList_DR"); //ç»ç»ç¼ç ='{tb2.Rows[i]["ç»ç»ç¼ç *"].ToString()}' and //and çäº§èµæºç¼ç ='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}' if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["hmainid"] = ds.Tables[0].Rows[0]["hmainid"].ToString(); tb2.Rows[i]["åæ®å·"] = ds.Tables[0].Rows[0]["åæ®å·"].ToString(); if (oSystemParameter.omodel.WMS_CampanyName != "å®å·¥") { tb2.Rows[i]["ä¼å 级"] = ds.Tables[0].Rows[0]["ä¼å 级"].ToString(); } tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HSourceID"].ToString(); tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HEmpID"].ToString(); tb2.Rows[i]["åå·¥ç¼ç "] = ds.Tables[0].Rows[0]["èå代ç "].ToString(); tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["èå"].ToString(); tb2.Rows[i]["HUnitID"] = ds.Tables[0].Rows[0]["HUnitID"].ToString(); tb2.Rows[i]["计éåä½"] = ds.Tables[0].Rows[0]["计éåä½"].ToString(); tb2.Rows[i]["æ¹æ¬¡å·"] = ds.Tables[0].Rows[0]["æ¹æ¬¡"].ToString(); tb2.Rows[i]["éå®è®¢åæ°é"] = ds.Tables[0].Rows[0]["éå®è®¢åæ°é"].ToString(); tb2.Rows[i]["æ»é½å¥æ°é"] = ds.Tables[0].Rows[0]["é½å¥æ°é"].ToString(); } else { //åå·¥ ds = oCN.RunProcReturn($"select * from Gy_Employee with(nolock) where HNumber='{tb2.Rows[i]["åå·¥ç¼ç "].ToString()}'", "Gy_Employee"); if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["HName"].ToString(); } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡,åå·¥æ¥æ æ°æ®!"; objJsonResult.data = tb2; return objJsonResult; } //计éåä½ ds = oCN.RunProcReturn($"select * from Gy_Unit with(nolock) where HNumber='{tb2.Rows[i]["计éåä½"].ToString()}'", "Gy_Unit"); if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["HUnitID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡,计éå使¥æ æ°æ®!"; objJsonResult.data = tb2; return objJsonResult; } //çäº§èµæº ds = oCN.RunProcReturn($"select * from Gy_Source with(nolock) where HNumber='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}'", "Gy_Source"); if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡,çäº§èµæºæ¥æ æ°æ®!"; objJsonResult.data = tb2; return objJsonResult; } } //ç»ç» ds = oCN.RunProcReturn($"select * from Xt_ORGANIZATIONS with(nolock) where HNumber='{tb2.Rows[i]["ç»ç»ç¼ç *"].ToString()}'", "Xt_ORGANIZATIONS"); if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["HProdORGID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡,ç»ç»æ¥æ æ°æ®!"; objJsonResult.data = tb2; return objJsonResult; } if (oSystemParameter.omodel.WMS_CampanyName == "å®å·¥") { string HOrgID = ds.Tables[0].Rows[0]["HItemID"].ToString(); //çäº§è½¦é´ ds = oCN.RunProcReturn($"select * from Gy_Department with(nolock) where HUSEORGID = {HOrgID} and HNumber='{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}'", "Gy_Department"); if (ds.Tables[0].Rows.Count > 0) { tb2.Rows[i]["HWorkShopID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡,çäº§è½¦é´æ¥æ æ°æ®!"; objJsonResult.data = tb2; return objJsonResult; } } } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = ErrorResult; objJsonResult.data = tb2; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ç产æ¥è®¡å å¯¼å ¥(ä¿å)[添康交æåå¤] [Route("JIT_DayPlanPlatFormImport/JIT_DayPlanPlatFormImport_btnSave_Reply")] [HttpPost] public object JIT_DayPlanPlatFormImport_btnSave_Reply([FromBody] JObject sMainSub) { var _value = sMainSub["sMainSub"].ToString(); string msg1 = _value.ToString(); oCN.BeginTran(); //ä¿å主表 objJsonResult = AddBillMain_TK(msg1); if (objJsonResult.code == "0") { oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = objJsonResult.Message; objJsonResult.data = null; return objJsonResult; } oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "åæ®ä¿åæåï¼"; objJsonResult.data = null; return objJsonResult; } public json AddBillMain_TK(string msg1) { string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string user = sArray[2].ToString(); try { if (!DBUtility.ClsPub.Security_Log("Sc_WorkBillSortBill_Edit", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ ä¿åæéï¼"; objJsonResult.data = null; return objJsonResult; } //è¡¨å¤´åæ®µ omdelMian = Newtonsoft.Json.JsonConvert.DeserializeObject<Sc_WorkBillSortBillMain>(msg2); //JSONåºåå转æ¢åå ¸éå List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); List<object> jb = JsonConvert.DeserializeObject<List<object>>(msg3); foreach (JObject item in jb) { Dictionary<string, string> dic = new Dictionary<string, string>(); foreach (var itm in item.Properties()) { dic.Add(itm.Name, itm.Value.ToString()); } list.Add(dic); } for (int i = 0; i < list.Count; i++) { int TrueCount = 0, SumCount = 0; long HInterID = 0; var HBillNo = ""; if (list[i]["åæ®å·"].ToString() == "" && list[i]["hmainid"].ToString() == "") { HBillNo = DBUtility.ClsPub.CreateBillCode_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true);//è·å¾ä¸ä¸ªæ°çåæ®å· HInterID = DBUtility.ClsPub.CreateBillID_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo);//è·å¾ä¸ä¸ªæ°çid var HICMOBillNo = list[i]["ç产订åå·*"].ToString(); var HICMOEntrySEQ = list[i]["ç产订åæç»è¡å·*"].ToString(); var HProdORGID = list[i]["HProdORGID"].ToString(); var HWorkShopID = list[i]["HWorkShopID"].ToString(); var HSourceID = list[i]["HSourceID"].ToString(); var HWorkQty = DBUtility.ClsPub.isDoule(list[i]["产è½"]); var HYX = list[i]["ä¼å 级"].ToString(); var HEmpID = list[i]["HEmpID"].ToString(); var HMaterID = list[i]["HMaterID"].ToString(); var HMaterName = list[i]["ç©æåç§°"].ToString(); var HMaterModel = list[i]["è§æ ¼åå·"].ToString(); var HUnitID = list[i]["HUnitID"].ToString(); var HBatchNo = list[i]["æ¹æ¬¡å·"].ToString(); var HSeOrderBillQty = list[i]["éå®è®¢åæ°é"].ToString(); var HPlanQty = list[i]["çäº§è®¢åæ°é"].ToString(); var HCompleteQty = list[i]["æ»é½å¥æ°é"].ToString(); var HOrderType = omdelMian.HOrderType; var HDate = omdelMian.HDate; var HMainSourceInterID = list[i]["ICMOBillHInterID"].ToString(); var HMainSourceEntryID = list[i]["ICMOBillHEntryID"].ToString(); var HSeOrderBillNo = list[i]["HSeOrderBillNo"].ToString(); var HVersion_Import = list[i]["HVersion_Import"].ToString(); string sql = $"select * from Sc_WorkBillSortBillMain where HMainSourceInterID={HMainSourceInterID}" + $" and HMainSourceEntryID={HMainSourceEntryID} and HICMOBillNo='{HICMOBillNo}' and HICMOEntrySEQ={HICMOEntrySEQ} and HSourceID={HSourceID} and ISNULL(HDeleteMan,'') = ''"; LogService.Write("sql:" + sql); ds = oCN.RunProcReturn(sql, "Sc_WorkBillSortBillMain"); if (ds.Tables[0].Rows.Count > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = $"第{i + 1}è¡çäº§èµæºæéå¤,请修æ¹!"; objJsonResult.data = null; return objJsonResult; } //主表 oCN.RunProc("insert into Sc_WorkBillSortBillMain(HInterID,HBillNo,HYear,HPeriod,HBillType," + "HBillSubType,HDate,HBillStatus,HMaker,HMakeDate,HICMOBillNo,HOrderType," + "HICMOEntrySEQ,HWorkShopID,HSourceID, HYX,HWorkQty, HEmpID," + " HMaterID, HMaterName, HMaterModel, HUnitID, HBatchNo," + " HSeOrderBillQty, HPlanQty, HCompleteQty,HPreparatDate," + "HMainSourceInterID,HMainSourceEntryID,HICMOInterID,HICMOEntryID,HProdORGID,HICMOInterID_Sec,HICMOEntryID_Sec" + ",HSeOrderBillNo,HVersion_Import)values" + $"({HInterID},'{HBillNo}',{DateTime.Now.Year},{DateTime.Now.Month},'{BillType}'," + $"'{BillType}',GETDATE(),1,'{user}','{HDate}','{HICMOBillNo}','{HOrderType}'," + $"{(HICMOEntrySEQ == "" ? 0.ToString() : HICMOEntrySEQ)},{(HWorkShopID == "" ? 0.ToString() : HWorkShopID)},{(HSourceID == "" ? 0.ToString() : HSourceID)}, {(HYX == "" ? 0.ToString() : HYX)},{(HWorkQty)}, {(HEmpID == "" ? 0.ToString() : HEmpID)}," + $" {(HMaterID == "" ? 0.ToString() : HMaterID)}, '{HMaterName}', '{HMaterModel}', {(HUnitID == "" ? 0.ToString() : HUnitID)}, '{HBatchNo}'," + $" {(HSeOrderBillQty == "" ? 0.ToString() : HSeOrderBillQty)}, {(HPlanQty == "" ? 0.ToString() : HPlanQty)}, {(HCompleteQty == "" ? 0.ToString() : HCompleteQty)},getdate()," + $" {HMainSourceInterID},{HMainSourceEntryID},{HMainSourceInterID},{HMainSourceEntryID},{HProdORGID}, {HMainSourceInterID},{HMainSourceEntryID}" + $",'{HSeOrderBillNo}','{HVersion_Import}')"); } int SumDay = 31; //卿䏤æä¹å·® DateTime.Now.AddMonths(1).AddDays(-1).Subtract(DateTime.Now).Days; // ç»è®¡æ»å¤©æ° HashSet<DateTime> uniqueDates = new HashSet<DateTime>(); foreach (var key in list[i].Keys) { if (DateTime.TryParseExact(key, "yyyy-M-d", CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime date)) { uniqueDates.Add(date); } } SumDay = uniqueDates.Count; for (int j = 0; j < SumDay; j++) { LogService.Write("1:" + list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString()); LogService.Write("2:" + DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")); //主表åè¡¨é½ææ°æ® if (list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString() != "") { SumCount += 1; ////ä¿åå表 objJsonResult = AddBillSub_TK(HInterID == 0 ? list[i]["hmainid"].ToString() : HInterID.ToString() , HBillNo == "" ? list[i]["åæ®å·"].ToString() : HBillNo , DateTime.Parse(DateTime.Now.AddDays(j).ToString("yyyy-MM-dd").ToString()) , int.Parse(list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString())); if (objJsonResult.count == 1) { TrueCount += 1; } } //ä¸»è¡¨ææ°æ® åè¡¨æ æ°æ® if (j == SumDay - 1 && SumCount == 0 && HInterID != 0 && HBillNo != "") { objJsonResult = AddBillSub_TK(HInterID.ToString(), HBillNo, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd").ToString()), 0); } } if (TrueCount != SumCount) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = objJsonResult.Message; objJsonResult.data = null; return objJsonResult; } } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = null; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } public json AddBillSub_TK(string HInterID, string HBillNo, DateTime date, int HQTY) { //è·åè¡¨æ ¼æ°æ® ds = oCN.RunProcReturn($"select * from h_v_JIT_Sc_WorkBillSortBillList where åæ®å·='{HBillNo}'", "h_v_JIT_Sc_WorkBillSortBillList"); int count = 0; if (ds.Tables[0].Rows.Count > 0) { //夿å表æ¯å¦æå½æ¥çæ¥æä»¥åæ¥ææå¯¹åºçæ°é for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (DateTime.Parse(ds.Tables[0].Rows[i]["æ¥è®¡åçäº§æ¥æ"].ToString()) == date) { oCN.RunProc($"update Sc_WorkBillSortBillSub set HMasterDate='{date}',HQty={HQTY}" + $" where HInterID={HInterID} and HEntryID={ds.Tables[0].Rows[i]["hsubid"].ToString()}"); count += 1; } } } if (count != 1) { //æå ¥å表 oCN.RunProc("insert into Sc_WorkBillSortBillSub(HInterID,HSEQ," + "HMasterDate,HQty)" + $"values({HInterID}, {(ds.Tables[0].Rows.Count + 1)}," + $" '{date}', {HQTY})"); } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = null; objJsonResult.data = null; return objJsonResult; } #endregion } } WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -72,7 +72,7 @@ objJsonResult.data = null; return objJsonResult; } else if (DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HBack"])==1) else if (DBUtility.ClsPub.isLong(ds2.Tables[0].Rows[0]["HBack"]) == 1) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -470,7 +470,7 @@ sHWhID = DBUtility.ClsPub.isLong(sArray[0]); } if(HWhID==0) if (HWhID == 0) { ds = oCn.RunProcReturn("select HItemID,HNumber,HName,HWHID,HWhNumber,HWhName from h_v_IF_StockPlace where HStopflag=0 and HItemID=" + sHSPID.ToString() + " and HWHID=" + sHWhID.ToString() + " and HUSEORGID = " + HStockOrgID.ToString(), "h_v_IF_StockPlace"); if (ds == null || ds.Tables[0].Rows.Count == 0) @@ -1028,13 +1028,13 @@ /// <returns></returns> [Route("WEBSController/GetEquipList_Json")] [HttpGet] public object GetEquipList_Json(string Equip,int HCenterID) public object GetEquipList_Json(string Equip, int HCenterID) { try { if (HCenterID !=0) if (HCenterID != 0) { ds = oCn.RunProcReturn("select HInterID,HEquipFileNumber,HName,HSourceID,HSourceName,HCenterID from h_v_Gy_EquipFileBill where HCenterID='"+HCenterID+"' and ( HEquipFileNumber like '%" + Equip + "%' or HName like '%" + Equip + "%')", "h_v_Gy_EquipFileBill"); ds = oCn.RunProcReturn("select HInterID,HEquipFileNumber,HName,HSourceID,HSourceName,HCenterID from h_v_Gy_EquipFileBill where HCenterID='" + HCenterID + "' and ( HEquipFileNumber like '%" + Equip + "%' or HName like '%" + Equip + "%')", "h_v_Gy_EquipFileBill"); } else { @@ -1605,7 +1605,7 @@ try { if(sFIFOCtl == "Y") if (sFIFOCtl == "Y") { //æ´æ°å è¿å åºä¸´æ¶è¡¨ç¶æ oCn.RunProc("EXEC h_p_WMS_UPDateICInventory_FIFO_Tmp " + HInterID.ToString() + ",'" + HBillType + "'"); @@ -2028,7 +2028,7 @@ { try { ds = oCn.RunProcReturn("exec h_p_Kf_ICStockBillQueryList_New '" + HBillType + "','" + HBillNo + "','" + HSourceBillNo + "','" + HMaker + "'," + HStockOrgID.ToString() + ",'" + sWhere+"'", "h_p_Kf_ICStockBillQueryList_New"); 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"; @@ -2851,7 +2851,7 @@ websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag; websLsmain.HStockStyle = lsmain[0].HStockStyle; websLsmain.HBillSubType = lsmain[0].HBillSubType; if(lsmain[0].HMainSourceBillType== "1241") if (lsmain[0].HMainSourceBillType == "1241") { websLsmain.HMainSourceBillType = "å ¥åºç³è¯·å"; } @@ -3014,7 +3014,7 @@ websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; if(sSourceType== "3710") if (sSourceType == "3710") { sSourceType = "3720"; } @@ -3398,7 +3398,7 @@ websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; if (oWebs.set_SaveEntrustOutBill_New(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo)) { @@ -5008,7 +5008,7 @@ lsmain = oListModels.getObjectByJson_Kf_TrolleyPositionBillMain(msg2); foreach (Model.ClsKf_TrolleyPositionBillMain oItem in lsmain) { { DBUtility.ClsPub.CurUserName = oItem.HMaker; oItem.HBillType = "10004"; oItem.HBillSubType = "10004"; @@ -5050,7 +5050,7 @@ bool bResult; if (OperationType == "1") { bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); } else { @@ -5319,7 +5319,7 @@ { if (oSystemParameter.omodel.WMS_CloudMode.ToUpper() == "N") //ç³»ç»åæ°æ¯å¦ä¸ºç§æäºæ¨¡å¼,Nä¸ºå ¬æäºæ¨¡å¼ï¼Yä¸ºç§æäºæ¨¡å¼ { if(HSourceBillType == "1214") if (HSourceBillType == "1214") { //鿰忥ç产åæéç¥å Kf_MateOutRequestBillController obill = new Kf_MateOutRequestBillController(); @@ -5896,7 +5896,7 @@ sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOrgID, HBillNo, HMaker); SourceFlag = true; } else if(oSystemParameter.omodel.WMS_CampanyName == "森楷" && HSourceBillType == "1241") else if (oSystemParameter.omodel.WMS_CampanyName == "森楷" && HSourceBillType == "1241") { //èªå¨å è£ çº¿åæ¥éè¶çäº§å ¥åºç³è¯·å sJXCode = Kf_OtherInBill_SK(sBarCode, HCustom1); @@ -5951,7 +5951,7 @@ objJsonResult.data = null; return objJsonResult; } } } #endregion @@ -6031,7 +6031,7 @@ { if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° 空ç½ä¸ºéç¨ { sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOutOrgID, HBillNo, HMaker); sJXCode = POStockInBillController.JX_Json(sBarCode, HInterID, HBillType, HStockOutOrgID, HBillNo, HMaker); SourceFlag = true; } else @@ -6751,8 +6751,8 @@ objJsonResult.Message = "æ ¡éªæ¨¡å¼ï¼æ«ææ¡ç 失败ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; @@ -6937,7 +6937,7 @@ { //è·åç³»ç»åæ° string sErrMsg = ""; if (oSystemParameter.ShowBillByOrgID(HStockOrgID,ref sErrMsg) == true) if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true) { string sSourceBarCodeCtl = "N"; //æ ¡éª-æ¯å¦è¿è¡æºåå¯¹åºæ¡ç æ ¸å¯¹ï¼'Y'ä¸ºæ ¸å¯¹ï¼ if (HBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y") @@ -7580,14 +7580,14 @@ } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } } #endregion @@ -8253,7 +8253,7 @@ string HIPAddress = ""; //IP string HModCaption = "WMS-æç®±ï¼ææï¼æ¨¡å"; //模åå ds = oCn.RunProcReturn("exec h_p_Sc_PackUnionBill_Delete_New " + HInterID.ToString() + ",'" + HBillNo + "','" + HBarCode_Pack + "','" + HMaker + "','" + ComputerName + "','" + HIPAddress + "','" + HModCaption + "'", "h_p_Sc_PackUnionBill_Delete_New"); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æå"; @@ -8824,7 +8824,8 @@ try { ds = oCn.RunProcReturn("select * from Gy_BarCodeBill where HBarcode='" + HBarCode + "'", "Gy_BarCodeBill"); if (ds.Tables[0].Rows.Count == 0) { if (ds.Tables[0].Rows.Count == 0) { DAL.ClsGy_BarCodeBill_View dal = new DAL.ClsGy_BarCodeBill_View(); string sErrMsg = ""; oSystemParameter.ShowBill(ref sErrMsg); @@ -9619,7 +9620,7 @@ try { ds = oCn.RunProcReturn("exec h_p_WMS_AddBarCode_WorkShop " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBarCode + "'," + HQty.ToString() + ",'" + HSourceBillType + "'," + HWhID.ToString() + "," + HSPID.ToString() + ",'" + HCarBarCode + "'," + HStockOrgID.ToString() + ",'" + HMaker + "'," + DBUtility.ClsPub.BoolToString(SourceFlag) + ",'" + sBatchNoCtl + "','" + sMustQtyCtl + "'", "h_p_WMS_AddBarCode_WorkShop"); ds = oCn.RunProcReturn("exec h_p_WMS_AddBarCode_WorkShop_TestByLLJ " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBarCode + "'," + HQty.ToString() + ",'" + HSourceBillType + "'," + HWhID.ToString() + "," + HSPID.ToString() + ",'" + HCarBarCode + "'," + HStockOrgID.ToString() + ",'" + HMaker + "'," + DBUtility.ClsPub.BoolToString(SourceFlag) + ",'" + sBatchNoCtl + "','" + sMustQtyCtl + "'", "h_p_WMS_AddBarCode_WorkShop"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; @@ -9655,14 +9656,14 @@ } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } } #endregion @@ -9726,7 +9727,7 @@ public object MaterialLowerBill_MaterInv(long HInterID, string HBillNo, string HBillType, Int64 HStockOrgID) { try { { ds = oCn.RunProcReturn("exec h_p_Kf_MaterialInventory " + HInterID + "," + HBillType + "," + HStockOrgID, "h_p_Kf_MaterialInventory"); if (ds == null || ds.Tables[0].Rows.Count == 0) { @@ -9773,7 +9774,7 @@ { try { ds = oCn.RunProcReturn("select * from h_v_Gy_MouldIsUsed where å°è½¦æ¡ç ='" + HCarBarCode + "'" , "h_v_Gy_MouldIsUsed"); ds = oCn.RunProcReturn("select * from h_v_Gy_MouldIsUsed where å°è½¦æ¡ç ='" + HCarBarCode + "'", "h_v_Gy_MouldIsUsed"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; @@ -10072,14 +10073,14 @@ try { ds = oCn.RunProcReturn("exec h_p_MES_ProcessExchangeBillList_APP_HaiCheng " + "@HBillNo = N'" + HBillNo + "', " + "@HNumber = N'" + HNumber + "', " + "@HName = N'" + HName + "', " + "@HBillNo = N'" + HBillNo + "', " + "@HNumber = N'" + HNumber + "', " + "@HName = N'" + HName + "', " + "@HICMOBillNo = N'" + HICMOBillNo + "'," + "@HProcID = N'" + HProcID + "', " + "@HDeptID = N'" + HDeptID + "'" , "h_p_MES_ProcessExchangeBillList_PDA_QiaoYi"); if((bool)ds.Tables[1].Rows[0]["returntype"] == false) if ((bool)ds.Tables[1].Rows[0]["returntype"] == false) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -10094,7 +10095,8 @@ objJsonResult.Message = "å½åæè¾å ¥è¿æ»¤æ¡ä»¶ï¼æ²¡æè¿åä»»ä½ç»æï¼"; objJsonResult.data = null; return objJsonResult; }else } else { List<object> columnNameList = new List<object>(); //æ·»å åå @@ -10134,7 +10136,7 @@ { try { ds = oCn.RunProcReturn("exec h_p_MES_ProcessExchangeSubBillList_PDA_QiaoYi '" + HInterID+ "'", "h_p_MES_ProcessExchangeSubBillList_PDA_QiaoYi"); ds = oCn.RunProcReturn("exec h_p_MES_ProcessExchangeSubBillList_PDA_QiaoYi '" + HInterID + "'", "h_p_MES_ProcessExchangeSubBillList_PDA_QiaoYi"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; @@ -10256,7 +10258,7 @@ string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString)); //è·åå°DataColumnå对象çåå } if (HDATA=="HSPE") if (HDATA == "HSPE") { objJsonResult.code = "0"; objJsonResult.count = 1; @@ -10265,7 +10267,7 @@ objJsonResult.list = columnNameList; return objJsonResult; } else if (HDATA == "HICM") else if (HDATA == "HICM") { objJsonResult.code = "0"; objJsonResult.count = 1; @@ -10274,7 +10276,7 @@ objJsonResult.list = columnNameList; return objJsonResult; } else else { objJsonResult.code = "0"; objJsonResult.count = 1; @@ -10771,13 +10773,13 @@ columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; return objJsonResult; } catch (Exception e) { @@ -10797,7 +10799,7 @@ /// <returns></returns> [Route("WEBSController/UpdateKf_ICInvBal")] [HttpGet] public object UpdateKf_ICInvBal( ) public object UpdateKf_ICInvBal() { try { @@ -10833,7 +10835,7 @@ try { ds = oCn.RunProcReturn("exec h_p_Kf_SellOutBarTraceReport '" + HBeginDate.ToShortDateString() + "','" + HEndDate.ToShortDateString() + "','" + HBarCode + "'," + HStockOrgID.ToString() + ",'" + HWhere + "'", "h_p_Kf_SellOutBarTraceReport"); List<object> columnNameList = new List<object>(); //æ·»å åå foreach (DataColumn col in ds.Tables[0].Columns) @@ -11011,7 +11013,7 @@ "and HMaker = '" + HMaker + "' " + "and HOrgID = " + HStockOrgID; DataSet ds = oCn.RunProcReturn(sql, "Gy_getCusBarCodeBillMain"); if(ds!=null && ds.Tables[0].Rows.Count > 0) if (ds != null && ds.Tables[0].Rows.Count > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -11062,7 +11064,7 @@ /// <returns></returns> [Route("WEBSController/Gy_getCusBarCodeBill_rushBarCode")] [HttpGet] public object Gy_getCusBarCodeBill_rushBarCode(Int64 HInterID, string HBillNo, string HBillType, string HBarCode, string HMaker, Int64 HStockOrgID,string HBarCode_Pre) public object Gy_getCusBarCodeBill_rushBarCode(Int64 HInterID, string HBillNo, string HBillType, string HBarCode, string HMaker, Int64 HStockOrgID, string HBarCode_Pre) { DataSet ds; try @@ -11249,7 +11251,7 @@ [HttpGet] public object Gy_getCusBarCodeBill_submitRushedBarCodeList(Int64 HInterID, string HBillNo, string HBillType, string HMaker, Int64 HStockOrgID) { DataSet ds; try { @@ -11428,7 +11430,7 @@ return objJsonResult; } //============================================================================================================================================= //å¼å¯äºå¡ oCn.BeginTran(); @@ -11778,7 +11780,7 @@ { string sql = "exec h_p_Gy_BarCodeConfirmBill_rushBarCode " + HInterID + ",'" + HBillNo + "','" + HBillType + "','" + HMaker + "'," + HStockOrgID + ",'" + HBarCode + "'"; ds = oCn.RunProcReturn(sql, "h_p_Gy_BarCodeConfirmBill_rushBarCode"); if(ds==null || ds.Tables[0].Rows.Count == 0) if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -12255,7 +12257,7 @@ #region æ£®æ¥·å ¶ä»å ¥åºæ«ç public string Kf_OtherInBill_SK(string sBarCode,string HCustom1) public string Kf_OtherInBill_SK(string sBarCode, string HCustom1) { string HReturnResult; SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); @@ -12308,7 +12310,8 @@ //ç产è¿ä¿®ç³è¯· model.Add("FBillTypeID", new JObject() { ["FNumber"] = "SCRKSQ004" }); //åæ®ç±»å } else { else { //æ åçäº§å ¥åºç³è¯·å model.Add("FBillTypeID", new JObject() { ["FNumber"] = "SCRUSQD" }); //åæ®ç±»å } @@ -12478,7 +12481,7 @@ return "åçå¼å¸¸ï¼å ¥åºç³è¯·ååå·:" + ",å®¡æ ¸å¤±è´¥" + result2; } } } } } } @@ -12496,7 +12499,7 @@ //è·åå ¥åºç³è¯·ååæ®å· string HBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["FBILLNO"]); //å è£ çº¿çæççäº§å ¥åºç³è¯·ååä¸èªå¨å®¡æ ¸ if (HBillNo.Substring(0,2) == "RK" ) if (HBillNo.Substring(0, 2) == "RK") { //è·åå ¥åºç³è¯·ååæ®ç¶æ string HBillStatus = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["FDOCUMENTSTATUS"]); @@ -12563,7 +12566,7 @@ //æ§è¡æ´æ°è¯å¥ oCn.RunProc(sql); } } } @@ -12577,5 +12580,104 @@ return HReturnResult; } #endregion #region ç»å®å°è½¦ä»åºä»ä½ /// <summary> /// ç»å®å°è½¦ä»åºä»ä½ /// </summary> /// <returns></returns> [Route("WEBSController/BindCarAndWH")] [HttpGet] public object BindCarAndWH( string HMaker, Int64 HWhID, Int64 HSPID, string HCarBarCode, Int64 HStockOrgID) { try { ds = oCn.RunProcReturn("exec h_p_bindingCarintoWh " + HWhID.ToString() + "," + HSPID.ToString() + ",'" + HCarBarCode + "','" + HMaker+ "'," + HStockOrgID.ToString(), "h_p_bindingCarintoWh"); 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]["HBack"]) == 1) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); 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 //转移模å [Route("WEBSController/CheckHW")] [HttpGet] public object CheckHW(int HWhID,int HSPID,int HWhID2,int HSPID2,string HBarCode,string HCarBarCode1,string HCarBarCode2,string UserID) { try { if (HCarBarCode1 == null) HCarBarCode1 = ""; if (HCarBarCode2 == null) HCarBarCode2 = ""; string sql = $"exec Transfer_Operation {HWhID},{HSPID},{HWhID2},{HSPID2},'{HBarCode}','{HCarBarCode1}','{HCarBarCode2}','{UserID}'"; ds = oCn.RunProcReturn(sql, "Transfer_Operation"); 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]["HBack"]) == 1) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); 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; } } } } WebAPI/Web.config
@@ -33,7 +33,7 @@ <!--<add key="sUrl" value="http://122.227.133.186:8090/WEBS/WebService1.asmx"/> --> <!--<add key="sUrl" value="http://192.168.80.90:9090/WEBS-WMS/WebService1.asmx"/> å®çæå¡å¨--> <!--<add key="sUrl" value="http://47.96.97.237/WEBS-WMS/WebService1.asmx"/>--> <!--æµè¯æå¡å¨--> <!--<add key="surl" value="http://localhost:8082/webs/webservice1.asmx"/> æ¬å°--> <add key="surl" value="http://localhost:8082/webs/webservice1.asmx"/> <!--æ¬å°--> <!--<add key="sUrl" value="http://192.168.110.57:81/WEBS/WebService1.asmx"/>--> <!--éé¯éæ¬å°é ç½®--> <!--<add key="surl" value="http://localhost/webs-web/webservice1.asmx" />--> <!--ç¿æ¶æ¶æ¬å°é ç½®--> <!--<add key="sUrl" value="http://192.168.1.57:8082/WEBS-WMS/WebService1.asmx"/>ä¹è±--> sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.CoreCompileInputs.cache
File was deleted sdk_dingding/TopSdk/obj/Release/TopSdk.csproj.FileListAbsolute.txt
File was deleted