//设置密码
        private void btnSetPwd_Click(object sender, EventArgs e)
        {
            FrmModifyPwd frm = new FrmModifyPwd();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
        }
示例#2
0
        void toolStripButton_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem t   = (ToolStripMenuItem)sender;
            string            str = t.Text;

            if ("系统用户".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmSystemUser));
            }
            else if ("修改密码".Equals(str))
            {
                FrmModifyPwd frm = new FrmModifyPwd();
                frm.StartPosition = FormStartPosition.CenterScreen;
                frm.ShowDialog();
            }
            else if ("注销".Equals(str))
            {
                tsbCancel_Click(sender, e);
            }
            else if ("退出".Equals(str))
            {
                tsbExit_Click(sender, e);
            }
            else if ("医院项目".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmHospitalItem));
            }
            else if ("达安项目".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmDaanItem));
            }
            else if ("项目对照表".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmItemHospitalAndDaan));
            }
            else if ("委外订单".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmOutOrder));
            }
            //else if ("送检标本".Equals(str))
            //{
            //    FrmSendCheckOrder frm = new FrmSendCheckOrder();
            //    ShowForm(frm);
            //}
            else if ("综合查询".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmSpecSeach));
            }
            else if ("样本录入".Equals(str))
            {
                LoadMdiForm(this, typeof(FrmSampleInput));
                //LoadMdiForm(this, typeof(FrmSampleInput));
            }
            //else if ("错误日志".Equals(str))
            //{
            //    FrmErrorLog frm = new FrmErrorLog();
            //    ShowForm(frm);
            //}
        }