(function () {
    BemsWebApplication.FmsBudgetDetailExecutionExViewModel = function (data) {
        this.SiteId = ko.observable();
        this.Year = ko.observable();
        this.Month = ko.observable();

        if (data)
            this.fromJS(data);
    };

    $.extend(BemsWebApplication.FmsBudgetDetailExecutionExViewModel.prototype, {
        toJS: function () {
            return {
                SiteId: this.SiteId(),
                Month: this.Month(),
                Year: this.Year(),
                
            };
        },

        fromJS: function (data) {
            if (data) {
                this.SiteId(data.SiteId);
                this.Month(data.Month);
                this.Year(data.Year);
                


            }
        }
    });
})();