123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <!--#include file="/inc/header.html"-->
- <script type="text/javascript">
- window.renderHeader=function(e)
- {
- var template="{{#childenList}}<li class=\"bif-nav-item\" title=\"{{moduleUrl}}\" data-fun=\"{{moduleUrl}}\" data-href=\"{{moduleUrl}}\">{{moduleName}}</li>{{/childenList}}";
- var views = Mustache.render(template, e);
- $("#bif-nav-ul").html(views);
- $("#bif-nav-ul li").each(function () {
- var txt = $(this).text();
- if (txt == '电表参数管理') {
- $(this).addClass("active");
- $(".tree-breadcrumb #nav-item-a").html("电表参数管理");
- }
- })
- };
- $(function(){
- var modules=JSON.parse(window.sessionStorage.getItem("modules"));
- if(window.treemap){
- renderHeader(window.treemap[13]);//参数管理 7
- }else if(modules){
- renderHeader(modules.treemap[13]);
- }
- })
- </script>
- <div class="con-wrap" style="min-height: 400px;" >
- <div class="tree-breadcrumb">
- <span class="nav-prov">首页</span>>
- <span class="nav-prov"><a id="cansgl" href="/pages/basedata/index.html">参数管理</a></span>>
- <span class="nav-prov"><a href="javascript:;" id="nav-item-a"></a></span>
- </div>
- <div id="con-map" class="main3" style="margin-top: 0px;overflow:hidden">
- <div class="bif-nav">
- <ul id="bif-nav-ul" >
- </ul>
- </div>
- <div class="bif-container">
- <div class="author-nav-tree">
- <ul id="tree-tt" style="height:500px;">
- </ul>
- </div>
- <div class="bif-con panel-noscroll" style="height: auto;">
- <div id="bd-toolbar" style="margin-top: 0;padding: 10px 5px;">
- 名称:<input class="easyui-textbox easyui-validatebox electMeter-name bd-w-name" name="electMeter-name" data-options="validType:'length[0,20]'"> 
- <a href="#" class="easyui-linkbutton bd-add-s bd-search" id = "electName-meter-search">查询</a>
- <a href="#" class="easyui-linkbutton bd-add-s clear-btn1" plain="true">清空</a>
- <a href="#" class="easyui-linkbutton bd-add-s" id="addElectRecordBtn">新增</a>
- <a href="#" class="easyui-linkbutton bd-add-s" id="allocationErBtn">电费配置</a>
- </div>
- <div id="base-table" style="height:500px;">
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="bd-w" style="padding-left: 10px"></div>
- <!--#include file="/inc/footer.html"-->
- <!--新增电表-->
- <div id="addElectRecord" class="easyui-window addElectRecord-form" data-options="modal:false,closed:true" style="width: 500px;">
- <form id="addErForm">
- <input type="hidden" name="id">
- <table cellpadding="0" cellspacing="0" class="elect-record-tab1">
- <tr>
- <td style="width:80px;"><label>电表名称:</label></td>
- <td><input class="easyui-textbox" data-options="validType:'length[0,30]',width:'160px',height:'20px',required:true" name="electName"></td>
- </tr>
- <tr>
- <td><label>电表访问地址:</label></td>
- <td>
- <input class="easyui-textbox meterAddress1" name="meterAddress1" data-options="validType:'length[1,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'" >
- <input class="easyui-textbox meterAddress2" name="meterAddress2" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddress3" name="meterAddress3" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddress4" name="meterAddress4" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddress5" name="meterAddress5" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddress6" name="meterAddress6" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <!--
- <input class="easyui-textbox meterAddress8" name="meterAddress8" disabled="disabled" data-options="validType:'length[0,20]',width:'30px',height:'25px'">
- -->
- </td>
- </tr>
- <tr>
- <td><label>互感器变比值:</label></td>
- <td>
- <input class="easyui-textbox ratio" value="1" name="ratio" data-options="validType:'length[1,3]',min:'1',max:'597',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至255的十六进制数据,如果没有就为1'" >
- </td>
- </tr>
- <tr>
- <td><label>是否为仓电表:</label></td>
- <td class="radio-td">
- <label><input type="radio" class="yesOrNo-GrainAmtr yesOrNo-GrainAmtr-first" name="isGrainAmtr" value="1" checked>是</label>
- <label><input type="radio" class="yesOrNo-GrainAmtr yesOrNo-GrainAmtr-two" name="isGrainAmtr" value="0">否</label>
- </td>
- </tr>
- <tr>
- <td><label>仓号:</label></td>
- <td><input class="easyui-combobox selectElecthouse" data-options="width:'140px',height:'20px'" editable="false" style="width:262px;" name="houseId"></td>
- </tr>
- <tr>
- <td><label>备注:</label></td>
- <td><input class="easyui-textbox" type="text" name="remarks" data-options="validType:'length[0,50]',multiline:true" style="height: 70px; width: 262px;"></td>
- </tr>
- </table>
- <div class="btn-box">
- <a href="javascript:;" class="easyui-linkbutton ElectMeter-add-bt bd-add-s" data-num="0" plain="true">确定</a>
- <a href="javascript:;" class="easyui-linkbutton ElectMeter-nextAdd-bt bd-add-s" style="width:100px;" data-num="0" plain="true">保存输入下一条</a>
- </div>
- </form>
- </div>
- <!--修改电表-->
- <div id="updateElectRecord" class="easyui-window updateElectRecord-form" data-options="modal:false,closed:true" style="width: 500px;">
- <form id="updateErForm">
- <input type="hidden" name="id">
- <table cellpadding="0" cellspacing="0" class="elect-record-tab1">
- <tr>
- <td style="width:80px;"><label>电表名称:</label></td>
- <td><input class="easyui-textbox" data-options="validType:'length[0,30]',width:'160px',height:'20px',required:true" name="electName"></td>
- </tr>
- <tr>
- <td><label>电表访问地址:</label></td>
- <td>
- <input class="easyui-textbox meterAddressUpdate1" name="meterAddress1" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'" >
- <input class="easyui-textbox meterAddressUpdate2" name="meterAddress2" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddressUpdate3" name="meterAddress3" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddressUpdate4" name="meterAddress4" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddressUpdate5" name="meterAddress5" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <input class="easyui-textbox meterAddressUpdate6" name="meterAddress6" data-options="validType:'length[2,2]',width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至153的十六进制数据'">
- <!--
- <input class="easyui-textbox meterAddressUpdate8" name="meterAddress8" disabled="disabled" data-options="validType:'length[0,20]',width:'30px',height:'25px'">
- -->
- </td>
- </tr>
- <tr>
- <td><label>互感器变比值:</label></td>
- <td>
- <input class="easyui-textbox ratio" name="ratio" value="1" data-options="validType:'length[1,3]',min:1,max:597,width:'30px',height:'25px',required:true,missingMessage:'请输入十进制区间为1至255的十六进制数据,如果没有就为1'" >
- </td>
- </tr>
- <tr>
- <td><label>是否为仓电表:</label></td>
- <td class="radio-td">
- <label><input type="radio" class="yesOrNo-UpdateGrainAmtr yesOrNo-UpdateGrainAmtr-first" name="isUpdateGrainAmtr" value="1" checked>是</label>
- <label><input type="radio" class="yesOrNo-UpdateGrainAmtr yesOrNo-UpdateGrainAmtr-two" name="isUpdateGrainAmtr" value="0">否</label>
- </td>
- </tr>
- <tr>
- <td><label>仓号:</label></td>
- <td><input class="easyui-combobox selectUpdateElecthouse" data-options="width:'140px',height:'20px'" editable="false" style="width:262px;" name="houseId"></td>
- </tr>
- <tr>
- <td><label>备注:</label></td>
- <td><input class="easyui-textbox" type="text" name="remarks" data-options="validType:'length[0,50]',multiline:true" style="height: 70px; width: 262px;"></td>
- </tr>
- </table>
- <div class="btn-box">
- <a href="javascript:;" class="easyui-linkbutton ElectMeter-update-bt bd-add-s" data-num="0" plain="true">确定</a>
- </div>
- </form>
- </div>
- <!--电费配置-->
- <div id="allocationEr" class="easyui-window allocationEr-form" data-options="modal:false,closed:true" style="width: 500px;">
- <form id="allocationErForm">
- <input type="hidden" name="id">
- <table cellpadding="0" cellspacing="0" class="elect-record-tab1 tab-mar1">
- <tr>
- <td style="width:80px;"><label>电费:(元)</label></td>
- <td><input class="easyui-numberbox" precision="2" data-options="validType:'length[0,20]',width:'90px',height:'25px',required:true" name = "priceNum"></td>
- </tr>
- </table>
- <div class="btn-box">
- <a href="#" class="easyui-linkbutton bd-add-s erPrice-add-update" plain="true">确定</a>
- <a href="#" class="easyui-linkbutton bd-add-s" id="close-erPrice-add-update" plain="true">取消</a>
- </div>
- </form>
- </div>
- <style>
- .author-nav-tree {
- display: inline-block;
- width: 200px;
- min-height: 400px;
- border: 1px solid lightgrey;
- float: left;
- overflow-x: hidden;
- overflow-y: auto;
- margin-top: 10px;
- }
- #con-map {
- min-height: 400px;
- display: inline-block;
- margin-top: 10px;
- }
- .bif-con {
- width: 980px;
- height: 404px;
- margin-top: 10px;
- margin-left: 14px;
- float: left;
- }
- .bif-nav-item{
- width: 150px;
- text-align: center;
- }
- </style>
- <script type="text/javascript" src="/src/sub/electRecord.js"></script>
- <script type="text/javascript">
- electRecordData.init();
- </script>
- </body>
- </html>
|