tezheng.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>清单规则编辑器</title>
  8. <link rel="stylesheet" href="../../css/bootstrap/bootstrap.min.css">
  9. <!--<link rel="stylesheet" href="../../web/css/bootstrap/themes.css">-->
  10. <link rel="stylesheet" href="../../css/main.css">
  11. <link rel="stylesheet" href="../../css/font-awesome/font-awesome.min.css">
  12. <!--spread-->
  13. <link rel="stylesheet" href="../../../web/css/spreadjs/gc.spread.sheets.excel2013white.10.0.1.css">
  14. <!--zTree-->
  15. <link rel="stylesheet" href="../../css/ztree/zTreeStyle.css" type="text/css">
  16. </head>
  17. <body>
  18. <div class="header">
  19. <nav class="navbar navbar-toggleable-lg navbar-light bg-faded p-0 ">
  20. <span class="header-logo px-2">清单规则编辑器</span>
  21. <div class="navbar-text"><a href="main.html">清单规则</a><i class="fa fa-angle-right fa-fw"></i>XXX清单规则</div>
  22. </nav>
  23. <nav class="navbar navbar-toggleable-lg justify-content-between navbar-light p-0">
  24. <ul class="nav nav-tabs" role="tablist">
  25. <li class="nav-item">
  26. <a class="nav-link px-3" href="qingdan.html">清单</a>
  27. </li>
  28. <li class="nav-item">
  29. <a class="nav-link px-3" href="neirong.html">工作内容</a>
  30. </li>
  31. <li class="nav-item">
  32. <a class="nav-link active px-3" href="tezheng.html">项目特征</a>
  33. </li>
  34. </ul>
  35. </nav>
  36. </div>
  37. <div class="main">
  38. <div class="content">
  39. <div class="container-fluid">
  40. <div class="row">
  41. <div class="main-content col-lg-7 p-0">
  42. <nav class="tools-bar"></nav>
  43. <div class="main-data" id="spreadAllItems">
  44. </div>
  45. </div>
  46. <div class="main-side col-lg-5 p-0">
  47. <div class="main-data" id="spreadEigenvalue">
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <!--弹出添加-->
  55. <div class="modal fade" id="add" data-backdrop="static" style="display: none;" aria-hidden="true">
  56. <div class="modal-dialog" role="document">
  57. <div class="modal-content">
  58. <div class="modal-header">
  59. <h5 class="modal-title">添加定额</h5>
  60. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  61. <span aria-hidden="true">×</span>
  62. </button>
  63. </div>
  64. <div class="modal-body">
  65. <form>
  66. <div class="form-group">
  67. <label>编码</label>
  68. <input class="form-control" placeholder="输入编码" type="text">
  69. </div>
  70. <div class="form-group">
  71. <label>名称</label>
  72. <input class="form-control" placeholder="输入名称" type="text">
  73. </div>
  74. <div class="form-group">
  75. <label>单位</label>
  76. <select class="form-control"><option>选择单位</option><option>m3</option></select>
  77. </div>
  78. <div class="form-group">
  79. <label>基价</label>
  80. <input class="form-control" placeholder="输入基价" type="number">
  81. </div>
  82. <div class="form-group">
  83. <label>显示名称(以%s表示参数)</label>
  84. <input class="form-control" placeholder="输入显示名称" type="text">
  85. </div>
  86. <div class="form-group">
  87. <label>默认取费专业</label>
  88. <input class="form-control" placeholder="输入取费专业" type="text">
  89. </div>
  90. </form>
  91. </div>
  92. <div class="modal-footer">
  93. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  94. <a href="" class="btn btn-primary">添加</a>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <!--弹出编辑-->
  100. <div class="modal fade" id="edit" data-backdrop="static" style="display: none;" aria-hidden="true">
  101. <div class="modal-dialog" role="document">
  102. <div class="modal-content">
  103. <div class="modal-header">
  104. <h5 class="modal-title">编辑定额</h5>
  105. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  106. <span aria-hidden="true">×</span>
  107. </button>
  108. </div>
  109. <div class="modal-body">
  110. <form>
  111. <div class="form-group">
  112. <label>编码</label>
  113. <input class="form-control" placeholder="输入编码" type="text" value="AA0001">
  114. </div>
  115. <div class="form-group">
  116. <label>名称</label>
  117. <input class="form-control" placeholder="输入名称" type="text" value="人工挖土方">
  118. </div>
  119. <div class="form-group">
  120. <label>单位</label>
  121. <select class="form-control"><option>m3</option></select>
  122. </div>
  123. <div class="form-group">
  124. <label>基价</label>
  125. <input class="form-control" placeholder="输入基价" type="number" value="880.84">
  126. </div>
  127. <div class="form-group">
  128. <label>显示名称(以%s表示参数)</label>
  129. <input class="form-control" placeholder="输入显示名称" type="text" value="人工挖土方">
  130. </div>
  131. <div class="form-group">
  132. <label>默认取费专业</label>
  133. <input class="form-control" placeholder="输入取费专业" type="text" value="1">
  134. </div>
  135. </form>
  136. </div>
  137. <div class="modal-footer">
  138. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  139. <a href="" class="btn btn-primary">确定</a>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <!--弹出删除-->
  145. <div class="modal fade" id="del" data-backdrop="static" style="display: none;" aria-hidden="true">
  146. <div class="modal-dialog" role="document">
  147. <div class="modal-content">
  148. <div class="modal-header">
  149. <h5 class="modal-title">删除确认</h5>
  150. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  151. <span aria-hidden="true">×</span>
  152. </button>
  153. </div>
  154. <div class="modal-body">
  155. <h5 class="text-danger">删除后无法恢复,确认是否删除?</h5>
  156. </div>
  157. <div class="modal-footer">
  158. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  159. <a href="" class="btn btn-danger">删除</a>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- JS. -->
  165. <script src="../../../lib/spreadjs/gc.spread.sheets.all.10.0.1.min.js"></script>
  166. <script src="../../../lib/jquery/jquery.min.js"></script>
  167. <script src="../../../lib/tether/tether.min.js"></script>
  168. <script src="../../../lib/bootstrap/bootstrap.min.js"></script>
  169. <script src="..//scripts/global.js"></script>
  170. <script src="..//scripts/setSheets.js"></script>
  171. <SCRIPT type="text/javascript">
  172. $(document).ready(function(){
  173. buildAllItems();
  174. buildEigenvalue();
  175. });
  176. function buildAllItems(){
  177. var spread = new GC.Spread.Sheets.Workbook($("#spreadAllItems")[0], {sheetCount: 1});
  178. var sheet = spread.getSheet(0);
  179. var chRowCount = 2;
  180. var vpColCount = 2;
  181. var vpRowCount = 28;
  182. sheet.suspendPaint();
  183. sheet.suspendEvent();
  184. initSheet(spread, sheet, chRowCount, vpRowCount, vpColCount);
  185. setupItemsColHeader(sheet);
  186. //initRowHeight(sheet);
  187. setCell(sheet);
  188. myCommand(spread, sheet);
  189. setScrollBar(spread, sheet, vpRowCount);
  190. sheet.resumePaint();
  191. sheet.resumeEvent();
  192. }
  193. function setupItemsColHeader(sheet){
  194. var ch = GC.Spread.Sheets.SheetArea.colHeader;
  195. sheet.addSpan(0 ,0, 2, 1, ch);
  196. sheet.setValue(0, 0, "编号", ch);
  197. sheet.setColumnWidth(0, 200);
  198. sheet.addSpan(0 ,1, 2, 1, ch);
  199. sheet.setValue(0, 1, "项目特征", ch);
  200. sheet.setColumnWidth(1, 850);
  201. }
  202. function buildEigenvalue(){
  203. var spread = new GC.Spread.Sheets.Workbook($("#spreadEigenvalue")[0], {sheetCount: 1});
  204. var sheet = spread.getSheet(0);
  205. var chRowCount = 2;
  206. var vpColCount = 2;
  207. var vpRowCount = 6;
  208. sheet.suspendPaint();
  209. sheet.suspendEvent();
  210. initSheet(spread, sheet, chRowCount, vpRowCount, vpColCount);
  211. setupValueColHeader(sheet);
  212. //initRowHeight(sheet);
  213. setCell(sheet);
  214. myCommand(spread, sheet);
  215. setScrollBar(spread, sheet, vpRowCount);
  216. sheet.resumePaint();
  217. sheet.resumeEvent();
  218. }
  219. function setupValueColHeader(sheet){
  220. var ch = GC.Spread.Sheets.SheetArea.colHeader;
  221. sheet.addSpan(0 ,0, 2, 1, ch);
  222. sheet.setValue(0, 0, "编号", ch);
  223. sheet.setColumnWidth(0, 200);
  224. sheet.addSpan(0 ,1, 2, 1, ch);
  225. sheet.setValue(0, 1, "特征值", ch);
  226. sheet.setColumnWidth(1, 550);
  227. }
  228. </SCRIPT>
  229. </body>
  230. <script type="text/javascript">
  231. autoFlashHeight();
  232. </script>
  233. </html>