| 1234567891011121314151617181920212223242526272829303132 | 
(function () {    BemsWebApplication.FmsContractClassViewModel = function (data) {        this.SiteId = ko.observable();        this.ContractClassId = ko.observable();        this.Name = ko.observable();        this.IsUse = ko.observable();        if (data)            this.fromJS(data);    };    $.extend(BemsWebApplication.FmsContractClassViewModel.prototype, {        toJS: function () {            return {                SiteId: this.SiteId(),                ContractClassId: this.ContractClassId(),                Name: this.Name(),                IsUse: this.IsUse(),            };        },        fromJS: function (data) {            if (data) {                this.SiteId(data.SiteId);                this.ContractClassId(data.ContractClassId);                this.Name(data.Name);                this.IsUse(data.IsUse);            }        }    });})();
 |