Beispiel #1
0
        /// <summary>
        /// 根据用户角色显示界面
        /// </summary>
        public void InitInterface()
        {
            int roleid = AppData.Uroleid;

            if (roleid != 1)
            {
                用户管理ToolStripMenuItem.Visible = false;
                种类管理ToolStripMenuItem.Visible = false;
                查询ToolStripMenuItem.Visible   = false;
                系统配置ToolStripMenuItem.Visible = false;

                this.CloseMdiChildren("FrmRecordOut");
                FrmRecordOut frm = new FrmRecordOut();
                frm.WindowState = FormWindowState.Maximized;
                frm.MdiParent   = this;
                frm.Show();
            }
            else
            {
                this.CloseMdiChildren("FrmSearchMingXi");
                FrmSearchMingXi frm = new FrmSearchMingXi();
                frm.WindowState = FormWindowState.Maximized;
                frm.MdiParent   = this;
                frm.Show();
            }
        }
Beispiel #2
0
        private void 车辆出厂ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.CloseMdiChildren("FrmRecordOut");
            FrmRecordOut frm = new FrmRecordOut();

            frm.WindowState = FormWindowState.Maximized;
            frm.MdiParent   = this;
            frm.Show();
        }