1234567891011121314151617181920212223242526272829 |
- (function() {
- BemsWebApplication.FmsMaterialCodeAdjustmentTypeViewModel = function (data) {
- this.AdjustmentTypeId = ko.observable();
- this.Name = ko.observable();
- this.Comment = ko.observable();
- if(data)
- this.fromJS(data);
- };
- $.extend(BemsWebApplication.FmsMaterialCodeAdjustmentTypeViewModel.prototype, {
- toJS: function() {
- return {
- AdjustmentTypeId: this.AdjustmentTypeId(),
- Name: this.Name(),
- Comment: this.Comment(),
- };
- },
- fromJS: function(data) {
- if(data) {
- this.AdjustmentTypeId(data.AdjustmentTypeId);
- this.Name(data.Name);
- this.Comment(data.Comment);
- }
- }
- });
- })();
|