CJJ
2018-12-20 6b4704b4468b0bd15be8345e5d9fae08b9cb0cfb
gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
@@ -202,29 +202,29 @@
                              <tr>
                                 <td>离线电压阀值(V)</td>
                                 <td>
                                    <input type="text" id="OfflineVolLevel"  data-mini="true" />
                                    <input type="text" id="OfflineVolLevel" class="unable" data-mini="true" />
                                 </td>
                              </tr>
                              <tr>
                                 <td>浮充电流阀值(A)</td>
                                 <td>
                                    <input type="text" id="BattFloatCurrent" data-mini="true" />
                                    <input type="text" id="BattFloatCurrent" class="unable" data-mini="true" />
                                 </td>
                              </tr>
                              <tr>
                                 <td>单体数量</td>
                                 <td>*单体数量</td>
                                 <td>
                                    <input type="text" id="MonCount" data-mini="true" />
                                 </td>
                              </tr>
                              <tr>
                                 <td>标称容量(AH)</td>
                                 <td>*标称容量(AH)</td>
                                 <td>
                                    <input type="text" id="MonCapStd" data-mini="true" />
                                 </td>
                              </tr>
                              <tr>
                                 <td>标称单体电压(V)</td>
                                 <td>*标称单体电压(V)</td>
                                 <td>
                                    <input type="text" id="MonVolStd" data-mini="true" />
                                 </td>
@@ -248,7 +248,7 @@
                                 </td>
                              </tr>
                              <tr>
                                 <td>负载电流(A)</td>
                                 <td>*负载电流(A)</td>
                                 <td>
                                    <input type="text" id="Load_curr" data-mini="true" />
                                 </td>
@@ -260,7 +260,7 @@
                                 </td>
                              </tr>
                              <tr>
                                 <td>基站号码</td>
                                 <td>基站电话号码</td>
                                 <td>
                                    <input type="text" id="station_phone" data-mini="true" />
                                 </td>
@@ -272,7 +272,7 @@
                                 </td>
                              </tr>
                              <tr>
                                 <td>电池型号</td>
                                 <td>*电池型号</td>
                                 <td>
                                    <input type="text" id="BattModel" data-mini="true" />
                                 </td>
@@ -290,7 +290,7 @@
                                 </td>
                              </tr>
                              <tr>
                                 <td>安装人员</td>
                                 <td>*安装人员</td>
                                 <td>
                                    <input type="text" id="install_user" data-mini="true" />
                                 </td>
@@ -350,7 +350,7 @@
   $(function () {
      //setTimes($("#startTestrecord"),'2000-01-01');
      //setTimes($("#endTestrecord"),new Date().format('yyyy-MM-dd'));
      creatgroupid();
      creatgroupid();//如果检测为NEW ,则执行添加ID,如果为修改,则执行为拿到ID
      installstartdata(temp);
   });
   
@@ -409,6 +409,12 @@
      $('#OfflineVolLevel').val(outlineVol);   // 离线电压阀值
    }
    
    $('#MonVolStd').change(function(){
       setFloatAndoutLine();
    });
     $('#MonCount').change(function(){
        setFloatAndoutLine();
     })
    function prefixInteger(num, length) {
       return (num/Math.pow(3,length)).toFixed(length).substr(2);
   }
@@ -428,7 +434,7 @@
                ,FbsDeviceIp: '127.0.0.1'
                ,FbsDeviceIp_YM: '255.255.255.0'
                ,FbsDeviceIp_WG: '127.0.0.1'
                ,FBSDeviceName: '设备名称'
                ,FBSDeviceName: 'BTS'
                ,GroupIndexInFBSDevice: 1 
                ,BattGroupId: 1000005
                ,BattGroupNum: 2
@@ -458,13 +464,13 @@
   //      document.getElementById("city").value = data.StationName2;         //市
   //      document.getElementById("county").value = data.StationName5;         //区县
   //      document.getElementById("StationName3").value = data.StationName3;   //机房名称
   //      document.getElementById("StationName4").value = data.StationName4;    //设备名称
         document.getElementById("StationName4").value = data.StationName4;    //设备名称
         document.getElementById("StationIp").value = data.StationIp;      //设备IP
         //document.getElementById("FBSDeviceId").value = dev_id;   
         document.getElementById("FbsDeviceIp").value = data.FbsDeviceIp;
         document.getElementById("FbsDeviceIp_YM").value = data.FbsDeviceIp_YM;
         document.getElementById("FbsDeviceIp_WG").value = data.FbsDeviceIp_WG;
   //      document.getElementById("FBSDeviceName").value = data.FBSDeviceName;
         document.getElementById("FBSDeviceName").value = data.FBSDeviceName;
         //document.getElementById("GroupIndexInFBSDevice").value = temp[12];
         document.getElementById("BattGroupId").value = data.BattGroupId;
         document.getElementById("BattGroupNum").value = data.BattGroupNum;
@@ -475,11 +481,11 @@
   //      document.getElementById("MonCount").value = data.MonCount;
   //      document.getElementById("MonCapStd").value = data.MonCapStd;
   //      document.getElementById("MonVolStd").value = data.MonVolStd;
   //      document.getElementById("MonResStd").value = data.MonResStd;
   //      document.getElementById("MonSerStd").value = data.MonSerStd;
   //      document.getElementById("MonVolLowToAvg").value = data.MonVolLowToAvg;
         document.getElementById("MonResStd").value = data.MonResStd;
         document.getElementById("MonSerStd").value = data.MonSerStd;
         document.getElementById("MonVolLowToAvg").value = data.MonVolLowToAvg;
   //      document.getElementById("Load_curr").value = data.Load_curr;
   //      document.getElementById("DisCurrMax").value = data.DisCurrMax;
         document.getElementById("DisCurrMax").value = data.DisCurrMax;
   //      document.getElementById("station_phone").value = data.station_phone;
   //      document.getElementById("BattProducer").value = data.BattProducer;
         document.getElementById("BattModel").value = data.BattModel;
@@ -586,8 +592,12 @@
<script type="text/javascript">  
   $(function(){
      $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
      $("#sure").click(function(){
         addBatt();
      $("#sure").click(function(){
         if(nullOrn()){
            creatgroupid();//提交之前再次验证,创建ID
            addBattnew();    //提交
         }else{
         }            //验证重要项是否为空,为空则提示;
            //function backpage(){window.location.href="ele-param1.html";}
          // setTimeout(backpage,500); 
      });
@@ -596,7 +606,17 @@
      });
   });
    
    function addBatt(){
    function nullOrn(){
       if($("#BattFloatCurrent").val()&&$("#MonCount").val()&&$("#MonCapStd").val()){
          return true;
       }else{
          alert("*项为必填项,不能为空,请重新输入");
          return false;
       }
    }
    function addBattnew(){
       var temp = JSON.stringify(getUpdateArr());
       console.info(temp);
       $.ajax({