4d417e6b9824b8e67e93cc16831c1aa367b4a64d.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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_quickreport.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. #requires,#changerequire{
  222. margin-left: 10px;
  223. }
  224. </style>
  225. <script type="text/javascript">
  226. //导入方法
  227. function submitInfo() {
  228. if(num%2!=0){
  229. flag =false;
  230. $("#handlerinfo").text("开启填写详情");
  231. num=2;
  232. }
  233. var val= $("#import_report").val().trim();
  234. var end = val.substring(val.lastIndexOf(".")+1);
  235. if(val==""||val==null){
  236. top.Dialog.alert("请导入excel文件");
  237. return;
  238. }
  239. if(end=="xls"||end=="xlsx"){
  240. addfn();
  241. }else{
  242. top.Dialog.alert("请导入正确的excel文件");
  243. return;
  244. }
  245. };
  246. //保存
  247. function fileToSave($form,listGrid,msg){
  248. var corpId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  249. $("body").eq(0).showLoading();
  250. var report_type=$('#report_type').val();
  251. //表单异步提交处理
  252. $form.ajaxSubmit({
  253. type: 'post',
  254. url:$.pathname() +"/ws/xianlutingyun/XianlutingyunService/importXianlutingyun?report_type="+report_type+"&comp_names="+encodeURI(encodeURI(compNames))+"&roleId="+role_id+"&corp_id="+corpId,
  255. //表单提交成功后的回调
  256. success: function(responseText, statusText, xhr, $form){
  257. $("body").eq(0).hideLoading();
  258. if(responseText=='{"rows":}'){
  259. top.Dialog.alert("请选择正确的文件导入");
  260. }else if(responseText=='{"rows":[{}]}'){
  261. top.Dialog.alert("请选择正确的文件导入");
  262. }
  263. else{
  264. responseText=decodeURI(responseText).replace(/\n/g,'');
  265. responseText = eval('('+decodeURI(responseText)+')');
  266. var data = JSON.stringify(responseText);
  267. g.options.data=responseText;
  268. g.loadData();
  269. }
  270. }
  271. });
  272. }
  273. //导入excle
  274. function addfn() {
  275. var $form = $("#fillForm");
  276. $("#report_type").val($("#sel").val());
  277. fileToSave($form,'','');
  278. };
  279. </script>
  280. </head>
  281. <body>
  282. <input type="hidden" id="wrongNum">
  283. <div class="box1"panelWidth="100%" panelHeight="100%">
  284. <div class="title_msg" id="add">报表导入</div>
  285. <div class="line"></div>
  286. <div class="pic" onclick="goback();" id="go">
  287. <img alt="返回" title="返回" src="/nwyj/images/temp/back.png" id="back">
  288. </div>
  289. <form id="fillForm" method="post" enctype="multipart/form-data">
  290. <input type="hidden" name="classid" value="438" required="true" />
  291. <input type="hidden" name="report_type" id="report_type" />
  292. <!-- <input type="hidden" name="comp_names" id="comp_names"/> -->
  293. <table class="buttonTable">
  294. <tr>
  295. <td>
  296. <input type="button" value="保存并上报" onclick="save('send')" class="spanData"/>
  297. </td>
  298. <td>
  299. <input type="button" value="重置" onclick="clear_msg();" class="spanData"/>
  300. </td>
  301. <td>
  302. <input type="button" value="打印" onclick="print();" class="spanData"/>
  303. </td>
  304. </tr>
  305. </table>
  306. <div class="showMore">
  307. <a href="javascript:void(0)"><span id="more" onclick="more()" class="more_hide">隐藏</span></a>
  308. </div>
  309. <div class="title">功能面板</div>
  310. <fieldset style="margin:0 20px 20px 20px; width:95%;text-align: center;clear: both;" id="moretable">
  311. <div >
  312. <table align="left" style="margin-top:-15px;">
  313. <tr style="height:15px;" >
  314. <td colspan="7" ></td>
  315. </tr>
  316. <tr align="left">
  317. <td width="85px" align="right">角色选择:</td>
  318. <td ><select id="roleSel" name="roleSel"></select></td>
  319. <td style="width:2%"></td>
  320. <td >选择报表模版:</td>
  321. <td><select id="sel" name="sel" onchange="change();"></select></td>
  322. <td style="width:2%"></td>
  323. <td style="width:3%" class="areaSel"></td>
  324. <td class="areaSel">区域选择:</td>
  325. <td class="areaSel"><select id="areaSel" prompt="请选择" ></select></td>
  326. </tr>
  327. </table>
  328. </div>
  329. </fieldset>
  330. <div class="selectfile">
  331. <table>
  332. <tr>
  333. <td>选择导入文件:</td>
  334. <td><input name="import_report" fileWidth="300" id="import_report" type="file" contenteditable="false" /></td>
  335. </tr>
  336. </table>
  337. </div>
  338. </form>
  339. <div class="download" >
  340. <input type="submit" value="确定" onclick=" submitInfo()"/>
  341. <input type="button" value="下载模版" onclick="getModels();"/>
  342. </div>
  343. <div id="showRequire" style="display: none; position: relative; left:90%;top:20px;margin:20px 0;"><a href="javascript:showTable();">隐藏报表填报要求</a></div>
  344. <div id="maingrid" class="clears" style="margin-top: 30px"></div>
  345. <div id="maingrid2" style="display: none;margin-top: 30px" class="clears"></div>
  346. </div>
  347. <div style="width:100%;" id="requires"></div>
  348. <div style="width:100%; display:none;" id="changerequire"></div>
  349. <div style="height:30px;width:100% ;"></div>
  350. </body>
  351. </html>