| 123456789101112131415161718192021222324252627 | 
							- (function() {
 
-     BemsWebApplication.CmPatrolGroupViewModel = function(data) {
 
-             this.SiteId = ko.observable();
 
-             this.PatrolGroupId = ko.observable();
 
-             this.Name = ko.observable();
 
-             if(data)
 
-                 this.fromJS(data);
 
-     };
 
-     $.extend(BemsWebApplication.CmPatrolGroupViewModel.prototype, {
 
-         toJS: function() {
 
-             return {
 
-                 SiteId: this.SiteId(),
 
-                 PatrolGroupId: this.PatrolGroupId(),
 
-                 Name: this.Name(),
 
-             };
 
-         },
 
-         fromJS: function(data) {
 
-             if(data) {
 
-                 this.SiteId(data.SiteId);
 
-                 this.PatrolGroupId(data.PatrolGroupId);
 
-                 this.Name(data.Name);
 
-             }
 
-         }
 
-     });
 
- })();
 
 
  |