COBRANCHLIST.jsp 3.55 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
<!DOCTYPE html>
<%@page import="com.csc.library.utilities.*,com.csc.library.session.*"%>
<%@page contentType="text/html; charset=UTF-8" language="java" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	UProfile up = null;

	if(session != null ) {
		up = (UProfile)session.getAttribute("userprofile");
	}
	if( up == null ){
		return;
	}
%>
<html ng-app="myHR">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" href="../CSS/Bootstrap/css/bootstrap.css">
		<script type='text/javascript' src='../JS/SCREEN.js'></script>
		<script TYPE='text/JavaScript' src="../JS/jquery-2.1.3.min.js"></script>
		<script type='text/javascript' src="../JS/angular-1.3.15/angular.js"></script>
		<script type='text/javaScript' src='../JS/ANGULAR/SWAPLANG.js'></script>
		<style>
			.branchlist{
				width:80%;
			}
			iframe{
				width:100%;
				height:800px;
			}
			.btn-primary{
				float:right !important;
				margin-right:10px;
			}
		</style>
		<script type="text/javascript">
			setLang("<%=up.get("lang")%>");
			
			function goExport(){
				with(document.cscform){
					var param = "COBRANCHLIST_PRE_EXPORT.jsp?";
					win = window.open(param,"Extention","left=150,top=150,width=800,height=400,resizable=yes,scrollbars=yes,toolbar=no,status=yes");
					if(window.focus){win.focus();}
				}
			}
		</script>
	</head>
	<body leftmargin="0" topmargin="0"  onLoad="MM_preloadImages('IMAGES/BUTTON/SWAP/SEARCH_SWAP24.gif','IMAGES/BUTTON/SWAP/EXIT_SWAP24.gif','IMAGES/BUTTON/SWAP/HELP_SWAP24.gif','IMAGES/BUTTON/SWAP/NEW_SWAP24.gif','IMAGES/BUTTON/SWAP/EDIT_SWAP24.gif','IMAGES/BUTTON/SWAP/DEL_SWAP24.gif','IMAGES/BUTTON/SWAP/PROCESS_SWAP24.gif','IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif')">
		<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
		<script language="javascript">initToolTips();</script>

		<div class="centered">
			<form name="cscform" method="post">
				<input type="hidden" name="__cmd" value="">
				<input type="hidden" name="__screen" value="NEWS_SETUP"> 
				<input type="hidden" name="__calendar" value="">
				<input type="hidden" name="__help" value="">
				<br>
				<table class="branchlist">
					<tr>
						<td class="header" colspan="2" >COBRANCHLIST ,<script language="javascript">swapLang('Company Structure');</script>&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2">
							<a class="btn btn-primary" onclick="goExport();" swlang code="SW003556">Export</a>
						</td>
					</tr>
					<tr>
						<td>
							<iframe src="ALLBRANCHLIST.jsp" id="AllBranchList">
							</iframe>
						</td>
						<td>
							<iframe id="AllEmpList">
							</iframe>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<script type="text/javascript">
			$(document).ready(function(){
				var nowbranch="";
				$("#AllBranchList").load(function(){
					
					$("#AllBranchList").contents().find(".branch-root").click(function(){
						nowbranch = $(this).data("branch");
					});

					
					$("#AllBranchList").contents().find(".tree-nochild").click(function(){

						var positionid="",bu1="",bu2="",bu3="",bu4="",bu5="";
						positionid = $(this).data("positid");
						bu1 = $(this).data("bu1");
						bu2 = $(this).data("bu2");
						bu3 = $(this).data("bu3");
						bu4 = $(this).data("bu4");
						bu5 = $(this).data("bu5");
						nowbranch = $(this).data("branching");
						$("#AllEmpList").attr("src","ALLEMPLIST.jsp?branch="+nowbranch+"&positid="+positionid+"&bu1="+bu1+"&bu2="+bu2+"&bu3="+bu3+"&bu4="+bu4+"&bu5="+bu5);
					});
				});
			});
		</script>
	</body>
</html>