| | |
| | | <title><s:text name="Batt_information_query"/></title>
|
| | | <link href="css/basic.css" type="text/css" rel="stylesheet" />
|
| | | <link href="css/ele_statistics.css" type="text/css" rel="stylesheet">
|
| | | |
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | |
|
| | | </head>
|
| | | <body>
|
| | |
| | | <td>省</td>
|
| | | <!-- 市 -->
|
| | | <td>市</td>
|
| | | <!-- 区/县 -->
|
| | | <td>区/县</td>
|
| | | <!-- 机房站点(或机房设备) -->
|
| | | <td><s:text name="Computer_site"/></td>
|
| | | <!-- 蓄电池组 -->
|
| | |
| | | <td>
|
| | | <select id="city" name="bd.binf.StatioName2">
|
| | | </select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="county" name="bd.binf.StatioName5"></select>
|
| | | </td>
|
| | | <td>
|
| | | <select id="station_name" name="bd.binf.StationName">
|
| | |
| | | </div>
|
| | | <!-- 右键菜单内容 -->
|
| | | <div id="right-menu">
|
| | | <a href="" onclick="jumpPage()" target="_blank"><s:text name="Check_battery_test_record"/></a> <!-- 查看电池测试记录 -->
|
| | | <a href="" onclick="jumpBattgroupStatic(this)" target="_blank"><s:text name="Check_battery_statistical_analysis_queries"/></a> <!-- 查看电池组统计分析查询 --> |
| | | <a href="" onclick="jumpBattmonomertatic(this)" target="_blank"><s:text name="Check_battery_monomer_record_behind"/></a> <!-- 查看电池落后单体记录 -->
|
| | | <a href="javascript:;" onclick="jumpPage()" target="_blank"><s:text name="Check_battery_test_record"/></a> <!-- 查看电池测试记录 -->
|
| | | <a href="javascript:;" onclick="jumpBattgroupStatic(this)" target="_blank"><s:text name="Check_battery_statistical_analysis_queries"/></a> <!-- 查看电池组统计分析查询 --> |
| | | <a href="javascript:;" onclick="jumpBattmonomertatic(this)" target="_blank"><s:text name="Check_battery_monomer_record_behind"/></a> <!-- 查看电池落后单体记录 -->
|
| | | <a href="eleBrdwMaint.jsp" target="_blank"><s:text name="Check_abnormal_battery_maintenance_record"/></a> <!-- 查看异常电池维护记录 -->
|
| | | </div>
|
| | |
|
| | |
| | | </body>
|
| | | <script type="text/javascript" src="js/ele_statistics.js"></script>
|
| | | <script type="text/javascript" src="js/createTab.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript">
|
| | | var permits;
|
| | | <% Object obj=session.getAttribute("permits");
|
| | |
| | | var battinfo_list = new Array();
|
| | | var formjson;
|
| | | $(document).ready(function(){
|
| | | $(window).resize(function() {
|
| | | setTblWidth($('#tbHead'), $('#maintence_infor'));
|
| | | });
|
| | | |
| | | $("#container a").eq(0).click(function(){
|
| | | var jsontemp = $("#search_form").serialize();
|
| | | if(jsontemp != formjson){
|
| | | $('#pageCurr').val(1);
|
| | | formjson = jsontemp;
|
| | | }
|
| | | loading.showLoading();
|
| | | var load = layer.load(1);
|
| | | //console.info($("#search_form").serialize());
|
| | | var temp = createSearchForm();
|
| | | console.info(temp);
|
| | | var json = JSON.stringify(temp);
|
| | | battinfo_list = new Array();
|
| | | $.post("Batt_Maint_DealarmAction_serchByConditionNew","result="+json,function(data){
|
| | |
| | | $('#tbHead').text('');
|
| | | $('#maintence_infor').text('');
|
| | | //alert(newArrTd);
|
| | | //alert(ArrayTh); |
| | | //alert(ArrayTh);
|
| | | //createFullTbl($('#tbHead')); |
| | | createTable('tbHead','tbFixed',ArrayTh.length,ArrayTh,newArrTd);
|
| | | createTable('maintence_infor','eleTab',ArrayTh.length,ArrayTh,newArrTd);
|
| | | setTblSize($('#tbHead'), $('#maintenced_infor'));
|
| | |
|
| | | setTblWidth($('#tbHead'), $('#maintence_infor'));
|
| | | //鼠标点击表格触发事件
|
| | | $('#maintence_infor .eleTab tbody tr').mousedown(function(e){
|
| | | $('#maintence_infor .eleTab tbody tr').css('background-color','');
|
| | |
| | | $('#pageCurr').val(1);
|
| | | $('#maintence_infor').text('');
|
| | | }
|
| | | loading.hideLoading();
|
| | | |
| | | layer.close(load);
|
| | | }).error(function(){
|
| | | noContent.showNoContent("查询失败,请检查网络连接!");
|
| | | loading.hideLoading();
|
| | | layer.close(load);
|
| | | });
|
| | | });
|
| | | });
|
| | |
| | | function jumpPage(){
|
| | | if(Page!=undefined){
|
| | | var batt = battinfo_list[trIndex];
|
| | | console.info(batt);
|
| | | //console.info(batt);
|
| | | var url = skipUrl("charge-test.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
|
| | | //console.info(url);
|
| | | window.open(url);
|
| | | //this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
|
| | | $('#right-menu a').eq(0).attr("href","charge-test.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId);
|
| | | //$('#right-menu a').eq(0).attr("href","charge-test.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var batt = battinfo_list[trIndex];
|
| | | //console.info(batt);
|
| | | //this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
|
| | | $(dom).attr("href","eleAnalyse.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId);
|
| | | var url = skipUrl("eleAnalyse.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
|
| | | window.open(url);
|
| | | //$(dom).attr("href","eleAnalyse.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var batt = battinfo_list[trIndex];
|
| | | //console.info(batt);
|
| | | //this.setAttribute("href","charge-test.jsp?battgroupId="+battgroupId);
|
| | | $(dom).attr("href","eleMonomer.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId+"&battmon_num=0");
|
| | | var url = skipUrl("eleMonomer.jsp",batt.StationName1,batt.StationName2,batt.StationName5,batt.StationName,batt.BattGroupId);
|
| | | window.open(url);
|
| | | //$(dom).attr("href","eleMonomer.jsp?battgroupId="+batt.BattGroupId+"&stationId="+batt.StationId+"&battmon_num=0");
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup",null,function(data){
|
| | | data=data.result;
|
| | |
| | | });
|
| | |
|
| | | // 根据维护区的内容查询市
|
| | | function findCity() {
|
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | }else {
|
| | | $select.text('').html('<option>暂无可测市</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | findCounty();
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 查询区/县
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: "BattInfAction!serchStationName5",
|
| | | data: "json="+JSON.stringify(tmp),
|
| | | success:function(data) {
|
| | | var rs = JSON.parse(data.result);
|
| | | var $select = $("#county");
|
| | | if(rs.code==1){
|
| | | var _data = rs.data;
|
| | | // 根据数据构造生成下拉列表的数据
|
| | | var optsList = [];
|
| | | for(var i=0;i<_data.length;i++){
|
| | | var __data = _data[i];
|
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName5, __data.StationName5, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | | |
| | | // 根据数据生成下拉列表
|
| | | createOptions($select, optsList, true);
|
| | | }else{
|
| | | $select.text('').html('<option>暂无可测机房站点</option>');
|
| | | }
|
| | | findStationNamebyStationname1();
|
| | | }
|
| | | });
|
| | | }
|
| | | |
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | |
|
| | | //当维护区的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findCounty(true);
|
| | | });
|
| | | |
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | //根据省,市查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val()
|
| | | StationName2:$("#city").val(),
|
| | | StationName5: $("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | var _attr = {
|
| | | StationId: __data.StationId
|
| | | };
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName3, __data, _attr);
|
| | | var tmp = getOptionsData(__data.StationName3, __data.StationName, __data, _attr);
|
| | | optsList.push(tmp);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | $('#station_name').change(function(){
|
| | | findserchByBattGroupNamebystationname();
|
| | | findserchByBattGroupNamebystationname(true);
|
| | | });
|
| | |
|
| | | //根据省,市和机房查询蓄电池组
|
| | | function findserchByBattGroupNamebystationname(){
|
| | | function findserchByBattGroupNamebystationname(isLoad){
|
| | | var stationid = $("#station_name").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):'';
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 构造查询条件
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName3: $("#station_name").val(),
|
| | | StationName5: $("#county").val(),
|
| | | StationName: $("#station_name").val(),
|
| | | StationId: stationid
|
| | | };
|
| | |
|
| | |
| | | }else{
|
| | | $("#battgroup_name").text('').html('<option>暂无可测蓄电池组</option>');
|
| | | }
|
| | | |
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | |
|
| | |
| | | binf:{
|
| | | StationName1:$('#station_name1').val(),
|
| | | StationName2:$('#city').val(),
|
| | | StationName5:$('#county').val(),
|
| | | StationName:$('#station_name').val(),
|
| | | BattGroupId:$('#battgroup_name').val(),
|
| | | BattProducer:$('#batt_producer').val(),
|