Beispiel #1
0
        public FrmNewBedAssign(int currentDept, string bedNo)
        {
            deptid = currentDept;
            InitializeComponent();
            LoadDocName();
            bedNO = bedNo;
            queryTextBox1.SetSelectionCardDataSource(dt);

            dataGridViewEx1.DataSource          = op_bed.getPatNotAssignBed(currentDept);
            dataGridViewEx1.AutoGenerateColumns = false;
            if (dataGridViewEx1.Rows.Count > 0)
            {
                patID   = Convert.ToInt32(dataGridViewEx1["peopleid", 0].Value.ToString());
                patSEX  = dataGridViewEx1["sex", 0].Value.ToString();
                patName = dataGridViewEx1["name", 0].Value.ToString();
            }
            else
            {
                return;
            }
        }
Beispiel #2
0
 /// <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));
 }