public override void DoShowModifyHistory(IButtonInfo button)//日志
        {
            this.AssertFocusedRow();
            Form form = MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmModifyLog));

            (form as frmModifyLog).ShowModifyLog(this.Name);
        }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 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);
     }
 }
Example #5
0
 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);
     }
 }
Example #6
0
 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);
     }
 }
Example #7
0
        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("生成单据失败!");
                }
            }
        }
Example #8
0
        /// <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); }
        }
Example #9
0
 private void MenuItemWarehouse_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWAREHOUSE), MenuItemWarehouse);
 }
Example #10
0
 private void menuCommonDataDict_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmCommonDataDict), menuCommonDataDict);
 }
Example #11
0
 private void menuProduct_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmITEM), menuProduct);
 }
Example #12
0
 /// <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);
 }
Example #13
0
 /// <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);
 }
Example #14
0
 private void menuSalesOrder_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSO), menuSalesOrder);
 }
Example #15
0
 /// <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);
 }
Example #16
0
 /// <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);
 }
Example #17
0
 private void menuItemInvoice_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmSO), menuItemInvoice);
 }
Example #18
0
 /// <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);
 }
Example #21
0
 private void MenuItemTaskMove_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.ParentForm as IMdiForm, typeof(frmTaskMove), MenuItemTaskMove);
 }
Example #22
0
 /// <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();
 }
Example #23
0
 private void menuCustomMenuAuth_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMenuAuth), sender as ToolStripMenuItem);
 }
Example #24
0
 private void MenuItemInventoryHistory_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmWMSInventoryHistory), MenuItemInventoryHistory);
 }
Example #25
0
 /// <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);
 }
Example #27
0
 /// <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);
 }
Example #28
0
 /// <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);
 }
Example #30
0
 private void menuItemMonitorConvylor_Click(object sender, EventArgs e)
 {
     MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMonitorConveyor), menuItemMonitorConvylor);
 }