From 80fca75dc87026fc0ef2a634e1f08927339cde8a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 14 四月 2025 08:10:34 +0800
Subject: [PATCH] 打印计算
---
DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
index af5c42a..2643608 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookSupplier.cs
@@ -20,7 +20,7 @@
lookSearchSupplier.EditValueChanged +=
LookSearchSupplier_EditValueChanged;
}
- public bool IsReadly { get; set; }
+ private bool _rdy; public bool IsReadly { set{ _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
/// <summary>
/// 鏀瑰彉浜嬩欢
@@ -65,6 +65,7 @@
lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
if (!string.IsNullOrEmpty(_dftVale))
SetIdOrCode(_dftVale);
+
}
catch (Exception ex)
{
@@ -106,7 +107,8 @@
return;
}
// lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
- lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
+ if (!string.IsNullOrEmpty(Code))
+ lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
}
}
--
Gitblit v1.9.3