From 92376154334dc2c88e908c9cfc360d19f4763eda Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 06 一月 2025 09:09:45 +0800
Subject: [PATCH] 采购退货
---
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 39 insertions(+), 11 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 7e48bd4..77356cc 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -67,6 +67,23 @@
if (Parent != null) getNamespace();
}
+ private bool _isCk() {
+ Form parentForm = this.FindForm();
+ if (parentForm != null)
+ {
+ PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
+ if (specificControl != null)
+ {
+ if (specificControl.Tag.ToString() == "宸插鏍�")
+ {
+ Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇ュ崟鎹凡琚鏍革紝鏃犳硶杩涜鎿嶄綔锛�");
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
private void BtnBoHui_ItemClick(object sender, ItemClickEventArgs e)
{
if (btnBoHuiClick != null)
@@ -182,6 +199,8 @@
private void BtnChk_ItemClick(object sender, ItemClickEventArgs e)
{
+ bool bl = _isCk();
+ if (bl) return;
if (btnChkClick != null)
{
btnChkClick(this, e);
@@ -249,6 +268,8 @@
private void BtnJianYan_ItemClick(object sender, ItemClickEventArgs e)
{
+ bool bl = _isCk();
+ if (bl) return;
if (btnJianYanClick != null)
btnJianYanClick(this, e);
else
@@ -438,6 +459,7 @@
lst.Add(btnLog.Name);
lst.Add(btnPiZhun.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnBoHui.Name);
_enabledBtn(lst);
this.currentAction = "esc";
if (btnEscClick != null) btnEscClick(this, e);
@@ -464,6 +486,15 @@
lst.Add(btnFjianYan.Name);
lst.Add(btnQuery.Name);
lst.Add(btnLog.Name);
+ lst.Add(btnZhiLiangChk.Name);
+ lst.Add(btnZhiLiangFchk.Name);
+ lst.Add(btnPiZhun.Name);
+ lst.Add(btnBoHui.Name);
+ lst.Add(btnDesign.Name);
+ lst.Add(btnReport.Name);
+ lst.Add(btnKg.Name);
+ lst.Add(btnWg.Name);
+ lst.Add(btnZhongTai.Name);
_enabledBtn(lst);
}
}
@@ -480,6 +511,8 @@
private void BtnEdit_ItemClick(object sender, ItemClickEventArgs e)
{
+ bool bl = _isCk();
+ if (bl) return;
var lst = new List<string>();
lst.Add(btnSave.Name);
lst.Add(btnEsc.Name);
@@ -487,19 +520,13 @@
_enabledBtn(lst);
this.currentAction = "edit";
if (btnEdtClick != null) btnEdtClick(this, e);
- Form parentForm = this.FindForm();
- if (parentForm != null)
- {
- Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
- if (specificControl != null)
- {
- specificControl.Visible = false;
- }
- }
+
}
private void BtnDel_ItemClick(object sender, ItemClickEventArgs e)
{
+ bool bl = _isCk();
+ if (bl) return;
if (btnDelClick != null) btnDelClick(this, e);
}
@@ -519,10 +546,11 @@
Form parentForm = this.FindForm();
if (parentForm != null)
{
- Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
+ PictureBox specificControl =(PictureBox) parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
if (specificControl != null)
{
- specificControl.Visible = false;
+ specificControl.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck;
+ specificControl.Tag = "鏈鏍�";
}
}
}
--
Gitblit v1.9.3