lu
2024-12-02 05731195c2c3d5adcbefd2bc18f12ebe84b0d68a
DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -12,11 +12,12 @@
        public UcLookCk()
        {
            InitializeComponent();
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
        }
        public bool IsReadly { get; set; }
        private string _KeyFile = "";
        public string KeyFile
        {
@@ -88,8 +89,13 @@
        public void SetIdOrCode(string Code)
        {
            if (KeyFile == "depotId")
                lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim()));
            if (Code == "-1")
            {
                lookSearchSupplier.EditValue = null;
                return;
            }
            if (KeyFile.ToUpper() == "depotId".ToUpper())
                lookSearchSupplier.EditValue =Int64.Parse( ((Code.ToString().Trim())));
            else
                lookSearchSupplier.EditValue = ((Code.ToString().Trim()));
        }