From b2ae2d8e16c6f8daeb5853d3f31d6895f1bf8a3a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 30 十一月 2024 15:45:28 +0800
Subject: [PATCH] 1
---
DevApp/Gs.DevApp/UserControl/UcLookCk.cs | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
index 0488a2b..cea9eca 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -12,11 +12,12 @@
public UcLookCk()
{
InitializeComponent();
+ lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
lookSearchSupplier.EditValueChanged +=
LookSearchSupplier_EditValueChanged;
}
-
+ public bool IsReadly { get; set; }
private string _KeyFile = "";
public string KeyFile
{
@@ -88,8 +89,13 @@
public void SetIdOrCode(string Code)
{
- if (KeyFile == "depotId")
- lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
+ if (Code == "-1")
+ {
+ lookSearchSupplier.EditValue = null;
+ return;
+ }
+ if (KeyFile.ToUpper() == "depotId".ToUpper())
+ lookSearchSupplier.EditValue =Int64.Parse( ((Code.ToString().Trim())));
else
lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
}
--
Gitblit v1.9.3