From 344613d596fe956b4ce16eb7df1683d413071b8d Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 31 十月 2024 10:51:54 +0800
Subject: [PATCH] 1
---
DevApp/Gs.DevApp/UserControl/UcLookItems.cs | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
index 805d7c9..4bb2bf3 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookItems.cs
@@ -19,6 +19,7 @@
public UcLookItems()
{
InitializeComponent();
+ lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
lookSearchSupplier.EditValueChanged +=
LookSearchSupplier_EditValueChanged;
@@ -98,12 +99,20 @@
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()));
else
--
Gitblit v1.9.3