| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
(function() {    BemsWebApplication.FmsFacilityCheckItemViewModel = function(data) {            this.SiteId = ko.observable();            this.FacilityCode = ko.observable();            this.CheckItemId = ko.observable();            this.WorkTypeId = ko.observable();            this.CycleUnitId = ko.observable();            this.Name = ko.observable();            this.IsYesNoResult = ko.observable();            this.IsUse = ko.observable();            if(data)                this.fromJS(data);    };    $.extend(BemsWebApplication.FmsFacilityCheckItemViewModel.prototype, {        toJS: function() {            return {                SiteId: this.SiteId(),                FacilityCode: this.FacilityCode(),                CheckItemId: this.CheckItemId(),                WorkTypeId: this.WorkTypeId(),                CycleUnitId: this.CycleUnitId(),                Name: this.Name(),                IsYesNoResult: this.IsYesNoResult(),                IsUse: this.IsUse(),            };        },        fromJS: function(data) {            if(data) {                this.SiteId(data.SiteId);                this.FacilityCode(data.FacilityCode);                this.CheckItemId(data.CheckItemId);                this.WorkTypeId(data.WorkTypeId);                this.CycleUnitId(data.CycleUnitId);                this.Name(data.Name);                this.IsYesNoResult(data.IsYesNoResult);                this.IsUse(data.IsUse);            }        }    });})();
 |