TRA0126E.jsp 9.83 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
<%@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" class="com.csc.library.system.Task" scope="page"/>
<%
TRA0126E.setChannel(request,response);
UIManager screen = (UIManager) TRA0126E.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">
<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">
  <input type="hidden" name ="__cmdchild" value="">
  <input type="hidden" name ="__ack" value="<%=request.getParameter("__ack")%>">
<input	name="__screen" type="hidden" value="TRA0126E"> 
<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, ผู้เข้าอบรม<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 colspan="2"><div align="center"><a  href="javascript:window.close();"><img src="../IMAGES/BUTTON/CLOSE.gif" border="0"></a></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>