private string GetNavigatorState() { // Columns to display int companyId = Int32.Parse(hdfCompanyId.Value.Trim()); string resourceType = "Materials"; string columnsToDisplay = "&columns_to_display="; ResourceTypeViewDisplay resourceTypeViewDisplay = new ResourceTypeViewDisplay(); columnsToDisplay = columnsToDisplay + resourceTypeViewDisplay.GetColumnsByDefault(resourceType, companyId, true); // SearchOptions for condition 1 string searchOptions = ""; searchOptions = searchOptions + "&search_ddlCondition1=1"; searchOptions = searchOptions + "&search_tbxCondition1=%"; // Other values searchOptions = searchOptions + "&search_state=1"; searchOptions = searchOptions + "&btn_origin=Search"; // Return return columnsToDisplay + searchOptions; }
private string GetColumnsToDisplay() { int companyId = Int32.Parse(hdfCompanyId.Value.Trim()); string resourceType = hdfResourceType.Value.Trim(); string columnsToDisplay = "&columns_to_display="; ResourceTypeViewDisplay resourceTypeViewDisplay = new ResourceTypeViewDisplay(); columnsToDisplay = columnsToDisplay + resourceTypeViewDisplay.GetColumnsByDefault(resourceType, companyId, true); return columnsToDisplay; }