| | |
| | | <script type="text/javascript" src="mobilJs/base.js"></script>
|
| | | <script type="text/javascript" src="mobilJs/jquery.mobile-1.4.5.min.js"></script>
|
| | | <style type="text/css">
|
| | | |
| | | input{-webkit-appearance: none;}
|
| | | table {
|
| | | margin-top:.5em;
|
| | | border-collapse:separate;
|
| | |
| | | <tr>
|
| | | <td>机房编号</td>
|
| | | <td>
|
| | | <input type="text" id="StationId" class="unable" data-mini="true" />
|
| | | <input type="text" id="StationId" class="unable" data-mini="true" onfocus="this.blur()"/>
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备ID(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FBSDeviceId" class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备IP(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FbsDeviceIp" class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>电池组ID</td>
|
| | | <td>
|
| | | <input type="text" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | |
| | | <tr>
|
| | | <td>机房名称</td>
|
| | | <td>
|
| | | <select id="homeName" data-mini="true">
|
| | | <option value="">全部</option>
|
| | | </select>
|
| | | <input type="text" id="homeName" data-mini="true">
|
| | | |
| | | </td>
|
| | | </tr>
|
| | |
|
| | |
| | | <input type="hidden" id="StationIp" data-mini="true" />
|
| | |
|
| | |
|
| | | <tr>
|
| | | <td>FBS设备ID(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FBSDeviceId" class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>FBS设备IP(重要)</td>
|
| | | <td>
|
| | | <input type="text" id="FbsDeviceIp" class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | |
| | |
|
| | |
|
| | | <input type="hidden" id="FbsDeviceIp_YM" class="unable" data-mini="true" value="456"/>
|
| | |
| | |
|
| | |
|
| | |
|
| | | <tr>
|
| | | <td>电池组ID</td>
|
| | | <td>
|
| | | <input type="text" readonly unselectable="on" value="123"class="unable" id="BattGroupId" class="uncheck" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | |
| | |
|
| | |
|
| | | <input type="hidden" readonly unselectable="on" value="123" id="BattGroupNum" class="unable" class="uncheck" data-mini="true" />
|
| | |
| | | <input type="text" id="station_phone" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>电池品牌</td>
|
| | | <td>
|
| | | <input type="text" id="BattProducer" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>*电池型号</td>
|
| | | <td>
|
| | | <input type="text" id="BattModel" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | |
| | | <input id="startTestrecord" type="hidden" name="appDate" class="appDatefir" value="2000-01-01" />
|
| | |
|
| | | <input id="startTestrecord" type="hidden" name="appDate" class="appDatefir" value="2000-01-01" />
|
| | |
|
| | | <input id="endTestrecord" type="hidden" name="appDate" class="appDatesec" value="2017-01-01" />
|
| | | <input id="endTestrecord" type="hidden" name="appDate" class="appDatesec" value="2017-01-01" />
|
| | |
|
| | | <tr>
|
| | | <td>*安装人员</td>
|
| | |
| | | }
|
| | | }
|
| | | updataSel($Ostation_name1, arr);
|
| | | }
|
| | | findStationNamebyStationname1(); |
| | | } |
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当区县更新时更新机房 |
| | | function findStationNamebyStationname1(){
|
| | | var data = {
|
| | | StationName1: $("#mainteArea").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5:$("#country").val()
|
| | | };
|
| | | //console.info(data);
|
| | | $.ajax({ |
| | | type: "post", |
| | | url: "BattInfAction!serchStationName3", |
| | | async:true, |
| | | dataType:'json',
|
| | | data:"json = "+JSON.stringify(data), |
| | | success: function(data){
|
| | | data = data.result;
|
| | | data = eval("("+data+")");
|
| | | //console.info(data);
|
| | | //console.info(data.code); |
| | | if(data.code==1&&data.data.length>0){
|
| | | var $Ostation_name1=$("#homeName");
|
| | | $Ostation_name1.text("");
|
| | | var arr = new Array();
|
| | | for(var i=0;i<=data.data.length;i++)
|
| | | {
|
| | | if(i == 0){
|
| | | arr.push({
|
| | | val:"",
|
| | | stationid:"",
|
| | | txt:"全部(共"+data.data.length+"个)",
|
| | | });
|
| | | }else{
|
| | | arr.push({
|
| | | val:data.data[i-1].StationName3,
|
| | | stationid:data.data[i-1].StationId,
|
| | | txt:data.data[i-1].StationName3,
|
| | | });
|
| | | }
|
| | | }
|
| | | //console.info(111111111111111);
|
| | | updataSelStation($Ostation_name1, arr);
|
| | | }
|
| | | |
| | | |
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | |
| | |
|
| | | //当省改变时更新市
|
| | | $('#mainteArea').change(function(){
|
| | |
| | | $('#city').change(function(){
|
| | | findCounty();
|
| | | });
|
| | | //当区/县改变时改变机房
|
| | | $('#country').change(function(){
|
| | | findStationNamebyStationname1(); |
| | | }); |
| | | |
| | |
|
| | | //构造查询条件
|
| | | function createSearchParam(){
|
| | | var temp = { |
| | | page:Page,
|
| | | binf:{
|
| | | StationName1:$('#mainteArea').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5: $('#country').val(),
|
| | | StationName:$('#homeName').val(),
|
| | | },
|
| | | };
|
| | | console.info(temp);
|
| | | return temp;
|
| | | |
| | | } |
| | | function createSearchParam(){
|
| | | var temp = { |
| | | page:Page,
|
| | | binf:{
|
| | | StationName1:$('#mainteArea').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5: $('#country').val(),
|
| | | StationName:$('#homeName').val(),
|
| | | },
|
| | | };
|
| | | console.info(temp);
|
| | | return temp;
|
| | | |
| | | } |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | $(function () {
|
| | | //setTimes($("#startTestrecord"),'2000-01-01');
|
| | |
| | | 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;
|
| | | // document.getElementById("BattModel").value = data.BattModel;
|
| | | //document.getElementById("startTestrecord").value = temp[30];
|
| | | //document.getElementById("endTestrecord").value = temp[31];
|
| | | setTimes($("#startTestrecord"),data.productDate);
|
| | | setTimes($("#endTestrecord"),data.useDate);
|
| | | //setTimes($("#startTestrecord"),data.productDate);
|
| | | //setTimes($("#endTestrecord"),data.useDate);
|
| | | // document.getElementById("install_user").value = data.install_user;
|
| | | }else{
|
| | | document.getElementById("StationId").value = temp[0];
|
| | |
| | | <script type="text/javascript">
|
| | | $(function(){
|
| | | $(".unable").prop("readonly","readonly").attr("unselectable","on").addClass("uncheck");
|
| | | $(function(){
|
| | | alert(333);
|
| | | })
|
| | | $("#sure").click(function(){
|
| | | if(nullOrn()){
|
| | | if(temp[34]!="edit"){
|
| | |
| | | });
|
| | |
|
| | | function creatMonCapOpt(){
|
| | | var k,optionStr='';
|
| | | var k,optionStr='',allString;
|
| | | for(var i=1;i<11;i++){
|
| | | k=i*50;
|
| | | optionStr+='<option'+' value='+k+'>'+k+'</option>';
|
| | | }
|
| | | $("#MonCapStd").html(optionStr);
|
| | | allString=optionStr+'<option'+' value='+1000+'>'+1000+'</option>'
|
| | | $("#MonCapStd").html(allString);
|
| | | }
|
| | | creatMonCapOpt();
|
| | | /* 操作成功
|