From b084bd77d01a94c8f0a2d20c86a1f45ba7c8a23c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 19 四月 2025 14:08:05 +0800 Subject: [PATCH] 页面跳转 --- DevApp/Gs.DevApp/UserControl/UcLookOrg.cs | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs index 15ef123..5b70469 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookOrg.cs @@ -1,10 +1,7 @@ -锘縰sing DevExpress.XtraEditors; -using Gs.DevApp.Entity; +锘縰sing Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; @@ -22,7 +19,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 +79,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