<?xml version="1.0" encoding="UTF-8"?>
<project name="project" basedir="." default="clean">
<property file="build.properties" />
<!-- classpath -->
<path id="classpath">
<fileset dir="${issapp.dir}/${lib.dir}">
<include name="**/*" />
</fileset>
</path>
<!--设置日期时间格式-->
<tstamp prefix="date">
<format property="time" pattern="yyyy年MM月dd日 HH:mm:ss" />
</tstamp>
<!--环境准备,删除旧目录,添加必要目录-->
<target name="init">
<delete dir="${tmpwsapp.dir}" />
<delete dir="${tmp.dir}" />
<delete file="${war.dir}/IssueWeb.war" />
<mkdir dir="${tmp.dir}" />
<mkdir dir="${tmpwsapp.dir}" />
</target>
<!--编译-->
<target name="compile" depends="init">
<javac srcdir="${dto.dir}/src" destdir="${tmp.dir}" encoding="UTF-8" debug="yes">
<classpath>
<path refid="classpath" />
</classpath>
<include name="**/*" />
</javac>
<javac srcdir="${issapp.dir}/src" destdir="${tmp.dir}" fork="true" memoryMaximumSize="512M" encoding="UTF-8" debug="yes">
<classpath>
<path refid="classpath" />
</classpath>
<include name="**/*" />
</javac>
<copy todir="${tmp.dir}">
<fileset dir="${issapp.dir}/${res.dir}">
<include name="**/*" />
</fileset>
</copy>
<copy todir="${tmp.dir}">
<fileset dir="${issapp.dir}/src">
<include name="**/*.xml" />
<include name="**/*.properties" />
</fileset>
</copy>
<copy todir="${tmpwsapp.dir}">
<fileset dir="${issweb.dir}/${webroot.dir}">
<include name="**/*" />
</fileset>
</copy>
<delete dir="${tmpwsapp.dir}/WEB-INF/classes" />
<copy todir="${tmpwsapp.dir}/WEB-INF/lib">
<fileset dir="${issapp.dir}/${lib.dir}">
<exclude name="**/cxf-manifest.jar" />
<exclude name="**/javax.servlet.jar" />
<exclude name="**/javax.servlet.jsp.jar" />
<exclude name="**/js-1.6R7.jar" />
</fileset>
</copy>
</target>
<target name="version" depends="compile">
<typedef resource="com/googlecode/svntask/svntask.xml">
<classpath>
<fileset dir="./lib">
<include name="svnkit.jar" />
<include name="svntask.jar" />
</fileset>
</classpath>
</typedef>
<svn>
<info path="${issapp.dir}" revisionProperty="revisionVersion" />
</svn>
<property name="version" value="${versiontext}${versionnumber}${revisionVersion}${timetext}${date.time}" />
<echo message="${version}" />
<copy todir="${tmpwsapp.dir}" overwrite="true" file="${issweb.dir}/${webroot.dir}/main.jsp" encoding="UTF-8" outputencoding="UTF-8">
<filterset>
<filter token="version" value="${version}" />
</filterset>
</copy>
</target>
<!--打war包-->
<target name="antwar" depends="version">
<war warfile="${war.dir}/IssueWeb.war" webxml="${tmpwsapp.dir}/WEB-INF/web.xml">
<classes dir="${tmp.dir}" />
<fileset dir="${tmpwsapp.dir}" />
</war>
</target>
<target name="clean" depends="antwar">
<copy todir="${end.dir}" file="${war.dir}/IssueWeb.war" />
<delete dir="${build.dir}" />
<mkdir dir="${build.dir}" />
<echo message="the end" />
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" basedir="." default="clean">
<property file="build.properties" />
<target name="build">
<!---->
<ant antfile="build-AccorReport.xml" />
<ant antfile="build-cardholder.xml" />
<ant antfile="build-issue.xml" />
<ant antfile="build-loy.xml" />
<ant antfile="build-manage.xml" />
<ant antfile="build-merchant.xml" />
<checksum file="${end.dir}/AccorReport.war" property="reportmd5" />
<checksum file="${end.dir}/CardHolderWeb.war" property="membermd5" />
<checksum file="${end.dir}/IssueWeb.war" property="issuemd5" />
<checksum file="${end.dir}/LoyaltyWeb.war" property="loymd5" />
<checksum file="${end.dir}/ManagementFrontEndWeb.war" property="managemd5" />
<checksum file="${end.dir}/MerchantWeb.war" property="merchantmd5" />
<echo message="AccorReport md5 : ${reportmd5}" />
<echo message="CardHolderWeb md5 : ${membermd5}" />
<echo message="IssueWeb md5 : ${issuemd5}" />
<echo message="LoyaltyWeb md5 : ${loymd5}" />
<echo message="ManagementFrontEndWeb md5 : ${managemd5}" />
<echo message="MerchantWeb md5 : ${merchantmd5}" />
<mkdir dir="${deploy.dir}" />
<copy todir="${deploy.dir}" overwrite="true" file="./src/md5.txt" encoding="UTF-8" outputencoding="UTF-8">
<filterset>
<filter token="reportmd5" value="${reportmd5}" />
<filter token="membermd5" value="${membermd5}" />
<filter token="issuemd5" value="${issuemd5}" />
<filter token="loymd5" value="${loymd5}" />
<filter token="managemd5" value="${managemd5}" />
<filter token="merchantmd5" value="${merchantmd5}" />
</filterset>
</copy>
<copy todir="${deploy.dir}">
<fileset dir="${war.dir}">
<include name="**/*.war" />
</fileset>
</copy>
<!--
<mkdir dir="${panyu.dir}" />
<copy todir="${panyu.dir}" overwrite="true" file="./src/md5.txt" encoding="UTF-8" outputencoding="UTF-8">
<filterset>
<filter token="reportmd5" value="${reportmd5}" />
<filter token="membermd5" value="${membermd5}" />
<filter token="issuemd5" value="${issuemd5}" />
<filter token="loymd5" value="${loymd5}" />
<filter token="managemd5" value="${managemd5}" />
<filter token="merchantmd5" value="${merchantmd5}" />
</filterset>
</copy>
<copy todir="${panyu.dir}">
<fileset dir="${war.dir}">
<include name="**/*.war" />
</fileset>
</copy>
-->
</target>
<target name="clean" depends="build">
<!-- sftp 上传 -->
<echo message="SFTP上传开始"/>
<scp port="19922" todir="${username}:${password}@${testServerIp}:${testServerPath}" trust="true">
<fileset dir="${war.dir}">
<include name="**/*.war" />
</fileset>
</scp>
<echo message="SFTP上传结束~ 开始重启服务"/>
<sshexec port="19922" host="${testServerIp}" username="${username}" password="${password}" trust="true" command="${command}" />
</target>
</project>
report.dir=../AccorReport
mem.dir=../CardHolderWeb
payment.dir=../PaymentWeb
issapp.dir=../IssueApp
issweb.dir=../IssueWeb
loy.dir=../LoyaltyWeb
manageapp.dir=../ManagementFrontEndApp
manageweb.dir=../ManagementFrontEndWeb
mer.dir=../MerchantWeb
dto.dir=../TransactionConnectivityApp
webroot.dir=WebRoot
webinf.dir=${webroot.dir}/WEB-INF
weblib.dir=${webinf.dir}/lib
lib.dir=lib
class.dir=${webinf.dir}/classes
res.dir=resources
build.dir=./build
tmp.dir=./build/tmp
tmpwsapp.dir=./build/tmpwsapp
war.dir=./war
versiontext \u7248\u672C\u53F7\:
timetext=\ | \u56FA\u5B9A\u65F6\u95F4\:
versionnumber=2.1.12.
end.dir=e\:\\war
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/ajax.jsp"%>
<html>
<head>
<title>yy</title>
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/css/menu.css" />
<script type="text/javascript" charset="utf-8">
Ext.BLANK_IMAGE_URL = 'widgets/ext/resources/images/default/s.gif';
var menuList = ${jsonList};
Ext.onReady(function(){
Ext.get('loading-mask').setOpacity(0.5,{duration:0.5,callback:function(){this.hide();}});
var nodeObject = new Array();
var rootNode;
if (menuList.length > 0) {
for(var i=0;i<menuList.length;i++){
if(parseInt(menuList[i]['fatherResourceId'])==0){
nodeObject[menuList[i]['resourceId']]=new Ext.tree.TreeNode({
id:menuList[i]['resourceId'],
text:menuList[i]['resourceName']
});
rootNode = nodeObject[menuList[i]['resourceId']];
}else{
switch (parseInt(menuList[i]['resourceType'])) {
case 1:
case 2: nodeObject[menuList[i]['resourceId']]=new Ext.tree.TreeNode({
id:menuList[i]['resourceId'],
text:menuList[i]['resourceName'],
URL:menuList[i]['resourceUrl'],
TYPE:menuList[i]['resourceType'],
listeners:{
"click":function(node){
if (node.attributes.TYPE == 2) {
maskDocAll();
var Cmp = Ext.getDom('mainFrame');
Cmp.src="${ctx}"+node.attributes.URL;
}
}
}
});
nodeObject[menuList[i]['fatherResourceId']].appendChild(nodeObject[menuList[i]['resourceId']]);
break;
}
}
}
} else {
rootNode=new Ext.tree.TreeNode({
id:-1,
text:"没有可查看的列表"
});
}
//生成树形面板
var menuTree = new Ext.tree.TreePanel({
split : true,
region : 'west',
autoScroll : true,
collapsible : true,
collapseFirst : false,
title: 'OPPA',
width:220,
root : rootNode
});
var bodyContent = new Ext.Viewport({
layout : 'border',
items : [menuTree, new Ext.BoxComponent({
region : 'north',
height : 70,
el : 'north'
}), new Ext.BoxComponent({
region : 'south',
height : 20,
el : 'south'
}),{region:'center',
deferredRender:false,
activeTab:0,
contentEl:'mainFrame',
margins:'0 0 0 0',
autoScroll:true,
title:'管理界面'
},menuTree],
renderTo : Ext.getBody()
});
menuTree.animate = false;
menuTree.expandAll();
menuTree.animate = true;
})
</script>
<iframe src="" width="100%" height="100%" frameborder="0" scrolling="auto" name="mainFrame" id="mainFrame" οnlοad="unmaskDocAll()"></iframe>
</head>
<body>
<div id="loading-mask">
<div id="loading">
<div class="loading-indicator">
<img src="${ctx}/images/extanim32.gif" width="32" height="32"
style="margin-right: 8px; float: left; vertical-align: top;" />
<br />
<span id="loading-msg">Loading ...</span>
</div>
</div>
</div>
<div id="north">
<div class=guide
style="background: url(images/header.png) no-repeat; height: 60px">
<div>
<span class=s3> 欢迎您:</span>
<span class=s3 style="FONT-WEIGHT: bold"> <security:authentication
property="name" /> </span> 当前时间:
<span id="dateSpan"> </span> |
<a οnclick="SetHome(this,window.location);" href="javascript:">设为首页</a>|
<a οnclick="AddFavorite(window.location,document.title)"
href="javascript:">加入收藏</a>|
<a href="#" οnclick="Ext.getDom('mainFrame').src='instal.jsp'">设置外设</a>|
<a href="${ctx}/j_spring_security_logout">重新登录</a> |
<a href="javascript:saveLogout();">安全退出</a>
<a href="#" οnclick="modify();">修改密码</a>
</div>
<br />
<div>
<span>默认所属机构(组)</span>
<select id="issuerSelect" name="issuerId"
οnchange="javascript:changeIssuer();">
<c:forEach items="${issuerGroup}" var="issuer">
<option style="padding-left: 15px" value="${issuer.key}">
${issuer.value}
</option>
</c:forEach>
</select>
</div>
</div>
</div>
<div id="south" align=center>
<table width=100% border=0 style="filter: alpha(opacity = 0);">
<tr>
<td width=20%>
<span id="timeconsume" style="position: relative"></span>
</td>
<td width=60% align=center>
<span style="position: relative">@version@</span>
</td>
<td width=20%></td>
</tr>
</table>
</div>
</body>
<script type="text/javascript">
<!--//
setInterval("Refresh()",1000);
window.onload = function() {
document.getElementById('dateSpan').innerHTML=new Date().toLocaleString();
}
function Refresh() {
document.getElementById("dateSpan").innerHTML=new Date().toLocaleString();
}
function AddFavorite(sURL, sTitle) {
try {
window.external.addFavorite(sURL, sTitle);
} catch (e) {
try {
window.sidebar.addPanel(sTitle, sURL, "");
} catch (e) {
alert("加入收藏失败,请使用Ctrl+D进行添加");
}
}
}
function SetHome(obj,vrl) {
try {
obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
} catch(e){
if(window.netscape) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("此操作被浏览器拒绝!\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',vrl);
}
}
}
function saveLogout() {
try {
window.opener=null;
window.open('','_self');
window.close();
} catch (e) {
}
}
function changeIssuer() {
var issuerIds=document.getElementById("issuerSelect");
var issuerId;
for(var i=0;i<issuerIds.length;i++){
if(issuerIds[i].selected==true){
issuerId=issuerIds[i].value;
}
}
ajaxRemote('mainMenu!changeIssuer.action',{'issuerId':issuerId},changeIssuerSuccess,'html');
}
function changeIssuerSuccess(data) {
if(data){
window.location="login.jsp";
return;
}
var Cmp = Ext.getDom('mainFrame');
if (Cmp.src.indexOf("mainMenu!initMenu.action") == -1) {
maskDocAll();
Cmp.src=Cmp.src;
}
}
function addBookmark(bookmarkurl,bookmarktitle) {
bookmarkurl="http://www.yy.com";
bookmarktitle="yy";
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
function modify(){
maskDocAll();
var Cmp = Ext.getDom('mainFrame');
Cmp.src="${ctx}/selfload.action";
}
function test(){
maskDocAll();
var Cmp = Ext.getDom('mainFrame');
Cmp.src="${ctx}/initSystemLog.action";
}
//-->
</script>
</html>