1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <%@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>
- <!--框架必需start-->
- <%@include file="../../../../include.jsp" %>
- <!--框架必需end-->
- <!-- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.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="../../../../../scripts/business/am/file/FileList_AM-import.js"></script>
- </head>
-
- <body style="height: 545px;overflow:auto; overflow-x:hidden;">
- <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>
- <form id="fillForm" >
- <table class="tableStyle" >
- <tr style="display: none;">
- <td>
- <input type="hidden" name="classid"
- value="260" required="true" />
- </tr>
- <tr>
- <td width="10%">选择导入文件:</td>
- <td width="80%">
- <input name="import" fileWidth="230" id="import" type="file" contenteditable="false" />
- </td>
- <td width="10%" align="center"><div id="sure"><input type="button" value="确定" onclick="submitInfo()"/></div></td>
- </tr>
- </table>
- </form>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- <script type="text/javascript">
- //导入方法
- function submitInfo() {
- addfn();
- initGrid(testData);
- };
-
- //保存
- function fileToSave($form,listGrid,msg){
- //showProgressBar("正在提交中...");
- //表单异步提交处理
- $form.ajaxSubmit({
- url:$.pathname() + "/ws/ExcelExpert/ReadExcelToDBTableTool/importExpert",
- //type : 'post',
- timeout : 15000,
- async: false,
- dataType : 'json',
- success : function(data) {
-
- testData = data;
- },
- error : function(e) {
- $.messager.alert('查询失败!', '访问服务失败!', 'error');
- }
- });
-
- }
- //导入excle
- function addfn() {
- var $form = $("#fillForm");
- fileToSave($form,'','');
-
- };
- </script>
- </body>
- </html>
|