123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- $(function () {
- "use strict";
- BWA.Chart = BWA.Chart || {};
-
- function PointHistoryGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/Location';
- }
- function FormulaGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsFormula/Calculation';
- }
-
-
-
- function PointHistoryServiceTypeGet(siteId) {
- this.siteId = siteId;
-
-
- this.apiUri = 'BemsMonitoringPointHistory/ServiceType';
- }
-
- function PointHistory_ZoneTempHumiGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/Location_ZoneTempHumi';
- }
- function PointHistory_RunTimeGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/FacilityRunTime';
- }
-
- function PointHistory_RuntimeREFRIGERATORGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/RuntimeREFRIGERATOR';
- }
-
- function PointHistory_RuntimeBOILERGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/RuntimeBOILER';
- }
-
- function PointHistory_MonthMoneyGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/MonthMoney';
- }
-
- function PointHistory_CurrentValueGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/CurrentValueFrom15min';
- }
-
- function VirtualNormalPointHistory_CurrentValueGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/VirtualNormalFacilityData';
- }
-
- function ForecastingPointHistory_DayAheadValueGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/ForecastingDayAheadData';
- }
- function ForecastingPointHistory_HourAheadValueGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/ForecastingHourAheadData';
- }
-
-
- function IceThermalStorage_SimulationValueGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/IceThermalStorageSimulation';
- }
-
- function PointHistory_LCCViewGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/LCCView';
- }
- function PointHistory_LCCViewPreSumGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/LCCViewPreSum';
- }
- function FmsHouseStockGet(siteId) {
- this.siteId = siteId;
- this.apiUri = 'BemsMonitoringPointHistory/FmsHouseStock';
- }
- function apiGet(parameters) {
- if (parameters == undefined) return;
- if (_.has(parameters, 'SiteId') === false) {
- parameters.SiteId = this.siteId;
- }
- if (_.has(parameters, 'EndDate') === false) {
- parameters.EndDate = this.StartDate;
- }
- parameters.StartDate = $G.dateTime(parameters.StartDate);
- parameters.EndDate = $G.dateTime(parameters.EndDate);
- return BemsWebApplication.api.get(this.apiUri, parameters);
- };
- BWA.Chart.FormulaGet = FormulaGet;
- BWA.Chart.PointHistoryGet = PointHistoryGet;
- BWA.Chart.PointHistory_ZoneTempHumiGet = PointHistory_ZoneTempHumiGet;
- BWA.Chart.PointHistory_RunTimeGet = PointHistory_RunTimeGet;
- BWA.Chart.PointHistory_RuntimeREFRIGERATORGet = PointHistory_RuntimeREFRIGERATORGet;
- BWA.Chart.PointHistory_RuntimeBOILERGet = PointHistory_RuntimeBOILERGet;
-
- BWA.Chart.PointHistoryServiceTypeGet = PointHistoryServiceTypeGet;
-
-
- BWA.Chart.FmsHouseStockGet = FmsHouseStockGet;
- BWA.Chart.PointHistory_LCCViewPreSumGet = PointHistory_LCCViewPreSumGet;
- BWA.Chart.PointHistory_LCCViewGet = PointHistory_LCCViewGet;
- BWA.Chart.PointHistory_MonthMoneyGet = PointHistory_MonthMoneyGet;
- BWA.Chart.PointHistory_CurrentValueGet = PointHistory_CurrentValueGet;
- BWA.Chart.VirtualNormalPointHistory_CurrentValueGet = VirtualNormalPointHistory_CurrentValueGet;
- BWA.Chart.ForecastingPointHistory_DayAheadValueGet = ForecastingPointHistory_DayAheadValueGet;
- BWA.Chart.ForecastingPointHistory_HourAheadValueGet = ForecastingPointHistory_HourAheadValueGet;
- BWA.Chart.IceThermalStorage_SimulationValueGet = IceThermalStorage_SimulationValueGet;
-
- FmsHouseStockGet.prototype.apiGet =
- PointHistory_LCCViewPreSumGet.prototype.apiGet =
- PointHistory_LCCViewGet.prototype.apiGet =
- PointHistory_CurrentValueGet.prototype.apiGet =
- VirtualNormalPointHistory_CurrentValueGet.prototype.apiGet =
- PointHistory_MonthMoneyGet.prototype.apiGet =
- PointHistory_RuntimeBOILERGet.prototype.apiGet =
- PointHistory_RuntimeREFRIGERATORGet.prototype.apiGet =
- PointHistory_ZoneTempHumiGet.prototype.apiGet = PointHistoryServiceTypeGet.prototype.apiGet =
- PointHistory_RunTimeGet.prototype.apiGet =
- PointHistoryGet.prototype.apiGet = FormulaGet.prototype.apiGet = apiGet;
- ForecastingPointHistory_DayAheadValueGet.prototype.apiGet = ForecastingPointHistory_HourAheadValueGet.prototype.apiGet = apiGet;
- IceThermalStorage_SimulationValueGet.prototype.apiGet = apiGet;
- VirtualNormalPointHistory_CurrentValueGet.prototype.apiGet = apiGet;
-
- });
|