123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>导入信息</title>
- <% String path = request.getContextPath(); %>
- <!--框架必需start 扁平风格-->
- <link href="<%=path%>/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link href="<%=path%>/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/nwyj/scripts/qui/" scrollerY="false" scrollerX="false"/>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/text/vticker.js"></script>
- <!--自动提示框start-->
- <script type='text/javascript' src='<%=path%>/scripts/qui/libs/js/form/suggestion.js'></script>
- <!--自动提示框end-->
- <!--数据表格start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/table/quiGrid.js" ></script>
- <!--数据表格end-->
- <!--表单提交start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/form.js"></script>
- <!--表单提交end-->
- <!--表单验证start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validation.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validationRule.js"></script>
- <!--表单提交end-->
- <!-- 数字步进器start -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/stepper.js"></script>
- <!-- 数字步进器end -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!--数据表格end-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
- <script src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts-more.js"></script>
- <!--弹窗组件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--布局组件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/layout.js"></script>
- <!--布局组件start-->
- <!--基本选项卡start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/basicTab.js"></script>
- <!--基本选项卡end-->
- <!--动态选项卡start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/dynamicTab.js"></script>
- <!--动态选项卡end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!--纵向抽屉容器start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/accordion.js"></script>
- <!--纵向抽屉容器end-->
- <!-- 双向选择器start -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/lister.js"></script>
- <!--双向选择器end-->
- <!--上传附件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/handlers.js"></script>
- <!-- 上传附件end -->
- <!--分隔条start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/spliter.js"></script>
- <!--分隔条end-->
- <!--浮动面板start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/floatPanel.js"></script>
- <!--浮动面板end-->
- <!-- 扩展工具js -->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/commom/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <!-- ZHL 2016-01-08 提交的附件js、css -->
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
- <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
- <!-- ZHL 2016-01-08 提交的附件js、css -->
- <!-- 模版js和css start-->
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style1.css"
- rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" selInputHeight="32"
- selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
- defaultFileInputWidth="200" defaultGridHeaderHeight="34"
- defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
- defaultFilterItemHeight="32" dialogWidthFix="0"
- defaultSelItemHeight="32" defaultFontFamily="宋体" />
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
- <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
- <!-- 模版js和css end-->
- <link href="<%=path%>/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="<%=path%>/scripts/showLoading/jquery.showLoading.js"></script>
- <!-- -->
- <script type="text/javascript" src="/nwyj/scripts/tongyongqui.js"></script>
- <style type="text/css">
- a:hover{
- text-decoration:underline;
- }
- </style>
- </head>
-
- <body>
- <form id="fileId" method="post" enctype="multipart/form-data" >
- <input type="hidden" name="classid" value="235"/>
- <div id="fileDiv"></div>
- <div style="width: 100%; text-align:center"><input value="保存" type="button" onclick="javascript:saveAlertNotice();"/> <input value="重置" type="reset" /><br/></div>
- </form>
- <div> <a href="/nwyj/excels/onAMDutyDemo.xls" class="red underline">点击这里</a>下载导入的excel数据模板</div>
- <div class="padding_top5"> 说明:导入的excel需要遵循规定的格式,且导入的文件不能超过40M!</div>
- </html>
- <script type="text/javascript">
- var errorMessage=["请选择文件!","请选择正确的Excel文件!","导入Excel文件与模版不匹配!","选择导入的文件不能超过40M!"];
- var ifmHeight = "<%=request.getParameter("ifmHeight")%>";
- $(function(){
- $('#fileDiv').getDutyUploadFileContent();
- $(parent.document.body).find("#frmright").height(ifmHeight);
- });
- function saveAlertNotice(){
- var fform = $("#fileId");
- myFileToSave(fform);
- };
- function myFileToSave($form){
- showProgressBar("正在提交中...");
- //表单异步提交处理
- $form.ajaxSubmit({
- //url:$.pathname() +"/ws/uploadForm/FileUpDownService/fileUpLoad",
- url:$.pathname() + "/ws/duty1/DutyRecordsService1/alertimportExcel",
- //表单提交成功后的回调
- success : function(responseText, statusText, xhr, $form) {
- responseText = eval("(" + responseText + ")");
- closeProgress();
- if(responseText.success == 'success'){
-
- $('#frmright',window.parent.document).attr('src',$.pathname()+'/page/business/am/duty/duty.jsp');
-
- top.Dialog.alert("导入成功!");
- top.frmright.closediag();
-
- }else{
-
- top.Dialog.alert(errorMessage[responseText.info]);
-
- }
- },error:function( xhr,textStatus,errorThrown){
- //alert(errorThrown);
- //alert(textStatus);
- top.Dialog.alert("导入失败!");
-
- }
- });
- }
- </script>
|