<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.utilities.CscCalendar,com.csc.library.entry.*,com.csc.library.system.*"%>
<jsp:useBean id="AS033" class="com.csc.library.system.Task" scope="page" />
<jsp:useBean id="AS033HELP" class="com.csc.library.system.Task" scope="page" />
<%
	AS033.setChannel(request,response);
	UIManager screen = (UIManager) AS033.process("SingleEntry","AS033");
	
	AS033HELP.setChannel(request, response);
	HelpEntry screenHelp = (HelpEntry) AS033HELP.process("HelpEntry", "AS033HELP");
    screenHelp.getInquiry().setFilter("ptype='Appraisal Process'");
	screenHelp.referLangOn();
	screenHelp.process();
%>
<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('<%=screenHelp.getUProfile().get("lang")%>');</script>
<script type='text/javascript' src='../JS/DATEINPUT.js'></script>
<script type='text/javascript' src='../JS/VIEWCALENDAR.js'></script>
<script language="javascript">getTitleName();</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function linkSub(pid){
   location="AS035.jsp?__fixCon=processid='"+pid+"'&&__ename="+document.cscform.__ename.value;
}

function linkRemark(pid){
	var desc='';
	if (document.cscform.__language.value.toUpperCase()=='THA') desc='หมายเหตุ';
		else desc='Remark';
	var param="AS034.jsp?__remark="+pid+"&__desc="+desc	;
  	window.open(param,"Help","left=150,top=150,width=600,height=170,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}

function deleteRec(){
	var  recDelete = "";
	with(window.document.cscform){
		bCon=confirm("ต้องการลบหรือไม่ ?");
		if (bCon==true){			
			for(i=0;i<elements.length;i++){
				if(elements[i].type=="checkbox"){
					if (elements[i].checked==true){
						recDelete = recDelete+ "#"+elements[i].value;	               	
					}
				}
			}		
			__reccordDelete.value=recDelete;		
			__cmd.value="save";
			__confirm.value="s";
			submit();
		}
	}//end with
}

</script>
</head>

<body leftmargin="0" topmargin="0">
<form name="cscform" method="post" action="AS033.jsp">


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

<%=screen.InitialVariable()%>

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

<input type="hidden" name="__screen" value="AS033">
	<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="">
	<input type="hidden" name="__helpName" value="">
	<input type="hidden" name="__pageCall" value="">
	<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
	<input type="hidden" name="__calendar">
	<input type="hidden" name="__language" value="<%=screenHelp.getUProfile().get("lang")%>">
	<input type="hidden" name="__companyid" value="<%=screenHelp.getUProfile().get("companyid")%>">
	<input type="hidden" name="__ename" value="<%=request.getParameter("__ename")%>">	
	<input type="hidden" name="__reccordDelete" value="">
	<input type="hidden" name="__confirm" value="">
  	<script language="javascript">getInputFormatDate();</script>
	<br>
	<div align="center">
  	<table height="" align="center" cellpadding="0" cellspacing="0"  border="1">
    <tr bgcolor="#3366CC">
      <td  height="20" class="header" colspan="4">AS033, <script language="javascript">swapLang("Process Status");</script>&nbsp;</td>
  	</tr>
	<tr>
      <td class="blankspace" colspan="4"></td>
    </tr>
	<tr>
    	<td><div align="right"><script language="javascript">swapLang('Order By');</script>&nbsp;</div></td>
		<td><%=screenHelp.getTagOrder()%></td>
      	<td><div align="right"><script language="javascript">swapLang('Search By');</script>&nbsp;</div></td>
		<td><%=screenHelp.getTagSearchBy()%></td>
  	</tr>
	<tr>
    	<td><div align="right"><script language="javascript">swapLang('Condition');</script>&nbsp;</div></td>
		<td><%=screenHelp.getTagConSearch()%></td>
       	<td><div align="right"><script language="javascript">swapLang('Key Value');</script>&nbsp;</div></td>
		<td><%=screenHelp.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"><div align="right">&lt; <%=screenHelp.getPageTag()%> &gt;</div></td>
    </tr>
	<tr>
      <td class="blankspace" colspan="4"></td>
    </tr>  	
    <tr>
      <td class="blankspace" colspan="4"><%=screenHelp.printTableHTML()%></td>
    </tr>	
	<tr>
      <td class="blankspace" colspan="4"></td>
    </tr>
	<tr>
      <td  colspan="4" align="center">
			<a href="javascript:checkAll();"><img src="../IMAGES/BUTTON/SELECTALL.gif" border="0"></a>&nbsp;
		  	<a href="javascript:decheckAll();"><img src="../IMAGES/BUTTON/DESELECTALL.gif" border="0"></a>&nbsp;
		  	<a href="javascript:deleteRec();"><img src="../IMAGES/BUTTON/DELETE.gif" border="0"></a>
	    </td>
    </tr>
	<tr>
      <td class="blankspace" colspan="4"></td>
    </tr>	
  </table>
  </div>
</form>
</body>
</html>
