UPGIT round1

parent afcb8a54
++ "b/!!! \340\270\253\340\271\211\340\270\262\340\270\241 Backup \340\271\204\340\270\237\340\270\245\340\271\214\340\271\204\340\270\247\340\271\211\340\270\202\340\271\211\340\270\262\340\270\207\340\271\203\340\270\231\340\271\202\340\270\224\340\270\242\340\271\200\340\270\224\340\271\207\340\270\224\340\270\202\340\270\262\340\270\224.txt"
*.ser
hrAppWeb.war/REPORT/*.txt
hrAppWeb.war/REPORT/*/*.txt
hrAppWeb.war/REPORT/*.pdf
hrAppWeb.war/REPORT/*.xls
UPLOAD/COMPANY
TEMP/
*.db
.idea/
hrAppWeb.war/IMPORTDATA/
TEMPlATE/EXCEL/*.xls
TEMPlATE/PAYROLL/EXCEL/*.xls
hrAppWeb.war/UPLOAD/XMLMENU/*.zip
*.bak
*.DS_Store
_tmp*
*-service*.xml
*service*.xml
*2016*.jsp
hrAppWeb.war/Genrouting/GEN/*.txt
UPLOAD/
hrAppWeb.war/UPLOAD/
hrAppWeb.war/REPORT/
\ No newline at end of file
#################################
###### This is config file for support myfpdemo ######
#################################
leavemsg.title = Leave For Absent Request Form
otmsg.title = Work Over Time Request Form
timeattmsg.title = Update Time Attendance Request Form
leavemsg.desc = $V{0}
leavemsg.detail = start $V{0} $V{1} to $V{2} $V{3}
leavemsg.detail1 = $V{0} day(s) $V{1} hr(s)
leavemsg.err0 = taking leave on this period is available
leavemsg.err1 = There is already take leave on this period
leavemsg.err2 = Not enough point for taking leave
leavemsg.err3 = Can not request backward for $V{0} day(s)
leavemsg.err4 = Can not request more than $V{0} days in advance
leavemsg.err5 = Request not available
leavemsg.err6 = Request not available
leavemsg.err7 = Need to make a request $V{0} day(s) in advance
leavemsg.err8 = Required $V{0} to be used up
leavemsg.err9 = Can not take leave on holiday
leavemsg.err10 = Can not make a request cause of woking plan not found
#################################
###### This is config file for support myfpdemo ######
#################################
leavemsg.title = Ẻشҹ
otmsg.title = Ẻͷӧҹǧ
timeattmsg.title = Ẻŧҷӧҹ
leavemsg.desc = $V{0}
leavemsg.detail = $V{0} $V{1} . ֧ $V{2} $V{3} .
leavemsg.detail1 = ӹǹ $V{0} ѹ $V{1}
leavemsg.err0 = Ǩͺö
leavemsg.err1 = ö ͧҡ¡âѹ
leavemsg.err2 = Էԡ§
leavemsg.err3 = ö͹ѧԹ $V{0} ѹ
leavemsg.err4 = öǧ˹Թ $V{0} ѹ
leavemsg.err5 = سöһ
leavemsg.err6 = سöͧҡاҹѧ֧ࡳ
leavemsg.err7 = ͧǧ˹ҧ $V{0} ѹ
leavemsg.err8 = سԷ $V{0} ͹
leavemsg.err9 = öѹش
leavemsg.err10 = öͧҡ辺Ἱ÷ӧҹѹк
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("set up authen page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" ;
//File uploadedFile = new File(path + ((String) dataitem.get("empid")) + ".dat");
File uploadedFile = new File(path + curtime + ".dat");
dataitem.put("filepath", uploadedFile.getAbsolutePath());
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);
*/
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CheckAuthen chkauth = new SV_CheckAuthen(mypck);
chkauth.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
mypck.setSetupAuthenStatus(true);
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("user authen page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
SV_CheckUserAuthen chkuser = new SV_CheckUserAuthen(mypck);
chkuser.run();
System.out.print("--- chk user authen return data ---");
System.out.print("--> " + mypck.getPackage());
}
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.awt.image.BufferedImage" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="javax.imageio.ImageIO" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.fputility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("***!! Delete finger print page has been called from client !!***");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
MsgPackage recdata = new MsgPackage();
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
try {
System.out.print("!! File upload detected !!");
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
/* save detail */
if(dataitem.containsKey("data")){
try {
System.out.print("delete show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
/*set default (test used)*/
//recdata.setDevNo("001");
//recdata.setPassCode("ZBCDFGHJKIUYT");
//recdata.setCompanyid("100");
//recdata.setSerialNo("1236547890");
/*******/
SV_DelEmpfp def = new SV_DelEmpfp(recdata);
def.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}else{
System.out.print("!! package received is not in multipart format !!");
}
%>
<%=recdata.getPackage()%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("gen time attendance request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_GenTimeAtt gen = new SV_GenTimeAtt(mypck);
gen.run();
System.out.print("---gen time att. return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String test = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":7620,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"2013-01-01\",\"end_date\":\"2013-04-30\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(test);
/* use mypck to save into db */
SV_GenTimeAtt gen = new SV_GenTimeAtt(mypck);
gen.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.SV_GetCourse" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("get course page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
//out.print(rawtimedata);
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_GetCourse svg = new SV_GetCourse(mypck);
svg.run();
//System.out.print("--- get task return data ---");
//System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawdata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"chgpass\":\"\",\"empgroup\":\"\",\"zonegroup\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"datserv2\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"empmenu\":[],\"courses\":[],\"dvp\":{\"devno\":\"\",\"password\":\"\",\"companyid\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"empgroup\":\"\",\"zonegroup\":\"\",\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"datserv2\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\"},\"lang\":\"\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":20013,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqLeave\":{\"lvtype\":null,\"lvdesc\":null,\"f_day\":false,\"f_halfday\":false,\"f_fhalf\":false,\"f_shalf\":false,\"f_hour\":false,\"lvreqstatus\":false,\"d_start_date\":null,\"d_end_date\":null,\"fs_start_date\":null,\"h_start_date\":null,\"h_start_time\":null,\"h_end_date\":null,\"h_end_time\":null,\"remark\":null,\"lmsg\":null,\"ltypeprop\":[],\"lsprop\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
SV_GetCourse svg = new SV_GetCourse(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
//System.out.print("------- success ----" + mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.SV_GetEmpCourse" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("get emp list on course page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
//out.print(rawtimedata);
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_GetEmpCourse svg = new SV_GetEmpCourse(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawdata = "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";
mypck = rtnmsg.convStrToMsgPackage(rawdata);
SV_GetEmpCourse svg = new SV_GetEmpCourse(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
} catch(Exception e){
e.printStackTrace();
}
//out.print("!! Test GET EMP COURSE !!");
out.print(mypck.getPackage());
//System.out.print("------- success ----" + mypck.getPackage());
%>
<%@ page import="com.csc.library.utilities.UProfile,com.csc.library.database.DataSet,java.util.*,com.google.gson.Gson,com.google.gson.GsonBuilder,java.lang.reflect.Type,com.google.gson.reflect.TypeToken,com.csc.library.utilities.ThaiUtilities,com.csc.library.utility.MsgPackage" contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%
String strJSON = "";
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
String json = "";
try {
System.out.print("******* get job from client has been called *********");
String COMCODE = "7"; /* 7 : comcode for update time log */
MsgPackage msgpack = new MsgPackage();
msgpack.setComcode(COMCODE);
msgpack.msg = "request client to update access control data";
json = gson.toJson(msgpack);
}catch(Exception e){
e.printStackTrace();
}
%>
<%=json%>
<%@ page import="com.csc.library.utilities.UProfile,com.csc.library.database.DataSet,java.util.*,com.google.gson.Gson,com.google.gson.GsonBuilder,java.lang.reflect.Type,com.google.gson.reflect.TypeToken,com.csc.library.utilities.ThaiUtilities,com.csc.library.utility.MsgPackage" contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%
System.out.print("******* get emp info. from server *********");
String strJSON = "";
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
String json = "";
try {
System.out.print("******* get job from client has been called *********");
String COMCODE = "6"; /* 6 : comcode for update time log */
MsgPackage msgpack = new MsgPackage();
msgpack.setComcode(COMCODE);
msgpack.msg = "request client to sent update timelog";
json = gson.toJson(msgpack);
}catch(Exception e){
e.printStackTrace();
}
%>
<%=json%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage recdata = new MsgPackage();
try {
System.out.print("!! Get munu page has been call !!");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected [sv_getmenu]!!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
}
}
/* save detail */
long curtime = System.currentTimeMillis();
if(dataitem.containsKey("data")){
try {
//System.out.print("input upd emp info --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
SV_GetEmpMenu genmenu = new SV_GetEmpMenu(recdata);
genmenu.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
}
if(dataitem.containsKey("attchfile")){
// leave blank
}
}else{
/* testing process will be sent in normal http get */
//String str = "{\"devno\":\"001\",\"passcode\":\"dddddddd\",\"companyid\":\"100\",\"comcode\":\"\",\"serialno\":\"SN000001\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0013\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":15569,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqLeave\":{\"lvtype\":null,\"lvdesc\":null,\"f_day\":false,\"f_halfday\":false,\"f_fhalf\":false,\"f_shalf\":false,\"f_hour\":false,\"lvreqstatus\":false,\"d_start_date\":null,\"d_end_date\":null,\"fs_start_date\":null,\"h_start_date\":null,\"h_start_time\":null,\"h_end_date\":null,\"h_end_time\":null,\"remark\":null,\"lmsg\":null,\"ltypeprop\":[],\"lsprop\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
String str = "3MZQRXhf/45pyUkCezZ9GiIYMDtYzfkQgkxtAGYt7uc3tMaSTir6uzD1pChNEx3QvxJ1JYmInR2zHcNsCaXc+mp4PDsnYs6ifAWNGtCwiJqVWHki1ZVvccxDXhgLplL0U5+SUvaQJCkzutK/sQRIGunH3Cxi6ujfD4XR1g1unWYCPFL9Jf2DfirQGl1bEqE24b53tqsu9Oazrwd71SqlXOKR2PEAUxpu/8ri1yZzWrAb7TjIxs+1ElvyEFm1HwjtIoy0iGa3P+tEI/bYQTcwmmqq2uId6t+cq+TMXWFINgRjh+tXBr/tcTz7cmnfJik5612w9iTlt8OEnzfuw52gfYoaLVLFVoeABnT+hC9RRy8j/zexxAyVWEwWg0xLlCb75VzRDwqj0ayyZ0mvps0W6T062XLecwPcL4Psg9lYtpyDiT971eNOLOf2QZlZFjWsxoGS8euyq8jo9us9qg9lsYWX97sOzoNkkM/8rvqRVlHq7rrmsytdWhDTqJP9+5UAEZaJuGekbfA09JMnOI/gdR+9KxhscKi3w3GdEzhAz+u2xvlD9VrKgtV4OQwSghd94zl4xOe4Sretjfvqg1dJ9LFS25cIhWywsjLRWcxKrEJKF+lhep2J1EBRzPz/XmqmOECzixCdBn0SKDsbQCIlCkIRDv7rAaFPg3zTRHWhqa2mXaPhzqod0abw0LqNR9g9LTom+Y2hZCEov7gBgGpkIZW7cM6pTm4oxMPVD9oBTlaWKpzUuak7cHaveWR74gPpfyLkcrX9IJ6wtO8NuiGs4MVXSNqtXqA1CfFA2XMkXKOsGRzH8Og0yfDndUOFIoZrDVVAPyiRc9FAB4LBhzJ9K7uUW9D4PeVk6M6eaQ/10zUqFjw/Z0G/1OIYAe5AGyHEo5GONReIlLE6cg56ZPyHXxvMqff/bA9mYKR+TXUV4sSLuM2jDtTEOWLCjEEKrb3nZmtZ4+x4nern/8Rl+4l/rpBvoa7JCti9gwvfX0fI0l630Ssz+YWKhGpU4R+hGbHje7uDFHY9lJ2bpu7z+HOlXL/yjEfhQI/vpRrG3h6cAdBduxK+SRFDzXiqbll/5ecqXM9GXscchFR53iHrmdBKR1NYE8of48sPovZGN5GSDIpRt5DbN/+QQrAdXbXVF6pslx5oWeYH2Ey9KDkc042CQSdBz5Kxo6x0SOwu3fBOWWxN5PBBLTsk8/sf271eTnHgF3F4eUotmtEpan4MbCavpZSvZxyrcOCP0dEdCGSiDaGv0Cx/0RW0OEV3y3e8mTsSPuJxgY//9UvBwOcM28hOQU+krp9F+hxbQW7n43/B3VpAscAvaRG1+Uqv6MFLNQDQqmIEuUav3ePNbuZi4EhsPyZkzQCZHdFqGjZumyD3BzhXJA1xE/UhvHEp32YAgwx+AgeeSHSvbRBCkjDaZo1KuNlGQo/c6a9Myw+N06VQXvrgbw78TTW5adxp7k+Kka2+8wJ/d/AzwylWVrP/FCxls3jCdI1kyPKI";
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage(str);
SV_GetEmpMenu genmenu = new SV_GetEmpMenu(recdata);
genmenu.run();
//out.print(msgpack.EncryptData(str));
}
}catch(Exception e){
System.out.print("xxx"+e.getMessage());
}
out.print(recdata.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage recdata = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("gettask page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
System.out.print("show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
SV_GetTask gt = new SV_GetTask(recdata);
gt.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + recdata.getPackage());
}
}
} catch(Exception e){
e.printStackTrace();
}
%>
<%=recdata.getPackage()%>
<%@page contentType="application/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%@page import="com.google.gson.reflect.TypeToken" %>
<%@page import="com.csc.library.utility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utility.MplsTimelog" %>
<%
GsonBuilder gson = new GsonBuilder();
Gson gs = gson.serializeNulls().create();
UProfile up = new UProfile();
up.setDbName("DBSYS");
up.setSchemaName("dbo");
up.setUserName("MYHRADMIN");
up.set("companyid", "100");
up.set("employeeid", "1262");
up.set("lang", "eng");
up.set("appname", "ANDROID");
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("set up authen page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" ;
//File uploadedFile = new File(path + ((String) dataitem.get("empid")) + ".dat");
File uploadedFile = new File(path + curtime + ".dat");
dataitem.put("filepath", uploadedFile.getAbsolutePath());
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);
*/
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
if(mypck.getComcode().equals("9")){
if(mypck.getDatServe().equals("http://192.168.1.214")){
mypck.setSetupAuthenStatus(true);
mypck.setMessage("authen user successful.");
}else{
mypck.setSetupAuthenStatus(false);
mypck.setMessage("authen user failed with incorrect server url");
}
}else{
rtnmsg.status = "1";
rtnmsg.msg = "authen user failed";
}
}
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("prepare leave request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateLeaveReq prereq = new SV_CreateLeaveReq(mypck);
prereq.run();
System.out.print("---prep ot return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0078\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"th\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":16048,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[],\"sendto_id\":\"1020\",\"sendto_name\":\"Mr. PRACHYA Brother Bands\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqLeave\":{\"lvtype\":null,\"f_day\":false,\"f_halfday\":false,\"f_fhalf\":false,\"f_shalf\":false,\"f_hour\":false,\"d_start_date\":null,\"d_end_date\":null,\"fs_start_date\":null,\"h_start_date\":null,\"h_start_time\":null,\"h_end_date\":null,\"h_end_time\":null,\"remark\":null,\"ltypeprop\":[],\"lsprop\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateLeaveReq prereq = new SV_CreateLeaveReq(mypck);
prereq.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("prepare ot request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateOTReq prereq = new SV_CreateOTReq(mypck);
prereq.run();
System.out.print("---prep ot return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0078\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"th\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":11664,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[],\"sendto_id\":\"1020\",\"sendto_name\":\"Mr. PRACHYA Brother Bands\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateOTReq prereq = new SV_CreateOTReq(mypck);
prereq.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("prepare time attendance request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateTimeAttReq prereq = new SV_CreateTimeAttReq(mypck);
prereq.run();
System.out.print("---prep time att. return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0013\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":7712,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0013\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_CreateTimeAttReq prereq = new SV_CreateTimeAttReq(mypck);
prereq.run();
}
} catch(Exception e){
e.printStackTrace();
}
System.out.print("!! REturn data pre--> " + mypck.getPackage());
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.awt.image.BufferedImage" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="javax.imageio.ImageIO" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.fputility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("***!! Save finger print page has been called from client !!***");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
MsgPackage recdata = new MsgPackage();
//Gson gson = new Gson();
//Gson gs = new GsonBuilder().serializeNulls().create();
long curtime = System.currentTimeMillis();
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
try {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + recdata.getCompany() + "/" ;
File uploadedFile = new File(path + curtime + ".dat");
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);*/
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
/* save detail */
if(dataitem.containsKey("data")){
boolean uploadcomplete = false ;
/* upload file and save into folder */
if(dataitem.containsKey("attchfile")){
try {
FileItem item = (FileItem) dataitem.get("attchfile");
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String comp = (recdata.getCompany().equals(""))?"100":recdata.getCompany() ;
String path = "D:/EnterprisePT/myHrAppServer/webapps/STD_NEW/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + comp + "/" ;
System.out.print(" !! Save fp file -- " + path + curtime + ".dat");
/* create path if not exist */
File file = new File(path);
if (!file.exists()) {
if (file.mkdir()) {
System.out.println("Directory is created!");
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
} else {
System.out.println("Failed to create directory!");
}
}else{
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
uploadcomplete = true ;
}
}catch(Exception e){
System.out.print(e.getMessage());
}
}
try {
System.out.print("show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
recdata.setFpfilename(curtime + ".dat");
/*set default (test used)*/
//recdata.setDevNo("001");
//recdata.setPassCode("ZBCDFGHJKIUYT");
//recdata.setCompanyid("100");
//recdata.setSerialNo("1236547890");
/*******/
if(uploadcomplete){
SV_RegisFingerprint regf = new SV_RegisFingerprint(recdata);
regf.run();
recdata.setMessage("Upload fp template complete");
recdata.setStatusComplete(); /* error status */
}else{ /* upload file failed */
recdata.setMessage("Upload failed");
recdata.setStatusError(); /* error status */
}
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}else{
System.out.print("!! package received is not in multipart format !!");
}
%>
<%=recdata.getPackage()%>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.awt.image.BufferedImage" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="javax.imageio.ImageIO" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.utility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%
System.out.print("***!! Save finger print page has been called from client !!***");
UProfile up = new UProfile();
up.setDbName("MSTECH");
up.setSchemaName("dbo");
up.setUserName("MYHRADMIN");
up.set("companyid", "100");
up.set("employeeid", "1262");
up.set("lang", "eng");
up.set("appname", "TA");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" ;
//File uploadedFile = new File(path + ((String) dataitem.get("empid")) + ".dat");
File uploadedFile = new File(path + curtime + ".dat");
dataitem.put("filepath", uploadedFile.getAbsolutePath());
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);
}
}
if(!dataitem.isEmpty()){
System.out.print((String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
MsgPackage recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
System.out.print("!! employeeid -> " + recdata.empid);
System.out.print("!! fpid -> " + recdata.fpid);
try {
DbRecord db = new InitialRecord(up).getDbRecord("Mempl_fp");
db.setColumn("*");
db.set("employeeid", recdata.empid);
db.set("companyid", "100");
db.set("fpid", recdata.fpid);
db.set("status", "1");
db.set("filename", curtime + ".dat");
db.save();
}catch(Exception e){
e.printStackTrace();
}
}
}
%>
<%="{\"data\":{\"msg\":\"receive_fpdata_successful\"},\"header\":{\"passcode\":\"Xmsd2569SXn\",\"comcode\":1,\"device_no\":\"mcc0001\"}}"%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.awt.image.BufferedImage" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="javax.imageio.ImageIO" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.fputility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("***!! Save finger print page has been called from client !!***");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
MsgPackage recdata = new MsgPackage();
//Gson gson = new Gson();
//Gson gs = new GsonBuilder().serializeNulls().create();
long curtime = System.currentTimeMillis();
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
try {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + recdata.getCompany() + "/" ;
File uploadedFile = new File(path + curtime + ".dat");
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);*/
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
/* save detail */
if(dataitem.containsKey("data")){
boolean uploadcomplete = false ;
/* upload file and save into folder */
if(dataitem.containsKey("attchfile")){
try {
FileItem item = (FileItem) dataitem.get("attchfile");
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String comp = (recdata.getCompany().equals(""))?"100":recdata.getCompany() ;
//String path = "D:/EnterprisePT/Programmer/myHRAppServer/webapps/SYS/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + comp + "/" ;
String path = "D:/EnterprisePT/myHrAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + comp + "/";
System.out.print(" !! Save fp file -- " + path + curtime + ".dat");
/* create path if not exist */
File file = new File(path);
if (!file.exists()) {
if (file.mkdir()) {
System.out.println("Directory is created!");
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
} else {
System.out.println("Failed to create directory!");
}
}else{
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
uploadcomplete = true ;
}
}catch(Exception e){
System.out.print(e.getMessage());
}
}
try {
System.out.print("show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
recdata.setFpfilename(curtime + ".dat");
/*set default (test used)*/
//recdata.setDevNo("001");
//recdata.setPassCode("ZBCDFGHJKIUYT");
//recdata.setCompanyid("100");
//recdata.setSerialNo("1236547890");
/*******/
if(uploadcomplete){
SV_RegisFingerprint regf = new SV_RegisFingerprint(recdata);
regf.run();
recdata.setMessage("Upload fp template complete");
recdata.setStatusComplete(); /* error status */
}else{ /* upload file failed */
recdata.setMessage("Upload failed");
recdata.setStatusError(); /* error status */
}
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}else{
System.out.print("!! package received is not in multipart format !!");
}
%>
<%=recdata.getPackage()%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.awt.image.BufferedImage" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="javax.imageio.ImageIO" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.fputility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("***!! Save finger print page has been called from client !!***");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
MsgPackage recdata = new MsgPackage();
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
long curtime = System.currentTimeMillis();
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
try {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + recdata.getCompany() + "/" ;
File uploadedFile = new File(path + curtime + ".dat");
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);*/
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
/* save detail */
if(dataitem.containsKey("data")){
try {
System.out.print("show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
recdata.setFpfilename(curtime + ".dat");
/*set default (test used)*/
recdata.setDevNo("0000001");
recdata.setPassCode("ZBCDFGHJKIUYT");
recdata.setCompanyid("100");
recdata.setSerialNo("1236547890");
/*******/
SV_RegisFingerprint regf = new SV_RegisFingerprint(recdata);
regf.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
/* */
if(dataitem.containsKey("attchfile")){
try {
FileItem item = (FileItem) dataitem.get("attchfile");
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/Programmer/myHRAppServer/webapps/SYS/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" + recdata.getCompany() + "/" ;
System.out.print(" !! Save fp file -- " + path + curtime + ".dat");
/* create path if not exist */
File file = new File(path);
if (!file.exists()) {
if (file.mkdir()) {
System.out.println("Directory is created!");
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
} else {
System.out.println("Failed to create directory!");
}
}else{
File uploadedFile = new File(path + curtime + ".dat");
item.write(uploadedFile);
}
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
}else{
System.out.print("!! package received is not in multipart format !!");
}
%>
<%=recdata.getPackage()%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("check leave request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_ChkLeaveReq chkreq = new SV_ChkLeaveReq(mypck);
chkreq.run();
System.out.print("---chk leave return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"002\",\"passcode\":\"\",\"companyid\":\"100\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0078\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"en\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":15953,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[],\"sendto_id\":\"1020\",\"sendto_name\":\"นายปรัชญา ครอบครัวเดียวกัน\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"},\"reqLeave\":{\"lvtype\":\"A03\",\"f_day\":true,\"f_halfday\":false,\"f_fhalf\":false,\"f_shalf\":false,\"f_hour\":false,\"d_start_date\":\"2014-07-22\",\"d_end_date\":\"2014-07-22\",\"fs_start_date\":null,\"h_start_date\":null,\"h_start_time\":null,\"h_end_date\":null,\"h_end_time\":null,\"remark\":\"sick leave test\",\"ltypeprop\":[{\"lvid\":\"A01\",\"desc\":\"ลาพักผ่อนประจำปี\"},{\"lvid\":\"A02\",\"desc\":\"ลากิจ\"},{\"lvid\":\"A03\",\"desc\":\"ลาป่วย\"},{\"lvid\":\"A04\",\"desc\":\"ลาป่วย (ในงาน)\"},{\"lvid\":\"A05\",\"desc\":\"ลาคลอด\"},{\"lvid\":\"A06\",\"desc\":\"ลาเพื่อรับราชการทหารฯ\"},{\"lvid\":\"A07\",\"desc\":\"ลาอุปสมบท\"},{\"lvid\":\"A08\",\"desc\":\"ลาทำหมัน\"},{\"lvid\":\"A09\",\"desc\":\"ลาฝึกอบรม\"},{\"lvid\":\"OTL\",\"desc\":\"ลาหยุดพิเศษ (หักจากยอดชม. โอทีสะสม)\"}],\"lsprop\":[{\"lvtypeid\":\"A01\",\"lvtypedesc\":\"ลาพักผ่อนประจำปี\",\"lvcarry_forward\":\"00:00:00\",\"lvlimit\":\"15:00:00\",\"lvused\":\"03:00:00\",\"lvremain\":\"12:00:00\"},{\"lvtypeid\":\"A02\",\"lvtypedesc\":\"ลากิจ\",\"lvcarry_forward\":\"\",\"lvlimit\":\"06:00:00\",\"lvused\":\"00:05:00\",\"lvremain\":\"05:03:00\"},{\"lvtypeid\":\"A03\",\"lvtypedesc\":\"ลาป่วย\",\"lvcarry_forward\":\"\",\"lvlimit\":\"30:00:00\",\"lvused\":\"01:00:00\",\"lvremain\":\"29:00:00\"},{\"lvtypeid\":\"A04\",\"lvtypedesc\":\"ลาป่วย (ในงาน)\",\"lvcarry_forward\":\"\",\"lvlimit\":\"45:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"45:00:00\"},{\"lvtypeid\":\"A05\",\"lvtypedesc\":\"ลาคลอด\",\"lvcarry_forward\":\"\",\"lvlimit\":\"90:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"90:00:00\"},{\"lvtypeid\":\"A06\",\"lvtypedesc\":\"ลาเพื่อรับราชการทหารฯ\",\"lvcarry_forward\":\"\",\"lvlimit\":\"99:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"99:00:00\"},{\"lvtypeid\":\"A07\",\"lvtypedesc\":\"ลาอุปสมบท\",\"lvcarry_forward\":\"\",\"lvlimit\":\"30:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"30:00:00\"},{\"lvtypeid\":\"A08\",\"lvtypedesc\":\"ลาทำหมัน\",\"lvcarry_forward\":\"\",\"lvlimit\":\"99:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"99:00:00\"},{\"lvtypeid\":\"A09\",\"lvtypedesc\":\"ลาฝึกอบรม\",\"lvcarry_forward\":\"\",\"lvlimit\":\"99:00:00\",\"lvused\":\"00:00:00\",\"lvremain\":\"99:00:00\"},{\"lvtypeid\":\"OTL\",\"lvtypedesc\":\"ลาหยุดพิเศษ (หักจากยอดชม. โอทีสะสม)\",\"lvcarry_forward\":\"\",\"lvlimit\":\"99:00:00\",\"lvused\":\"03:00:00\",\"lvremain\":\"96:00:00\"}],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_ChkLeaveReq chkreq = new SV_ChkLeaveReq(mypck);
chkreq.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("send ot request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_SaveOTReq savereq = new SV_SaveOTReq(mypck);
savereq.run();
System.out.print("---save ot req return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0078\",\"positionid\":\"\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"th\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":11664,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[],\"arrReason\":[],\"sendto_id\":\"\",\"sendto_name\":\"\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"},\"reqOT\":{\"arrOT\":[{\"startdate\":\"15-01-2014\",\"starttime\":\"17.00\",\"enddate\":\"15-01-2014\",\"endtime\":\"22.00\",\"total\":\"5.00\",\"remark\":\"ทำงานแทน\"}],\"sendto_id\":\"1020\",\"sendto_name\":\"Mr. PRACHYA Brother Bands\",\"employeeid\":\"\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_SaveOTReq savereq = new SV_SaveOTReq(mypck);
savereq.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("prepare time attendance request page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_SaveTimeAttReq savereq = new SV_SaveTimeAttReq(mypck);
savereq.run();
System.out.print("---save time att req time att. return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawtimedata = "{\"devno\":\"\",\"passcode\":\"\",\"companyid\":\"100\",\"comcode\":\"\",\"serialno\":\"\",\"authtype\":\"\",\"install\":false,\"logserv1\":\"\",\"logserv2\":\"\",\"datserv\":\"\",\"dev_loc\":\"\",\"dev_long\":\"\",\"dev_lat\":\"\",\"authen\":false,\"fpid\":0,\"empid\":\"0078\",\"fpfilename\":\"\",\"servClock\":\"\",\"tasklist\":[],\"emplist\":[],\"timelist\":[],\"accinfolist\":[],\"empfp\":[],\"lang\":\"\",\"msg\":\"\",\"condition\":\"\",\"status\":\"0\",\"fptp\":null,\"taskcond\":null,\"chksum\":7832,\"chksumfp\":0,\"isValidPackage\":true,\"reqTimeAttdata\":{\"start_date\":\"\",\"end_date\":\"\",\"arrTimeAtt\":[{\"swipedate\":\"06-03-2014\",\"swipetime\":\"17.00\",\"swipetype\":\"1\",\"reasonid\":\"\",\"reason_desc\":\"\"},{\"swipedate\":\"14-03-2014\",\"swipetime\":\"17.00\",\"swipetype\":\"1\",\"reasonid\":\"\",\"reason_desc\":\"\"},{\"swipedate\":\"15-03-2014\",\"swipetime\":\"08.00\",\"swipetype\":\"0\",\"reasonid\":\"\",\"reason_desc\":\"\"},{\"swipedate\":\"15-03-2014\",\"swipetime\":\"16.00\",\"swipetype\":\"1\",\"reasonid\":\"\",\"reason_desc\":\"\"}],\"arrReason\":[{\"reasonid\":\"001\",\"reason_desc\":\"ลืมบันทึกเวลา\"},{\"reasonid\":\"002\",\"reason_desc\":\"ลืมบัตรพนักงาน\"},{\"reasonid\":\"003\",\"reason_desc\":\"กิจกรรมบริษัท\"},{\"reasonid\":\"004\",\"reason_desc\":\"เข้างานใหม่(ยังไม่มีบัตร)\"},{\"reasonid\":\"005\",\"reason_desc\":\"อบรมนอกสถานที่\"},{\"reasonid\":\"006\",\"reason_desc\":\"ปฏิบัติงานนอกสถานที่\"},{\"reasonid\":\"007\",\"reason_desc\":\"บัตรหาย/ชำรุด\"},{\"reasonid\":\"008\",\"reason_desc\":\"ไม่มีเครื่องบันทึกเวลา (เฉพาะพนักงานบางซื่อ)\"},{\"reasonid\":\"009\",\"reason_desc\":\"รถบริษัทมาสาย\"}],\"sendto_id\":\"1020\",\"sendto_name\":\"Mr. PRACHYA Brother Bands\",\"employeeid\":\"0078\",\"status\":false,\"msg\":\"\"}}";
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_SaveTimeAttReq savereq = new SV_SaveTimeAttReq(mypck);
savereq.run();
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("set up authen page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
/*
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
String path = "D:/EnterprisePT/myHRAppServer/webapps/CSC/hrAppWeb.war/UPLOAD/REGISFP/PICTURES/" ;
//File uploadedFile = new File(path + ((String) dataitem.get("empid")) + ".dat");
File uploadedFile = new File(path + curtime + ".dat");
dataitem.put("filepath", uploadedFile.getAbsolutePath());
System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
item.write(uploadedFile);
*/
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_SetupAuthen chkauth = new SV_SetupAuthen(mypck);
chkauth.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
mypck.setSetupAuthenStatus(true);
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
//System.out.print("------- success ----" + mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.SV_UpdCourseStatus" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("get course page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
//out.print(rawtimedata);
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_UpdCourseStatus svg = new SV_UpdCourseStatus(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawdata = "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";
mypck = rtnmsg.convStrToMsgPackage(rawdata);
SV_UpdCourseStatus svg = new SV_UpdCourseStatus(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
//System.out.print("------- success ----" + mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.SV_UpdEmpCourse" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage rtnmsg = new MsgPackage();
MsgPackage mypck = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("get course page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
/* send receive msg to servr */
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
//out.print(rawtimedata);
mypck = rtnmsg.convStrToMsgPackage(rawtimedata);
/* use mypck to save into db */
SV_UpdEmpCourse svg = new SV_UpdEmpCourse(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
}else{
String rawdata = "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";
mypck = rtnmsg.convStrToMsgPackage(rawdata);
SV_UpdEmpCourse svg = new SV_UpdEmpCourse(mypck);
svg.run();
System.out.print("--- get task return data ---");
System.out.print("encrypted --> " + mypck.getPackage());
}
} catch(Exception e){
e.printStackTrace();
}
out.print(mypck.getPackage());
//System.out.print("------- success ----" + mypck.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%
System.out.print("******* get acc info. from server *********");
MsgPackage recdata = new MsgPackage();
try {
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected [sv_updempinfo]!!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
}
}
/* save detail */
long curtime = System.currentTimeMillis();
if(dataitem.containsKey("data")){
try {
System.out.print((String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
/*set default (test used)*/
//recdata.setDevNo("0000001");
//recdata.setPassCode("ZBCDFGHJKIUYT");
//recdata.setCompanyid("100");
//recdata.setSerialNo("1236547890");
/*******/
SV_UpdInoutZone updinout = new SV_UpdInoutZone(recdata);
updinout.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
}
if(dataitem.containsKey("attchfile")){
// leave blank
}
}else{
/* testing process will be sent in normal http get */
MsgPackage msgpack = new MsgPackage();
/*set default (test used)*/
//recdata.setDevNo("0000001");
//recdata.setPassCode("ZBCDFGHJKIUYT");
//recdata.setCompanyid("100");
//recdata.setSerialNo("1236547890");
/*******/
SV_UpdInoutZone updinout = new SV_UpdInoutZone(recdata);
updinout.run();
}
}catch(Exception e){
System.out.print(e.getMessage());
}
out.print(recdata.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("******* get clock from server *********");
UProfile up = new UProfile();
up.setDbName("DBSYS");
up.setSchemaName("dbo");
up.setUserName("MYHRADMIN");
up.set("companyid", "100");
up.set("employeeid", "1262");
up.set("lang", "eng");
up.set("appname", "PAYROLL");
ThaiUtilities util = new ThaiUtilities();
String strJSON = "";
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
String json = "";
try {
System.out.print("!! update server clock page has been called !!");
String COMCODE = "10"; /* 10 : comcode for update clock */
MsgPackage msgpack = new MsgPackage(COMCODE);
msgpack.setServClock(new CscCalendar().getYYYYMMDDHHMMSS());
json = msgpack.getPackage();
}catch(Exception e){
e.printStackTrace();
}
%>
<%=json%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
System.out.print("******* get emp info. from server *********");
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
String json = "";
MsgPackage recdata = new MsgPackage() ;
try {
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
long curtime = System.currentTimeMillis();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
}
}
if(!dataitem.isEmpty()){
System.out.print((String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
String COMCODE = "4"; /* 4 : comcode for update device info. */
recdata.setComcode(COMCODE);
recdata.setPassCode("0123456789");
recdata.setAuthType("0");
}
}
json = recdata.getPackage();
}catch(Exception e){
e.printStackTrace();
}
%>
<%=json%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%System.out.print("***!! Update finger print page has been called from client !!***");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
MsgPackage recdata = new MsgPackage();
if(isMultipart){
System.out.print("!! Multipart data detected !!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
try {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
/* save detail */
if(dataitem.containsKey("data")){
try {
System.out.print("show --> " + (String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
SV_UpdEmpfp regf = new SV_UpdEmpfp(recdata);
regf.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
/* optional */
if(dataitem.containsKey("attchfile")){
try {
}catch(Exception e){
System.out.print(e.getMessage());
}
}
}
}else{
System.out.print("!! package received is not in multipart format !!");
}
%>
<%=recdata.getPackage()%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
UProfile up = new UProfile();
up.setDbName("DBSYS");
up.setSchemaName("dbo");
up.setUserName("MYHRADMIN");
up.set("companyid", "100");
up.set("employeeid", "1262");
up.set("lang", "eng");
up.set("appname", "ANDROID");
ThaiUtilities util = new ThaiUtilities();
String SQL = "SELECT EMPLOYEEID,COMPANYID,FPID,FILENAME,STATUS FROM MEMPL_FP ";
String strJSON = "";
Gson gson = new Gson();
Gson gs = new GsonBuilder().serializeNulls().create();
MempFP empfp = null;
ArrayList<MempFP> arr = new ArrayList<MempFP>();
System.out.print("!! updempfp has been called !!");
try{
DataSet ds = new DataSet(SQL,up.get("dbname"),"Mempl_fp");
ds.initConnection(up);
while(ds.next()){
try {
empfp = new MempFP();
empfp.setEmpId(ds.getString("employeeid"));
empfp.setCompanyid(ds.getString("companyid"));
empfp.setFpid(Integer.parseInt(ds.getString("fpid")));
empfp.setFilename(ds.getString("filename"));
empfp.setStatus(ds.getString("status"));
arr.add(empfp);
System.out.print("--> upd empid : " + ds.getString("employeeid"));
System.out.print("--> upd fpid : " + ds.getString("fpid"));
System.out.print("--> upd fptemplate : " + ds.getString("filename"));
}catch(Exception e){
System.out.print(" error while saving template !!! ");
e.printStackTrace();
}
}
}catch(Exception e){
e.printStackTrace();
}
String json = "";
try {
System.out.print("******* create package data size [" + arr.size() + "]");
String COMCODE = "2"; /* 2 : comcode for update employeeid fingerprint */
MsgPackage msgpack = new MsgPackage(COMCODE);
msgpack.setUpdEmpFp(arr);
json = gson.toJson(msgpack);
}catch(Exception e){
e.printStackTrace();
}
%>
<%=json%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="java.io.ByteArrayInputStream" %>
<%@page import="java.io.ByteArrayOutputStream" %>
<%@page import="java.io.File" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.csc.library.fpprocess.*" %>
<%@page import="com.csc.library.fputility.*" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%
MsgPackage recdata = new MsgPackage();
try {
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart){
System.out.print("!! Multipart data detected [sv_updempinfo]!!");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
} else {
System.out.print("!! File upload detected !!");
dataitem.put("attchfile", item);
//System.out.print("!! Absolute path -> " + uploadedFile.getAbsolutePath());
//item.write(uploadedFile);
}
}
/* save detail */
long curtime = System.currentTimeMillis();
if(dataitem.containsKey("data")){
try {
System.out.print((String) dataitem.get("data"));
MsgPackage msgpack = new MsgPackage();
recdata = msgpack.convStrToMsgPackage((String) dataitem.get("data"));
SV_UpdEmpinfo updemp = new SV_UpdEmpinfo(recdata);
updemp.run();
}catch(Exception e){
System.out.print(e.getMessage());
}
}
if(dataitem.containsKey("attchfile")){
// leave blank
}
}else{
/* testing process will be sent in normal http get */
MsgPackage msgpack = new MsgPackage();
SV_UpdEmpinfo updemp = new SV_UpdEmpinfo(recdata);
updemp.run();
}
}catch(Exception e){
System.out.print("xxx"+e.getMessage());
}
out.print(recdata.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8;" pageEncoding="UTF-8" %>
<%@page import="com.csc.library.utilities.*,com.csc.library.database.DataSet,java.util.*,com.csc.library.utilities.ThaiUtilities" %>
<%@page import="com.csc.library.database.CscConnection" %>
<%@page import="com.sun.org.apache.xerces.internal.impl.dv.util.Base64" %>
<%@page import="java.io.IOException" %>
<%@page import="java.io.InputStream" %>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
<%@page import="org.apache.commons.fileupload.FileItemFactory" %>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="com.google.gson.Gson" %>
<%@page import="com.google.gson.GsonBuilder" %>
<%@page import="com.google.gson.reflect.TypeToken" %>
<%@page import="com.csc.library.fputility.MsgPackage" %>
<%@page import="com.csc.library.session.*" %>
<%@page import="com.csc.library.fpprocess.SV_UpdTimeLog" %>
<%
MsgPackage recdata = new MsgPackage();
try {
System.out.print("/**************************************/");
System.out.print("Update time log page has been called from client");
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
System.out.print("/****** is multipart context --> " + isMultipart );
if(isMultipart){
System.out.print("Multipart data detected -> ");
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
HashMap dataitem = new HashMap();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
dataitem.put(name, value);
System.out.print("!! Field name : "+ name + " value " + value);
}
}
/* send receive msg to servr */
MsgPackage rtnmsg = new MsgPackage();
rtnmsg.setComcode("0");
if(dataitem.containsKey("data")){
String rawtimedata = (String) dataitem.get("data");
System.out.print(rawtimedata);
recdata = rtnmsg.convStrToMsgPackage(rawtimedata);
System.out.print("data receive ---> " + recdata);
SV_UpdTimeLog updt = new SV_UpdTimeLog(recdata);
updt.run();
}
}
} catch(Exception e){
e.printStackTrace();
}
out.print(recdata.getPackage());
%>
<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Applicant</title>
</head>
<BODY>
<form action="LOGIN.jsp" method="post" name="cscform">
<input name="__cmd" value="login" type="hidden"/>
<input name="__agencyname" value="login" type="hidden"/>
<input name="__guest" value="true" type="hidden"/>
<input name="__user" value="guest" type="hidden"/>
<input name="__password" value="" type="hidden"/>
<input name="__dbcomp" value="db-100" type="hidden"/>
<input name="__lang" value="tha" type="hidden"/>
</form>
<script language="javascript">document.cscform.submit();</script>
</BODY>
</HTML>
<%@ page import="com.csc.library.entry.*,com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.database.*,java.util.*" contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="APS200_1" scope="page" class="com.csc.library.system.Task"/>
<%
APS200_1.setChannel(request ,response);
UIManager screen=(UIManager)APS200_1.process("ChildEntry","MGRADEHISTORY");
%>
<html ng-app="myHR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<link href="../CSS/bootstrap.css" rel="stylesheet" type="text/css">
<link href="../CSS/bootstrap_csc_backend.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src="../JS/bootstrap.js"></script>
<script type='text/javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" src="../JS/HOTKEY.js"></script>
<script language="JavaScript" src="../JS/DATEINPUT.js"></script>
<script language="javascript">getTitleName();</script>
<script language="JavaScript" type="text/JavaScript">
function linkHelp_Return(help,input){
with(document.cscform){
if (__fixCon.value!="")
__fixCon.value=__fixCon.value
var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=false";
window.open(param,"Help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
/* function saveChild(){
with(document.cscform){
bCon=confirm(MyCode[1]);
if (bCon==true) {
__cmdchild.value="save";
}
submit();
}
} */
function saveChild(){
with(document.cscform){
__cmdchild.value="save";
submit();
}
}
function back(){
with(window.opener.document.cscform){
__cmd.value = 'ack';
submit();
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP24.gif','../IMAGES/BUTTON/SWAP/EXIT_SWAP24.gif','../IMAGES/BUTTON/SWAP/HELP_SWAP24.gif','../IMAGES/BUTTON/SWAP/NEW_SWAP24.gif','../IMAGES/BUTTON/SWAP/EDIT_SWAP24.gif','../IMAGES/BUTTON/SWAP/DEL_SWAP24.gif','../IMAGES/BUTTON/SWAP/PROCESS_SWAP24.gif','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif');">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="APS200_1.jsp">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__sysisedit" value="">
<input type="hidden" name="__cmdchild">
<input type="hidden" name="__ack" value="<%=request.getParameter("__ack")%>">
<input type="hidden" name="__referPage" value="">
<input type="hidden" name="__fixCon" value="">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">
<input type="hidden" name="__screen" value="MGRADEHISTORY">
<input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'>
<input type="hidden" name="__employeeid" value="<%=request.getParameter("__employeeid")%>">
<input type="hidden" name="__language" value='<%=screen.getUProfile().get("lang")%>'>
<input type="hidden" name="__lastrec" value="<%=request.getParameter("__lastrec")%>">
<input type="hidden" name="__maxrec" value="<%=screen.getTable("MGRADEHISTORY").recCount()%>">
<input type="hidden" name="__gorec" value="<%=request.getParameter("__gorec")%>">
<input type="hidden" name="__headMulti" value="<%=request.getParameter("__headMulti")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<input type="hidden" name="__headMulti" value="<%=request.getParameter("__headMulti")%>">
<input type="hidden" name="__Rec_No" value="<%=request.getParameter("__Rec_No")%>">
<!-- fix ค่า weight ประการณ์ทำงาน เป็น 100 percent -->
<input type="hidden" name="__exp_weight" value="100">
<input type="hidden" name="__form" value="">
<%
int lineno=1;
if((request.getParameter("__gorec")!=null)&&(!request.getParameter("__gorec").equals(""))){
lineno= Integer.parseInt(request.getParameter("__gorec").toString());
%>
<% }else{
if(screen.getTable("MGRADEHISTORY").recCount()==0){
lineno=1;
}else{
screen.getTable("MGRADEHISTORY").last();
String lastrec=screen.getTable("MGRADEHISTORY").getString("LINE_NO");
lineno=Integer.parseInt(lastrec)+1;
}
}
%>
<input type="hidden" name="__line_no" value="<%=lineno%>">
<br>
<div align="center">
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header">APS200_1,<span swlang code="SW012687">Grade History Table</span>&nbsp; </td>
</tr>
<tr >
<td height="222" colspan="2">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="blankspace" colspan="2"></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("year")%>&nbsp;</td>
<td ><%=screen.getInput("year")%></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("grade")%>&nbsp;</td>
<td ><%=screen.getInput("grade")%></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("score")%>&nbsp;
</td>
<td > <%=screen.getInput("score")%></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("type")%>&nbsp;
</td>
<td > <%=screen.getInput("type")%></td>
</tr>
<td colspan="4" class="blankspace"></td>
</tr>
<tr>
<td class="buttonline" colspan="7"><div align="center">
<button type="button" class="btn btn-primary width100" swlang code="SW013169" onClick="saveChild();">OK</button>&nbsp;
<button type="button" class="btn btn-primary width100" swlang code="SW013174" onClick="backhead();">BACK</button>
</div>
</td>
</tr>
<tr>
<td colspan="4" class="blankspace"></td>
</tr>
</table>
</center>
</div></td>
</tr>
<tr bordercolor="0069B3">
<td height="20" class="bottom"></td>
</tr>
</table>
</center>
</div>
<%
if((request.getParameter("__cmdchild")!=null)&&(!request.getParameter("__cmdchild").equals(""))){%>
<script language="javascript">back();</script>
<%}%>
</form>
<!--Start ERROR AND WARNING -->
<!--END ERROR AND WARNING -->
</body>
</html>
<%@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.*" %>
<%@page import="java.util.*,java.net.*,java.io.*,com.csc.upload.*,com.csc.library.cscimport.MyImport;"%>
<jsp:useBean id="upload" class="com.csc.library.system.Task" scope="page"/>
<jsp:useBean id="hmul" class="com.csc.upload.HttpMultiPartParser" scope="page"/>
<%
upload.setChannel(request,response);
upload.checkProfile();
UProfile u=upload.getUProfile();
InitialEnvironment en = new InitialEnvironment("GLOBAL");
String filePath=en.getValue("dirimport-dir");
String tempdir = ".";
request.setAttribute("dir", request.getParameter("dir"));
String browser_name = request.getRequestURI();
String status="";
Hashtable ht=new Hashtable();
String dir="";
String table = "";
String xml="";
String yearid="";
%>
<%
if ((request.getContentType()!=null)&&(request.getContentType().toLowerCase().startsWith("multipart"))){
response.setContentType("text/html");
try{
int bstart = request.getContentType().lastIndexOf("oundary=");
String bound = request.getContentType().substring(bstart+8);
ht = hmul.processData(request.getInputStream(), bound, tempdir);
hmul.uploadFiles(ht);
u.set("upload","true");
dir=(String) ht.get("dir");
xml=(String) ht.get("__xml");
table=(String) ht.get("__table");
yearid=(String) ht.get("__yearid");
FileInfo f = (FileInfo) ht.get("myFile");
String fileFullPath = f.file.toString();
String fileName="";
StringTokenizer str = new StringTokenizer(fileFullPath, "\\");
while (str.hasMoreTokens()) {
fileName = str.nextToken();
}
response.sendRedirect("APS300_IMPORT.jsp?__fileName="+fileName+"&__cmd=process_data&__xml="+xml+"&__table="+table+"&__yearid="+yearid);
}
catch (Exception e){ e.printStackTrace(); }
}
%>
<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">
<link href="../CSS/bootstrap.css" rel="stylesheet" type="text/css">
<link href="../CSS/bootstrap_csc_backend.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src="../JS/bootstrap.js"></script>
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="javascript">setLang('<%=upload.getUProfile().get("lang")%>');</script>
<script language="JavaScript" >
<!--
function checktype(){
var stdstr="";
with(document.cscform){
if(myFile.value.length>0){
stdstr=myFile.value.substring(myFile.value.lastIndexOf("\\")+1,myFile.value.length);
if(stdstr.indexOf(".txt")>-1){
submit();
}else if(stdstr.indexOf(".TXT")>-1){
submit();
}else if(stdstr.indexOf(".csv")>-1){
submit();
}else if(stdstr.indexOf(".CSV")>-1){
submit();
}else if(stdstr.indexOf(".dat")>-1){
submit();
}else if(stdstr.indexOf(".DAT")>-1){
submit();
}else if(stdstr.indexOf(".Txt")>-1){
submit();
}else{
alert(MyCode[81]);
}
} else if (myFile.value.length==0)
alert(MyCode[80]);
}
}
function notInput(){
with(document.cscform){
alert(myFile.value);
myFile.value="5";
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="cscform" enctype="multipart/form-data" method="POST" >
<br>
<div align="center">
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header">APS300,&nbsp;<script language="javascript">swapLang("Import Data Mapplicant");</script>&nbsp;</td>
</tr>
<tr >
<td colspan="2">
<table width="630" border="0">
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td class="columnlabel"><script language="javascript">swapLang("File");</script>&nbsp;</td>
<td>
<input type="hidden"name="__screen" value="upload">
<input type="hidden" name="dir" value="<%=filePath%>">
<input type="file" name="myFile" onKeyDown="javascript:notInput();">
</td>
</tr>
<tr>
<td class="columnlabel"><script language="javascript">swapLang("Year");</script>&nbsp;</td>
<td>
<select name="__yearid">
<%
CscCalendar c = new CscCalendar();
for(int i=0 ; i<5 ; i++,c.decYear(1)){
%>
<option value="<%=c.getYear()%>"><%=c.getYear()%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td class="buttonline" colspan="7"><div align="center">
<button type="button" class="btn btn-primary width100" swlang code="SW013181" onClick="checktype();">Upload</button>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace" ></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="bottom"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
<%@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="APS300" class="com.csc.library.system.Task" scope="page"/>
<%
APS300.setChannel(request ,response);
ProcessEntry screen=(ProcessEntry)APS300.process("ProcessEntry","Process");
screen.process();
//out.println(request.getParameter("__fileName"));
%>
<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 language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" >
function chkProcess() {
with (document.cscform) {
if (__cmd.value=='process_data') {
__cmd .value = "save";
/*bCon=confirm("Confirm Process ");
if (bCon==true) {
__cmd .value = "save";
submit();
}*/
submit();
} else {
action = "APS300.jsp";
submit();
}
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="cscform" method="POST" action="APS300_IMPORT.jsp">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__screen" value="APS300_IMPORT">
<input type="hidden" name="__fixCon" value="">
<input type="hidden" name="__cmd" value="<%=request.getParameter("__cmd")%>">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
<input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'>
<input type="hidden" name="__tname" value="ระบบประเมินผล">
<input type="hidden" name="__ename" value="Appraisal">
<input type="hidden" name="__ptype" value="AP11">
<input type="hidden" name="__prclass" value="ImportAppraisal">
<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>
<input type="hidden" name="__condition$employeeProcess" value='<%=screen.getUProfile().get("employeeid")%>'>
<input type="hidden" name="__condition$fileName" value="<%=request.getParameter("__fileName")%>">
<input type="hidden" name="__condition$xmlName" value="IMP_MEMPL_LEAVESUMMARY">
<input type="hidden" name="__condition$tableImport" value="MEMPL_LEAVESUMMARY">
<input type="hidden" name="__condition$yearid" value="<%=request.getParameter("__yearid")%>">
<input type="hidden" name="__condition$rsc_skip" value="true">
</form>
<script language="javascript">
chkProcess();
</script>
</body>
</html>
<%@ page import="com.csc.library.entry.*,com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.database.*,java.util.*" contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="PRU064" scope="page" class="com.csc.library.system.Task"/><%
PRU064.setChannel(request ,response);
UIManager screen=(UIManager)PRU064.process("ChildEntry","MEMPL_ASSESSOR_ADMIN");
%>
<html ng-app="myHR">
<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 src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="javascript">getTitleName();</script>
<script language='javascript' src='../JS/EMPLOYEE.js'></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script src="../JS/DATEINPUT.js"></script>
<script language="JavaScript" src='../JS/ICONSMENU.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function goHelp(helpName,inputName){
var helpReturn;
if(inputName=="__employeelist"){
helpReturn="__employeelist:employeeid,MEMPLOYEE@TFULLNAME,MEMPLOYEE@EFULLNAME";
}
linkHelp_Return(helpName,helpReturn);
}
/*
function setchd(action){
if(nullCheck()){
with(document.cscform){
bcon = conf
if (bCon==true) {
if(action=="save"){
__cmdchild.value="save";
}
}else{
alert(MyCode[0]);
}
submit();
}
}
}*/
function back(){
with(window.opener.document.cscform){
__cmd.value = 'ack';
submit();
}
}
//-->
</script>
</head>
<body>
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__language" value='<%=screen.getUProfile().get("lang")%>'>
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__sysisedit" value="">
<input type="hidden" name="__calendar" value="">
<input type="hidden" name="__cmdchild" value="">
<input type="hidden" name="__headMulti" value="<%=request.getParameter("__headMulti")%>">
<input type="hidden" name="__screen" value="MEMPL_ASSESSOR_ADMIN">
<input type="hidden" name="__ack" value="">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__lastrec" value="">
<input type="hidden" name="__maxrec" value="<%=screen.getTable("MEMPL_ASSESSOR_ADMIN").recCount()%>">
<input type="hidden" name="__gorec" value="<%=request.getParameter("__gorec")%>">
<input type="hidden" name ="__employeeid" value="<%=request.getParameter("__employeeid")%>">
<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
<input type="hidden" name="__fixCon" value="">
<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">
<input type="hidden" name="__referPage" value="">
<%
int lineno=1;
if((request.getParameter("__gorec")!=null)&&(!request.getParameter("__gorec").equals(""))){
lineno= Integer.parseInt(request.getParameter("__gorec").toString());
%>
<%
}else{
if(screen.getTable("MEMPL_ASSESSOR_ADMIN").recCount()==0){
lineno=1;
}else{
screen.getTable("MEMPL_ASSESSOR_ADMIN").last();
String lastrec=screen.getTable("MEMPL_ASSESSOR_ADMIN").getString("LINE_NO");
lineno=Integer.parseInt(lastrec)+1;
}
}
%>
<input type="hidden" name="__line_no" value="<%=lineno%>">
<div align="center">
<table cellspacing="0">
<tr>
<td class="header" colspan="2">APS301_1,<span>Define Approver By Admin</span>&nbsp;</td>
</tr>
<tr>
<td><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("employeelist")%>&nbsp;</td>
<td class="columnobject1"><%=screen.getInput("employeelist")%></td>
</tr>
<%
String tname="";
String ename="";
if(!screen.getDataLabel("employeelist").equals("")){
DbInquiry emp = new InitialInquiry(screen.getUProfile()).getDbInquiry("memployee");
emp.setColumn("*");
emp.setFilter("employeeid = '"+screen.getDataLabel("employeelist")+"'");
emp.refresh();
emp.referLangOn();
emp.next();
tname = emp.getString("tfullname");
ename = emp.getString("efullname");
}
%>
<tr>
<td class="columnlabel"><%=screen.getUProfile().get("lang").equalsIgnoreCase("ENG")?"Fullname(TH)":"ชื่อ-นามสกุล(ไทย)"%>&nbsp;</td>
<td>
<input name="MEMPLOYEE@TFULLNAME" type="text" readonly size="60" value="<%=tname%>">
</td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getUProfile().get("lang").equalsIgnoreCase("ENG")?"Fullname(ENG)":"ชื่อ-นามสกุล(อังกฤษ)"%>&nbsp;</td>
<td>
<input name="MEMPLOYEE@EFULLNAME" type="text" readonly size="60" value="<%=ename%>">
</td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("status")%>&nbsp;</td>
<td class="columnobject1"><%=screen.getInput("status")%></td>
</tr> <tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="buttonline" >
<a href="javascript:saveChild();"><img src="../IMAGES/BUTTON/OK.gif" border="0"></a>&nbsp;&nbsp;
<a href="javascript:backhead();"><img src="../IMAGES/BUTTON/BACK.gif" border="0"></a>
</td>
</tr>
</table>
</div>
<%
if((request.getParameter("__cmdchild")!=null)&&(!request.getParameter("__cmdchild").equals(""))){%>
<script language="javascript">back();</script>
<%}%>
</form>
</body>
</html>
<!DOCTYPE HTML>
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.database.*,com.csc.library.session.*,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%
UProfile up = null;
if (session != null){
up = (UProfile)session.getAttribute("userprofile");
}
%>
<html ng-app='APP_BU'>
<head>
<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/VIEWCALENDAR.js"></script>
<script type='text/javascript' src="../JS/SCREEN.js"></script>
<script type='text/javascript' src="../JS/angular-1.3.15/angular.js"></script>
<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
<script src="../public/lib/angular-resource/angular-resource.min.js"></script>
<script src="../JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script type='text/javascript' src='JS/APP_BU/Module.Controller.js'></script>
<script type='text/javascript' src='JS/APP_BU/services.js'></script>
<script type='text/javascript' src='JS/APP_BU/ApsBuData.Controller.js'></script>
<script language="javascript">getTitleName();</script>
<script type='text/javascript'>
setLang("<%=up.get("lang")%>");
function goHelp(helpName, inputName){
var helpReturn;
var fixCon = 'employeeid in (select distinct apsassessor from tapstran_bu)';
var scope = angular.element($(""))
helpReturn = "__employeeid:employeeid,MEMPLOYEE@FULLNAME";
linkHelp_Return(helpName,helpReturn, fixCon);
}
function GoSave(){
var scope = angular.element($("form[name='cscform']")).scope();
scope.$apply(function(){
scope.save();
});
}
function postReturn(){
var scope = angular.element($("form[name='cscform']")).scope();
scope.$apply(function(){
scope.getApsData($("input[name='__employeeid']").val());
});
}
</script>
<style>
.larges{
width: 85%;
}
</style>
</head>
<body ng-controller='ApsBuData'>
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<div class="centered">
<form name="cscform" method="post">
<input type='hidden' name='__cmd' value>
<input type='hidden' name='__screen' value='APS360'>
<input type='hidden' name='__fixCon' value=''>
<script language="JavaScript" src="../JS/HOTKEY.js"></script>
<script language="javascript">
var swap = new swaplang();
document.write(Icons("APS360,กำหนดรอบการประเมินแบบ 360 องศา"));
</script>
<br>
<table class=" larges" style="width:100%;">
<tr>
<td class="header" colspan="2" ></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" class="inner larges" style="width:95%">
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td class='columnlabel'>EmployeeID</td>
<td class='columnobject'>
<input type='text' name='__employeeid'/>
<a href='javascript:goHelp("memployeehelp", "__employeeid")' style="text-decoration:none;">
<img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__empid_images" height="20" border="0" width="20" align="absmiddle">
</a>
<input type='text' name='MEMPLOYEE@FULLNAME' disabled>
</td>
</tr>
<tr>
<td colspan="2">
<table class='inframe' ng-if="apsbudata.length > 0">
<thead>
<tr>
<td class="row3">หัวข้อเรื่อง</td>
<td class="row3" ng-repeat="bu in apsbudata track by $index ">{{ bu.budesc }}</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="as in assdata">
<td>{{ as.desc }}</td>
<td ng-repeat='bu in apsbudata'>
<select ng-model='bu.scorelist[$parent.$index].score' ng-disabled='bu.apsstate == 0' style='width: 45px;'>
<option value="5.00">5</option>
<option value="4.00">4</option>
<option value="3.00">3</option>
<option value="2.00">2</option>
<option value="1.00">1</option>
<!--<option value="0.00">-</option>-->
<%-- <option ng-repeat='sel in selectnumber' value="{{sel.score}}"> {{ sel.score }}</option> --%>
</select>
<%-- <input type='text' ng-model='bu.scorelist[$parent.$index].score' ng-disabled='bu.apsstate == 0' style="width:50px;"> --%>
<input ng-model='bu.scorelist[$parent.$index].comment' ng-disabled='(bu.scorelist[$parent.$index].score!=1 && bu.scorelist[$parent.$index].score!=5)' type='text'>
</td>
</tr>
<tr>
<td>รวม</td>
<td ng-repeat='bu in apsbudata'>
<input type='text' value='{{ calScore($index) }}' ng-disabled='1 == 1'style='width:50px;'>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="PRR161_OPTION" scope="page" class="com.csc.library.system.Task"/>
<%
PRR161_OPTION.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)PRR161_OPTION.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var status = $("select[name='status']").val();
with(window.opener.document.cscform){
__STATUS_LIST.value = status;
}
window.close();
}
function goHelp(helpName,inputName) {
var helpReturn;
var filter = "";
with(document.cscform){
if (inputName=="__branch" ){
helpReturn="__branch:branchid,branchname:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
function linkHelp_Return(help, input, filter){
with(document.cscform){
var lang = window.opener.document.cscform.__language.value;
var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+filter+"&__checkVerify=off&__language=" +lang;
window.open(param,"Help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR004_OPTION, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW011997">Status Type</span>&nbsp;
</td>
<td width="475" align="left">
<select name="status" id="status">
<option value="ALL">ทั้งหมด</option>
<option value="ไม่ได้ประเมิน">ไม่ได้ประเมิน</option>
<option value="ประเมินไม่ครบ">ประเมินไม่ครบ</option>
<option value="ประเมินแล้ว">ประเมินแล้ว</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="APSR005" scope="page" class="com.csc.library.system.Task"/>
<%
APSR005.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)APSR005.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
CscCalendar car = new CscCalendar();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
with(window.opener.document.cscform){
__APSYEAR.value = year;
__SEQUENCE.value = seq;
__fixfiltermbu2.value = "bu2id in (select DISTINCT(subdata) from tapstran_bu where apsstate='1' and apsyear ='"+year+"' and sequence = '"+seq+"' and apsgroup='MBU2')";
}
window.close();
}
function goHelp(helpName,inputName) {
var helpReturn;
var filter = "";
with(document.cscform){
if (inputName=="__branch" ){
helpReturn="__branch:branchid,branchname:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
function linkHelp_Return(help, input, filter){
with(document.cscform){
var lang = window.opener.document.cscform.__language.value;
var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+filter+"&__checkVerify=off&__language=" +lang;
window.open(param,"Help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR005 Option, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW000717">Year</span>&nbsp;
</td>
<td width="475" align="left">
<input type="number" name="year" value="<%=car.getYear()%>" />
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW012559">Period</span>&nbsp;
</td>
<td width="475" align="left">
<label>
<input name="seq" value="1" type="radio" checked="checked">
รอบที่ 1
</label>
<label>
<input name="seq" value="2" type="radio">
รอบที่ 2
</label>
<label>
<input name="seq" value="3" type="radio">
รอบที่ 3
</label>
<label>
<input name="seq" value="4" type="radio">
รอบที่ 4
</label>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="APSR005" scope="page" class="com.csc.library.system.Task"/>
<%
APSR005.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)APSR005.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
CscCalendar car = new CscCalendar();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var bu = $("input[name='__bu2id']").val();
var budesc = $("input[name='budesc']").val();
var filter = "apsstate='1' and subdata = '"+bu+"' and apsyear ='"+year+"' and sequence = '"+seq+"' and apsgroup='MBU2' and asrscore ='5'";
if(bu != ""){
with(window.opener.document.cscform){
__APSYEAR.value = year;
__SEQUENCE.value = seq;
__BU2ID.value = bu;
__BUDESC.value = budesc;
__fixfiltertastran_bu.value = filter;
}
window.close();
}else{
alert("กรุณาเลือกหน่วยงาน");
}
}
function goHelp(helpName,inputName) {
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var helpReturn;
var filter = "bu2id in (select subdata from tapstran_bu where apsyear='"+year+"' and sequence='"+seq+"')";
with(document.cscform){
if (inputName=="__bu2id" ){
helpReturn="__bu2id:bu2id,budesc:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<input type="hidden" name="__fixCon">
<input type="hidden" name="__help">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR006 Option, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span>หน่วยงาน</span>&nbsp;
</td>
<td width="475" align="left">
<input name="__bu2id" size="10" maxlength="10" value="" onkeypress="chkSpecialKey(event);" onkeyup="sysIsEdit();" onblur="trimValue(this);" onfocus="this.select();" alt="รหัสหน่วยงาน 3" onmousemver="toolTip('รหัสหน่วยงาน 3')" onmouseout="toolTip()" type="text" readonly="true"><a href="javascript:goHelp('MBU2HELP','__bu2id');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu2id_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="http://localhost:8082/hr/IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu2id_image" align="absmiddle" height="20" width="20" border="0"></a>
<input type="text" name="budesc" readonly="true"/>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW000717">Year</span>&nbsp;
</td>
<td width="475" align="left">
<input type="number" name="year" value="<%=car.getYear()%>" />
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW012559">Period</span>&nbsp;
</td>
<td width="475" align="left">
<label>
<input name="seq" value="1" type="radio" checked="checked">
รอบที่ 1
</label>
<label>
<input name="seq" value="2" type="radio">
รอบที่ 2
</label>
<label>
<input name="seq" value="3" type="radio">
รอบที่ 3
</label>
<label>
<input name="seq" value="4" type="radio">
รอบที่ 4
</label>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="APSR005" scope="page" class="com.csc.library.system.Task"/>
<%
APSR005.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)APSR005.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
CscCalendar car = new CscCalendar();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var bu = $("input[name='__bu2id']").val();
var budesc = $("input[name='budesc']").val();
var filter = "asid in (select ASID from TASTRAN_BU where apsgroup='MBU2' and apsyear='"+year+"' and sequence='"+seq+"' and subdata='"+bu+"')";
if(bu != ""){
with(window.opener.document.cscform){
__APSYEAR.value = year;
__SEQUENCE.value = seq;
__BU2ID.value = bu;
__BUDESC.value = budesc;
__fixfiltermassess.value = filter;
}
window.close();
}else{
alert("กรุณาเลือกหน่วยงาน");
}
}
function goHelp(helpName,inputName) {
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var helpReturn;
var filter = "bu2id in (select subdata from tapstran_bu where apsyear='"+year+"' and sequence='"+seq+"')";
with(document.cscform){
if (inputName=="__bu2id" ){
helpReturn="__bu2id:bu2id,budesc:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<input type="hidden" name="__fixCon">
<input type="hidden" name="__help">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR007 Option, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span>หน่วยงาน</span>&nbsp;
</td>
<td width="475" align="left">
<input name="__bu2id" size="10" maxlength="10" value="" onkeypress="chkSpecialKey(event);" onkeyup="sysIsEdit();" onblur="trimValue(this);" onfocus="this.select();" alt="รหัสหน่วยงาน 3" onmousemver="toolTip('รหัสหน่วยงาน 3')" onmouseout="toolTip()" type="text" readonly="true"><a href="javascript:goHelp('MBU2HELP','__bu2id');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu2id_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="http://localhost:8082/hr/IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu2id_image" align="absmiddle" height="20" width="20" border="0"></a>
<input type="text" name="budesc" readonly="true"/>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW000717">Year</span>&nbsp;
</td>
<td width="475" align="left">
<input type="number" name="year" value="<%=car.getYear()%>" />
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW012559">Period</span>&nbsp;
</td>
<td width="475" align="left">
<label>
<input name="seq" value="1" type="radio" checked="checked">
รอบที่ 1
</label>
<label>
<input name="seq" value="2" type="radio">
รอบที่ 2
</label>
<label>
<input name="seq" value="3" type="radio">
รอบที่ 3
</label>
<label>
<input name="seq" value="4" type="radio">
รอบที่ 4
</label>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="APSR005" scope="page" class="com.csc.library.system.Task"/>
<%
APSR005.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)APSR005.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
CscCalendar car = new CscCalendar();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var bu = $("input[name='__bu2id']").val();
var budesc = $("input[name='budesc']").val();
var filter = "apsstate='1' and subdata = '"+bu+"' and apsyear ='"+year+"' and sequence = '"+seq+"' and apsgroup='MBU2' and asrscore ='1'";
if(bu != ""){
with(window.opener.document.cscform){
__APSYEAR.value = year;
__SEQUENCE.value = seq;
__BU2ID.value = bu;
__BUDESC.value = budesc;
__fixfiltertastran_bu.value = filter;
}
window.close();
}else{
alert("กรุณาเลือกหน่วยงาน");
}
}
function goHelp(helpName,inputName) {
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
var helpReturn;
var filter = "bu2id in (select subdata from tapstran_bu where apsyear='"+year+"' and sequence='"+seq+"')";
with(document.cscform){
if (inputName=="__bu2id" ){
helpReturn="__bu2id:bu2id,budesc:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<input type="hidden" name="__fixCon">
<input type="hidden" name="__help">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR008 Option, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span>หน่วยงาน</span>&nbsp;
</td>
<td width="475" align="left">
<input name="__bu2id" size="10" maxlength="10" value="" onkeypress="chkSpecialKey(event);" onkeyup="sysIsEdit();" onblur="trimValue(this);" onfocus="this.select();" alt="รหัสหน่วยงาน 3" onmousemver="toolTip('รหัสหน่วยงาน 3')" onmouseout="toolTip()" type="text" readonly="true"><a href="javascript:goHelp('MBU2HELP','__bu2id');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu2id_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="http://localhost:8082/hr/IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu2id_image" align="absmiddle" height="20" width="20" border="0"></a>
<input type="text" name="budesc" readonly="true"/>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW000717">Year</span>&nbsp;
</td>
<td width="475" align="left">
<input type="number" name="year" value="<%=car.getYear()%>" />
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW012559">Period</span>&nbsp;
</td>
<td width="475" align="left">
<label>
<input name="seq" value="1" type="radio" checked="checked">
รอบที่ 1
</label>
<label>
<input name="seq" value="2" type="radio">
รอบที่ 2
</label>
<label>
<input name="seq" value="3" type="radio">
รอบที่ 3
</label>
<label>
<input name="seq" value="4" type="radio">
รอบที่ 4
</label>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="APSR005" scope="page" class="com.csc.library.system.Task"/>
<%
APSR005.setChannel(request ,response);
ReportEntry screen=null;
screen=(ReportEntry)APSR005.process("ReportEntry",request.getParameter("__screen"));
UProfile uf=screen.getUProfile();
CheckNull chkNull = new CheckNull();
CscCalendar car = new CscCalendar();
%>
<html ng-app="myHR">
<head>
<title>ReportOption</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language='javascript' src='../JS/SCREEN.js'></script>
<script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script>
<script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" type="text/JavaScript">
function back(){
var year = $("input[name='year']").val();
var seq = $("input[name='seq']:checked").val();
with(window.opener.document.cscform){
__APSYEAR.value = year;
__SEQUENCE.value = seq;
__fixfiltermbu2.value = "bu2id not in (select DISTINCT(subdata) from tapstran_bu where apsstate='1' and apsyear ='"+year+"' and sequence = '"+seq+"' and apsgroup='MBU2')";
}
window.close();
}
function goHelp(helpName,inputName) {
var helpReturn;
var filter = "";
with(document.cscform){
if (inputName=="__branch" ){
helpReturn="__branch:branchid,branchname:tdesc";
}
}
linkHelp_Return(helpName, helpReturn, filter);
}
function linkHelp_Return(help, input, filter){
with(document.cscform){
var lang = window.opener.document.cscform.__language.value;
var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+filter+"&__checkVerify=off&__language=" +lang;
window.open(param,"Help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
<center>
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header"> APSR009 Option, <span swlang code="SW000128">Report Option</span>&nbsp;</td>
</tr>
<tr >
<td colspan="2" align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td height="12" colspan="2" class="blankspace"></td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW000717">Year</span>&nbsp;
</td>
<td width="475" align="left">
<input type="number" name="year" value="<%=car.getYear()%>" />
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<tr>
<td width="350" align="right">
<span swlang code="SW012559">Period</span>&nbsp;
</td>
<td width="475" align="left">
<label>
<input name="seq" value="1" type="radio" checked="checked">
รอบที่ 1
</label>
<label>
<input name="seq" value="2" type="radio">
รอบที่ 2
</label>
<label>
<input name="seq" value="3" type="radio">
รอบที่ 3
</label>
<label>
<input name="seq" value="4" type="radio">
รอบที่ 4
</label>
</td>
</tr>
<tr>
<td colspan="2" class="blankspace"></td>
</tr>
<TR>
<TD colspan="2" align="center">
<img src="../IMAGES/BUTTON/OK.gif" onClick="back()">
&nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()">
</TD>
</TR>
<tr >
<td colspan="2" class="blankspace"></td>
</tr>
</table>
</td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.session.*"%>
<jsp:useBean id="APS_CONFIG" class="com.csc.library.system.Task" scope="page" />
<%APS_CONFIG.setChannel(request, response);
//APS_CONFIG.setKeepCache(false);
UIManager screen = (UIManager) APS_CONFIG.process("SingleEntry", "APS_CONFIG");
%>
<html>
<head>
<title>Tax Deductable&Exemptible Allowances</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/MENU.css" rel="stylesheet" type="text/css">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="JavaScript" src="../JS/VIEWCALENDAR.js"></script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function checkCF() {checkConfirm();}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//-----------> start copy to screen ----------------->
function Trim(szStr) {
return TrimLeft(TrimRight(szStr));
}
function TrimLeft(szStr) {
for(var i=0; i<szStr.length; i++) {
if(szStr.charAt(i) == ' ')
szStr = szStr.substring(i-- + 1, szStr.length);
else
break;
}
return szStr;
}
function TrimRight(szStr) {
for(var i=szStr.length-1; i>=0; i--) {
if(szStr.charAt(i) == ' ')
szStr = szStr.substring(0, i);
else
break;
}
return szStr;
}
function nullField(idx){
with(document.cscform){
var fieldName = new Array();
var returnV=false;
if(__notNull.value != ""){fieldName= __notNull.value.split(",");}
}
for(i=0;i<fieldName.length;i++){
tempValue="__mconfig$"+fieldName[i];
//alert(tempValue);
if(tempValue ==document.cscform.elements[idx].name){
returnV=true;
}
}
return returnV;
}
function nullCheck(){
for (var i=0;i<document.cscform.length;i++){
if(nullField(i)){
if((document.cscform.elements[i].value==null)||(document.cscform.elements[i].value=="")){
alert(MyCode[0]);
document.cscform.elements[i].focus();
return false;
}
// }
}//else{
//}
}
return true;
}
//------------------------------ cscform NULL check ----------------------------------------------->
function saveData(){
if(nullCheck()){
with(document.cscform){
var oldValue = Trim(__effectiveid.value);
var newValue = __mconfig$effectiveid.value;
//newValue= Trim(newValue.substring(0,newValue.indexOf(" ")));
//alert("OLD= "+oldValue);
//alert("NEW="+newValue);
if (oldValue!=newValue){
aCon=confirm(MyCode[1]);
if (aCon==true) {
save();
}
}
else{
alert(MyCode[2]);
}
}//End with
}
}
function updateData(){
if(nullCheck()){
with(document.cscform){
var oldValue = Trim(__effectiveid.value);
var newValue = __mconfig$effectiveid.value;
//newValue= Trim(newValue.substring(0,newValue.indexOf(" ")));
//alert("OLD="+oldValue);
//alert("NEW="+newValue);
if (oldValue!=newValue){
alert(MyCode[9]);
}
else{
aCon=confirm(MyCode[1]);
if (aCon==true) {
__cmd.value="save";
submit();
}
}
}//End with
}
}
function GoSave(){ confirmSave(); }
function GoDelete(){ edelete(); }
function GoSearch(){ search(); }
function GoUpdate(){
update();
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif')">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<div class="centered">
<form name="cscform" method="post" >
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input name="__cmd" type="hidden" value="">
<input name="__screen" type="hidden" value="APS_CONFIG">
<input name="__help" type="hidden" value="">
<input type="hidden" name="__calendar">
<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'>
<input name="__effectiveid" type="hidden" value="<%=screen.getDataLabel("mconfig$effectiveid")%>">
<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
<script language="javascript">
var titlename=swap2String('System config');
document.write(Icons("APS_CONFIG,"+titlename));
</script>
<br>
<br>
<br>
<div align="center">
<table>
<tr >
<td class="header">APS_CONFIG, <script language='javascript'>swapLang('System config');</script>&nbsp; </td>
</tr>
<tr >
<td >
<table cellpadding="0" cellspacing="0" class="inner">
<tr>
<td class="blankspace" colspan="3"></td>
</tr>
<tr>
<td nowrap BGCOLOR="#EFEFEF" CLASS="columnlabelwidth"><%=screen.getLabel("mconfig$YEAR_360")%></td>
<td colspan="2"><%=screen.getInput("mconfig$YEAR_360")%></td>
</tr>
<tr>
<td nowrap BGCOLOR="#EFEFEF" CLASS="columnlabelwidth"><%=screen.getLabel("mconfig$SEQUENCE_360")%></td>
<td colspan="2"><%=screen.getInput("mconfig$SEQUENCE_360")%></td>
</tr>
<tr>
<td colspan="3" class="blankspace">&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0">
<tr >
<td class="columnlabel">&nbsp;</td>
<td >
<script language="javascript">printEditCheck('<%=screen.getDataLabel("mconfig$edit_by")%>','<%=screen.getDataLabel("mconfig$edit_date")%>','<%=screen.getDataLabel("mconfig$edit_time")%>','<%=screen.getDataLabel("mconfig$approve")%>');
</script>&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="blankspace" colspan="3"></td>
</tr>
</table> </td>
</tr>
<tr>
<td class="bottom" >
</td>
</tr>
</table>
</div>
<!----------BEGIN CSC ENDING ZONE ------------------------>
<%=screen.endJSP()%>
<!----------END CSC ENDING ZONE -------------------------->
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*"%>
<jsp:useBean id="AS000" class="com.csc.library.system.Task" scope="page" />
<%AS000.setChannel(request, response);%>
<%HelpEntry screen = (HelpEntry) AS000.process("HelpEntry", request.getParameter("__helpName"));
%>
<%
screen.process();
%>
<html>
<head>
<title><%=screen.getInquiry().getCurrentDbRecord().getDescription()%></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
function back(unit){
with(window.opener.document.cscform){
locateId.value =unit;
}
window.close();
}
//-->
</script>
</head>
<%
String helpReturn="";
if(request.getParameter("__helpReturn")!=null){
helpReturn=request.getParameter("__helpReturn");
}
%>
<body leftmargin="0" topmargin="0">
<form name="cscform" method="post" action="AS000.jsp">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__goPage" value="">
<input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>">
<input type="hidden" name="__helpReturn" value="<%=helpReturn%>">
<input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>">
<input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>">
<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<br>
<table height="" align="center" cellpadding="0" cellspacing="0" class="large">
<tr bgcolor="#3366CC">
<td height="20" class="header"><%=screen.getInquiry().getCurrentDbRecord().getDescription()%>&nbsp;</td>
</tr>
<tr bgcolor="#3366CC">
<td> <table class="maxsize" border="1" cellspacing="1" cellpadding="1">
<tr>
<td><table class="maxsize" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" class="blankspace" ></td>
</tr>
<tr>
<td width="15%"> <div align="right">
<script language="javascript">swapLang('Order By');</script>
&nbsp; </div></td>
<td><%=screen.getTagOrder()%></td>
<td width="20%"> <div align="right">
<script language="javascript">swapLang('Search By');</script>
&nbsp;</div></td>
<td><%=screen.getTagSearchBy()%></td>
</tr>
<tr>
<td><div align="right">
<script language="javascript">swapLang('Condition');</script>
&nbsp; </div></td>
<td><%=screen.getTagConSearch()%></td>
<td> <div align="right">
<script language="javascript">swapLang('Key Value');</script>
&nbsp;</div></td>
<td><%=screen.getTagValueSearch()%> <a href="javascript:search();"><img SRC="../IMAGES/BUTTON/MAIN/SEARCH20.gif" width="20" height="20" border="0" align="middle"></a></td>
</tr>
<tr>
<td colspan="4" class="blankspace" ></td>
</tr>
<tr>
<td colspan="4"><div align="right"><%=screen.getPageTag()%></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="large">
<tr>
<td class="normal"><div align="center"><%=screen.printTableHTML()%></div></td>
</tr>
</table>
<div align="center"></div>
</form>
</body>
</html>
<%@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.*,com.csc.library.report.ReportUDF" %>
<jsp:useBean id="AS02" class="com.csc.library.system.Task" scope="page"/>
<%
AS02.setChannel(request,response);
UIManager screen = (UIManager) AS02.process("SingleEntry","AS002");
screen.referLangOff();
%>
<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 language="JavaScript" src="../JS/SCREEN.js"></script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="javascript">
<!--
function GoSave() { confirmSave(); }
function GoDelete(){ edelete(); }
function GoSearch(){ search(); }
function GoUpdate(){ update(); }
function checkCF(){ checkConfirm(); }
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function showHelp(page){
window.open(page,"Help","left=150,top=150,width=700,height=500,toolbar=no,status=no,scrollbars=no");
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden"name="__screen" value="AS02">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__fixCon" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<input name="__notNull" type="hidden" value="<%=screen.getRequire()%>">
<input name="__companyid" type="hidden" value="<%=screen.getUProfile().get("companyid")%>">
<script language="JavaScript">document.write(Icons());</script>
<br>
<div align="center">
<table cellpadding="0" cellspacing="0">
<tr >
<td class="header">AS02,
<script language="javascript">swapLang('Assess Group Table Record');</script>
&nbsp;</td></tr>
<tr >
<td colspan="2">
<div align="center">
<table cellpadding="0" cellspacing="0" >
<tr>
<td colspan="3"></td>
</tr>
<tr valign="baseline">
<td width="162" class="columnlabel"><%=screen.getLabel("asgid")%></td>
<td width="406" colspan="2" > <%=screen.getInput("asgid")%>
</td>
</tr>
<tr valign="middle">
<td class="columnlabel"><%=screen.getLabel("tdesc")%></td>
<td colspan="2" > <%=screen.getInput("tdesc")%> </td>
</tr>
<tr valign="middle">
<td class="columnlabel"><%=screen.getLabel("edesc")%></td>
<td colspan="2" > <%=screen.getInput("edesc")%> </td>
</tr>
<tr >
<td colspan="3" class="blankspace"></td>
</tr>
<TR>
<TD colspan="3"><div align="center"></div></TD>
</TR>
<tr >
<td colspan="3" class="blankspace"></td>
</tr>
</table>
</div></td>
</tr>
<tr bordercolor="0069B3">
<td class="bottom"></td>
</tr>
</table>
</div>
<!----------BEGIN CSC ENDING ZONE ------------------------>
<%=screen.endJSP()%>
<!----------END CSC ENDING ZONE -------------------------->
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment