From 9ec7cf906a983509fccd9ab360e1ac0e46a904eb Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 12 四月 2025 15:38:48 +0800 Subject: [PATCH] 生产退料 --- DevApp/Gs.DevApp/UserControl/UcLookOrg.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs index 15ef123..bcc6805 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs @@ -22,7 +22,7 @@ } - public bool IsReadly { get; set; } + private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } /// <summary> /// 鏀瑰彉浜嬩欢 @@ -82,12 +82,13 @@ public void SetIdOrCode(string Code) { - if (Code == "-1") + if (Code == "-1" || string.IsNullOrEmpty(Code)) { lookSearchSupplier.EditValue = null; return; } - lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim()))); + //lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim()))); + lookSearchSupplier.EditValue =(((Code.ToString().Trim()))); } -- Gitblit v1.9.3