REC313_PHATRA.jsp 25.8 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653
<%@ page import="com.csc.library.entry.*,com.csc.library.utilities.*,com.csc.library.session.*"  contentType="text/html;charset=UTF-8"%>
<%@page import="com.csc.library.components.*"%>
<jsp:useBean id="REC312" scope="page" class="com.csc.library.system.Task"/>
<jsp:useBean id="REC312HELP" scope="page" class="com.csc.library.system.Task"/>
<jsp:useBean id="RCR011_CPN" scope="page" class="com.csc.library.system.Task"/>
<%
		REC312.setChannel(request ,response);
		REC312HELP.setChannel(request ,response);
		UIManager screen=(UIManager) REC312.process("SingleEntry","REC312");
		HelpEntry screen2=(HelpEntry) REC312HELP.process("HelpEntry","REC311HELP");

		CheckNull chk=new CheckNull();

		String applicantid = chk.chkNullString(request.getParameter("applicantid"));

		screen2.getInquiry().setFilter(" applicantid = '"+applicantid+"' ");

		screen2.process();
		screen2.nextRec();

		CscCalendar currentDate =  new CscCalendar();
		
		InitialEnvironment en = new InitialEnvironment("GLOBAL");
		String email = "";
		email = en.getValue("mailauth-username");

		String reportPath="",dbName="",comTname="",comEname="",companyid="",userId=""
		,app_name="",schemaName="",password="",userlevel="",format_date="";

		if(request.getParameter("__cmd")==null && !chk.chkNullString(request.getParameter("__cmd")).equals("save")){		
			RCR011_CPN.setChannel(request ,response);	 
			ReportEntry screen1=(ReportEntry) RCR011_CPN.process("ReportEntry", "RCR001");
			UProfile uf=screen1.getUProfile();
			screen1.process();	
			ThaiUtilities th=new ThaiUtilities();

			reportPath=screen1.getReportPath();
			dbName=uf.getDbName();
			comTname=th.ASCII2Unicode(uf.get("com_tname"));
			comEname=uf.get("com_ename");
			companyid=uf.get("companyid");
			userId=uf.getUserId();
			app_name=uf.get("appname");
			schemaName=uf.getSchemaName();
		//	password=uf.getPassword();
			userlevel=uf.getLevel();
			format_date=uf.get("formatdate");
		}

	//	out.print(screen.getUProfile().toString());


%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<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/SCREEN.js'></script>
<script type='text/javascript' src='../JS/RECSCREEN.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language='javascript' src='../JS/EMPLOYEE.js'></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="javascript">getTitleName();</script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script>
<script type='text/javascript' src='/hr/dwr/engine.js'></script>
<script type='text/javascript' src='/hr/dwr/util.js'></script>
<script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script>
<script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script>

<script language="JavaScript">


function GoSave() {
	 with(document.cscform){
		if(__transferstatus[0].checked==true){
			if(__employeeid.value==""){
				alert(swap2String("Please insert Employee ID"));
				getLatestEmpid();
				return;
			}
		}
		bCon=confirm(MyCode[1]);
		if (bCon==true)	{
			__confirm.value="s";
			__cmd.value = "save";
			submit();	
			setTimeout("window.opener.document.cscform.__cmd.value = 'ack';",1500);
			setTimeout("window.opener.document.cscform.submit();",2000);
			//window.close();
		}
	}
}

function enable(){
	with(document.cscform){
		if(__transferstatus[0].checked==true){
			reason.disabled=true;
			reason.value="";
			__employeeid.disabled=false;	
			__employeeid.focus();	
		}
		if(__transferstatus[1].checked==true){
			__employeeid.disabled=true;
			__employeeid.value="";
			reason.disabled=false;			
			reason.focus();	
		}
	}
}

var init = null;
var idTemp="";
var isSave=false;

function initialization(empid,save) {
	idTemp=empid;
	isSave= save;
  if(init) clearTimeout(init);
  init = setTimeout("chkEmpid()", 1000);
}

function chkEmpid(){
	SearchDWR.searchAll(new Array("Memployee","fname,efname","employeeid='"+idTemp+"'",""),showExist);
}
function getLatestEmpid(){
	SearchDWR.searchAll(new Array("Memployee","employeeid,fname","","employeeid desc"),setId);
}

function goView(appid){
//	var  pam="REC201V.jsp?__help=__applicantid$"+appid+";&__cmd=search";
	var	 pam="REC201.jsp?__help=__applicantid$"+appid+";&__cmd=search&__setpage=view";
	window.open(pam,"Help");
}

var showExist = function(data){
	if(data.length>0){
		if(getLang()=="tha")
			dwr.util.setValue("fullname",swap2String("ID alreadey exist")+" ("+data[0][0]+")");
		else
			dwr.util.setValue("fullname",swap2String("ID alreadey exist")+" ("+data[0][1]+")");
	}
	else{
		getLatestEmpid();
		//dwr.util.setValue("fullname","");
		if(isSave)GoSave();
	}
}
var setId = function(data){
	if(data.length>0){
		
		dwr.util.setValue("fullname",swap2String("Latest ID is")+" "+data[0][0]+" "+data[0][1]);
	}
	else{
		dwr.util.setValue("fullname","");
	}
}

function sendmail(){
		with(document.cscform){
	var pam="";
	var to ="roxy@hotmail.com";
	var from = "";
	var time="08.30";
	var subject = "เรียน คุณ"+__aname.value+" กรุณาเตรียมเอกสารไฟล์ที่แนบ (ดังต่อไปนี้) เพื่อเซ็นสัญญากับทางบริษัท";
	pam="REC604.jsp?&__mail_to="+to+"&__mail_from="+__from.value+"&subject="+subject+"&aname="+__aname.value+"&position=&date="+__date.value+"&time="+time+"&place=&room=&type=tran";
				window.open(pam,"","left=150,top=150,width=800,height=500,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
		}
}
function sendinternalmail(){
				with(document.cscform){
	var pam="";
	var to ="";
	var from = "";
	var time="08.30";
	var subject = "Internal Mail";
	pam="REC604.jsp?&__mail_to="+to+"&__mail_from="+from+"&subject="+subject+"&aname="+__aname.value+"&position=&date="+__date.value+"&time="+time+"&place=&room=&type=internal";
				window.open(pam,"","left=150,top=150,width=800,height=500,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
		}
}
function setFormatDatePayroll(Obj,pattern){
	if(pattern=="DDMMYYYY"){
		var dateArr = Obj.value.split("-");
			if(dateArr[0].length==4){
				Obj.value = dateArr[2]+"-"+dateArr[1]+"-"+dateArr[0];
			}
	}
	
}

function getFormatDatePayroll(Obj,pattern){
	if(pattern=="YYYYMMDD"){
		var dateArr = Obj.value.split("-");
			if(dateArr[0].length==2){
				return dateArr[2]+"-"+dateArr[1]+"-"+dateArr[0];
			}
	}
}
function BforPreviw(){
	with(document.cscform){
	var appid1 = __applicantid.value;
	if(__print[0].checked==true){
		if(__president_name.value == ""){
				alert(MyCode[0]);
				__president_name.focus();
		}else if(__president_position.value == ""){
			alert(MyCode[0]);
				__president_position.focus();
		}else if(__head_name.value == ""){
			alert(MyCode[0]);
				__head_name.focus();
		}else if(__head_position.value == ""){
		alert(MyCode[0]);
				__head_position.focus();
		}else if(__salary.value == ""){
			alert(MyCode[0]);
				__salary.focus();
		}else if(__non_compet.value == ""){
			alert(MyCode[0]);
				__non_compet.focus();
		}else{
				goPreview(appid1);	
 		}
	}else{
				goPreview(appid1);	
		}
	}
}
function goPreview(appid){ //
	with(document.cscform){
		var com_ename				= __com_ename.value;
		var com_tname				= __com_tname.value;
		var applicantid				= __applicantid.value;
		var print						= __print.value;
	//	var emp_type					= __emp_type.value;
		var emp_type					= 2;
		var print_lang					= __print_lang.value;
		var president_name		= __president_name.value;
		var president_position		= __president_position.value;
		var head_name				= __head_name.value;
		var head_position			= __head_position.value;
		var start_date				= __start_date.value;
		var prodate					= __prodate.value;
		var pro_every					= __pro_every.value;
		var salary						= __salary.value;
		var cola							= __cola.value;
		var non_compet				= __non_compet.value;
		var branch_tdesc				= __branch_tdesc.value;
		var branch_edesc				= __branch_edesc.value;
		var probation					= __probation.value;
		var chk_cola					= __chk_cola.value;

		var tmp = "";
		
			if(__print[0].checked==true){
			if(probation=="1" && chk_cola=="1"){
				if(__print_lang[0].checked==true){
					tmp="RCR017_T";
				}else if(__print_lang[1].checked==true){
					tmp="RCR017_E";
				}
			}else if(probation=="1" && chk_cola=="0"){
				if(__print_lang[0].checked==true){
					tmp="RCR019_T";
				}else if(__print_lang[1].checked==true){
					tmp="RCR019_E";
				}
			}else if(probation=="0" && chk_cola=="1"){
				if(__print_lang[0].checked==true){
					tmp="RCR020_T";
				}else if(__print_lang[1].checked==true){
					tmp="RCR020_E";
				}
			}else if(probation=="0" && chk_cola=="0"){
				if(__print_lang[0].checked==true){
					tmp="RCR021_T";
				}else if(__print_lang[1].checked==true){
					tmp="RCR021_E";
				}
			}
			}else if(__print[1].checked==true){
				if(__print_lang[0].checked==true){
					tmp="RCR016_T";
				}else if(__print_lang[1].checked==true){
					tmp="RCR016_E";
				}
			}

	//	 alert("tmp = "+tmp);
	//	 alert("start_date = "+start_date);
		
		if(tmp!=""){
                   		
				var path = "<%=reportPath%>";
				var a=path.substring(0,path.length)+
				"?uprofile$dbname=<%=dbName%>"+
				"&com_tname=<%=comTname%>"+
				"&com_ename=<%=comEname%>"+
				"&uprofile$companyid=<%=companyid%>"+
				"&uprofile$userid=<%=userId%>"+
				"&uprofile$lang=THA"+
				"&uprofile$appname=<%=app_name%>"+
				"&uprofile$schemaname=<%=schemaName%>"+
				"&uprofile$emp_level=<%=userlevel%>"+
				"&uprofile$formatdate=<%=format_date%>"+
				"&__filtercon=mapptran.applicantid = '"+applicantid+"' "+
				"&__screen=RCR011_CPN"+
				"&__REPORT_XML=RCR011_CPN"+
				"&__reportname=Job Application Form"+
				"&helpParam=applicantid"+
				"&helpName=MAPPLICANTHELP"+
				"&mainHelp=MAPPLICANTHELP"+
				"&thaiHeader=สัญญาจ้างงาน"+
				"&engHeader=Job Application Form"+
				"&__startPage=1"+
				"&__com_tname="+com_tname+
				"&__com_ename="+com_ename+
				"&__president_name="+president_name+
				"&__president_position="+president_position+
				"&__head_name="+head_name+
				"&__head_position="+head_position+
				"&__start_date="+start_date+
				"&__prodate="+prodate+
				"&__pro_every="+pro_every+
				"&__salary="+salary+
				"&__cola="+cola+
				"&__non_compet="+non_compet+
				"&__branch_edesc="+branch_edesc+
				"&__branch_tdesc="+branch_tdesc+
				"&__conditionid="+
				"&__classname=ReportResultSet"+
				"&__mmxml="+
				"&__expxml="+
				"&__export_type=EXPORT"+
				"&__file_type=.pdf"+
				"&mem=mapplicant.applicantid"+
				"&__template="+tmp+".jasper$"+
				"&__cmd="+
				"&__orderText="+
				"&__language=THA"+
				"&__groupText="+
				"&__reportHeader=สัญญาจ้างงาน";
		    //alert(a);
			window.open(a);
			//setTimeout("goPreview2()",5000);
		   }else{
			   alert("กรุณาเลือกเงื่อนไข");
		   }
			
		  
	}
}
function reset(){
	with(document.cscform){
			window.close();
	}
	}

function waitingtransfer(){
			window.opener.document.cscform.submit();
			window.close();
}

function chkChange(value){
	 with(document.cscform){
		if(value == "0"){
			document.getElementById("chkProbation").style.display = "";
			__probation.value = "1";
		}else if(value == "1"){
			document.getElementById("chkProbation").style.display = "none";
			__probation.value = "0";
		}
	
	}
}
function chkChange2(value){
	 with(document.cscform){
		if(value == "0"){
			document.getElementById("chkSalary").style.display = "";
			__chk_cola.value = "1";
		}else if(value == "1"){
			document.getElementById("chkSalary").style.display = "none";
			__chk_cola.value = "0";
		}
	
	}
}
function chkDefaultValue(){
			with(document.cscform){
			var president ="";
			var position ="";
			if(__president_name.value ==""){
			if(__language.value=="tha"){
					if(__branch.value=="001" || __branch.value=="002" ){
					__president_name.value ="กฤติยา วีรบุรุษ";
					}else if(__branch.value=="003"){
					__president_name.value ="ยุทธพล  ลาภละมูล";
					}else if(__branch.value=="004"){
					__president_name.value ="ชาญศักดิ์  ธนเตชา";
					
					}
			}else{
					if(__branch.value=="001" || __branch.value=="002" ){
						__president_name.value ="Mr.Krittiya  Veeraburus";
					}else if(__branch.value=="003"){
						__president_name.value ="Mr.Yuthapol Laplamool";
					}else if(__branch.value=="004"){
					__president_name.value ="Mr.Charnsak Thanataecha";
					}
				}
			}

			if(__president_position.value ==""){
				if(__language.value=="tha"){
					if(__branch.value=="001" || __branch.value=="002" ){
					__president_position.value ="กรรมการผู้จัดการใหญ่";
					}else if(__branch.value=="003" || __branch.value=="004"){
					__president_position.value ="กรรมการผู้จัดการ";
					}
			}else{
					if(__branch.value=="001" || __branch.value=="002" ){
					__president_position.value ="President";
				
					}else if(__branch.value=="003" || __branch.value=="004"){
				
					__president_position.value ="Managing Director";
					}
				}
			}
}
}

function chkLang(value){
	with(document.cscform){
	if(value =="T"){
		if(__branch.value=="001" || __branch.value=="002" ){
					__president_name.value ="กฤติยา วีรบุรุษ";
					__president_position.value ="กรรมการผู้จัดการใหญ่";
					}else if(__branch.value=="003"){
					__president_name.value ="ยุทธพล  ลาภละมูล";
					__president_position.value ="กรรมการผู้จัดการ";
					}else if(__branch.value=="004"){
					__president_name.value ="ชาญศักดิ์  ธนเตชา";
					__president_position.value ="กรรมการผู้จัดการ";
					}
					__head_name.value ="ไพรัช ธนาชัยแสง";
					__head_position.value ="ผู้อำนวยการ-รักษาการหัวหน้าฝ่ายทรัพยากรบุคคลธุรกิจตลาดทุน";
	}else if(value=="E"){
		if(__branch.value=="001" || __branch.value=="002" ){
						__president_name.value ="Mr.Krittiya  Veeraburus";
							__president_position.value ="President";
					}else if(__branch.value=="003"){
						__president_name.value ="Mr.Yuthapol Laplamool";
						__president_position.value ="Managing Director";
					}else if(__branch.value=="004"){
					__president_name.value ="Mr.Charnsak Thanataecha";
					__president_position.value ="Managing Director";
					
					}
					__head_name.value ="Pirat Thanachaisang";
					__head_position.value ="VP-Active Head of Human Resource";
		}
	}
}
</script>
<style type="text/css">
<!--
span#fullname {
	color: #FF0000;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="chkDefaultValue();">
 <form name="cscform" method="post" action="REC312_PHATRA.jsp">
	 

<!----------BEGIN CSC INITIAL ZONE ------------------------>

<%=screen.InitialVariable()%>

<!----------END CSC INITIAL ZONE -------------------------->

	  <input type="hidden"name="__screen"  value="REC312"> 
	  <input type="hidden" name="__help"  size="50" value="">
	  <input name="__fixCon" type="hidden" value="">
	  <input type="hidden" name="__cmd"  value="">
	  <!-- <input type="hidden" name="__confirm"  value=""> -->
	  <input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>"> 
	  <input type="hidden" name="__empfullname" value="<%=screen.getUProfile().get("fullname")%>">
	  <input type="hidden" name="__com_tname" value="<%=screen.getUProfile().get("com_tname")%>">
	  <input type="hidden" name="__com_ename" value="<%=screen.getUProfile().get("com_ename")%>">
	  <input type="hidden" name="__referPage" value="">
	  <input type="hidden" name="__notNull" value="">
   	 <input type="hidden" name="__calendar">        
   	 <input type="hidden" name="__from" value="<%=email%>">        
   	 <input type="hidden" name="__date" value="<%=currentDate.getDD() + " " +currentDate.getThaiLongMonth() + " " + currentDate.getYear()%>">        
    <input type="hidden" name="__language"	value ="<%=screen.getUProfile().get("lang")%>">
    <input type="hidden" name="__aname"	value ="<%=screen2.getDataLabel("MAPPLICANT","FNAME")+" " + screen2.getDataLabel("MAPPLICANT","LNAME")%>">
	<input type="hidden" name="__applicantid" value="<%=request.getParameter("applicantid")%>">
	<input type="hidden" name="__emp_type" value="<%=screen2.getDataLabel("MREQUEST","EMP_TYPE")%>">
	<input type="hidden" name="__branch_tdesc" value="<%=screen2.getDataLabel("MBRANCH","TDESC")%>">
	<input type="hidden" name="__branch_edesc" value="<%=screen2.getDataLabel("MBRANCH","EDESC")%>">
     <input type="hidden" name="__probation" value="1">
	<input type="hidden" name="__chk_cola" value="1">
	<input type="hidden" name="__branch" value="<%=screen2.getDataLabel("MREQUEST","BRANCH")%>">
      <script language="javascript">
			getInputFormatDate();
			searchApplicantid('<%=request.getParameter("applicantid")%>');	  
	  </script>  

	 <% if(request.getParameter("__cmd")!=null && request.getParameter("__cmd").equals("save") ){%>
		<div class="complete" id="msgstatus" align="center">
		<p>
				<img src="../WELFARE/IMAGES/WAITING.gif" ><br>
				Waiting......
		</p>
		</div>
		<script language="javascript">setTimeout(waitingtransfer,5000);</script>
<%}else{%>

	 <div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>

	 <div class="centered"> <br>

		<table width="100%"  align="center" cellpadding="0" cellspacing="0">
		  <tr class="header"> 
			<td  class="header" align="right">REC313_PHATRA, 
			  <script language="javascript">swapLang('Option Report');</script></td>
		  </tr>
		
		  <tr > 
			<td colspan="2"> 
			  <div align="center"> 
				<center>
				  <table  cellspacing="0" cellpadding="0"  width="100%">
					<tr>
						<td align="left" nowrap class="columnlabel" colspan="2"><div nowrap align="left"><input type="radio" name="__print" value="1" checked>&nbsp;<script language="javascript">swapLang('Employment Agreement');</script></div></td>
					</tr>
					<tr>
						<td align="right" nowrap ><script language="javascript">swapLang('Name of an authorized person');</script>&nbsp;*</td>
						<td>&nbsp;<input type="text" name="__president_name" value="<%=chk.chkNullString(request.getParameter("__authorize_name"))%>" size="50"/></td>
					</tr>
					<tr>
						<td align="right" nowrap ><script language="javascript">swapLang('Position of an authorized person');</script>&nbsp;*</td>
						<td>&nbsp;<input type="text" name="__president_position" value="<%=chk.chkNullString(request.getParameter("__authorize_position"))%>" size="50"/></td>
					</tr>
					<tr>
						<td><div  align="right" nowrap><script language="javascript">swapLang('Name of an authorized person');</script>(Head of HR)&nbsp;*</div></td>
						<td >&nbsp;<% if((screen.getUProfile().get("lang")).equals("tha")){ 
												%><input type="text" name="__head_name" value="<%=chk.chkNullString(request.getParameter("__authorize_name"),"ไพรัช ธนาชัยแสง")%>" size="50"/><%}else{%>
												<input type="text" name="__head_name" value="<%=chk.chkNullString(request.getParameter("__authorize_name"),"Pirat Thanachaisang")%>" size="50"/>
												<%}%>
												</td></td>
					</tr>
					<tr>
						<td align="right" nowrap><div nowrap><script language="javascript">swapLang('Position of an authorized person');</script>&nbsp;*</div></td>
						<td>&nbsp;<% if((screen.getUProfile().get("lang")).equals("tha")){%><input type="text" name="__head_position" value="<%=chk.chkNullString(request.getParameter("__authorize_position"),"ผู้อำนวยการ-รักษาการหัวหน้าฝ่ายทรัพยากรบุคคลธุรกิจตลาดทุน")%>" size="50"/><%}else{%>
						<input type="text" name="__head_position" value="<%=chk.chkNullString(request.getParameter("__authorize_position"),"VP-Active Head of Human Resource")%>" size="50"/>
						<%}%></td>
					</tr>
					<tr>
                      <td align="right" nowrap ><script language="javascript">swapLang('Starting Date');</script>&nbsp;*</td>
                      <td nowrap class="columnData">&nbsp;<input type="text" name="__start_date"  onKeyPress="chkIntegerOfDate(this.value);" onKeyUp="sysIsEdit();formatDate(this);" dir="" onBlur="chkInputDate(this);" onFocus="this.select();"  value="<%=new CscCalendar().getDDMMYYYY()%>" size="10"><a href="javascript:viewCal('__start_date')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image19" width="20" height="20" border="0" align="absmiddle"></a></td>
                    </tr>
					<tr>
						<td align="right" nowrap ><script language="javascript">swapLang('Period of probation');</script>&nbsp;*</td>
						<td>
						<%if((screen.getUProfile().get("lang")).equals("tha")){%>
						<input type="radio" name="__chkProbation" value="0" onclick="chkChange('0');" checked>&nbsp; มี&nbsp;<input type="radio" name="__chkProbation" value="1" onclick="chkChange('1');">&nbsp;ไม่มี
						<%}else{%>
						<input type="radio" name="__chkProbation" value="0" onclick="chkChange('0');" checked>&nbsp;Yes&nbsp;<input type="radio" name="__chkProbation" value="1" onclick="chkChange('1');">&nbsp; No
						<%}%>
						<br>
						<div id="chkProbation">&nbsp;<input type="text" name="__prodate" value="<%=chk.chkNullString(request.getParameter("__prodate"),"3")%>" size="10" onkeypress="chkInteger()" />
							<select name="__pro_every">
								<option value="D"><script language="javascript">swapLang('Day');</script></option>
								<option value="M" selected><script language="javascript">swapLang('Month');</script></option>
							</select>
						</div>
						</td>
					</tr>
					<tr>
						<td align="right" nowrap><script language="javascript">swapLang('COLA');</script>&nbsp;*</td>
						<td>
						<%if((screen.getUProfile().get("lang")).equals("tha")){%>
						<input type="radio" name="__chkCola" value="0" onclick="chkChange2('0');" checked>&nbsp; มี&nbsp;<input type="radio" name="__chkCola" value="1" onclick="chkChange2('1');">&nbsp;ไม่มี
						<%}else{%>
						<input type="radio" name="__chkCola" value="0" onclick="chkChange2('0');" checked>&nbsp;Yes&nbsp;<input type="radio" name="__chkCola" value="1" onclick="chkChange2('1');">&nbsp; No
						<%}%><br>
						<div id="chkSalary">
						&nbsp;<input type="text" name="__cola" value="<%=chk.chkNullString(request.getParameter("__cola"),"1,500.00")%>" onkeypress="chkSpecialStr(event); checkWordNumber(this.value);" onfocus="callDelComma(this);" onblur="checkNumFloat(this,0.00,999999.99, 2);" size="10"/>&nbsp;<script language="javascript">swapLang('Baht');</script>
						</div></td>
					</tr>
					
					<tr>
						<td align="right" nowrap><script language="javascript">swapLang('Salary');</script>&nbsp;*</td>
						<td>&nbsp;<input type="text" name="__salary" value="<%=chk.chkNullString(request.getParameter("__salary"))%>" onkeypress="chkSpecialStr(event); checkWordNumber(this.value);" onfocus="callDelComma(this);" onblur="checkNumFloat(this,0.00,999999.99, 2);" size="10"/>&nbsp;<script language="javascript">swapLang('Baht');</script></td>
					</tr>
					<tr>
						<td align="right" nowrap ><script language="javascript">swapLang('Non Competing Recurring');</script>&nbsp;*</td>
						<td>&nbsp;<input type="text" name="__non_compet" value="<%=chk.chkNullString(request.getParameter("__non_compet"))%>" size="10" onkeypress="chkInteger()"/>&nbsp;<script language="javascript">swapLang('Month');</script></td>
					</tr>
					<tr>
						<td align="left" nowrap class="columnlabel" colspan="2"><div nowrap align="left"><input type="radio" name="__print" value="2">&nbsp;<script language="javascript">swapLang('Additional Terms and conditions attached to the Employment Agreement');</script></div></td>
					</tr>
					<tr>
						<td align="right" nowrap ><script language="javascript">swapLang('Language Type');</script>&nbsp;*</td>
						<td>&nbsp;<input type="radio" name="__print_lang" value="T" checked onclick="chkLang('T')">&nbsp;<script language="javascript">swapLang('Thai');</script>&nbsp;&nbsp;&nbsp;
						<input type="radio" name="__print_lang" value="E" onclick="chkLang('E');">&nbsp;<script language="javascript">swapLang('Eng');</script></td>
					</tr>
					<tr>
						<td align="left" nowrap class="columnlabel"></td>
					</tr>
					<tr>
						<td align="right" nowrap class="columnlabel">&nbsp;</td>
						<td nowrap class="columnData">&nbsp;&nbsp;<a href="javascript:BforPreviw();"><img src="../IMAGES/BUTTON/PRINT.gif" width="73" height="23" border="0"></a>&nbsp;&nbsp;<a href="javascript:reset();"><img src="../IMAGES/BUTTON/CLOSE.gif" width="73" height="23" border="0"></a></td>
						<!-- <td nowrap class="columnData">&nbsp;&nbsp;<a href="javascript:goPreview('<%=request.getParameter("applicantid")%>');"><img src="../IMAGES/BUTTON/PRINT.gif" width="73" height="23" border="0"></a>&nbsp;&nbsp;<a href="javascript:reset();"><img src="../IMAGES/BUTTON/CLOSE.gif" width="73" height="23" border="0"></a></td> -->
                    </tr>
                    <tr>
                      <td  colspan="4" height="400"><div align="center"></div></td>
                    </tr>
                  </table>
			    </center>
			  </div></td>
		  </tr>
		  <tr bordercolor="0069B3">
		  <td  class="bottom"></td>
		</tr>
		</table>
	</div><script language="javascript">getLatestEmpid();</script>

	<script language="javascript">//alert(__confirm.value);</script>
	<script language="javascript">
	if(document.cscform.__confirm.value=="2"){
		window.close();
		}
    </script>

<!----------BEGIN CSC ENDING ZONE ------------------------>

<%=screen.endJSP()%>

<!----------END CSC ENDING ZONE -------------------------->

<%}%>

</FORM>
</body>
</html>