AS_VOTE1_KKB.jsp 20 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 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<%@page import="java.util.HashMap"%>
<jsp:useBean id="AS_VOTE1_KKB" class="com.csc.library.system.Task" scope="page" />
<%
	CheckNull chkNull=new CheckNull();
	ThaiUtilities thatUtils = new ThaiUtilities();	

	AS_VOTE1_KKB.setChannel(request,response);
	//dbxml
	UIManager screen = (UIManager) AS_VOTE1_KKB.process("MultiEntry","AS_VOTE1_KKB");
	//set where clause

	String employeeid ="";
	String pagetype ="";
	if(request.getParameter("__employeeid")==null){
		//ถูกเปิดด้วยประธานสาย employeeid ตาม login เข้ามา
		employeeid = screen.getUProfile().get("employeeid");
		pagetype ="assign";
		//out.print("open with assign employeeid is: "+ employeeid);
	}else{
		employeeid =request.getParameter("__employeeid");
		pagetype ="admin";
		//out.print("open with admin employeeid is: "+ employeeid);
		//ถูกเปิดด้วย admin
	}//end if 

	screen.getRecord().set("ASSIGNID","1");
	screen.getRecord().set("EMPLOYEEID",employeeid);
	screen.getRecord().set("COMPANYID","100"); 
 	 
	//retrieve
	screen.getRecord().search();
	//out.println("<br><br>==============>"+screen.getRecord().getTableName());
	//out.println("==============>"+screen.getRecord().getRelationInfo());
	//out.println("<br><br>==============>"+screen.getRecord().search());

	//table detail 
	MultiLine multi = screen.getMultiLine("MVOTE_KKB1");
	multi.setLabelBox("check box");
	multi.goFirst();

	/**whereClause for lookup */
	String bu1List = "";  
	if(pagetype.equals("assign")){
		String stText =" (bu1id in (";
		String endText = ")) ";
		String whereClausebu1 = " employeeid = '"+employeeid+"' ";
	 
		UProfile up = new UProfile(); 
		up =screen.getUProfile();
		HashMap param = new HashMap();

		DbInquiry inq = new InitialInquiry(up).getDbInquiry(); 
		inq.setSchemaName(up.getSchemaName());

		inq.setParam(param);
		inq.initMyTable("mvote_kkb1", whereClausebu1, "");
		inq.setColumn("ASSIGNID,EMPLOYEEID,VOTE1ID,COMPANYID,BU1");
		inq.refresh(); 
		while (inq.next()) {
			if(bu1List.equals("")){
				bu1List ="\'"+inq.getCurrentDbRecord().getString("BU1")+"\'"; 
			}else{
				bu1List += ","+"\'"+inq.getCurrentDbRecord().getString("BU1")+"\'"; 
			}//end if 
		}//end while
		bu1List = stText+bu1List + endText;
	}//end if 

	//out.print("bu1List is: "+bu1List);
	/***/

	//table MASSIGN_KKB1 มี ข้อมูล ?
	if(screen.getRecord().search()>0){
		//มี แสดงข้อมูล 
%>
<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 language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type='text/javascript' src='../JS/DATEINPUT.js'></script>
<script type='text/javascript' src='../JS/VIEWCALENDAR.js'></script>
<script type='text/javascript'  src="../JS/ICONSMENU.js"></script>
</head>
<body leftmargin="0" topmargin="0">
<form name="cscform" method="post" action="">

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

	<input type="hidden" name="__cmd" value="">
	<input type="hidden" name="__calendar">
	<script language="javascript">getInputFormatDate();</script>
	<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>">
	<input type="hidden" name="__notNull" value='<%=screen.getRequire()%>'>
	<input type="hidden" name="__screen" value="AS_VOTE1_KKB">	
	<input type="hidden" name="__help" value="">
	<input type="hidden" name="__childMulti" value="MVOTE_KKB1">
	<input type="hidden" name="__gorec" value="">
	<input type="hidden" name="__ack" value="">
	<input type="hidden" name="__multiTable" value="MVOTE_KKB1">
	<input type="hidden" name="__helpReturn" value="">
	<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
	<input type="hidden" name="__cmdchild" value="">
	<input type="hidden" name="__fixCon" value="">
	<input type="hidden" name="__listAdd" value="">
	<input type="hidden" name="__deleteItem" value="">
	<input type="hidden" name="__assignid" value="1">
	<!--QueryString from Opener-->
	<input id='txtEmployeeId' type='hidden' value='<%=request.getParameter("__employeeid")%>'>
	<!--QueryString from Opener-->
	<div align='center'>
	<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>	
	<script language="javascript">initToolTips();</script>
    <script src="../JS/HOTKEY.js"></script>	
	<script language="javascript"> 
		//var titlename=swap2String('VOTE1 LIST'); 
		//document.write(Icons("VOTE1 LIST,"+titlename)); 
		
		function goHelp(helpName,inputName){
			var helpReturn;
			var fcon = document.cscform.__fixCon.value;
			with (document.cscform) {
				if(inputName=="__mbu1_id" ) {
					helpReturn="__mbu1_id:bu1id,__mbu1_tdesc:tdesc";
					if (!conMBU1.checked) conMBU1.checked = true; 
					document.cscform.__fixCon.value ="<%=bu1List%>";
				}else if(inputName=="__mbu2_id" ) {
					helpReturn="__mbu2_id:bu2id,__mbu2_tdesc:tdesc";
					if (!conMBU2.checked) conMBU2.checked = true;
					document.cscform.__fixCon.value ="";
				}else if(inputName=="__positionid" ) {
					helpReturn="__positionid:positionid,__position:tdesc";
					if (!conPosition.checked) conPosition.checked = true;
					document.cscform.__fixCon.value =" (positionid>='P08') ";
				}//end if  
			}//end with
			linkHelp_Return(helpName,helpReturn);
			document.cscform.__fixCon.value = fcon;
		}//end function 

		function checkAll(){
			with(document.cscform){
				for(i=0;i<elements.length;i++){
					if(elements[i].type=="checkbox" 
						&& elements[i].name != "conMBU1"
						&& elements[i].name != "conMBU2"
						&& elements[i].name != "conPosition")
						elements[i].checked=true;
				}//end for
			}//end with
		}//end function

		function decheckAll(){
			with(document.cscform){
				for(i=0;i<elements.length;i++){
					if(elements[i].type=="checkbox" 
						&& elements[i].name != "conMBU1"
						&& elements[i].name != "conMBU2" 
						&& elements[i].name != "conPosition")
						elements[i].checked=false;
				}//end for
			}//end with
		}//end function

		function linkList(){ 
			with(document.cscform){
				window.open("SIMASSIGN_KKB1.jsp?__openwith=AS_VOTE1_KKB"
					+"&__employeeid=<%=employeeid%>"
					+"&__vote1id=''"
					,"","width=700,height=300,left=5,top=10,width=1000,height=600,toolbar=no,status=yes,scrollbars=yes,resizable=no");
			}//end with
		}//end function
 
		function setCheckBox() {
			with (document.cscform) {
				if (__mbu1_id.value != "") conMBU1.checked = true;
				if (__mbu2_id.value != "") conMBU2.checked = true;
				if (__positionid.value != "") conPosition.checked = true;
			}//end with
		}//end function

		function deleteMulti(){
			with(document.cscform){
				bCon=confirm(MyCode[4]);
				if (bCon) {
					__deleteItem.value = "";
					for(i=0;i<elements.length;i++){
						if(elements[i].type=="checkbox" 
							&& elements[i].name != "conMBU1" 
							&& elements[i].name != "conMBU2" 
							&& elements[i].name != "conPosition") {

							if (elements[i].checked) {
								if (__deleteItem.value != ""){
									__deleteItem.value = __deleteItem.value+","+elements[i].name
																+":"+document.getElementById('txtEmployeeId').value;
								}else{
									__deleteItem.value = elements[i].name
																+":"+document.getElementById('txtEmployeeId').value;
								}//end if 
							}//end if
						}//end if
					}//end for
					//alert("__deleteItem is: "+__deleteItem.value);
					__cmd.value="del";
					submit();
					//confirmSave();
				}//end if bcon
			}//end with
		}//end function

	    function searchVote1(){
			with(document.cscform){
				__cmd.value="search";
				submit();
			}//end with
		}//end funtion 

		function clearCon(strCon) {
			with (document.cscform){
				if (strCon=="__mbu1_id" && !conMBU1.checked) { __mbu1_id.value = ""; __mbu1_tdesc.value = ""; }
				if (strCon=="__mbu2_id" && !conMBU2.checked) { __mbu2_id.value = ""; __mbu2_tdesc.value = ""; }
				if (strCon=="__positionid" && !conPosition.checked) { __positionid.value = ""; __position.value = ""; }
			}//end with
		}//end function

		function linkVote2(vote1id) {	
			window.open("AS_VOTE2_KKB.jsp?__employeeid=<%=employeeid%>&__vote1id="+vote1id
					+"&__pagetype=<%=pagetype%>"
					,"","left=5,top=5,width=1000,height=650,toolbar=no,status=yes,scrollbars=yes,resizable=no");
		}//end if 
	
</script>

<!--Display header color tab-->
<table border='0' cellpadding="0"  cellspacing="0" class='largest'>		 
<tr>
	<td class="header" colspan="2">VOTE1 LIST,&nbsp;
		<script 	language="javascript">swapLang("VOTE1 LIST");</script>&nbsp;
	</td>
</tr>
</table>
<!--Search Condition-->
<table id='searchAS_VOTE1_KKB' border='0'  cellpadding="0"  cellspacing="0" class='largest'>
	<tr>
		<td>&nbsp</td>
		<td>&nbsp</td>
		<td align="right"><b><script language="javascript">swapLang("Full Name Assign");</script>: &nbsp;</b></td>
		<td>
			<b>
			<!--//screen.getUProfile().get("fullname")-->
				<div  align="left"><%=screen.getDataLabel("V1MEMPLOYEE","FULLNAME")%></div>
			</b>
		</td> 
	</tr>
	<tr>
			<td colspan="1" align="right"><b><script language="javascript">swapLang("Condition");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="checkbox" NAME="conMBU1" ONCLICK="clearCon('__mbu1_id')"></td>
            <td align="right"><b><script language="javascript">swapLang("BU1");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="text"  NAME="__mbu1_id" SIZE="10" 
				VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__mbu1_id")))%>' READONLY> 
              <A href="javascript: goHelp('MBU1HELP','__mbu1_id');"  onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__group_quesid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)">
			  <img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__group_quesid_image" width="20" height="20" border="0" align="absmiddle" >
			  </a>	
              <INPUT TYPE="text" NAME="__mbu1_tdesc" SIZE="50" 
			  VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__mbu1_tdesc")))%>' READONLY>
			</td>
	  </tr>
	  <tr>
			<td colspan="1" align="right"><b><script language="javascript">swapLang("Condition");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="checkbox" NAME="conMBU2"  ONCLICK="clearCon('__mbu2_id')"></td>
            <td align="right"><b><script language="javascript">swapLang("BU2");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="text"  NAME="__mbu2_id" SIZE="10" 
				VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__mbu2_id")))%>' READONLY> 
              <A href="javascript: goHelp('MBU2HELP','__mbu2_id');"  onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__group_quesid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)">
			  <img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__group_quesid_image" width="20" height="20" border="0" align="absmiddle" >
			  </a>	
              <INPUT TYPE="text"  NAME="__mbu2_tdesc" SIZE="50" 
			  VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__mbu2_tdesc")))%>' READONLY>
			</td>
	  </tr>
	   <tr>
			<td colspan="1" align="right"><b><script language="javascript">swapLang("Condition");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="checkbox" NAME="conPosition"  ONCLICK="clearCon('__positionid')"></td>
            <td align="right"><b><script language="javascript">swapLang("Position");</script>: &nbsp;</b></td>
            <td><INPUT TYPE="text"  NAME="__positionid" SIZE="10" 
				VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__positionid")))%>' READONLY> 
              <A href="javascript: goHelp('MPOSITIONHELP','__positionid');"  onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__group_quesid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)">
			  <img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__group_quesid_image" width="20" height="20" border="0" align="absmiddle" >
			  </a>	
              <INPUT TYPE="text"  NAME="__position" SIZE="50" 
			  VALUE = '<%=chkNull.chkNullString(thatUtils.ASCII2Unicode(request.getParameter("__position")))%>' READONLY>
			</td>
	  </tr>
	  <!--Search Button-->
	     <tr>
		  <td ></td>
		 <td  colspan="3" ><a href="javascript:searchVote1();"><img src="../IMAGES/BUTTON/SEARCH.gif" border="0"></a></td>
		  </tr>
</table>


<!--Display data from Table MVOTE_KKB1 -->
<table id='tblAS_VOTE_KKB' width="100%"  border="0" cellpadding="1" cellspacing="1" bgcolor="#666666" class='largest'>
<thead>
	<tr>
		<td width="2%" class="row3"><div align="center"><b>
			<script language="javascript">swapLang("Select");</script></b></div>
		</td>
		<td width="3%" class="row3"><div align="center"><b>
			<script language="javascript">swapLang("Seq");</script></b></div>
		</td> 
		<td width="8%" class="row3"><div align="center"><%=multi.getLabel("MVOTE_KKB1","VOTE1ID")%></div></td>  
		<td width="20%" class="row3"><div align="center"><b>
			<script language="javascript">swapLang("Full Name Vote1");</script></b></div>
		</td> 
		<td width="7%" class="row3"><div align="center"><b>
			<script language="javascript">swapLang("Nick Name");</script></b></div>
		</td> 
		<td width="20%" class="row3"><div align="center"><b>
			<script language="javascript">swapLang("BU1");</script></b></div></td>				
		<td width="20%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("BU2");</script></b></div></td>		
		<td width="20%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("Position");</script></b></div></td>
		<td width="10%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("Work Age");</script></b></div></td>
		<td width="10%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("VOTE1 IN BU1");</script></b></div></td>
		<td width="10%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("VOTE1 NOT BU1");</script></b></div></td>
		<td width="10%" class="row3"><div align="center"><b>
		<script language="javascript">swapLang("VOTE1 TOTAL");</script></b></div></td>
	</tr>
</thead>
	<tbody>
	   <%
	 
			String[] PositionAllow ={"P08","P09","P10","P11","P11/1","P12","P12/1","P13","P13/1","P13/2","P14","P15","P16"};
			boolean allow = false;
			screen.getTable("MVOTE_KKB1").first();
			int row=1;
			
			//out.print("1__cmd is:"+request.getParameter("__cmd"));
		/*	
		  if(request.getParameter("__cmd") != null && 
		   (request.getParameter("__cmd").equals("search")||
		    request.getParameter("__cmd").equals("del")||
		    request.getParameter("__cmd").equals("save"))) {
		*/
			//set Filte Position ?
			String conMbu1Id="";
			String conMbu2Id = "";
			String conPositionId ="";
			if(request.getParameter("__cmd") != null && request.getParameter("__cmd").equals("search")){
				conMbu1Id= request.getParameter("__mbu1_id");
				conMbu2Id = request.getParameter("__mbu2_id");
				conPositionId = request.getParameter("__positionid");
				//out.print("CON======"+conMbu1Id+";"+conMbu2Id+";"+conPositionId);
			 }//end if 

				for(int i=1;!multi.eof();i++){
					//setFilter ไม่แสดง ผู้assign ที่ลาออกไปแล้ว (ตอนได้รับการระบุเป็นผู้Assign อาจยังทำงานอยู่)
					if(multi.getDataLabel("MEMPLOYEE","STATUS").equalsIgnoreCase("A")){
						
						String curMbu1Id = multi.getDataLabel("MBU1","BU1ID");
						String curMbu2Id = multi.getDataLabel("MBU2","BU2ID");
						String curPosition = multi.getDataLabel("MPOSITION","POSITIONID");
					 	//out.print("CUR====="+curMbu1Id+";"+curMbu2Id+";"+curPosition);
							if(conMbu1Id.toString().equalsIgnoreCase("")||conMbu1Id.toString().equalsIgnoreCase(curMbu1Id)){
								allow = true;
								if(conMbu2Id.toString().equalsIgnoreCase("")||conMbu2Id.toString().equalsIgnoreCase(curMbu2Id)){
									allow = true;
									if(conPositionId.toString().equalsIgnoreCase("")||conPositionId.toString().equalsIgnoreCase(curPosition)){
										allow = true;
									}else{
										allow = false;
									}//end if conPositionId
								}else{
									allow = false;
								}//enf if conMbu2Id
							}else{
								allow = false;
							}//end if  check conMbu1Id
				 
						
						if(allow){	
		%>
		<tr>
			<td><div align="center"> 
				<input type="checkbox" name="<%=multi.getDataLabel("MVOTE_KKB1","VOTE1ID")%>"></div>
			</td>
			<td><div align="center"><%=row%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MVOTE_KKB1","VOTE1ID")%></div></td>
			<td>
				<div align="center"> 
					<a href="javascript:linkVote2('<%=multi.getDataLabel("MVOTE_KKB1","VOTE1ID")%> ')">
					<%=multi.getDataLabel("MEMPLOYEE","FULLNAME")%> 
					</a>
				</div>
			</td>
			<td><div align="center"><%=multi.getDataLabel("MEMPLOYEE","NICKNAME")%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MBU1","TDESC")%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MBU2","TDESC")%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MPOSITION","TDESC")%></div></td>
			<td><div align="center"><%
						String thWorkAge = multi.getDataLabel("MEMPLOYEE","empworkages");
						String newWorkAge = thWorkAge.replace(" ปี ","/");
								  newWorkAge = newWorkAge.replace(" เดือน ","/");
								  newWorkAge = newWorkAge.replace("วัน","");
						String[] workage=  newWorkAge.split("/");
						out.print(workage[0]+"/"+workage[1]);
					%>
				</div>
			</td>
			<!--fix for test -->
			<td><div align="center"><%=multi.getDataLabel("MVOTE_KKB1","INLINE")%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MVOTE_KKB1","OUTLINE")%></div></td>
			<td><div align="center"><%=multi.getDataLabel("MVOTE_KKB1","TOTAL")%></div></td>
		</tr>
		<%			
							row++;
						 }//end if 
						allow = false;
					}//end if
					multi.next();
				}//end for 
			//}//end if 		
		%>
	</tbody>
</table>
<table id='controlBtn' class='largest'>
	<tr>
		<td class="blankspace">
		<div align="center" >
			<a href="#" onClick="checkAll()"><img src="../IMAGES/BUTTON/SELECTALL.gif" border="0"></a>&nbsp;&nbsp;
			<a href="#" onClick="decheckAll()"><img src="../IMAGES/BUTTON/DESELECTALL.gif" border="0"></a>&nbsp;&nbsp;
			<a href="javascript:linkList();"><img src="../IMAGES/BUTTON/ADD.gif" border="0"></a>&nbsp;&nbsp;
			<a href="javascript:deleteMulti();"><img src="../IMAGES/BUTTON/DELETE.gif" border="0"></a>&nbsp;&nbsp;
		</div>
	</td>
    </tr>
 	<tr bordercolor="0069B3"> 
        <td class="bottom"></td>
    </tr>
	<!--========== SCRIPT SET VALUE ============-->
	<script language="javascript">setCheckBox();</script>
	<!--========== SCRIPT SET VALUE ============-->
  </table>

<!----------BEGIN CSC ENDING ZONE ------------------------>
<%=screen.endJSP()%>
<!----------END CSC ENDING ZONE -------------------------->

<%
	  }else{
	//ไม่มี ไม่ใช่ผู้ Assign ไม่สามารถใช้งานหน้าจอนี้ได้
%>
	
		<div  align='center'>
			<table>
				<tr align='center'>
					<td><img src='../IMAGES/nImage/window_lock.png' border="0"></td>
				</tr> 
				<tr align='center'>
					<td></br>คุณยังไม่ได้ถูกกำหนดให้เป็น ผู้ Assign ไม่สามารถใช้งานระบบงานนี้ได้</td>
				</td>
			</table>
		</div>
<%
	  }//end if 	
%>
<!--Nuiss Debug Zone>
 <div id='nuissCheck' style='border:1px solid green;width:200px;height:70px;visibility:hidden'>
		<input id='getTableName' value='<%//=multi.getTable().getTableName()%>'/>		
		<input id='recCount' value='<%//=multi.getTable().recCount()%>'/>		
		<input id='getChildTable' value='<%//=multi.getDataLabel("MEMPLOYEE","FNAME")%>'/>	
		<input id='getChildTable' value='<%//=multi.getDataLabel("MPOSITION","POSITIONID")%>'/>	
</div>
<Nuiss Debug Zone-->

</form>
</body>
</html>