5cb042b451453cc069296b620ce9f37872065a0d.svn-base 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>导入信息</title>
  7. <% String path = request.getContextPath(); %>
  8. <!--框架必需start 扁平风格-->
  9. <link href="<%=path%>/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  10. <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"/>
  11. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/framework.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/main.js"></script>
  15. <!--框架必需end-->
  16. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/text/vticker.js"></script>
  17. <!--自动提示框start-->
  18. <script type='text/javascript' src='<%=path%>/scripts/qui/libs/js/form/suggestion.js'></script>
  19. <!--自动提示框end-->
  20. <!--数据表格start-->
  21. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/table/quiGrid.js" ></script>
  22. <!--数据表格end-->
  23. <!--表单提交start-->
  24. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/form.js"></script>
  25. <!--表单提交end-->
  26. <!--表单验证start-->
  27. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validation.js"></script>
  28. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validationRule.js"></script>
  29. <!--表单提交end-->
  30. <!-- 数字步进器start -->
  31. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/stepper.js"></script>
  32. <!-- 数字步进器end -->
  33. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
  34. <!--数据表格end-->
  35. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
  36. <script src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts-more.js"></script>
  37. <!--弹窗组件start-->
  38. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/messager.js"></script>
  39. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
  40. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
  41. <!--弹窗组件end-->
  42. <!--布局组件start-->
  43. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/layout.js"></script>
  44. <!--布局组件start-->
  45. <!--基本选项卡start-->
  46. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/basicTab.js"></script>
  47. <!--基本选项卡end-->
  48. <!--动态选项卡start-->
  49. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/dynamicTab.js"></script>
  50. <!--动态选项卡end-->
  51. <!--树组件start-->
  52. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" />
  53. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  54. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/selectTree.js"></script>
  55. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/listerTree.js"></script>
  56. <!--树组件end-->
  57. <!--纵向抽屉容器start-->
  58. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/accordion.js"></script>
  59. <!--纵向抽屉容器end-->
  60. <!-- 双向选择器start -->
  61. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/lister.js"></script>
  62. <!--双向选择器end-->
  63. <!--上传附件start-->
  64. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
  65. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/handlers.js"></script>
  66. <!-- 上传附件end -->
  67. <!--分隔条start-->
  68. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/spliter.js"></script>
  69. <!--分隔条end-->
  70. <!--浮动面板start-->
  71. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/floatPanel.js"></script>
  72. <!--浮动面板end-->
  73. <!-- 扩展工具js -->
  74. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  75. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  76. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  77. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  78. <script type="text/javascript" src="<%=path%>/scripts/commom/common/common.js"></script>
  79. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  80. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  81. <!-- ZHL 2016-01-08 提交的附件js、css -->
  82. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
  83. <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
  84. <!-- ZHL 2016-01-08 提交的附件js、css -->
  85. <!-- 模版js和css start-->
  86. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style1.css"
  87. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  88. positionTarget="positionContent" selInputHeight="32"
  89. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  90. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  91. defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
  92. defaultFilterItemHeight="32" dialogWidthFix="0"
  93. defaultSelItemHeight="32" defaultFontFamily="宋体" />
  94. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
  95. <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
  96. <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
  97. <!-- 模版js和css end-->
  98. <link href="<%=path%>/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
  99. <script type="text/javascript" src="<%=path%>/scripts/showLoading/jquery.showLoading.js"></script>
  100. <!-- -->
  101. <script type="text/javascript" src="/nwyj/scripts/tongyongqui.js"></script>
  102. <style type="text/css">
  103. a:hover{
  104. text-decoration:underline;
  105. }
  106. </style>
  107. </head>
  108. <body>
  109. <form id="fileId" method="post" enctype="multipart/form-data" >
  110. <input type="hidden" name="classid" value="235"/>
  111. <div id="fileDiv"></div>
  112. <div style="width: 100%; text-align:center"><input value="保存" type="button" onclick="javascript:saveAlertNotice();"/>&nbsp;&nbsp;<input value="重置" type="reset" /><br/></div>
  113. </form>
  114. <div>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/nwyj/excels/onAMDutyDemo.xls" class="red underline">点击这里</a>下载导入的excel数据模板</div>
  115. <div class="padding_top5">&nbsp;&nbsp;&nbsp;&nbsp;说明:导入的excel需要遵循规定的格式,且导入的文件不能超过40M!</div>
  116. </html>
  117. <script type="text/javascript">
  118. var errorMessage=["请选择文件!","请选择正确的Excel文件!","导入Excel文件与模版不匹配!","选择导入的文件不能超过40M!"];
  119. var ifmHeight = "<%=request.getParameter("ifmHeight")%>";
  120. $(function(){
  121. $('#fileDiv').getDutyUploadFileContent();
  122. $(parent.document.body).find("#frmright").height(ifmHeight);
  123. });
  124. function saveAlertNotice(){
  125. var fform = $("#fileId");
  126. myFileToSave(fform);
  127. };
  128. function myFileToSave($form){
  129. showProgressBar("正在提交中...");
  130. //表单异步提交处理
  131. $form.ajaxSubmit({
  132. //url:$.pathname() +"/ws/uploadForm/FileUpDownService/fileUpLoad",
  133. url:$.pathname() + "/ws/duty1/DutyRecordsService1/alertimportExcel",
  134. //表单提交成功后的回调
  135. success : function(responseText, statusText, xhr, $form) {
  136. responseText = eval("(" + responseText + ")");
  137. closeProgress();
  138. if(responseText.success == 'success'){
  139. $('#frmright',window.parent.document).attr('src',$.pathname()+'/page/business/am/duty/duty.jsp');
  140. top.Dialog.alert("导入成功!");
  141. top.frmright.closediag();
  142. }else{
  143. top.Dialog.alert(errorMessage[responseText.info]);
  144. }
  145. },error:function( xhr,textStatus,errorThrown){
  146. //alert(errorThrown);
  147. //alert(textStatus);
  148. top.Dialog.alert("导入失败!");
  149. }
  150. });
  151. }
  152. </script>