public FrmRegister(long currentUserId, long currentDeptId, string chineseName) { InitializeComponent(); _currentUser = new User(currentUserId); _currentDept = new Deptment(currentDeptId); this.Text = chineseName; this.ToolControls_Enabled(RegType.默认); Controller = new FrmRegisterController(this); }
public FrmSearchPat(FrmRegisterController _controller) { InitializeComponent(); Controller = _controller; Controller.ifrmSearchPatView = this; //按医疗卡号 this.comboBox1.SelectedIndex = 0; this.dgv_patinfo.DataSource = null; }
public FrmSearchPat(FrmRegisterController _controller, string values) { InitializeComponent(); Controller = _controller; Controller.ifrmSearchPatView = this; this.tb_search.Text = values; //按患者姓名查 this.comboBox1.SelectedIndex = 3; this.comboBox1.Text = "患者姓名"; tb_search_KeyDown(null, new KeyEventArgs(Keys.Enter)); }