SPANC00200_영양검색판정기준표.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPANC00200" position="absolute 0 0 500 315" titletext="영양검색판정기준표" onload="SPANC00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_close" taborder="1" text="닫기" class="btn4" position="absolute 444 293 500 315" onclick="btn_close_onclick"/>
  8. <Static id="caption1" text="영양검색판정기준표" class="tit_2" position="absolute 0 0 140 16"/>
  9. <Shape id="line1" class="line_10" position="absolute 0 17 500 23"/>
  10. <Grid id="grd_data" taborder="2" binddataset="ds_main_data" useinputpanel="false" position="absolute 0 22 500 291" autofittype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="102"/>
  15. <Column size="0"/>
  16. <Column size="0"/>
  17. <Column size="89"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="90"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="90"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="90"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="good1"/>
  35. <Cell col="2" text="good2"/>
  36. <Cell col="3" text="양호"/>
  37. <Cell col="4" text="low1"/>
  38. <Cell col="5" text="low2"/>
  39. <Cell col="6" text="저위험도"/>
  40. <Cell col="7" text="mid1"/>
  41. <Cell col="8" text="mid2"/>
  42. <Cell col="9" text="중위험도"/>
  43. <Cell col="10" text="high1"/>
  44. <Cell col="11" text="high2"/>
  45. <Cell col="12" text="고위험도"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head" text="bind:cddiv"/>
  49. <Cell col="1" text="bind:good1"/>
  50. <Cell col="2" text="bind:good2"/>
  51. <Cell col="3" text="bind:good"/>
  52. <Cell col="4" text="bind:low1"/>
  53. <Cell col="5" text="bind:low2"/>
  54. <Cell col="6" text="bind:low"/>
  55. <Cell col="7" text="bind:mid1"/>
  56. <Cell col="8" text="bind:mid2"/>
  57. <Cell col="9" text="bind:mid"/>
  58. <Cell col="10" text="bind:high1"/>
  59. <Cell col="11" text="bind:high2"/>
  60. <Cell col="12" text="bind:high"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. </Layout>
  66. </Layouts>
  67. <Objects>
  68. <Dataset id="ds_main_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="cddiv" type="STRING"/>
  71. <Column id="good1" type="STRING"/>
  72. <Column id="good2" type="STRING"/>
  73. <Column id="good" type="STRING"/>
  74. <Column id="low1" type="STRING"/>
  75. <Column id="low2" type="STRING"/>
  76. <Column id="low" type="STRING"/>
  77. <Column id="mid1" type="STRING"/>
  78. <Column id="mid2" type="STRING"/>
  79. <Column id="mid" type="STRING"/>
  80. <Column id="high1" type="STRING"/>
  81. <Column id="high2" type="STRING"/>
  82. <Column id="high" type="STRING"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="cddiv">PIBW(%)</Col>
  87. </Row>
  88. <Row>
  89. <Col id="cddiv">Alb(g/dl)</Col>
  90. </Row>
  91. <Row>
  92. <Col id="cddiv">TLC(cells/mm³)</Col>
  93. </Row>
  94. </Rows>
  95. </Dataset>
  96. <Dataset id="ds_main_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  97. </Objects>
  98. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  99. * System Name :
  100. * Job Name :
  101. * Creator :
  102. * Make Date : 2015-11-13
  103. * Description :
  104. *---------------------------------------------------------------------------------------
  105. * Modify Date Modifier Modify Description
  106. *---------------------------------------------------------------------------------------
  107. * 2015-11-13 Live Converter TF->XP
  108. *
  109. *---------------------------------------------------------------------------------------
  110. ****************************************************************************************/
  111. //=======================================================================================
  112. // Lib Include
  113. //---------------------------------------------------------------------------------------
  114. include 'com_commonxp::comm_main.xjs';
  115. var arErrorCode = new HashArray();
  116. //=======================================================================================
  117. // Local methods
  118. //---------------------------------------------------------------------------------------
  119. /****************************************************************************************
  120. * Argument :
  121. * Description :
  122. ****************************************************************************************/
  123. function fopensearch(){
  124. // 항목별,위험도별로 최저값과 최고값을 hidden 컬럼에 setting
  125. for(var i = 0; i < 12; i++){
  126. var cd = ds_main_receivedata.getColumn(i, 'cd');
  127. var dngrcd = ds_main_receivedata.getColumn(i, 'dngrcd');
  128. var min = ds_main_receivedata.getColumn(i, 'min');
  129. var max = ds_main_receivedata.getColumn(i, 'max');
  130. // PIBW 일 경우
  131. if(cd == 1){
  132. // 양호
  133. if(dngrcd == 1){
  134. min = min.toString().getRound(-1, 'DOWN');
  135. ds_main_data.setColumn(0, 'good', '≥ ' + min);
  136. }
  137. // 저위험
  138. else if(dngrcd == 2){
  139. min = min.toString().getRound(-1, 'DOWN');
  140. max = max.toString().getRound(-1, 'DOWN');
  141. ds_main_data.setColumn(0, 'low', min + ' ~ ' + max);
  142. }
  143. // 중위험
  144. else if(dngrcd == 3){
  145. min = min.toString().getRound(-1, 'DOWN');
  146. max = max.toString().getRound(-1, 'DOWN');
  147. ds_main_data.setColumn(0, 'mid', min + ' ~ ' + max);
  148. }
  149. // 고위험
  150. else if(dngrcd == 4){
  151. max = max.toString().getRound(-1, 'DOWN');
  152. ds_main_data.setColumn(0, 'high', '< ' + max);
  153. }
  154. }
  155. // Alb 일 경우
  156. else if(cd == 2){
  157. if(dngrcd == 1){
  158. ds_main_data.setColumn(1, 'good', '≥ ' + min);
  159. }
  160. else if(dngrcd == 2){
  161. ds_main_data.setColumn(1, 'low', min + ' ~ ' + max);
  162. }
  163. else if(dngrcd == 3){
  164. ds_main_data.setColumn(1, 'mid', min + ' ~ ' + max);
  165. }
  166. else if(dngrcd == 4){
  167. ds_main_data.setColumn(1, 'high', '< ' + max);
  168. }
  169. }
  170. // TLC 일 경우
  171. else if(cd == 3){
  172. if(dngrcd == 1){
  173. min = min.toString().getRound(-1, 'DOWN');
  174. ds_main_data.setColumn(2, 'good', '≥ ' + min);
  175. }
  176. else if(dngrcd == 2){
  177. min = min.toString().getRound(-1, 'DOWN');
  178. max = max.toString().getRound(-1, 'DOWN');
  179. ds_main_data.setColumn(2, 'low', min + ' ~ ' + max);
  180. }
  181. else if(dngrcd == 3){
  182. min = min.toString().getRound(-1, 'DOWN');
  183. max = max.toString().getRound(-1, 'DOWN');
  184. ds_main_data.setColumn(2, 'mid', min + ' ~ ' + max);
  185. }
  186. else if(dngrcd == 4){
  187. max = max.toString().getRound(-1, 'DOWN');
  188. ds_main_data.setColumn(2, 'high', '< ' + max);
  189. }
  190. }
  191. }
  192. }
  193. //=======================================================================================
  194. // callback
  195. //---------------------------------------------------------------------------------------
  196. function callback(sSvcId, nErrorCode, sErrorMsg){
  197. arErrorCode.push(sSvcId, nErrorCode);
  198. }
  199. //=======================================================================================
  200. // Events
  201. //---------------------------------------------------------------------------------------
  202. /****************************************************************************************
  203. * Argument :
  204. * Description : onload
  205. ****************************************************************************************/
  206. function SPANC00200_onload(obj:Form, e:LoadEventInfo){
  207. // 폼 초기화
  208. frmf_initForm(obj);
  209. ds_main_receivedata.copyData(arg_ds_main_receivedata);
  210. fopensearch();
  211. }
  212. /****************************************************************************************
  213. * Argument :
  214. * Description : 닫기 버튼 클릭 이벤트
  215. ****************************************************************************************/
  216. function btn_close_onclick(obj:Button, e:ClickEventInfo){
  217. this.close();
  218. }
  219. ]]></Script>
  220. </Form>
  221. </FDL>