e8b05b032a3ba03b3bf83f5cfdeb11fa51c7b880.svn-base 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. (function () {
  2. BemsWebApplication.BemsChartInfoViewModel = function (data) {
  3. this.SiteId = ko.observable();
  4. this.FacilityTypeId = ko.observable();
  5. this.ChartId = ko.observable();
  6. this.Palette = ko.observable();
  7. this.Title = ko.observable();
  8. this.LAxTitle = ko.observable();
  9. this.RAxTitle = ko.observable();
  10. this.XAxTitle = ko.observable();
  11. this.XSFmId = ko.observable();
  12. this.XSType = ko.observable();
  13. this.UseX = ko.observable();
  14. this.UseXAxMinMax = ko.observable();
  15. this.UseLAxMinMax = ko.observable();
  16. this.UseRAxMinMax = ko.observable();
  17. this.LAxMin = ko.observable();
  18. this.LAxMax = ko.observable();
  19. this.RAxMin = ko.observable();
  20. this.RAxMax = ko.observable();
  21. this.XAxMin = ko.observable();
  22. this.XAxMax = ko.observable();
  23. this.LSFmId1 = ko.observable();
  24. this.LSName1 = ko.observable();
  25. this.LSType1 = ko.observable();
  26. this.LSFmId2 = ko.observable();
  27. this.LSName2 = ko.observable();
  28. this.LSType2 = ko.observable();
  29. this.LSFmId3 = ko.observable();
  30. this.LSName3 = ko.observable();
  31. this.LSType3 = ko.observable();
  32. this.LSFmId4 = ko.observable();
  33. this.LSName4 = ko.observable();
  34. this.LSType4 = ko.observable();
  35. this.RSFmId1 = ko.observable();
  36. this.RSName1 = ko.observable();
  37. this.RSType1 = ko.observable();
  38. this.RSFmId2 = ko.observable();
  39. this.RSName2 = ko.observable();
  40. this.RSType2 = ko.observable();
  41. this.RSFmId3 = ko.observable();
  42. this.RSName3 = ko.observable();
  43. this.RSType3 = ko.observable();
  44. this.RSFmId4 = ko.observable();
  45. this.RSName4 = ko.observable();
  46. this.RSType4 = ko.observable();
  47. this.UseChart = ko.observable();
  48. this.UseLCTLine = ko.observable();
  49. this.LCTLineTitle = ko.observable();
  50. this.LCTLineValue = ko.observable();
  51. this.UseRCTLine = ko.observable();
  52. this.RCTLineTitle = ko.observable();
  53. this.RCTLineValue = ko.observable();
  54. if (data)
  55. this.fromJS(data);
  56. };
  57. $.extend(BemsWebApplication.BemsChartInfoViewModel.prototype, {
  58. toJS: function () {
  59. return {
  60. SiteId: this.SiteId(),
  61. FacilityTypeId: this.FacilityTypeId(),
  62. ChartId: this.ChartId(),
  63. Title: this.Title(),
  64. Palette:this.Palette(),
  65. LAxTitle: this.LAxTitle(),
  66. RAxTitle: this.RAxTitle(),
  67. XAxTitle: this.XAxTitle(),
  68. XSFmId: this.XSFmId(),
  69. XSType: this.XSType(),
  70. UseX: this.UseX(),
  71. UseXAxMinMax: this.UseXAxMinMax(),
  72. UseLAxMinMax: this.UseLAxMinMax(),
  73. UseRAxMinMax: this.UseRAxMinMax(),
  74. LAxMin: this.LAxMin(),
  75. LAxMax: this.LAxMax(),
  76. RAxMin: this.RAxMin(),
  77. RAxMax: this.RAxMax(),
  78. XAxMin: this.XAxMin(),
  79. XAxMax: this.XAxMax(),
  80. LSFmId1: this.LSFmId1(),
  81. LSName1: this.LSName1(),
  82. LSType1: this.LSType1(),
  83. LSFmId2: this.LSFmId2(),
  84. LSName2: this.LSName2(),
  85. LSType2: this.LSType2(),
  86. LSFmId3: this.LSFmId3(),
  87. LSName3: this.LSName3(),
  88. LSType3: this.LSType3(),
  89. LSFmId4: this.LSFmId4(),
  90. LSName4: this.LSName4(),
  91. LSType4: this.LSType4(),
  92. RSFmId1: this.RSFmId1(),
  93. RSName1: this.RSName1(),
  94. RSType1: this.RSType1(),
  95. RSFmId2: this.RSFmId2(),
  96. RSName2: this.RSName2(),
  97. RSType2: this.RSType2(),
  98. RSFmId3: this.RSFmId3(),
  99. RSName3: this.RSName3(),
  100. RSType3: this.RSType3(),
  101. RSFmId4: this.RSFmId4(),
  102. RSName4: this.RSName4(),
  103. RSType4: this.RSType4(),
  104. //2018 03 07 Ãß°¡
  105. UseChart: this.UseChart(),
  106. //2018 03 12 Ãß°¡ hcLee
  107. UseLCTLine: this.UseLCTLine(),
  108. LCTLineTitle: this.LCTLineTitle(),
  109. LCTLineValue: this.LCTLineValue(),
  110. UseRCTLine: this.UseRCTLine(),
  111. RCTLineTitle: this.RCTLineTitle(),
  112. RCTLineValue: this.RCTLineValue(),
  113. };
  114. },
  115. fromJS: function (data) {
  116. if (data) {
  117. this.SiteId(data.SiteId);
  118. this.FacilityTypeId(data.FacilityTypeId);
  119. this.ChartId(data.ChartId);
  120. this.Title(data.Title);
  121. this.Palette(data.Palette);
  122. this.LAxTitle(data.LAxTitle);
  123. this.RAxTitle(data.RAxTitle);
  124. this.XAxTitle(data.XAxTitle);
  125. this.XSFmId(data.XSFmId);
  126. this.XSType(data.XSType);
  127. this.UseX(data.UseX);
  128. this.UseXAxMinMax(data.UseXAxMinMax);
  129. this.UseLAxMinMax(data.UseLAxMinMax);
  130. this.UseRAxMinMax(data.UseRAxMinMax);
  131. this.LAxMin(data.LAxMin);
  132. this.LAxMax(data.LAxMax);
  133. this.RAxMin(data.RAxMin);
  134. this.RAxMax(data.RAxMax);
  135. this.XAxMin(data.XAxMin);
  136. this.XAxMax(data.XAxMax);
  137. this.LSFmId1(data.LSFmId1);
  138. this.LSName1(data.LSName1);
  139. this.LSType1(data.LSType1);
  140. this.LSFmId2(data.LSFmId2);
  141. this.LSName2(data.LSName2);
  142. this.LSType2(data.LSType2);
  143. this.LSFmId3(data.LSFmId3);
  144. this.LSName3(data.LSName3);
  145. this.LSType3(data.LSType3);
  146. this.LSFmId4(data.LSFmId4);
  147. this.LSName4(data.LSName4);
  148. this.LSType4(data.LSType4);
  149. this.RSFmId1(data.RSFmId1);
  150. this.RSName1(data.RSName1);
  151. this.RSType1(data.RSType1);
  152. this.RSFmId2(data.RSFmId2);
  153. this.RSName2(data.RSName2);
  154. this.RSType2(data.RSType2);
  155. this.RSFmId3(data.RSFmId3);
  156. this.RSName3(data.RSName3);
  157. this.RSType3(data.RSType3);
  158. this.RSFmId4(data.RSFmId4);
  159. this.RSName4(data.RSName4);
  160. this.RSType4(data.RSType4);
  161. this.UseChart(data.UseChart);
  162. // 2018 03 12 hcLee Ãß°¡
  163. this.UseLCTLine(data.UseLCTLine);
  164. this.LCTLineTitle(data.LCTLineTitle);
  165. this.LCTLineValue(data.LCTLineValue);
  166. this.UseRCTLine(data.UseRCTLine);
  167. this.RCTLineTitle(data.RCTLineTitle);
  168. this.RCTLineValue(data.RCTLineValue);
  169. }
  170. }
  171. });
  172. })();