<%@ page import="ro.emid.common.constants.AppConstants" %>
<%@ page import="ro.emid.lib.model.InstalatieAfectata" %>

<%
	InstalatieAfectata[] lfs = (InstalatieAfectata[])request.getAttribute("savedLfs");
	String lfsIds = "";
	for(int i = 0; i < lfs.length; i++) {
		lfsIds += ( lfs[i].getId() + ( i != lfs.length - 1 ? "," : "" ) );
	}
%>

<script type="text/javascript">
    window.parent.window.opener.setTotalConsumatoriFromBrowse(
            <%=request.getAttribute("gradIncarcare")%>,
            <%=request.getAttribute("consIntr")%>,
            <%=request.getAttribute("consIt")%>,
            <%=request.getAttribute("consMt")%>,
            <%=request.getAttribute("consJt")%>,
            <%=request.getAttribute("consCasnici")%>,
            <%=request.getAttribute("consMici")%>,
            <%=request.getAttribute("consMari")%>
    );
	window.parent.opener.document.getElementById('instalatiiAfectate').value = '<%=lfsIds%>';
    window.parent.window.close();
</script>
