| 123456789101112131415161718192021222324252627282930 | 
							- 
 
- (function () {
 
-     BemsWebApplication.BemsAlarmGroupUserViewModel = function (data) {
 
-         this.SiteId = ko.observable();
 
-         this.AlarmGroupId = ko.observable();
 
-         this.UserId = ko.observable();
 
-         if (data)
 
-             this.fromJS(data);
 
-     };
 
-     $.extend(BemsWebApplication.BemsAlarmGroupUserViewModel.prototype, {
 
-         toJS: function () {
 
-             return {
 
-                 SiteId: this.SiteId(),
 
-                 AlarmGroupId: this.AlarmGroupId(),
 
-                 UserId: this.UserId(),
 
-             };
 
-         },
 
-         fromJS: function (data) {
 
-             if (data) {
 
-                 this.SiteId(data.SiteId);
 
-                 this.AlarmGroupId(data.AlarmGroupId);
 
-                 this.UserId(data.UserId);
 
-             }
 
-         }
 
-     });
 
- })();
 
 
  |