<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.cscimport.*,java.util.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="THEME/MASTER.css" rel="stylesheet" type="text/css">
<TITLE>TEST.jsp</TITLE>
</HEAD>
<BODY>
<%
StaticProperties.invBase.isloadDoc=false;
  //out.println(StaticProperties.timeLoadFormula.get("loadtime")+"<br>");
  //out.println((((MyHashMap)StaticProperties.processData.get("PGDB"))).keySet());
	/*UProfile up = new UProfile();
	up.setDbName("MyHrDBS");
	up.setUserName("M01");
	up.set("companyid","10");
	up.set("appname","Payroll");
	up.set("lang","tha");
	
	DbRecord emp = new IntitialRecord(up).getDbRecord("Memployee");
	emp.setGroupfield("testprocess");
	DbInquiry salatype0 = new InitialInquiry(up).getDbInquiry("Msalatype0", false);
	salatype0.setColumn("*");
	DbInquiry salatype1 = new InitialInquiry(up).getDbInquiry("Msalatype1", false);
	salatype1.setColumn("*");
	salatype0.putChild(salatype1);
	emp.putChild(salatype0);
	
	emp.set("employeeid","003");
	emp.set("companyid","10");
	emp.search();
	out.print(emp.getString("pension"));*/
	// Test Mail Merge
	/*
	HashMap h = new HashMap();
	h.put("TEMPLATE","PR048.rtf");
	h.put("SCREEN","PR048");
	h.put("UPROFILE",up);
	h.put("MMXML","PR048");
	*/
	
	// กรณีมี filter 
	//Properties p = new Properties();
	//p.put("employee","employeeid='0102006'");
	//h.put("FILTER",p);
	
	/*
	MailMerge mm =  new MailMerge();
	mm.setCondition(h);
	mm.process("999");
	*/


	/*
	// Test Import
	String path = "D:/EnterprisePT/JbossTOA/server/default/deploy/HRPEAP.ear/hrAppWeb.war/Payroll/upload/IMPORT/";
	
	DbRecord rec = new InitialRecord(up).getDbRecord("mbu5");	

	MyImport myImp = new MyImport(comp,path+"FILE/mbu5.txt",path+"XML/mbu5");
	
	myImp.process();
	*/

	/*
	DbXml dbxml = new DbXml(up, "PRU029", "", "", "",new HashMap());
	DbRecord rec = dbxml.getRecord();
	
	rec.set("employeeid","003");
	rec.set("companyid","10");
	rec.search();
	
	DbTable py1 = (DbTable)rec.getChild("simtpytran1");
	out.print(py1.getChildTable());
	for(int i=1;!py1.eof();py1.next(),i++){
		out.print(py1.getString("formulaid")+"<BR>");
	}
	*/

%>
</BODY>
</HTML>