0da4b827dbe10400d8d633e0987c6d7bf9269ddf.svn-base 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <!--框架必需start-->
  8. <%@include file="../../../../include.jsp" %>
  9. <!--框架必需end-->
  10. <!-- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
  11. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  12. positionTarget="positionContent" selInputHeight="32"
  13. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  14. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  15. defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
  16. defaultFilterItemHeight="32" dialogWidthFix="0"
  17. defaultSelItemHeight="32" defaultFontFamily="宋体" /> -->
  18. <script type="text/javascript" src="../../../../../scripts/business/am/file/FileList_AM-import.js"></script>
  19. </head>
  20. <body style="height: 545px;overflow:auto; overflow-x:hidden;">
  21. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack()"></img></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;">导入日常制度文件</font></div>
  22. <form id="fillForm" >
  23. <table class="tableStyle" >
  24. <tr style="display: none;">
  25. <td>
  26. <input type="hidden" name="classid"
  27. value="260" required="true" />
  28. </tr>
  29. <tr>
  30. <td width="10%">选择导入文件:</td>
  31. <td width="80%">
  32. <input name="import" fileWidth="230" id="import" type="file" contenteditable="false" />
  33. </td>
  34. <td width="10%" align="center"><div id="sure"><input type="button" value="确定" onclick="submitInfo()"/></div></td>
  35. </tr>
  36. </table>
  37. </form>
  38. <div class="padding_right5">
  39. <div id="maingrid"></div>
  40. </div>
  41. <script type="text/javascript">
  42. //导入方法
  43. function submitInfo() {
  44. addfn();
  45. initGrid(testData);
  46. };
  47. //保存
  48. function fileToSave($form,listGrid,msg){
  49. //showProgressBar("正在提交中...");
  50. //表单异步提交处理
  51. $form.ajaxSubmit({
  52. url:$.pathname() + "/ws/ExcelExpert/ReadExcelToDBTableTool/importExpert",
  53. //type : 'post',
  54. timeout : 15000,
  55. async: false,
  56. dataType : 'json',
  57. success : function(data) {
  58. testData = data;
  59. },
  60. error : function(e) {
  61. $.messager.alert('查询失败!', '访问服务失败!', 'error');
  62. }
  63. });
  64. }
  65. //导入excle
  66. function addfn() {
  67. var $form = $("#fillForm");
  68. fileToSave($form,'','');
  69. };
  70. </script>
  71. </body>
  72. </html>