private void LoadListUser(string GroupID) { cls_Group_Employees objGroup = new cls_Group_Employees(); DataTable _dt = objGroup.GetUserList(Convert.ToInt32(GroupID)); gridUser.DataSource = _dt; gridUser.DataBind(); if (gridUser.Items.Count > 0) { gridUser.Items[0].Selected = true; GetReportFollowGroup(Convert.ToInt32(cboGroup.SelectedValue), Convert.ToInt32(gridUser.SelectedValue)); } }
private void LoadUser( int EmployeeId) { cls_Group_Employees objUser = new cls_Group_Employees(); DataTable _dt = objUser.GetUserList(EmployeeId); gridGroup.DataSource = _dt; gridGroup.DataBind(); if (gridGroup.Items.Count > 0) { gridGroup.Items[0].Selected = true; CheckAuThority(Convert.ToInt32(gridGroup.SelectedValue),Convert.ToInt32(cboGroup.SelectedValue)); trFunction.ExpandAllNodes(); trFunction.Nodes[0].Selected = true; CheckDepartment(gridGroup.SelectedValue.ToString(), trFunction.SelectedValue.ToString()); } }