<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page import="com.csc.library.entry.*" %> <%@ page import="com.csc.library.utilities.*" %> <jsp:useBean id="ASR002" scope="page" class="com.csc.library.system.Task"/> <% ASR002.setChannel(request ,response); ReportEntry screen=null; screen=(ReportEntry)ASR002.process("ReportEntry",request.getParameter("__screen")); UProfile uf=screen.getUProfile(); %> <html> <head> <title>ReportOption</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="../CSS/TISCO.css" rel="stylesheet" type="text/css"> <script language='javascript' src='../JS/SCREEN.js'></script> <script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script> <script src="../JS/VIEWCALENDAR.js"></script> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function back(){ var z=0; setDateCondition("dateid"); with(document.cscform){ for(z=0;z<elements.length;z++){ setParent(elements[z].name,elements[z].value); } } window.close(); } function setDateCondition(fieldName){ with(document.cscform){ if(( __date_start.value != "" )&&(__date_end != "")){ __con_date.value = " between '"+chkDateTime1(__date_start.value)+"' and '"+chkDateTime1(__date_end.value)+"'" } } } function back(){ var z=0; with(document.cscform){ for(z=0;z<elements.length;z++){ setParent(elements[z].name,elements[z].value); } } /* with(window.opener.document.cscform){ __fixfiltermemployee.value=""; __fixfiltermemployee.value+=checkValue(); alert("fixfilter -->> "+__fixfiltermemployee.value); }*/ window.close(); } function setParent(inputName,inputValue){ with(window.opener.document.cscform){ for(var z=0;z<elements.length;z++){ if(elements[z].name==inputName){ if(elements[z].name=="__language"){ for(var k=0;k<__language.length;k++){ if(__language.options[k].value==inputValue){ __language.options[k].selected=true; } } }else{ elements[z].value=inputValue; } } } } } function chkDateTime1(valueSearch){ // 23/03/2004 var tmpval=""; with(document.cscform){ // tmpval=valueSearch.substring(2,3); var valueSearch1=valueSearch.split("-"); if(valueSearch1.length==3){ if(valueSearch1[1].length==1){ valueSearch1[1]="0"+valueSearch1[1]; } if(valueSearch1[0].length==1){ valueSearch1[0]="0"+valueSearch1[0]; } valueSearch1[2]=parseInt(valueSearch1[2]); return valueSearch=valueSearch1[2]+"-"+valueSearch1[1]+"-"+valueSearch1[0]; } } } function goHelp(helpName,inputName,condition){ with( document.cscform ){ var helpReturn; var temp; if( inputName == "sendto" ){ temp = __fixCon.value; //__fixCon.value="job='"+condition+"'"; if( condition.indexOf(",") > -1 ){ condition = condition.replace(/,/g,"','"); } __fixCon.value="EMPLOYEEID IN ('"+condition+"')"; helpReturn="wf_next_actor:EMPLOYEEID,sendto:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "cc" ){ temp = __fixCon.value; helpReturn="wf_cc_actor:EMPLOYEEID,cc:MEMPLOYEE@FULLNAME"; linkHelp_CCReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__employeeid" ){ temp = __fixCon.value; helpReturn="__employeeid:EMPLOYEEID,MEMPLOYEE@FULLNAME,emp_fullname:MEMPLOYEE.FULLNAME"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__empid" ){ temp = __fixCon.value; helpReturn="__wf__empid:EMPLOYEEID,fullname:FULLNAME,bu2id:bu2,bu3id:bu3,bu4id:bu4,bu2Desc:mbu2.tdesc,bu3Desc:mbu3.tdesc,bu4Desc:mbu4.tdesc,positionid:emp_position,positionDesc:mposition.tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu2id" ){ temp = __fixCon.value; helpReturn="__wf__bu2id:bu2id,__wf__nbu2Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu3id" ){ temp = __fixCon.value; helpReturn="__wf__bu3id:bu3id,__wf__nbu3Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu4id" ){ temp = __fixCon.value; helpReturn="__wf__bu4id:bu4id,__wf__nbu4Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu5id" ){ temp = __fixCon.value; helpReturn="__wf__bu5id:bu5id,__wf__nbu5Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__positionid" ){ temp = __fixCon.value; helpReturn="__wf__positionid:positionid,__wf__npositionDesc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName=="__wf__employeeid" && __wf__employeeid.readOnly == false ){ temp = __fixCon.value; __fixCon.value="STATUS NOT IN ('U','W','X','Y','Z')" helpReturn=inputName+":memployee.employeeid,__wf__fullname:memployee.fullname,__wf__position:mposition.tdesc,__wf__bu1:mbu1.tdesc,__wf__bu2:mbu2.tdesc,__wf__bu3:mbu3.tdesc,__wf__ext:memployee.tel_ext"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__Pcountryid" ){ temp = __fixCon.value; helpReturn="__Pcountryid:countryid,__Pcountry_desc:tdesc,__Pcountry_edesc:edesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; } } } function linkHelp_Return(help,input){ with( document.cscform ){ var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } //--> </script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')"> <form name="cscform" method="post" > <!----------BEGIN CSC INITIAL ZONE ------------------------> <%=screen.InitialVariable()%> <!----------END CSC INITIAL ZONE --------------------------> <input type="hidden" name="__cmd" value=""> <input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>"> <script language="javascript">getInputFormatDate();</script> <input type="hidden" name="__calendar"> <input type="hidden" name="__fixCon" value=""> <div align="center"> <table cellpadding="0" cellspacing="0"> <tr > <td class="header">PRR001OP, <script language="javascript">swapLang('Report Option');</script> </td> </tr> <tr > <td colspan="2"> <div align="center"> <table cellpadding="0" cellspacing="0" > <tr> <td colspan="2" class="blankspace"></td> </tr> <tr> <td class="columnlabel"><script language="javascript">swapLang('Country');</script> </td> <td class="columnobject1"> <input name="__Pcountryid" type="text" value="" size="5" readonly> <a href="JavaScript:goHelp('MCOUNTRYHELP','__Pcountryid');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('emp_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="search" name="emp_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" size="13" name="__Pcountry_desc" id="__Pcountry_desc" class="txt01" value="" readonly> <input type="text" size="13" name="__Pcountry_edesc" id="__Pcountry_desc" class="txt01" value="" readonly> </td> </tr> <tr> <td class="columnlabel"><script language="javascript">swapLang('Start_Date');</script> </td> <td class="columnobject1"> <input name="__Pstart_date" type="text" value="" size="10" onkeyup = "formatDate(this)" onblur = "chkInputDate2(this,__Pend_date)" onkeypress = "chkIntegerOfDate(this.value)"> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__Pstart_date','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"> <img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" name="__Pstart_date" width="20" height="20" border="0" align="absmiddle" onClick="viewCal('__Pstart_date')" alt="Calendar"></a> </td> </tr> <tr> <td class="columnlabel"><script language="javascript">swapLang('End_Date');</script> </td> <td class="columnobject1"> <input name="__Pend_date" type="text" value="" size="10" onkeyup = "formatDate(this)" onblur = "chkInputDate2(__Pstart_date,this)" onkeypress = "chkIntegerOfDate(this.value)"> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__Pend_date','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"> <img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" name="__Pend_date" width="20" height="20" border="0" align="absmiddle" onClick="viewCal('__Pend_date')" alt="Calendar"></a> </td> </tr> <!-- <tr> <td class="columnlabel"><script language="javascript">swapLang('Amount');</script> </td> <td class="columnobject1"> <input name="__Pamount" type="text" value="" size="10" onkeypress = "chkIntegerOfDate(this.value)"> <script language="javascript">swapLang('Bath');</script> <a>* <script language="javascript">swapLang('Case_Visa_For_International_Travel');</script></a></td> </td> </tr> --> <tr> <td class="columnlabel"><script language="javascript">swapLang('Title_Seminar');</script> </td> <td class="columnobject1"> <input name="__Ptitle" type="text" value="" size="30"> <a>* <script language="javascript">swapLang('Case_Visa_For_International_Seminar');</script></a></td> </td> </tr> <tr> <td class="columnlabel"><script language="javascript">swapLang('Seminar_Institute');</script> </td> <td class="columnobject1"> <input name="__Pinstitute" type="text" value="" size="30"> <a>* <script language="javascript">swapLang('Case_Visa_For_International_Seminar');</script></a></td> </td> </tr> <tr > <td colspan="2" class="blankspace"></td> </tr> <TR> <TD colspan="2"><div align="center"> <img src="../IMAGES/BUTTON/OK.gif" onClick="back()"> <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()"></div></TD> </TR> <tr > <td colspan="2" class="blankspace"></td> </tr> </table> </div></td> </tr> <tr bordercolor="0069B3"> <td class="bottom"></td> </tr> </table> </div> <INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>"> </form> </body> </html>