Form NewForm(string tag) { Form frm = null; switch (tag) { case "本机设置": FrmOptions frmOptions = new FrmOptions(); frmOptions.ShowDialog(); break; #region 收货管理 case "到货登记": frm = new FrmVehicle(); break; case "送货牌列表": frm = new FrmListCard(); break; case "托盘状态表": frm = new FrmContainerState(); break; case "收货单管理": frm = new FrmAsnManage(); break; case "越库收货": frm = new FrmCrossInstore(); break; case "越库收货确认": frm = new FrmCrossInstoreConfirm(); break; case "退货单管理": //Add by ZXQ 20150525 frm = new FrmReturnManage(); break; #endregion #region 销货管理 case "出库单管理": frm = new FrmSOManage(); break; case "订单排序": frm = new FrmSOSort(); break; case "订单排序(地图)": frm = new Nodes.Outstore.FrmSOSortMap(); break; case "订单排序查询": frm = new FrmSOSortMapQuery(); break; case "拣货计划": frm = new FrmPickPlans(); break; case "拣货任务管理": frm = new FrmPickTaskManager(); break; case "物流箱状态表": frm = new FrmSOLPNState(); break; case "散货称重": frm = new FrmSOWeight(); break; case "装车称重": frm = new FrmSOWeightLoading(); break; case "打印销售发货单": frm = new FrmSOLoading(); break; case "打印销售发货单(新)": frm = new FrmSOLoadingNew(); break; case "回款确认": frm = new FrmBackConfirm(); break; case "车次信息": frm = new FrmLoadingTrain(); break; case "装车信息": frm = new FrmLoadingInfo(); break; case "整货称重[简化]": frm = new FrmSOWeightLoading_Simple(); break; case "越库出库": frm = new FrmAcrossOutbound(); break; case "订单线路查询": frm = new FrmSOSortQuery(); break; case "当前订单量": frm = new FrmShowNeedSKU(); break; #endregion #region 库内管理 case "触发补货任务": frm = new FrmCreateReplenishBill(); break; case "库存查询": frm = new FrmStockQuery(); break; case "待称重集货区查询": frm = new FrmStockTemp(); break; case "库存转移": frm = new FrmStockTransfer(); break; case "移库记录表": frm = new FrmStockTransferQuery(); break; #endregion #region 盘点管理 case "创建盘点单": frm = new FrmCreateCC(); break; case "盘点差异报告": frm = new FrmCountManager(); break; case "盘点单管理": frm = new FrmCountManager(); break; case "盘点差异调整": frm = new FrmCountExecute(); break; case "盘点任务分派": frm = new FrmCountTask(); break; #endregion #region 系统管理 case "用户管理": frm = new FrmUserManager(); break; case "角色管理": frm = new FrmRoleManager(); break; case "公司信息": frm = new FrmCompanyManager(); break; case "条码规则定义": frm = new FrmBarcodeDefine(); break; case "系统设置": frm = new FrmSetting(); break; case "任务池管理": frm = new FrmTaskManager(); break; case "任务池管理(新)": frm = new FrmTaskManagerNew(); break; case "人员状态表": frm = new FrmUserState(); break; case "叫号面板": frm = new FrmCallingScreen(); break; #endregion #region 查询统计 case "库存对账查询": frm = new FrmStockAccount(); break; case "库存流水查询": frm = new FrmStockLog(); break; case "装车记录查询": frm = new FrmLoadRecords(); break; case "任务调度统计": frm = new FrmTaskReport(); break; case "商品销量统计": frm = new Reports.FrmSaleSort(); break; case "拣货记录表": frm = new FrmQueryPickRecords(); break; case "销货明细": frm = new FrmQuerySoDetails(); break; case "叉车司机任务统计": frm = new FrmQueryTransRecord(); break; case "收货绩效考核": frm = new FrmQueryAsnRecord(); break; case "装车绩效考核": frm = new FrmQueryLoadingReports2(); break; case "库房人员绩效汇总": frm = new FrmSummaryRecords2(); break; case "容器位查询": frm = new FrmContainerQuery(); break; case "容器位维护": frm = new FrmContainerLocatiomManager(); break; #endregion #region 基础管理 case "送货牌维护": frm = new FrmDriverCardManager(); break; case "客户信息": frm = new FrmCustomerManager(); break; case "仓库信息": frm = new FrmWarehouseManager(); break; case "货区信息": frm = new FrmZoneManager(); break; case "货位信息": frm = new FrmLocationManager(); break; case "物料分类": frm = new FrmMaterialTypeManager(); break; case "包装关系": frm = new FrmUnitGroupManager(); break; case "物料信息": frm = new FrmMaterialManager(); break; case "区域信息": frm = new FrmAreaManager(); break; case "品牌信息": frm = new FrmBrandManager(); break; case "不合格原因": frm = new FrmBugReasonManager(); break; case "容器信息": frm = new FrmContainerManager(); break; case "送货路线": frm = new FrmRouteManager(); break; case "叉车信息": frm = new FrmForkManager(); break; case "车辆信息": frm = new FrmVehicleManager(); break; case "推荐货位": frm = new FrmReclocationManager(); break; case "本库物料": frm = new FrmSkuWarehouseQuery(); break; #endregion case "权限管理": frm = new FrmModulesManager(); break; case "登录日志": frm = new FrmLoginLogs(); break; case "计量单位信息": frm = new FrmUnitManager(); break; case "供应商信息": frm = new FrmSupplierManager(); break; case "省份信息": frm = new FrmProvinceManager(); break; case "组织信息": frm = new FrmOrgManager(); break; case "温控信息": frm = new FrmTemperatureManager(); break; case "手持机维护": frm = new FrmPDAManager(); break; case "关联物流箱": frm = new FrmScanContainer(); break; case "修改密码": FrmChangePwd frmChangePwd = new FrmChangePwd(); frmChangePwd.ShowDialog(); break; case "商品销量": frm = new Nodes.Outstore.FrmSaleSort(); break; case "上架记录查询": frm = new FrmReportPutAway(); break; case "拣货员任务统计": frm = new FrmPickSort(); break; case "绩效考核指标": frm = new FrmPerformanceAppraisal(); break; case "配送绩效考核": frm = new FrmQueryDriverRecords(); break; //case "库存占用管理": // frm = new FrmStockOccupyManager(); // break; case "退出系统": this.Close(); break; case "帮助文档": string helpfile = AppDomain.CurrentDomain.BaseDirectory.ToString() + @"\使用手册.chm"; if (File.Exists(helpfile)) { Help.ShowHelp(this, helpfile); } else { MsgBox.Warn("无法找到相关文件,请联系技术人员!"); } break; case "货位盘点记录": frm = new FrmStockReviseRecords(); break; case "货位盘点": frm = new FrmStockReviseRecords(); break; } return(frm); }
/// <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; } }