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