33
jinghuanzhang
2023-04-05 d9d128f6c823954edcdefc3af81d6bca0b3c6bb6
33
4个文件已修改
554 ■■■■ 已修改文件
BaseSet/Gy_ORGANIZATIONS.cs 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DAL/ClsGy_ORGANIZATIONS_Ctl.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DAL/ClsGy_ORGANIZATIONS_View.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
NETSCM/ClsShowMod.cs 418 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BaseSet/Gy_ORGANIZATIONS.cs
@@ -459,31 +459,15 @@
        //读取类 到 控件
        private void ShowData(long sItemID)
        {
            //DAL.ClsK3_Employee_View oEmp = new DAL.ClsK3_Employee_View();
            //if (oDeptHlp.GetInfoByID(sItemID))
            //{
            //    txtHNumber.Text = oDeptHlp.omodel.HNumber.ToString();
            //    txtHHelpCode.Text = oDeptHlp.omodel.HHelpCode.ToString();
            //    txtHName.Text = oDeptHlp.omodel.HName.ToString();
            //    txtHEmpID.Tag = Convert.ToInt64(oDeptHlp.omodel.HEmpID.ToString());
            //    if (oEmp.GetInfoByID(oDeptHlp.omodel.HEmpID))
            //    {
            //        txtHEmpID.Text = oEmp.omodel.HName;
            //        txtHEmpID.Tag = oEmp.omodel.HItemID.ToString();
            //    }
            //    else
            //    {
            //        txtHEmpID.Text = "";
            //    }
            //    txtHNumber.Text = oDeptHlp.omodel.HNumber.ToString();
            //    txtHRemark.Text = oDeptHlp.omodel.HRemark;
            //    txtHBarCode.Text = oDeptHlp.omodel.HBarCode;
            //    if (oDeptHlp.omodel.HStopflag)
            //        chkHStopflag.Checked = true;
            //    else
            //        chkHStopflag.Checked = false;
            //    HItemID = oDeptHlp.omodel.HItemID;
            //}
            DAL.ClsGy_ORGANIZATIONS_View oORGANIZATIONS = new DAL.ClsGy_ORGANIZATIONS_View();
            if (oORGANIZATIONS.GetInfoByID(sItemID))
            {
                txtHNumber.Text = oORGANIZATIONS.omodel.HNumber.ToString();
                txtHName.Text = oORGANIZATIONS.omodel.HName.ToString();
                txtHNumber.Text = oORGANIZATIONS.omodel.HNumber.ToString();
                txtHRemark.Text = oORGANIZATIONS.omodel.HRemark;
                HItemID = oORGANIZATIONS.omodel.HItemID;
            }
        }
        //写入类 从控件
        private bool WriteClass()
@@ -494,24 +478,24 @@
                return false;
            }
            //检查父级是否存在
            string sParent;
            sParent = DBUtility.ClsPub.GetParentCode(txtHNumber.Text.Trim());
            if (sParent.Trim() == "")
            {
                oDept.oModel.HParentID = 0;
            }
            else
            {
                if (oDept.HavParentCode(sParent.Trim(), HItemID))
                {
                    oDept.oModel.HParentID = oDept.oModel.HItemID;
                }
                else
                {
                    MessageBox.Show("上级代码不存在或被禁用!", "提示");
                    return false;
                }
            }
            //string sParent;
            //sParent = DBUtility.ClsPub.GetParentCode(txtHNumber.Text.Trim());
            //if (sParent.Trim() == "")
            //{
            //    oDept.oModel.HParentID = 0;
            //}
            //else
            //{
            //    if (oDept.HavParentCode(sParent.Trim(), HItemID))
            //    {
            //        oDept.oModel.HParentID = oDept.oModel.HItemID;
            //    }
            //    else
            //    {
            //        MessageBox.Show("上级代码不存在或被禁用!", "提示");
            //        return false;
            //    }
            //}
            //得到短代码
            string sShortNumber;
            sShortNumber = DBUtility.ClsPub.GetShortNumber(txtHNumber.Text.Trim());
@@ -520,23 +504,23 @@
                return false;
            }
            //保存原代码
            if (oDeptHlp.GetInfoByID(HItemID))
            {
                oDept.HOldNumber = oDeptHlp.omodel.HNumber;
                //是否新代码是自己子项目的 子项目
                if (sParent.Length >= oDept.HOldNumber.Length)
                {
                    if (sParent.Substring(0, oDept.HOldNumber.ToString().Length) == oDept.HOldNumber.Trim())
                    {
                        MessageBox.Show("新代码不能是自己的下级的子项目!", "提示");
                        return false;
                    }
                }
            }
            else
            {
                oDept.HOldNumber = "";
            }
            //if (oDeptHlp.GetInfoByID(HItemID))
            //{
            //    oDept.HOldNumber = oDeptHlp.omodel.HNumber;
            //    //是否新代码是自己子项目的 子项目
            //    if (sParent.Length >= oDept.HOldNumber.Length)
            //    {
            //        if (sParent.Substring(0, oDept.HOldNumber.ToString().Length) == oDept.HOldNumber.Trim())
            //        {
            //            MessageBox.Show("新代码不能是自己的下级的子项目!", "提示");
            //            return false;
            //        }
            //    }
            //}
            //else
            //{
            //    oDept.HOldNumber = "";
            //}
            //写入信息
            oDept.oModel.HShortNumber = sShortNumber;
            oDept.oModel.HEndFlag = true;
DAL/ClsGy_ORGANIZATIONS_Ctl.cs
@@ -11,6 +11,7 @@
        //原代码 用于 替换子项目
        public string HOldNumber;
        public Model.ClsGy_ORGANIZATIONS_Model oModel = new Model.ClsGy_ORGANIZATIONS_Model();
        public WMSWeb.WebService1 oWeb = new WMSWeb.WebService1();
        //新增
        public override bool AddNew()
        {
@@ -41,10 +42,10 @@
        {
            try
            {
                oCn.BeginTran();
                oCn.RunProc("Update " + MvarItemKey + " set " +
                oWeb.Url = SCM.ClsPub1.WEBSURL;
                oWeb.getRunProc("Update " + MvarItemKey + " set " +
                    " HRemark= '" + oModel.HRemark + "' Where HItemID=" + sItemID, ref DBUtility.ClsPub.sExeReturnInfo); 
                oCn.Commit();
                return true;
            }
            catch (Exception e)
@@ -76,7 +77,7 @@
        //构造函数
        public ClsGy_ORGANIZATIONS_Ctl()
        {
            MvarItemKey = "Gy_ORGANIZATIONS";
            MvarItemKey = "xt_ORGANIZATIONS";
            MvarReportTitle = "组织设置";
            oModel = new Model.ClsGy_ORGANIZATIONS_Model();
        } 
DAL/ClsGy_ORGANIZATIONS_View.cs
@@ -9,15 +9,15 @@
    {
        //
        public Model.ClsGy_ORGANIZATIONS_Model omodel = new Model.ClsGy_ORGANIZATIONS_Model();
        //SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
        public WMSWeb.WebService1 oWeb = new WMSWeb.WebService1();
        public ClsGy_ORGANIZATIONS_View()
        {
            base.ViewNameForWeb = "h_v_Gy_ORGANIZATIONS_ForWeb";
            base.MvarReportTitle = "组织设置";
            base.MvarItemKey = "Gy_ORGANIZATIONS";
            base.SQLName = "Select HItemID,HNumber 组织代码,HName 组织,HRemark 生产基地 from Gy_ORGANIZATIONS where HStopflag=0 Order by HItemID ";
            base.MvarItemKey = "xt_ORGANIZATIONS";
            base.SQLName = "Select HItemID,HNumber 组织代码,HName 组织,HRemark 生产基地 from xt_ORGANIZATIONS where HStopflag=0 Order by HItemID ";
            //下拉SQL
            base.SQLNameForDown = " Select top 30 HItemID,HNumber 组织代码,HName 组织,HRemark 生产基地 from Gy_ORGANIZATIONS ";
            base.SQLNameForDown = " Select top 30 HItemID,HNumber 组织代码,HName 组织,HRemark 生产基地 from xt_ORGANIZATIONS ";
            base.SQLOrderForDown = "  Order by HNumber ";
            base.SQLWhereForDown = "  where HStopflag=0  ";
        }
@@ -35,13 +35,14 @@
            DataSet DS ;
            try
            {
                //DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HItemID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
                //if (DS.Tables[0].Rows.Count  == 0)
                oWeb.Url = SCM.ClsPub1.WEBSURL;
                DS = oWeb.getDataSetBySQL("Select * from " + MvarItemKey + " Where HItemID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
                if (DS.Tables[0].Rows.Count == 0)
                    return false;
                //else
                //{
                //    return GetInfo(DS);
                //}
                else
                {
                    return GetInfo(DS);
                }
            }
            catch (Exception e)
            {
@@ -81,7 +82,7 @@
                omodel.HParentID = Convert.ToInt64(DS.Tables[0].Rows[0]["HParentID"]);
                //omodel.HLevel = Convert.ToInt64(DS.Tables[0].Rows[0]["HLevel"]);
                //omodel.HEndFlag = (bool)DS.Tables[0].Rows[0]["HEndFlag"];
                omodel.HStopflag = (bool)DS.Tables[0].Rows[0]["HStopflag"];
                //omodel.HStopflag = (bool)DS.Tables[0].Rows[0]["HStopflag"];
                omodel.HRemark = DS.Tables[0].Rows[0]["HRemark"].ToString().Trim(); 
                //omodel.HUseFlag = DS.Tables[0].Rows[0]["HUseFlag"].ToString().Trim(); //20141020
                return true;
NETSCM/ClsShowMod.cs
@@ -6493,217 +6493,217 @@
                        oGy_CusNumberRelationList.Show();
                        oMainForm.AddTabPage(oGy_CusNumberRelationList);
                        break;
        //            case "gy_mouldware":
        //                //权限
        //                Gy_MouldWare oGy_MouldWare = new Gy_MouldWare();
        //                oGy_MouldWare.MdiParent = oMain;
        //                oGy_MouldWare.Show();
        //                oMainForm.AddTabPage(oGy_MouldWare);
        //                break;
        //            case "gy_technologyparameter":
        //                Gy_TechnologyParameter oGy_TechnologyParameter = new Gy_TechnologyParameter();
        //                oGy_TechnologyParameter.MdiParent = oMain;
        //                oGy_TechnologyParameter.Show();
        //                oMainForm.AddTabPage(oGy_TechnologyParameter);
        //                break;
        //            case "gy_technologyparameterunit":
        //                Gy_TechnologyParameterUnit oGy_TechnologyParameterUnit = new Gy_TechnologyParameterUnit();
        //                oGy_TechnologyParameterUnit.MdiParent = oMain;
        //                oGy_TechnologyParameterUnit.Show();
        //                oMainForm.AddTabPage(oGy_TechnologyParameterUnit);
        //                break;
        //            case "gy_techparambyproc":
        //                Gy_TechParamByProc oGy_TechParamByProc = new Gy_TechParamByProc();
        //                oGy_TechParamByProc.MdiParent = oMain;
        //                oGy_TechParamByProc.Show();
        //                oMainForm.AddTabPage(oGy_TechParamByProc);
        //                break;
        //            case "gy_techparambyproclist":
        //                Gy_TechParamByProcList oGy_TechParamByProcList = new Gy_TechParamByProcList();
        //                oGy_TechParamByProcList.MdiParent = oMain;
        //                oGy_TechParamByProcList.Show();
        //                oMainForm.AddTabPage(oGy_TechParamByProcList);
        //                break;
        //            case "gy_virtualwarehouse":
        //                Gy_VirtualWarehouse oGy_VirtualWarehouse = new Gy_VirtualWarehouse();
        //                oGy_VirtualWarehouse.MdiParent = oMain;
        //                oGy_VirtualWarehouse.Show();
        //                oMainForm.AddTabPage(oGy_VirtualWarehouse);
        //                break;
        //            case "gy_virtualstockclass":
        //                Gy_VirtualStockClass oGy_VirtualStockClass = new Gy_VirtualStockClass();
        //                oGy_VirtualStockClass.MdiParent = oMain;
        //                oGy_VirtualStockClass.Show();
        //                oMainForm.AddTabPage(oGy_VirtualStockClass);
        //                break;
        //            case "gy_virtualstockplacegroup":
        //                Gy_VirtualStockPlaceGroup oGy_VirtualStockPlaceGroup = new Gy_VirtualStockPlaceGroup();
        //                oGy_VirtualStockPlaceGroup.MdiParent = oMain;
        //                oGy_VirtualStockPlaceGroup.Show();
        //                oMainForm.AddTabPage(oGy_VirtualStockPlaceGroup);
        //                break;
        //            case "gy_virtualstockplace":
        //                Gy_VirtualStockPlace oGy_VirtualStockPlace = new Gy_VirtualStockPlace();
        //                oGy_VirtualStockPlace.MdiParent = oMain;
        //                oGy_VirtualStockPlace.Show();
        //                oMainForm.AddTabPage(oGy_VirtualStockPlace);
        //                break;
                    case "gy_organizations":
                        //权限
                        Gy_ORGANIZATIONS oGy_ORGANIZATIONS = new Gy_ORGANIZATIONS();
                        oGy_ORGANIZATIONS.MdiParent = oMain;
                        oGy_ORGANIZATIONS.Show();
                        oMainForm.AddTabPage(oGy_ORGANIZATIONS);
                        break;
                    //            case "gy_technologyparameter":
                    //                Gy_TechnologyParameter oGy_TechnologyParameter = new Gy_TechnologyParameter();
                    //                oGy_TechnologyParameter.MdiParent = oMain;
                    //                oGy_TechnologyParameter.Show();
                    //                oMainForm.AddTabPage(oGy_TechnologyParameter);
                    //                break;
                    //            case "gy_technologyparameterunit":
                    //                Gy_TechnologyParameterUnit oGy_TechnologyParameterUnit = new Gy_TechnologyParameterUnit();
                    //                oGy_TechnologyParameterUnit.MdiParent = oMain;
                    //                oGy_TechnologyParameterUnit.Show();
                    //                oMainForm.AddTabPage(oGy_TechnologyParameterUnit);
                    //                break;
                    //            case "gy_techparambyproc":
                    //                Gy_TechParamByProc oGy_TechParamByProc = new Gy_TechParamByProc();
                    //                oGy_TechParamByProc.MdiParent = oMain;
                    //                oGy_TechParamByProc.Show();
                    //                oMainForm.AddTabPage(oGy_TechParamByProc);
                    //                break;
                    //            case "gy_techparambyproclist":
                    //                Gy_TechParamByProcList oGy_TechParamByProcList = new Gy_TechParamByProcList();
                    //                oGy_TechParamByProcList.MdiParent = oMain;
                    //                oGy_TechParamByProcList.Show();
                    //                oMainForm.AddTabPage(oGy_TechParamByProcList);
                    //                break;
                    //            case "gy_virtualwarehouse":
                    //                Gy_VirtualWarehouse oGy_VirtualWarehouse = new Gy_VirtualWarehouse();
                    //                oGy_VirtualWarehouse.MdiParent = oMain;
                    //                oGy_VirtualWarehouse.Show();
                    //                oMainForm.AddTabPage(oGy_VirtualWarehouse);
                    //                break;
                    //            case "gy_virtualstockclass":
                    //                Gy_VirtualStockClass oGy_VirtualStockClass = new Gy_VirtualStockClass();
                    //                oGy_VirtualStockClass.MdiParent = oMain;
                    //                oGy_VirtualStockClass.Show();
                    //                oMainForm.AddTabPage(oGy_VirtualStockClass);
                    //                break;
                    //            case "gy_virtualstockplacegroup":
                    //                Gy_VirtualStockPlaceGroup oGy_VirtualStockPlaceGroup = new Gy_VirtualStockPlaceGroup();
                    //                oGy_VirtualStockPlaceGroup.MdiParent = oMain;
                    //                oGy_VirtualStockPlaceGroup.Show();
                    //                oMainForm.AddTabPage(oGy_VirtualStockPlaceGroup);
                    //                break;
                    //            case "gy_virtualstockplace":
                    //                Gy_VirtualStockPlace oGy_VirtualStockPlace = new Gy_VirtualStockPlace();
                    //                oGy_VirtualStockPlace.MdiParent = oMain;
                    //                oGy_VirtualStockPlace.Show();
                    //                oMainForm.AddTabPage(oGy_VirtualStockPlace);
                    //                break;
        //            case "gy_barcoderulebill":
        //                //权限
        //                Gy_BarCodeRuleBill oGy_BarCodeRuleBill = new Gy_BarCodeRuleBill();
        //                oGy_BarCodeRuleBill.MdiParent = oMain;
        //                oGy_BarCodeRuleBill.Show();
        //                oMainForm.AddTabPage(oGy_BarCodeRuleBill);
        //                break;
        //            case "gy_datain_stockplace":
        //                //权限
        //                Gy_DataIn_StockPlace oGy_DataIn_StockPlace = new Gy_DataIn_StockPlace();
        //                oGy_DataIn_StockPlace.MdiParent = oMain;
        //                oGy_DataIn_StockPlace.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_StockPlace);
        //                break;
        //            case "gy_datain_warehouse":
        //                //权限
        //                Gy_DataIn_Warehouse oGy_DataIn_Warehouse = new Gy_DataIn_Warehouse();
        //                oGy_DataIn_Warehouse.MdiParent = oMain;
        //                oGy_DataIn_Warehouse.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Warehouse);
        //                break;
                    //            case "gy_barcoderulebill":
                    //                //权限
                    //                Gy_BarCodeRuleBill oGy_BarCodeRuleBill = new Gy_BarCodeRuleBill();
                    //                oGy_BarCodeRuleBill.MdiParent = oMain;
                    //                oGy_BarCodeRuleBill.Show();
                    //                oMainForm.AddTabPage(oGy_BarCodeRuleBill);
                    //                break;
                    //            case "gy_datain_stockplace":
                    //                //权限
                    //                Gy_DataIn_StockPlace oGy_DataIn_StockPlace = new Gy_DataIn_StockPlace();
                    //                oGy_DataIn_StockPlace.MdiParent = oMain;
                    //                oGy_DataIn_StockPlace.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_StockPlace);
                    //                break;
                    //            case "gy_datain_warehouse":
                    //                //权限
                    //                Gy_DataIn_Warehouse oGy_DataIn_Warehouse = new Gy_DataIn_Warehouse();
                    //                oGy_DataIn_Warehouse.MdiParent = oMain;
                    //                oGy_DataIn_Warehouse.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Warehouse);
                    //                break;
        //            case "gy_matemouldinfo":
        //                Gy_MateMouldInfo oGy_MateMouldInfo = new Gy_MateMouldInfo();
        //                oGy_MateMouldInfo.MdiParent = oMain;
        //                oGy_MateMouldInfo.Show();
        //                oMainForm.AddTabPage(oGy_MateMouldInfo);
        //                break;
        //            case "gy_matemouldinfolist":
        //                Gy_MateMouldInfoList oGy_MateMouldInfoList = new Gy_MateMouldInfoList();
        //                oGy_MateMouldInfoList.MdiParent = oMain;
        //                oGy_MateMouldInfoList.Show();
        //                oMainForm.AddTabPage(oGy_MateMouldInfoList);
        //                break;
        //            case "gy_datain_matepricesup_k3":
        //                //权限
        //                Gy_DataIn_MatePriceSup_K3 oGy_DataIn_MatePriceSup_K3 = new Gy_DataIn_MatePriceSup_K3();
        //                oGy_DataIn_MatePriceSup_K3.MdiParent = oMain;
        //                oGy_DataIn_MatePriceSup_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_MatePriceSup_K3);
        //                break;
        //            case "gy_datain_matepricecus_k3":
        //                //权限
        //                Gy_DataIn_MatePriceCus_K3 oGy_DataIn_MatePriceCus_K3 = new Gy_DataIn_MatePriceCus_K3();
        //                oGy_DataIn_MatePriceCus_K3.MdiParent = oMain;
        //                oGy_DataIn_MatePriceCus_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_MatePriceCus_K3);
        //                break;
        //            case "gy_datain_warehouse_k3":
        //                //权限
        //                Gy_DataIn_Warehouse_K3 oGy_DataIn_Warehouse_K3 = new Gy_DataIn_Warehouse_K3();
        //                oGy_DataIn_Warehouse_K3.MdiParent = oMain;
        //                oGy_DataIn_Warehouse_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Warehouse_K3);
        //                break;
        //            case "gy_datain_material_k3":
        //                //权限
        //                Gy_DataIn_Material_K3 oGy_DataIn_Material_K3 = new Gy_DataIn_Material_K3();
        //                oGy_DataIn_Material_K3.MdiParent = oMain;
        //                oGy_DataIn_Material_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Material_K3);
        //                break;
        //            case "gy_datain_customer_k3":
        //                //权限
        //                Gy_DataIn_Customer_K3 oGy_DataIn_Customer_K3 = new Gy_DataIn_Customer_K3();
        //                oGy_DataIn_Customer_K3.MdiParent = oMain;
        //                oGy_DataIn_Customer_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Customer_K3);
        //                break;
        //            case "gy_datain_supplier_k3":
        //                //权限
        //                Gy_DataIn_Supplier_K3 oGy_DataIn_Supplier_K3 = new Gy_DataIn_Supplier_K3();
        //                oGy_DataIn_Supplier_K3.MdiParent = oMain;
        //                oGy_DataIn_Supplier_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Supplier_K3);
        //                break;
        //            case "gy_datain_employee_k3":
        //                //权限
        //                Gy_DataIn_Employee_K3 oGy_DataIn_Employee_K3 = new Gy_DataIn_Employee_K3();
        //                oGy_DataIn_Employee_K3.MdiParent = oMain;
        //                oGy_DataIn_Employee_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Employee_K3);
        //                break;
        //            case "gy_datain_department_k3":
        //                //权限
        //                Gy_DataIn_Department_K3 oGy_DataIn_Department_K3 = new Gy_DataIn_Department_K3();
        //                oGy_DataIn_Department_K3.MdiParent = oMain;
        //                oGy_DataIn_Department_K3.Show();
        //                oMainForm.AddTabPage(oGy_DataIn_Department_K3);
        //                break;
        //            case "gy_salepresentratelist":
        //                Gy_SalePresentRateList oGy_SalePresentRateList = new Gy_SalePresentRateList();
        //                oGy_SalePresentRateList.MdiParent = oMain;
        //                oGy_SalePresentRateList.Show();
        //                oMainForm.AddTabPage(oGy_SalePresentRateList);
        //                break;
        //            case "gy_icbombilllist":
        //                Gy_ICBomBillList oGy_ICBomBillList = new Gy_ICBomBillList();
        //                oGy_ICBomBillList.MdiParent = oMain;
        //                oGy_ICBomBillList.Show();
        //                oMainForm.AddTabPage(oGy_ICBomBillList);
        //                break;
        //            case "gy_icbombill":
        //                Gy_ICBomBill oGy_ICBomBill = new Gy_ICBomBill();
        //                oGy_ICBomBill.ShowDialog();
        //                break;
        //            case "gy_icbomgroup":
        //                Gy_ICBomGroup oGy_ICBomGroup = new Gy_ICBomGroup();
        //                oGy_ICBomGroup.MdiParent = oMain;
        //                oGy_ICBomGroup.Show();
        //                oMainForm.AddTabPage(oGy_ICBomGroup);
        //                break;
        //            case "gy_workcentersourcebill":
        //                Gy_WorkCenterSourceBill oGy_WorkCenterSourceBill = new Gy_WorkCenterSourceBill();
        //                oGy_WorkCenterSourceBill.MdiParent = oMain;
        //                oGy_WorkCenterSourceBill.Show();
        //                oMainForm.AddTabPage(oGy_WorkCenterSourceBill);
        //                break;
        //            case "gy_procpricelist":
        //                //权限
        //                Gy_ProcPriceList oGy_ProcPriceList = new Gy_ProcPriceList();
        //                oGy_ProcPriceList.MdiParent = oMain;
        //                oGy_ProcPriceList.Show();
        //                oMainForm.AddTabPage(oGy_ProcPriceList);
        //                break;
        //            case "gy_classtimeprjgroup":
        //                Gy_ClassTimePrjGroup oGy_ClassTimePrjGroup = new Gy_ClassTimePrjGroup();
        //                oGy_ClassTimePrjGroup.MdiParent = oMain;
        //                oGy_ClassTimePrjGroup.Show();
        //                oMainForm.AddTabPage(oGy_ClassTimePrjGroup);
        //                break;
        //            case "gy_matenumrelation":
        //                Gy_MateNumRelation oGy_MateNumRelation = new Gy_MateNumRelation();
        //                oGy_MateNumRelation.MdiParent = oMain;
        //                oGy_MateNumRelation.Show();
        //                oMainForm.AddTabPage(oGy_MateNumRelation);
        //                break;
        //            case "gy_procpricerela":
        //                Gy_ProcPriceRela oGy_ProcPriceRela = new Gy_ProcPriceRela();
        //                oGy_ProcPriceRela.MdiParent = oMain;
        //                oGy_ProcPriceRela.Show();
        //                oMainForm.AddTabPage(oGy_ProcPriceRela);
        //                break;
        //            case "gy_procpricerelagroup":
        //                Gy_ProcPriceRelaGroup oGy_ProcPriceRelaGroup = new Gy_ProcPriceRelaGroup();
        //                oGy_ProcPriceRelaGroup.MdiParent = oMain;
        //                oGy_ProcPriceRelaGroup.Show();
        //                oMainForm.AddTabPage(oGy_ProcPriceRelaGroup);
        //                break;
        //            case "gy_stockplacegroup":
        //                Gy_StockPlaceGroup oGy_StockPlaceGroup = new Gy_StockPlaceGroup();
        //                oGy_StockPlaceGroup.MdiParent = oMain;
        //                oGy_StockPlaceGroup.Show();
        //                oMainForm.AddTabPage(oGy_StockPlaceGroup);
        //                break;
                    //            case "gy_matemouldinfo":
                    //                Gy_MateMouldInfo oGy_MateMouldInfo = new Gy_MateMouldInfo();
                    //                oGy_MateMouldInfo.MdiParent = oMain;
                    //                oGy_MateMouldInfo.Show();
                    //                oMainForm.AddTabPage(oGy_MateMouldInfo);
                    //                break;
                    //            case "gy_matemouldinfolist":
                    //                Gy_MateMouldInfoList oGy_MateMouldInfoList = new Gy_MateMouldInfoList();
                    //                oGy_MateMouldInfoList.MdiParent = oMain;
                    //                oGy_MateMouldInfoList.Show();
                    //                oMainForm.AddTabPage(oGy_MateMouldInfoList);
                    //                break;
                    //            case "gy_datain_matepricesup_k3":
                    //                //权限
                    //                Gy_DataIn_MatePriceSup_K3 oGy_DataIn_MatePriceSup_K3 = new Gy_DataIn_MatePriceSup_K3();
                    //                oGy_DataIn_MatePriceSup_K3.MdiParent = oMain;
                    //                oGy_DataIn_MatePriceSup_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_MatePriceSup_K3);
                    //                break;
                    //            case "gy_datain_matepricecus_k3":
                    //                //权限
                    //                Gy_DataIn_MatePriceCus_K3 oGy_DataIn_MatePriceCus_K3 = new Gy_DataIn_MatePriceCus_K3();
                    //                oGy_DataIn_MatePriceCus_K3.MdiParent = oMain;
                    //                oGy_DataIn_MatePriceCus_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_MatePriceCus_K3);
                    //                break;
                    //            case "gy_datain_warehouse_k3":
                    //                //权限
                    //                Gy_DataIn_Warehouse_K3 oGy_DataIn_Warehouse_K3 = new Gy_DataIn_Warehouse_K3();
                    //                oGy_DataIn_Warehouse_K3.MdiParent = oMain;
                    //                oGy_DataIn_Warehouse_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Warehouse_K3);
                    //                break;
                    //            case "gy_datain_material_k3":
                    //                //权限
                    //                Gy_DataIn_Material_K3 oGy_DataIn_Material_K3 = new Gy_DataIn_Material_K3();
                    //                oGy_DataIn_Material_K3.MdiParent = oMain;
                    //                oGy_DataIn_Material_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Material_K3);
                    //                break;
                    //            case "gy_datain_customer_k3":
                    //                //权限
                    //                Gy_DataIn_Customer_K3 oGy_DataIn_Customer_K3 = new Gy_DataIn_Customer_K3();
                    //                oGy_DataIn_Customer_K3.MdiParent = oMain;
                    //                oGy_DataIn_Customer_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Customer_K3);
                    //                break;
                    //            case "gy_datain_supplier_k3":
                    //                //权限
                    //                Gy_DataIn_Supplier_K3 oGy_DataIn_Supplier_K3 = new Gy_DataIn_Supplier_K3();
                    //                oGy_DataIn_Supplier_K3.MdiParent = oMain;
                    //                oGy_DataIn_Supplier_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Supplier_K3);
                    //                break;
                    //            case "gy_datain_employee_k3":
                    //                //权限
                    //                Gy_DataIn_Employee_K3 oGy_DataIn_Employee_K3 = new Gy_DataIn_Employee_K3();
                    //                oGy_DataIn_Employee_K3.MdiParent = oMain;
                    //                oGy_DataIn_Employee_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Employee_K3);
                    //                break;
                    //            case "gy_datain_department_k3":
                    //                //权限
                    //                Gy_DataIn_Department_K3 oGy_DataIn_Department_K3 = new Gy_DataIn_Department_K3();
                    //                oGy_DataIn_Department_K3.MdiParent = oMain;
                    //                oGy_DataIn_Department_K3.Show();
                    //                oMainForm.AddTabPage(oGy_DataIn_Department_K3);
                    //                break;
                    //            case "gy_salepresentratelist":
                    //                Gy_SalePresentRateList oGy_SalePresentRateList = new Gy_SalePresentRateList();
                    //                oGy_SalePresentRateList.MdiParent = oMain;
                    //                oGy_SalePresentRateList.Show();
                    //                oMainForm.AddTabPage(oGy_SalePresentRateList);
                    //                break;
                    //            case "gy_icbombilllist":
                    //                Gy_ICBomBillList oGy_ICBomBillList = new Gy_ICBomBillList();
                    //                oGy_ICBomBillList.MdiParent = oMain;
                    //                oGy_ICBomBillList.Show();
                    //                oMainForm.AddTabPage(oGy_ICBomBillList);
                    //                break;
                    //            case "gy_icbombill":
                    //                Gy_ICBomBill oGy_ICBomBill = new Gy_ICBomBill();
                    //                oGy_ICBomBill.ShowDialog();
                    //                break;
                    //            case "gy_icbomgroup":
                    //                Gy_ICBomGroup oGy_ICBomGroup = new Gy_ICBomGroup();
                    //                oGy_ICBomGroup.MdiParent = oMain;
                    //                oGy_ICBomGroup.Show();
                    //                oMainForm.AddTabPage(oGy_ICBomGroup);
                    //                break;
                    //            case "gy_workcentersourcebill":
                    //                Gy_WorkCenterSourceBill oGy_WorkCenterSourceBill = new Gy_WorkCenterSourceBill();
                    //                oGy_WorkCenterSourceBill.MdiParent = oMain;
                    //                oGy_WorkCenterSourceBill.Show();
                    //                oMainForm.AddTabPage(oGy_WorkCenterSourceBill);
                    //                break;
                    //            case "gy_procpricelist":
                    //                //权限
                    //                Gy_ProcPriceList oGy_ProcPriceList = new Gy_ProcPriceList();
                    //                oGy_ProcPriceList.MdiParent = oMain;
                    //                oGy_ProcPriceList.Show();
                    //                oMainForm.AddTabPage(oGy_ProcPriceList);
                    //                break;
                    //            case "gy_classtimeprjgroup":
                    //                Gy_ClassTimePrjGroup oGy_ClassTimePrjGroup = new Gy_ClassTimePrjGroup();
                    //                oGy_ClassTimePrjGroup.MdiParent = oMain;
                    //                oGy_ClassTimePrjGroup.Show();
                    //                oMainForm.AddTabPage(oGy_ClassTimePrjGroup);
                    //                break;
                    //            case "gy_matenumrelation":
                    //                Gy_MateNumRelation oGy_MateNumRelation = new Gy_MateNumRelation();
                    //                oGy_MateNumRelation.MdiParent = oMain;
                    //                oGy_MateNumRelation.Show();
                    //                oMainForm.AddTabPage(oGy_MateNumRelation);
                    //                break;
                    //            case "gy_procpricerela":
                    //                Gy_ProcPriceRela oGy_ProcPriceRela = new Gy_ProcPriceRela();
                    //                oGy_ProcPriceRela.MdiParent = oMain;
                    //                oGy_ProcPriceRela.Show();
                    //                oMainForm.AddTabPage(oGy_ProcPriceRela);
                    //                break;
                    //            case "gy_procpricerelagroup":
                    //                Gy_ProcPriceRelaGroup oGy_ProcPriceRelaGroup = new Gy_ProcPriceRelaGroup();
                    //                oGy_ProcPriceRelaGroup.MdiParent = oMain;
                    //                oGy_ProcPriceRelaGroup.Show();
                    //                oMainForm.AddTabPage(oGy_ProcPriceRelaGroup);
                    //                break;
                    //            case "gy_stockplacegroup":
                    //                Gy_StockPlaceGroup oGy_StockPlaceGroup = new Gy_StockPlaceGroup();
                    //                oGy_StockPlaceGroup.MdiParent = oMain;
                    //                oGy_StockPlaceGroup.Show();
                    //                oMainForm.AddTabPage(oGy_StockPlaceGroup);
                    //                break;
                    case "gy_stockplace":
                        Gy_StockPlace oGy_StockPlace = new Gy_StockPlace();
                        oGy_StockPlace.MdiParent = oMain;