SME_EXPORTDATA.jsp 7.84 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<jsp:useBean id="SME_EXPORTDATA" class="com.csc.library.system.Task" scope="page"/>
<%
	SME_EXPORTDATA.setChannel(request ,response);
   	ProcessEntry screen=(ProcessEntry)SME_EXPORTDATA.process("ProcessEntry","Process");
   	screen.process();
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='../JS/SCREEN.js'></script>
<script language="javascript" src='../JS/DATEINPUT.js'></script>
<script language="javascript" src='../JS/VIEWCALENDAR.js'></script>
<script language="javascript" src='./JS/PROCESS.js'></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function process() {
	var export_dtm = document.getElementById("export_dtm") ;
	var export_amt=document.getElementById("export_amt");
	var export_sty =document.getElementById("export_sty");
	var ptype=document.getElementById("ptype");
	var prclass =document.getElementById("prclass");
	var startDate=document.getElementById("startDate");
	var endDate=document.getElementById("endDate");
	var stEmployeeid=document.getElementById("stEmployeeid");
	var endEmployeeid=document.getElementById("endEmployeeid");
 
	if(startDate.value==null||startDate.value==""){
		alert("กรุณาระบุข้อมูลวันที่เริ่มต้น");
		return;
	}//end if 

	if(endDate.value==null||endDate.value==""){
		alert("กรุณาระบุข้อมูลวันที่สิ้นสุด");
		return;
	}//end if 

	if(stEmployeeid.value==null||stEmployeeid.value==""){
		alert("กรุณาระบุข้อมูลรหัสพนักงานเริ่มต้น");
		return;
	}//end if 

	if(endEmployeeid.value==null||endEmployeeid.value==""){
		alert("กรุณาระบุข้อมูลรหัสพนักงานสิ้นสุด");
		return;
	}//end if 
 
	if(export_dtm.checked==true){
		ptype.value='Export_dtm';
		prclass.value='Export_dtm';
	}//end if 
	if(export_amt.checked==true){
		ptype.value='Export_amt';
		prclass.value='Export_amt';
	}//end if 
	if(export_sty.checked==true){
		ptype.value='Export_sty';
		prclass.value='Export_sty';
	}//end if 

	if(prclass.value==null||prclass.value==""){
		alert("กรุณาระบุประเภทข้อมูลที่ต้องการ Export");
		return;
	}
	with(document.cscform){
		__cmd .value = "save";							
		submit();
	}//end with
}//end function
//-->
</script>
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="cscform" method="post" action="">
<!----------BEGIN CSC INITIAL ZONE ----------------------->
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__screen"  value="SME_EXPORTDATA">
	<input type="hidden" name="__fixCon"  value="">
	<input type="hidden" name="__cmd"  value="">
	<input type="hidden" name="__help"  value="">
	<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
	<input type="hidden" name="__condition$companyid" value='<%=screen.getUProfile().get("companyid")%>'>
	<input type="hidden" id="ptype" name="__ptype" value="">
	<input type="hidden" id="prclass" name="__prclass" value="">
	<script language="javascript">getInputFormatDate();</script>
	<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">		
	<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
  	<script language="javascript">initToolTips();</script>
 	<br>
  	<div align="center">
    <table  cellpadding="0"  cellspacing="0">
    <tr >
    	<td  class="header" colspan="2">SME-EXPORT DATA</td>
   	</tr>
	<tr>
    	<td colspan="2" class="blankspace"  ></td>
    </tr>
	<tr>
		<td width="150" class="columnlabel"><div align="right"><script language="javascript">swapLang("Start Date");</script></div></td>
		<td width="420" valign="bottom"><div align="left">&nbsp;
			<input type="text" id="startDate" name="__condition$startDate"size="10" maxlength="8" onKeyup = "formatDate(this)" onBlur = "chkInputDate2(this,__condition$endDate)" onKeypress = "chkIntegerOfDate(this.value)" onMouseOver="toolTip('วันเริ่มต้น(DDMMYYYY)')" onMouseOut="toolTip()">&nbsp;
			<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('__condition$startDate')"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image1" width="20" height="20" border="0" align="absmiddle"></a>
			&nbsp;&nbsp;-&nbsp;&nbsp;
		  	<script language="javascript">swapLang("End Date");</script>&nbsp;
		  	<input type="text" id="endDate" name="__condition$endDate" size="10" maxlength="8" onKeyup = "formatDate(this)" onBlur = "chkInputDate2(__condition$startDate,this)" onKeypress = "chkIntegerOfDate(this.value)" onMouseOver="toolTip('วันสิ้นสุด(DDMMYYYY)')" onMouseOut="toolTip()">&nbsp;
            <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('__condition$endDate')"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image2" width="20" height="20" border="0" align="absmiddle"></a> </div>
		</td>
	</tr>
	<tr>
    	<td colspan="2" class="blankspace"  ></td>
    </tr>
	<tr>
		<td><div align="right"><script language="javascript">swapLang("Employee ID");</script></div></td>	
		<td><div align="left">&nbsp;
			<input type="text" id="stEmployeeid" name="__condition$stEmployeeid" size="15">
			<a href="javascript:goHelp('MEMPLOYEEHELP','__condition$stEmployeeid','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="Image3" width="20" height="20" border="0" align="absmiddle"></a>
			&nbsp;&nbsp;-&nbsp;&nbsp;
			<input type="text" id="endEmployeeid" name="__condition$endEmployeeid" size="15">
			<a href="javascript:goHelp('MEMPLOYEEHELP','__condition$endEmployeeid','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="Image4" width="20" height="20" border="0" align="absmiddle"></a>
		</div></td>	
	</tr>	
	<tr>
	   <td colspan="2" class="blankspace"></td>
	</tr>
	<tr>
		<td><div align="right"><script language="javascript">swapLang("File Path Directory");</script></div></td>
		<td>
		<div align="left">&nbsp;&nbsp;<input type="text" readonly name="__condition$filePath" size="50" value='C:\Export File\'></div>
		</td>
	</tr>
	<tr>
	   <td colspan="2" class="blankspace"></td>
	</tr>
	<tr>
		<td><div align="right"><INPUT type='radio' id='export_dtm' name="exportType"></div></td>
		<td><div align="left">Detail Time Monthly [DTM]</div></td> 
	</tr>
	<tr>
		<td><div align="right"><INPUT type='radio' id='export_amt' name="exportType"></div></td>
		<td><div align="left">Summary Time Monthly [AMT]</div></td> 
	</tr>
	<tr>
		<td><div align="right"><INPUT type='radio' id='export_sty' name="exportType"></div></td>
		<td><div align="left">Summary Time Yearly [STY]</div></td> 
	</tr>
	<tr>
	   <td colspan="2" class="blankspace"></td>
	</tr>
	<tr>
	   <td colspan="2">
			<div align="center">
				<a href="javascript:process();"><img src="../IMAGES/BUTTON/TRANSFERDATA.gif" border="0"></a>
			</div>
		</td>
    </tr>
	<tr>
		<td  class="bottom" colspan="2"></td>
    </tr>
	</table>
  </div>
</form>
</body>
</html>