ER_I1_1505.jsp 4.21 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.myutil.UIList"%>
<%@page import="com.csc.library.session.*"%>
<%@page import="com.csc.library.myutil.FormatUtil"%>
<%
	UIList uiList = new UIList("workList1505",request,response,null);
	uiList.process();
	String lang = ((com.csc.library.utilities.UProfile)request.getSession().getAttribute("userprofile")).get("lang");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language="JavaScript" src="../JS/VIEWCALENDAR.js"></script>
<script language="JavaScript" src='../JS/ICONSMENU.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language="JavaScript">setLang('<%=lang%>');</script>

<script language="JavaScript">

     function  addChild(){
     if(window.parent.nullCheckER()){
      		window.open("ER1505_CHILD_WORK.jsp?screen_level=Child","help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
      }		
	 }
     function  editChild(eindex){
     if(window.parent.nullCheckER()){
      		window.open("ER1505_CHILD_WORK.jsp?screen_level=Child&editindex="+eindex+"&editac=true","help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
      }		
	 }
function GoSave(){window.parent.confirmSave();}
function GoUpdate(){window.parent.update();}
function GoDelete(){window.parent.edelete();}
function GoSearch(){window.parent.search();}

</script>
</head>
<body>
<form name="cscform" method="post" action="ER_I1_1505.jsp">
<input type="hidden"  name="screen_level" value="Child">
<input type="hidden"  name="cmd" value="">
<input type="hidden" name="__language" value ="<%=lang%>">
<table class="maxsize" border="1" cellpadding="1" cellspacing="0" >
     <tr>
    	<td>
    	<table border="0" cellspacing="1" cellpadding="0" bordercolor="#3366CC" bgcolor="#666666" class="inframe">
          <tr>
             <td width="10%" nowrap class="title1" ><div align="center"><strong><SCRIPT language="JavaScript">swapLang('Select');</SCRIPT></strong></div></td>
             <td width="10%" nowrap class="title1" ><div align="center"><strong><SCRIPT language="JavaScript">swapLang('Seq');</SCRIPT></strong></div></td>
             <td width="45%" nowrap class="title1" ><div align="center"><strong><SCRIPT language="JavaScript">swapLang('Day');</SCRIPT></strong></div></td>
             <td width="45%" nowrap class="title1" ><div align="center"><strong><SCRIPT language="JavaScript">swapLang('Time');</SCRIPT></strong></div></td>
          </tr>
 		  <%
			 java.util.Vector recordList=uiList.getRecordList();
			 for(int i=0;i<recordList.size();i++){
				DbRecord  record=(DbRecord)recordList.elementAt(i);
		  %>   
          <tr>
          	 <td  class="writeback"><div align="center"><input name="chk#<%=i%>" type="checkbox"  value="checkbox"></div></td>
             <td  class="writeback"><div align="center"><%=i+1%> </div></td>
             <td  class="writeback"><a href="javascript:editChild('<%=i %>');"><%=record.getSystemCode("work_day")%></a></td>
             <td  class="writeback" align="center"><%=FormatUtil.formatTime(record.getDouble("work_start_time"))%>&nbsp;-&nbsp;<%=FormatUtil.formatTime(record.getDouble("work_end_time"))%></td>
          </tr>
    	  <%}%>	
		</table>
		</td>
  </tr>
  <tr>
    <td>
    	<div align="center">
			<a href="javascript:checkAll();"  ><img src="../IMAGES/BUTTON/SELECTALL.gif" width="73" height="23" border="0"/></a>
			<a href="javascript:decheckAll();"  ><img src="../IMAGES/BUTTON/DESELECTALL.gif" width="73" height="23" border="0"/></a>
			<a href="javascript:addChild();"><img src="../IMAGES/BUTTON/ADD.gif" width="73" height="23" border="0" /></a>
			<a href="javascript:delChild();" ><img src="../IMAGES/BUTTON/DELETE.gif" width="73" height="23" border="0"/></a>
		</div>
	</td>
  </tr>
</table>
</form>
</body>
</html>