LOADPROTABLE.jsp 1.46 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
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.cscexport.*,java.util.*,com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*,org.apache.log4j.xml.DOMConfigurator;"%>

<!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>TESTEXPORT.jsp</TITLE>
</HEAD>
<BODY>
<%

			UProfile up = new UProfile();
			up.setDbName("MYHRDBS");
			up.setUserName("M01");
			up.set("companyid","10");
			up.set("lang","tha");

			String lflag = request.getParameter("loadprocessdata");
			if (lflag == null || lflag.equals(""))
				lflag = "false";
			System.out.println("::::: Start load protable  waiting......");
			LoadStaticProperties l = new LoadStaticProperties();
			l.setIsSetConnection(false);
			if (lflag.equalsIgnoreCase("false"))
				l.process();
			else
				l.setProcessData();
			StaticProperties.isload = true;
			System.out.println("::::: Load protable  commited......");
			String resource = new InitialEnvironment("GLOBAL").getValue("config-dir");
			new SystemCode().initValue(resource + "SYSTEMCODE.xml");
			DOMConfigurator.configure(resource + "LOGCFG.xml");
%>
Load PROTABLE COMPLETE
</BODY>
</HTML>