WEL308P.jsp 9.62 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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.utilities.CscCalendar,com.csc.library.entry.HelpEntry,com.csc.library.system.*"%>
<%@page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*,com.csc.library.utilities.*,java.util.Vector"  %>
<jsp:useBean id="WEL308P" class="com.csc.library.system.Task" scope="page" />
<%
	//<================================ SET RESULTSET =====================================-->	
	WEL308P.setChannel(request ,response);
	HelpEntry screen=(HelpEntry)WEL308P.process("HelpEntry","WEL308PHELP");
	screen.getInquiry().setFilter("docno = '"+request.getParameter("__docno")+"'");
	screen.process();
	
	ThaiUtilities chkChar = new ThaiUtilities();
	CheckNull chkNull = new CheckNull();
	//<================================ SET RESULTSET =====================================-->
%>

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language="JavaScript" type="text/JavaScript">
<!--
//-->
</script>
<style type="text/css">
<!--
.style2 {font-size: 16px}
-->
</style>
</head>
<body leftmargin="0" topmargin="0">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<form name="cscform" method="post" action="WEL308P.jsp">

<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->

<!---------------- HIDDEN FIELD ZONE ---------------------->
	<!-- All Use -->
<!---------------- HIDDEN FIELD ZONE ---------------------->
 
  	<table>
    	<tr>
        	<td>ที่ บศ. 617 / 2549</td>
      	</tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=chkNull.chkNullString(chkChar.ASCII2Unicode(request.getParameter("__docdate")))%></td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td>เรื่อง&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;การจองห้องพักของโรงแรม</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>		
        </tr>
        <tr>
        	<td>เรียน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;เจ้าหน้าที่ Reservation</td>
        </tr>
        <tr>
        	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=chkNull.chkNullString(chkChar.ASCII2Unicode(request.getParameter("__location")))%></td>
        </tr>
        <tr>
           	<td>&nbsp;</td>
        </tr>
        <tr>
        	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ธนาคารเกียรตินาคิน จำกัด (มหาชน) ขอจองห้องพักของโรงแรม (รวมอาหารเช้า) โดยมีรายการดังนี้ </td>
        </tr>
        <tr>
           	<td>&nbsp;</td>
        </tr>
        
        <tr><td><table>
 <%
 	Vector typeRoom1 = new Vector();
	Vector typeRoom2 = new Vector();
	String checkIn = "";
	String checkOut = "";
	String dayIn = "";
	String dayOut = "";
 	while(screen.nextRec()){
		if(checkIn.equals("")) {
			
			CscCalendar startDate = new CscCalendar(screen.getString("tworkoutarea","checkindate"));
			CscCalendar endDate = new CscCalendar(screen.getString("tworkoutarea","checkoutdate"));
			
			checkIn = startDate.getDDThaiYYYY();
			checkOut = endDate.getDDThaiYYYY();
			dayIn = startDate.getLongThiDOW();
			dayOut = endDate.getLongThiDOW();
			
			System.out.println(endDate.getDDThaiYYYY());
			System.out.println(endDate.getLongThiDOW());
		}
		
		if(screen.getString("roomtype").equals("1")) {
			typeRoom1.addElement(screen.getString("memployee","fullname"));
		} else if(screen.getString("roomtype").equals("2")) {
			typeRoom2.addElement(screen.getString("memployee","fullname"));
		}
	}
	System.out.println(" = จำนวนห้องเดี่ยว = " + typeRoom1.size());
	System.out.println(" = จำนวนห้องคู่ = " + typeRoom2.size());
	for(int i=0; i<typeRoom1.size(); i++) {
		if(i > 0) {
%>
		<tr>
			<td width="40%">&nbsp;</td>
            <td width="60%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><%=typeRoom1.get(i)%></b></td>
        </tr>
<%			
		} else {
%>
		<tr>
           	<td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u>ประเภทห้องเดี่ยว</u> (จำนวน <%=typeRoom1.size()%> ห้อง)</td>
        </tr>
		<tr>
			<td width="40%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รายชื่อผู้เข้าพัก</td>
            <td width="60%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><%=typeRoom1.get(i)%></b></td>
        </tr>
<%		
		}
	}
%>
		
<%
 	for(int i=0; i<typeRoom2.size(); i++) {
		if(i > 0) {
%>
		<tr>
			<td width="40%">&nbsp;</td>
            <td width="60%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><%=typeRoom2.get(i)%></b></td>
        </tr>
<%			
		} else {
			int tmpSize = 0;
			if(typeRoom2.size()%2 > 0) {
				tmpSize = (typeRoom2.size()/2) + 1;
			} else {
				tmpSize = typeRoom2.size()/2;
			}
%>
		<tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
           	<td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u>ประเภทห้องคู่</u> (จำนวน <%=tmpSize%> ห้อง)</td>
        </tr>
		<tr>
			<td width="40%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รายชื่อผู้เข้าพัก</td>
            <td width="60%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><%=typeRoom2.get(i)%></b></td>
        </tr>
<%		
		}
	}
 %>
 		</table></td></tr>
        
        <tr><td><table>
        <tr>
        	<td>&nbsp;</td>
      	</tr> 
 		<tr>
			<td width="40%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รายละเอียด</td>
            <td width="20%"><b>CHECK-IN</b></td>
            <td width="20%">วัน<%=dayIn%>ที่</td>
            <td width="20%"><%=checkIn%></td>
        </tr>	
        <tr>
			<td width="40%">&nbsp;</td>
            <td width="20%"><b>CHECK-OUT</b></td>
            <td width="20%">วัน<%=dayOut%>ที่</td>
            <td width="20%"><%=checkOut%></td>
        </tr>	
        </table></td></tr>    
        
        <tr>
        	<td>&nbsp;</td>
      	</tr>  
        <tr>
        	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ทั้งนี้ ขอให้โรงแรมส่งใบแจ้งหนี้ค่าห้องพัก ดังกล่าว (ไม่รวมค่าอาหารพิเศษ และอื่นๆ) ส่งไปยัง คุณ กันต์กวี เสนาศร ฝ่ายบริหารทรัพยากรบุคคล ธนาคารเกียรตินาคิน จำกัด (มหาชน) ชั้น 8 อาคารอัมรินทร์ทาวเออร์ เลขที่ 500 ถนนเพลินจิต แขวงลุมพินี เขตปทุมวัน กรุงเทพฯ 10330 โทรศัพท์ 0-2680-3094 โทรสาร 0-2256-9654</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;จึงเรียนมาเพื่อโปรดดำเนินการต่อ</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ขอแสดงความนับถือ</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(นายบงกช  ศรีสอาด)</td>
        </tr>
        <tr>
        	<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ผู้อำนวยการ ฝ่ายบริหารทรัพยากรบุคคล</td>
        </tr>
        <tr>
        	<td>&nbsp;</td>
      	</tr>
        <tr>
        	<td><b><u>หมายเหตุ</u></b> ธนาคารฯ ของส่ง FAX จดหมายฉบับนี้เป็นการจองห้องพัก เมื่อได้รับแล้วกรุณา CONFIRM กลับที่คุณกันต์กวี เสนาศร ฝ่ายบริหารทรัพยากรบุคคล โทร. 0-2680-3094 โทรสาร. 0-2256-9654</td>
        </tr>
  	</table>
  
</form>
</body>
</html>