From c1a876432411e691ade0dd7f2792051dcdc71e39 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 11 六月 2025 17:23:14 +0800
Subject: [PATCH] iqc反审核
---
DevApp/Gs.DevApp/UserControl/UcLookStaff.cs | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs b/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs
index 2fb2d17..715b9e9 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookStaff.cs
@@ -1,17 +1,8 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.Entity;
+锘縰sing Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
namespace Gs.DevApp.UserControl
{
@@ -26,7 +17,7 @@
getSuppler();
}
- public bool IsReadly { get; set; }
+ private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
/// <summary>
/// 鏀瑰彉浜嬩欢
@@ -41,7 +32,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 +42,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 +79,7 @@
public void SetIdOrCode(string Code)
{
- if (Code == "-1")
+ if (Code == "-1" || string.IsNullOrEmpty(Code))
{
lookSearchSupplier.EditValue = null;
return;
--
Gitblit v1.9.3