(function () { BemsWebApplication.BemsChartInfoViewModel = function (data) { this.SiteId = ko.observable(); this.FacilityTypeId = ko.observable(); this.ChartId = ko.observable(); this.Palette = ko.observable(); this.Title = ko.observable(); this.LAxTitle = ko.observable(); this.RAxTitle = ko.observable(); this.XAxTitle = ko.observable(); this.XSFmId = ko.observable(); this.XSType = ko.observable(); this.UseX = ko.observable(); this.UseXAxMinMax = ko.observable(); this.UseLAxMinMax = ko.observable(); this.UseRAxMinMax = ko.observable(); this.LAxMin = ko.observable(); this.LAxMax = ko.observable(); this.RAxMin = ko.observable(); this.RAxMax = ko.observable(); this.XAxMin = ko.observable(); this.XAxMax = ko.observable(); this.LSFmId1 = ko.observable(); this.LSName1 = ko.observable(); this.LSType1 = ko.observable(); this.LSFmId2 = ko.observable(); this.LSName2 = ko.observable(); this.LSType2 = ko.observable(); this.LSFmId3 = ko.observable(); this.LSName3 = ko.observable(); this.LSType3 = ko.observable(); this.LSFmId4 = ko.observable(); this.LSName4 = ko.observable(); this.LSType4 = ko.observable(); this.RSFmId1 = ko.observable(); this.RSName1 = ko.observable(); this.RSType1 = ko.observable(); this.RSFmId2 = ko.observable(); this.RSName2 = ko.observable(); this.RSType2 = ko.observable(); this.RSFmId3 = ko.observable(); this.RSName3 = ko.observable(); this.RSType3 = ko.observable(); this.RSFmId4 = ko.observable(); this.RSName4 = ko.observable(); this.RSType4 = ko.observable(); this.UseChart = ko.observable(); this.UseLCTLine = ko.observable(); this.LCTLineTitle = ko.observable(); this.LCTLineValue = ko.observable(); this.UseRCTLine = ko.observable(); this.RCTLineTitle = ko.observable(); this.RCTLineValue = ko.observable(); if (data) this.fromJS(data); }; $.extend(BemsWebApplication.BemsChartInfoViewModel.prototype, { toJS: function () { return { SiteId: this.SiteId(), FacilityTypeId: this.FacilityTypeId(), ChartId: this.ChartId(), Title: this.Title(), Palette:this.Palette(), LAxTitle: this.LAxTitle(), RAxTitle: this.RAxTitle(), XAxTitle: this.XAxTitle(), XSFmId: this.XSFmId(), XSType: this.XSType(), UseX: this.UseX(), UseXAxMinMax: this.UseXAxMinMax(), UseLAxMinMax: this.UseLAxMinMax(), UseRAxMinMax: this.UseRAxMinMax(), LAxMin: this.LAxMin(), LAxMax: this.LAxMax(), RAxMin: this.RAxMin(), RAxMax: this.RAxMax(), XAxMin: this.XAxMin(), XAxMax: this.XAxMax(), LSFmId1: this.LSFmId1(), LSName1: this.LSName1(), LSType1: this.LSType1(), LSFmId2: this.LSFmId2(), LSName2: this.LSName2(), LSType2: this.LSType2(), LSFmId3: this.LSFmId3(), LSName3: this.LSName3(), LSType3: this.LSType3(), LSFmId4: this.LSFmId4(), LSName4: this.LSName4(), LSType4: this.LSType4(), RSFmId1: this.RSFmId1(), RSName1: this.RSName1(), RSType1: this.RSType1(), RSFmId2: this.RSFmId2(), RSName2: this.RSName2(), RSType2: this.RSType2(), RSFmId3: this.RSFmId3(), RSName3: this.RSName3(), RSType3: this.RSType3(), RSFmId4: this.RSFmId4(), RSName4: this.RSName4(), RSType4: this.RSType4(), //2018 03 07 Ãß°¡ UseChart: this.UseChart(), //2018 03 12 Ãß°¡ hcLee UseLCTLine: this.UseLCTLine(), LCTLineTitle: this.LCTLineTitle(), LCTLineValue: this.LCTLineValue(), UseRCTLine: this.UseRCTLine(), RCTLineTitle: this.RCTLineTitle(), RCTLineValue: this.RCTLineValue(), }; }, fromJS: function (data) { if (data) { this.SiteId(data.SiteId); this.FacilityTypeId(data.FacilityTypeId); this.ChartId(data.ChartId); this.Title(data.Title); this.Palette(data.Palette); this.LAxTitle(data.LAxTitle); this.RAxTitle(data.RAxTitle); this.XAxTitle(data.XAxTitle); this.XSFmId(data.XSFmId); this.XSType(data.XSType); this.UseX(data.UseX); this.UseXAxMinMax(data.UseXAxMinMax); this.UseLAxMinMax(data.UseLAxMinMax); this.UseRAxMinMax(data.UseRAxMinMax); this.LAxMin(data.LAxMin); this.LAxMax(data.LAxMax); this.RAxMin(data.RAxMin); this.RAxMax(data.RAxMax); this.XAxMin(data.XAxMin); this.XAxMax(data.XAxMax); this.LSFmId1(data.LSFmId1); this.LSName1(data.LSName1); this.LSType1(data.LSType1); this.LSFmId2(data.LSFmId2); this.LSName2(data.LSName2); this.LSType2(data.LSType2); this.LSFmId3(data.LSFmId3); this.LSName3(data.LSName3); this.LSType3(data.LSType3); this.LSFmId4(data.LSFmId4); this.LSName4(data.LSName4); this.LSType4(data.LSType4); this.RSFmId1(data.RSFmId1); this.RSName1(data.RSName1); this.RSType1(data.RSType1); this.RSFmId2(data.RSFmId2); this.RSName2(data.RSName2); this.RSType2(data.RSType2); this.RSFmId3(data.RSFmId3); this.RSName3(data.RSName3); this.RSType3(data.RSType3); this.RSFmId4(data.RSFmId4); this.RSName4(data.RSName4); this.RSType4(data.RSType4); this.UseChart(data.UseChart); // 2018 03 12 hcLee Ãß°¡ this.UseLCTLine(data.UseLCTLine); this.LCTLineTitle(data.LCTLineTitle); this.LCTLineValue(data.LCTLineValue); this.UseRCTLine(data.UseRCTLine); this.RCTLineTitle(data.RCTLineTitle); this.RCTLineValue(data.RCTLineValue); } } }); })();