HrmBasicDataImportLog.jsp
3.88 KB
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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%
/*已在外部控制
if (!HrmUserVarify.checkUserRight("HrmResourceEdit:Edit",user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}*/
%>
<HTML>
<HEAD>
<%
String imagefilename = "/images/hdHRMCard_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(17887, user.getLanguage());
String needfav = "1";
String needhelp = "";
String importtype = Util.null2String(request.getParameter("importtype"));
%>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<style type="text/css">
#myloading{
position:absolute;
left:35%;
background:#ffffff;
top:40%;
padding:8px;
z-index:20001;
height:auto;
border:1px solid #ccc;
}
</style>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script type="text/javascript">
var parentWin = parent.parent.getParentWindow(parent);
var dialog = parent.parent.getDialog(parent);
var index = 0;
var timeId;
jQuery(document).ready(function(){
timeId=window.setInterval(getData,2000); //定时读取
function getData(){
jQuery.get("HrmBasicDataImportLogData.jsp?index="+index,function(data){
jQuery(".ListStyle").children("TBODY").append(data);
});
}
jQuery(".e8_sep_line").hide();
})
function changeIndex(resultIndex){
index=resultIndex;
}
function callback(message,logFile){
window.clearInterval(timeId);
$("#myloading").css("display","none");
if(message=='ok'){
jQuery("#logFile").val(logFile);
parent.setTabObjName('<%=SystemEnv.getHtmlLabelName(24645, user.getLanguage())%>');
dialog.Title='<%=SystemEnv.getHtmlLabelName(24645, user.getLanguage())%>';
if(logFile!='null'){
jQuery("#btnDownLoadLog").show();
jQuery(".e8_sep_line").show();
}
try{
if('<%=importtype%>'=='area'){
parentWin.afterreload();
}
}catch(e){
}
}
}
function downLoadLog(){
jQuery("#downLoad").attr("src","HrmBasicDataImportHistoryLog.jsp?option=downLoad&path="+encodeURI(jQuery("#logFile").val()));
}
</script>
</HEAD>
<div class="zDialog_div_content">
<body>
<input id="logFile" name="logFile" type="hidden" value="">
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td>
</td>
<td class="rightSearchSpan" style="text-align:right;">
<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
</td>
</tr>
</table>
<TABLE id="messageTable" class=ListStyle cellspacing=1>
<TBODY>
<TR class=HeaderForXtalbe>
<th width="30%"><%=SystemEnv.getHtmlLabelName(104,user.getLanguage())%></th>
<th width="70%"><%=SystemEnv.getHtmlLabelName(24960,user.getLanguage())%></th>
</TR>
</TBODY>
</TABLE>
</div>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout type="2col">
<wea:group context="">
<wea:item type="toolbar">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(309,user.getLanguage())%>" id="zd_btn_cancle" class="zd_btn_cancle" onclick="dialog.close();">
<input id="btnDownLoadLog" type="button" value="<%=SystemEnv.getHtmlLabelNames("24835,258", user.getLanguage())%>" id="zd_btn_cancle" class="zd_btn_cancle" onclick="downLoadLog()" style="display: none;">
</wea:item>
</wea:group>
</wea:layout>
</div>
<div id="myloading">
<span id="loading-msg"><img src="/images/loading2_wev8.gif"><%=SystemEnv.getHtmlLabelName(20904, user.getLanguage())%></span>
</div>
<iframe id="downLoad" src="" style="display: none;"></iframe>
<script type="text/javascript">
jQuery(document).ready(function(){
resizeDialog(document);
});
</script>
</body>
</html>