objImp_ul.ss.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. #ScreenOver {
  5. display: none !important;
  6. }
  7. td a {
  8. border: 1px solid #0c4187;
  9. padding: 3px;
  10. border-radius: 5px;
  11. }
  12. td a:hover {}
  13. .percent {
  14. display: inline-block;
  15. }
  16. .progress {
  17. display: inline-block;
  18. width: 20%
  19. }
  20. #scwjName {
  21. margin-right: 5px;
  22. height: 23px;
  23. display: inline-block;
  24. overflow-y: hidden;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <js.ss file="/ss/growHeight.js"/>
  30. <js.ss file="/ss/jquery/jquery.form.min.js"/>
  31. <js.ss file="/ss/upload.js"/>
  32. <%-- 改。Lin
  33. <@link rel="stylesheet" href="${sessionScope['XMMC']}/theme/EasyUses/style.css" type="text/css" />
  34. --%><skin.ss file='/ss/main'/>
  35. <css.ss file="/ss/picZoom/styles.css"/> <%-- ="../../${sessionScope['XMMC']}/js/picZoom/styles.css"。Lin --%>
  36. <js.ss file="/ss/picZoom/e-smart-zoom-jquery.min.js"/>
  37. <form id="tjForm" method="post"> <%-- 去掉 action='@service{name:"analysisExcel2",dest:"env_import_preview"}@',没用到。Lin --%>
  38. <%-- 先去掉,应该没用到。Lin
  39. <@input type='hidden' name='tablename' value="jzw" />
  40. --%>
  41. <%-- 去掉,直接用 ExcelServ.obj,不用传来传去。Lin
  42. <@input type='hidden' name='object' value="${objject}" />
  43. --%>
  44. <div class="content-div">
  45. <table class="form">
  46. <tr>
  47. <th style="width:130px">导入信息</th>
  48. <td style="display:flex;align-items: center;">
  49. <input id="path" type='hidden' name='uploadPath' />
  50. <span type="text" id="scwjName" class="wjName"></span>
  51. <input type="hidden" mc="mc" name="scwjwj" id="scwjpath" value="">
  52. <input type="button" multiple="multiple" id="scwjEdit" name="scwjEdit" class="content-button" value="上传" onclick="scClick()">
  53. <script>
  54. $(document).ready(function() {
  55. $("#scwjEdit").uploadFile({
  56. validation: '"xls","XLS","xlsx","XLSX"',
  57. width: null,
  58. height: null,
  59. size: (5000 * 1024), //单位kb,限制5000m
  60. name: "scwj",
  61. imageCropping: false,
  62. callback: uploadFileCallback
  63. });
  64. })
  65. </script>
  66. </td>
  67. </tr>
  68. <%--
  69. <tr>
  70. <th>下载模版</th>
  71. <td><input type='button' style="margin-left:5px" value="下载模版" class="content-button" onclick="mbxz()"></td>
  72. </tr>
  73. --%>
  74. </table>
  75. <%--<div style="text-align: center;margin-top: 19px;" class="content-warning">*请使用模板上传</div>--%>
  76. </div>
  77. <div class="bottom-div">
  78. <div class="bottom-down-div border-top">
  79. <input type="button" value="确认" onclick="bc()" class="bottom-button" />
  80. <input type="button" name="button" onclick="wd.display.closeDialog();" value="取消" class="bottom-button">
  81. </div>
  82. </div>
  83. </form>
  84. <script>
  85. function bc() {
  86. if ($('#path').val()=='') {
  87. alert("请先上传Excel文件");
  88. }else{
  89. var serialize = "&" + $("#tjForm").serialize();
  90. var json = JSON.parse('{"aaa":"' + serialize + '"}');
  91. /* 改。Lin
  92. var url = '@service{name:"analysisExcel2",dest:"env_import_preview",show:"wdDialog",param:{"aaa":"wdVal{aaa}"}}@';
  93. */ var url = '<serv.ss dlg="true" name="grcz_chkExcel" dest="objImp_sure" parm="{aaa:&quot;ssVal{aaa}&quot;}"/>';
  94. url = wd.display.replaceDynamicParam(url, json);
  95. eval(url);
  96. }
  97. }
  98. function uploadFileCallback() {
  99. $('#path').val($('#scwjpath').val());
  100. }
  101. function scClick() {
  102. var e = window.event;
  103. if (e.stopPropagation) {
  104. //W3C阻止冒泡方法
  105. e.stopPropagation()
  106. } else {
  107. e.cancelBubble = true; //IE阻止冒泡方法
  108. }
  109. }
  110. function mbxz() {
  111. //window.open("/${sessionScope['XMMC']}/download/bmxymb.xls");
  112. alert("模版还没弄好");
  113. }
  114. </script>
  115. </body>
  116. </html>