private void uTxt_hospitalcode_DoubleClick(object sender, EventArgs e) { FrmClinicarHospital frmClinihospitalHospital = new FrmClinicarHospital(); frmClinihospitalHospital.StartPosition = FormStartPosition.CenterScreen; frmClinihospitalHospital.operationPower = false; frmClinihospitalHospital.ShowDialog(); if (frmClinihospitalHospital.DialogResult == DialogResult.OK) { uTxt_hospitalcode.Text = frmClinihospitalHospital.F_StringCode; uTxt_hospitalname.Text = frmClinihospitalHospital.F_StringName; } }
/// <summary> /// 打卡选项卡 /// </summary> /// <param name="title"></param> /// <param name="icon"></param> private void OpenTab(string title, Image icon) { //验证是否存在 Boolean _IsExtst = IsOpendForm(title); if (!_IsExtst) { //循环判断显示哪个页面 SBaseDockForm frm = new SBaseDockForm(); switch (title) { case "用户管理": frm = new FrmSysUser(); break; case "基础数据管理": frm = new FrmBaseData(); break; case "医院管理": frm = new FrmClinicarHospital(); break; case "科室管理": frm = new FrmClinicarDpt(); break; case "项目管理": frm = new FrmClinicarItem(); break; case "登记": frm = new FrmClinicarCheck(); break; case "分检": frm = new FrmClinicarSortCheck(); break; case "总检": frm = new FrmClinicarAllCheck(); break; case "申请会诊": frm = new FrmClinicarConsultation(); break; case "我的会诊": frm = new FrmClinihospitalMyConsultation(); break; case "我的科室": frm = new FrmClinihospitalDpt(); break; case "视频通信": frm = new FrmCliniWebBrowser(); break; //case "就诊统计": // frm = new FrmClinicarCheckTotal(); // break; default: break; } frm.Text = title; if (icon != null) { frm.Icon = SImageUtil.MakeIcon(icon, 32, true); } frm.Show(wDpnl_Main); } }