浅析xsl转换为jsp的一些规则

我们经常会遇到将xsl文件转化为jsp页面的问题,刚好最近有转换过很多,在这里总结一下:

1. <xsl

=> <% --XXXXXX--%>


2.
<xsl:call-template name="{template_name}">
<xsl:with-param name="codeType">PFEQ</xsl:with-param>
<xsl:with-param name="codeItem"><xsl:value-of select="//TWPolicyBasicInfo/contractHeader/@paymentFreq"/></xsl:with-param>

</xsl:call-template>

=>

<jsp:include page="/WEB-INF/views/common/{template_name}.jsp">
<jsp:param name="codeType" value="PFEQ" />
<jsp:param name="codeItem" value="${TWPolicyBasicInfo.contractHeader.paymentFreq}" />

</jsp:include>


3. <xsl:if test="not(//TWClaimHistory/twClaimRecords)">, skip @
=>

<c:if test="${ !empty TWClaimHistory.twClaimRecords }">


4. <xsl:value-of select="@claimDeptCdeDesc"/>

=>${claimDeptCdeDesc}


5. <xsl:for-each select="//TWPatternWordingRO/TWPatternWording">


=><c:forEach items="${TWPatternWordingRO}" var="TWPatternWording" varStatus="i">


以下为一个转换过的jsp:

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%-- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://mycompany.com/mynamespace"> --%> <%-- <xsl:output method="html"/> --%> <%-- <xsl:template match="/"> --%> <!--// (Start) Meta Header //--> <%-- <xsl:call-template name="MetaHeader"/> --%> <jsp:include page="/WEB-INF/views/common/MetaHeader/MetaHeader.jsp"/> <!--// (End) Meta Header //--> <%-- <xsl:call-template name="MonthListScript"/> --%> <jsp:include page="/WEB-INF/views/common/MonthListScript.jsp"/> <%-- <xsl:call-template name="JSMessage"> --%> <jsp:include page="/WEB-INF/views/common/JSMessage.jsp"> <%-- <xsl:with-param name="module" select="'agent'"/> </xsl:call-template> --%> <jsp:param name="module" value="agent" /> </jsp:include> <script language="JavaScript1.2" type="text/javascript"> var role = '<%--<xsl:value-of select="//EServicingControl/role"/>--%>${EServicingControl.role}'; var frm = document.cform; var userId = '<%--<xsl:value-of select="//EServicingControl/userId"/>--%>${EServicingControl.userId}'; var sessionId = '<%--<xsl:value-of select="//EServicingControl/sessionId"/>--%>${EServicingControl.sessionId}'; var adviserNum = '<%--<xsl:value-of select="normalize-space(//HKAdviser/@adviserNum)"/>--%>${fn:trim(HKAdviser.adviserNum)}'; var emailAdviserNum = '<%--<xsl:value-of select="normalize-space(//TWAdviser/@adviserNum)"/>--%>${fn:trim(TWAdviser.adviserNum)}'; var sflag ="N"; var x ; <![CDATA[ for(i=0;i<=3;i++){ x = window.parent.frames[0]; } ]]> if(typeof(x)=="undefined"){ sflag = "Y"; }else if(x==null){ sflag = "Y"; }else{ if(typeof(x.document.frmMain)=="undefined"){ sflag="N"; }else if(typeof(x.document.frmMain.sflag)=="undefined"){ sflag="N"; } else{ if(x.document.frmMain.sflag.value==null){ sflag="N"; }else{ sflag=x.document.frmMain.sflag.value; } ;} } <![CDATA[ function taiwanDate(odate){ var year = odate.substring(0,0+4); var month = odate.substring(5,5+2); year = eval(year-1911); document.write(year+"-"+month); } function submitQuery() {window.parent.frames[0].document.frmMain.sflag.value="Y"; //var frm = document.cform; //frm.option.value = "detail"; frm.submit(); } function sendAgent() { var path = 'EServicingServlet.do?module=agent&purpose=EmailAgent&popup=1&adviserNum='+emailAdviserNum + '&session_id='+sessionId + '&user_id=' + userId; MM_openBrWindow(path,'','width=430,height=200'); } function checkDropDown() { var frm = document.cform; if (role=='AG') { if (frm.numMonth.selectedIndex =='0' || frm.numMonth.selectedIndex=='1'){ unescapeAlert (MSG_1812); return; } } if (role=='AA') { if (frm.numMonth.selectedIndex =='3' || frm.numMonth.selectedIndex=='4'){ unescapeAlert (MSG_1816); return; } } } function submitEnquire() { window.parent.frames[0].document.frmMain.sflag.value="Y"; var frm = document.cform; if (role=='AG') { if (frm.numMonth.selectedIndex =='0' || frm.numMonth.selectedIndex=='1'){ unescapeAlert (MSG_1812); return false; } } if (role=='AA') { if (frm.numMonth.selectedIndex =='3' || frm.numMonth.selectedIndex=='4'){ unescapeAlert (MSG_1816); return false; } } frm.submit(); } function openNewWindow(urls,winName) { //var clockday = new Date(); //var strTime = ""+clockday.getTime(); //var grp = document.getElementById("personBy").value; //var urlStr = urls + "&grp="+grp; //alert(urlStr); MM_openBrWindow(urls,winName,'resizable=yes,menubar=no,scrollbars=yes,width=800,height=600,screenX=0,screenY=0'); } //bruce.lu var now = new Date() var nowYear = now.getYear() var nowTaiwanYear = nowYear-1911 var nowMonth = now.getMonth()+1 var GY1 = "" var GM1 = "" var GY2 = "" var GM2 = "" function yearPickList(name, startYear , selectedYear, flag){ if(name =="" || name ==null){ name="YYY" } var optionalStr = "" var valueStr = "" var i for(i=0;i<=startYear-nowTaiwanYear;i++){ //modified for SR-26338 var selectedStr = "" if((nowTaiwanYear+i)==selectedYear){ //modified for SR-26338 selectedStr = "selected='selected'" if(name.indexOf("Y1")>0){ GY1 = (nowTaiwanYear+i)+"" //modified for SR-26338 } else{ GY2 = (nowTaiwanYear+i)+"" //modified for SR-26338 } } else{ selectedStr = "" } if((nowTaiwanYear+i).length<3){ //modified for SR-26338 valueStr = "0"+(nowTaiwanYear+i) //modified for SR-26338 } else{ valueStr = nowTaiwanYear+i //modified for SR-26338 } optionalStr += "<option value='"+ valueStr +"' "+ selectedStr +">" + (nowTaiwanYear+i)+"</option>" //modified for SR-26338 } var disablePreperty = "" if(flag == "disable"){ disablePreperty = " disabled = 'true' " } document.write("<select name='"+name+"' οnchange='checkPeriod(this.name)'"+ disablePreperty +">"+ optionalStr+ "</select>") } function monthPickList(name, selectedMonth , flag){ if(name =="" || name ==null){ name="MM" } var resultStr = "" var optionalStr = "" var valueStr = "" var i = 1 for(i;i<=12;i++){ if(i<10){ valueStr = "0"+i } else{ valueStr = i } if(i==selectedMonth){ selectedStr = "selected='selected'" if(name.indexOf("M1")>0){ GM1 = valueStr } else{ GM2 = valueStr } } else{ selectedStr = "" } optionalStr += "<option value='"+ valueStr +"' "+ selectedStr +">" + valueStr +"</option>" var disablePreperty = "" if(flag == "disable"){ disablePreperty = " disabled = 'true' " } resultStr="<select name='"+name+"' οnchange='checkPeriod(this.name)'"+ disablePreperty +">"+ optionalStr+ "</select>" } document.write(resultStr) } function checkPeriod(name){ var Y1 = document.getElementsByName("productionPeriodYYY1") var M1 = document.getElementsByName("productionPeriodMM1") var Y2 = document.getElementsByName("productionPeriodYYY2") var M2 = document.getElementsByName("productionPeriodMM2") var totalMon1 = parseInt(Y1[0].value)*12+parseInt(M1[0].value) var totalMon2= parseInt(Y2[0].value)*12+parseInt(M2[0].value) if((Math.abs(totalMon1-totalMon2))>24){ alert("查詢區間不可超過24個月") if(name.indexOf("Y1")>0){ document.getElementsByName("productionPeriodYYY1")[0].value=GY1 } else if(name.indexOf("Y2")>0){ document.getElementsByName("productionPeriodYYY2")[0].value=GY2 } else if(name.indexOf("M1")>0){ document.getElementsByName("productionPeriodMM1")[0].value=GM1 } else if(name.indexOf("M2")>0){ document.getElementsByName("productionPeriodMM2")[0].value=GM2 } } else{ if(name.indexOf("Y1")>0){ GY1 = document.getElementsByName("productionPeriodYYY1")[0].value } else if(name.indexOf("Y2")>0){ GY2 = document.getElementsByName("productionPeriodYYY2")[0].value } else if(name.indexOf("M1")>0){ GM1 = document.getElementsByName("productionPeriodMM1")[0].value } else if(name.indexOf("M2")>0){ GM2 = document.getElementsByName("productionPeriodMM2")[0].value } } } function yearList1(inputYear,flag){ var input = inputYear; if (inputYear.length <=0){ input = nowTaiwanYear;} if (nowMonth-1 <= 0 && sflag=="N"){ input = nowTaiwanYear-1; } yearPickList("productionPeriodYYY1" , "101" , input , flag) //modified for SR-26338 } function yearList2(inputYear,flag){ var input = inputYear; if (inputYear.length <=0){ input = nowTaiwanYear; } yearPickList("productionPeriodYYY2" , "101" , input, flag) //modified for SR-26338 } function monthList1(inputMonth,flag){ var input = inputMonth; if (inputMonth.length >0){ input = inputMonth ; } if (inputMonth.length <=0){ input = nowMonth;} if (sflag=="N"){ input = input - 1; } if (input <= 0 && sflag=="N"){ input = 12; } monthPickList("productionPeriodMM1" , input , flag) } function monthList2(inputMonth,flag){ var input = inputMonth; if (inputMonth.length <=0){ input = nowMonth; } monthPickList("productionPeriodMM2" , input, flag) } ]]> </script> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" <%--<xsl:attribute name="background">--%> <%--<xsl:call-template name="addPath"/>--%> background='<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/bg_eService.gif'> <%--</xsl:attribute>--%> <form name="cform" method="post" action="EServicingServlet.do"> <input type="hidden" name="module" value="agent"/> <input type="hidden" name="purpose" value="EnquirePersistency"/> <input type="hidden" name="user_id" value="${EServicingControl.userId}"><%--<xsl:attribute name="value"><xsl:value-of select="//EServicingControl/userId"/></xsl:attribute>--%></input> <input type="hidden" name="session_id" value="${EServicingControl.sessionId}"><%--<xsl:attribute name="value"><xsl:value-of select="//EServicingControl/sessionId"/></xsl:attribute>--%></input> <input type="hidden" name="option" value="list"/> <input type="hidden" name="adviserNum" value="${AgentFormCriteria.adviserNum}"><%--<xsl:attribute name="value"><xsl:value-of select="//AgentFormCriteria/@adviserNum"/></xsl:attribute>--%></input> <!--// (Start) Main Table //--> <table width="775" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"> <!--// (Start) Resource Bar Table //--> <%-- <xsl:call-template name="ResourceBar"/> --%> <jsp:include page="/WEB-INF/views/common/ResourceBar/ResourceBar.jsp"/> <!--// (End) Resource Bar Table //--> </td> </tr> <tr> <td width="23" align="middle" valign="top"><img width="23" border="0" <%--<xsl:attribute name="src">--%> <%--<xsl:call-template name="addPath"/>--%> src='<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/blank.gif'><%--</xsl:attribute>--%></img></td> <td colspan="1" align="left" valign="top"> <!--//marked by patty 20080602 S24216 <h4><font color="blue">「96/07以後提供之繼續率查詢結果已更正,惟繼續率保單明細顯示部分仍在修復中,<br /> 若需查詢明細資料請暫時洽各區部業輔科同仁,不便之處敬請見諒。」</font></h4> //--> <!--// (Start) Page Header Table //--> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td nowrap="nowrap" width="40%"> <h3><font class="pageTitle">繼續率查詢</font></h3> </td> <!--//wording modified by patty 20080602 S24216//--> <td width="60%"> <font color="red">因網路資源限制,僅提供最近一個月之年繼續率保單明細查詢,若無特殊狀況,每月5日後可查詢前一工作月之繼續率資料,若遇假日則順延!</font> </td> <!----> </tr> </table> <!--// (End) Page Header Table //--> <!--// (Start) Content Table //--> <table cellspacing="0" cellpadding="0" border="0" class="bgDarkgrey" width="746"> <tr> <td valign="top" <%--<xsl:attribute name="background">--%> <%--<xsl:call-template name="addPath"/>--%> background="<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/tableTitle0.gif"> <%--</xsl:attribute>--%> <%--<xsl:attribute name="src">--%> <%--<xsl:call-template name="addPath"/>--%> <img height="7" border="0" src="<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/blank.gif"></img><%--</xsl:attribute>--%></td> </tr> </table> <table width="746" border="0" cellspacing="0" cellpadding="2" class="bgDarkgrey"> <tr> <td> <table border="0" cellspacing="0" width="100%" bgcolor="#FFFFFF"> <tr> <td valign="top" class="title1" width="20%"><b>姓名</b></td> <td valign="top" class="value1" width="30%"><%--<xsl:value-of select="//TWAdviser/client/@fullName"/>--%>${TWAdviser.client.fullName}</td> <td valign="top" class="title1" width="20%"><b>職稱</b></td> <td valign="top" class="value1" width="30%"><%--<xsl:value-of select="//TWAdviser/@designationCdeDesc"/>--%>${TWAdviser.designationCdeDesc}</td> </tr> <tr> <td class="title2" nowrap="" width="20%"><b>通訊處名稱</b></td> <td class="value2" nowrap="" width="30%" valign="top"><%--<xsl:value-of select="//TWUnit/@unitName"/>--%>${TWUnit.unitName}</td> <td class="title2" nowrap="" width="20%" valign="top"><b>通訊處代號</b></td> <td class="value2" nowrap="" width="3%" valign="top"><%--<xsl:value-of select="//TWUnit/@unitNumber"/>--%>${TWUnit.unitNumber}</td> </tr> <tr> <td valign="top" class="title1" width="20%"><b>查詢區間<!--//查詢區間//--></b></td> <td valign="top" class="value1" colspan="3"> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <script>yearList1('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodYYY1)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodYYY1)}',"")</script> 年 <script>monthList1('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodMM1)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodMM1)}',"")</script> 月 ~ <script>yearList2('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodYYY2)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodYYY2)}',"")</script> 年 <script>monthList2('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodMM2)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodMM2)}',"")</script> 月 <!-- <select name="productionPeriod"> <%-- <SCRIPT>monthList(12, '<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriod)"/>');</SCRIPT> --%> </select> --> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//AgentFormCriteria/@viewBy = 'enable')">--%> <c:if test="${AgentFormCriteria.viewBy not eq 'enable'}"> <script>yearList1('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodYYY1)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodYYY1)}',"disable")</script> 年 <script>monthList1('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodMM1)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodMM1)}',"disable")</script> 月 ~ <script>yearList2('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodYYY2)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodYYY2)}',"disable")</script> 年 <script>monthList2('<%--<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriodMM2)"/>--%>${fn:trim(AgentFormCriteria.productionPeriodMM2)}',"disable")</script> 月 <!-- <select name="productionPeriod" disabled="true"> <SCRIPT>monthList(12, '<xsl:value-of select="normalize-space(//AgentFormCriteria/@productionPeriod)"/>');</SCRIPT> </select> --> </c:if> <%--</xsl:if>--%> </td> </tr> <tr> <td class="title2" nowrap="" width="20%"><b>週期</b></td> <td class="value2" nowrap="" colspan="3" valign="top"> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <select name="productionType"> <option value="Y">年</option> <option value="M">月</option> </select> <%--</xsl:if>--%> </c:if> <%--<xsl:if test="not(//AgentFormCriteria/@viewBy = 'enable')">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <select name="productionType" disabled="true"> <option value="Y">年</option> <option value="M">月</option> </select> <%--</xsl:if>--%> </c:if> <script language="JavaScript1.2" type="text/javascript"> var productionTypeSelected = "<%--<xsl:value-of select="//AgentFormCriteria/@productionType"/>--%>${AgentFormCriteria.productionType}"; <![CDATA[ for(i=0; i<document.cform.productionType.length; i++) { if(document.cform.productionType.options[i].value == productionTypeSelected) document.cform.productionType.options[i].selected = true; } ]]> </script> </td> </tr> <tr> <td valign="top" class="title1" width="20%"><b>險種類別</b></td> <td valign="top" class="value1" colspan="3"> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <select name="insuranceType"> <option value="PE01">長期險</option> <option value="PE02">短期險</option> </select> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//AgentFormCriteria/@viewBy = 'enable')">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <select name="insuranceType" disabled="true"> <option value="PE01">長期險</option> <option value="PE02">短期險</option> </select> </c:if> <%--</xsl:if>--%> <script language="JavaScript1.2" type="text/javascript"> var insuranceTypeSelected = "<%--<xsl:value-of select="//AgentFormCriteria/@insuranceType"/>--%>${AgentFormCriteria.insuranceType}"; <![CDATA[ for(i=0; i<document.cform.insuranceType.length; i++) { if(document.cform.insuranceType.options[i].value == insuranceTypeSelected) document.cform.insuranceType.options[i].selected = true; } ]]> </script> </td> </tr> <tr> <td class="title2" nowrap="" width="20%"><b>分析類別</b></td> <td class="value2" nowrap="" colspan="3" valign="top"> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <!--// AG //--> <%--<xsl:if test="//EServicingControl/role='AG'">--%> <c:if test="${EServicingControl.role eq 'AG'}"> <select name="numMonth" onChange="checkDropDown();"> <option value="04" style="background-color:black; color:white">4(PD Only)</option> <option value="07" style="background-color:black; color:white">7(PD Only)</option> <option value="13" selected="selected">13</option> <!--// <xsl:choose> <xsl:when test="not(//AgentFormCriteria/@viewBy = 'enable')"> <option value="13" selected="selected">13</option> </xsl:when> <xsl:otherwise> <option value="13">13</option> </xsl:otherwise> </xsl:choose> //--> <option value="19">19</option> <option value="25">25</option> </select> </c:if> <%--</xsl:if>--%> </c:if> <!--// AD Agent //--> <%--<xsl:if test="//EServicingControl/role='AA'">--%> <c:if test="${EServicingControl.role eq 'AA'}"> <select name="numMonth" onChange="checkDropDown();"> <option value="04">4(PD Only)</option> <option value="07">7(PD Only)</option> <option value="13" selected="selected">13</option> <!--// <xsl:choose> <xsl:when test="not(//AgentFormCriteria/@viewBy = 'enable')"> <option value="13" selected="selected">13</option> </xsl:when> <xsl:otherwise> <option value="13">13</option> </xsl:otherwise> </xsl:choose> //--> <option value="19" style="background-color:black; color:white">19</option> <option value="25" style="background-color:black; color:white">25</option> </select> </c:if> <%--</xsl:if>--%> <!--// Other roles //--> <%--<xsl:if test="//EServicingControl/role = 'CS' or //EServicingControl/role = 'SA' or //EServicingControl/role = 'CL'">--%> <c:if test="${EServicingControl.role eq 'CS' or EServicingControl.role eq 'SA' or EServicingControl.role eq 'CL'}"> <select name="numMonth" onChange="checkDropDown();"> <option value="04">4(PD Only)</option> <option value="07">7(PD Only)</option> <option value="13" selected="selected">13</option> <option value="19">19</option> <option value="25">25</option> </select> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//AgentFormCriteria/@viewBy = 'enable')">--%> <c:if test="${AgentFormCriteria.viewBy not eq 'enable'}"> <select name="numMonth" disabled="true"> <option value="04">4(PD Only)</option> <option value="07">7(PD Only)</option> <option value="13" selected="selected">13</option> <option value="19">19</option> <option value="25">25</option> </select> </c:if> <%--</xsl:if>--%> <script language="JavaScript1.2" type="text/javascript"> var numMonthSelected = "<%--<xsl:value-of select="//AgentFormCriteria/@monthBy"/>--%>${AgentFormCriteria.monthBy}"; <![CDATA[ for(i=0; i<document.cform.numMonth.length; i++) { if(document.cform.numMonth.options[i].value == numMonthSelected) document.cform.numMonth.options[i].selected = true; } ]]> </script> </td> </tr> <tr> <td valign="top" class="title1" width="20%"><b>分析對象</b></td> <td valign="top" class="value1" colspan="3"> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <select id="personBy" name="personBy"> <option value="E">個人</option> <%--<xsl:if test="not(//TWAdviser/@designationCdeDesc = 'EO' or //TWAdviser/@designationCdeDesc ='SR')">--%> <c:if test="${TWAdviser.designationCdeDesc not eq 'EO' and TWAdviser.designationCdeDesc not eq 'SR'}"> <option value="D">主管</option> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//TWAdviser/@designationCdeDesc = 'EO' or //TWAdviser/@designationCdeDesc ='SR' or //TWAdviser/@designationCdeDesc = 'AS' or //TWAdviser/@designationCdeDesc = 'SAS' or //TWAdviser/@designationCdeDesc = 'SAC')">--%> <c:if test="${TWAdviser.designationCdeDesc not eq 'EO' and TWAdviser.designationCdeDesc not eq 'SR' and TWAdviser.designationCdeDesc not eq 'AS' and TWAdviser.designationCdeDesc not eq 'SAS' and TWAdviser.designationCdeDesc not eq 'SAC'}"> <option value="B">區群</option> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="//TWAdviser/@designationCdeDesc = 'AAV' or //TWAdviser/@designationCdeDesc = 'DM' or //TWAdviser/@designationCdeDesc = 'SDM' or //TWAdviser/@designationCdeDesc = 'AD' or //TWAdviser/@designationCdeDesc = 'AAVP' or //TWAdviser/@designationCdeDesc = 'ASAVP' or //TWAdviser/@designationCdeDesc = 'ASA' or //TWAdviser/@designationCdeDesc = 'AVP'">--%> <c:if test="${TWAdviser.designationCdeDesc not eq 'AAV' and TWAdviser.designationCdeDesc not eq 'DM' and TWAdviser.designationCdeDesc not eq 'SDM' and TWAdviser.designationCdeDesc not eq 'AD' and TWAdviser.designationCdeDesc not eq 'AAVP' and TWAdviser.designationCdeDesc not eq 'ASAVP' and TWAdviser.designationCdeDesc not eq 'ASA' and TWAdviser.designationCdeDesc not eq 'AVP'}"> <option value="A">全處</option> </c:if> <%--</xsl:if>--%> </select> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//AgentFormCriteria/@viewBy = 'enable')">--%> <c:if test="${AgentFormCriteria.viewBy not eq 'enable'}"> <select id="personBy" name="personBy" disabled="true"> <option value="E">個人</option> <%--<xsl:if test="not(//TWAdviser/@designationCdeDesc = 'EO' or //TWAdviser/@designationCdeDesc ='SR')">--%> <c:if test="${TWAdviser.designationCdeDesc not eq 'EO' and TWAdviser.designationCdeDesc not eq 'SR'}"> <option value="D">主管</option> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//TWAdviser/@designationCdeDesc = 'EO' or //TWAdviser/@designationCdeDesc ='SR' or //TWAdviser/@designationCdeDesc = 'AS' or //TWAdviser/@designationCdeDesc = 'SAS' or //TWAdviser/@designationCdeDesc = 'SAC')">--%> <c:if test="${TWAdviser.designationCdeDesc not eq 'EO' and TWAdviser.designationCdeDesc not eq 'SR' and TWAdviser.designationCdeDesc not eq 'AS' and TWAdviser.designationCdeDesc not eq 'SAS' and TWAdviser.designationCdeDesc not eq 'SAC'}"> <option value="B">區群</option> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="//TWAdviser/@designationCdeDesc = 'AAV' or //TWAdviser/@designationCdeDesc = 'DM' or //TWAdviser/@designationCdeDesc = 'SDM' or //TWAdviser/@designationCdeDesc = 'AD' or //TWAdviser/@designationCdeDesc = 'AAVP' or //TWAdviser/@designationCdeDesc = 'ASAVP' or //TWAdviser/@designationCdeDesc = 'ASA' or //TWAdviser/@designationCdeDesc = 'AVP'">--%> <c:if test="${TWAdviser.designationCdeDesc eq 'AAV' or TWAdviser.designationCdeDesc eq 'DM' or TWAdviser.designationCdeDesc eq 'SDM' or TWAdviser.designationCdeDesc eq 'AD' or TWAdviser.designationCdeDesc eq 'AAVP' or TWAdviser.designationCdeDesc eq 'ASAVP' or TWAdviser.designationCdeDesc eq 'ASA' or TWAdviser.designationCdeDesc eq 'AVP'}"> <option value="A">全處</option> </c:if> <%--</xsl:if>--%> </select> <%--</xsl:if>--%> </c:if> <script language="JavaScript1.2" type="text/javascript"> var personBySelected = "<%--<xsl:value-of select="//AgentFormCriteria/@personBy"/>--%>${AgentFormCriteria.personBy}"; <![CDATA[ for(i=0; i<document.cform.personBy.length; i++) { if(document.cform.personBy.options[i].value == personBySelected) document.cform.personBy.options[i].selected = true; } ]]> </script> <%--<xsl:if test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:if test="${AgentFormCriteria.viewBy eq 'enable'}"> <img name="searchButton" onClick="submitEnquire();" style="cursor: hand;" <%--<xsl:attribute name="src">--%> <%--<xsl:call-template name="addPath"/>--%> src='<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/search_btn.gif'><%--</xsl:attribute>--%></img> <%--</xsl:if>--%> </c:if> <!--//SR24216 modified by patty 20080609//--> <font color="#FF00FF"> 繼續率查詢依分析對象,以通訊處->區群->主管->個人->個人保單明細 分層顯示</font> <b></b> </td> </tr> </table> </td> </tr> </table> <br/> <!--// (Start) List //--> <%--<xsl:if test="//AgentFormCriteria/@option = 'list'">--%> <c:if test="${AgentFormCriteria.option eq 'list'}"> <table cellspacing="0" cellpadding="0" border="0" class="bgDarkgrey" width="746"> <tr> <td height="25" valign="top"> <div class="tabletitle">繼續率</div> </td> </tr> </table> <table width="746" border="0" cellspacing="0" cellpadding="2" class="bgDarkgrey"> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#FFFFFF"> <tr> <th align="center" valign="top"> <div align="center"></div> </th> <th align="center" valign="top" colspan="3"> <div align="center">原始承保件</div> </th> <th align="center" valign="top" colspan="3"> <div align="center">續繳件</div> </th> <th align="center" valign="top" colspan="3"> <div align="center">繼續率%</div> </th> <th align="center" valign="top"> <div align="center">備註</div> </th> </tr> <tr valign="top" align="center"> <th> <div align="center">月份</div> </th> <th> <div align="center">件數 </div> </th> <th> <div align="center">保額</div> </th> <th> <div align="center">保費</div> </th> <th> <div align="center">件數 </div> </th> <th> <div align="center">保額</div> </th> <th> <div align="center">保費</div> </th> <th> <div align="center">件數 </div> </th> <th> <div align="center">保額</div> </th> <th> <div align="center">保費</div> </th> <th> <div align="center">取樣區間</div> </th> </tr> <%--<xsl:if test="not(//TWAgentPersistRO/TWAgentPersist)">--%> <c:if test="${!empty TWAgentPersistRO.TWAgentPersist}"> <tr> <td colspan="10"><script>document.write(unescape(MSG_1401));</script></td> </tr> </c:if> <%--</xsl:if>--%> <%--<xsl:for-each select="//TWAgentPersistRO/TWAgentPersist">--%> <c:forEach items="${TWAgentPersistRO}" var="TWAgentPersist" varStatus="i"> <tr <%--<xsl:attribute name="class"><xsl:if test="position() mod 2 = 1">data1</xsl:if><xsl:if test="position() mod 2 = 0">data2</xsl:if></xsl:attribute>--%> class='<c:if test="${(i.index+1) mod 2 == 1}">data1</c:if><c:if test="${(i.index+1) mod 2 == 0}">data2</c:if>'> <td> <%--<xsl:choose> <!--//modified by patty 20080602 S24216//-->--%> <c:choose> <%--<xsl:when test="//AgentFormCriteria/@viewBy = 'enable'">--%> <c:when test="${AgentFormCriteria.viewBy eq 'enable'}"> <%--<xsl:if test="not(@showURL = 'N')">--%> <c:if test="${TWAgentPersist.showURL not eq 'N'}"> <%--<xsl:if test="(//AgentFormCriteria/@personBy = 'E')">--%> <c:if test="${AgentFormCriteria.personBy eq 'E'}"> <input type="hidden" name="accYearMonth" <%--<xsl:attribute name="value">--%> <%--<xsl:value-of select="@acctYearMonth "/>--%> value="${TWAgentPersist.acctYearMonth}"><%--</xsl:attribute>--%></input> <a href="javascript:void(0);" <%--<xsl:attribute name="onClick">openNewWindow('EServicingServlet.do?module=agent&purpose=EnquirePersistencyDetail&acctYearMonth=<xsl:value-of select="@acctYearMonth"/>&adviserNum=<xsl:value-of select="//TWAgentPersist/@adviserNum"/>&numMonth=<xsl:value-of select="//TWAgentPersist/@numMonth"/>&insuranceType=<xsl:value-of select="//TWAgentPersist/@durationType"/>&productionType=<xsl:value-of select="//TWAgentPersist/@mode"/>&personBy=E&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>&manager_1=<xsl:value-of select="//TWAgentPersist/@manager1"/>&manager_2=<xsl:value-of select="//TWAgentPersist/@manager2"/>&manager_3=<xsl:value-of select="//TWAgentPersist/@manager3"/>', 'E');</xsl:attribute>--%> οnclick="openNewWindow('EServicingServlet.do?module=agent&purpose=EnquirePersistencyDetail&acctYearMonth=${TWAgentPersist.acctYearMonth}&adviserNum=${TWAgentPersist.adviserNum}&numMonth=${TWAgentPersist.numMonth}&insuranceType=${TWAgentPersist.durationType}&productionType=${TWAgentPersist.mode}&personBy=E&session_id=${EServicingControl.sessionId}&manager_1=${TWAgentPersist.manager1}&manager_2=${TWAgentPersist.manager2}&manager_3=${TWAgentPersist.manager3}', 'E');"> <!--// <xsl:attribute name="onClick">openNewWindow('EServicingServlet.do?module=agent&purpose=EnquirePersistencyDetail&acctYearMonth=<xsl:value-of select="@acctYearMonth"/>&adviserNum=<xsl:value-of select="//TWAgentPersist/@adviserNum"/>&numMonth=<xsl:value-of select="//TWAgentPersist/@numMonth"/>&insuranceType=<xsl:value-of select="//TWAgentPersist/@durationType"/>&productionType=<xsl:value-of select="//TWAgentPersist/@mode"/>&personBy=E&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>', 'E');</xsl:attribute> //--> <script>taiwanDate('<%--<xsl:value-of select="@acctYearMonth"/>--%>${TWAgentPersist.acctYearMonth}')</script> </a> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="not(//AgentFormCriteria/@personBy = 'E')">--%> <c:if test="${AgentFormCriteria.personBy not eq 'E'}"> <input type="hidden" name="accYearMonth" <%--<xsl:attribute name="value">--%> <%--<xsl:value-of select="@acctYearMonth"/>--%> value="${TWAgentPersist.acctYearMonth}"><%--</xsl:attribute>--%></input> <a href="javascript:void(0);" <%--<xsl:attribute name="onClick">openNewWindow('EServicingServlet.do?module=agent&purpose=EnquirePersistencyGroup&acctYearMonth=<xsl:value-of select="@acctYearMonth"/>&adviserNum=<xsl:value-of select="//TWAgentPersist/@adviserNum"/>&numMonth=<xsl:value-of select="//TWAgentPersist/@numMonth"/>&groupType=<xsl:value-of select="//TWAgentPersist/@mode"/>&insuranceType=<xsl:value-of select="//TWAgentPersist/@durationType"/>&productionType=<xsl:value-of select="//TWAgentPersist/@mode"/>&personBy=<xsl:value-of select="//AgentFormCriteria/@personBy"/>&unitNumber=<xsl:value-of select="//TWUnit/@unitNumber"/>&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>&manager_1=<xsl:value-of select="//TWAgentPersist/@manager1"/>&manager_2=<xsl:value-of select="//TWAgentPersist/@manager2"/>&manager_3=<xsl:value-of select="//TWAgentPersist/@manager3"/>', '<xsl:value-of select="//AgentFormCriteria/@personBy"/>');</xsl:attribute>--%> οnclick="openNewWindow('EServicingServlet.do?module=agent&purpose=EnquirePersistencyGroup&acctYearMonth=${TWAgentPersist.acctYearMonth}&adviserNum=${TWAgentPersist.adviserNum}&numMonth=${TWAgentPersist.numMonth}&groupType=${TWAgentPersist.mode}&insuranceType=${TWAgentPersist.durationType}&productionType=${TWAgentPersist.mode}&personBy=${AgentFormCriteria.personBy}&unitNumber=${TWUnit.unitNumber}&session_id=${EServicingControl.sessionId}&manager_1=${TWAgentPersist.manager1}&manager_2=${TWAgentPersist.manager2}&manager_3=${TWAgentPersist.manager3}', '${AgentFormCriteria.personBy}');"> <script>taiwanDate('<%--<xsl:value-of select="@acctYearMonth"/>--%>${TWAgentPersist.acctYearMonth}')</script> </a> </c:if> <%--</xsl:if>--%> </c:if> <%--</xsl:if>--%> <%--<xsl:if test="@showURL = 'N'">--%> <c:if test="${TWAgentPersist.showURL eq 'N'}"> <script>taiwanDate('<%--<xsl:value-of select="@acctYearMonth"/>--%>${TWAgentPersist.acctYearMonth}')</script> </c:if> <%--</xsl:if>--%> </c:when> <%--</xsl:when>--%> <%--<xsl:otherwise>--%> <c:otherwise> <script>taiwanDate('<%--<xsl:value-of select="@acctYearMonth"/>--%>${TWAgentPersist.acctYearMonth}')</script> </c:otherwise> <%--</xsl:otherwise>--%> </c:choose> <%--</xsl:choose>--%> <!--//end S24216//--> </td> <td> <div align="center"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.initCount}" name="instrNum"> <%--<xsl:value-of select="@initCount"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> </div> </td> <td> <div align="right"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.initCoverage}" name="instrNum"> <%--<xsl:value-of select="@initCoverage"/> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include></div> </td> <td> <div align="right"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.initAnnualPremium}" name="instrNum"> <%--<xsl:value-of select="@initAnnualPremium"/>--%> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include> </div> </td> <td> <div align="center"> <!--<xsl:value-of select="format-number(@persistCount, '###,###,###')"/>--> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.persistCount}" name="instrNum"> <%--<xsl:value-of select="@persistCount"/>--%> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include> </div> </td> <td> <div align="right"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <%--<xsl:value-of select="@persistCoverage"/>--%> <jsp:param value="${TWAgentPersist.persistCoverage}" name="instrNum"> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include> </div> </td> <td> <div align="right"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.persistAnnualPremium}" name="instrNum"> <%--<xsl:value-of select="@persistAnnualPremium"/>--%> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include> </div> </td> <td> <div align="center"><!--//Persistency Percentage//--> <%--<xsl:if test="@initCount > 0">--%> <c:if test="${TWAgentPersist.initCount gt 0}"> <!--//<xsl:value-of select="format-number(@persistCount div @initCount , '###,###,###')"/>//--> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.persistCount div TWAgentPersist.initCount*100}" name="instrNum"> <%--<xsl:value-of select="@persistCount div @initCount * 100"/>--%> <%--</xsl:with-param>--%></jsp:param><%--</xsl:call-template>--%></jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="right"> <%--<xsl:if test="@initCoverage > 0">--%> <c:if test="${TWAgentPersist.initCoverage gt 0}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersist.persistCoverage div TWAgentPersist.initCoverage*100}" name="instrNum"> <%--<xsl:value-of select="@persistCoverage div @initCoverage * 100"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="right"> <%--<xsl:if test="@initAnnualPremium > 0">--%> <c:if test="${TWAgentPersist.initAnnualPremium gt 0}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${(TWAgentPersist.persistAnnualPremium div TWAgentPersist.initAnnualPremium) gt 1?100:(TWAgentPersist.persistAnnualPremium div TWAgentPersist.initAnnualPremium*100)}" name="instrNum"> <%--<xsl:if test="@persistAnnualPremium div @initAnnualPremium > 1">--%> <%--100--%> <%--</xsl:if>--%> <%--<xsl:if test="@persistAnnualPremium div @initAnnualPremium <= 1">--%> <%--<xsl:value-of select="@persistAnnualPremium div @initAnnualPremium * 100"/>--%> <%--</xsl:if>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="center"> <%--<xsl:if test="substring(@rangeFrom, 1, 4) - 1911 < 100">0</xsl:if>--%> <c:if test="${(fn:substring(TWAgentPersist.rangeFrom,1,4)) - 1911) lt 100}">0</c:if> <%--<xsl:value-of select="substring(@rangeFrom, 1, 4) - 1911"/>/<xsl:value-of select="substring(@rangeFrom, 6, 2)"/>--%> ${(fn:substring(TWAgentPersist.rangeFrom,1,4)) - 1911}/${fn:substring(TWAgentPersist.rangeFrom,6,2)} ~ <%--<xsl:if test="substring(@rangeTo, 1, 4) - 1911 < 100">0</xsl:if>--%> <c:if test="${(fn:substring(TWAgentPersist.rangeTo,1,4)) - 1911) lt 100}">0</c:if> <%--<xsl:value-of select="substring(@rangeTo, 1, 4) - 1911"/>/<xsl:value-of select="substring(@rangeTo, 6, 2)"/>--%> ${(fn:substring(TWAgentPersist.rangeTo,1,4)) - 1911}/${fn:substring(TWAgentPersist.rangeTo,6,2)} </div> </td> </tr> <%--</xsl:for-each>--%> </c:forEach> </table> </td> </tr> </table> <br/> <%--</xsl:if>--%> </c:if> <!--// (End) List //--> <!--// (Start) Detail //--> <%--<xsl:if test="//AgentFormCriteria/@option = 'detail'">--%> <c:if test="${AgentFormCriteria.option eq 'detail'}"> <table cellspacing="0" cellpadding="0" border="0" class="bgDarkgrey" width="746"> <tr> <td height="25" valign="top" <%--<xsl:attribute name="background">--%> <%--<xsl:call-template name="addPath"/>--%> background='<jsp:include page="/WEB-INF/views/common/Common/addPath.jsp"/>/images/tableTitle2.gif'><%--</xsl:attribute>--%> <div class="tabletitle">繼續率明細查詢</div> </td> </tr> </table> <table width="746" border="0" cellspacing="0" cellpadding="2" class="bgDarkgrey"> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#FFFFFF"> <tr valign="top"> <th valign="top"><div align="center">原招攬人</div></th> <th valign="top"><div align="center">保單號碼</div></th> <th valign="top"><div align="center">起保日期</div></th> <th valign="top"><div align="center">保單狀況</div></th> <th valign="top"><div align="center">險種名稱</div></th> <th valign="top"><div align="center">初年<br/>件數</div></th> <th valign="top"><div align="center">初年保額</div></th> <th valign="top"><div align="center">初年保費</div></th> <th valign="top"><div align="center">續年<br/>件數</div></th> <th valign="top"><div align="center">續年保額</div></th> <th valign="top"><div align="center">續年保費</div></th> </tr> <%--<xsl:if test="not(//TWAgentPersistDetailRO/TWAgentPersistDetail)">--%> <c:if test="${!empty TWAgentPersistDetailRO.TWAgentPersistDetail}"> <tr> <td colspan="3"><script>document.write(unescape(MSG_1401));</script></td> </tr> <%--</xsl:if>--%> </c:if> <%--<xsl:for-each select="//TWAgentPersistDetailRO/TWAgentPersistDetail">--%> <c:forEach items="${TWAgentPersistDetailRO}" var="TWAgentPersistDetail" varStatus="i"> <tr <%--<xsl:attribute name="class">--%> <%--<xsl:if test="position() mod 2 = 1">data1</xsl:if><xsl:if test="position() mod 2 = 0">data2</xsl:if></xsl:attribute>--%> class='<c:if test="${(i.index+1) mod 2 == 1}">data1</c:if><c:if test="${(i.index+1) mod 2 == 0}">data2</c:if>'> <!--//marked by Patty 20060626 PIS32574 <td><a href="javascript:void (0)"><xsl:attribute name="onClick">MM_openBrWindow('EServicingServlet.do?module=agent&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>&adviserNum=<xsl:value-of select="adviser/@adviserNum"/>','ViewBasicInformationExtract','scrollbars=yes,resizable=yes, menubar=no, toolbar=no, width=775,height=300')</xsl:attribute> <xsl:value-of select="adviser/client/@fullName"/></a> </td> //--> <td><a href="javascript:void (0)" <%--<xsl:attribute name="onClick">MM_openBrWindow('EServicingServlet.do?module=agent&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>&adviserNum=<xsl:value-of select="adviserCompPersistMTHGRP/@adviserNum"/>','ViewBasicInformationExtract','scrollbars=yes,resizable=yes, menubar=no, toolbar=no, width=775,height=300')</xsl:attribute>--%> οnclick="MM_openBrWindow('EServicingServlet.do?module=agent&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&session_id=${EServicingControl.sessionId}&adviserNum=${TWAgentPersistDetail.adviserCompPersistMTHGRP.adviserNum}','ViewBasicInformationExtract','scrollbars=yes,resizable=yes, menubar=no, toolbar=no, width=775,height=300')"> <%--<xsl:value-of select="adviserCompPersistMTHGRP/@originalAdviserName"/>--%>${TWAgentPersistDetail.adviserCompPersistMTHGRP.originalAdviserName} </a> </td> <td> <%--<xsl:if test = "//EServicingControl/role = 'AG'" >--%> <c:if test="${EServicingControl.role eq 'AG'}"> <%--<xsl:if test = "normalize-space(//AgentFormCriteria/@adviserNum) = normalize-space(//AgentFormCriteria/@sessionAdviser)" >--%> <c:if test="${(fn:trim(AgentFormCriteria.adviserNum)) eq (fn:trim(AgentFormCriteria.sessionAdviser))}"> <!--//marked by Patty 20060626 PIS32574 <a target="ViewBasicInformationExtract"> <xsl:attribute name="href">EServicingServlet.do?module=policy&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&contractNum=<xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/>&session_id=<xsl:value-of select="//EServicingControl/sessionId"/></xsl:attribute> <xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/> </a> //--> <a href="javascript:void (0)" <%--<xsl:attribute name="onClick">MM_openBrWindow('EServicingServlet.do?module=policy&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&contractNum=<xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/>&session_id=<xsl:value-of select="//EServicingControl/sessionId"/>','','scrollbars=yes,resizable=yes, menubar=no, toolbar=no, width=775,height=300')</xsl:attribute>--%> οnclick="MM_openBrWindow('EServicingServlet.do?module=policy&purpose=ViewBasicInformation&targetPurpose=ViewBasicInformation&actionCode=viewExtract&contractNum=${fn:trim(TWAgentPersistDetail.adviserCompPersist.contractNum)}&session_id=${EServicingControl.sessionId}','','scrollbars=yes,resizable=yes, menubar=no, toolbar=no, width=775,height=300')"> <%--<xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/>--%>${fn:trim(TWAgentPersistDetail.adviserCompPersist.contractNum)} </a> </c:if> <%--</xsl:if>--%> <%--<xsl:if test = "normalize-space(//AgentFormCriteria/@adviserNum) != normalize-space(//AgentFormCriteria/@sessionAdviser)" > <xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/> </xsl:if>--%> <c:if test="${(fn:trim(AgentFormCriteria.adviserNum)) not eq (fn:trim(AgentFormCriteria.sessionAdviser))}"> ${fn:trim(TWAgentPersistDetail.adviserCompPersist.contractNum)} </c:if> <%--</xsl:if>--%> </c:if> <%--<xsl:if test = "//EServicingControl/role != 'AG'" > <xsl:value-of select="normalize-space(adviserCompPersist/@contractNum)"/> </xsl:if>--%> <c:if test="${EServicingControl.role not eq 'AG'}"> ${fn:trim(TWAgentPersistDetail.adviserCompPersist.contractNum)} </c:if> </td> <td> <%--<xsl:call-template name="YYYMMDD">--%> <jsp:include page="/WEB-INF/views/common/Common/YYYMMDD.jsp"> <%--<xsl:with-param name="instrDate">--%> <jsp:param name="instrDate" value="${TWAgentPersistDetail.adviserCompPersist.compStartDate}"> <%--<xsl:value-of select="adviserCompPersist/@compStartDate"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> </td> <!--<td><xsl:value-of select="contractHeader/@contractStatusDesc"/></td>--> <td><%--<xsl:value-of select="adviserCompPersistMTHGRP/@contractStatusCde"/>--%>${TWAgentPersistDetail.adviserCompPersistMTHGRP.contractStatusCde}</td> <td><%--<xsl:value-of select="adviserCompPersist/@compCdeShortDesc"/>--%>${TWAgentPersistDetail.adviserCompPersist.compCdeShortDesc}</td> <td> <div align="center"> <!--//modified by patty for PIS34562 20060216//--> <!--//<xsl:value-of select="format-number(adviserCompPersistMTHGRP/@firstYearCount, '###,###,###')"/>//--> <%--<xsl:value-of select="format-number(adviserCompPersistMTHGRP/@firstYearCount, '###,###,###.#')"/>--%><fmt:formatNumber value="${TWAgentPersistDetail.adviserCompPersistMTHGRP.firstYearCount}" pattern="###,###,###.#" /> </div> </td> <td> <div align="right"> <%--<xsl:if test="adviserCompPersist/@firstYearInitCoverage">--%> <c:if test="${TWAgentPersistDetail.adviserCompPersist.firstYearInitCoverage}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersistDetail.adviserCompPersist.firstYearInitCoverage}" name="instrNum"> <%--<xsl:value-of select="adviserCompPersist/@firstYearInitCoverage"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="center"> <%--<xsl:if test="adviserCompPersist/@firstYearInitPremium">--%> <c:if test="${TWAgentPersistDetail.adviserCompPersist.firstYearInitPremium}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersistDetail.adviserCompPersist.firstYearInitPremium}" name="instrNum"> <%--<xsl:value-of select="adviserCompPersist/@firstYearInitPremium"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="center"> <!--//modified by patty for PIS34562 20060216//--> <!--//<xsl:value-of select="format-number(adviserCompPersistMTHGRP/@persistYearCount, '###,###,###')"/>//--> <%--<xsl:value-of select="format-number(adviserCompPersistMTHGRP/@persistYearCount, '###,###,###.#')"/>--%><fmt:formatNumber value="${TWAgentPersistDetail.adviserCompPersistMTHGRP.persistYearCount}" pattern="###,###,###.#" /> </div> </td> <td> <div align="right"> <%--<xsl:if test="adviserCompPersistMTHGRP/@persistYearInitCoverage">--%> <c:if test="${TWAgentPersistDetail.adviserCompPersistMTHGRP.persistYearInitCoverage}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersistDetail.adviserCompPersistMTHGRP.persistYearInitCoverage}" name="instrNum"> <%--<xsl:value-of select="adviserCompPersistMTHGRP/@persistYearInitCoverage"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> <td> <div align="center"> <%--<xsl:if test="adviserCompPersistMTHGRP/@persistYearInitPremium">--%> <c:if test="${TWAgentPersistDetail.adviserCompPersistMTHGRP.persistYearInitPremium}"> <%--<xsl:call-template name="CurrencyFormat">--%> <jsp:include page="/WEB-INF/views/common/Common/CurrencyFormat.jsp"> <%--<xsl:with-param name="instrNum">--%> <jsp:param value="${TWAgentPersistDetail.adviserCompPersistMTHGRP.persistYearInitPremium}" name="instrNum"> <%--<xsl:value-of select="adviserCompPersistMTHGRP/@persistYearInitPremium"/>--%> <%--</xsl:with-param>--%> </jsp:param> <%--</xsl:call-template>--%> </jsp:include> <%--</xsl:if>--%> </c:if> </div> </td> </tr> <%--</xsl:for-each>--%> </c:forEach> </table> </td> </tr> </table> <br/> 說 明 : UL保單計算當時續繳狀態為IFPP但續繳保費為0者表復效時未補繳前期保費。 <%--</xsl:if>--%> </c:if> <!--// (End) Detail //--> <br/> <table width="600" border="0" cellspacing="1" cellpadding="3"> <tr> <!-- <td> <div align="center"> [<a href="#" onClick="sendAgent();">寄給</a><xsl:value-of select="normalize-space(//TWAdviser/client/@fullName)"/>] </div> </td> --> </tr> </table> <!--// (End) Content Table //--> </td> </tr> </table> <!--// (End) Main Table //--> <!-- Added by Patty 20080722 S24216 Begin--> <table width="775" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="23" align="middle" valign="top"></td> <td colspan="1" align="left" valign="top"> <h4><font color="red">「97/06以後提供之直轄、區群、全處之繼續率查詢結果及保單明細已修復完成,惟個人繼續率(不承接保單)查詢結果及保單明細仍在修復中,若需查詢個人繼續率請暫時洽各業務區業務支援同仁,不便之處敬請見諒。」</font></h4> </td> </tr> </table> <!--End S24216--> </form> <%--<xsl:call-template name="Footer"/>--%> <jsp:include page="/WEB-INF/views/common/Footer/Footer.jsp"/> </body> <%--</xsl:template>--%> <!--// (Start) Includes //--> <%--<xsl:include href="../common/Common.xsl"/>--%> <%--<xsl:include href="../common/MetaHeader.xsl"/>--%> <%--<xsl:include href="../common/ResourceBar.xsl"/>--%> <%--<xsl:include href="../common/Title.xsl"/>--%> <%--<xsl:include href="../common/Footer.xsl"/>--%> <!--// (End) Includes //--> <%--<xsl:include href="./MonthListScript.xsl"/>--%> <%--</xsl:stylesheet>--%>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值