From ac46be7a67371ee4fd9b5ceeb9a14161a75d49a9 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 25 十二月 2024 16:51:10 +0800
Subject: [PATCH] 期初物料条码打印
---
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 40 ++++++++++++++++++++++++++++++++++++----
1 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 2657a09..9ba0438 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -623,6 +623,17 @@
txt.Enabled = false;
continue;
}
+ //鑷畾濮斿
+ if (colType is UcLookWwgd)
+ {
+ var txt = colType as UcLookWwgd;
+ txt.SetIdOrCode(strVal);
+ if (txt.IsReadly == false)
+ txt.Enabled = !isEdt;
+ else
+ txt.Enabled = false;
+ continue;
+ }
if (colType is SimpleButton)
{
var txt = colType as SimpleButton;
@@ -739,7 +750,6 @@
if (ctrl is CheckBox)
{
var txt = ctrl as CheckBox;
- //txt.Checked = false;
txt.Enabled = !isEdt;
}
if (ctrl is CheckEdit)
@@ -861,6 +871,14 @@
txt.Enabled = !isEdt;
continue;
}
+ //鑷畾濮斿
+ if (ctrl is UcLookWwgd)
+ {
+ var txt = ctrl as UcLookWwgd;
+ txt.SetIdOrCode("-1");
+ txt.Enabled = !isEdt;
+ continue;
+ }
if (ctrl is SimpleButton)
{
var txt = ctrl as SimpleButton;
@@ -897,7 +915,7 @@
if (colmn.Tag!=null && colmn.Tag.ToString().EndsWith("edit"))
colmn.OptionsColumn.ReadOnly = isEdt;
else
- colmn.OptionsColumn.ReadOnly = !isEdt;
+ colmn.OptionsColumn.ReadOnly = isEdt;
}
}
}
@@ -1093,7 +1111,16 @@
txt.Enabled = false;
continue;
}
-
+ //鑷畾濮斿
+ if (ctrl is UcLookWwgd)
+ {
+ var txt = ctrl as UcLookWwgd;
+ if (txt.IsReadly == false)
+ txt.Enabled = !isEdt;
+ else
+ txt.Enabled = false;
+ continue;
+ }
if (ctrl is SimpleButton)
{
var txt = ctrl as SimpleButton;
@@ -1286,7 +1313,12 @@
return 1;
return 0;
}
-
+ public static bool ToBoole(string str)
+ {
+ if (str.ToUpper() == "true".ToUpper())
+ return true;
+ return false;
+ }
public string GetIsNullOrEmpty(string str)
{
if (string.IsNullOrEmpty(str.Trim()))
--
Gitblit v1.9.3