<%@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="checkmodule" class="com.csc.library.system.Task" scope="page"/>
<%
		session.invalidate();	
		checkmodule.setChannel(request,response);
		checkmodule.checkProfile();
		UProfile u = checkmodule.getUProfile();
		if(u!=null){
			String filter = request.getParameter("__filter");
			getFieldDataTag tag = new getFieldDataTag(u);
			//tag.setDbXml("RD001");
			u.setDbName(new InitialEnvironment("GLOBAL").getValue("db-name"));
			u.set("lang", "tha"); 
			u.set("user","");
			u.set("employeeid","");
			u.set("companyid","100");
			u.set("appname","");
			u.set("schemaname","myhradmin");
			u.set("fsecurity","1");
		//	tag.setSimField("MEMPLOYEE","EMPWORKAGES");
				
			DbInquiry inq = new DbXml(u,"RD002", "", "", "", new java.util.HashMap()).getInquiry();
			inq.getCurrentDbRecord().getSystemField().remove("create_by");
			tag.setDbInq(inq);
			/** **/
			if(filter != null){
				tag.setFilter(filter);
			}
			tag.read();
			out.print("<STATUS>\"TRUE\"</STATUS>\n");
			out.print(tag.getAllTag());
		}else{
			out.print("<STATUS>FALSE</STATUS>\n");
		}
%>