public Object RequestProgramRoleData(int startRow, int pageSize, string sortExpression) { object returnValue = null; if (ctlRoleGrid.SelectedIndex > -1) { SuProgramRole suProgramRole = new SuProgramRole(); suProgramRole.Role = SuRoleService.FindByIdentity(UIHelper.ParseShort(ctlRoleGrid.SelectedDataKey["Roleid"].ToString())); returnValue = QueryProvider.SuProgramRoleQuery.FindBySuProgramRole(suProgramRole, UserAccount.CurrentLanguageID, startRow, pageSize, sortExpression); } return(returnValue); }
public int RequestProgramRoleCount() { int count = 0; if (ctlRoleGrid.SelectedIndex > -1) { SuProgramRole suProgramRole = new SuProgramRole(); suProgramRole.Role = SuRoleService.FindByIdentity(UIHelper.ParseShort(ctlRoleGrid.SelectedDataKey["Roleid"].ToString())); count = QueryProvider.SuProgramRoleQuery.CountBySuProgramRoleCriteria(suProgramRole, UserAccount.CurrentLanguageID); } return(count); }
protected void ctlRoleSearchLookupPopupCaller_NotifyPopupResult(object sender, string action, string value) { if (action != "ok") { return; } object returnValue = new object(); string[] listID = value.Split('|'); IList <SuRole> roleList = new List <SuRole>(); foreach (string id in listID) { SuRole role = SuRoleService.FindByIdentity(UIHelper.ParseShort(id)); if (role != null) { roleList.Add(role); } } returnValue = roleList; CallOnObjectLookUpReturn(returnValue); }