123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444 |
- <!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>
- <link rel="stylesheet" type="text/css"
- href="../../../../scripts/qui/libs/css/import_basic.css" />
- <link rel="stylesheet" type="text/css" id="skin"
- prePath="../../../../scripts/qui/" scrollerY="false" />
- <link rel="stylesheet" type="text/css" id="customSkin" />
- <script type="text/javascript" src="../../../../scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="../../../../scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/text/vticker.js"></script>
- <!--自动提示框end-->
- <!--数据表格start-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/table/quiGrid.nomin.js"></script>
- <!--数据表格end-->
- <!--表单提交start-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/form/form.js"></script>
- <!--表单提交end-->
- <!--表单验证start-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/form/validation.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/form/validationRule.js"></script>
- <!--表单提交end-->
- <!--数据表格end-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
- <!--弹窗组件start-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--布局组件start-->
- <!-- 扩展工具js -->
- <script type="text/javascript"
- src="../../../../scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript"
- src="/nwyj/scripts/freamwork/com/sinosoft/common/common.nomin.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
- <script type="text/javascript"
- src="../../../../scripts/commom/common/common.js"></script>
- <script type="text/javascript" src="../../../../scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <!--浮动面板start-->
- <script type="text/javascript"
- src="../../../../scripts/qui/libs/js/popup/floatPanel.js"></script>
- <!--浮动面板end-->
- <link href="/nwyj/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="../../../../scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/showLoading/jquery.showLoading.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/em/report/addDo.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/em/report/objOperate.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/em/report/check.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/business/em/report/getRole.js"></script>
- <script type="text/javascript" src="../../../../scripts/business/em/report/import_report.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/setiframeheight.js"></script>
- <script type="text/javascript" src="../../../../scripts/business/em/report/exportExcel.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
- <!-- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/swidth.js"></script> -->
- <style type="text/css">
- body{
- padding:0px;
- margin:0px;
- }
- .title_msg {
- width: 80%;
- height:50px;
- line-height:50px;
- font-family: "微软雅黑";
- text-align:center;
- font-size:20px;
- font-weight: bold;
- color:#3e62a0;
- margin: 0 auto;
- /* border-bottom: 1px solid #cdcaca; */
- /* background-color: #f8f8f8; */
- }
- .pic{
- width:30px;
- height:30px;
- position:absolute;
- left:1.3%;
- margin-top: -40px;
- }
-
-
- .l-grid-row-cell-inner{
- font-size: 12px;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
-
- .selectfile{
-
- margin:20px 0 0 20px;
- font-size:14px;
- }
- *{
- font-size:14px;
- }
- .download{
- margin-left: 65%;
- margin-top:-2.8%;
- }
-
- .show{
- position: relative;
- left:1200px;
-
- width:50px;
- bottom:35px;
- }
-
- .l-grid-hd-cell{
- height: 34px;
- background-color: #5582b9;
- }
- .l-grid-header-table{
- background-color: #5582b9;
- }
-
- .l-grid-header-inner{
- width: 1261px;
- background-color: #5582b9;
- }
-
- .l-grid-hd-cell{
- background-color: #5582b9;
- height: 40px;
- }
- .l-grid-hd-cell {
- height: 50px;
- }
- inline style{
- height: 50px;
- }
-
- .l-grid-header-multi{
- background-color:#5582b9 ! important ;
- }
- .l-grid-hd-mul span{
- margin: 5px 0;
- }
- .l-grid-hd-cell-text{
- color:white
- }
-
- .l-toolbar{
- height: 30px
- }
- .l-panel-btn{
- height: 28px
- }
-
- .l-grid-header{
- background-color:#5582b9 ! important ;
- }
-
- .button{
- min-width: 90px;
- }
-
-
- .buttonTable{
-
- margin: 10px 10px 0 65%;
- width:380px;
-
- }
- .box1{
- margin-top: 10px;
- }
-
- .showMore{
- margin-left:88%;
- width:50px;
- margin-top:10px;
-
- }
-
-
- .more_show,.more_hide{
- font-family: "微软雅黑";
- font-size: 14px;
- color: #0388d4;
- }
- .title{
- color:#1b1b1b;
- font-size:14px;
- float:left;
- font-weight:bold;
- width:120px;
- font-family: "宋体";
- margin-top: -2%;
- margin-left: 20px;
- }
-
- .line{
- border-bottom: 1px solid #cdcaca;
- }
-
- .areaSel{
- display: none;
- }
-
-
- .spanData{
- font-family: "宋体";
- font-size: 14px;
- color:#000000;
- width:75px;
- height:30px;
- line-height:30px;
- border: 1px solid #d3dbde;
- text-align: center;
- border-radius:5px;
- background-color: #f4f7f8;
- clear: both;
- display:inline-block;
- text-align:center;
- /* margin-left:10px */
-
- }
- .spanData{
- min-width:100%;
- }
-
- .spanData:HOVER {
- cursor: pointer;
- background-color: #3c95c8;
- }
- </style>
- <script type="text/javascript">
- //导入方法
- function submitInfo() {
- if(num%2!=0){
- flag =false;
- $("#handlerinfo").text("开启填写详情");
- num=2;
- }
- var val= $("#import_report").val().trim();
- var end = val.substring(val.lastIndexOf(".")+1);
-
- if(val==""||val==null){
- top.Dialog.alert("请导入excel文件");
- return;
- }
-
- if(end=="xls"||end=="xlsx"){
- addfn();
- }else{
- top.Dialog.alert("请导入正确的excel文件");
- return;
- }
- };
- //保存
- function fileToSave($form,listGrid,msg){
- var corpId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- $("body").eq(0).showLoading();
- var report_type=$('#report_type').val();
-
- //表单异步提交处理
- $form.ajaxSubmit({
- type: 'post',
- url:$.pathname() +"/ws/xianlutingyun/XianlutingyunService/importXianlutingyun?report_type="+report_type+"&comp_names="+encodeURI(encodeURI(compNames))+"&roleId="+role_id+"&corp_id="+corpId,
- //表单提交成功后的回调
- success: function(responseText, statusText, xhr, $form){
-
- $("body").eq(0).hideLoading();
- if(responseText=='{"rows":}'){
-
- top.Dialog.alert("请选择正确的文件导入");
-
- }else if(responseText=='{"rows":[{}]}'){
-
-
- top.Dialog.alert("请选择正确的文件导入");
- }
-
- else{
- responseText=decodeURI(responseText).replace(/\n/g,'');
- responseText = eval('('+decodeURI(responseText)+')');
- var data = JSON.stringify(responseText);
-
- g.options.data=responseText;
- g.loadData();
- }
- }
- });
- }
- //导入excle
- function addfn() {
- var $form = $("#fillForm");
- $("#report_type").val($("#sel").val());
- /* $("#comp_names").val(compNames); */
- fileToSave($form,'','');
- };
-
- </script>
- </head>
- <body>
- <input type="hidden" id="wrongNum">
- <div class="box1"panelWidth="100%" panelHeight="100%">
- <div class="title_msg" id="add">报表导入</div>
- <div class="line"></div>
- <div class="pic" onclick="goback();" id="go">
- <img alt="返回" title="返回" src="/nwyj/images/temp/back.png" id="back">
- </div>
- <form id="fillForm" method="post" enctype="multipart/form-data">
- <input type="hidden" name="classid" value="438" required="true" />
- <input type="hidden" name="report_type" id="report_type" />
- <!-- <input type="hidden" name="comp_names" id="comp_names"/> -->
-
- <table class="buttonTable">
- <tr>
- <td>
- <!-- <span onclick="save('save');" class="spanData">保存</span> -->
- <input type="button" value="保存" onclick="save('save');" class="spanData"/>
- </td>
- <td>
- <!-- <span onclick="save('send')" class="spanData">保存并上报</span> -->
- <input type="button" value="保存并上报" onclick="save('send')" class="spanData"/>
- </td>
- <td>
- <!-- <span onclick="clear_msg();" class="spanData">重置</span> -->
- <input type="button" value="重置" onclick="clear_msg();" class="spanData"/>
- </td>
- <td>
- <!-- <span onclick="print();" class="spanData">打印</span> -->
- <input type="button" value="打印" onclick="print();" class="spanData"/>
- </td>
- </tr>
- </table>
- <div class="showMore">
- <a href="javascript:void(0)"><span id="more" onclick="more()" class="more_hide">隐藏</span></a>
- </div>
- <div class="title">功能面板</div>
- <fieldset style="margin:0 20px 20px 20px; width:95%;text-align: center;clear: both;" id="moretable">
- <div >
- <table align="left" style="margin-top:-15px;">
- <tr style="height:15px;" >
- <td colspan="7" ></td>
- </tr>
- <tr align="left">
- <td >选择报表模版:</td>
- <td><select id="sel" name="sel" onchange="change();"></select></td>
- <td style="width:2%"></td>
- <td>选择事件类别:</td>
- <td><select id="affairType" prompt="请选择"></select></td>
- <td style="width:2%"></td>
- <td style="display:none;">选择填报计划:</td>
- <td style="display:none;"><select id="warning" prompt="请选择" onchange="getPlan();"></select></td>
- <td style="width:3%" class="areaSel"></td>
- <td class="areaSel">区域选择:</td>
- <td class="areaSel"><select id="areaSel" prompt="请选择" ></select></td>
- </tr>
- </table>
- </div>
- </fieldset>
- <div class="selectfile">
- <table>
- <tr>
- <td>选择导入文件:</td>
- <td><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
- </tr>
- </table>
- </div>
- </form>
- <div class="download" >
- <input type="submit" value="确定" onclick=" submitInfo()"/>
- <input type="button" value="下载模版" onclick="getModels();"/>
- </div>
-
-
-
- <div id="showRequire" style="display: none; position: relative; left:90%;top:20px;margin:20px 0;"><a href="javascript:showTable();">隐藏报表填报要求</a></div>
- <table class="tableStyle" style="display: none; position: relative;top:15px;width:97%;margin:15px 20px;" id="showplan">
- <thead>
- <tr>
- <td colspan="8" align="center">报表填报要求</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td align="center" width="5%">起始日期:</td>
- <td width="15%" align="center"><div id="star_time" ></div></td>
- <td align="center" width="10%">截止日期:</td>
- <td width="15%" align="center"><div id="end_time"></div></td>
- <td align="center" width="10%">填报时间表:</td>
- <td width="15%" align="center"><div id="type"></div></td>
- <td align="center" width="5%" class="round_time" style="display: none;" align="center">每日:</td>
- <td class="round_time" style="display: none;" width="15%" align="center"><div id="round"></div></td>
- <td style="display: none;" class="temporary_time" align="center" width="10%">填报时间:</td>
- <td style="display: none;" class="temporary_time" align="center"><div id="temporary" width="15%"></div></td>
- </tr>
- <tr id="yjb" style="display: none;">
- <td align="center" width="10%">系统运行部:</td>
- <td width="13%" align="left"><div id="sysDept"></div></td>
- <td align="center" width="10%">生产设备部:</td>
- <td width="13%" align="left"><div id="equipmentDept"></div></td>
- <td align="center" width="10%">市场营销部:</td>
- <td width="13%" align="left"><div id="markingDept"></div></td>
- <td align="center" width="10%">安全监管部:</td>
- <td width="13%" align="left"><div id="safeyDept"></div></td>
- </tr>
- <tr id="zygl" style="display: none">
- <td align="center" width="6%" id="deptRole"></td>
- <td align="left" colspan="7"><div id="showTables"></div></td>
- </tr>
- </tbody>
- </table>
- <div id="maingrid" class="clears" style="margin-top: 30px"></div>
- <div id="maingrid2" style="display: none;margin-top: 30px;min-height:400px;" class="clears"></div>
- </div>
- <div id="tianXie_con">
- <div style="width:100%;" id="requires"></div>
- <div style="width:100%; display:none;" id="changerequire"></div>
- </div>
- <div style="height:30px;width:100% ;"></div>
- </body>
- </html>
|