1234567891011121314151617181920212223242526272829303132333435 |
-
- (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);
-
- }
- }
- });
- })();
|