From 56d91ab8ec14b5ff4efe304437161e06bb080908 Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期日, 07 三月 2021 09:24:11 +0800
Subject: [PATCH] 日计划用料清单 方法增加日志
---
src/BLL/Demo.BillView/PRD/Pro_SCHBSH.cs | 2 +-
src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs | 1 -
src/BLL/Demo.BillView/PRD/Pro_WorkBillPlatform.cs | 7 ++++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/BLL/Demo.BillView/PRD/Pro_SCHBSH.cs b/src/BLL/Demo.BillView/PRD/Pro_SCHBSH.cs
index 0a4aa84..03c939b 100644
--- a/src/BLL/Demo.BillView/PRD/Pro_SCHBSH.cs
+++ b/src/BLL/Demo.BillView/PRD/Pro_SCHBSH.cs
@@ -55,7 +55,7 @@
if (Convert.ToString(entryRow["FDayPlanBillNo"]) == "")
continue;
string fentryId = entryRow["FDayPlanFentryId"].ToString();
- sql = string.Format($"/*dialect*/update Sc_WorkBillSortBillSub set FRptFinishQty = (select sum(FBaseQuaQty) from T_PRD_MORPTENTRY where FDayPlanFentryId = { fentryId})where FEntryID = { fentryId} ");
+ sql = string.Format($"/*dialect*/update Sc_WorkBillSortBillSub set FRptFinishQty = (select sum(FFinishQty) from T_PRD_MORPTENTRY where FDayPlanFentryId = { fentryId})where FEntryID = { fentryId} ");
sqlList.Add(sql);
}
}
diff --git a/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs b/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
index bb3f2a8..8ed2c3e 100644
--- a/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
+++ b/src/BLL/Demo.BillView/PRD/Pro_ScDayImport.cs
@@ -524,7 +524,6 @@
}
return string.Empty;
}
-
public void WriteImportLog()
{
try
diff --git a/src/BLL/Demo.BillView/PRD/Pro_WorkBillPlatform.cs b/src/BLL/Demo.BillView/PRD/Pro_WorkBillPlatform.cs
index 615552b..d01441c 100644
--- a/src/BLL/Demo.BillView/PRD/Pro_WorkBillPlatform.cs
+++ b/src/BLL/Demo.BillView/PRD/Pro_WorkBillPlatform.cs
@@ -1408,7 +1408,7 @@
}
catch (Exception ex)
{
- this.View.ShowErrMessage("寮傚父锛�"+ ex.Message.ToString());
+ this.View.ShowErrMessage("寮傚父锛�" + ex.Message.ToString());
LogHelper.Error("铏氭嫙榻愬鍒嗘瀽璺冲嚭锛�" + ex.Message.ToString());
}
finally
@@ -1462,7 +1462,7 @@
{
this.Model.CreateNewEntryRow("FEntity");
this.Model.SetValue("FSEQ", i + 1, i);//搴忓彿
- this.Model.SetValue("FMOFBILLTYPE",Convert.ToString(dt.Rows[i]["FMOFBILLTYPE"]), i);//鐢熶骇璁㈠崟鍗曟嵁绫诲瀷
+ this.Model.SetValue("FMOFBILLTYPE", Convert.ToString(dt.Rows[i]["FMOFBILLTYPE"]), i);//鐢熶骇璁㈠崟鍗曟嵁绫诲瀷
this.Model.SetValue("FCompleteSetCount", "", i);//鎬婚綈濂楁暟閲�
this.Model.SetValue("FProOrderCount", dt.Rows[i]["FHOrderNeedQty"].ToString(), i);//鐢熶骇璁㈠崟鏁伴噺
this.Model.SetValue("FSRCBILLENTRYSEQ", dt.Rows[i]["FSRCBILLENTRYSEQ"].ToString(), i);//
@@ -1926,7 +1926,8 @@
string saveIsSuc = saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper();
if (saveIsSuc != "TRUE")
{
- LogHelper.Error(saveObj.ToString());
+ LogHelper.Error("鏃ヨ鍒掔敤鏂欐竻鍗曞垪琛ㄧ敓鎴愬け璐�:" + jsonRoot.ToString());
+ this.View.ShowMessage(saveObj["Result"]["ResponseStatus"]["Errors"][0]["Message"].ToString());
}
Fentity = new JArray();
}
--
Gitblit v1.9.1