From a931100755b55f6750d73eac7e3ccddff8b63d43 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 13 十一月 2024 12:43:49 +0800
Subject: [PATCH] 1
---
DevApp/Gs.DevApp/UserControl/UcLookItems.cs | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
index 805d7c9..016b744 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -19,11 +19,12 @@
public UcLookItems()
{
InitializeComponent();
+ lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
lookSearchSupplier.EditValueChanged +=
LookSearchSupplier_EditValueChanged;
}
-
+ public bool IsReadly { get; set; }
private string _KeyFile = "";
public string KeyFile
{
@@ -98,14 +99,24 @@
public string GetModel()
{
var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
- string id = row["itemModel"].ToString();
- return id;
+ if (row != null) {
+ string id = row["itemModel"].ToString();
+ return id;
+ }
+ return "";
}
public void SetIdOrCode(string Code)
{
+ if (Code == "-1")
+ {
+ lookSearchSupplier.EditValue = null;
+ return;
+ }
if (KeyFile == "id")
- lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
+ {
+ lookSearchSupplier.EditValue =((Code.ToString().Trim()));
+ }
else
lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
}
--
Gitblit v1.9.3