FAC.xml 1.22 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<IMPXML name="TTIMETEMP_MYHR.xml" insert="true" update="true" lastupdate="false"  filetype="linelist" processtype="freespace">
	<INIT>String code ="0000";</INIT>
	<IMPORTPATTERN>fs.getToken(NUMBER.'DELIMETER');</IMPORTPATTERN>

	<DATA  tokendelimeter=" ">	
		<COL source="new com.csc.library.process.SearchEmpByCardid(dbdata.getUProfile()).search(fs.getToken(0,':').trim())">TTIMETEMP.EMPLOYEEID</COL>
		<COL source="fs.getToken(1,':').substring(4,6)+&quot;:&quot;+fs.getToken(1,':').substring(2,4)+&quot;:&quot;+fs.getToken(1,':').substring(0,2)">TTIMETEMP.SWIPEDATE</COL>
		<COL source="fs.getToken(2,':').substring(0,2)+&quot;.&quot;+fs.getToken(2,':').substring(2,4)">TTIMETEMP.SWIPETIME</COL>
		<!-- <COL source="fs.getToken(3,':')">TTIMETEMP.SWIPETYPE</COL> -->
		<COL source="dbdata.getString(&quot;mswipetype&quot;,&quot;swipetype&quot;,&quot;swipetypeid='&quot;+fs.getToken(3,':')+&quot;'&quot;).equals(&quot;0&quot;)?0:1">TTIMETEMP.SWIPETYPE</COL>
		<!-- <COL source="dbdata.getString(&quot;mswipetype&quot;,&quot;swipetype&quot;,&quot;swipetypeid='&quot;+fs.getToken(3,':')+&quot;'&quot;)">TTIMETEMP.SWIPETYPE</COL> -->
		<COL source="100">TTIMETEMP.COMPANYID</COL>
		<COL source="&quot;1&quot;">TTIMETEMP.SOURCE</COL>
	</DATA>
</IMPXML>