| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | 
(function() {    BemsWebApplication.FmsWorkDailyRecordViewModel = function(data) {            this.SiteId = ko.observable();            this.WorkDate = ko.observable();            this.TemplateId = ko.observable();            this.DailyRecordId = ko.observable();            this.BusinessFieldId = ko.observable();            this.UpdateFlag = ko.observable();            this.DeleteFlag = ko.observable();            this.DiaryName = ko.observable();            this.Weather = ko.observable();            this.ConfirmdatetimeStep1 = ko.observable();            this.ConfirmUserIdStep1 = ko.observable();            this.ConfirmdatetimeStep2 = ko.observable();            this.ConfirmUserIdStep2 = ko.observable();            this.ConfirmdatetimeStep3 = ko.observable();            this.ConfirmUserIdStep3 = ko.observable();            this.ConfirmdatetimeStep4 = ko.observable();            this.ConfirmUserIdStep4 = ko.observable();            this.ConfirmdatetimeStep5 = ko.observable();            this.ConfirmUserIdStep5 = ko.observable();            this.SortOrderNo = ko.observable();            this.InsertedDate = ko.observable();            this.InsertedUserId = ko.observable();            this.UpdatedDate = ko.observable();            this.UpdatedUserId = ko.observable();            this.AttendComment = ko.observable();            this.PlanContent = ko.observable();            this.EtcContent = ko.observable();            if(data)                this.fromJS(data);    };    $.extend(BemsWebApplication.FmsWorkDailyRecordViewModel.prototype, {        toJS: function() {            return {                SiteId: this.SiteId(),                WorkDate: this.WorkDate(),                TemplateId: this.TemplateId(),                DailyRecordId: this.DailyRecordId(),                BusinessFieldId: this.BusinessFieldId(),                UpdateFlag: this.UpdateFlag(),                DeleteFlag: this.DeleteFlag(),                DiaryName: this.DiaryName(),                Weather: this.Weather(),                ConfirmdatetimeStep1: this.ConfirmdatetimeStep1(),                ConfirmUserIdStep1: this.ConfirmUserIdStep1(),                ConfirmdatetimeStep2: this.ConfirmdatetimeStep2(),                ConfirmUserIdStep2: this.ConfirmUserIdStep2(),                ConfirmdatetimeStep3: this.ConfirmdatetimeStep3(),                ConfirmUserIdStep3: this.ConfirmUserIdStep3(),                ConfirmdatetimeStep4: this.ConfirmdatetimeStep4(),                ConfirmUserIdStep4: this.ConfirmUserIdStep4(),                ConfirmdatetimeStep5: this.ConfirmdatetimeStep5(),                ConfirmUserIdStep5: this.ConfirmUserIdStep5(),                SortOrderNo: this.SortOrderNo(),                InsertedDate: this.InsertedDate(),                InsertedUserId: this.InsertedUserId(),                UpdatedDate: this.UpdatedDate(),                UpdatedUserId: this.UpdatedUserId(),                AttendComment: this.AttendComment(),                PlanContent: this.PlanContent(),                EtcContent: this.EtcContent(),            };        },        fromJS: function(data) {            if(data) {                this.SiteId(data.SiteId);                this.WorkDate(data.WorkDate);                this.TemplateId(data.TemplateId);                this.DailyRecordId(data.DailyRecordId);                this.BusinessFieldId(data.BusinessFieldId);                this.UpdateFlag(data.UpdateFlag);                this.DeleteFlag(data.DeleteFlag);                this.DiaryName(data.DiaryName);                this.Weather(data.Weather);                this.ConfirmdatetimeStep1(data.ConfirmdatetimeStep1);                this.ConfirmUserIdStep1(data.ConfirmUserIdStep1);                this.ConfirmdatetimeStep2(data.ConfirmdatetimeStep2);                this.ConfirmUserIdStep2(data.ConfirmUserIdStep2);                this.ConfirmdatetimeStep3(data.ConfirmdatetimeStep3);                this.ConfirmUserIdStep3(data.ConfirmUserIdStep3);                this.ConfirmdatetimeStep4(data.ConfirmdatetimeStep4);                this.ConfirmUserIdStep4(data.ConfirmUserIdStep4);                this.ConfirmdatetimeStep5(data.ConfirmdatetimeStep5);                this.ConfirmUserIdStep5(data.ConfirmUserIdStep5);                this.SortOrderNo(data.SortOrderNo);                this.InsertedDate(data.InsertedDate);                this.InsertedUserId(data.InsertedUserId);                this.UpdatedDate(data.UpdatedDate);                this.UpdatedUserId(data.UpdatedUserId);                this.AttendComment(data.AttendComment);                this.PlanContent(data.PlanContent);                this.EtcContent(data.EtcContent);            }        }    });})();
 |