Exemple #1
0
 public FrmNotAssignBed(int deptid, int bedid, string patname, int patlistid, string sourcebedno)
 {
     InitializeComponent();
     this.deptid            = deptid;
     this.bedid             = bedid;
     this.patname           = patname;
     this.patlistid         = patlistid;
     this.sourcebedno       = sourcebedno;
     cmbnobed.DisplayMember = "bed_no";
     cmbnobed.ValueMember   = "bed_no";
     cmbnobed.DataSource    = op_bed.getBedNotAssign(deptid);
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="currentUserId"></param>
 /// <param name="currentDeptId"></param>
 /// <param name="chineseName"></param>
 public FrmBedAssign(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
     loadDocName();
     queryTextBox1.SetSelectionCardDataSource(dt);
     queryTextBox2.SetSelectionCardDataSource(dt);
     dataGridViewEx1.AutoGenerateColumns = false;
     dataGridViewEx1.DataSource          = op_bed.getPatNotAssignBed(Convert.ToInt32(currentDept.DeptID));
     dataGridViewEx2.DataSource          = op_bed.getBedNotAssign(Convert.ToInt32(currentDept.DeptID));
     loadpatbed();
     cmbnobed.DisplayMember = "bed_no";
     cmbnobed.ValueMember   = "bed_no";
     cmbnobed.DataSource    = op_bed.getBedNotAssign(Convert.ToInt32(currentDept.DeptID));
 }