private Item SelectDepartmentFromOptions() { IList items = QDepartments.SelectItems2(); Item selectedItem = TemplatesController.ShowListBoxOptionsForm(items, view.ParentControl); return(selectedItem); }
private void LoadDepartments() { departments = QDepartments.SelectItems(); foreach (Department department in departments) { view.AddDepartmentToComboBox(department); } }
public void Update(string departmentName, bool isActive) { LoginInfo loginInfo = LoginInfo.GetInstance(); this.Name = departmentName; this.IsActive = isActive; QDepartments.UpdateItem(this, loginInfo.UserName); }
public void Insert(string departmentName, bool isActive) { LoginInfo loginInfo = LoginInfo.GetInstance(); this.Name = departmentName; this.IsActive = isActive; int dbresult = QDepartments.InsertItem(this, loginInfo.UserName); }
public void LoadView() { this.departments = QDepartments.SelectItems(); this.directors = QUsers.SelectUsersByRoleID(UserRoles.DepartmentDirector); AddDepartmentsToView(); AddDirectorsToView(); RefreshDepartmentDirectors(); }
public override void LoadView() { departments.Clear(); view.ClearView(); IList columns = new ArrayList() { "ID", "Department", "Active" }; this.view.AddListViewColumns(columns); this.view.ListTitle = "Departments"; departments = QDepartments.SelectItems(); AddDepartmentListToView(); SetColumnsHeaderSize(); }