<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.database.SystemCode" %>
<jsp:useBean id="ASP800" scope="page" class="com.csc.library.system.Task" />
<html>
<%
   	ASP800.setChannel(request ,response);
   	ProcessEntry screen=(ProcessEntry)ASP800.process("ProcessEntry","MoveHistoryAps");
   	screen.process();

    String tname = "บันทึกข้อมูลการประเมินเป็นประวัติ";
    String ename = "Move to History Appraisal";
%>
<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 src="../JS/VIEWCALENDAR.js"></script>
<script type='text/javascript' src='../JS/SCREEN.js'></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language="JavaScript" type="text/JavaScript">

function process(){
    with(document.cscform){
        if(__condition$apsid.value !== ""){
            confirmProcess();
        } else {
            var msg = getLang() === "tha" ? "กรุณาเลือก เลขที่เอกสาร" : "Please Select Document No." ;
            __condition$apsid.focus();
            alert(msg);
        }
    }
}
function confirmProcess(){
	with(document.cscform){
		aCon=confirm(MyCode[168]);
		if (aCon==true)	{
			__cmd .value = "save";
			submit();
		}
	}
}
function goHelp(helpName,inputName){
	var helpReturn;
	var fcon="";
		if(inputName=="__condition$apsid" ){
		 	helpReturn="__condition$apsid:apsid,__condition$apsreference:apsreference,__condition$astid:astid,apsdesc:tdesc|desc";
		}
		linkHelp_Return(helpName,helpReturn);
}
</script>

</head>
<body leftmargin="0" topmargin="0" >
<div class="centered">


    <form name="cscform" method="post" action="#">

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

<%=screen.InitialVariable()%>

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

<div align="center">
  <input type="hidden" name="__screen" value="ASP800">
  <input type="hidden" name="__fixCon" value="companyid='<%=screen.getUProfile().get("companyid")%>'">
  <input type="hidden" name="__cmd"  value="">
  <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="__name" value="Move to History Appraisal"> --%>
  <input type="hidden" name="__tname" value="<%=tname%>">
  <input type="hidden" name="__ename" value="<%=ename%>">
  <input type="hidden" name="__ptype" value="">
  <input type="hidden" name="__prclass" value="MoveHistoryAps">
  <input type="hidden" name="__condition$apsreference" value="">
  <input type="hidden" name="__condition$astid" value="">
      <br>
  <table border="0" cellpadding="0" cellspacing="0">
		<tr >
			<td class="header">ASP800, <%=screen.getUProfile().get("lang").equalsIgnoreCase("tha")?"บันทึกข้อมูลการประเมินเป็นประวัติ":"Move appraisal data to history"%>&nbsp;</td>
		</tr>
		<tr>
			<td class="blankspace">&nbsp;</td>
		</tr>
		<tr>
			<td>
				<table colspan="2">
					<tr>
						<td align="right" width="20%"><%=screen.getUProfile().get("lang").equalsIgnoreCase("tha")?"เลขที่เอกสาร":"Document No."%>&nbsp;</td>
						<td width="60%">
                            <input name="__condition$apsid" type="text" size="10" >
							<a href="javascript: goHelp('TAPSTRAN0HELP','__condition$apsid');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('01','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Search" name="01" width="20" height="20" border="0" align="absmiddle" id="01"></a>
                            <input name="apsdesc" type="text" size="30" disabled>
                        </td>
					</tr>
					<tr>
						<td align="right"><%=screen.getUProfile().get("lang").equalsIgnoreCase("tha")?"ปีการประเมิน":"Year Assessment"%>&nbsp;</td>
						<td><input name="__condition$gradeyear" type="text" size="5" value='<%=new CscCalendar().getYear()%>' readonly style="text-align: center;"></td>
					</tr>
				</table>
			</td>
		</tr>
	    <tr>
			<td  class="blankspace">&nbsp;</td>
		</tr>


		<tr>
			<td  class="buttonline" colspan="7"><div align="center">
				<button type="button" class="btn btn-primary width100" swlang code="SW013173" onClick="process();">process</button>
			</div>
			</td>
		</tr>
		<tr>
			<td class="bottom"></td>
		</tr>
	</table>

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

<%=screen.endJSP()%>

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

</form>
</body>
</html>