<%@ 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"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*,com.csc.library.report.ReportUDF"  %>

<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"));
	ReportUDF rp=new ReportUDF();
	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">
<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")%>');</script>
<script src="../JS/VIEWCALENDAR.js"></script>
<script language='javascript' src="../JS/DATEINPUT.js"></script>
<script language="javascript">getTitleName();</script>
</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="__headMulti" value="<%=request.getParameter("__headMulti")%>">
	<input type="hidden" name="__Rec_No" value="<%=request.getParameter("__Rec_No")%>">
	<input type="hidden" name="__asid" value="<%=asid%>">	
	 <%
	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">AS032,
                <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("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("anwcompare")%>&nbsp;</td>
                    <td colspan="3" ><input name="__anwcompare" type="radio" value="T" checked>
                      <%=rp.getSystemCode("truefalse",screen.getUProfile().get("lang"),"T")%>
                      <input type="radio" name="__anwcompare" value="F">
                      <%=rp.getSystemCode("truefalse",screen.getUProfile().get("lang"),"F")%> </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  class="buttonline" colspan="7"><div align="center">
											<button type="button" class="btn btn-primary width100" swlang code="SW013175" onClick="saveChild();">SAVE</button>&nbsp;
											<button type="button" class="btn btn-primary width100" swlang code="SW013174" onClick="backhead();">BACK</button>
										</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>
</form>
<% screen.referLangOff(); %>
<!--Start ERROR AND WARNING -->
<!--END ERROR AND WARNING -->
</body>
</html>

