f6f02bc7e25d9b25aa9fc3ed4e1b232f8c65b5b2.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>导入报表</title>
  6. <link rel="stylesheet" type="text/css"
  7. href="../../../../scripts/qui/libs/css/import_basic.css" />
  8. <link rel="stylesheet" type="text/css" id="skin"
  9. prePath="../../../../scripts/qui/" scrollerY="false" />
  10. <link rel="stylesheet" type="text/css" id="customSkin" />
  11. <script type="text/javascript" src="../../../../scripts/qui/libs/js/jquery.js"></script>
  12. <script type="text/javascript"
  13. src="../../../../scripts/qui/libs/js/language/cn.js"></script>
  14. <script type="text/javascript"
  15. src="../../../../scripts/qui/libs/js/framework.js"></script>
  16. <script type="text/javascript" src="../../../../scripts/qui/libs/js/main.js"></script>
  17. <!--框架必需end-->
  18. <script type="text/javascript"
  19. src="../../../../scripts/qui/libs/js/text/vticker.js"></script>
  20. <!--自动提示框end-->
  21. <!--数据表格start-->
  22. <script type="text/javascript"
  23. src="../../../../scripts/qui/libs/js/table/quiGrid.nomin.js"></script>
  24. <!--数据表格end-->
  25. <!--表单提交start-->
  26. <script type="text/javascript"
  27. src="../../../../scripts/qui/libs/js/form/form.js"></script>
  28. <!--表单提交end-->
  29. <!--表单验证start-->
  30. <script type="text/javascript"
  31. src="../../../../scripts/qui/libs/js/form/validation.js"></script>
  32. <script type="text/javascript"
  33. src="../../../../scripts/qui/libs/js/form/validationRule.js"></script>
  34. <!--表单提交end-->
  35. <!--数据表格end-->
  36. <script type="text/javascript"
  37. src="../../../../scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
  38. <!--弹窗组件start-->
  39. <script type="text/javascript"
  40. src="../../../../scripts/qui/libs/js/popup/messager.js"></script>
  41. <script type="text/javascript"
  42. src="../../../../scripts/qui/libs/js/popup/drag.js"></script>
  43. <script type="text/javascript"
  44. src="../../../../scripts/qui/libs/js/popup/dialog.js"></script>
  45. <!--弹窗组件end-->
  46. <!--布局组件start-->
  47. <!-- 扩展工具js -->
  48. <script type="text/javascript"
  49. src="../../../../scripts/jquery/plugins/jquery.extension.util.js"></script>
  50. <script type="text/javascript"
  51. src="../../../../scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  52. <script type="text/javascript"
  53. src="/nwyj/scripts/freamwork/com/sinosoft/common/common.nomin.js"></script>
  54. <script type="text/javascript"
  55. src="../../../../scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  56. <script type="text/javascript"
  57. src="../../../../scripts/commom/common/common.js"></script>
  58. <script type="text/javascript" src="../../../../scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  59. <!--浮动面板start-->
  60. <script type="text/javascript"
  61. src="../../../../scripts/qui/libs/js/popup/floatPanel.js"></script>
  62. <!--浮动面板end-->
  63. <link href="/nwyj/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
  64. <script type="text/javascript" src="../../../../scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
  65. <script type="text/javascript" src="/nwyj/scripts/showLoading/jquery.showLoading.js"></script>
  66. <script type="text/javascript" src="/nwyj/scripts/business/em/report/addDo.js"></script>
  67. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  68. <script type="text/javascript" src="/nwyj/scripts/business/em/report/objOperate.js"></script>
  69. <script type="text/javascript" src="/nwyj/scripts/business/em/report/check.js"></script>
  70. <script type="text/javascript" src="/nwyj/scripts/business/em/report/getRole.js"></script>
  71. <script type="text/javascript" src="../../../../scripts/business/em/report/import_report.js"></script>
  72. <script type="text/javascript" src="/nwyj/scripts/setiframeheight.js"></script>
  73. <script type="text/javascript" src="../../../../scripts/business/em/report/exportExcel.js"></script>
  74. <script type="text/javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
  75. <!-- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/swidth.js"></script> -->
  76. <style type="text/css">
  77. body{
  78. padding:0px;
  79. margin:0px;
  80. }
  81. .title_msg {
  82. width: 80%;
  83. height:50px;
  84. line-height:50px;
  85. font-family: "微软雅黑";
  86. text-align:center;
  87. font-size:20px;
  88. font-weight: bold;
  89. color:#3e62a0;
  90. margin: 0 auto;
  91. /* border-bottom: 1px solid #cdcaca; */
  92. /* background-color: #f8f8f8; */
  93. }
  94. .pic{
  95. width:30px;
  96. height:30px;
  97. position:absolute;
  98. left:1.3%;
  99. margin-top: -40px;
  100. }
  101. .l-grid-row-cell-inner{
  102. font-size: 12px;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. }
  106. .selectfile{
  107. margin:20px 0 0 20px;
  108. font-size:14px;
  109. }
  110. *{
  111. font-size:14px;
  112. }
  113. .download{
  114. margin-left: 65%;
  115. margin-top:-2.8%;
  116. }
  117. .show{
  118. position: relative;
  119. left:1200px;
  120. width:50px;
  121. bottom:35px;
  122. }
  123. .l-grid-hd-cell{
  124. height: 34px;
  125. background-color: #5582b9;
  126. }
  127. .l-grid-header-table{
  128. background-color: #5582b9;
  129. }
  130. .l-grid-header-inner{
  131. width: 1261px;
  132. background-color: #5582b9;
  133. }
  134. .l-grid-hd-cell{
  135. background-color: #5582b9;
  136. height: 40px;
  137. }
  138. .l-grid-hd-cell {
  139. height: 50px;
  140. }
  141. inline style{
  142. height: 50px;
  143. }
  144. .l-grid-header-multi{
  145. background-color:#5582b9 ! important ;
  146. }
  147. .l-grid-hd-mul span{
  148. margin: 5px 0;
  149. }
  150. .l-grid-hd-cell-text{
  151. color:white
  152. }
  153. .l-toolbar{
  154. height: 30px
  155. }
  156. .l-panel-btn{
  157. height: 28px
  158. }
  159. .l-grid-header{
  160. background-color:#5582b9 ! important ;
  161. }
  162. .button{
  163. min-width: 90px;
  164. }
  165. .buttonTable{
  166. margin: 10px 10px 0 65%;
  167. width:380px;
  168. }
  169. .box1{
  170. margin-top: 10px;
  171. }
  172. .showMore{
  173. margin-left:88%;
  174. width:50px;
  175. margin-top:10px;
  176. }
  177. .more_show,.more_hide{
  178. font-family: "微软雅黑";
  179. font-size: 14px;
  180. color: #0388d4;
  181. }
  182. .title{
  183. color:#1b1b1b;
  184. font-size:14px;
  185. float:left;
  186. font-weight:bold;
  187. width:120px;
  188. font-family: "宋体";
  189. margin-top: -2%;
  190. margin-left: 20px;
  191. }
  192. .line{
  193. border-bottom: 1px solid #cdcaca;
  194. }
  195. .areaSel{
  196. display: none;
  197. }
  198. .spanData{
  199. font-family: "宋体";
  200. font-size: 14px;
  201. color:#000000;
  202. width:75px;
  203. height:30px;
  204. line-height:30px;
  205. border: 1px solid #d3dbde;
  206. text-align: center;
  207. border-radius:5px;
  208. background-color: #f4f7f8;
  209. clear: both;
  210. display:inline-block;
  211. text-align:center;
  212. /* margin-left:10px */
  213. }
  214. .spanData{
  215. min-width:100%;
  216. }
  217. .spanData:HOVER {
  218. cursor: pointer;
  219. background-color: #3c95c8;
  220. }
  221. </style>
  222. <script type="text/javascript">
  223. //导入方法
  224. function submitInfo() {
  225. if(num%2!=0){
  226. flag =false;
  227. $("#handlerinfo").text("开启填写详情");
  228. num=2;
  229. }
  230. var val= $("#import_report").val().trim();
  231. var end = val.substring(val.lastIndexOf(".")+1);
  232. if(val==""||val==null){
  233. top.Dialog.alert("请导入excel文件");
  234. return;
  235. }
  236. if(end=="xls"||end=="xlsx"){
  237. addfn();
  238. }else{
  239. top.Dialog.alert("请导入正确的excel文件");
  240. return;
  241. }
  242. };
  243. //保存
  244. function fileToSave($form,listGrid,msg){
  245. var corpId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  246. $("body").eq(0).showLoading();
  247. var report_type=$('#report_type').val();
  248. //表单异步提交处理
  249. $form.ajaxSubmit({
  250. type: 'post',
  251. url:$.pathname() +"/ws/xianlutingyun/XianlutingyunService/importXianlutingyun?report_type="+report_type+"&comp_names="+encodeURI(encodeURI(compNames))+"&roleId="+role_id+"&corp_id="+corpId,
  252. //表单提交成功后的回调
  253. success: function(responseText, statusText, xhr, $form){
  254. $("body").eq(0).hideLoading();
  255. if(responseText=='{"rows":}'){
  256. top.Dialog.alert("请选择正确的文件导入");
  257. }else if(responseText=='{"rows":[{}]}'){
  258. top.Dialog.alert("请选择正确的文件导入");
  259. }
  260. else{
  261. responseText=decodeURI(responseText).replace(/\n/g,'');
  262. responseText = eval('('+decodeURI(responseText)+')');
  263. var data = JSON.stringify(responseText);
  264. g.options.data=responseText;
  265. g.loadData();
  266. }
  267. }
  268. });
  269. }
  270. //导入excle
  271. function addfn() {
  272. var $form = $("#fillForm");
  273. $("#report_type").val($("#sel").val());
  274. /* $("#comp_names").val(compNames); */
  275. fileToSave($form,'','');
  276. };
  277. </script>
  278. </head>
  279. <body>
  280. <input type="hidden" id="wrongNum">
  281. <div class="box1"panelWidth="100%" panelHeight="100%">
  282. <div class="title_msg" id="add">报表导入</div>
  283. <div class="line"></div>
  284. <div class="pic" onclick="goback();" id="go">
  285. <img alt="返回" title="返回" src="/nwyj/images/temp/back.png" id="back">
  286. </div>
  287. <form id="fillForm" method="post" enctype="multipart/form-data">
  288. <input type="hidden" name="classid" value="438" required="true" />
  289. <input type="hidden" name="report_type" id="report_type" />
  290. <!-- <input type="hidden" name="comp_names" id="comp_names"/> -->
  291. <table class="buttonTable">
  292. <tr>
  293. <td>
  294. <!-- <span onclick="save('save');" class="spanData">保存</span> -->
  295. <input type="button" value="保存" onclick="save('save');" class="spanData"/>
  296. </td>
  297. <td>
  298. <!-- <span onclick="save('send')" class="spanData">保存并上报</span> -->
  299. <input type="button" value="保存并上报" onclick="save('send')" class="spanData"/>
  300. </td>
  301. <td>
  302. <!-- <span onclick="clear_msg();" class="spanData">重置</span> -->
  303. <input type="button" value="重置" onclick="clear_msg();" class="spanData"/>
  304. </td>
  305. <td>
  306. <!-- <span onclick="print();" class="spanData">打印</span> -->
  307. <input type="button" value="打印" onclick="print();" class="spanData"/>
  308. </td>
  309. </tr>
  310. </table>
  311. <div class="showMore">
  312. <a href="javascript:void(0)"><span id="more" onclick="more()" class="more_hide">隐藏</span></a>
  313. </div>
  314. <div class="title">功能面板</div>
  315. <fieldset style="margin:0 20px 20px 20px; width:95%;text-align: center;clear: both;" id="moretable">
  316. <div >
  317. <table align="left" style="margin-top:-15px;">
  318. <tr style="height:15px;" >
  319. <td colspan="7" ></td>
  320. </tr>
  321. <tr align="left">
  322. <td >选择报表模版:</td>
  323. <td><select id="sel" name="sel" onchange="change();"></select></td>
  324. <td style="width:2%"></td>
  325. <td>选择事件类别:</td>
  326. <td><select id="affairType" prompt="请选择"></select></td>
  327. <td style="width:2%"></td>
  328. <td style="display:none;">选择填报计划:</td>
  329. <td style="display:none;"><select id="warning" prompt="请选择" onchange="getPlan();"></select></td>
  330. <td style="width:3%" class="areaSel"></td>
  331. <td class="areaSel">区域选择:</td>
  332. <td class="areaSel"><select id="areaSel" prompt="请选择" ></select></td>
  333. </tr>
  334. </table>
  335. </div>
  336. </fieldset>
  337. <div class="selectfile">
  338. <table>
  339. <tr>
  340. <td>选择导入文件:</td>
  341. <td><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
  342. </tr>
  343. </table>
  344. </div>
  345. </form>
  346. <div class="download" >
  347. <input type="submit" value="确定" onclick=" submitInfo()"/>
  348. <input type="button" value="下载模版" onclick="getModels();"/>
  349. </div>
  350. <div id="showRequire" style="display: none; position: relative; left:90%;top:20px;margin:20px 0;"><a href="javascript:showTable();">隐藏报表填报要求</a></div>
  351. <table class="tableStyle" style="display: none; position: relative;top:15px;width:97%;margin:15px 20px;" id="showplan">
  352. <thead>
  353. <tr>
  354. <td colspan="8" align="center">报表填报要求</td>
  355. </tr>
  356. </thead>
  357. <tbody>
  358. <tr>
  359. <td align="center" width="5%">起始日期:</td>
  360. <td width="15%" align="center"><div id="star_time" ></div></td>
  361. <td align="center" width="10%">截止日期:</td>
  362. <td width="15%" align="center"><div id="end_time"></div></td>
  363. <td align="center" width="10%">填报时间表:</td>
  364. <td width="15%" align="center"><div id="type"></div></td>
  365. <td align="center" width="5%" class="round_time" style="display: none;" align="center">每日:</td>
  366. <td class="round_time" style="display: none;" width="15%" align="center"><div id="round"></div></td>
  367. <td style="display: none;" class="temporary_time" align="center" width="10%">填报时间:</td>
  368. <td style="display: none;" class="temporary_time" align="center"><div id="temporary" width="15%"></div></td>
  369. </tr>
  370. <tr id="yjb" style="display: none;">
  371. <td align="center" width="10%">系统运行部:</td>
  372. <td width="13%" align="left"><div id="sysDept"></div></td>
  373. <td align="center" width="10%">生产设备部:</td>
  374. <td width="13%" align="left"><div id="equipmentDept"></div></td>
  375. <td align="center" width="10%">市场营销部:</td>
  376. <td width="13%" align="left"><div id="markingDept"></div></td>
  377. <td align="center" width="10%">安全监管部:</td>
  378. <td width="13%" align="left"><div id="safeyDept"></div></td>
  379. </tr>
  380. <tr id="zygl" style="display: none">
  381. <td align="center" width="6%" id="deptRole"></td>
  382. <td align="left" colspan="7"><div id="showTables"></div></td>
  383. </tr>
  384. </tbody>
  385. </table>
  386. <div id="maingrid" class="clears" style="margin-top: 30px"></div>
  387. <div id="maingrid2" style="display: none;margin-top: 30px;min-height:400px;" class="clears"></div>
  388. </div>
  389. <div id="tianXie_con">
  390. <div style="width:100%;" id="requires"></div>
  391. <div style="width:100%; display:none;" id="changerequire"></div>
  392. </div>
  393. <div style="height:30px;width:100% ;"></div>
  394. </body>
  395. </html>