Example #1
0
        /// <summary>
        /// 打开窗口
        /// </summary>
        /// <param name="itemlink"></param>
        private void OpenFrm(NavBarItemLink itemlink)
        {
            if (null == itemlink||string.IsNullOrEmpty(itemlink.Caption))
                return;
            foreach (Form fr in this.MdiChildren)
            {
                fr.Close();
            }
            NameObjectList pstrans = new NameObjectList();
            pstrans["功能单元"] = itemlink.Caption;
            BindManager.setTransParam(pstrans);
            switch (itemlink.Caption)
            {
                //系统配置
                case "卡片参数配置":
                    FrmCardParam CardParam = new FrmCardParam();
                    CardParam.MdiParent = this;
                    CardParam.WindowState = FormWindowState.Maximized;
                    CardParam.Show();
                    break;
                //停车场
                case "入场记录和图像":
                    ParkMgr.FrmInQueryManage InQueryManage = new Granity.granityMgr.ParkMgr.FrmInQueryManage();
                    InQueryManage.MdiParent = this;
                    InQueryManage.WindowState = FormWindowState.Maximized;
                    InQueryManage.Show();
                    break;

                case "出场记录和图像":
                    FrmOutQueryManage OutQueryManage = new FrmOutQueryManage();
                    OutQueryManage.MdiParent = this;
                    OutQueryManage.WindowState = FormWindowState.Maximized;
                    OutQueryManage.Show();
                    break;

                case "场内停车记录":
                    ParkMgr.FrmQueryManage QueryManage = new Granity.granityMgr.ParkMgr.FrmQueryManage();
                    QueryManage.MdiParent = this;
                    QueryManage.WindowState = FormWindowState.Maximized;
                    QueryManage.Show();
                    break;
                case "操作员交接班记录":
                    FrmOper Oper = new FrmOper();
                    Oper.MdiParent = this;
                    Oper.WindowState = FormWindowState.Maximized;
                    Oper.Show();
                    break;
                case "停车场管理":
                    FrmParkStallSet ParkStallSet = new FrmParkStallSet();
                    ParkStallSet.MdiParent = this;
                    ParkStallSet.WindowState = FormWindowState.Maximized;
                    ParkStallSet.Show();
                    break;
                case "参数下载":
                    FrmDownParam EateryManage = new FrmDownParam();
                    EateryManage.MdiParent = this;
                    EateryManage.WindowState = FormWindowState.Maximized;
                    EateryManage.Show();
                    break;
                case "入场车流量统计表":
                    ParkMgr.Report.FrmIntVehicleNumberTotal VehicleNumberTotal = new Granity.granityMgr.ParkMgr.Report.FrmIntVehicleNumberTotal();
                    VehicleNumberTotal.MdiParent = this;
                    VehicleNumberTotal.WindowState = FormWindowState.Maximized;
                    VehicleNumberTotal.Show();
                    break;
                case "出场车流量统计表":
                    ParkMgr.Report.FrmCarOutTotal CarOutTotal = new Granity.granityMgr.ParkMgr.Report.FrmCarOutTotal();
                    CarOutTotal.MdiParent = this;
                    CarOutTotal.WindowState = FormWindowState.Maximized;
                    CarOutTotal.Show();
                    break;

                case "停车场收费统计表":
                    ParkMgr.Report.FrmParkTotal ParkTotal = new Granity.granityMgr.ParkMgr.Report.FrmParkTotal();
                    ParkTotal.MdiParent = this;
                    ParkTotal.WindowState = FormWindowState.Maximized;
                    ParkTotal.Show();
                    break;

                case "收费员收费统计表":
                    ParkMgr.Report.FrmOperatorTotal OperatorTotal = new Granity.granityMgr.ParkMgr.Report.FrmOperatorTotal();
                    OperatorTotal.MdiParent = this;
                    OperatorTotal.WindowState = FormWindowState.Maximized;
                    OperatorTotal.Show();
                    break;

                case "视频监控":
                    ParkMgr.FrmStationWatchingII StationWatching = new Granity.granityMgr.ParkMgr.FrmStationWatchingII();
                    //ParkMgr.FrmStatonWatchingStandard StationWatching = new Granity.granityMgr.ParkMgr.FrmStatonWatchingStandard();
                    StationWatching.WindowState = FormWindowState.Maximized;
                    StationWatching.Show();
                    break;
                case "权限设置":
                    ParkMgr.FrmRight ParkRight = new Granity.granityMgr.ParkMgr.FrmRight();
                    ParkRight.MdiParent = this;
                    ParkRight.WindowState = FormWindowState.Maximized;
                    ParkRight.Show();
                    break;
                //门禁系统
                case "有效时段":
                    BaseDicinfo.FrmEffectiveTimeList EffTime = new Granity.granityMgr.BaseDicinfo.FrmEffectiveTimeList();
                    EffTime.MdiParent = this;
                    EffTime.WindowState = FormWindowState.Maximized;
                    EffTime.Show();
                    break;
                case "设备资料":
                    Granity.granityMgr.BaseDicinfo.FrmDoorControlBaseinfo BaseInfo = new Granity.granityMgr.BaseDicinfo.FrmDoorControlBaseinfo();
                    BaseInfo.MdiParent = this;
                    BaseInfo.WindowState = FormWindowState.Maximized;
                    BaseInfo.Show();
                    break;
                case "开门记录查询":
                    Report.FrmOpenDoorRecord OpenRecord = new Report.FrmOpenDoorRecord();
                    OpenRecord.MdiParent = this;
                    OpenRecord.WindowState = FormWindowState.Maximized;
                    OpenRecord.Show();
                    break;
                case "门禁卡信息":
                    BaseDicinfo.FrmDoorCardInfo CardInfo = new Granity.granityMgr.BaseDicinfo.FrmDoorCardInfo();
                    CardInfo.MdiParent = this;
                    CardInfo.WindowState = FormWindowState.Maximized;
                    CardInfo.Show();
                    break;
                case "门禁监控":
                    FrmDoorMonitor DoorMonitor = new FrmDoorMonitor();
                    DoorMonitor.MdiParent = this;
                    DoorMonitor.WindowState = FormWindowState.Maximized;
                    DoorMonitor.Show();
                    break;
                case "门禁权限":
                    BaseDicinfo.FrmRight Right = new Granity.granityMgr.BaseDicinfo.FrmRight();
                    Right.MdiParent = this;
                    Right.WindowState = FormWindowState.Maximized;
                    Right.Show();
                    break;
                case "门用户":
                    BaseDicinfo.FrmDorUsers dorUser = new Granity.granityMgr.BaseDicinfo.FrmDorUsers();
                    dorUser.MdiParent = this;
                    dorUser.WindowState = FormWindowState.Maximized;
                    dorUser.Show();
                    break;
                case "门禁管理":
                    FrmDownParam DoorManager = new FrmDownParam();
                    DoorManager.MdiParent = this;
                    DoorManager.WindowState = FormWindowState.Maximized;
                    DoorManager.Show();
                    break;
                case "停车场卡信息":
                    ParkMgr.FrmCarParkInfo parkCard = new Granity.granityMgr.ParkMgr.FrmCarParkInfo();
                    parkCard.MdiParent = this;
                    parkCard.WindowState = FormWindowState.Maximized;
                    parkCard.Show();
                    break;
                //卡务中心
                case "发行管理":
                    FrmCardMakeS CardMakeS = new FrmCardMakeS();
                    CardMakeS.MdiParent = this;
                    CardMakeS.WindowState = FormWindowState.Maximized;
                    CardMakeS.Show();
                    break;
                case "卡片管理":
                    FrmCardManager CardManager = new FrmCardManager();
                    CardManager.MdiParent = this;
                    CardManager.WindowState = FormWindowState.Maximized;
                    CardManager.Show();
                    break;
                case "发行器设置":
                    FrmDevSet DevSet = new FrmDevSet();
                    DevSet.MdiParent = this;
                    DevSet.WindowState = FormWindowState.Maximized;
                    DevSet.Show();
                    break;
                case "卡片发行记录":
                    FrmCardMakeRpt CardMakeRpt = new FrmCardMakeRpt();
                    CardMakeRpt.MdiParent = this;
                    CardMakeRpt.WindowState = FormWindowState.Maximized;
                    CardMakeRpt.Show();
                    break;
                case "卡片充值记录":
                    FrmCardPayRep CardPayRpt = new FrmCardPayRep();
                    CardPayRpt.MdiParent = this;
                    CardPayRpt.WindowState = FormWindowState.Maximized;
                    CardPayRpt.Show();
                    break;
                case "卡片延期记录":
                    FrmCardDelayRpt CardDelayRpt = new FrmCardDelayRpt();
                    CardDelayRpt.MdiParent = this;
                    CardDelayRpt.WindowState = FormWindowState.Maximized;
                    CardDelayRpt.Show();
                    break;
                case "退卡记录":
                    FrmCardQuitRtp CardQuitRpt = new FrmCardQuitRtp();
                    CardQuitRpt.MdiParent = this;
                    CardQuitRpt.WindowState = FormWindowState.Maximized;
                    CardQuitRpt.Show();
                    break;
                case "卡片挂失解挂记录":
                    FrmCardLostRpt CardLostRpt = new FrmCardLostRpt();
                    CardLostRpt.MdiParent = this;
                    CardLostRpt.WindowState = FormWindowState.Maximized;
                    CardLostRpt.Show();
                    break;
                //考勤系统
                case "部门排班查询":
                    FrmDeptScheduleRpt DeptScheduleRpt = new FrmDeptScheduleRpt();
                    DeptScheduleRpt.MdiParent = this;
                    DeptScheduleRpt.WindowState = FormWindowState.Maximized;
                    DeptScheduleRpt.Show();
                    break;
                case "员工打卡查询":
                    FrmHitCardRpt HitCardRpt = new FrmHitCardRpt();
                    HitCardRpt.MdiParent = this;
                    HitCardRpt.WindowState = FormWindowState.Maximized;
                    HitCardRpt.Show();
                    break;
                case "法定假日维护":
                    FrmHolidaySet HolidaySet = new FrmHolidaySet();
                    HolidaySet.MdiParent = this;
                    HolidaySet.WindowState = FormWindowState.Maximized;
                    HolidaySet.Show();
                    break;
                case "部门休息日维护":
                    FrmDeptRest DeptRest = new FrmDeptRest();
                    DeptRest.MdiParent = this;
                    DeptRest.WindowState = FormWindowState.Maximized;
                    DeptRest.Show();
                    break;
                case "班制定义":
                    FrmClass Class = new FrmClass();
                    Class.MdiParent = this;
                    Class.WindowState = FormWindowState.Maximized;
                    Class.Show();
                    break;
                case "部门班制":
                    FrmDeptClass DeptClass = new FrmDeptClass();
                    DeptClass.MdiParent = this;
                    DeptClass.WindowState = FormWindowState.Maximized;
                    DeptClass.Show();
                    break;
                case "考勤登记":
                    FrmEmployeeRegister Register = new FrmEmployeeRegister();
                    Register.MdiParent = this;
                    Register.WindowState = FormWindowState.Maximized;
                    Register.Show();
                    break;
                case "部门排班":
                    FrmMakeClass makeClass = new FrmMakeClass();
                    makeClass.MdiParent = this;
                    makeClass.WindowState = FormWindowState.Maximized;
                    makeClass.Show();
                    break;
                case "考勤明细查询":
                    Granity.granityMgr.CheckWork.Report.FrmCheckWorkList CheckWork = new Granity.granityMgr.CheckWork.Report.FrmCheckWorkList();
                    CheckWork.MdiParent = this;
                    CheckWork.WindowState = FormWindowState.Maximized;
                    CheckWork.Show();
                    break;
                //消费
                case "餐厅维护":
                    FrmRestaurant Restaurant = new FrmRestaurant();
                    Restaurant.MdiParent = this;
                    Restaurant.WindowState = FormWindowState.Maximized;
                    Restaurant.Show();
                    break;
                case "补助管理":
                    FrmAddMoney AddMoney = new FrmAddMoney();
                    AddMoney.MdiParent = this;
                    AddMoney.WindowState = FormWindowState.Maximized;
                    AddMoney.Show();
                    break;
                case "现金收入登记":
                    FrmCashRegisterII cashReg = new FrmCashRegisterII();
                    cashReg.MdiParent = this;
                    cashReg.WindowState = FormWindowState.Maximized;
                    cashReg.Show();
                    break;
                case "消费查询":
                    FrmConsumeRecord ConsumeRecord = new FrmConsumeRecord();
                    ConsumeRecord.MdiParent = this;
                    ConsumeRecord.WindowState = FormWindowState.Maximized;
                    ConsumeRecord.Show();
                    break;
                case "充值补助退款查询":
                    FrmAddReduceMoney AddReduceMoney = new FrmAddReduceMoney();
                    AddReduceMoney.MdiParent = this;
                    AddReduceMoney.WindowState = FormWindowState.Maximized;
                    AddReduceMoney.Show();
                    break;
                case "消费统计查询":
                    FrmConsumeSum ConsumeSum = new FrmConsumeSum();
                    ConsumeSum.MdiParent = this;
                    ConsumeSum.WindowState = FormWindowState.Maximized;
                    ConsumeSum.Show();
                    break;
                case "消费机收入汇总":
                    FrmCosumeMac ConsumeMac = new FrmCosumeMac();
                    ConsumeMac.MdiParent = this;
                    ConsumeMac.WindowState = FormWindowState.Maximized;
                    ConsumeMac.Show();
                    break;
                case "现金报表":
                    FrmCashSum CashSum = new FrmCashSum();
                    CashSum.MdiParent = this;
                    CashSum.WindowState = FormWindowState.Maximized;
                    CashSum.Show();
                    break;
                case "消费机管理":
                    FrmDownParam eateryManage = new FrmDownParam();
                    eateryManage.MdiParent = this;
                    eateryManage.WindowState = FormWindowState.Maximized;
                    eateryManage.Show();
                    break;
                case "消费监控":
                    FrmEateryMonitor frmeaterymtr = new FrmEateryMonitor();
                    frmeaterymtr.MdiParent = this;
                    frmeaterymtr.WindowState = FormWindowState.Maximized;
                    frmeaterymtr.Show();
                    break;
                // 用户管理
                case "用户信息":
                    FrmUserManager UserManager = new FrmUserManager();
                    UserManager.MdiParent = this;
                    UserManager.WindowState = FormWindowState.Maximized;
                    UserManager.Show();
                    break;
                case "公司员工":
                    FrmEmployees Employees = new FrmEmployees();
                    Employees.MdiParent = this;
                    Employees.WindowState = FormWindowState.Maximized;
                    Employees.Show();
                    break;
                case "角色定义":
                    FrmSysRoles role = new FrmSysRoles();
                    role.MdiParent = this;
                    role.WindowState = FormWindowState.Maximized;
                    role.Show();
                    break;
                case "修改密码":

                    FrmUpdatePass pass = new FrmUpdatePass();
                    pass.ShowDialog();
                    break;
                //case "用户信息":
                //    FrmSysUsers ps= new FrmSysUsers();
                //    ps.MdiParent = this;
                //    ps.WindowState = FormWindowState.Maximized;
                //    ps.Show();
                //    break;
            }
        }
Example #2
0
        /// <summary>
        /// 打开窗口
        /// </summary>
        /// <param name="itemlink"></param>
        private void OpenFrm(NavBarItemLink itemlink)
        {
            if (null == itemlink || string.IsNullOrEmpty(itemlink.Caption))
            {
                return;
            }
            foreach (Form fr in this.MdiChildren)
            {
                fr.Close();
            }
            NameObjectList pstrans = new NameObjectList();

            pstrans["功能单元"] = itemlink.Caption;
            BindManager.setTransParam(pstrans);
            switch (itemlink.Caption)
            {
            //系统配置
            case "卡片参数配置":
                FrmCardParam CardParam = new FrmCardParam();
                CardParam.MdiParent   = this;
                CardParam.WindowState = FormWindowState.Maximized;
                CardParam.Show();
                break;

            //停车场
            case "入场记录和图像":
                ParkMgr.FrmInQueryManage InQueryManage = new Granity.granityMgr.ParkMgr.FrmInQueryManage();
                InQueryManage.MdiParent   = this;
                InQueryManage.WindowState = FormWindowState.Maximized;
                InQueryManage.Show();
                break;

            case "出场记录和图像":
                FrmOutQueryManage OutQueryManage = new FrmOutQueryManage();
                OutQueryManage.MdiParent   = this;
                OutQueryManage.WindowState = FormWindowState.Maximized;
                OutQueryManage.Show();
                break;

            case "场内停车记录":
                ParkMgr.FrmQueryManage QueryManage = new Granity.granityMgr.ParkMgr.FrmQueryManage();
                QueryManage.MdiParent   = this;
                QueryManage.WindowState = FormWindowState.Maximized;
                QueryManage.Show();
                break;

            case "操作员交接班记录":
                FrmOper Oper = new FrmOper();
                Oper.MdiParent   = this;
                Oper.WindowState = FormWindowState.Maximized;
                Oper.Show();
                break;

            case "停车场管理":
                FrmParkStallSet ParkStallSet = new FrmParkStallSet();
                ParkStallSet.MdiParent   = this;
                ParkStallSet.WindowState = FormWindowState.Maximized;
                ParkStallSet.Show();
                break;

            case "参数下载":
                FrmDownParam EateryManage = new FrmDownParam();
                EateryManage.MdiParent   = this;
                EateryManage.WindowState = FormWindowState.Maximized;
                EateryManage.Show();
                break;

            case "入场车流量统计表":
                ParkMgr.Report.FrmIntVehicleNumberTotal VehicleNumberTotal = new Granity.granityMgr.ParkMgr.Report.FrmIntVehicleNumberTotal();
                VehicleNumberTotal.MdiParent   = this;
                VehicleNumberTotal.WindowState = FormWindowState.Maximized;
                VehicleNumberTotal.Show();
                break;

            case "出场车流量统计表":
                ParkMgr.Report.FrmCarOutTotal CarOutTotal = new Granity.granityMgr.ParkMgr.Report.FrmCarOutTotal();
                CarOutTotal.MdiParent   = this;
                CarOutTotal.WindowState = FormWindowState.Maximized;
                CarOutTotal.Show();
                break;

            case "停车场收费统计表":
                ParkMgr.Report.FrmParkTotal ParkTotal = new Granity.granityMgr.ParkMgr.Report.FrmParkTotal();
                ParkTotal.MdiParent   = this;
                ParkTotal.WindowState = FormWindowState.Maximized;
                ParkTotal.Show();
                break;

            case "收费员收费统计表":
                ParkMgr.Report.FrmOperatorTotal OperatorTotal = new Granity.granityMgr.ParkMgr.Report.FrmOperatorTotal();
                OperatorTotal.MdiParent   = this;
                OperatorTotal.WindowState = FormWindowState.Maximized;
                OperatorTotal.Show();
                break;

            case "视频监控":
                ParkMgr.FrmStationWatchingII StationWatching = new Granity.granityMgr.ParkMgr.FrmStationWatchingII();
                //ParkMgr.FrmStatonWatchingStandard StationWatching = new Granity.granityMgr.ParkMgr.FrmStatonWatchingStandard();
                StationWatching.WindowState = FormWindowState.Maximized;
                StationWatching.Show();
                break;

            case "权限设置":
                ParkMgr.FrmRight ParkRight = new Granity.granityMgr.ParkMgr.FrmRight();
                ParkRight.MdiParent   = this;
                ParkRight.WindowState = FormWindowState.Maximized;
                ParkRight.Show();
                break;

            //门禁系统
            case "有效时段":
                BaseDicinfo.FrmEffectiveTimeList EffTime = new Granity.granityMgr.BaseDicinfo.FrmEffectiveTimeList();
                EffTime.MdiParent   = this;
                EffTime.WindowState = FormWindowState.Maximized;
                EffTime.Show();
                break;

            case "设备资料":
                Granity.granityMgr.BaseDicinfo.FrmDoorControlBaseinfo BaseInfo = new Granity.granityMgr.BaseDicinfo.FrmDoorControlBaseinfo();
                BaseInfo.MdiParent   = this;
                BaseInfo.WindowState = FormWindowState.Maximized;
                BaseInfo.Show();
                break;

            case "开门记录查询":
                Report.FrmOpenDoorRecord OpenRecord = new Report.FrmOpenDoorRecord();
                OpenRecord.MdiParent   = this;
                OpenRecord.WindowState = FormWindowState.Maximized;
                OpenRecord.Show();
                break;

            case "门禁卡信息":
                BaseDicinfo.FrmDoorCardInfo CardInfo = new Granity.granityMgr.BaseDicinfo.FrmDoorCardInfo();
                CardInfo.MdiParent   = this;
                CardInfo.WindowState = FormWindowState.Maximized;
                CardInfo.Show();
                break;

            case "门禁监控":
                FrmDoorMonitor DoorMonitor = new FrmDoorMonitor();
                DoorMonitor.MdiParent   = this;
                DoorMonitor.WindowState = FormWindowState.Maximized;
                DoorMonitor.Show();
                break;

            case "门禁权限":
                BaseDicinfo.FrmRight Right = new Granity.granityMgr.BaseDicinfo.FrmRight();
                Right.MdiParent   = this;
                Right.WindowState = FormWindowState.Maximized;
                Right.Show();
                break;

            case "门用户":
                BaseDicinfo.FrmDorUsers dorUser = new Granity.granityMgr.BaseDicinfo.FrmDorUsers();
                dorUser.MdiParent   = this;
                dorUser.WindowState = FormWindowState.Maximized;
                dorUser.Show();
                break;

            case "门禁管理":
                FrmDownParam DoorManager = new FrmDownParam();
                DoorManager.MdiParent   = this;
                DoorManager.WindowState = FormWindowState.Maximized;
                DoorManager.Show();
                break;

            case "停车场卡信息":
                ParkMgr.FrmCarParkInfo parkCard = new Granity.granityMgr.ParkMgr.FrmCarParkInfo();
                parkCard.MdiParent   = this;
                parkCard.WindowState = FormWindowState.Maximized;
                parkCard.Show();
                break;

            //卡务中心
            case "发行管理":
                FrmCardMakeS CardMakeS = new FrmCardMakeS();
                CardMakeS.MdiParent   = this;
                CardMakeS.WindowState = FormWindowState.Maximized;
                CardMakeS.Show();
                break;

            case "卡片管理":
                FrmCardManager CardManager = new FrmCardManager();
                CardManager.MdiParent   = this;
                CardManager.WindowState = FormWindowState.Maximized;
                CardManager.Show();
                break;

            case "发行器设置":
                FrmDevSet DevSet = new FrmDevSet();
                DevSet.MdiParent   = this;
                DevSet.WindowState = FormWindowState.Maximized;
                DevSet.Show();
                break;

            case "卡片发行记录":
                FrmCardMakeRpt CardMakeRpt = new FrmCardMakeRpt();
                CardMakeRpt.MdiParent   = this;
                CardMakeRpt.WindowState = FormWindowState.Maximized;
                CardMakeRpt.Show();
                break;

            case "卡片充值记录":
                FrmCardPayRep CardPayRpt = new FrmCardPayRep();
                CardPayRpt.MdiParent   = this;
                CardPayRpt.WindowState = FormWindowState.Maximized;
                CardPayRpt.Show();
                break;

            case "卡片延期记录":
                FrmCardDelayRpt CardDelayRpt = new FrmCardDelayRpt();
                CardDelayRpt.MdiParent   = this;
                CardDelayRpt.WindowState = FormWindowState.Maximized;
                CardDelayRpt.Show();
                break;

            case "退卡记录":
                FrmCardQuitRtp CardQuitRpt = new FrmCardQuitRtp();
                CardQuitRpt.MdiParent   = this;
                CardQuitRpt.WindowState = FormWindowState.Maximized;
                CardQuitRpt.Show();
                break;

            case "卡片挂失解挂记录":
                FrmCardLostRpt CardLostRpt = new FrmCardLostRpt();
                CardLostRpt.MdiParent   = this;
                CardLostRpt.WindowState = FormWindowState.Maximized;
                CardLostRpt.Show();
                break;

            //考勤系统
            case "部门排班查询":
                FrmDeptScheduleRpt DeptScheduleRpt = new FrmDeptScheduleRpt();
                DeptScheduleRpt.MdiParent   = this;
                DeptScheduleRpt.WindowState = FormWindowState.Maximized;
                DeptScheduleRpt.Show();
                break;

            case "员工打卡查询":
                FrmHitCardRpt HitCardRpt = new FrmHitCardRpt();
                HitCardRpt.MdiParent   = this;
                HitCardRpt.WindowState = FormWindowState.Maximized;
                HitCardRpt.Show();
                break;

            case "法定假日维护":
                FrmHolidaySet HolidaySet = new FrmHolidaySet();
                HolidaySet.MdiParent   = this;
                HolidaySet.WindowState = FormWindowState.Maximized;
                HolidaySet.Show();
                break;

            case "部门休息日维护":
                FrmDeptRest DeptRest = new FrmDeptRest();
                DeptRest.MdiParent   = this;
                DeptRest.WindowState = FormWindowState.Maximized;
                DeptRest.Show();
                break;

            case "班制定义":
                FrmClass Class = new FrmClass();
                Class.MdiParent   = this;
                Class.WindowState = FormWindowState.Maximized;
                Class.Show();
                break;

            case "部门班制":
                FrmDeptClass DeptClass = new FrmDeptClass();
                DeptClass.MdiParent   = this;
                DeptClass.WindowState = FormWindowState.Maximized;
                DeptClass.Show();
                break;

            case "考勤登记":
                FrmEmployeeRegister Register = new FrmEmployeeRegister();
                Register.MdiParent   = this;
                Register.WindowState = FormWindowState.Maximized;
                Register.Show();
                break;

            case "部门排班":
                FrmMakeClass makeClass = new FrmMakeClass();
                makeClass.MdiParent   = this;
                makeClass.WindowState = FormWindowState.Maximized;
                makeClass.Show();
                break;

            case "考勤明细查询":
                Granity.granityMgr.CheckWork.Report.FrmCheckWorkList CheckWork = new Granity.granityMgr.CheckWork.Report.FrmCheckWorkList();
                CheckWork.MdiParent   = this;
                CheckWork.WindowState = FormWindowState.Maximized;
                CheckWork.Show();
                break;

            //消费
            case "餐厅维护":
                FrmRestaurant Restaurant = new FrmRestaurant();
                Restaurant.MdiParent   = this;
                Restaurant.WindowState = FormWindowState.Maximized;
                Restaurant.Show();
                break;

            case "补助管理":
                FrmAddMoney AddMoney = new FrmAddMoney();
                AddMoney.MdiParent   = this;
                AddMoney.WindowState = FormWindowState.Maximized;
                AddMoney.Show();
                break;

            case "现金收入登记":
                FrmCashRegisterII cashReg = new FrmCashRegisterII();
                cashReg.MdiParent   = this;
                cashReg.WindowState = FormWindowState.Maximized;
                cashReg.Show();
                break;

            case "消费查询":
                FrmConsumeRecord ConsumeRecord = new FrmConsumeRecord();
                ConsumeRecord.MdiParent   = this;
                ConsumeRecord.WindowState = FormWindowState.Maximized;
                ConsumeRecord.Show();
                break;

            case "充值补助退款查询":
                FrmAddReduceMoney AddReduceMoney = new FrmAddReduceMoney();
                AddReduceMoney.MdiParent   = this;
                AddReduceMoney.WindowState = FormWindowState.Maximized;
                AddReduceMoney.Show();
                break;

            case "消费统计查询":
                FrmConsumeSum ConsumeSum = new FrmConsumeSum();
                ConsumeSum.MdiParent   = this;
                ConsumeSum.WindowState = FormWindowState.Maximized;
                ConsumeSum.Show();
                break;

            case "消费机收入汇总":
                FrmCosumeMac ConsumeMac = new FrmCosumeMac();
                ConsumeMac.MdiParent   = this;
                ConsumeMac.WindowState = FormWindowState.Maximized;
                ConsumeMac.Show();
                break;

            case "现金报表":
                FrmCashSum CashSum = new FrmCashSum();
                CashSum.MdiParent   = this;
                CashSum.WindowState = FormWindowState.Maximized;
                CashSum.Show();
                break;

            case "消费机管理":
                FrmDownParam eateryManage = new FrmDownParam();
                eateryManage.MdiParent   = this;
                eateryManage.WindowState = FormWindowState.Maximized;
                eateryManage.Show();
                break;

            case "消费监控":
                FrmEateryMonitor frmeaterymtr = new FrmEateryMonitor();
                frmeaterymtr.MdiParent   = this;
                frmeaterymtr.WindowState = FormWindowState.Maximized;
                frmeaterymtr.Show();
                break;

            // 用户管理
            case "用户信息":
                FrmUserManager UserManager = new FrmUserManager();
                UserManager.MdiParent   = this;
                UserManager.WindowState = FormWindowState.Maximized;
                UserManager.Show();
                break;

            case "公司员工":
                FrmEmployees Employees = new FrmEmployees();
                Employees.MdiParent   = this;
                Employees.WindowState = FormWindowState.Maximized;
                Employees.Show();
                break;

            case "角色定义":
                FrmSysRoles role = new FrmSysRoles();
                role.MdiParent   = this;
                role.WindowState = FormWindowState.Maximized;
                role.Show();
                break;

            case "修改密码":

                FrmUpdatePass pass = new FrmUpdatePass();
                pass.ShowDialog();
                break;
                //case "用户信息":
                //    FrmSysUsers ps= new FrmSysUsers();
                //    ps.MdiParent = this;
                //    ps.WindowState = FormWindowState.Maximized;
                //    ps.Show();
                //    break;
            }
        }