From 97c16ca7943f36d1631a843df27628d5eada9eb2 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 07 三月 2025 16:09:20 +0800 Subject: [PATCH] 受托 --- DevApp/Gs.DevApp/UserControl/UcLookStaff.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs b/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs index 2fb2d17..5bb017c 100644 --- a/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs +++ b/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs @@ -41,7 +41,7 @@ private void getSuppler() { - var pgq = new PageQueryModel(1, 999999, "a.staff_no", "asc", "", " and 1=1"); + var pgq = new PageQueryModel(1, 999999, "org.FNumber asc,a.staff_no", "asc", "", " and 1=1"); var json = JsonConvert.SerializeObject(pgq); try { @@ -51,6 +51,8 @@ lookSearchSupplier.Properties.DataSource = dt; lookSearchSupplier.Properties.DisplayMember = "staffName"; lookSearchSupplier.Properties.ValueMember = "id"; + lookSearchSupplier.ForceInitialize(); + lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; } catch (Exception ex) { @@ -86,7 +88,7 @@ public void SetIdOrCode(string Code) { - if (Code == "-1") + if (Code == "-1" || string.IsNullOrEmpty(Code)) { lookSearchSupplier.EditValue = null; return; -- Gitblit v1.9.3