| 12345678910111213141516171819202122232425262728293031323334353637 | 
(function () {    BemsWebApplication.BemsPeakHistoryDailyViewModel = function (data) {        this.SiteId = ko.observable();        this.CreatedDateTime = ko.observable();        this.MaxPeakValue = ko.observable();        this.MaxDateTime = ko.observable();        this.MinPeakValue = ko.observable();        this.MinDateTime = ko.observable();        if (data)            this.fromJS(data);    };    $.extend(BemsWebApplication.BemsPeakHistoryDailyViewModel.prototype, {        toJS: function () {            return {                SiteId: this.SiteId(),                CreatedDateTime: this.CreatedDateTime(),                MaxPeakValue: this.MaxPeakValue(),                MaxDateTime: this.MaxDateTime(),                MinPeakValue: this.MinPeakValue(),                MinDateTime: this.MinDateTime(),            };        },        fromJS: function (data) {            if (data) {                this.SiteId(data.SiteId);                this.CreatedDateTime(data.CreatedDateTime);                this.MaxPeakValue(data.MaxPeakValue);                this.MaxDateTime(data.MaxDateTime);                this.MinPeakValue(data.MinPeakValue);                this.MinDateTime(data.MinDateTime);            }        }    });})();
 |