/// <summary> /// 绑定检查组 /// </summary> private void GroupBind() { DataTable dt = bGroup.GetList(" 1=1 and DEPT_CODE='" + this.cmb_Dept.SelectedValue.ToString() + "' "); this.cmb_Group.DataSource = dt; this.cmb_Group.DisplayMember = "QUEUE_NAME"; this.cmb_Group.ValueMember = "QUEUE_ID"; DataTable dt2 = dt.Copy(); this.cmb_Group2.DataSource = dt2; this.cmb_Group2.DisplayMember = "QUEUE_NAME"; this.cmb_Group2.ValueMember = "QUEUE_NAME"; }
/// <summary> /// 绑定检查组(诊室) /// </summary> public void Bind_ExamGroup(ComboBox cmb_ExamGroup, IModel iUser, bool isAddBlank) { BDeptVsQueue bDeptVsQueue = new BDeptVsQueue(); PACS_Model.MUser mUser = (PACS_Model.MUser)iUser; System.Data.DataTable dt = bDeptVsQueue.GetList("DEPT_CODE = '" + mUser.USER_DEPT + "'"); if (isAddBlank) { DataRow dr = dt.NewRow(); dr["QUEUE_ID"] = 0; dr["DEPT_CODE"] = ""; dr["QUEUE_NAME"] = ""; dt.Rows.InsertAt(dr, 0); } cmb_ExamGroup.DataSource = dt; cmb_ExamGroup.DisplayMember = dt.Columns["QUEUE_NAME"].ColumnName; }