private void GetMenu() { htInputParameter = new Hashtable(); dsRecordInfo = new DataSet(); htInputParameter.Add(ConstantsManager.QUERY_DATASET_NAME, dsRecordInfo); htInputParameter.Add(ConstantsManager.MESSAGE_ID, ""); htInputParameter.Add("UserID", Session["UserID"]); htInputParameter.Add("IsPageMenu", "true"); htInputParameter.Add("PurviewPRI", 1); UserPurviewLibrary instanceUserPurviewLibrary = new UserPurviewLibrary(); htOutputParameter = instanceUserPurviewLibrary.GetUserPurviewInfoForMenu(htInputParameter); dsRecordInfo = (DataSet)htOutputParameter[ConstantsManager.QUERY_DATASET_NAME]; rtvMenu.DataNavigateUrlField = "PageFileName"; rtvMenu.DataFieldParentID = "MenuLevelID"; rtvMenu.DataFieldID = "PurviewID"; rtvMenu.DataTextField = "PurviewName"; rtvMenu.DataValueField = "PurviewID"; dsRecordInfo.Tables[0].DefaultView.RowFilter = "UserGroupID='{0}'".FormatInvariantCulture(ddlUserGroupID.SelectedValue); rtvMenu.DataSource = dsRecordInfo.Tables[0].DefaultView; rtvMenu.DataBind(); rtvMenu.ExpandAllNodes(); }
public void GetMenu(string groupID) { htInputParameter = new Hashtable(); dsRecordInfo = new DataSet(); htInputParameter.Add(ConstantsManager.QUERY_DATASET_NAME, dsRecordInfo); htInputParameter.Add(ConstantsManager.MESSAGE_ID, ""); htInputParameter.Add("UserID", Session["UserID"]); htInputParameter.Add("IsPageMenu", "true"); htInputParameter.Add("PurviewPRI", 1); UserPurviewLibrary instanceUserPurviewLibrary = new UserPurviewLibrary(); htOutputParameter = instanceUserPurviewLibrary.GetUserPurviewInfoForMenu(htInputParameter); dsRecordInfo = (DataSet)htOutputParameter[ConstantsManager.QUERY_DATASET_NAME]; dsRecordInfo.Tables[0].DefaultView.RowFilter = "UserGroupID='{0}' AND IsPageMenu=0".FormatInvariantCulture(groupID); NavList.DataSource = dsRecordInfo.Tables[0].DefaultView; NavList.DataBind(); }