public bool OrganizationEditing_UpdateGUI() { clearForm(); ASPxPageControl_OrganizationTabs.Enabled = true; ASPxGridView_Person.Enabled = true; popup_Organization.ShowOnPageLoad = true; popup_Organization.HeaderText = string.Format("Tổ Chức - {0}", session.GetObjectByKey <NAS.DAL.Nomenclature.Organization.Organization>(OrganizationId).Name); ASPxGridView_Person.DataSource = LoginPersonLST; ASPxGridView_Person.DataBind(); return(true); }
public void loadListUsers(TreeListNode node) { LoginPersonLST = null; if (node != null) { NAS.DAL.Nomenclature.Organization.Department selectedDP = (NAS.DAL.Nomenclature.Organization.Department)node.DataItem; DepartmentBO bo = new DepartmentBO(); LoginPersonLST = bo.getAllPeopleInDepartments(session, selectedDP); } ASPxGridView_Person.DataSource = LoginPersonLST; ASPxGridView_Person.DataBind(); }
protected void Page_Init(object sender, EventArgs e) { session = XpoHelper.GetNewSession(); //if (!IsPostBack) //{ // if (ASPxTreeList_Department2.Nodes.Count > 0) // { // ASPxTreeList_Department2.Nodes[0].Focus(); // loadListUsers(ASPxTreeList_Department2.Nodes[0]); // } //} ASPxGridView_Person.DataSource = LoginPersonLST; ASPxGridView_Person.DataBind(); XpoDepartment.Session = session; XpoOrganization.Session = session; }