| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | (function () {    Partials.ConsumeDailyViewModel = function (data) {        this.SiteId = ko.observable();        this.BuildingId = ko.observable();        this.Year = ko.observable();        this.Month = ko.observable();        this.Day = ko.observable();        this.Cooler = ko.observable();        this.Boiler = ko.observable();        this.Goal = ko.observable();        this.Product = ko.observable();        if (data)            this.fromJS(data);    };    $.extend(Partials.ConsumeDailyViewModel.prototype, {        toJS: function () {            return {                SiteId: this.SiteId(),                BuildingId: this.BuildingId(),                Year: this.Year(),                Month: this.Month(),                Day: this.Day(),                Cooler: this.Cooler(),                Boiler: this.Boiler(),                Goal: this.Goal(),                Product: this.Product(),            };        },        fromJS: function (data) {            if (data) {                this.SiteId(data.SiteId);                this.BuildingId(data.BuildingId);                this.Year(data.Year);                this.Month(data.Month);                this.Day(data.Day);                this.Cooler(data.Cooler);                this.Boiler(data.Boiler);                this.Goal(data.Goal);                this.Product(data.Product);            }        }    });})();
 |