| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | 
							- (function () {
 
-     BemsWebApplication.CmPatrolPlanViewModel = function (data) {
 
-         this.SiteId = ko.observable();
 
-         this.PatrolPlanId = ko.observable();
 
-         this.GroupId = ko.observable();
 
-         this.CourseId = ko.observable();
 
-         this.Name = ko.observable();
 
-         this.PlanDesc = ko.observable();
 
-         this.term = ko.observable();
 
-         this.inDate = ko.observable();
 
-         if (data)
 
-             this.fromJS(data);
 
-     };
 
-     $.extend(BemsWebApplication.CmPatrolPlanViewModel.prototype, {
 
-         toJS: function () {
 
-             return {
 
-                 SiteId: this.SiteId(),
 
-                 PatrolPlanId: this.PatrolPlanId(),
 
-                 GroupId: this.GroupId(),
 
-                 CourseId: this.CourseId(),
 
-                 Name: this.Name(),
 
-                 PlanDesc: this.PlanDesc(),
 
-                 term: this.term(),
 
-                 inDate: this.inDate(),
 
-             };
 
-         },
 
-         fromJS: function (data) {
 
-             if (data) {
 
-                 this.SiteId(data.SiteId);
 
-                 this.PatrolPlanId(data.PatrolPlanId);
 
-                 this.GroupId(data.GroupId);
 
-                 this.CourseId(data.CourseId);
 
-                 this.Name(data.Name);
 
-                 this.PlanDesc(data.PlanDesc);
 
-                 this.term(data.term);
 
-                 this.inDate(data.inDate);
 
-             }
 
-         }
 
-     });
 
- })();
 
 
  |