1234567891011121314151617181920212223242526272829303132 |
- (function() {
- BemsWebApplication.BemsReportFormatViewModel = function (data) {
- this.ReportFormatId = ko.observable();
- this.ForamtName = ko.observable();
- this.Content = ko.observable();
- this.parts = ko.observable();
- if(data)
- this.fromJS(data);
- };
- $.extend(BemsWebApplication.BemsReportFormatViewModel.prototype, {
- toJS: function() {
- return {
- ReportFormatId: this.ReportFormatId(),
- ForamtName: this.ForamtName(),
- Content: this.Content(),
- parts: this.parts()
- };
- },
- fromJS: function(data) {
- if (data) {
- this.ReportFormatId(data.ReportFormatId);
- this.ForamtName(data.ForamtName);
- this.Content(data.Content);
- this.parts(data.Content);
-
- }
- }
- });
- })();
|