From 9ac8dc11710220c2e48b933fbdc7f1751b00bfe6 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期三, 15 十月 2025 13:18:37 +0800
Subject: [PATCH] 委外领料增加字段,增加打印
---
DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 51 insertions(+), 1 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs b/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs
index 31b2039..af1ffc8 100644
--- a/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs
@@ -36,6 +36,7 @@
toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
+ toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
this.toolBarMenu1.getXmlConfig();
Form parentForm = this.FindForm();
Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
@@ -52,10 +53,23 @@
}, lbGuid);
getPageList(1);
pageBar1.PagerEvent += PageBar1_PagerEvent;
+ txt_orgId.EditChanged += (s, e) =>
+ {
+ var orgId = txt_orgId.GetId();
+ if (string.IsNullOrEmpty(orgId))
+ return;
+ txt_wwGys.getSuppler(orgId, txt_wwGys.GetId());
+ };
//閫夋嫨闇�瑕佸叆搴撶殑鏄庣粏
btnSelect.Click += (s, e) =>
{
- var frm = new UcWwBlclSelectAll();
+ if (string.IsNullOrEmpty(txt_wwGys.GetId()))
+ {
+ MsgHelper.ShowError("璇烽�夋嫨渚涘簲鍟嗭紒");
+ txt_wwGys.Focus();
+ return;
+ }
+ var frm = new UcWwBlclSelectAll(txt_orgId.GetId(), txt_wwGys.GetId());
//璧嬪�肩粰鏄庣粏琛�
frm.UpdateParent += (ss, ee) =>
{
@@ -285,11 +299,25 @@
txt_bl017.Focus();
return;
}
+ if (string.IsNullOrEmpty(txt_orgId.GetId()))
+ {
+ MsgHelper.ShowError("璇烽�夋嫨缁勭粐锛�");
+ txt_orgId.Focus();
+ return;
+ }
+ if (string.IsNullOrEmpty(txt_wwGys.GetId()))
+ {
+ MsgHelper.ShowError("璇烽�夋嫨渚涘簲鍟嗭紒");
+ txt_wwGys.Focus();
+ return;
+ }
var _obj = new
{
guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓
inYy = txt_bl007.Text.Trim(),//鍘熷洜
inType = txt_bl017.Text.Trim(),//鍑哄簱绫诲埆
+ inOrgId = txt_orgId.GetId(),
+ inWwGys = txt_wwGys.GetId(),
list = new List<dynamic>(),
};
gvMx1.CloseEditor();
@@ -571,5 +599,27 @@
}
}
}
+
+ private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
+ {
+ //guidKey, rptParameter
+ string rowGuid, rowName;
+ (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+ lbGuid, txt_blNo, gridView1, "blNo");
+ if (string.IsNullOrEmpty(rowGuid))
+ {
+ MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+ return;
+ }
+ this.toolBarMenu1.rptParameter = "rpt_WWBL{"
+ + ""
+ + "," + ""
+ + "," + ""
+ + "," + ""
+ + "," + ""
+ + "}";
+ this.toolBarMenu1.guidKey = rowGuid;
+
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3