1234567891011121314151617181920212223242526 |
- (function() {
- BemsWebApplication.BemsFacilityTypeViewModel = function(data) {
- this.FacilityTypeId = ko.observable()
- this.Name = ko.observable()
- if(data)
- this.fromJS(data)
- }
- $.extend(BemsWebApplication.BemsFacilityTypeViewModel.prototype, {
- toJS: function() {
- return {
- FacilityTypeId: this.FacilityTypeId(),
- Name: this.Name(),
- }
- },
- fromJS: function(data) {
- if(data) {
- this.FacilityTypeId(data.FacilityTypeId)
- this.Name(data.Name)
- }
- }
- })
- })()
|