Ejemplo n.º 1
0
        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp"> 应用程序对象 </param>
        /// <param name="objUser"> 当前登录用户对象 </param>
        //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser)
        //{
        //    LoadByModeForm(objApp, objUser, null);
        //}

        /// <summary>
        /// 以模式方式加载主窗体
        /// </summary>
        /// <param name="objApp">应用程序对象</param>
        /// <param name="objUser">当前登录用户对象</param>
        /// <param name="objModule">调用模块</param>
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            UI.FrmSTable frmX = null;
            if (objModule == string.Empty || objModule.Trim() == "") //默认为 User
            {
                frmX               = new FrmStockMCheck();
                frmX.ModuleRtsId   = "3401";
                frmX.ModuleRtsName = "库存盘点";
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "3401":    //单位信息管理
                    frmX               = new FrmStockMCheck();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存盘点";
                    break;

                case "3402":    //单位信息管理
                    frmX               = new frmMoving();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "移库";
                    break;

                case "3403":    //单位信息管理
                    frmX               = new FrmStockMAjust();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "库存调整";
                    break;

                case "3408":    //单位信息管理
                    frmX               = new frmBillRemove();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "调拨单管理";
                    break;

                case "3409":    //单位信息管理
                    frmX               = new frmStBadMaterial();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "不良品单管理";
                    break;

                case "5110":    //出入库汇总报表管理
                    frmX               = new frmRptInOutRece();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "出入库汇总报表";
                    break;

                case "5111":    //呆滞物料汇总
                    frmX               = new frmSlackMatCount();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "呆滞物料汇总";
                    break;

                case "3411":    //合盘管理
                    frmX               = new frmMergePallet();
                    frmX.ModuleRtsId   = objModule.Trim().ToLower();
                    frmX.ModuleRtsName = "合盘管理";
                    break;
                }
                frmX.AppInformation  = objApp;
                frmX.UserInformation = objUser;
                frmX.InitFormParameters();
                frmX.ShowDialog();
                frmX.Dispose();
            }
        }
Ejemplo n.º 2
0
        public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule)
        {
            FrmSTable table = null;

            if ((objModule == string.Empty) || (objModule.Trim() == ""))
            {
                table = new FrmStockMCheck {
                    ModuleRtsId   = "3401",
                    ModuleRtsName = "库存盘点"
                };
            }
            else
            {
                switch (objModule.Trim().ToLower())
                {
                case "3401":
                    table = new FrmStockMCheck {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "库存盘点"
                    };
                    break;

                case "3402":
                    table = new frmMoving {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "移库"
                    };
                    break;

                case "3403":
                    table = new FrmStockMAjust {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "库存调整"
                    };
                    break;

                case "3408":
                    table = new frmBillRemove {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "调拨单管理"
                    };
                    break;

                case "3409":
                    table = new frmStBadMaterial {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "不良品单管理"
                    };
                    break;

                case "5110":
                    table = new frmRptInOutRece {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "出入库汇总报表"
                    };
                    break;

                case "5111":
                    table = new frmSlackMatCount {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "呆滞物料汇总"
                    };
                    break;

                case "3411":
                    table = new frmMergePallet {
                        ModuleRtsId   = objModule.Trim().ToLower(),
                        ModuleRtsName = "合盘管理"
                    };
                    break;
                }
                table.AppInformation  = objApp;
                table.UserInformation = objUser;
                table.InitFormParameters();
                table.ShowDialog();
                table.Dispose();
            }
        }