fqc
lu
2025-04-08 cdca5a70b3fac5f804a6eabb7a3976f8c00e35e8
DevApp/Gs.DevApp/UserControl/UcLookStaff.cs
@@ -26,7 +26,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 +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;