SMLLP01000_누적결과조회.xfdl 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP01000" position="absolute 0 0 1256 805" titletext="누적결과조회" onload="SMLLP01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div" position="absolute 0 26 1256 802" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Tab id="tab" position="absolute 0 118 1256 776" anchor="all" positiontype="position" onchanged="div_tab_onchanged">
  11. <Tabpages>
  12. <Tabpage id="case1" text="결 과">
  13. <Layouts>
  14. <Layout width="1256" height="548">
  15. <Grid id="grd_result" position="absolute -4 0 1252 631" anchor="all" positiontype="position" onmousemove="div_tab_case1_grd_result_onmousemove">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="30"/>
  20. <Column size="0"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="27" band="head"/>
  24. <Row size="20"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="No"/>
  28. <Cell col="1"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell celltype="head" expr="currow+1"/>
  32. <Cell col="1"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Shape id="line2" class="line_1" position="absolute 0 1 1190 1" anchor="default" linetype="horizontal" positiontype="position"/>
  38. </Layout>
  39. </Layouts>
  40. </Tabpage>
  41. <Tabpage id="case2" text="그 래 프">
  42. <Layouts>
  43. <Layout>
  44. <Grid id="grd_grape" position="absolute 0 0 233 631" anchor="left top bottom" onclick="datagrid3_onclick" binddataset="ds_rsltRow" positiontype="position" oncellclick="div_tab_case2_grd_grape_oncellclick" onheadclick="div_tab_case2_grd_grape_onheadclick">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="30"/>
  49. <Column size="25"/>
  50. <Column size="177"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="22" band="head"/>
  54. <Row size="20"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell text="No"/>
  58. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  59. <Cell col="2" text="검사항목"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell celltype="head" expr="currow+1"/>
  63. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  64. <Cell col="2" style="align:left;" text="bind:tclsscrnnm"/>
  65. </Band>
  66. </Format>
  67. </Formats>
  68. </Grid>
  69. <Shape id="line1" class="line_1" position="absolute 0 1 1190 1" anchor="default" linetype="horizontal" positiontype="position"/>
  70. <ActiveX id="object1" visible="false" position="absolute 240 1 1249 629" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" useautobitmapcache="1" anchor="all" taborder="1"/>
  71. </Layout>
  72. </Layouts>
  73. </Tabpage>
  74. </Tabpages>
  75. </Tab>
  76. <Edit id="ipt_tclscdlist" visible="false" position="absolute 241 116 341 136" anchor="default" positiontype="position"/>
  77. <Button id="btn_excel" class="btn7" position="absolute 386 116 439 136" anchor="top right" text="엑셀" onclick="div_btn_excel_onclick" positiontype="position"/>
  78. <Grid id="grd_caption" taborder="1" binddataset="ds_testMdlList" useinputpanel="false" selecttype="cell" oncellclick="div_grd_caption_oncellclick" position="absolute 447 0 1256 136" anchor="left top right" onclick="datagrid1_onclick">
  79. <Formats>
  80. <Format id="default">
  81. <Columns>
  82. <Column size="25"/>
  83. <Column size="120"/>
  84. <Column size="25"/>
  85. <Column size="120"/>
  86. <Column size="25"/>
  87. <Column size="120"/>
  88. <Column size="25"/>
  89. <Column size="100"/>
  90. <Column size="25"/>
  91. <Column size="100"/>
  92. <Column size="25"/>
  93. <Column size="100"/>
  94. <Column size="25"/>
  95. <Column size="100"/>
  96. <Column size="25"/>
  97. <Column size="100"/>
  98. <Column size="25"/>
  99. <Column size="100"/>
  100. <Column size="25"/>
  101. <Column size="100"/>
  102. <Column size="25"/>
  103. <Column size="100"/>
  104. </Columns>
  105. <Rows>
  106. <Row size="0" band="head"/>
  107. <Row size="20"/>
  108. </Rows>
  109. <Band id="head">
  110. <Cell colspan="2" text="caption1"/>
  111. <Cell col="2" colspan="2" text="caption2"/>
  112. <Cell col="4" colspan="2" text="caption3"/>
  113. <Cell col="6" colspan="2" text="caption4"/>
  114. <Cell col="8" colspan="2" text="caption6"/>
  115. <Cell col="10" colspan="2" text="caption7"/>
  116. <Cell col="12" colspan="2" text="caption5"/>
  117. <Cell col="14" colspan="2" text="caption10"/>
  118. <Cell col="16" colspan="2" text="caption9"/>
  119. <Cell col="18" colspan="2" text="caption8"/>
  120. <Cell col="20" colspan="2" text="caption11"/>
  121. </Band>
  122. <Band id="body">
  123. <Cell style="background:EXPR(img00== 'Y' ? (testmdlcd00 == 1 ? '#FFFFFA' : (chk00 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img00== 'Y' ? (testmdlcd00 == 1 ? '#FFFFFA' : (chk00 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img00 == 'Y' ? (readonly00 == '0' &amp;&amp; chk00 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd00 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  124. <Cell col="1" style="align:left middle;background:EXPR(img00 == 'Y' ? (testmdlcd00 == 1 ? '#FFFFFA' : (chk00 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img00 == 'Y' ? (testmdlcd00 == 1 ? '#FFFFFA' : (chk00 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm00"/>
  125. <Cell col="2" style="background:EXPR(img01 == 'Y' ? (testmdlcd01 == 1 ? '#FFFFFA' : (chk01 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img01 == 'Y' ? (testmdlcd01 == 1 ? '#FFFFFA' : (chk01 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img01 == 'Y' ? (readonly01 == '0' &amp;&amp; chk01 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd01 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  126. <Cell col="3" style="align:left middle;background:EXPR(img01 == 'Y' ? (testmdlcd01 == 1 ? '#FFFFFA' : (chk01 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img01 == 'Y' ? (testmdlcd01 == 1 ? '#FFFFFA' : (chk01 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm01"/>
  127. <Cell col="4" style="background:EXPR(img02 == 'Y' ? (testmdlcd02 == 1 ? '#FFFFFA' : (chk02 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img02 == 'Y' ? (testmdlcd02 == 1 ? '#FFFFFA' : (chk02 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img02 == 'Y' ? (readonly02 == '0' &amp;&amp; chk02 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd02 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  128. <Cell col="5" style="align:left middle;background:EXPR(img02 == 'Y' ? (testmdlcd02 == 1 ? '#FFFFFA' : (chk02 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img02 == 'Y' ? (testmdlcd02 == 1 ? '#FFFFFA' : (chk02 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm02" editimemode="none"/>
  129. <Cell col="6" style="background:EXPR(img03 == 'Y' ? (testmdlcd03 == 1 ? '#FFFFFA' : (chk03 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img03 == 'Y' ? (testmdlcd03 == 1 ? '#FFFFFA' : (chk03 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img03 == 'Y' ? (readonly03 == '0' &amp;&amp; chk03 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd03 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  130. <Cell col="7" style="align:left middle;background:EXPR(img03 == 'Y' ? (testmdlcd03 == 1 ? '#FFFFFA' : (chk03 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img03 == 'Y' ? (testmdlcd03 == 1 ? '#FFFFFA' : (chk03 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm03"/>
  131. <Cell col="8" style="background:EXPR(img04 == 'Y' ? (testmdlcd04 == 1 ? '#FFFFFA' : (chk04 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img04 == 'Y' ? (testmdlcd04 == 1 ? '#FFFFFA' : (chk04 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img04 == 'Y' ? (readonly04 == '0' &amp;&amp; chk04 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd04 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  132. <Cell col="9" style="align:left middle;background:EXPR(img04 == 'Y' ? (testmdlcd04 == 1 ? '#FFFFFA' : (chk04 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img04 == 'Y' ? (testmdlcd04 == 1 ? '#FFFFFA' : (chk04 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm04"/>
  133. <Cell col="10" style="background:EXPR(img05 == 'Y' ? (testmdlcd05 == 1 ? '#FFFFFA' : (chk05 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img05 == 'Y' ? (testmdlcd05 == 1 ? '#FFFFFA' : (chk05 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img05 == 'Y' ? (readonly05 == '0' &amp;&amp; chk05 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd05 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  134. <Cell col="11" style="align:left middle;background:EXPR(img05 == 'Y' ? (testmdlcd05 == 1 ? '#FFFFFA' : (chk05 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img05 == 'Y' ? (testmdlcd05 == 1 ? '#FFFFFA' : (chk05 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm05"/>
  135. <Cell col="12" style="background:EXPR(img06 == 'Y' ? (testmdlcd06 == 1 ? '#FFFFFA' : (chk06 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img06 == 'Y' ? (testmdlcd06 == 1 ? '#FFFFFA' : (chk06 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img06 == 'Y' ? (readonly06 == '0' &amp;&amp; chk06 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd06 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  136. <Cell col="13" style="align:left middle;background:EXPR(img06 == 'Y' ? (testmdlcd06 == 1 ? '#FFFFFA' : (chk06 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img06 == 'Y' ? (testmdlcd06 == 1 ? '#FFFFFA' : (chk06 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm06"/>
  137. <Cell col="14" style="background:EXPR(img07 == 'Y' ? (testmdlcd07 == 1 ? '#FFFFFA' : (chk07 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img07 == 'Y' ? (testmdlcd07 == 1 ? '#FFFFFA' : (chk07 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img07 == 'Y' ? (readonly07 == '0' &amp;&amp; chk07 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd07 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  138. <Cell col="15" style="align:left middle;background:EXPR(img07 == 'Y' ? (testmdlcd07 == 1 ? '#FFFFFA' : (chk07 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img07 == 'Y' ? (testmdlcd07 == 1 ? '#FFFFFA' : (chk07 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm07"/>
  139. <Cell col="16" style="background:EXPR(img08 == 'Y' ? (testmdlcd08 == 1 ? '#FFFFFA' : (chk08 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img08 == 'Y' ? (testmdlcd08 == 1 ? '#FFFFFA' : (chk08 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img08 == 'Y' ? (readonly08 == '0' &amp;&amp; chk08 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd08 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  140. <Cell col="17" style="align:left middle;background:EXPR(img08 == 'Y' ? (testmdlcd08 == 1 ? '#FFFFFA' : (chk08 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img08 == 'Y' ? (testmdlcd08 == 1 ? '#FFFFFA' : (chk08 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm08"/>
  141. <Cell col="18" style="background:EXPR(img09 == 'Y' ? (testmdlcd09 == 1 ? '#FFFFFA' : (chk09 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img09 == 'Y' ? (testmdlcd09 == 1 ? '#FFFFFA' : (chk09 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img09 == 'Y' ? (readonly09 == '0' &amp;&amp; chk09 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd09 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  142. <Cell col="19" style="align:left middle;background:EXPR(img09 == 'Y' ? (testmdlcd09 == 1 ? '#FFFFFA' : (chk09 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img09 == 'Y' ? (testmdlcd09 == 1 ? '#FFFFFA' : (chk09 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm09"/>
  143. <Cell col="20" style="background:EXPR(img10 == 'Y' ? (testmdlcd10 == 1 ? '#FFFFFA' : (chk10 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img10 == 'Y' ? (testmdlcd10 == 1 ? '#FFFFFA' : (chk10 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');backgroundimage:EXPR(img10 == 'Y' ? (readonly10 == '0' &amp;&amp; chk10 == '1' ? 'IMG::lis/chkBOOLG1.png' : (testmdlcd10 == 1 ? 'IMG::lis/chkBOOLG-.png' : 'IMG::lis/chkBOOLG0.png')) : '');"/>
  144. <Cell col="21" style="align:left middle;background:EXPR(img10 == 'Y' ? (testmdlcd10 == 1 ? '#FFFFFA' : (chk10 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');background2:EXPR(img10 == 'Y' ? (testmdlcd10 == 1 ? '#FFFFFA' : (chk10 == '1' ? '#ffe79d' : '#EEFFFF' )) : '#c0c0c0');" text="bind:nm10"/>
  145. </Band>
  146. </Format>
  147. </Formats>
  148. </Grid>
  149. <Div id="div_search" taborder="2" style="align:center top;" position="absolute 0 0 438 110" class="div_SA">
  150. <Layouts>
  151. <Layout>
  152. <Static id="caption2" text="등록번호" class="search_name" position="absolute 8 10 76 30"/>
  153. <Calendar id="cal_ddS" taborder="3" dateformat="yyyy-MM-dd" class="input_default" position="absolute 82 35 182 55"/>
  154. <Combo id="cmb_tgrp" taborder="4" innerdataset="@ds_init_lb0103" codecolumn="cd" datacolumn="nm" class="combo_default" position="absolute 82 60 267 80"/>
  155. <Static id="caption3" text="검사그룹" class="search_name" position="absolute 8 60 76 80"/>
  156. <Static id="caption5" text="접수일자" onclick="div_div_search_caption5_onclick" class="search_name" position="absolute 8 35 76 55"/>
  157. <Calendar id="cal_ddE" taborder="5" dateformat="yyyy-MM-dd" class="input_default" position="absolute 198 35 298 55"/>
  158. <Static id="caption7" text="~" position="absolute 185 38 200 55"/>
  159. <Button id="btn_help" taborder="7" text="조회" onclick="div_div_search_btn_help_onclick" class="btn1" position="absolute 301 10 357 30"/>
  160. <Edit id="ipt_pid" taborder="8" maxlength="9" onkeydown="div_div_search_ipt_pid_onkeydown" class="input_button" position="absolute 82 10 192 30"/>
  161. <Edit id="ipt_patnm" taborder="9" readonly="true" position="absolute 195 10 290 30" style="align:center middle;"/>
  162. <Button id="btn_reset" taborder="10" text="초기화" onclick="div_div_search_btn_reset_onclick" class="btn1" position="absolute 359 10 427 30"/>
  163. <Button id="img1" taborder="11" onclick="group1_btn_tclsnmlist_onclick" class="icon_search" position="absolute 265 59 286 79"/>
  164. </Layout>
  165. </Layouts>
  166. </Div>
  167. </Layout>
  168. </Layouts>
  169. </Div>
  170. <Button id="btn_print" taborder="1" text="출력" class="btn6" visible="false" position="absolute 1200 0 1256 20" anchor="top right"/>
  171. <CheckBox id="chk_all" taborder="2" text="전체선택" truevalue="true" position="absolute 448 4 518 24" anchor="left top right" onchanged="chk_all_onchanged" falsevalue="false"/>
  172. <Static id="caption6" text="누적결과조회" class="tit_1" position="absolute 0 0 155 25"/>
  173. </Layout>
  174. </Layouts>
  175. <Objects>
  176. <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="hngnm" type="STRING"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_temp_sendtclsnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  182. <Dataset id="ds_rsltRow" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  183. <Dataset id="ds_rsltHeader" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  184. <Dataset id="ds_init_lb0103" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="cd" type="STRING"/>
  187. <Column id="nm" type="STRING"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_testMdlList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="maxcol" type="STRING"/>
  193. <Column id="nm00" type="STRING"/>
  194. <Column id="nm01" type="STRING"/>
  195. <Column id="nm02" type="STRING"/>
  196. <Column id="nm03" type="STRING"/>
  197. <Column id="nm04" type="STRING"/>
  198. <Column id="nm05" type="STRING"/>
  199. <Column id="nm06" type="STRING"/>
  200. <Column id="nm07" type="STRING"/>
  201. <Column id="nm08" type="STRING"/>
  202. <Column id="nm09" type="STRING"/>
  203. <Column id="nm10" type="STRING"/>
  204. </ColumnInfo>
  205. </Dataset>
  206. <Dataset id="ds_acptddlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="cd" type="STRING"/>
  209. <Column id="nm" type="STRING"/>
  210. <Column id="testmdlcd" type="STRING"/>
  211. </ColumnInfo>
  212. </Dataset>
  213. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="cd" type="STRING"/>
  216. <Column id="nm" type="STRING"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_hidden_ref_tclscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="tclsnmlist" type="STRING" size="256"/>
  222. <Column id="tclscdlist" type="STRING" size="256"/>
  223. <Column id="tclscdlist2" type="STRING" size="256"/>
  224. <Column id="testgrup" type="STRING" size="256"/>
  225. <Column id="tclsnmlist2" type="STRING" size="256"/>
  226. </ColumnInfo>
  227. <Rows>
  228. <Row/>
  229. </Rows>
  230. </Dataset>
  231. </Objects>
  232. <Bind>
  233. <BindItem id="item0" compid="div.div_search.ipt_patnm" propid="value" datasetid="ds_patnm" columnid="hngnm"/>
  234. <BindItem id="item51" compid="div.div_search.img1" propid="enable" datasetid="ds_bind" columnid="able"/>
  235. <BindItem id="item1" compid="div.div_search.cmb_tgrp" propid="value" datasetid="ds_hidden_ref_tclscdlist" columnid="testgrup"/>
  236. </Bind>
  237. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  238. * System Name :
  239. * Job Name :
  240. * Creator :
  241. * Make Date : 2015-05-01
  242. * Description :
  243. *---------------------------------------------------------------------------------------
  244. * Modify Date Modifier Modify Description
  245. *---------------------------------------------------------------------------------------
  246. * 2015-05-01 Live Converter TF->XP
  247. *
  248. *---------------------------------------------------------------------------------------
  249. ****************************************************************************************/
  250. include "com_commonxp::comm_main.xjs";
  251. include "lis_commonxp::LLZ001.xjs";
  252. var p_SelSlipcd = "";
  253. function SMLLP01000_onload(obj:Form, e:LoadEventInfo){
  254. //폼 초기화 함수
  255. frmf_initForm(obj);
  256. //초기정보 조회
  257. lf_setInit_search();
  258. //초기화
  259. lf_setInit();
  260. //div.tab.case2.object1.Aspect.GDIPlus.Active = false;
  261. }
  262. function cbf_SMLLP01000(strSvcID, nErrorCode, strErrorMag){
  263. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  264. }
  265. function lf_setInit(ref){
  266. if(ref != 2){
  267. var today = utlf_getCurrentDate();
  268. div.div_search.cal_ddS.value = /*"20130715"*/ today;//utlf_addMonth(today, -6);
  269. div.div_search.cal_ddE.value = /*"20130720"*/ today;
  270. div.div_search.ipt_pid.value = /*"000516320"*/appf_getPatientInfo("pid");
  271. div.div_search.ipt_patnm.value = /*"홍길동"*/appf_getPatientInfo("hngnm");
  272. lf_makeTestMdlList();
  273. ds_rsltRow.clearData();
  274. if(ref == 1){
  275. var grdCellcnt = div.tab.case1.grd_result.getCellCount("Body");
  276. for(i = 0; i < grdCellcnt; i++){
  277. div.tab.case1.grd_result.deleteContentsCol(2);
  278. }
  279. div.div_search.cmb_tgrp.text = "";
  280. }
  281. }
  282. //createTChart("object1", 250, 5, 233, 631, div.tab.case2); //그래프 object 생성
  283. drawLine999(div.tab.case2.object1, div.tab.case1.grd_result, 2, "누적결과추이", true);
  284. }
  285. function lf_makeTestMdlList(){
  286. var sInDsName = dsf_createDsRow("ds_temp_search"
  287. , [{col: "pid", val: div.div_search.ipt_pid.value}
  288. , {col: "userdeptflagcd", val: lgv_sUserdeptflagcd }]);
  289. var oParam = {};
  290. oParam.id = "TRLLP01002";
  291. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  292. oParam.method = "reqGetTestRef";
  293. oParam.inds = "cond="+sInDsName;
  294. oParam.outds = "ds_testMdlList=testmdllist";
  295. oParam.async = false;
  296. oParam.callback = "cbf_SMLLP01000";
  297. tranf_submit(oParam);
  298. if(!utlf_isNull(ds_testMdlList.getColumn(0, "maxcol"))){
  299. var maxcol = parseInt(ds_testMdlList.getColumn(0, "maxcol")) + 1;
  300. //trace(maxcol + "/" + div.grd_caption.getCellCount("Body") + "/" + div.grd_caption.getCellCount("Body") / 2);
  301. // for(i = maxcol; i < div.grd_caption.getCellCount("Body") / 2; i++){
  302. // div.grd_caption.setRealColSize(i, 0);
  303. // }
  304. //2014.10.06 김남규 수정
  305. for(i = maxcol*2; i < div.grd_caption.getCellCount("Body"); i++){
  306. div.grd_caption.setRealColSize(i, 0);
  307. }
  308. }
  309. // for(i = 0; i < div.grd_caption.getCellCount("Body") / 2 ; i++ ){
  310. // ds_testMdlList.addColumn("testmdlcd" + utlf_lPad(i, 2, "0"), "string");
  311. // }
  312. //2014.10.06 김남규 수정
  313. for(i = 0; i < maxcol; i++ ){
  314. ds_testMdlList.addColumn("testmdlcd" + utlf_lPad(i, 2, "0"), "string");
  315. }
  316. }
  317. function lf_setInit_search(){
  318. // 초기정보 조회
  319. //0103 : 사용자별검사그룹
  320. lf_getDbDeptcd("0000|0103|","cbf_SMLLP01000");
  321. }
  322. function lf_getNResultRef(){
  323. var sPid = div.div_search.ipt_pid.value;
  324. if(utlf_isNull(sPid)){
  325. sysf_messageBox("등록번호를","C001","");
  326. return;
  327. }
  328. var sTestMdList = p_SelSlipcd;
  329. var sTgrpCd = div.div_search.cmb_tgrp.value;
  330. if(utlf_isNull(sTestMdList) && utlf_isNull(sTgrpCd)){
  331. sysf_messageBox("검사중분류를 ","C002","");
  332. return;
  333. }
  334. var vSelSlipcd = p_SelSlipcd;
  335. if(!utlf_isNull(vSelSlipcd)){
  336. vSelSlipcd = vSelSlipcd.substr(0, vSelSlipcd.length -1);
  337. }else{
  338. vSelSlipcd = "";
  339. }
  340. //0103 : 사용자별검사그룹
  341. var sInDsName = dsf_createDsRow("ds_temp_search"
  342. , [{col: "testgrup", val: div.div_search.cmb_tgrp.value}
  343. , {col: "startdd", val: div.div_search.cal_ddS.value}
  344. , {col: "enddd", val: div.div_search.cal_ddE.value}
  345. , {col: "pid", val: div.div_search.ipt_pid.value}
  346. , {col: "testmdllist", val: vSelSlipcd}]);
  347. // 서브밋호출
  348. ds_rsltRow.clearData();
  349. ds_rsltHeader.clearData();
  350. var oParam = {};
  351. oParam.id = "TRLLP01003";
  352. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  353. oParam.method = "reqGetAcmlTestList";
  354. oParam.inds = "cond="+sInDsName;
  355. oParam.outds = "ds_rsltRow=row ds_rsltHeader=header";
  356. oParam.async = false;
  357. oParam.callback = "cbf_SMLLP01000";
  358. tranf_submit(oParam);
  359. //조회시 챠트 초기화
  360. div.tab.case2.object1.RemoveAllSeries();
  361. div.tab.case2.object1.Tools.clear();
  362. if(ds_rsltRow.rowcount < 0) return;
  363. //그리드 동적 생성
  364. //헤더 생성전 이미 만들어져 있는 그리드 삭제
  365. var grdCellcnt = div.tab.case1.grd_result.getCellCount("Body");
  366. for(i = 0; i < grdCellcnt; i++){
  367. div.tab.case1.grd_result.deleteContentsCol(2);
  368. }
  369. //header값 셋팅
  370. var gridCaption = ds_rsltHeader.getColumn(0, "caption");
  371. var gridCaptionArray = gridCaption.split("^");
  372. if(utlf_isNull(gridCaption)) return;
  373. //bind 값 셋팅
  374. var gridColRef = ds_rsltHeader.getColumn(0, "colref");
  375. var gridColRefArray = gridColRef.split("^");
  376. var gridColType = ds_rsltHeader.getColumn(0, "type");
  377. var gridColTypeArray = gridColType.split("^");
  378. //열생성 후, header값, bind값 그리드에 설정
  379. for (var i = 0; i < gridColTypeArray.length; i++){
  380. div.tab.case1.grd_result.insertContentsCol(i + 2);
  381. div.tab.case1.grd_result.setCellProperty("head",i + 2,"text",gridCaptionArray[i]);
  382. div.tab.case1.grd_result.setCellProperty("Body",i + 2,"text","bind:" + gridColRefArray[i]);
  383. }
  384. // for(var i=0; i<ds_rsltRow.rowcount; i++){
  385. // if(ds_rsltRow.getColumn(i,"tclskind") == '4' || ds_rsltRow.getColumn(i,"tclskind") == '5' ){
  386. // ds_rsltRow.setColumn(i,"chk","1");
  387. // }
  388. // }
  389. //체크박스, 검사항목, 검체명, 참고치는 사이즈 고정
  390. div.tab.case1.grd_result.setFormatColProperty(2,"size",22);
  391. div.tab.case1.grd_result.setFormatColProperty(3,"size",150);
  392. div.tab.case1.grd_result.setFormatColProperty(4,"size",180);
  393. div.tab.case1.grd_result.setFormatColProperty(5,"size",80);
  394. //결과값은 일정하게 사이즈 조정
  395. for(i = 6; i < div.tab.case1.grd_result.getCellCount("Body"); i++){
  396. var sExpr = "EXPR( judg" + (i-6) + " == 'H' ? '#f7a08b' : (judg" + (i-6) + " == 'L' ? '#b9e5fb' : ''))"
  397. div.tab.case1.grd_result.setFormatColProperty(i,"size",70);
  398. //L/H값에 따라 그리드 색상변경
  399. div.tab.case1.grd_result.setCellProperty("Body",i, "background", sExpr);
  400. div.tab.case1.grd_result.setCellProperty("Body",i, "background2", sExpr);
  401. }
  402. //체크박스 열은 head와 Body모두 checkbox로 설정
  403. div.tab.case1.grd_result.setCellProperty("head",2,"displaytype","checkbox");
  404. div.tab.case1.grd_result.setCellProperty("head",2,"edittype","checkbox");
  405. div.tab.case1.grd_result.setCellProperty("Body",2,"displaytype","checkbox");
  406. div.tab.case1.grd_result.setCellProperty("Body",2,"edittype","checkbox");
  407. //그리드 검사항목, 검체명 align = left middle로 설정
  408. div.tab.case1.grd_result.setCellProperty("Body",3,"align","left middle");
  409. div.tab.case1.grd_result.setCellProperty("Body",4,"align","left middle");
  410. //조회해온 ds값 그리드에 bind
  411. div.tab.case1.grd_result.binddataset = ds_rsltRow;
  412. //그리드 올체크 가능하도록 설정
  413. grdf_setAllCheck(div.tab.case1.grd_result);
  414. }
  415. function lf_testLRGList_Click(){
  416. //for(i = 0; i < div.grd_caption.getCellCount("Body") / 2; i++){
  417. //대분류 선택시 For 루프 횟수 수정 - 2014-10-21 김남규
  418. var maxcol = parseInt(ds_testMdlList.getColumn(0, "maxcol")) + 1;
  419. for(i = 0; i < maxcol; i++){
  420. lf_testMdlList_Click(ds_testMdlList.rowposition, i);
  421. }
  422. }
  423. function lf_testMdlList_Click(nRow, nCol){
  424. var curRow = nRow;
  425. var curCol = nCol;
  426. var vCol = utlf_lPad(curCol, 2, "0");
  427. var vChk = ds_testMdlList.getColumn(curRow, "chk" + vCol);
  428. var vSlipcd = ds_testMdlList.getColumn(curRow, "cd" + vCol);
  429. var vReadonly = ds_testMdlList.getColumn(curRow, "readonly" + vCol);
  430. if(vReadonly != "1"){
  431. if(vChk == "1"){
  432. ds_testMdlList.setColumn(curRow, "chk" + vCol, "0")
  433. if(p_SelSlipcd.indexOf("'" + vSlipcd + "'" + ",") >= 0){
  434. p_SelSlipcd = p_SelSlipcd.replace("'" + vSlipcd + "',", "");
  435. }
  436. }else{
  437. ds_testMdlList.setColumn(curRow, "chk" + vCol, "1")
  438. if(p_SelSlipcd.indexOf("'" + vSlipcd + "',") <= 0){
  439. p_SelSlipcd = p_SelSlipcd + "'" + vSlipcd + "',";
  440. }
  441. }
  442. }
  443. }
  444. function lf_getFixedCols(objGrd){
  445. var cnt = 0;
  446. for(var i = objGrd.getFormatColCount()-1; i >= 0; i--){
  447. if(objGrd.getFormatColProperty(i, "fix") == "fixed"){
  448. cnt++;
  449. }
  450. }
  451. return cnt;
  452. }
  453. function lf_allChkYN(){
  454. var bChk = chk_all.value;
  455. var vSlipcd = ""
  456. var maxcol = parseInt(ds_testMdlList.getColumn(0, "maxcol")) + 1;
  457. if(bChk == "true"){
  458. for(i = 0; i < ds_testMdlList.rowcount; i++){
  459. //for(j = 0; j < div.grd_caption.getCellCount("Body") / 2; j++){
  460. for(j = 0; j < maxcol; j++){
  461. if(ds_testMdlList.getColumn(i, "readonly" + utlf_lPad(j, 2, "0")) == "0"){
  462. ds_testMdlList.setColumn(i, "chk" + utlf_lPad(j, 2, "0"), "1");
  463. vSlipcd = ds_testMdlList.getColumn(i, "cd" + utlf_lPad(j, 2, "0"));
  464. p_SelSlipcd = p_SelSlipcd + "'" + vSlipcd + "',";
  465. }
  466. }
  467. }
  468. }else{
  469. for(i = 0; i < ds_testMdlList.rowcount; i++){
  470. //for(j = 0; j < div.grd_caption.getCellCount("Body") / 2; j++){
  471. for(j = 0; j < maxcol; j++){
  472. ds_testMdlList.setColumn(i, "chk" + utlf_lPad(j, 2, "0"), "0");
  473. p_SelSlipcd = "";
  474. }
  475. }
  476. }
  477. }
  478. function lf_getACPTDD(){
  479. var sPid = div.div_search.ipt_pid.value;
  480. if(utlf_isNull(sPid)){
  481. sysf_messageBox("등록번호를","C001","");
  482. return;
  483. }else{
  484. sPid;
  485. }
  486. var sInDsName = dsf_createDsRow("ds_temp_search"
  487. , [{col: "pid", val: sPid}]);
  488. var oParam = {};
  489. oParam.id = "TRLLP01001";
  490. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  491. oParam.method = "reqGetAcptDDRef";
  492. oParam.inds = "cond="+sInDsName;
  493. oParam.outds = "ds_acptddlist=acptddlist";
  494. oParam.async = false;
  495. oParam.callback = "cbf_SMLLP01000";
  496. tranf_submit(oParam);
  497. if(ds_acptddlist.rowcount > 0){
  498. div.div_search.cal_ddS.value = ds_acptddlist.getColumn(ds_acptddlist.rowcount-1, "cd");
  499. div.div_search.cal_ddE.value = ds_acptddlist.getColumn(0, "cd");
  500. lf_getTestMDLRef();
  501. }else{
  502. sysf_messageBox("결과가 ","I004","");
  503. }
  504. }
  505. function lf_getTestMDLRef(){
  506. var vTestmdlcdStr = "";
  507. for(i = 0; i < ds_acptddlist.rowcount; i++){
  508. if(ds_acptddlist.getColumn(i, "cd") >= div.div_search.cal_ddS.value){
  509. var vSelAcptDD = ds_acptddlist.getColumn(i, "cd");
  510. vTestmdlcdStr = vTestmdlcdStr + ds_acptddlist.getColumn(i, "testmdlcd");
  511. }
  512. }
  513. var maxcol = parseInt(ds_testMdlList.getColumn(0, "maxcol")) + 1;
  514. for(i = 0; i < ds_testMdlList.rowcount; i++){
  515. //for(j = 0; j < div.grd_caption.getCellCount("Body") / 2; j++){
  516. //2014.10.06 김남규 수정
  517. for(j = 0; j < maxcol; j++){
  518. var vCol = utlf_lPad(j, 2, "0");
  519. var vTestmdlcd = ds_testMdlList.getColumn(i, "cd" + vCol);
  520. if(!utlf_isNull(vTestmdlcd)){
  521. if( vTestmdlcdStr.indexOf(vTestmdlcd.getTrim()) < 0 ){
  522. ds_testMdlList.setColumn(i, "testmdlcd" + vCol, "1");
  523. ds_testMdlList.setColumn(i, "readonly" + vCol, "1");
  524. ds_testMdlList.setColumn(i, "chk" + vCol, "0");
  525. }else{
  526. ds_testMdlList.setColumn(i, "testmdlcd" + vCol, "0");
  527. ds_testMdlList.setColumn(i, "readonly" + vCol, "0");
  528. ds_testMdlList.setColumn(i, "chk" + vCol, "0");
  529. }
  530. }
  531. }
  532. }
  533. }
  534. function lf_userNMRef(){
  535. var sInDsName = dsf_createDsRow("ds_temp_search"
  536. , [{col: "pid" , val: div.div_search.ipt_pid.value}]);
  537. var oParam = {};
  538. oParam.id = "TRLLP90402";
  539. oParam.service = "diagtestapplib.LisCommon";
  540. oParam.method = "reqGetNM";
  541. oParam.inds = "cond="+sInDsName;
  542. oParam.outds = "ds_patnm=getnm";
  543. oParam.async = false;
  544. oParam.callback = "cbf_SMLLP01000";
  545. tranf_submit(oParam);
  546. }
  547. function fGraphGrdClick(obj:Grid, e:GridClickEventInfo){
  548. if(e.col == 1){
  549. /*if( ds_rsltRow.getColumn(e.row, "chk") == "1" ){
  550. datagrid2.valueMatrix(row , 1) = "true";
  551. }
  552. else {
  553. datagrid2.valueMatrix(row , 1) = "false";
  554. }*/
  555. drawLine999(div.tab.case2.object1, div.tab.case1.grd_result, 2, "누적결과추이", true);
  556. //lf_heightDrawLine(div.tab.case2.object1, div.tab.case2.grd_grape, "누적결과추이", true);
  557. }
  558. }
  559. function div_div_search_btn_reset_onclick(obj:Button, e:ClickEventInfo){
  560. //초기화
  561. lf_setInit(1);
  562. }
  563. function div_div_search_btn_help_onclick(obj:Button, e:ClickEventInfo){
  564. lf_getNResultRef();
  565. }
  566. function div_grd_caption_oncellclick(obj:Grid, e:GridClickEventInfo){
  567. if(e.cell == 0){
  568. lf_testLRGList_Click();
  569. }else if(e.cell % 2 == 0){
  570. lf_testMdlList_Click(ds_testMdlList.rowposition, e.cell / 2);
  571. }
  572. }
  573. function chk_all_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo){
  574. lf_allChkYN();
  575. }
  576. function div_div_search_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo){
  577. if(e.keycode == 13){
  578. var rtn = frmf_setInputNodeCurPid_Change(obj.value);
  579. obj.value = rtn;
  580. lf_userNMRef();
  581. lf_getACPTDD();
  582. }
  583. }
  584. function div_btn_excel_onclick(obj:Button, e:ClickEventInfo){
  585. if(div.tab.case1.grd_result.rowcount < 1) return;
  586. grdf_exportExcel(div.tab.case1.grd_result, lf_lisGetTitle(this), "see");
  587. }
  588. function div_tab_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  589. {
  590. if(obj.tabindex == 0) {
  591. div.tab.case2.object1.visible = false;
  592. } else if(obj.tabindex == 1) {
  593. div.tab.case2.object1.visible = true;
  594. //lf_heightDrawLine(div.tab.case2.object1, div.tab.case2.grd_grape, "누적결과추이", true);
  595. drawLine999(div.tab.case2.object1, div.tab.case1.grd_result, 2, "누적결과추이", true);
  596. }
  597. }
  598. //그래프에 결과치와 상하한치 라인을 그린다.
  599. function lf_heightDrawLine(tChartObj, gridObj, title, refresh) {
  600. // TChart 초기화
  601. if( refresh ) {
  602. tChartObj.RemoveAllSeries();
  603. tChartObj.Tools.clear();
  604. }
  605. // Title 설정
  606. if( title != null || title == "" ) {
  607. //수정
  608. tChartObj.Header.Text[0] = title;
  609. }
  610. var cColor; //라인색 설정
  611. var x, y; //그래프의 정점
  612. var seriesIndex; //새로 생성될 라인의 번호
  613. tChartObj.Aspect.View3D = 0; // 모양 설정 :: 0 = 2D | 1 = 3D
  614. tChartObj.Legend.CheckBoxes = true; // Legend 체크박스 설정
  615. tChartObj.Legend.Alignment = 0; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
  616. //--------------결과치 그래프 시작-------------//
  617. for(i=0; ds_rsltRow.rowcount; i++) {
  618. if(ds_rsltRow.getColumn(i, "chk") == "1") {
  619. tChartObj.AddSeries(0); // 라인추가
  620. seriesIndex = tChartObj.SeriesCount - 1;
  621. tChartObj.Series(seriesIndex).asLine.Pointer.Visible = true; //Point 사용 여부
  622. tChartObj.Series(seriesIndex).asLine.Pointer.Style = 1; //PointStyle 설정 :: 0 - 8
  623. tChartObj.Axis.Bottom.Labels.Angle = 270; //하단 날자표시 각도
  624. tChartObj.Series(seriesIndex).Color = "red"; //결과 선의 색 설정. (빨강)
  625. tChartObj.Series(seriesIndex).Title = ds_rsltRow.getColumn(i, "tclsscrnnm"); //Legend 명칭
  626. for(j = 0;j<ds_rsltRow.getColCount();j++){
  627. x = utlf_transNullToEmpty(ds_rsltRow.getColumn(j,"acptdt0")); //x = 처방날짜
  628. //trace( ds_rsltRow.getColID(j) + ": " + String(ds_rsltRow.getColID(j)).indexOf("rslt") );
  629. if( String(ds_rsltRow.getColID(j)).indexOf("rslt") > -1 ) {
  630. y = utlf_transNullToEmpty( ds_rsltRow.getColumn( j, ds_rsltRow.getColID(j) ) ); //y = 결과치
  631. if( !utlf_isNull(y) ){
  632. x = x.substring(0,4) + "-" + x.substring(4,6) + "-" +x.substring(6,8) + " " + x.substring(8,10) + ":" + x.substring(10,12) + " ";
  633. //x,y 좌표값과 라인의 칼라 값을 받아 라인을 생성한다.
  634. trace("그리자 " + x + "/" + y);
  635. tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
  636. //tChartObj.Series(seriesIndex).AddXY (xx+1, y+1 , " ", tChartObj.Series(seriesIndex).Color);
  637. //tChartObj.Series(seriesIndex).LegendItemColor(cColor);
  638. }
  639. }
  640. }
  641. }
  642. }
  643. // tChartObj.AddSeries(0); // 라인추가
  644. // seriesIndex = tChartObj.SeriesCount - 1;
  645. // tChartObj.Series(seriesIndex).asLine.Pointer.Visible = true; //Point 사용 여부
  646. // tChartObj.Series(seriesIndex).asLine.Pointer.Style = 1; //PointStyle 설정 :: 0 - 8
  647. // tChartObj.Axis.Bottom.Labels.Angle = 270; //하단 날자표시 각도
  648. // tChartObj.Series(seriesIndex).Color = "blue"; //window.rgb(0, 0 , 255); //결과 선의 색 설정. (파란색)
  649. // tChartObj.Series(seriesIndex).Title = "결과값"; //Legend 명칭
  650. //
  651. // for(j = 0;j<gridObj.rowcount;j++){
  652. // x = utlf_transNullToEmpty(ds_rsltRow.getColumn(j,"acptdt0")); //x = 처방날짜
  653. // y = utlf_transNullToEmpty(ds_rsltRow.getColumn(j,"rslt0")); //y = 결과치
  654. // if(y != "" && !isNaN(y)){
  655. // x = x.substring(0,4) + "-" + x.substring(4,6) + "-" +x.substring(6,8) + " " + x.substring(8,10) + ":" + x.substring(10,12) + " ";
  656. // //x,y 좌표값과 라인의 칼라 값을 받아 라인을 생성한다.
  657. // tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
  658. // }
  659. // }
  660. }
  661. function div_tab_case2_grd_grape_oncellclick(obj:Grid, e:GridClickEventInfo)
  662. {
  663. fGraphGrdClick(obj, e);
  664. }
  665. function drawLine999(tChartObj, gridObj, row, title, refresh) {
  666. // TChart 초기화
  667. if( refresh ) {
  668. tChartObj.RemoveAllSeries();
  669. tChartObj.Tools.clear();
  670. }
  671. if( !utlf_isNull(title) ) {
  672. tChartObj.Header.Text[0] = title; // Title 설정
  673. }
  674. tChartObj.Aspect.View3D = 0; // 모양 설정 :: 0 = 2D | 1 = 3D
  675. tChartObj.Legend.CheckBoxes = true;
  676. tChartObj.Legend.Alignment = 0; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
  677. var Rnd1, Rnd2, Rnd3;
  678. var cColor;
  679. var i;
  680. var x, y;
  681. for(j = 0; j<ds_rsltRow.rowcount; j++){
  682. if( ds_rsltRow.getColumn(j, "chk") == "1" ){
  683. tChartObj.AddSeries(0); // TChart Type 설정 :: 0 = Line | 1 = Bar ..
  684. var seriesIndex = tChartObj.SeriesCount - 1;
  685. tChartObj.Series(seriesIndex).asLine.Pointer.Visible = true;
  686. tChartObj.Series(seriesIndex).asLine.Pointer.Style = j; //PointStyle 설정 :: 0 - 8
  687. tChartObj.Series(seriesIndex).Title = ds_rsltRow.getColumn(j, "tclsscrnnm");
  688. tChartObj.Axis.Bottom.Labels.Angle = 270;
  689. r = Math.random();
  690. r = Math.round((255 - 1) * r + 1);
  691. g = Math.random();
  692. g = Math.round((255 - 1) * g + 1);
  693. b = Math.random();
  694. b = Math.round((255 - 1) * b + 1);
  695. cColor = (r).toString(16) + (g).toString(16) + (b).toString(16);
  696. xx= 0;
  697. for( i = 5; i < gridObj.getCellCount("Body")-1; i++ ){
  698. ds_rsltRow
  699. x = utlf_transNullToEmpty( ds_rsltRow.getColumn( j, "acptdt" + xx ) ); //model.getvalue("/root/main/rsltlist/row["+j+"]/acptdt" + xx);
  700. y = utlf_transNullToEmpty( ds_rsltRow.getColumn( j, "rsltORD" + xx ) ); //model.getvalue("/root/main/rsltlist/row["+j+"]/rsltORD" + xx);
  701. if( !utlf_isNull(y) ){
  702. x = x.substring(0,4) + "-" + x.substring(4,6) + "-" +x.substring(6,8) + " " + x.substring(8,10) + ":" + x.substring(10,12);
  703. tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
  704. tChartObj.Series(seriesIndex).LegendItemColor(cColor);
  705. }
  706. xx ++;
  707. }
  708. }
  709. }
  710. }
  711. function div_tab_case2_grd_grape_onheadclick(obj:Grid, e:GridClickEventInfo)
  712. {
  713. var chk = obj.getCellProperty("Head", 1, "text");
  714. if(chk == "1") {
  715. //전체해제
  716. obj.setCellProperty("Head", 1, "text", "0");
  717. for(var i=0; i<ds_rsltRow.rowcount; i++) {
  718. ds_rsltRow.setColumn(i, "chk", "0");
  719. }
  720. } else {
  721. //전체선택
  722. obj.setCellProperty("Head", 1, "text", "1");
  723. for(var i=0; i<ds_rsltRow.rowcount; i++) {
  724. ds_rsltRow.setColumn(i, "chk", "1");
  725. }
  726. }
  727. //TChart
  728. drawLine999(div.tab.case2.object1, div.tab.case1.grd_result, 2, "누적결과추이", true);
  729. }
  730. function div_tab_case1_grd_result_onmousemove(obj:Grid, e:GridMouseEventInfo)
  731. {
  732. if (e.row < 0) return;
  733. if (e.col < 0) return;
  734. obj.tooltiptext = div.tab.case1.grd_result.getCellText(e.row,e.col); //툴팁
  735. }
  736. function group1_btn_tclsnmlist_onclick(obj:Button, e:ClickEventInfo)
  737. {
  738. var objArg = new Object();
  739. objArg.testGrup = ds_hidden_ref_tclscdlist;
  740. frmf_modal("SMLLF90400", "SMLLF90400", objArg, "", "", "", "", "", "", "", "", "", "M");
  741. }
  742. ]]></Script>
  743. </Form>
  744. </FDL>