<%@ page import="com.csc.library.entry.*,com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.database.*,java.util.*"  contentType="text/html;charset=UTF-8"%>
<jsp:useBean id="AS031" scope="page" class="com.csc.library.system.Task"/>
<%
	AS031.setChannel(request ,response);
	UIManager screen=(UIManager)AS031.process("ChildEntry","masanswer");
	CheckNull chk = new CheckNull();
	java.text.DecimalFormat df=new java.text.DecimalFormat("0000");
	String asid=chk.chkNullString(request.getParameter("__asid"));

	screen.referLangOff();
%>
<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 language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language='javascript' src="../JS/DATEINPUT.js"></script>
<script language="javascript">getTitleName();</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function back(){
		with(window.opener.cscform){
			__cmd.value = 'ack';
	    	submit();	    
		}
	}
//-->
</script>

</head>
<body>
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="AS031.jsp">
  

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

<%=screen.InitialVariable()%>

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

<input type="hidden" name="__cmd" value="">
	<input type="hidden" name="__cmdchild">
	<input type="hidden" name="__ack" value="<%=request.getParameter("__ack")%>">
	<input type="hidden" name="__referPage" value="">
	<input type="hidden" name="__fixCon" value="">
	<input type="hidden" name="__help" value="">
	<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">	
	<input type="hidden" name="__screen" value="masanswer">
	<input type="hidden" name="__companyid"  value='<%=screen.getUProfile().get("companyid")%>'>
	<input type="hidden" name="__employeeid" value="<%=request.getParameter("__employeeid")%>">
	<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
	<input type="hidden" name="__lastrec" value="<%=request.getParameter("__lastrec")%>">
	<input type="hidden" name="__maxrec" value="<%=screen.getTable("masanswer").recCount()%>">
	<input type="hidden" name="__gorec" value="<%=request.getParameter("__gorec")%>">  
	<input type="hidden" name="__headMulti" value="<%=request.getParameter("__headMulti")%>">
	<script language="javascript">getInputFormatDate();</script>
	<input type="hidden" name="__calendar">
	<input type="hidden" name="__Rec_No" value="<%=request.getParameter("__Rec_No")%>">
	<input type="hidden" name="__asid" value="<%=asid%>">	
	<input type="hidden" name="__anwcompare" value=" ">	
	 <%
	double lineno=1;
	if((request.getParameter("__gorec")!=null)&&(!request.getParameter("__gorec").equals("")))
		{
			lineno= Double.parseDouble(request.getParameter("__gorec").toString());
		}
	else
		{
			if(screen.getTable("masanswer").recCount()==0)
				{
					lineno=1;
				}
			else
				{
					screen.getTable("masanswer").last();
	 				String lastrec=screen.getTable("masanswer").getString("anwid");
					lineno=Double.parseDouble(lastrec)+1;
				}
		}	 
	%>
	
	<input type="hidden" name="__anwid" value="<%=df.format(lineno)%>" size="15" maxlength="15">
	<br>  
	<div align="center">      
		<table  cellpadding="0"  cellspacing="0">
          <tr >
            <td  class="header">AS031,
                <script language="javascript">swapLang('Answer of Assess');</script>
&nbsp;</td>
          </tr>
          <tr >
            <td  colspan="2">
              <div align="center">
                <table  class="inframe" cellpadding="0" cellspacing="0" >
                  <tr>
                    <td colspan="4"  class="blankspace"></td>
                  </tr>
                  <tr>
                  	<td width="150" class="columnlabel"><%=screen.getLabel("topic")%></td>
                  	<td width="488" colspan="3"><%=screen.getInput("topic")%></td>
                  </tr>
                  <tr>
                  	<td width="150" class="columnlabel"><%=screen.getLabel("etopic")%></td>
                  	<td width="488" colspan="3"><%=screen.getInput("etopic")%></td>
                  </tr>
                  <tr>
                    <td width="150"  class="columnlabel"><%=screen.getLabel("tdesc")%>&nbsp;</td>
                    <td width="488" colspan="3" > <%=screen.getInput("tdesc")%> </td>
                  </tr>
                  <tr>
                    <td width="150"  class="columnlabel"><%=screen.getLabel("edesc")%>&nbsp;</td>
                    <td width="488" colspan="3" > <%=screen.getInput("edesc")%> </td>
                  </tr>
                  <tr >
                    <td  class="columnlabel"><%=screen.getLabel("anwscore")%>&nbsp;</td>
                    <td colspan="3" ><%=screen.getInput("anwscore")%></td>
                  </tr>
                  <tr >
                    <td colspan="4" class="blankspace"></td>
                  </tr>
                  <TR>
                    <TD colspan="4"><div align="center"><span class="buttonline"><a href="javaScript:saveChild();"><img src="../IMAGES/BUTTON/SAVE.gif" width="73" height="23" border="0"></a>&nbsp;&nbsp; <a href="javaScript:backhead();"><img src="../IMAGES/BUTTON/BACK.gif" border="0"></a></span></div></TD>
                  </TR>
                  <tr >
                    <td colspan="4" class="blankspace"></td>
                  </tr>
                </table>
            </div></td>
          </tr>
          <tr bordercolor="0069B3">
            <td  class="bottom"></td>
          </tr>
        </table>
	</div>
	<% 
	if((request.getParameter("__cmdchild")!=null)&&(!request.getParameter("__cmdchild").equals(""))){%>
	<script language="javascript">back();</script>
	<%}%>
	
</form>
<% screen.referLangOff(); %>
<!--Start ERROR AND WARNING -->
<!--END ERROR AND WARNING -->
</body>
</html>

