From 0ce538e3c3dc01153ce1bfc2d75276881206c222 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期五, 12 十一月 2021 13:34:35 +0800 Subject: [PATCH] 产品代码上传 --- src/BLL/Demo.BillView/PRD/Pro_PPBomSave.cs | 27 ++++++++++----------------- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/BLL/Demo.BillView/PRD/Pro_PPBomSave.cs b/src/BLL/Demo.BillView/PRD/Pro_PPBomSave.cs index 214fcce..fc34140 100644 --- a/src/BLL/Demo.BillView/PRD/Pro_PPBomSave.cs +++ b/src/BLL/Demo.BillView/PRD/Pro_PPBomSave.cs @@ -2,19 +2,12 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using Kingdee.BOS.Core.Bill; using Kingdee.BOS.Core.Bill.PlugIn; -using Kingdee.BOS.Core.DynamicForm; -using Kingdee.BOS.Core.DynamicForm.PlugIn.Args; -using Kingdee.BOS.Core.Metadata; -using Kingdee.BOS.Core.Metadata.EntityElement; -using Kingdee.BOS.Orm.DataEntity; using Kingdee.BOS.ServiceHelper; using Newtonsoft.Json.Linq; -using ZD.Cloud.Logger; + using ZD.Cloud.WebApi; using Demo.Model.Model; -using System.Diagnostics; using System.Linq; using Kingdee.BOS.Core.Bill.PlugIn.Args; @@ -38,8 +31,8 @@ //var FID = this.View.Model.GetPKValue(); var fBillNo = this.View.Model.GetValue("FBILLNO"); - Stopwatch sw = new Stopwatch(); - sw.Start();//寮�濮嬭鏃� + //Stopwatch sw = new Stopwatch(); + //sw.Start();//寮�濮嬭鏃� //閿佸畾鐨勬棩璁″垝涓嶇敓鎴� try { @@ -68,7 +61,7 @@ WHERE T4.FMustQty>0 and T3.FBILLNO='{0}' ", fBillNo); - LogHelper.Info("鐢熸垚鏃ヨ鍒掔敤鏂欐竻鍗曞噯澶囨暟鎹畇ql:" + sql); + //LogHelper.Info("鐢熸垚鏃ヨ鍒掔敤鏂欐竻鍗曞噯澶囨暟鎹畇ql:" + sql); DataSet ds = DBServiceHelper.ExecuteDataSet(Context, sql); DataTable dt = ds.Tables[0]; List<DayPlanMaterial> DayPlanMaterial = new List<DayPlanMaterial>(); @@ -114,7 +107,7 @@ }); } - LogHelper.Info($"鏃ヨ鍒掔敤鏂欐竻鍗曪紝鏁版嵁鍑嗗瀹屾垚锛屼繚瀛樺埌Model瀹炰綋锛屾�昏鏁帮細{DayPlanMaterial.Count}锛岃�楁椂锛�" + sw.Elapsed); + ////LogHelper.Info($"鏃ヨ鍒掔敤鏂欐竻鍗曪紝鏁版嵁鍑嗗瀹屾垚锛屼繚瀛樺埌Model瀹炰綋锛屾�昏鏁帮細{DayPlanMaterial.Count}锛岃�楁椂锛�" + sw.Elapsed); var fidList = DayPlanMaterial.Select(x => x.FEntryID).Distinct().ToList(); int i = 1; JArray Fentity = new JArray(); @@ -171,7 +164,7 @@ Fentity.Add(model); if ((i >= 20 || i == fidList.Count) && (i % 20 == 0 || i == fidList.Count)) { - LogHelper.Info("鏃ヨ鍒掔敤鏂欐竻鍗曟壒閲忔墽琛岋紝璁板綍寰幆鐨勫綋鍓嶆潯鏁�" + i); + //LogHelper.Info("鏃ヨ鍒掔敤鏂欐竻鍗曟壒閲忔墽琛岋紝璁板綍寰幆鐨勫綋鍓嶆潯鏁�" + i); JObject jsonRoot = new JObject() { ["Creator"] = "", @@ -209,7 +202,7 @@ } if (saveIsSuc != "TRUE") { - LogHelper.Error("鏃ヨ鍒掔敤鏂欐竻鍗曞垪琛ㄧ敓鎴愬け璐�:" + jsonRoot.ToString()); + //LogHelper.Error("鏃ヨ鍒掔敤鏂欐竻鍗曞垪琛ㄧ敓鎴愬け璐�:" + jsonRoot.ToString()); this.View.ShowMessage(saveObj["Result"]["ResponseStatus"]["Errors"][0]["Message"].ToString()); } Fentity = new JArray(); @@ -217,12 +210,12 @@ i++; } } - sw.Stop();//缁撴潫璁℃椂 - LogHelper.Info("鐢熸垚鏃ヨ鍒掔敤鏂欐竻鍗曡繍琛屾�绘椂闀匡細" + sw.Elapsed); + //sw.Stop();//缁撴潫璁℃椂 + ////LogHelper.Info("鐢熸垚鏃ヨ鍒掔敤鏂欐竻鍗曡繍琛屾�绘椂闀匡細" + sw.Elapsed); } catch (Exception ex) { - LogHelper.Error("鏃ヨ鍒掔敤鏂欐竻鍗�+" + ex.Message.ToString()); + //LogHelper.Error("鏃ヨ鍒掔敤鏂欐竻鍗�+" + ex.Message.ToString()); } } catch (Exception ex) -- Gitblit v1.9.1