anchor.diff:  		</liferay-ui:search-container-row>
   		
   		<liferay-ui:search-iterator type="opencs_page_iterator"/>
  +		
   	</liferay-ui:search-container>
   </div>
positive.code:  * along with this program. If not, see <http://www.gnu.org/licenses/>.
   */
  %>
  <%@ include file="../init.jsp"%>
  <%@page import="com.liferay.portal.kernel.dao.search.SearchEntry"%>
  <%@page import="org.opencps.dossiermgt.permissions.ServiceConfigPermission"%>
  <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
  <%@page import="org.opencps.servicemgt.service.ServiceInfoLocalServiceUtil"%>
  <%@page import="org.opencps.servicemgt.model.ServiceInfo"%>
  <%@page import="org.opencps.dossiermgt.service.ServiceConfigLocalServiceUtil"%>
  <%@page import="org.opencps.dossiermgt.search.ServiceConfigSearch"%>
  <%@page import="org.opencps.util.ActionKeys"%>
  <%@page import="java.util.List"%>
  <%@page import="org.opencps.dossiermgt.model.ServiceConfig"%>
  <%@page import="java.util.ArrayList"%>
  <%@page import="org.opencps.dossiermgt.search.ServiceConfigDisplayTerms"%>
  <%@page import="org.opencps.dossiermgt.util.DossierMgtUtil"%>
  <%@page import="javax.portlet.PortletURL"%>
  <%@page import="org.opencps.dossiermgt.service.DossierTemplateLocalServiceUtil"%>
  <%@page import="org.opencps.dossiermgt.model.DossierTemplate"%>
  <%@page import="org.opencps.dossiermgt.search.ServiceConfigSearchTerm"%>
  <%@page import="org.opencps.processmgt.service.ServiceProcessLocalServiceUtil"%>
  
  <liferay-util:include page='<%= templatePath + "toptabs.jsp" %>' servletContext="<%=application %>" />
  <c:if test="<%=ServiceConfigPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADD_SERVICE_CONFIG) %>">
      <liferay-util:include page='<%= templatePath + "toolbar.jsp" %>' servletContext="<%=application %>" />
  </c:if>
  
  <%
  
  	PortletURL iteratorURL = renderResponse.createRenderURL();
  	iteratorURL.setParameter("mvcPath", templatePath + "serviceconfiglist.jsp");
  	iteratorURL.setParameter("tabs1", DossierMgtUtil.TOP_TABS_SERVICE_CONFIG);
  	
  	List<ServiceConfig> serviceConfigs = new ArrayList<ServiceConfig>();
  	List<String> headerNames = new ArrayList<String>();
  	
  	/* headerNames.add("row-no");
  	headerNames.add("service-name");
  	headerNames.add("govAgency-Name"); */
  	headerNames.add("template-name");
  	headerNames.add("service-mode");
  	headerNames.add("process"); 
  	
  	boolean isPermission =
  					ServiceConfigPermission.contains(
  				        themeDisplay.getPermissionChecker(),
  				        themeDisplay.getScopeGroupId(), ActionKeys.ADD_SERVICE_CONFIG);
  
  	
  	int totalCount = 0;
  	/* if (isPermission) {
  		headerNames.add("action");
  	} */
  	
  	String headers = StringUtil.merge(headerNames, StringPool.COMMA);
  	String govAdencyCode = ParamUtil.getString(request, ServiceConfigDisplayTerms.SERVICE_CONFIG_GOVAGENCYCODE);
  %>
  
  <c:if test="<%=ServiceConfigPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADD_SERVICE_CONFIG) %>">
  		<div id="<portlet:namespace/>toolbarResponse"></div>
  </c:if>
  <div class="opencps-searchcontainer-wrapper">
  	<liferay-ui:search-container searchContainer="<%= new ServiceConfigSearch (renderRequest, SearchContainer.DEFAULT_DELTA, iteratorURL) %>" 
  		headerNames="<%= headers %>"> 
  		
  			<liferay-ui:search-container-results>
  			<%
  				ServiceConfigSearchTerm searchTerm = (ServiceConfigSearchTerm) searchContainer.getSearchTerms();
  				
  				serviceConfigs = ServiceConfigLocalServiceUtil.searchServiceConfig(
  					scopeGroupId, searchTerm.getKeywords(), govAdencyCode, 
  					searchTerm.getDomainCode(), searchContainer.getStart(), searchContainer.getEnd());						
  				
  				totalCount = ServiceConfigLocalServiceUtil.countServiceConfig(
  					scopeGroupId, searchTerm.getKeywords(), govAdencyCode, 
  					searchTerm.getDomainCode());
  				
  				total = totalCount;
  				results = serviceConfigs;
  				pageContext.setAttribute("results", results);
  
negative.code: 			keyProperty="serviceConfigId"
  		>
  			<%
  				ServiceInfo serviceInfo =
  							ServiceInfoLocalServiceUtil.getServiceInfo(serviceConfig.getServiceInfoId());
  				DossierTemplate dossierTemplate =
  					DossierTemplateLocalServiceUtil.getDossierTemplate(serviceConfig.getDossierTemplateId());
  
  				String serviceConfigModeName =
  					LanguageUtil.get(
  						portletConfig, themeDisplay.getLocale(),
  						DossierMgtUtil.getNameOfServiceConfigMode(
  							serviceConfig.getServiceMode(),
  							themeDisplay.getLocale()));
  
  				int countProcess =
  					ServiceProcessLocalServiceUtil.countByG_T(
  						themeDisplay.getScopeGroupId(),
  						dossierTemplate.getDossierTemplateId());
  
  				String process = "<i class=\"opencps-icon checked\"></i>";
  
  				if (countProcess == 0) {
  					process = "<i class=\"opencps-icon removed\"></i>";
  				}
  				
  			%>
  			<liferay-util:buffer var="name">
  				<div class="row-fluid">
  					<div class="span3 bold">
  						<liferay-ui:message key="govAgency-Name"/>
  					</div>
  					<div class="span9"><%=serviceConfig.getGovAgencyName()%></div>
  				</div>
  				
  				<div class="row-fluid">
  					
  					<div class="span3 bold">
  						<liferay-ui:message key="govAgency-Name"/>
  					</div>
  					
  					<div class="span9"><%=dossierTemplate.getTemplateName() %></div>
  				</div>
  				
  			</liferay-util:buffer>	
  		
  			<liferay-util:buffer var="service">
  				<div class="row-fluid">
  					
  					<div class="span4 bold">
  						<liferay-ui:message key="process"/>
  					</div>
  					<div class="span8"><%=process%> </div>
  				</div>
  				
  				<div class="row-fluid">
  					<div class="span4 bold">
  						<liferay-ui:message key="service-mode"/>
  					</div>
  					
  					<div class="span8"><%=serviceConfigModeName%></div>
  				</div>
  				
  				<div class="row-fluid">
  
  					<div class="span4 bold"><liferay-ui:message key="service-name"/></div>
  					
  					<div class="span8"><%=serviceInfo.getServiceName()%></div>
  				</div>
  				
  			</liferay-util:buffer>
  				
  			<%	
  				row.setClassName("opencps-searchcontainer-row");
  				row.addText(name);
  				row.addText(service);
  				if(isPermission) {
  					row.addJSP("center", SearchEntry.DEFAULT_VALIGN, templatePath + "service_config_actions.jsp", config.getServletContext(), request, response);
  				}
  