コード例 #1
0
 private void 跨月工单录入ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (SqlHelper.UserType == Resources.UT_Check || SqlHelper.UserType == Resources.UT_Admin)
     {
         ChildWinManagement.LoadMdiForm(this, typeof(FrmBimonthly));
     }
 }
コード例 #2
0
 private void p15工单更新ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (SqlHelper.UserType == Resources.UT_Check || SqlHelper.UserType == Resources.UT_Admin)
     {
         ChildWinManagement.LoadMdiForm(this, typeof(FrmDataImport));
     }
 }
コード例 #3
0
 private void 录入审核ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (SqlHelper.UserType == Resources.UT_Audit || SqlHelper.UserType == Resources.UT_Admin)
     {
         ChildWinManagement.LoadMdiForm(this, typeof(FrmConstructionAduit));
     }
 }
コード例 #4
0
 private void 手工工单制作ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (SqlHelper.UserType == Resources.UT_Input || SqlHelper.UserType == Resources.UT_Admin ||
         SqlHelper.UserType == Resources.UT_Check)
     {
         ChildWinManagement.LoadMdiForm(this, typeof(FrmContructionHandwriting));
     }
 }
コード例 #5
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            LoggingDataEntry form1 = new LoggingDataEntry();

            form1.StartPosition = FormStartPosition.CenterScreen;
            form1.ShowDialog();
            //先关闭子窗口再重新加载,刷新
            Form_temp.Close();
            Form_temp = ChildWinManagement.LoadMdiForm(this, typeof(Form_Sub_v));
        }
コード例 #6
0
        private void barButtonItem20_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form_CDI form = new Form_CDI();

            form.StartPosition = FormStartPosition.CenterScreen;
            form.ShowDialog();
            //先关闭子窗口再重新加载,刷新
            Form_temp.Close();
            Form_temp = ChildWinManagement.LoadMdiForm(this, typeof(Form_Sub_h));
        }
コード例 #7
0
        /// <summary>
        /// 多文档实现
        /// </summary>
        /// <param name="caption">窗体名称</param>
        /// <param name="formType">窗体类型</param>
        public void SetMdiForm(string caption, Type formType)
        {
            bool IsOpened = false;

            //
            foreach (SuperTabItem tabitem in superTabControl1.Tabs)
            {
                if (tabitem.Name == caption)
                {
                    superTabControl1.SelectedTab = tabitem;
                    IsOpened = true;
                    break;
                }
            }
            //
            if (!IsOpened)
            {
                Office2007Form form = ChildWinManagement.LoadMdiForm(this, formType)
                                      as Office2007Form;

                SuperTabItem tabitem = superTabControl1.CreateTab(caption);
                tabitem.Name = caption;
                tabitem.Text = caption;

                form.FormBorderStyle = FormBorderStyle.None;
                form.TopLevel        = false;
                form.Visible         = true;
                form.Dock            = DockStyle.Fill;

                tabitem.AttachedControl.Controls.Add(form);

                superTabControl1.SelectedTab = tabitem;

                if (!tablItemDit.ContainsKey(tabitem.Text))
                {
                    tablItemDit.Add(tabitem.Text, form.Name);
                }
            }
        }
コード例 #8
0
ファイル: frmMain.cs プロジェクト: rayworld/EDI2017
        /// <summary>
        /// 创建或者显示一个多文档界面页面
        /// </summary>
        /// <param name="caption">窗体标题</param>
        /// <param name="formType">窗体类型</param>
        public void SetMdiForm(string caption, Type formType)
        {
            bool IsOpened = false;

            //遍历现有的Tab页面,如果存在,那么设置为选中即可
            foreach (SuperTabItem tabitem in NavTabControl.Tabs)
            {
                if (tabitem.Name == caption)
                {
                    NavTabControl.SelectedTab = tabitem;
                    IsOpened = true;
                    break;
                }
            }

            //如果在现有Tab页面中没有找到,那么就要初始化了Tab页面了
            if (!IsOpened)
            {
                //为了方便管理,调用LoadMdiForm函数来创建一个新的窗体,并作为MDI的子窗体
                //然后分配给SuperTab控件,创建一个SuperTabItem并显示
                DevComponents.DotNetBar.Office2007Form form = ChildWinManagement.LoadMdiForm(this, formType)
                                                              as DevComponents.DotNetBar.Office2007Form;

                SuperTabItem tabItem = NavTabControl.CreateTab(caption);
                tabItem.Name = caption;
                tabItem.Text = caption;

                form.FormBorderStyle = FormBorderStyle.None;
                form.TopLevel        = false;
                form.Visible         = true;
                form.Dock            = DockStyle.Fill;
                //tabItem.Icon = form.Icon;
                tabItem.AttachedControl.Controls.Add(form);

                NavTabControl.SelectedTab = tabItem;
                //NavTabControl.Refresh();
            }
        }
コード例 #9
0
ファイル: MainForm.cs プロジェクト: starlistener/SatMgn
        /// <summary>
        /// 初始化用户相关的系统信息
        /// </summary>
        private void InitUserRelated()
        {
            #region 根据权限显示对象的初始化窗体
            //if (Portal.gc.HasFunction("ItemDetail"))
            //{
            ChildWinManagement.LoadMdiForm(this, typeof(FrmItemDetail));
            //}
            #endregion

            #region 初始化系统名称
            try
            {
                string Manufacturer    = config.AppConfigGet("Manufacturer");
                string ApplicationName = config.AppConfigGet("ApplicationName");
                string AppWholeName    = string.Format("{0}-{1}", Manufacturer, ApplicationName);
                Portal.gc.gAppUnit        = Manufacturer;
                Portal.gc.gAppMsgboxTitle = AppWholeName;
                Portal.gc.gAppWholeName   = AppWholeName;

                this.Text = AppWholeName;
                this.notifyIcon1.BalloonTipText  = AppWholeName;
                this.notifyIcon1.BalloonTipTitle = AppWholeName;
                this.notifyIcon1.Text            = AppWholeName;

                UserStatus    = string.Format("当前用户:{0}({1})", Portal.gc.LoginInfo.FullName, Portal.gc.LoginInfo.Name);
                CommandStatus = string.Format("欢迎使用 {0}", Portal.gc.gAppWholeName);
            }
            catch { }

            #endregion

            InitAuthorizedUI();//根据权限屏蔽
            if (this.ribbonControl.Pages.Count > 0)
            {
                ribbonControl.SelectedPage = ribbonControl.Pages[0];
            }
        }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: starlistener/SatMgn
 private void tool_ItemDetail_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmItemDetail));
 }
コード例 #11
0
 private void 序价管理ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //if (SqlHelper.UserType == Resources.UT_Check || SqlHelper.UserType == Resources.UT_Audit ||
     //    SqlHelper.UserType == Resources.UT_Admin)
     ChildWinManagement.LoadMdiForm(this, typeof(FrmWorkOrderProcUPrice));
 }
コード例 #12
0
 private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     //这是测试用的
     ChildWinManagement.LoadMdiForm(this, typeof(Form_Single));
 }
コード例 #13
0
 private void tool_PublicAddress_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmAddressCompany));
 }
コード例 #14
0
 private void Form1_Load(object sender, EventArgs e)
 {
     this.WindowState = FormWindowState.Maximized;
     //加载子窗口,赋值给form
     Form_temp = ChildWinManagement.LoadMdiForm(this, typeof(Form_Sub_v));
 }
コード例 #15
0
 private void 工单查询ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmConstructionGather));
 }
コード例 #16
0
 private void 工单接收ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmWorkOrderReceive));
 }
コード例 #17
0
 private void 工艺卡录入ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmProcCardInput));
 }
コード例 #18
0
 private void btnSetTableLog_Click(object sender, EventArgs e)
 {
     ChildWinManagement.LoadMdiForm(Portal.gc.MainDialog, typeof(FrmOperationLogSetting));
 }
コード例 #19
0
ファイル: MainForm.cs プロジェクト: radtek/Hades.HR
 private void btn_PositionMan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(Hades.HR.UI.FrmPosition));
 }
コード例 #20
0
 private void 班组员工管理ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(FrmProcCardTeam));
 }
コード例 #21
0
ファイル: MainForm.cs プロジェクト: radtek/Hades.HR
 private void btn_StaffOv_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ChildWinManagement.LoadMdiForm(this, typeof(Hades.HR.UI.FrmStaffOverview));
 }
コード例 #22
0
        private void ActiveFrmProcCardBom()
        {
            var frmProcCardBom = (FrmProcCardBom)ChildWinManagement.LoadMdiForm(this.MdiParent, typeof(FrmProcCardBom));

            frmProcCardBom.InitProcCard(txtWONo.Text.Trim());
        }