public void GetAllList_DEPARTMENT() { Class.DanhMuc_PhongBan dm = new Class.DanhMuc_PhongBan(); gridItem.DataSource = dm.GetAllList_DEPARTMENT(); gridItemDetail.ExpandAllGroups(); }
private void Call_info_toCBO() { Class.DanhMuc_ChiNhanh cn = new Class.DanhMuc_ChiNhanh(); DataTable dtcn = cn.Danhsachchinhanh(); cboOldBranch.Properties.DataSource = dtcn; cboOldBranch.Properties.ValueMember = "BranchCode"; cboOldBranch.Properties.DisplayMember = "BranchName"; cboNewBranch.Properties.DataSource = dtcn; cboNewBranch.Properties.ValueMember = "BranchCode"; cboNewBranch.Properties.DisplayMember = "BranchName"; Class.DanhMuc_PhongBan pb = new Class.DanhMuc_PhongBan(); DataTable dtpb = pb.GetAllList_DEPARTMENT(); cboOldDepartment.Properties.DataSource = dtpb; cboOldDepartment.Properties.ValueMember = "DepartmentCode"; cboOldDepartment.Properties.DisplayMember = "DepartmentName"; // cboNewDepartment.Properties.DataSource = dtpb; // cboNewDepartment.Properties.ValueMember = "DepartmentCode"; // cboNewDepartment.Properties.DisplayMember = "DepartmentName"; Class.Danhmuc_Chucvu cv = new Class.Danhmuc_Chucvu(); DataTable dtcv = cv.GetAlllist_Position();; txtNewPosition.Properties.Items.Clear(); txtOldPosition.Properties.Items.Clear(); for (int i = 0; i < dtcv.Rows.Count; i++) { txtNewPosition.Properties.Items.Add(dtcv.Rows[i]["PositionName"].ToString()); txtOldPosition.Properties.Items.Add(dtcv.Rows[i]["PositionName"].ToString()); } }