1234567891011121314151617181920212223242526272829303132 |
- (function() {
- BemsWebApplication.FmsDrawingCodeGroupViewModel = function(data) {
- this.SiteId = ko.observable()
- this.DrawingGroupId = ko.observable()
- this.Name = ko.observable()
- this.IsUse = ko.observable()
- if(data)
- this.fromJS(data)
- }
- $.extend(BemsWebApplication.FmsDrawingCodeGroupViewModel.prototype, {
- toJS: function() {
- return {
- SiteId: this.SiteId(),
- DrawingGroupId: this.DrawingGroupId(),
- Name: this.Name(),
- IsUse: this.IsUse(),
- }
- },
- fromJS: function(data) {
- if(data) {
- this.SiteId(data.SiteId)
- this.DrawingGroupId(data.DrawingGroupId)
- this.Name(data.Name)
- this.IsUse(data.IsUse)
- }
- }
- })
- })()
|