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()); } }
public void GetList_Position() { Class.Danhmuc_Chucvu dm = new Class.Danhmuc_Chucvu(); DataTable dt = dm.GetAlllist_Position(); txtPosition.Properties.Items.Clear(); for (int i = 0; i < dt.Rows.Count; i++) { txtPosition.Properties.Items.Add(dt.Rows[i]["PositionName"].ToString()); } }
public void GetAllList_Position() { Class.Danhmuc_Chucvu dm = new Class.Danhmuc_Chucvu(); Griditem.DataSource = dm.GetAlllist_Position(); }