iqc
lu
2024-11-08 0ce70b79695fc16f33a9f55bce857e38fa12a2ab
DevApp/Gs.DevApp/UserControl/UcLookCk.cs
@@ -12,6 +12,7 @@
        public UcLookCk()
        {
            InitializeComponent();
            lookSearchSupplier.Properties.NullText = "请选择";
            lookSearchSupplier.EditValueChanged +=
                LookSearchSupplier_EditValueChanged;
@@ -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()));
        }