示例#1
0
文件: frmMain.cs 项目: quxingxingzi/-
 private void 系统参数YToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!OnlyOpen("frmSystemSet", "系统参数"))
     {
         frmSystemSet fss = new frmSystemSet();
         fss.ShowDialog();
     }
 }
示例#2
0
文件: frmMain.cs 项目: quxingxingzi/-
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            if (frmlogin.type == "系统管理员")
            {
                if (listView1.SelectedItems[0].Text == "用户管理")
                {
                    frmUsercontrol fuc = new frmUsercontrol();
                    fuc.Owner = this;
                    fuc.ShowDialog();
                }
            }
            else
            {
                ;
            }
            if (listView1.SelectedItems[0].Text == "切换用户")
            {
                切换用户LToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "修改密码")
            {
                修改密码MToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "系统备份")
            {
                备份管理BToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "系统还原")
            {
                导入数据RToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "读者管理")
            {
                读者资料管理PToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "操作流水")
            {
                操作流水HToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "借阅查询")
            {
                借阅查询BToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "系统初始化")
            {
                系统初始化IToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "借阅管理")
            {
                toolStripMenuItem8_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "预借查询")
            {
                预借详情PToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "预借详情")
            {
                预借详情PToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "书籍管理")
            {
                借阅资料管理LToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "暂时离开")
            {
                暂时离开OToolStripMenuItem_Click(sender, e);
            }

            if (listView1.SelectedItems[0].Text == "备忘管理")
            {
                备忘管理RToolStripMenuItem_Click(sender, e);
            }

            if (listView1.SelectedItems[0].Text == "系统参数")
            {
                frmSystemSet fss = new frmSystemSet();
                fss.ShowDialog();
            }
            if (listView1.SelectedItems[0].Text == "帐务管理")
            {
                if (!OnlyOpen("frmMemorandum", "图书罚款"))
                {
                    frmPenaltryInfo fpi = new frmPenaltryInfo();
                    fpi.MdiParent = this;
                    fpi.Show();
                }
            }
            if (listView1.SelectedItems[0].Text == "添加读者")
            {
                新增读者ToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "添加书籍")
            {
                新增书籍BToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "出版社资料")
            {
                出版社ToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "逾期查询")
            {
                逾期列表GToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "罚款查询")
            {
                帐务管理EToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "图书档案查询")
            {
                借阅资料管理LToolStripMenuItem_Click(sender, e);
            }
            if (listView1.SelectedItems[0].Text == "读者档案查询")
            {
                读者资料管理PToolStripMenuItem_Click(sender, e);
            }
        }