WELR034_NSTDA.jsp 5.63 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.report.*" %>
<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();
	ReportUDF rf=new ReportUDF();
%>
<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 src="../JS/VIEWCALENDAR.js"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function back(){
	var z=0;
	if(setFilter()){
	with(document.cscform){
	 for(z=0;z<elements.length;z++){
	 	setParent(elements[z].name,elements[z].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){
	 		//alert(inputName+" "+inputValue);
 			elements[z].value=inputValue;
 		}	
	 }
	}
}

function setFilter(){
	with(document.cscform){
	      var filter =window.opener.document.cscform.__fixfilterMCOMPLAIN.value;
				if(__budyear.value.length>0){
						 window.opener.document.cscform.__year.value=__budyear.value;
				}
		}
		 window.opener.document.cscform.__fixfilterMCOMPLAIN.value=filter;
	return true;
}

//-->
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<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").toUpperCase()%>"> 
  <input type="hidden" name="__calendar">
  <input type="hidden" name="__dateformat" value="YYYY-MM-DD">
  <input type="hidden" name="__fixCon" value="">
 
  <div align="center">
    <table  cellpadding="0"  cellspacing="0">
      <tr > 
        <td  class="header"> ASR002, 
		<script language="javascript">swapLang('Report Option');</script>&nbsp;</td>
      </tr>
      <tr > 
        <td  colspan="2"> 
          <div align="center"> 
            <table  cellpadding="0" cellspacing="0" >
              <tr> 
                <td colspan="2"  class="blankspace"></td>
              </tr>
              <tr >
                <td width="159" class="blankspace"><div align="right"><span class="columnlabel">
                    <script language="javascript">swapLang("Budget year");</script>
                </span></div></td>
                <td width="409" class="blankspace"><% CscCalendar cs=new CscCalendar();%>
                    <input type="text" name="__budyear" value="<%=cs.getThaiYYYY()%>" size="15" onKeypress = "chkInteger(event);">                </td>
              </tr>
              <tr  style="display:none;">
                <td class="blankspace"><div align="right"><span class="columnlabel">
                    <script language="javascript">swapLang("Year");</script>
                </span></div></td>
                <td class="blankspace"><input type="hidden" name="__year" value="<%=cs.getThaiYYYY()%>" size="15" onKeypress = "chkInteger(event);">                </td>
              </tr>
              <tr >
                <td class="blankspace"><div align="right"><span class="columnlabel">
                    <script language="javascript">swapLang("Date");</script>
                </span></div></td>
                <td class="blankspace"><input type="text" name="__start_date" value="<%=cs.getDDMMYYYY()%>" size="10" onKeyPress="chkIntegerOfDate(this.value,event);" onKeyUp="formatDate(this);" onBlur="chkInputDate2(__start_date,this);" onFocus="this.select();" >
                    <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image12" width="20"  border="0" align="absmiddle" id="Image12" onClick="viewCal('__start_date')"></a>-
                  <input type="text" name="__end_date" value="<%=cs.getDDMMYYYY()%>" size="10"  onkeypress="chkIntegerOfDate(this.value,event);" onKeyUp="formatDate(this);" onBlur="chkInputDate2(__end_date,this);" onFocus="this.select();" >
                  <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image121','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image121" width="20"  border="0" align="absmiddle" id="Image12" onClick="viewCal('__end_date')"></a></td>
              </tr>
              <TR>
                <TD colspan="2">&nbsp;</TD>
              </TR>
              <TR> 
                <TD colspan="2"><div align="center"><img src="../IMAGES/BUTTON/OK.gif" onClick="back()"> 
                    &nbsp;&nbsp; <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>