diff --git a/Backend/Controllers/NiagaraDataSynchronizeController.cs b/Backend/Controllers/NiagaraDataSynchronizeController.cs index e19ff8c..8209ed9 100644 --- a/Backend/Controllers/NiagaraDataSynchronizeController.cs +++ b/Backend/Controllers/NiagaraDataSynchronizeController.cs @@ -40,13 +40,16 @@ namespace Backend.Controllers try { List ds; - string url_slot = "slot:/TPE/B1|"; + string url_slot = "slot:/TPE/B1|";//三菱 + //string url_slot = "slot:/NTPC/B1|";//wsp + string top100 = "";//" top 100 "; webRequestService svc = new webRequestService(); string bql = url_slot + "bql:select " + top100 + " * from control:ControlPoint "; //ds = svc.obixQuery("http://192.168.0.136:8080/obix/config/Arena/Program/ObixQuery/query/", bql); //ds = svc.obixQuery("http://localhost:8080/obix/config/Program/ObixQuery/query/", bql); - ds = svc.obixQuery("http://192.168.0.136:8080/obix/config/Program/ObixQuery/query/", bql); + ds = svc.obixQuery("http://192.168.0.136:8080/obix/config/Program/ObixQuery/query/", bql);//三菱 + //ds = svc.obixQuery("http://192.168.0.136:8081/obix/config/Program/ObixQuery/query/", bql);//wsp apiResult.Code = "0000"; apiResult.Data = ds; diff --git a/Backend/appsettings.Development.json b/Backend/appsettings.Development.json index 9797a42..e02e024 100644 --- a/Backend/appsettings.Development.json +++ b/Backend/appsettings.Development.json @@ -16,7 +16,8 @@ "MySqlDBConfig": { "Server": "FYlY+w0XDIz+jmF2rlZWJw==", //0.201 "Port": "js2LutKe+rdjzdxMPQUrvQ==", - "Database": "VJB2XC+lAtzuHObDGMVOAA==", //30 + "Database": "VJB2XC+lAtzuHObDGMVOAA==", //30 + //"Database": "IgYBsgG2VLKKxFb64j7LOA==", //wsp "Root": "SzdxEgaJJ7tcTCrUl2zKsA==", "Password": "FVAPxztxpY4gJJKQ/se4bQ==" } diff --git a/Frontend/_dashboard.html b/Frontend/_dashboard.html index ab70fcc..51df0a6 100644 --- a/Frontend/_dashboard.html +++ b/Frontend/_dashboard.html @@ -308,22 +308,14 @@ //取得第一筆電錶 function getFirstEletric() { - let url = baseApiUrl + "/api/Device/GetDeviceList"; - let sendData = { - sub_system_tag: "E4", - building_tag: pageAct.buiTag, - }; - objSendData.Data = sendData; - ytAjax = new YourTeam.Ajax(url, objSendData, function (res) { + let url = baseApiUrl + "/api/Energe/GetElecBySubSysTag"; + + ytAjax = new YourTeam.Ajax(url, null, function (res) { if (!res || res.code != "0000" || !res.data) { } else { - - $.each(res.data, (index, floObj) => { - $.each(floObj.device_list, (index2, devObj) => { - tarElePath = devObj.device_number; - }) - }) + subSysElecList = res.data; + tarElePath = subSysElecList.filter(x => x.mainSubTag == "total")[0]?.system_device_tag ?? ""; startPageLoading(); getSubBaja(); getElectricBaja(); @@ -803,6 +795,7 @@ function subDeviceSetStatus() { let subOrdPath = { + "area_tag": pageAct.AreaTag, "building_tag": pageAct.buiTag, "system_tag": "ELEV", "name_tag": "EL", diff --git a/Frontend/_sysElevator.html b/Frontend/_sysElevator.html index aec5321..9201177 100644 --- a/Frontend/_sysElevator.html +++ b/Frontend/_sysElevator.html @@ -920,6 +920,7 @@ var elev3DOption = {}; var elev3DObj = []; var subOrdPath = { + "area_tag": pageAct.AreaTag, "building_tag": pageAct.buiTag, "system_tag": pageAct.sysMainTag, "name_tag": pageAct.sysSubTag, @@ -1970,8 +1971,6 @@ var dataPoint = floChart.convertFromPixel({ geoIndex: 0 }, pixelPoint); console.log(dataPoint); - - temp_device_on_floor_map = [{ device_guid: selected_temp_device.device_guid, device_full_name: selected_temp_device.device_full_name, diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index ae64eb7..7713a57 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -1,9 +1,8 @@ 
-
+
@@ -25,7 +24,7 @@
- +
@@ -37,46 +36,49 @@