zrg
2024-01-09 ade73bb3949d5634fd6e34f2dc416b15096bcbc5
NETERPNoWin/Frm_MESSetIni.cs
@@ -21,6 +21,8 @@
            ClsIni oIni = new ClsIni();
            ClsIni.WriteIni("Dept", "DeptID", this.txtHDeptID.Tag.ToString(), Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            ClsIni.WriteIni("Dept", "DeptName", this.txtHDeptID.Text.Trim(), Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            ClsIni.WriteIni("Warehouse", "HWhID", this.txtHWhID.Tag.ToString(), Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            ClsIni.WriteIni("Warehouse", "HWhName", this.txtHWhID.Text.Trim(), Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            ClsIni.WriteIni("OPenWin", "gnmc", this.txtHOPWin.Text.Trim(), Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            this.Close();
        }
@@ -49,15 +51,33 @@
            ClsIni oIni = new ClsIni();
            string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            string sName = ClsIni.ReadIni("Dept", "DeptName", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            string sHWhID = ClsIni.ReadIni("Warehouse", "HWhID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            string sHWhName = ClsIni.ReadIni("Warehouse", "HWhName", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            string sWinName = ClsIni.ReadIni("OPenWin", "gnmc", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
            txtHDeptID.Tag = sID;
            txtHDeptID.Text = sName;
            txtHWhID.Tag = sHWhID;
            txtHWhID.Text = sHWhName;
            txtHOPWin.Text = sWinName;
        }
        private void button1_Click(object sender, EventArgs e)
        private void cmdHWhID_Click(object sender, EventArgs e)
        {
            DAL.ClsGy_Warehouse_View oWarehouse = new DAL.ClsGy_Warehouse_View();
            if (oWarehouse.RefreshView())
            {
                this.txtHWhID.Text = oWarehouse.oModel.HName;
                this.txtHWhID.Tag = oWarehouse.oModel.HItemID.ToString();
            }
            else
            {
                this.txtHWhID.Text = "";
            }
        }
        private void txtHWhID_TextChanged(object sender, EventArgs e)
        {
            BLL.ClsPub_BLL.Sub_ClearText(txtHWhID);
        }
    }
}