public override void DoShowModifyHistory(IButtonInfo button)//日志 { this.AssertFocusedRow(); Form form = MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmModifyLog)); (form as frmModifyLog).ShowModifyLog(this.Name); }
private void menuItemSetup_Click(object sender, EventArgs e) { if (sender is ToolStripMenuItem) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSystemProfile), sender as ToolStripMenuItem); } else { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSystemProfile), menuItemSetup as ToolStripMenuItem, this.menuItemSetup.Name); } }
private void menuItemAuth_Click(object sender, EventArgs e) { if (sender is ToolStripMenuItem) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmGroup), sender as ToolStripMenuItem); } else { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmGroup), menuItemAuth as ToolStripMenuItem, this.menuItemAuth.Name); } }
private void menuCommonDataDict_Click(object sender, EventArgs e) { if (sender is ToolStripMenuItem) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCommonDataDict), menuCommonDataDict); } else { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCommonDataDict), menuCommonDataDict as ToolStripMenuItem, this.menuCommonDataDict.Name); } }
private void menuCompanyInfo_Click(object sender, EventArgs e) { if (sender is ToolStripMenuItem) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCompanyInfo), sender as ToolStripMenuItem); } else { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCompanyInfo), menuCompanyInfo as ToolStripMenuItem, this.menuCompanyInfo.Name); } }
private void menuItemDataBaseSet_Click(object sender, EventArgs e) { if (sender is ToolStripMenuItem) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmDbLink), sender as ToolStripMenuItem); } else { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmDbLink), menuItemDataBaseSet as ToolStripMenuItem, this.menuItemDataBaseSet.Name); } }
private void btnGen_Click(object sender, EventArgs e) { if (ValidateWizard()) { //查找目标窗体是否打开 Form targetForm = MdiTools.FindForm(this.CurrentItem.TargetFormType.FullName); if (targetForm == null) //没有打开目标窗体,程序自动打开 { IMdiForm mainForm = MdiTools.MdiMainForm as IMdiForm; //MDI主窗体 targetForm = MdiTools.OpenChildForm(mainForm, this.CurrentItem.TargetFormType); //打开目标窗体 } else { if (!(targetForm is IBusinessSupportable)) { Msg.Warning("不支持生成目标窗体的数据!"); return; //不是MDI子窗体,退出 } if ((targetForm as IDataOperatable).DataChanged) { Msg.Warning("目标窗体 '" + this.CurrentItem.TargetFormName + "' 正在修改数据!请保存或取消修改后才能生成!"); return; } targetForm.Activate(); //目标窗体已打开,激活显示 } //调用目标窗体的新增方法 (targetForm as IDataOperatable).DoAdd(null); //开始生成单据 _GenSuccess = this.CurrentItem.Generate((targetForm as frmBaseBusinessForm).BLL); if (_GenSuccess) { Msg.ShowInformation("生成单据成功,请修改相关数据然后保存!"); this.Close(); targetForm.Activate();//显示目标窗体 } else { Msg.ShowError("生成单据失败!"); } } }
/// <summary> /// 初始化MDI主窗体,在登录窗体显示加载状态。 /// </summary> /// <param name="splash">登录窗体上的进度显示组件</param> public void InitUserInterface(IMsg splash) { try { this.SuspendLayout(); splash.UpdateMessage("正在初始化用户界面..."); this._MdiToolbar = new DevBarRegister(this, this.barToolButtons); this.RegisterMdiButtons(); splash.UpdateMessage("下载基础数据..."); CommonData.GetCommonInfos(); //获取其它公共数据 DataDictCache.RefreshCache(); splash.UpdateMessage("正在初始化模块容器..."); _ModuleContainer = (frmModuleContainer)MdiTools.OpenChildForm(this as IMdiForm, typeof(frmModuleContainer), null); _ModuleContainer.InitButtons(); splash.UpdateMessage("正在加载模块..."); _ModuleManager = new ModuleManager(this, _ModuleContainer.xtraTabControl1); //创建模块管理器 _ModuleManager.LoadModules(splash, _moduleMenus); //加载可用模块 splash.UpdateMessage("正在初始化用户权限..."); SystemAuthentication.SetMenuAuthority(_moduleMenus); _ModuleManager.SetModuleSecurity(_moduleMenus); splash.UpdateMessage("正在加载工具栏(Toolbar)..."); _ModuleManager.CreateToolButtons(barMainMenu, _moduleMenus); splash.UpdateMessage("正在加载导航面板(Navigator Panel)..."); _ModuleManager.CreateNavBarButtons(this.navBarControl1, _moduleMenus, NavigatorStyle.BarContainer); //创建导航工具栏按钮 splash.UpdateMessage("加载完毕."); this.ResumeLayout(); } catch (Exception ex) { Msg.ShowException(ex); } }
private void MenuItemWarehouse_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWAREHOUSE), MenuItemWarehouse); }
private void menuCommonDataDict_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCommonDataDict), menuCommonDataDict); }
private void menuProduct_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmITEM), menuProduct); }
/// <summary> /// 库口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemPort_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPORT), MenuItemPort); }
/// <summary> /// 区域容量 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemZoneCapacity_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWARECELLSPEC), MenuItemWarecellSpec); }
private void menuSalesOrder_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSO), menuSalesOrder); }
/// <summary> /// 堆垛机监控 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuItemMonitorStack_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMonitorStocker), menuItemMonitorStack); }
/// <summary> /// 区域管理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemZone_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmZONE), MenuItemZone); }
private void menuItemInvoice_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSO), menuItemInvoice); }
/// <summary> /// 货柜资料 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemWareCell_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWARECELL), MenuItemWareCell); }
private void OnModuleMenuClick(object sender, EventArgs e) { Type formClass = Type.GetType((sender as ToolStripMenuItem).Tag.ToString()); MdiTools.OpenChildForm(this.MdiParent as IMdiForm, formClass, sender as ToolStripMenuItem); }
private void menuItemWMSAdjust_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWMS_BillAdjust), menuItemWMSAdjust); }
private void MenuItemTaskMove_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.ParentForm as IMdiForm, typeof(frmTaskMove), MenuItemTaskMove); }
/// <summary> /// 仓位监控 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuItemMonitorWarehouse_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMonitorWarecell), menuItemMonitorWarehouse); //frmMonitorWarecell item = new frmMonitorWarecell(); //item.Show(); }
private void menuCustomMenuAuth_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMenuAuth), sender as ToolStripMenuItem); }
private void MenuItemInventoryHistory_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWMSInventoryHistory), MenuItemInventoryHistory); }
/// <summary> /// 托盘规格 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemPalletSpec_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPALLETSPEC), MenuItemPalletSpec); }
private void menuItemCheck_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmIC), menuItemCheck); }
/// <summary> /// 巷道 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemRoadway_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmROADWAY), MenuItemRoadway); }
/// <summary> /// 单据序列 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MenuItemSerialNumber_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSERIAL_NUMBER), MenuItemSerialNumber); }
private void menuItemStockOut_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmIO), menuItemStockOut); }
private void menuItemMonitorConvylor_Click(object sender, EventArgs e) { MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMonitorConveyor), menuItemMonitorConvylor); }