private void btn_appointment_Click(object sender, EventArgs e) { if (this.checkchildfrm("Frm_appointment") == true) { return; } Frm_appointment frm = new Frm_appointment(); frm.MdiParent = this.MdiParent; frm.Show(); }
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { switch (e.Node.Text) { case "患者登记": { if (this.checkchildfrm("Frm_patient") == true) { return; } Frm_patient frm = new Frm_patient(); frm.MdiParent = this; frm.Show(); break; } case "患者预约": { if (this.checkchildfrm("Frm_appointment") == true) { return; } Frm_appointment frm = new Frm_appointment(); frm.MdiParent = this; frm.Show(); break; } case "患者挂号": { if (this.checkchildfrm("Frm_registration") == true) { return; } Frm_registration frm = new Frm_registration(); frm.MdiParent = this; frm.Show(); break; } case "前台缴费": { if (this.checkchildfrm("Frm_payment") == true) { return; } Frm_payment frm = new Frm_payment(); frm.MdiParent = this; frm.Show(); break; } case "欠费催款": { if (this.checkchildfrm("Frm_needpay") == true) { return; } Frm_needpay frm = new Frm_needpay(); frm.MdiParent = this; frm.Show(); break; } case "就诊卡充值": { if (this.checkchildfrm("Frm_mediCardRecharge") == true) { return; } Frm_mediCardRecharge frm = new Frm_mediCardRecharge(); frm.MdiParent = this; frm.Show(); break; } case "评价管理": { if (this.checkchildfrm("Frm_docScore") == true) { return; } Frm_docScore frm = new Frm_docScore(); frm.MdiParent = this; frm.Show(); break; } case "科室查询": { if (this.checkchildfrm("Frm_deptQuery") == true) { return; } Frm_deptQuery frm = new Frm_deptQuery(); frm.MdiParent = this; frm.Show(); break; } case "医生查询": { if (this.checkchildfrm("Frm_docQuery") == true) { return; } Frm_docQuery frm = new Frm_docQuery(); frm.MdiParent = this; frm.Show(); break; } case "余额查询": { if (this.checkchildfrm("Frm_balanceQuery") == true) { return; } Frm_balanceQuery frm = new Frm_balanceQuery(); frm.MdiParent = this; frm.Show(); break; } case "门诊统计": { if (this.checkchildfrm("Frm_outpatientStatistics") == true) { return; } Frm_outpatientStatistics frm = new Frm_outpatientStatistics(); frm.MdiParent = this; frm.Show(); break; } case "挂号收费设置": { if (this.checkchildfrm("Frm_regsettings") == true) { return; } Frm_regsettings frm = new Frm_regsettings(); frm.MdiParent = this; frm.Show(); break; } case "科室设置": { if (this.checkchildfrm("Frm_department") == true) { return; } Frm_department frm = new Frm_department(); frm.MdiParent = this; frm.Show(); break; } case "医生设置": { if (this.checkchildfrm("Frm_doctor") == true) { return; } Frm_doctor frm = new Frm_doctor(); frm.MdiParent = this; frm.Show(); break; } case "操作员设置": { if (this.checkchildfrm("Frm_operator") == true) { return; } Frm_operator frm = new Frm_operator(); frm.MdiParent = this; frm.Show(); break; } case "系统初始化": { if (this.checkchildfrm("Frm_initialize") == true) { return; } Frm_initialize frm = new Frm_initialize(); frm.MdiParent = this; frm.Show(); break; } default: return; } }