PortaleOrdiniGruppo/jsp/pi_poautord_portlet.jsp
2025-03-24 15:33:52 +01:00

348 lines
30 KiB
Plaintext

<%/*Encoding:UTF-8*/%>
<%/*Type:Portlet*/%>
<%//Def:[{"actioncode":"function btn_approva_Click(){\r\n if(confirm('Procedere con l\\' approvazione?')){\r\n this.selezionati.Value(this.xzoom_ord.GetSelectedDataAsTrsString())\r\n this.pi_fapprova.Link()\r\n }\r\n \r\n}\r\n\r\nfunction pi_fapprova_Executed(result,cError){\r\n alert(result)\r\n this.pi_refresh.Emit()\r\n}\r\n\r\nfunction this_Loaded(){\r\n this.pi_refresh.Emit()\r\n this.xzoom_ord.Grid.disabled_fld='MVFLPROV'\r\n}\r\n\r\nfunction codazi_onChange(){\r\n this.pi_refresh.Emit()\r\n}\r\n\r\nfunction ordprov_onChange(){\r\n this.pi_refresh.Emit()\r\n}","adaptive":"adaptive","altInterfaceFor":"","attack_protection":"","bg_image":"","bg_image_position":"","bg_image_repeat":"","bg_image_size":"","cache_in_post":"false","cache_time":"","color":"#FFFFFF","container_bg_color":"","container_bg_image":"","container_bg_pos":"","css":"","css_class":"","css_code":"[{\"version\":2,\"specific_states_value\":{\"normal\":{\"border_radius_tl\":\"2\",\"border_radius_tr\":\"2\",\"border_radius_bl\":\"2\",\"border_radius_br\":\"2\"},\"hover\":{},\":before\":{},\":after\":{}},\"current_state\":\"normal\",\"font_list\":[],\"type\":\"box\",\"class_name\":\"pi-curvato\",\"selector\":\".pi-curvato\",\"id\":\"form\"}]","custom":"","description":"","expected_conn":"60","fixed_top":"","form_action":"","form_enctype":"default","form_target":"","form_type":"false","grapesCode":"\u003cbody\u003e{{ @XZoom1 }}{{ @Button1 }}{{ @xzoom_ord }}{{ @Approva }}{{ @btn_approva }}{{ @xzoom_ord }}{{ @btn_approva }}{{ @CodAzi }}{{ @textbox1 }}{{ @codazi }}{{ @Checkbox8 }}{{ @ordprov }}\u003c\u002fbody\u003e","grapesCss":"","h":"530","hsl":"false","htmlcode":"{{ @ordprov }} \n \n{{ @codazi }} \n{{ @xzoom_ord }} \n \n{{ @btn_approva }} \n{{ @CodAzi{{ @textbox1 }} \n }} \n \n \n","included_font":"[]","language":"false","layout_step":"","layout_steps_values":"{}","lock_items":"","manifest":"Custom manifest","max_w":"","min_w":"","mode":"NORMAL","my_library":"","offline":"false","on_security_failure":"login","page_layer":"","pages":"1","pagesProp":"[{\"h\":\"530\",\"w\":\"100%\",\"title\":\"\",\"layer\":\"\",\"layout_steps_values\":{}}]","pages_names":"","portlet_position":"align center","positioning":"absolute","roles":"","sec_heredity":"","security":"logged","selectZone":"","server_cache_time":"","shared_manifest":"false","sp_theme":"true","steps":"","stretch_height":"","tabstrip_class":"","tabstrip_hidden":"","tag":"","title":"","title_block":"","title_url":"","type":"Form","v_line":"779","version":"37","w":"100%","wizard":""},{"anchor":"top-left-right-bottom","autozoom":"","checkAll":"false","checkbox":"true","config":"pi_zautord","ctrlOfVariant":"","fixed":"","h":"468","hide":"false","infinite_scroll":"","key":"AZIENDA,MVSERIAL","layer":"false","layout_steps_values":"{}","minheight":"","name":"xzoom_ord","other":"w_codazi=&w_ordprov=&ReceiverName=pi_refresh&WaitForFilter=true","page":"1","rapp":"","sequence":"1","spuid":"","tableName":"ordini_mast","type":"XZoom","w":"766","wireframe_props":"","x":"7","y":"53","zindex":"1","zone":""},{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button","create_undercond":"","ctrlOfVariant":"","edit_undercond":"","fixed":"false","font":"","font_color":"","font_size":"","h":"25","help_tips":"","hide":"false","hide_undercond":"","layer":"false","layout_steps_values":"{}","name":"btn_approva","page":"1","rapp":"","sequence":"2","spuid":"","tabindex":"","type":"Button","type_submit":"false","type_wizard":"","value":"Approva","w":"96","wireframe_props":"value","x":"606","y":"8","zindex":"2","zone":""},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"20","init":"","init_par":"","name":"selezionati","page":"1","reactive":"","sequence":"3","server_side":"false","type":"Variable","typevar":"character","w":"120","x":"860","y":"-41"},{"allowedentities":"pi_fapprova","async":"false","check_exp":"","ctrlOfVariant":"","decrypted_parms":"","decrypted_parms_pwd":"","entity_type":"routine","h":"20","m_cAction":"function","name":"pi_fapprova","offline":"false","page":"1","parms":"pDATI=selezionati","popup":"false","popup_height":"","popup_maximized":"false","popup_scroll":"false","popup_style":"by skin","popup_width":"","progressbar":"","refresh":"","sequence":"4","servlet":"pi_fapprova","target":"","type":"SPLinker","w":"120","x":"860","y":"-12"},{"anchor":"top-left","calculate":"","class_Css":"combobox","create_undercond":"","ctrlOfVariant":"","dataobj":"","dataobj_value":"","disabled":"false","edit_undercond":"","empty_value":"true","field":"","fixed":"","font":"Arial, Helvetica, sans-serif","font_size":"8","h":"25","help_tips":"Azienda","hide":"false","hide_undercond":"","init":"false","init_par":"","layer":"false","layout_steps_values":"{}","name":"codazi","page":"1","picture":"","rapp":"","reactive":"","sequence":"5","spuid":"","tabindex":"0","textlist":"Polo Informatico,Metriks,Fconn","type":"Combobox","typevar":"character","valuelist":"POLOI,METRI,FCONN","visible":"true","w":"177","wireframe_props":"name,textlist","x":"93","y":"13","zindex":"3","zone":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"label","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"false","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"21","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"textbox1","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"xssPrevent","sanitize_tags":"","sequence":"6","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"Azienda","w":"76","wireframe_props":"align,value,n_col","x":"9","y":"17","zindex":"4","zone":""},{"broadcast":"all","ctrlOfVariant":"","eventsNames":"","eventsObjs":"","h":"20","name":"pi_refresh","page":"1","parmsNames":"w_codazi,w_ordprov","parmsTypes":"var,var","parmsValues":"codazi,ordprov","persistent":"true","sequence":"7","type":"EventEmitter","w":"120","x":"859","y":"31"},{"anchor":"top-left","calculate":"","checked_value":"0","create_undercond":"","css_class":"label","css_class_input":"","ctrlOfVariant":"","dataobj":"","disabled":"false","edit_undercond":"","extended":"","field":"","fixed":"","h":"25","help_tips":"","hide":"false","hide_undercond":"","init":"true","init_par":"0","label_text":"Mostra solo ordini provvisori","layer":"false","layout_steps_values":"{}","name":"ordprov","page":"1","rapp":"","reactive":"","sequence":"8","spuid":"","style_type":"","tabindex":"","type":"Checkbox","typevar":"numeric","unchecked_value":"1","w":"258","wireframe_props":"label_text","x":"317","y":"14","zindex":"5","zone":""}]%>
<%/*Description:*/%>
<%@ page import="com.zucchetti.SPBridge.*" %><%@ page import="java.util.*" %><%@ page import="com.zucchetti.PortalStudio.*" %><%@ page import="com.zucchetti.sitepainter.*" %>
<%@ page import="com.zucchetti.sitepainter.SPPrxycizer" %><%@page extends="com.zucchetti.PortalStudio.PortalStudioBase" %>
<%@ page language="java" pageEncoding="UTF-8" %><%Sitepainter sp=Sitepainter.getSitepainter(request);
String m_cJSPUID=getJSPUID();
String idPortlet=sp.getPortletId(request,sp.getParameter("ForcedPortletUID",JSPLib.NewCPCCCHK(5)));
String PageletId = (request.getAttribute("PageletId") != null ? (String)request.getAttribute("PageletId" ) : sp.getParameter("PageletId" ,"") );
String SPPortletTitleId = (request.getAttribute("SPPortletTitleId") != null ? (String)request.getAttribute("SPPortletTitleId") : sp.getParameter("SPPortletTitleId","") );
String SPParentObjId=(request.getAttribute("SPParentObjId")!=null?(String)request.getAttribute("SPParentObjId"):sp.getParameter("SPParentObjId",""));
request.setAttribute("com.zucchetti.sitepainter.PortalStudio.getCryptPwd",JSPLib.NewCPCCCHK(6));
if(sp.getParameter("SpStaticCode","").equals(m_cJSPUID)){
Library.SetMimeType(response,"text/javascript");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
%>
window.pi_poautord_Static=function(){
if(typeof btn_approva_Click !='undefined')this.btn_approva_Click=btn_approva_Click;
if(typeof pi_fapprova_Executed !='undefined')this.pi_fapprova_Executed=pi_fapprova_Executed;
if(typeof this_Loaded !='undefined')this.this_Loaded=this_Loaded;
if(typeof codazi_onChange !='undefined')this.codazi_onChange=codazi_onChange;
if(typeof ordprov_onChange !='undefined')this.ordprov_onChange=ordprov_onChange;
<%if(!Library.Empty(PageletId) ){%>
this.this_Calc=function(){
this.PageletCalc();
}
<%}%>
function btn_approva_Click(){
if(confirm('Procedere con l\' approvazione?')){
this.selezionati.Value(this.xzoom_ord.GetSelectedDataAsTrsString())
this.pi_fapprova.Link()
}
}
function pi_fapprova_Executed(result,cError){
alert(result)
this.pi_refresh.Emit()
}
function this_Loaded(){
this.pi_refresh.Emit()
this.xzoom_ord.Grid.disabled_fld='MVFLPROV'
}
function codazi_onChange(){
this.pi_refresh.Emit()
}
function ordprov_onChange(){
this.pi_refresh.Emit()
}
this.dispatchEvent('HideUnderCondition');
this.dispatchEvent('EditUnderCondition');
}
<%}else if(sp.getParameter("SpCssCode","").equals(m_cJSPUID)){
Library.SetMimeType(response,"text/css");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
%>
.pi_poautord_container .pi-curvato{ border-radius: 2px 2px 2px 2px;
}
.pi_poautord_container {
}
.pi_poautord_title_container {
margin: auto;
}
.pi_poautord_portlet{
position:relative;
margin: auto;
width:100%;
min-width:779px;
height:530px;
background-color:#FFFFFF;
}
.pi_poautord_portlet[Data-page="1"]{
height:530px;
width:100%;
}
.pi_poautord_portlet > .xzoom_ord_ctrl {
box-sizing:border-box;
z-index:1;
position:absolute;
display:inline-block;
top:53px;
left:7px;
right:6px;
bottom:9px;
width:auto;
}
.pi_poautord_portlet > .btn_approva_ctrl {
box-sizing:border-box;
z-index:2;
position:absolute;
display:inline-block;
top:8px;
right:77px;
width:96px;
height:25px;
}
.pi_poautord_portlet > .btn_approva_ctrl {
}
.pi_poautord_portlet > .codazi_ctrl {
box-sizing:border-box;
z-index:3;
position:absolute;
display:inline-block;
top:13px;
left:93px;
width:177px;
height:25px;
}
.pi_poautord_portlet > .textbox1_ctrl {
box-sizing:border-box;
z-index:4;
position:absolute;
display:inline-block;
top:17px;
left:9px;
width:76px;
height:auto;
min-height:21px;
}
.pi_poautord_portlet > .textbox1_ctrl {
height:auto;
min-height:21px;
}
.pi_poautord_portlet > .textbox1_ctrl {
overflow:hidden;
text-align:right;
}
.pi_poautord_portlet > .ordprov_ctrl {
box-sizing:border-box;
z-index:5;
position:absolute;
display:inline-block;
top:14px;
left:317px;
width:258px;
height:25px;
}
<%}else if(sp.getParameter("SpWireframe","").equals("true")){
String containerId=sp.getParameter("containerID",idPortlet);
Library.SetMimeType(response,"text/html");
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
response.setHeader("Cache-Control","public");
PrintWireFrame(containerId,out);
%>
<%!
void PrintWireFrame(String containerId, java.io.Writer out) throws java.lang.Throwable {
String def="[{\"h\":\"530\",\"layout_steps_values\":{},\"pages_names\":\"\",\"steps\":\"\",\"title\":\"\",\"type\":\"Form\",\"v_line\":\"779\",\"w\":\"100%\",\"wizard\":\"\"},{\"anchor\":\"top-left-right-bottom\",\"h\":\"468\",\"layout_steps_values\":{},\"page\":\"1\",\"type\":\"XZoom\",\"w\":\"766\",\"x\":\"7\",\"y\":\"53\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"25\",\"layout_steps_values\":{},\"page\":\"1\",\"type\":\"Button\",\"value\":\"Approva\",\"w\":\"96\",\"x\":\"606\",\"y\":\"8\",\"zindex\":\"2\"},{\"h\":\"20\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"120\",\"x\":\"860\",\"y\":\"-41\"},{\"h\":\"20\",\"page\":\"1\",\"type\":\"SPLinker\",\"w\":\"120\",\"x\":\"860\",\"y\":\"-12\"},{\"anchor\":\"top-left\",\"h\":\"25\",\"layout_steps_values\":{},\"name\":\"codazi\",\"page\":\"1\",\"textlist\":\"Polo Informatico,Metriks,Fconn\",\"type\":\"Combobox\",\"w\":\"177\",\"x\":\"93\",\"y\":\"13\",\"zindex\":\"3\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"21\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"textbox1\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"Azienda\",\"w\":\"76\",\"x\":\"9\",\"y\":\"17\",\"zindex\":\"4\"},{\"h\":\"20\",\"name\":\"pi_refresh\",\"page\":\"1\",\"type\":\"EventEmitter\",\"w\":\"120\",\"x\":\"859\",\"y\":\"31\"},{\"anchor\":\"top-left\",\"h\":\"25\",\"label_text\":\"Mostra solo ordini provvisori\",\"layout_steps_values\":{},\"name\":\"ordprov\",\"page\":\"1\",\"type\":\"Checkbox\",\"w\":\"258\",\"x\":\"317\",\"y\":\"14\",\"zindex\":\"5\"}]";
out.write("<script src='../"+SPPrxycizer.proxycizedPath("stdFunctions.js")+"'></script>\n");
out.write("<script src='../"+SPPrxycizer.proxycizedPath("portalstudio/renderDef.js")+"'></script>\n");
out.write("<script src='../"+SPPrxycizer.proxycizedPath("visualweb/itemsObj.js")+"'></script>\n");
out.write("<link type='text/css' rel='STYLESHEET' href='../visualweb/itemsObj.css'></script>\n");
out.write("<link type='text/css' rel='STYLESHEET' href='../portalstudio/renderDef.css'></script>\n");
out.write("<div id="+JSPLib.ToHTMLValue(containerId)+"></div>\n");
out.write("<script> /*JS_MARKER_START*/\n");
out.write("new renderDef({\n");
out.write("def: "+def+",\n");
out.write("container: '"+JSPLib.ToJSValue(containerId)+"',\n");
out.write("replaceContainer: true\n");
out.write("})\n");
out.write("/*JS_MARKER_END*/ </script>\n");
}/**/%>
<%}else{
if (JSPLib.checkApplication(request, response, out, sp, 37,"pi_poautord","UTF-8")) {return; }
%><%if(!sp.isLogged()){%>
<script>
window.location=<%=JSPLib.ToJSValue(JSPLib.SPWebRootURL(request),true)%>+'/servlet/cp_login?m_cURL='+<%=JSPLib.ToJSValue(JSPLib.SPWebRootURL(request),true)%>+'/'+<%=JSPLib.ToJSValue(request.getRequestURI().substring(JSPLib.RAt("/",request.getRequestURI(),2)),true)%>+'&'+<%=JSPLib.ToJSValue(request.getQueryString(),true)%>
</script>
<%if(true) return;
}%>
<%boolean included=request.getAttribute("javax.servlet.include.request_uri")!=null || "true".equals(request.getParameter("clientsideinclusion"));
Map<String,String> safe_params;
if(!included){%>
<!DOCTYPE html>
<html >
<%}
if(!included){%>
<head>
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp/pi_poautord_portlet.jsp"+(!Library.Empty(request.getQueryString())?"?"+request.getQueryString():"") )%>/>
<%Library.WriteMetaTags(request,response,out);
}
sp.WritePortletJSLibraries(request, out, false,false); %><script>
/*JS_MARKER_START*/
<%PrintTranslations(out, sp, request, response, idPortlet);%>
/*JS_MARKER_END*/
</script>
<% sp.WritePortalStudioCSS(request, out);
if(Library.IsMobile(request)){%><%}%>
<link id='<%=idPortlet%>_link_css' href='<%=JSPLib.ToHTML(JSPLib.getJSPSelfPath(request))%>?SpCssCode=<%=m_cJSPUID%>' onload="
requestAnimationFrame( function() {
this.setAttribute('css-applied', 'true');
this.dispatchEvent(new CustomEvent('cssApplied'));
}.bind(this));"
rel='stylesheet' type='text/css'/>
<style>
</style>
<script>
/*JS_MARKER_START*/
ZtVWeb.POM.addObj('<%=idPortlet%>','pi_poautord','portletObj','<%=JSPLib.ToJSValue(SPParentObjId,false,true)%>');
/*JS_MARKER_END*/
</script>
<%if(request.getAttribute("pi_poautord_firstinclusion")==null){%>
<script src='../<%=SPPrxycizer.proxycizedPath("XZoomObj.js")%>'></script>
<script src='../<%=SPPrxycizer.proxycizedPath("controlsBridge.js")%>'></script>
<script src='../<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/calendar"+(Library.IsMobile(request)?".mobile":"")+".js")%>'></script>
<%if(Library.IsMobile(request)){%>
<script src='../<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/calculator.mobile.js")%>'></script>
<%}
}%>
<%String selezionati= "";
String codazi= "";
String textbox1= "Azienda";
double ordprov=0;
try{
if(!included){%>
<link rel='shortcut icon' href='../favicon.ico' />
</head>
<%}
if(!included){%>
<body style="margin:0;background-color:transparent;"<%= sp.GetBodyClassAttribute() %>>
<%= Sitepainter.GetBodyMobileScript(request) %><%}%>
<div id='<%=idPortlet%>_container' class='pi_poautord_container'>
<div id='<%=idPortlet%>' portlet_id='<%=idPortlet%>' align='left' class='pi_poautord_portlet portlet' style='opacity:0.001'>
<%if(sp.isLogged()){
if(sp.isInGroup(1) && sp.getGlobal("g_EditPortlet",false)==true){%>
<script>
ZtVWeb.AddPortletToEdit('pi_poautord','<%=idPortlet%>',false,'');
</script><%}}
String xzoom_ord_sParam = "";
xzoom_ord_sParam+="Table=" + "ordini_mast" + "&";
xzoom_ord_sParam+="PKFields=" + "AZIENDA,MVSERIAL" + "&";
xzoom_ord_sParam+="ConfigName=" + "pi_zautord" + "&";
xzoom_ord_sParam+="Autozoom=" + "" + "&";
xzoom_ord_sParam+= "w_codazi=&w_ordprov=&ReceiverName=pi_refresh&WaitForFilter=true" + "&";%>
<div id='<%=idPortlet%>_xzoom_ord'>
<%request.setAttribute("SPParentObjId",idPortlet);
pageContext.include("SPPortalZoomBase_portlet.jsp?" + xzoom_ord_sParam + "&ActivateCheckbox=true");%></div>
<input id='<%=idPortlet%>_btn_approva' type='button' class='button btn_approva_ctrl'/>
<select id='<%=idPortlet%>_codazi' name='codazi' class='combobox' title=<%=JSPLib.ToHTMLValue("Azienda" )%> style='font-family:Arial, Helvetica, sans-serif;font-size:8;' tabindex='0'></select>
<span id='<%=idPortlet%>_textbox1' formid='<%=idPortlet%>' ps-name='textbox1' class='label textbox1_ctrl'><div id='<%=idPortlet%>_textbox1tbl' style='width:100%;'><%=JSPLib.ToHTML("Azienda")%></div></span>
<div id='<%=idPortlet%>_ordprov_div' style=''><input id='<%=idPortlet%>_ordprov' name='ordprov' class='checkbox' style='vertical-align:middle' type='checkbox' /><label for='<%=idPortlet%>_ordprov' class='label' style:'vertical-align:middle;'><%=JSPLib.ToHTML("Mostra solo ordini provvisori")%></label></div>
</div>
</div>
<script>
/*JS_MARKER_START*/
ZtVWeb.addPortlet('<%=idPortlet%>','pi_poautord');
<%!
void PrintTranslations(java.io.Writer out, Sitepainter sp, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String idPortlet) throws java.lang.Throwable {
String m_cVariantFolder = request.getAttribute("m_cVariantFolder") != null ? (String)request.getAttribute("m_cVariantFolder") : "";
String m_cVariant = request.getAttribute("m_cVariant") != null ? (String)request.getAttribute("m_cVariant") : "";
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALC_CHANGE_MARK",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALC_CHANGE_MARK"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALC_CLOSE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALC_CLOSE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALC_INSERT_2ND_OP",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALC_INSERT_2ND_OP"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALC_TITLE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALC_TITLE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_APRIL",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_APRIL"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_AUGUST",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_AUGUST"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_CLOSE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_CLOSE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_DECEMBER",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_DECEMBER"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_FEBRUARY",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_FEBRUARY"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_FRI",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_FRI"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_GOTO_CURRENTMONTH",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_GOTO_CURRENTMONTH"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_JANUARY",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_JANUARY"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_JULY",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_JULY"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_JUNE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_JUNE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_MARCH",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_MARCH"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_MAY",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_MAY"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_MON",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_MON"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_NEXT_MONTH",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_NEXT_MONTH"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_NOVEMBER",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_NOVEMBER"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_OCTOBER",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_OCTOBER"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_PREVIOUS_MONTH",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_PREVIOUS_MONTH"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_SAT",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_SAT"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_SELECT_MONTH",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_SELECT_MONTH"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_SELECT_YEAR",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_SELECT_YEAR"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_SEPTEMBER",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_SEPTEMBER"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_SUN",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_SUN"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_THU",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_THU"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_TODAY_IS",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_TODAY_IS"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_TUE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_TUE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_WED",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_WED"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_CALENDAR_WEEK",true)+","+JSPLib.ToJSValue(sp.translate("MSG_CALENDAR_WEEK"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_DELETING",true)+","+JSPLib.ToJSValue(sp.translate("MSG_DELETING"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_PROCEED_WITH_DELETE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_PROCEED_WITH_DELETE"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_ROUTINE_WAIT",true)+","+JSPLib.ToJSValue(sp.translate("MSG_ROUTINE_WAIT"),true)+");\n");
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_WRONG_DATE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_WRONG_DATE"),true)+");\n");
}/**/%>
window.<%=idPortlet%>=new function(){
var m_cSPPageletId = '<%=JSPLib.ToJSValue(PageletId,false,true)%>';
var m_cSPPortletTitleId = '<%=JSPLib.ToJSValue(SPPortletTitleId,false,true)%>';
ZtVWeb.newForm(this,'<%=idPortlet%>','pi_poautord',["779"],["530"],'portlet',<%=sp.isOfflineInstallation()%>,false,m_cSPPageletId,'', 'adaptive','','',{},false,false,1,m_cSPPortletTitleId, 'NORMAL',[{"layout_steps_values":{},"w":"779","h":"530","title":"","layer":""}]);
if(this.xzoom_ord=ZtVWeb.getPortletInc('<%=idPortlet%>_xzoom_ord')){
this.xzoom_ord.setContainer(this,'xzoom_ord')
this.xzoom_ord_ctrl=new ZtVWeb.XZoomCtrl(this,{"anchor":"top-left-right-bottom","ctrlid":"<%=idPortlet%>_xzoom_ord","h":468,"hide":"false","layer":false,"layout_steps_values":{},"name":"xzoom_ord","page":1,"spuid":"","type":"XZoom","w":766,"x":7,"y":53,"zindex":"1"});
};
this.btn_approva=new ZtVWeb._BC(this,{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button btn_approva_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_btn_approva","edit_undercond":"","font":"","font_color":"","font_size":"","h":25,"help_tips":"","hide":"false","hide_undercond":"","layer":false,"layout_steps_values":{},"name":"btn_approva","page":1,"spuid":"","tabindex":"","text":"Approva","type":"Button","type_submit":"false","type_wizard":"","w":96,"x":606,"y":8,"zindex":"2"});
this.selezionati=new ZtVWeb._VC(this,'selezionati',null,'character','<%=JSPLib.ToJSValue(selezionati,false,true)%>',false,false);
this.pi_fapprova=new ZtVWeb.SPLinkerCtrl(this,{"action":"function","allowedEntities":"<%=JSPLib.encrypt("pi_fapprova",request,"xxxx")%>","anchor":"","async":false,"check_exp":"","ctrlid":"<%=idPortlet%>_pi_fapprova","decrypted_parms":"","entity_type":"routine","force_msg_id":false,"h":20,"hide":"false","layer":false,"layout_steps_values":{},"m_cAltInterface":"","name":"pi_fapprova","offline":false,"page":1,"parms":"pDATI=selezionati","popup":"false","popup_height":"","popup_maximized":"false","popup_scroll":"false","popup_style":"by skin","popup_width":"","progressbar":false,"refresh":"","servlet":"pi_fapprova","target":"","type":"SPLinker","w":120,"x":860,"y":-12});
this.pi_fapprova.m_cID='<%=JSPLib.cmdHash("routine,pi_fapprova",request.getSession())%>';
this.codazi=new ZtVWeb.ComboboxCtrl(this,{"anchor":"top-left","calculate":"","class_Css":"combobox","create_undercond":"","ctrlid":"<%=idPortlet%>_codazi","dataobj_value":"","decrypt":false,"disabled":false,"edit_undercond":"","empty_value":true,"encrypt":false,"field":"","font":"Arial, Helvetica, sans-serif","font_size":"8","h":25,"help_tips":"Azienda","hide":"false","hide_undercond":"","init":"false","init_par":"<%=codazi%>","isdatap":false,"layer":false,"layout_steps_values":{},"name":"codazi","page":1,"picture":"","reactive":false,"server_side":"","spuid":"","tabindex":"0","textlist":"Polo Informatico,Metriks,Fconn","type":"Combobox","typevar":"character","valuelist":"POLOI,METRI,FCONN","visible":true,"w":177,"x":93,"y":13,"zindex":"3"});
this.textbox1=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"label","create_undercond":"","ctrlid":"<%=idPortlet%>_textbox1","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":false,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":21,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"textbox1","nowrap":"false","page":1,"picture":"","sanitize":"xssPrevent","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(textbox1,false,true)%>","type":"Label","w":76,"x":9,"y":17,"zindex":"4"});
this.pi_refresh=new ZtVWeb.EventEmitterCtrl(this,{"anchor":"","broadcast":"all","ctrlid":"<%=idPortlet%>_pi_refresh","eventsNames":"","eventsObjs":"","h":20,"hide":"false","layer":false,"layout_steps_values":{},"name":"pi_refresh","page":1,"parmsNames":"w_codazi,w_ordprov","parmsTypes":"var,var","parmsValues":"codazi,ordprov","persistent":"true","type":"EventEmitter","w":120,"x":859,"y":31});
this.ordprov=new ZtVWeb.CheckboxCtrl(this,{"anchor":"top-left","calculate":"","checked_value":"0","create_undercond":"","css_class":"label","css_class_input":"checkbox","ctrlid":"<%=idPortlet%>_ordprov","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","h":25,"hide":"false","hide_undercond":"","init":"true","init_par":"0","label_text":"Mostra solo ordini provvisori","layer":false,"layout_steps_values":{},"name":"ordprov","page":1,"reactive":false,"server_side":"","spuid":"","style_type":"","tabindex":"","type":"Checkbox","typevar":"numeric","unchecked_value":"1","w":258,"x":317,"y":14,"zindex":"5"});
this.ordprov.Value(<%=ordprov%>);
<%if(!Library.Empty(PageletId) ){%>
this.PageletCalc=function(){
if(window['<%=JSPLib.ToJSValue(PageletId)%>'] && window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc ) {
window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc();
};
}
<%}%>
}
/*JS_MARKER_END*/
</script>
<%if(request.getAttribute("pi_poautord_firstinclusion")==null){%>
<script src='<%=JSPLib.ToHTML(JSPLib.getJSPSelfPath(request))%>?SpStaticCode=<%=m_cJSPUID%>'></script>
<%request.setAttribute("pi_poautord_firstinclusion",idPortlet);
}%>
<script>
/*JS_MARKER_START*/
window.pi_poautord_Static.call(window.<%=idPortlet%>);
window.<%=idPortlet%>.pi_refresh.setParms();
window.<%=idPortlet%>.codazi.FillData();
ZtVWeb.addPortletObj('<%=idPortlet%>','pi_poautord',<%=idPortlet%>);
ZtVWeb.portletLoaded(<%=idPortlet%>,'pi_poautord');
/*JS_MARKER_END*/
</script>
<%if(!included){%>
</body>
<%}
}finally{
}%>
<%if(!included){%>
</html>
<%}
sp.endPage("pi_poautord");
}%>
<%! public String getJSPUID() { return "2799224405"; } %>