<%@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="TRA0126E_PHATRA" class="com.csc.library.system.Task" scope="page"/>
<%
TRA0126E_PHATRA.setChannel(request,response);
UIManager screen = (UIManager) TRA0126E_PHATRA.process("ChildEntry","TTRAINTRNEE");
String checksave=request.getParameter("__checksave");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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 type='text/javascript' src='../JS/SCREEN.js'></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');
function goSave() {confirmSave();}
function goSearch() {search();}
function goDelete() {edelete();}
function goUpdate() {update();}
function checkCF() {checkConfirm();}

function  setcmd1(acktion){
	with(document.cscform){
	if(__traineeid.value==""){
		alert("please inert data all");
	}else{
       bCon=confirm(MyCode[1]);
      if (bCon==true)	{
			if(acktion=="save"){
				__cmdchild.value="save";
				__checksave.value="yes";
			submit();
			}
       }
	}
}
}

/*function  setcmd1(acktion){
with(document.cscform){
__cmdchild.value="save";
submit();
}
}*/

/*function goHelp(helpName,inputName){
  with(document.cscform){
	var helpReturn="";
		 if(inputName=="__trainerid" )
		 	helpReturn="__trainerid:trainerid,MTRAINER@TREFNAME";
	     	linkHelp_Return(helpName,helpReturn);
	}
}*/

function backhead(){
	with(window.opener.cscform){
		__cmd.value="back";
	    submit();
	    // window.close();
	}
}

 function Closepage(){
 	with(window.cscform){
		var chk="<%=checksave%>";
		if(chk=="yes"){
			//backhead();
		}
	}
 }

 function goHelp(helpName,inputName){
  with(document.cscform){
	var helpReturn="";
		 if(inputName=="__traineeid" )
		 	helpReturn="__traineeid:employeeid,MEMPLOYEE@FNAME,MEMPLOYEE@LNAME,__emp_position:emp_position,__job:job,__emp_group:emp_group,__emp_level:emp_level,__branch:branch,__workarea:workarea,__salatype:salatype,__bossid:bossid,__bu1:bu1,__bu2:bu2,__bu3:bu3,__bu4:bu4,__bu5:bu5";
	     	linkHelp_Return(helpName,helpReturn);
	}
}
</script>
</head>

<body  leftmargin="0" topmargin="0"  onLoad="Closepage();" >
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="?">
<input type="hidden" name="__checksave" value="">
 <input type="hidden" name ="__headMulti" value="TRA012_PHATRA">
  <input type="hidden" name ="__cmdchild" value="">
  <input type="hidden" name ="__ack" value="<%=request.getParameter("__ack")%>">
<input	name="__screen" type="hidden" value="TRA0126E_PHATRA">
<input type="hidden" name="__cmdChild" value="">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
  <input type="hidden" name="__maxrec" value="<%=screen.getTable("TTRAINTRNEE").recCount()%>">
  <input type="hidden" name="__gorec" value="<%=request.getParameter("__gorec")%>">
  <input type="hidden" name="__companyid"  value="<%=request.getParameter("__companyid")%>">
    <input type="hidden" name="__trainingid"  value="<%=request.getParameter("__trainingid")%>">
	<input type="hidden" name="__confirm" value="">
<input type="hidden" name="__fixCon" value="">
<input type="hidden" name="__traineeid" value="">
<input type="hidden" name="__emp_position" value="">
<input type="hidden" name="__job" value="">
<input type="hidden" name="__emp_group" value="">
<input type="hidden" name="__emp_level" value="">
<input type="hidden" name="__branch" value="">
<input type="hidden" name="__workarea" value="">
<input type="hidden" name="__salatype" value="">
<input type="hidden" name="__bossid" value="">
<input type="hidden" name="__bu1" value="">
<input type="hidden" name="__bu2" value="">
<input type="hidden" name="__bu3" value="">
<input type="hidden" name="__bu4" value="">
<input type="hidden" name="__bu5" value="">
   <br>
  <div align="center">
    <table  cellpadding="0"  cellspacing="0">
      <tr >
        <td  class="header">TRA0126E_PHATRA, ผู้เข้าอบรม<strong>

          </strong>&nbsp;</td>
      </tr>
      <tr >
        <td  colspan="2"> <div align="center">
            <table  cellpadding="0" cellspacing="0" >


              <tr>
                <td align="right" ><%=screen.getLabel("TRAINEEID")%></td>
                <td nowrap > <input name="__traineeid" type="text" size="10" disabled value="<%=screen.getDataLabel("TRAINEEID")%>">
                  </td>
              </tr>
              <tr>
                <td nowrap  class="columnlabel"><script language='javascript'>swapLang('Name Surname');</script>
                  &nbsp;</td>
                <td nowrap ><input name="MEMPLOYEE@FNAME" type="text" size="25" readonly value="<%=screen.getDataLabel("V1MPREFIX","TDESC")+screen.getDataLabel("V1MEMPLOYEE","FNAME")+"  "+screen.getDataLabel("V1MEMPLOYEE","LNAME")%>">
                  &nbsp;</td>
              </tr>
			   <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("JOB")%>
                  &nbsp;</td>
                <td nowrap ><input name="__job" type="text" size="25" readonly  value="<%=screen.getDataLabel("JOB")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("EMP_POSITION")%>
                  &nbsp;</td>
                <td nowrap ><input name="__emp_position" type="text" size="25" readonly value="<%=screen.getDataLabel("EMP_POSITION")%>">
                  &nbsp;</td>
              </tr>
			   <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("EMP_LEVEL")%>
                  &nbsp;</td>
                <td nowrap ><input name="__emp_level" type="text" size="25" readonly value="<%=screen.getDataLabel("EMP_LEVEL")%>">
                  &nbsp;</td>
              </tr>
			   <tr>
                <td height="24" nowrap  class="columnlabel"><%=screen.getLabel("EMP_GROUP")%>
                  &nbsp;</td>
                <td nowrap ><input name="__emp_group" type="text" size="25" readonly value="<%=screen.getDataLabel("EMP_GROUP")%>"></td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BRANCH")%>
                  &nbsp;</td>
                <td nowrap ><input name="__branch" type="text" size="25" readonly value="<%=screen.getDataLabel("BRANCH")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("WORKAREA")%>
                  &nbsp;</td>
                <td nowrap ><input name="__workarea" type="text" size="25" readonly value="<%=screen.getDataLabel("WORKAREA")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("SALATYPE")%>
                  &nbsp;</td>
                <td nowrap ><input name="__salatype" type="text" size="25" readonly value="<%=screen.getDataLabel("SALATYPE")%>">
                  &nbsp;</td>
              </tr>
			   <tr>
                <td height="25" nowrap  class="columnlabel"><%=screen.getLabel("BOSSID")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bossid" type="text" size="25" readonly value="<%=screen.getDataLabel("BOSSID")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BU1")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bu1" type="text" size="25" readonly value="<%=screen.getDataLabel("BU1")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BU2")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bu2" type="text" size="25" readonly value="<%=screen.getDataLabel("BU2")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BU3")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bu3" type="text" size="25" readonly value="<%=screen.getDataLabel("BU3")%>">
                  &nbsp;</td>
              </tr>
			   <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BU4")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bu4" type="text" size="25" readonly value="<%=screen.getDataLabel("BU4")%>">
                  &nbsp;</td>
              </tr>
			    <tr>
                <td nowrap  class="columnlabel"><%=screen.getLabel("BU5")%>
                  &nbsp;</td>
                <td nowrap ><input name="__bu5" type="text" size="25" readonly value="<%=screen.getDataLabel("BU5")%>">
                  &nbsp;</td>
              </tr>
              <!--tr>
                <td nowrap  class="columnlabel">ชื่อ-นามสกุล(อังกฤษ)&nbsp;</td>
                <td ><font class="normal">
                  <input name="textfield222" type="text" value="MR.SOMSAK KRIANGKRAI" size="50">
                  </font></td>
              </tr-->
			  <tr >
                <td colspan="2" class="blankspace"></td>
              </tr>
							<tr>
        <td  class="buttonline" colspan="7"><div align="center">
          <button type="button" class="btn btn-primary width100" swlang code="SW012104" onClick="window.close();">CLOSE</button>
      </div>
  </td>
</tr>
              <tr >
                <td colspan="2" class="blankspace"></td>
              </tr>
            </table>
          </div></td>
      </tr>
      <tr bordercolor="0069B3">
        <td  class="bottom"></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>