SPPIZ00600_상병및처방별치식.xfdl 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIZ00600" position="absolute 0 0 733 783" titletext="상병별, 처방별 치식 입력" onload="SPPIZ00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_confirm" taborder="1" text="확인" class="btn4" position="absolute 606 752 662 772" positiontype="position" onclick="btn_confirm_onclick"/>
  8. <Button id="btn_cancel" taborder="2" text="취소" class="btn4" position="absolute 665 752 721 772" positiontype="position" onclick="btn_cancel_onclick"/>
  9. <Button id="buttonA24" taborder="99" class="btnt_left_bottom_1" position="absolute 326 290 361 330" onclick="lf_tootbtnclick"/>
  10. <Button id="buttonA23" taborder="100" class="btnt_left_bottom_2" position="absolute 288 290 323 330" onclick="lf_tootbtnclick"/>
  11. <Button id="buttonA22" taborder="101" class="btnt_left_bottom_3" position="absolute 250 290 285 330" onclick="lf_tootbtnclick"/>
  12. <Button id="buttonA21" taborder="102" class="btnt_left_bottom_4" position="absolute 212 290 247 330" onclick="lf_tootbtnclick"/>
  13. <Button id="buttonA20" taborder="103" class="btnt_left_bottom_5" position="absolute 174 290 209 330" onclick="lf_tootbtnclick"/>
  14. <Button id="buttonA19" taborder="104" class="btnt_left_bottom_6" position="absolute 136 290 171 330" onclick="lf_tootbtnclick"/>
  15. <Button id="buttonA18" taborder="105" class="btnt_left_bottom_7" position="absolute 98 290 133 330" onclick="lf_tootbtnclick"/>
  16. <Button id="buttonA17" taborder="106" class="btnt_left_bottom_8" position="absolute 60 290 95 330" onclick="lf_tootbtnclick"/>
  17. <Button id="buttonA25" taborder="107" class="btnt_right_bottom_1" position="absolute 372 290 407 330" onclick="lf_tootbtnclick"/>
  18. <Button id="buttonA26" taborder="108" class="btnt_right_bottom_2" position="absolute 410 290 445 330" onclick="lf_tootbtnclick"/>
  19. <Button id="buttonA27" taborder="109" class="btnt_right_bottom_3" position="absolute 448 290 483 330" onclick="lf_tootbtnclick"/>
  20. <Button id="buttonA28" taborder="110" class="btnt_right_bottom_4" position="absolute 486 290 521 330" onclick="lf_tootbtnclick"/>
  21. <Button id="buttonA29" taborder="111" class="btnt_right_bottom_5" position="absolute 524 290 559 330" onclick="lf_tootbtnclick"/>
  22. <Button id="buttonA30" taborder="112" class="btnt_right_bottom_6" position="absolute 562 290 597 330" onclick="lf_tootbtnclick"/>
  23. <Button id="buttonA31" taborder="113" class="btnt_right_bottom_7" position="absolute 600 290 635 330" onclick="lf_tootbtnclick"/>
  24. <Button id="buttonA32" taborder="114" class="btnt_right_bottom_8" position="absolute 638 290 673 330" onclick="lf_tootbtnclick"/>
  25. <Button id="buttonC24" taborder="115" class="btnt_left_bottom_A" position="absolute 326 247 361 287" onclick="lf_tootbtnclick"/>
  26. <Button id="buttonC23" taborder="116" class="btnt_left_bottom_B" position="absolute 288 247 323 287" onclick="lf_tootbtnclick"/>
  27. <Button id="buttonC22" taborder="117" class="btnt_left_bottom_C" position="absolute 250 247 285 287" onclick="lf_tootbtnclick"/>
  28. <Button id="buttonC21" taborder="118" class="btnt_left_bottom_D" position="absolute 212 247 247 287" onclick="lf_tootbtnclick"/>
  29. <Button id="buttonC20" taborder="119" class="ttom_E" position="absolute 174 247 209 287" onclick="lf_tootbtnclick"/>
  30. <Button id="buttonC25" taborder="120" class="btnt_right_bottom_A" position="absolute 372 247 407 287" onclick="lf_tootbtnclick"/>
  31. <Button id="buttonC26" taborder="121" class="btnt_right_bottom_B" position="absolute 410 247 445 287" onclick="lf_tootbtnclick"/>
  32. <Button id="buttonC27" taborder="122" class="btnt_right_bottom_C" position="absolute 448 247 483 287" onclick="lf_tootbtnclick"/>
  33. <Button id="buttonC28" taborder="123" class="btnt_right_bottom_D" position="absolute 486 247 521 287" onclick="lf_tootbtnclick"/>
  34. <Button id="buttonC29" taborder="124" class="btnt_right_bottom_E" position="absolute 524 247 559 287" onclick="lf_tootbtnclick"/>
  35. <Static id="caption1" text="치식 이력" class="tit_2" position="absolute 12 393 101 413"/>
  36. <Shape id="line6" class="line_1" position="absolute 2 424 726 424"/>
  37. <Grid id="grd_toothapplist" taborder="125" binddataset="ds_main_list2_toothapplist" useinputpanel="false" position="absolute 12 413 721 564" oncellclick="grd_toothapplist_oncellclick" autosizingtype="none" autofittype="none" extendsizetype="row" cellsizingtype="col">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="30"/>
  42. <Column size="30"/>
  43. <Column size="49"/>
  44. <Column size="102"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="70"/>
  50. <Column size="203"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="70"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="22" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="선택"/>
  66. <Cell col="1" text="구분"/>
  67. <Cell col="2" text="코드"/>
  68. <Cell col="3" text="코드명"/>
  69. <Cell col="4" text="우상(1)"/>
  70. <Cell col="5" text="좌상(2)"/>
  71. <Cell col="6" text="우하(4)"/>
  72. <Cell col="7" text="좌하(3)"/>
  73. <Cell col="8" text="진료일"/>
  74. <Cell col="9" text="전체치식"/>
  75. <Cell col="10" text="row"/>
  76. <Cell col="11" text="환자 등록번호"/>
  77. <Cell col="12" text="입원일자"/>
  78. <Cell col="13" text="환자 일련번호"/>
  79. <Cell col="14" text="기관코드"/>
  80. <Cell col="15" text="실시일자"/>
  81. <Cell col="16" text="계산 일련번호"/>
  82. <Cell col="17" text="수가별 일련번호"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chos" expr="chos == 'true' || chos == '1' ? 1 : 0"/>
  86. <Cell col="1" text="bind:flag"/>
  87. <Cell col="2" style="align:left middle;" text="bind:cd"/>
  88. <Cell col="3" style="align:left;" text="bind:cdnm" tooltiptype="right,mouse" tooltiptext="bind:cdnm"/>
  89. <Cell col="4" text="bind:rightupper"/>
  90. <Cell col="5" text="bind:leftupper"/>
  91. <Cell col="6" text="bind:rightlower"/>
  92. <Cell col="7" text="bind:leftlower"/>
  93. <Cell col="8" text="bind:orddd" mask="####-##-##"/>
  94. <Cell col="9" text="bind:toot" tooltiptype="right,mouse" tooltiptext="bind:toot"/>
  95. <Cell col="10" text="bind:row"/>
  96. <Cell col="11" text="bind:pid"/>
  97. <Cell col="12" text="bind:indd"/>
  98. <Cell col="13" text="bind:cretno"/>
  99. <Cell col="14" text="bind:instcd"/>
  100. <Cell col="15" text="bind:execdd" mask="####-##-##"/>
  101. <Cell col="16" text="bind:calcseqno"/>
  102. <Cell col="17" text="bind:calcscorseqno"/>
  103. <Cell col="18"/>
  104. <Cell col="19"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Button id="rightlowerA" taborder="126" text="우하" onclick="lf_btnclick" class="btn2_letter2" position="absolute 12 299 50 319"/>
  110. <Button id="leftlowerA" taborder="127" text="좌하" onclick="lf_btnclick" class="btn2_letter2" position="absolute 683 299 721 319"/>
  111. <Button id="rightlowerC" taborder="128" text="우하유치" onclick="lf_btnclick" class="btn2" position="absolute 12 255 80 275"/>
  112. <Button id="leftlowerC" taborder="129" text="좌하유치" onclick="lf_btnclick" class="btn2" position="absolute 653 255 721 275"/>
  113. <Button id="trisectionA4" taborder="130" text="1/3 (영구치)" onclick="lf_btnclick" class="btn2" position="absolute 60 363 152 383"/>
  114. <Button id="trisectionA5" taborder="131" text="1/3 (영구치)" onclick="lf_btnclick" class="btn2" position="absolute 321 363 413 383"/>
  115. <Button id="trisectionA6" taborder="132" text="1/3 (영구치)" onclick="lf_btnclick" class="btn2" position="absolute 580 363 672 383"/>
  116. <Button id="trisectionC4" taborder="133" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 60 340 152 360"/>
  117. <Button id="trisectionC6" taborder="135" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 580 340 672 360"/>
  118. <Static id="caption3" text="치식 종합조회" class="tit_2" position="absolute 12 574 148 594"/>
  119. <Grid id="grd_toothlist" taborder="136" binddataset="ds_main_list1_toothlist" useinputpanel="false" position="absolute 12 594 721 749" oncellclick="grd_toothlist_oncellclick" cellsizingtype="col" autosizingtype="row">
  120. <Formats>
  121. <Format id="default">
  122. <Columns>
  123. <Column size="30"/>
  124. <Column size="50"/>
  125. <Column size="165"/>
  126. <Column size="45"/>
  127. <Column size="45"/>
  128. <Column size="45"/>
  129. <Column size="45"/>
  130. <Column size="79"/>
  131. <Column size="205"/>
  132. </Columns>
  133. <Rows>
  134. <Row size="22" band="head"/>
  135. <Row size="20"/>
  136. </Rows>
  137. <Band id="head">
  138. <Cell text="구분"/>
  139. <Cell col="1" text="코드"/>
  140. <Cell col="2" text="코드명"/>
  141. <Cell col="3" text="우상(1)"/>
  142. <Cell col="4" text="좌상(2)"/>
  143. <Cell col="5" text="우하(4)"/>
  144. <Cell col="6" text="좌하(3)"/>
  145. <Cell col="7" text="진료일"/>
  146. <Cell col="8" text="전체치식"/>
  147. </Band>
  148. <Band id="body">
  149. <Cell text="bind:flag"/>
  150. <Cell col="1" text="bind:cd"/>
  151. <Cell col="2" style="align:left middle;" text="bind:cdnm" calendardisplaynulltype="default"/>
  152. <Cell col="3" text="bind:rightupper"/>
  153. <Cell col="4" text="bind:leftupper"/>
  154. <Cell col="5" text="bind:rightlower"/>
  155. <Cell col="6" text="bind:leftlower"/>
  156. <Cell col="7" displaytype="date" text="bind:orddd" calendardisplaynulltype="none"/>
  157. <Cell col="8" style="align:left middle;" text="bind:toot"/>
  158. <Cell col="9"/>
  159. </Band>
  160. </Format>
  161. </Formats>
  162. </Grid>
  163. <Shape id="line7" class="line_1" position="absolute 2 604 726 604"/>
  164. <Button id="btn_trans" taborder="137" text="전달" onclick="btn_trans_onclick" class="btn2" position="absolute 677 390 721 410"/>
  165. <Button id="btn_delete" taborder="138" text="삭제" onclick="btn_delete_onclick" class="btn5" position="absolute 630 390 674 410"/>
  166. <Radio id="rdo_refterm" taborder="139" columncount="6" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 151 574 411 594" onitemchanged="rdo_refterm_onitemchanged">
  167. <Dataset id="innerdataset">
  168. <ColumnInfo>
  169. <Column id="codecolumn" size="256"/>
  170. <Column id="datacolumn" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="codecolumn">-</Col>
  175. <Col id="datacolumn">전체</Col>
  176. </Row>
  177. <Row>
  178. <Col id="codecolumn">3</Col>
  179. <Col id="datacolumn">3개월</Col>
  180. </Row>
  181. <Row>
  182. <Col id="codecolumn">6</Col>
  183. <Col id="datacolumn">6개월</Col>
  184. </Row>
  185. <Row>
  186. <Col id="codecolumn">12</Col>
  187. <Col id="datacolumn">1년</Col>
  188. </Row>
  189. <Row>
  190. <Col id="codecolumn">24</Col>
  191. <Col id="datacolumn">2년</Col>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. </Radio>
  196. <Shape id="line3" class="line_1" position="absolute 2 64 726 64"/>
  197. <Shape id="line45" class="line_2" position="absolute 2 91 576 91"/>
  198. <Button id="btn_unselect" taborder="140" text="전체취소" onclick="btn_unselect_onclick" class="btn2" position="absolute 475 43 543 63"/>
  199. <Button id="btn_allscndtooth" taborder="141" text="전악 (영구치)" onclick="btn_allscndtooth_onclick" class="btn2" position="absolute 546 43 638 63"/>
  200. <Button id="btn_allmilktooth" taborder="142" text="전악 (유치)" onclick="btn_allmilktooth_onclick" class="btn2" position="absolute 641 43 721 63"/>
  201. <Button id="buttonA8" taborder="143" class="btnt_left_top_1" position="absolute 326 154 361 194" onclick="lf_tootbtnclick"/>
  202. <Button id="buttonA7" taborder="144" class="btnt_left_top_2" position="absolute 288 154 323 194" onclick="lf_tootbtnclick"/>
  203. <Button id="buttonA6" taborder="145" class="btnt_left_top_3" position="absolute 250 154 285 194" onclick="lf_tootbtnclick"/>
  204. <Button id="buttonA5" taborder="146" class="btnt_left_top_4" position="absolute 212 154 247 194" onclick="lf_tootbtnclick"/>
  205. <Button id="buttonA4" taborder="147" class="btnt_left_top_5" position="absolute 174 154 209 194" onclick="lf_tootbtnclick"/>
  206. <Button id="buttonA3" taborder="148" class="btnt_left_top_6" position="absolute 136 154 171 194" onclick="lf_tootbtnclick"/>
  207. <Button id="buttonA2" taborder="149" class="btnt_left_top_7" position="absolute 98 154 133 194" onclick="lf_tootbtnclick"/>
  208. <Button id="buttonA1" taborder="150" position="absolute 60 154 95 194" onclick="lf_tootbtnclick" enable="true" class="btnt_left_top_8"/>
  209. <Button id="buttonA9" taborder="151" class="btnt_right_top_1" position="absolute 372 154 407 194" onclick="lf_tootbtnclick"/>
  210. <Button id="buttonA10" taborder="152" class="btnt_right_top_2" position="absolute 410 154 445 194" onclick="lf_tootbtnclick"/>
  211. <Button id="buttonA11" taborder="153" class="btnt_right_top_3" position="absolute 448 154 483 194" onclick="lf_tootbtnclick"/>
  212. <Button id="buttonA12" taborder="154" class="btnt_right_top_4" position="absolute 486 154 521 194" onclick="lf_tootbtnclick"/>
  213. <Button id="buttonA13" taborder="155" class="btnt_right_top_5" position="absolute 524 154 559 194" onclick="lf_tootbtnclick"/>
  214. <Button id="buttonA14" taborder="156" class="btnt_right_top_6" position="absolute 562 154 597 194" onclick="lf_tootbtnclick"/>
  215. <Button id="buttonA15" taborder="157" class="btnt_right_top_7" position="absolute 600 154 635 194" onclick="lf_tootbtnclick"/>
  216. <Button id="buttonA16" taborder="158" class="btnt_right_top_8" position="absolute 638 154 673 194" onclick="lf_tootbtnclick"/>
  217. <Button id="buttonC8" taborder="159" class="btnt_left_top_A" position="absolute 326 197 361 237" onclick="lf_tootbtnclick"/>
  218. <Button id="buttonC7" taborder="160" class="btnt_left_top_B" position="absolute 288 197 323 237" onclick="lf_tootbtnclick"/>
  219. <Button id="buttonC6" taborder="161" class="btnt_left_top_C" position="absolute 250 197 285 237" onclick="lf_tootbtnclick"/>
  220. <Button id="buttonC5" taborder="162" class="btnt_left_top_D" position="absolute 212 197 247 237" onclick="lf_tootbtnclick"/>
  221. <Button id="buttonC4" taborder="163" class="btnt_left_top_E" position="absolute 174 197 209 237" onclick="lf_tootbtnclick"/>
  222. <Button id="buttonC9" taborder="164" class="btnt_right_top_A" position="absolute 372 197 407 237" onclick="lf_tootbtnclick"/>
  223. <Button id="buttonC10" taborder="165" class="btnt_right_top_B" position="absolute 410 197 445 237" onclick="lf_tootbtnclick"/>
  224. <Button id="buttonC11" taborder="166" class="btnt_right_top_C" position="absolute 448 197 483 237" onclick="lf_tootbtnclick"/>
  225. <Button id="buttonC12" taborder="167" class="btnt_right_top_D" position="absolute 486 197 521 237" onclick="lf_tootbtnclick"/>
  226. <Button id="buttonC13" taborder="168" class="btnt_right_top_E" position="absolute 524 197 559 237" onclick="lf_tootbtnclick"/>
  227. <Button id="rightupperA" taborder="169" text="우상" onclick="lf_btnclick" class="btn2_letter2" position="absolute 12 162 50 182"/>
  228. <Button id="leftupperA" taborder="170" text="좌상" onclick="lf_btnclick" class="btn2_letter2" position="absolute 683 162 721 182"/>
  229. <Button id="rightupperC" taborder="171" text="우상유치" onclick="lf_btnclick" class="btn2" position="absolute 12 205 80 225"/>
  230. <Button id="leftupperC" taborder="172" text="좌상유치" onclick="lf_btnclick" class="btn2" position="absolute 653 205 721 225"/>
  231. <Button id="trisectionA1" taborder="173" text="1/3 (영구치)" class="btn2" position="absolute 60 101 152 121" onclick="lf_btnclick"/>
  232. <Button id="trisectionA2" taborder="174" text="1/3 (영구치)" onclick="lf_btnclick" class="btn2" position="absolute 321 101 413 121"/>
  233. <Button id="trisectionA3" taborder="175" text="1/3 (영구치)" onclick="lf_btnclick" class="btn2" position="absolute 580 100 672 120"/>
  234. <Button id="trisectionC1" taborder="176" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 60 124 152 144"/>
  235. <Button id="trisectionC2" taborder="177" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 321 124 413 144"/>
  236. <Button id="trisectionC3" taborder="178" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 580 123 672 143"/>
  237. <TextArea id="txt_isol" taborder="179" position="absolute 12 65 325 91"/>
  238. <TextArea id="txt_isol00" taborder="180" position="absolute 372 66 721 92"/>
  239. <Edit id="opt_rightlower" taborder="181" readonly="true" position="absolute 654 69 717 89"/>
  240. <Edit id="opt_leftlower" taborder="182" readonly="true" position="absolute 587 69 652 89"/>
  241. <Edit id="opt_leftupper" taborder="183" readonly="true" position="absolute 519 69 584 89"/>
  242. <Edit id="opt_rightupper" taborder="184" readonly="true" position="absolute 451 69 516 89"/>
  243. <Static id="caption00" text="선택된 번호" class="cell_1" position="absolute 373 67 448 91"/>
  244. <Static id="caption4" text="EDI 치식" class="cell_1" position="absolute 13 66 78 90"/>
  245. <Edit id="opt_toot4" taborder="185" readonly="true" position="absolute 264 68 321 88"/>
  246. <Edit id="opt_toot3" taborder="186" readonly="true" position="absolute 203 68 261 88"/>
  247. <Edit id="opt_toot2" taborder="187" readonly="true" position="absolute 142 68 200 88"/>
  248. <Edit id="opt_toot1" taborder="188" readonly="true" position="absolute 81 68 139 88"/>
  249. <Button id="trisectionC5" taborder="189" text="1/3 (유치)" onclick="lf_btnclick" class="btn2" position="absolute 321 340 413 360"/>
  250. <Static id="caption02" class="tit_1" position="absolute 0 0 177 26" text="치식 입력"/>
  251. <CheckBox id="CheckBox00" taborder="190" text="임플란트치식적용" position="absolute 496 391 623 411" truevalue="Y" falsevalue="N" onclick="CheckBox00_onclick"/>
  252. </Layout>
  253. </Layouts>
  254. <Objects>
  255. <Dataset id="ds_grid_grd_toothapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="chos" type="STRING"/>
  258. <Column id="flag" type="STRING"/>
  259. <Column id="cd" type="STRING"/>
  260. <Column id="cdnm" type="STRING"/>
  261. <Column id="rightupper" type="STRING"/>
  262. <Column id="leftupper" type="STRING"/>
  263. <Column id="rightlower" type="STRING"/>
  264. <Column id="leftlower" type="STRING"/>
  265. <Column id="orddd" type="STRING"/>
  266. <Column id="toot" type="STRING"/>
  267. <Column id="row" type="STRING"/>
  268. <Column id="pid" type="STRING"/>
  269. <Column id="indd" type="STRING"/>
  270. <Column id="cretno" type="STRING"/>
  271. <Column id="instcd" type="STRING"/>
  272. <Column id="execdd" type="STRING"/>
  273. <Column id="calcseqno" type="STRING"/>
  274. <Column id="calcscorseqno" type="STRING"/>
  275. </ColumnInfo>
  276. </Dataset>
  277. <Dataset id="ds_grid_grd_toothlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  278. <ColumnInfo>
  279. <Column id="flag" type="STRING"/>
  280. <Column id="cd" type="STRING"/>
  281. <Column id="cdnm" type="STRING"/>
  282. <Column id="rightupper" type="STRING"/>
  283. <Column id="leftupper" type="STRING"/>
  284. <Column id="rightlower" type="STRING"/>
  285. <Column id="leftlower" type="STRING"/>
  286. <Column id="orddd" type="STRING"/>
  287. <Column id="toot" type="STRING"/>
  288. </ColumnInfo>
  289. </Dataset>
  290. <Dataset id="ds_main_list2_toothapplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list2_toothapplist_oncolumnchanged">
  291. <ColumnInfo>
  292. <Column id="chos" type="STRING" size="256"/>
  293. <Column id="flag" type="STRING" size="256"/>
  294. <Column id="cd" type="STRING" size="256"/>
  295. <Column id="cdnm" type="STRING" size="256"/>
  296. <Column id="rightupper" type="STRING" size="256"/>
  297. <Column id="leftupper" type="STRING" size="256"/>
  298. <Column id="rightlower" type="STRING" size="256"/>
  299. <Column id="leftlower" type="STRING" size="256"/>
  300. <Column id="orddd" type="STRING" size="256"/>
  301. <Column id="toot" type="STRING" size="256"/>
  302. <Column id="row" type="STRING" size="256"/>
  303. <Column id="pid" type="STRING" size="256"/>
  304. <Column id="indd" type="STRING" size="256"/>
  305. <Column id="cretno" type="STRING" size="256"/>
  306. <Column id="execdd" type="STRING" size="256"/>
  307. <Column id="calcseqno" type="STRING" size="256"/>
  308. <Column id="calcscorseqno" type="STRING" size="256"/>
  309. <Column id="instcd" type="STRING" size="256"/>
  310. </ColumnInfo>
  311. </Dataset>
  312. <Dataset id="ds_main_list1_toothlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="flag" type="STRING" size="256"/>
  315. <Column id="cd" type="STRING" size="256"/>
  316. <Column id="cdnm" type="STRING" size="256"/>
  317. <Column id="rightupper" type="STRING" size="256"/>
  318. <Column id="leftupper" type="STRING" size="256"/>
  319. <Column id="rightlower" type="STRING" size="256"/>
  320. <Column id="leftlower" type="STRING" size="256"/>
  321. <Column id="orddd" type="STRING" size="256"/>
  322. <Column id="toot" type="STRING" size="256"/>
  323. </ColumnInfo>
  324. </Dataset>
  325. <Dataset id="ds_hidden_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  326. <ColumnInfo>
  327. <Column id="pid" type="STRING" size="256"/>
  328. <Column id="indd" type="STRING" size="256"/>
  329. <Column id="cretno" type="STRING" size="256"/>
  330. <Column id="toot" type="STRING" size="256"/>
  331. <Column id="clamym" type="STRING" size="256"/>
  332. <Column id="clamdg" type="STRING" size="256"/>
  333. <Column id="pidsn" type="STRING" size="256"/>
  334. <Column id="flag" type="STRING" size="256"/>
  335. <Column id="refterm" type="STRING" size="256"/>
  336. <Column id="popyn" type="STRING" size="256"/>
  337. <Column id="scrnid" type="STRING" size="256"/>
  338. <Column id="snglcalcscorcd" type="STRING" size="256"/>
  339. </ColumnInfo>
  340. </Dataset>
  341. <Dataset id="ds_init_termlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  342. <ColumnInfo>
  343. <Column id="refterm" type="STRING" size="256"/>
  344. </ColumnInfo>
  345. <Rows>
  346. <Row>
  347. <Col id="refterm">3</Col>
  348. </Row>
  349. </Rows>
  350. </Dataset>
  351. <Dataset id="ds_hidden_selectedtooth_editoothnum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  352. <ColumnInfo>
  353. <Column id="rightupper" type="STRING" size="256"/>
  354. <Column id="leftupper" type="STRING" size="256"/>
  355. <Column id="rightlower" type="STRING" size="256"/>
  356. <Column id="leftlower" type="STRING" size="256"/>
  357. </ColumnInfo>
  358. <Rows>
  359. <Row/>
  360. </Rows>
  361. </Dataset>
  362. <Dataset id="ds_hidden_selectedtooth_selectednum" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  363. <ColumnInfo>
  364. <Column id="rightupper" type="STRING" size="256"/>
  365. <Column id="leftupper" type="STRING" size="256"/>
  366. <Column id="rightlower" type="STRING" size="256"/>
  367. <Column id="leftlower" type="STRING" size="256"/>
  368. </ColumnInfo>
  369. <Rows>
  370. <Row/>
  371. </Rows>
  372. </Dataset>
  373. <Dataset id="ds_hidden_chkflag_scndtooth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  374. <ColumnInfo>
  375. <Column id="rightupperA" type="STRING" size="256"/>
  376. <Column id="leftupperA" type="STRING" size="256"/>
  377. <Column id="rightlowerA" type="STRING" size="256"/>
  378. <Column id="leftlowerA" type="STRING" size="256"/>
  379. <Column id="trisectionA1" type="STRING" size="256"/>
  380. <Column id="trisectionA2" type="STRING" size="256"/>
  381. <Column id="trisectionA3" type="STRING" size="256"/>
  382. <Column id="trisectionA4" type="STRING" size="256"/>
  383. <Column id="trisectionA5" type="STRING" size="256"/>
  384. <Column id="trisectionA6" type="STRING" size="256"/>
  385. </ColumnInfo>
  386. <Rows>
  387. <Row/>
  388. </Rows>
  389. </Dataset>
  390. <Dataset id="ds_hidden_chkflag_milktooth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  391. <ColumnInfo>
  392. <Column id="rightupperC" type="STRING" size="256"/>
  393. <Column id="leftupperC" type="STRING" size="256"/>
  394. <Column id="rightlowerC" type="STRING" size="256"/>
  395. <Column id="leftlowerC" type="STRING" size="256"/>
  396. <Column id="trisectionC1" type="STRING" size="256"/>
  397. <Column id="trisectionC2" type="STRING" size="256"/>
  398. <Column id="trisectionC3" type="STRING" size="256"/>
  399. <Column id="trisectionC4" type="STRING" size="256"/>
  400. <Column id="trisectionC5" type="STRING" size="256"/>
  401. <Column id="trisectionC6" type="STRING" size="256"/>
  402. </ColumnInfo>
  403. <Rows>
  404. <Row/>
  405. </Rows>
  406. </Dataset>
  407. <Dataset id="ds_btn_img" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  408. <ColumnInfo>
  409. <Column id="btnnm" type="STRING" size="256"/>
  410. <Column id="btnon" type="STRING" size="256"/>
  411. <Column id="btnoff" type="STRING" size="256"/>
  412. </ColumnInfo>
  413. <Rows>
  414. <Row>
  415. <Col id="btnnm">buttonA1</Col>
  416. <Col id="btnon">left_top_8</Col>
  417. <Col id="btnoff">left_top_8_off</Col>
  418. </Row>
  419. <Row>
  420. <Col id="btnnm">buttonA2</Col>
  421. <Col id="btnon">left_top_7</Col>
  422. <Col id="btnoff">left_top_7_off</Col>
  423. </Row>
  424. <Row>
  425. <Col id="btnnm">buttonA3</Col>
  426. <Col id="btnon">left_top_6</Col>
  427. <Col id="btnoff">left_top_6_off</Col>
  428. </Row>
  429. <Row>
  430. <Col id="btnnm">buttonA4</Col>
  431. <Col id="btnon">left_top_5</Col>
  432. <Col id="btnoff">left_top_5_off</Col>
  433. </Row>
  434. <Row>
  435. <Col id="btnnm">buttonA5</Col>
  436. <Col id="btnon">left_top_4</Col>
  437. <Col id="btnoff">left_top_4_off</Col>
  438. </Row>
  439. <Row>
  440. <Col id="btnnm">buttonA6</Col>
  441. <Col id="btnon">left_top_3</Col>
  442. <Col id="btnoff">left_top_3_off</Col>
  443. </Row>
  444. <Row>
  445. <Col id="btnnm">buttonA7</Col>
  446. <Col id="btnon">left_top_2</Col>
  447. <Col id="btnoff">left_top_2_off</Col>
  448. </Row>
  449. <Row>
  450. <Col id="btnnm">buttonA8</Col>
  451. <Col id="btnon">left_top_1</Col>
  452. <Col id="btnoff">left_top_1_off</Col>
  453. </Row>
  454. <Row>
  455. <Col id="btnnm">buttonA9</Col>
  456. <Col id="btnon">right_top_1</Col>
  457. <Col id="btnoff">right_top_1_off</Col>
  458. </Row>
  459. <Row>
  460. <Col id="btnnm">buttonA10</Col>
  461. <Col id="btnon">right_top_2</Col>
  462. <Col id="btnoff">right_top_2_off</Col>
  463. </Row>
  464. <Row>
  465. <Col id="btnnm">buttonA11</Col>
  466. <Col id="btnon">right_top_3</Col>
  467. <Col id="btnoff">right_top_3_off</Col>
  468. </Row>
  469. <Row>
  470. <Col id="btnnm">buttonA12</Col>
  471. <Col id="btnon">right_top_4</Col>
  472. <Col id="btnoff">right_top_4_off</Col>
  473. </Row>
  474. <Row>
  475. <Col id="btnnm">buttonA13</Col>
  476. <Col id="btnon">right_top_5</Col>
  477. <Col id="btnoff">right_top_5_off</Col>
  478. </Row>
  479. <Row>
  480. <Col id="btnnm">buttonA14</Col>
  481. <Col id="btnon">right_top_6</Col>
  482. <Col id="btnoff">right_top_6_off</Col>
  483. </Row>
  484. <Row>
  485. <Col id="btnnm">buttonA15</Col>
  486. <Col id="btnon">right_top_7</Col>
  487. <Col id="btnoff">right_top_7_off</Col>
  488. </Row>
  489. <Row>
  490. <Col id="btnnm">buttonA16</Col>
  491. <Col id="btnon">right_top_8</Col>
  492. <Col id="btnoff">right_top_8_off</Col>
  493. </Row>
  494. <Row>
  495. <Col id="btnnm">buttonC4</Col>
  496. <Col id="btnon">left_top_E</Col>
  497. <Col id="btnoff">left_top_E_off</Col>
  498. </Row>
  499. <Row>
  500. <Col id="btnnm">buttonC5</Col>
  501. <Col id="btnon">left_top_D</Col>
  502. <Col id="btnoff">left_top_D_off</Col>
  503. </Row>
  504. <Row>
  505. <Col id="btnnm">buttonC6</Col>
  506. <Col id="btnon">left_top_C</Col>
  507. <Col id="btnoff">left_top_C_off</Col>
  508. </Row>
  509. <Row>
  510. <Col id="btnnm">buttonC7</Col>
  511. <Col id="btnon">left_top_B</Col>
  512. <Col id="btnoff">left_top_B_off</Col>
  513. </Row>
  514. <Row>
  515. <Col id="btnnm">buttonC8</Col>
  516. <Col id="btnon">left_top_A</Col>
  517. <Col id="btnoff">left_top_A_off</Col>
  518. </Row>
  519. <Row>
  520. <Col id="btnnm">buttonC9</Col>
  521. <Col id="btnon">right_top_A</Col>
  522. <Col id="btnoff">right_top_A_off</Col>
  523. </Row>
  524. <Row>
  525. <Col id="btnnm">buttonC10</Col>
  526. <Col id="btnon">right_top_B</Col>
  527. <Col id="btnoff">right_top_B_off</Col>
  528. </Row>
  529. <Row>
  530. <Col id="btnnm">buttonC11</Col>
  531. <Col id="btnon">right_top_C</Col>
  532. <Col id="btnoff">right_top_C_off</Col>
  533. </Row>
  534. <Row>
  535. <Col id="btnnm">buttonC12</Col>
  536. <Col id="btnon">right_top_D</Col>
  537. <Col id="btnoff">right_top_D_off</Col>
  538. </Row>
  539. <Row>
  540. <Col id="btnnm">buttonC13</Col>
  541. <Col id="btnon">right_top_E</Col>
  542. <Col id="btnoff">right_top_E_off</Col>
  543. </Row>
  544. <Row>
  545. <Col id="btnnm">buttonC20</Col>
  546. <Col id="btnon">left_bottom_E</Col>
  547. <Col id="btnoff">left_bottom_E_off</Col>
  548. </Row>
  549. <Row>
  550. <Col id="btnnm">buttonC21</Col>
  551. <Col id="btnon">left_bottom_D</Col>
  552. <Col id="btnoff">left_bottom_D_off</Col>
  553. </Row>
  554. <Row>
  555. <Col id="btnnm">buttonC22</Col>
  556. <Col id="btnon">left_bottom_C</Col>
  557. <Col id="btnoff">left_bottom_C_off</Col>
  558. </Row>
  559. <Row>
  560. <Col id="btnnm">buttonC23</Col>
  561. <Col id="btnon">left_bottom_B</Col>
  562. <Col id="btnoff">left_bottom_B_off</Col>
  563. </Row>
  564. <Row>
  565. <Col id="btnnm">buttonC24</Col>
  566. <Col id="btnon">left_bottom_A</Col>
  567. <Col id="btnoff">left_bottom_A_off</Col>
  568. </Row>
  569. <Row>
  570. <Col id="btnnm">buttonC25</Col>
  571. <Col id="btnon">right_bottom_A</Col>
  572. <Col id="btnoff">right_bottom_A_off</Col>
  573. </Row>
  574. <Row>
  575. <Col id="btnnm">buttonC26</Col>
  576. <Col id="btnon">right_bottom_B</Col>
  577. <Col id="btnoff">right_bottom_B_off</Col>
  578. </Row>
  579. <Row>
  580. <Col id="btnnm">buttonC27</Col>
  581. <Col id="btnon">right_bottom_C</Col>
  582. <Col id="btnoff">right_bottom_C_off</Col>
  583. </Row>
  584. <Row>
  585. <Col id="btnnm">buttonC28</Col>
  586. <Col id="btnon">right_bottom_D</Col>
  587. <Col id="btnoff">right_bottom_D_off</Col>
  588. </Row>
  589. <Row>
  590. <Col id="btnnm">buttonC29</Col>
  591. <Col id="btnon">right_bottom_E</Col>
  592. <Col id="btnoff">right_bottom_E_off</Col>
  593. </Row>
  594. <Row>
  595. <Col id="btnnm">buttonA17</Col>
  596. <Col id="btnon">left_bottom_8</Col>
  597. <Col id="btnoff">left_bottom_8_off</Col>
  598. </Row>
  599. <Row>
  600. <Col id="btnnm">buttonA18</Col>
  601. <Col id="btnon">left_bottom_7</Col>
  602. <Col id="btnoff">left_bottom_7_off</Col>
  603. </Row>
  604. <Row>
  605. <Col id="btnnm">buttonA19</Col>
  606. <Col id="btnon">left_bottom_6</Col>
  607. <Col id="btnoff">left_bottom_6_off</Col>
  608. </Row>
  609. <Row>
  610. <Col id="btnnm">buttonA20</Col>
  611. <Col id="btnon">left_bottom_5</Col>
  612. <Col id="btnoff">left_bottom_5_off</Col>
  613. </Row>
  614. <Row>
  615. <Col id="btnnm">buttonA21</Col>
  616. <Col id="btnon">left_bottom_4</Col>
  617. <Col id="btnoff">left_bottom_4_off</Col>
  618. </Row>
  619. <Row>
  620. <Col id="btnnm">buttonA22</Col>
  621. <Col id="btnon">left_bottom_3</Col>
  622. <Col id="btnoff">left_bottom_3_off</Col>
  623. </Row>
  624. <Row>
  625. <Col id="btnnm">buttonA23</Col>
  626. <Col id="btnon">left_bottom_2</Col>
  627. <Col id="btnoff">left_bottom_2_off</Col>
  628. </Row>
  629. <Row>
  630. <Col id="btnnm">buttonA24</Col>
  631. <Col id="btnon">left_bottom_1</Col>
  632. <Col id="btnoff">left_bottom_1_off</Col>
  633. </Row>
  634. <Row>
  635. <Col id="btnnm">buttonA25</Col>
  636. <Col id="btnon">right_bottom_1</Col>
  637. <Col id="btnoff">right_bottom_1_off</Col>
  638. </Row>
  639. <Row>
  640. <Col id="btnnm">buttonA26</Col>
  641. <Col id="btnon">right_bottom_2</Col>
  642. <Col id="btnoff">right_bottom_2_off</Col>
  643. </Row>
  644. <Row>
  645. <Col id="btnnm">buttonA27</Col>
  646. <Col id="btnon">right_bottom_3</Col>
  647. <Col id="btnoff">right_bottom_3_off</Col>
  648. </Row>
  649. <Row>
  650. <Col id="btnnm">buttonA28</Col>
  651. <Col id="btnon">right_bottom_4</Col>
  652. <Col id="btnoff">right_bottom_4_off</Col>
  653. </Row>
  654. <Row>
  655. <Col id="btnnm">buttonA29</Col>
  656. <Col id="btnon">right_bottom_5</Col>
  657. <Col id="btnoff">right_bottom_5_off</Col>
  658. </Row>
  659. <Row>
  660. <Col id="btnnm">buttonA30</Col>
  661. <Col id="btnon">right_bottom_6</Col>
  662. <Col id="btnoff">right_bottom_6_off</Col>
  663. </Row>
  664. <Row>
  665. <Col id="btnnm">buttonA31</Col>
  666. <Col id="btnon">right_bottom_7</Col>
  667. <Col id="btnoff">right_bottom_7_off</Col>
  668. </Row>
  669. <Row>
  670. <Col id="btnnm">buttonA32</Col>
  671. <Col id="btnon">right_bottom_8</Col>
  672. <Col id="btnoff">right_bottom_8_off</Col>
  673. </Row>
  674. </Rows>
  675. </Dataset>
  676. <Dataset id="ds_hidden_rslt_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  677. <ColumnInfo>
  678. <Column id="flag" type="STRING" size="256"/>
  679. <Column id="toot" type="STRING" size="256"/>
  680. <Column id="toot1" type="STRING" size="256"/>
  681. <Column id="row" type="STRING" size="256"/>
  682. <Column id="toothYN" type="STRING" size="256"/>
  683. <Column id="cd" type="STRING" size="256"/>
  684. </ColumnInfo>
  685. <Rows>
  686. <Row/>
  687. </Rows>
  688. </Dataset>
  689. <Dataset id="ds_hidden_cond_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  690. <ColumnInfo>
  691. <Column id="chos" type="STRING" size="256"/>
  692. <Column id="flag" type="STRING" size="256"/>
  693. <Column id="cd" type="STRING" size="256"/>
  694. <Column id="cdnm" type="STRING" size="256"/>
  695. <Column id="calcscorseqno" type="STRING" size="256"/>
  696. <Column id="leftupper" type="STRING" size="256"/>
  697. <Column id="rightlower" type="STRING" size="256"/>
  698. <Column id="leftlower" type="STRING" size="256"/>
  699. <Column id="orddd" type="STRING" size="256"/>
  700. <Column id="toot" type="STRING" size="256"/>
  701. <Column id="row" type="STRING" size="256"/>
  702. <Column id="pid" type="STRING" size="256"/>
  703. <Column id="indd" type="STRING" size="256"/>
  704. <Column id="cretno" type="STRING" size="256"/>
  705. <Column id="instcd" type="STRING" size="256"/>
  706. <Column id="execdd" type="STRING" size="256"/>
  707. <Column id="calcseqno" type="STRING" size="256"/>
  708. </ColumnInfo>
  709. </Dataset>
  710. <Dataset id="ds_hidden_list1_toothlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  711. <ColumnInfo>
  712. <Column id="flag" type="STRING" size="256"/>
  713. <Column id="cd" type="STRING" size="256"/>
  714. <Column id="cdnm" type="STRING" size="256"/>
  715. <Column id="rightupper" type="STRING" size="256"/>
  716. <Column id="leftupper" type="STRING" size="256"/>
  717. <Column id="rightlower" type="STRING" size="256"/>
  718. <Column id="leftlower" type="STRING" size="256"/>
  719. <Column id="orddd" type="STRING" size="256"/>
  720. <Column id="toot" type="STRING" size="256"/>
  721. </ColumnInfo>
  722. </Dataset>
  723. <Dataset id="ds_hidden_list2_toothapplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  724. <ColumnInfo>
  725. <Column id="chos" type="STRING" size="256"/>
  726. <Column id="flag" type="STRING" size="256"/>
  727. <Column id="cd" type="STRING" size="256"/>
  728. <Column id="cdnm" type="STRING" size="256"/>
  729. <Column id="rightupper" type="STRING" size="256"/>
  730. <Column id="leftupper" type="STRING" size="256"/>
  731. <Column id="rightlower" type="STRING" size="256"/>
  732. <Column id="leftlower" type="STRING" size="256"/>
  733. <Column id="orddd" type="STRING" size="256"/>
  734. <Column id="toot" type="STRING" size="256"/>
  735. </ColumnInfo>
  736. </Dataset>
  737. <Dataset id="ds_temp_toot" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  738. <ColumnInfo>
  739. <Column id="t11" type="STRING" size="256"/>
  740. <Column id="t12" type="STRING" size="256"/>
  741. <Column id="t13" type="STRING" size="256"/>
  742. <Column id="t14" type="STRING" size="256"/>
  743. <Column id="t15" type="STRING" size="256"/>
  744. <Column id="t16" type="STRING" size="256"/>
  745. <Column id="t17" type="STRING" size="256"/>
  746. <Column id="t18" type="STRING" size="256"/>
  747. <Column id="t21" type="STRING" size="256"/>
  748. <Column id="t22" type="STRING" size="256"/>
  749. <Column id="t23" type="STRING" size="256"/>
  750. <Column id="t24" type="STRING" size="256"/>
  751. <Column id="t25" type="STRING" size="256"/>
  752. <Column id="t26" type="STRING" size="256"/>
  753. <Column id="t27" type="STRING" size="256"/>
  754. <Column id="t28" type="STRING" size="256"/>
  755. <Column id="t31" type="STRING" size="256"/>
  756. <Column id="t32" type="STRING" size="256"/>
  757. <Column id="t33" type="STRING" size="256"/>
  758. <Column id="t34" type="STRING" size="256"/>
  759. <Column id="t35" type="STRING" size="256"/>
  760. <Column id="t36" type="STRING" size="256"/>
  761. <Column id="t37" type="STRING" size="256"/>
  762. <Column id="t38" type="STRING" size="256"/>
  763. <Column id="t41" type="STRING" size="256"/>
  764. <Column id="t42" type="STRING" size="256"/>
  765. <Column id="t43" type="STRING" size="256"/>
  766. <Column id="t44" type="STRING" size="256"/>
  767. <Column id="t45" type="STRING" size="256"/>
  768. <Column id="t46" type="STRING" size="256"/>
  769. <Column id="t47" type="STRING" size="256"/>
  770. <Column id="t48" type="STRING" size="256"/>
  771. </ColumnInfo>
  772. </Dataset>
  773. </Objects>
  774. <Bind>
  775. <BindItem id="item0" compid="rdo_refterm" propid="value" datasetid="ds_init_termlist" columnid="refterm"/>
  776. <BindItem id="item1" compid="opt_toot1" propid="value" datasetid="ds_hidden_selectedtooth_editoothnum" columnid="rightupper"/>
  777. <BindItem id="item2" compid="opt_toot2" propid="value" datasetid="ds_hidden_selectedtooth_editoothnum" columnid="leftupper"/>
  778. <BindItem id="item3" compid="opt_toot3" propid="value" datasetid="ds_hidden_selectedtooth_editoothnum" columnid="rightlower"/>
  779. <BindItem id="item4" compid="opt_toot4" propid="value" datasetid="ds_hidden_selectedtooth_editoothnum" columnid="leftlower"/>
  780. <BindItem id="item5" compid="opt_rightupper" propid="value" datasetid="ds_hidden_selectedtooth_selectednum" columnid="rightupper"/>
  781. <BindItem id="item6" compid="opt_leftupper" propid="value" datasetid="ds_hidden_selectedtooth_selectednum" columnid="leftupper"/>
  782. <BindItem id="item7" compid="opt_leftlower" propid="value" datasetid="ds_hidden_selectedtooth_selectednum" columnid="rightlower"/>
  783. <BindItem id="item8" compid="opt_rightlower" propid="value" datasetid="ds_hidden_selectedtooth_selectednum" columnid="leftlower"/>
  784. </Bind>
  785. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  786. * System Name :
  787. * Job Name :
  788. * Creator :
  789. * Make Date : 2015-05-01
  790. * Description :
  791. *---------------------------------------------------------------------------------------
  792. * Modify Date Modifier Modify Description
  793. *---------------------------------------------------------------------------------------
  794. * 2015-05-01 Live Converter TF->XP
  795. *
  796. *---------------------------------------------------------------------------------------
  797. ****************************************************************************************/
  798. include "com_commonxp::comm_main.xjs";
  799. var teethArray = new Array(32);
  800. var imgpath = "../../../IMAGES/pam/PM/tooth/";
  801. // 화면 권한을 설정한다.
  802. function fCheckAuth()
  803. {
  804. var xAuth = !checkAuth("X");
  805. btn_confirm.enable = xAuth; // 확인
  806. btn_unselect.enable = xAuth;
  807. btn_allscndtooth.enable = xAuth;
  808. btn_allmilktooth.enable = xAuth;
  809. trisectionA1.enable = xAuth;
  810. trisectionA2.enable = xAuth;
  811. trisectionA3.enable = xAuth;
  812. trisectionA4.enable = xAuth;
  813. trisectionA5.enable = xAuth;
  814. trisectionA6.enable = xAuth;
  815. trisectionC1.enable = xAuth;
  816. trisectionC2.enable = xAuth;
  817. trisectionC3.enable = xAuth;
  818. trisectionC4.enable = xAuth;
  819. trisectionC5.enable = xAuth;
  820. trisectionC6.enable = xAuth;
  821. rightupperA.enable = xAuth;
  822. rightupperC.enable = xAuth;
  823. rightlowerC.enable = xAuth;
  824. rightlowerA.enable = xAuth;
  825. leftupperA.enable = xAuth;
  826. leftupperC.enable = xAuth;
  827. leftlowerC.enable = xAuth;
  828. leftlowerA.enable = xAuth;
  829. }
  830. // 화면을 초기화한다.
  831. function fInitialize()
  832. {
  833. ds_main_list1_toothlist.clearData();
  834. var pid = ds_hidden_cond.getColumn(0, "pid"); // 받아온 pid
  835. var sel_toot = "";
  836. if (!utlf_isNull(pid)) {
  837. // 조회기간 추가
  838. ds_hidden_cond.setColumn(0, "refterm", ds_init_termlist.getColumn(0, "refterm"));
  839. ds_hidden_cond.setColumn(0, "popyn", "Y");
  840. var oParam = {};
  841. oParam.id = "TRPIZ00601";
  842. oParam.service = "insucomapp.DiagOrderTooth";
  843. oParam.method = "reqGetDiagOrderTooth";
  844. oParam.inds = "req=ds_hidden_cond";
  845. oParam.outds = "ds_hidden_list1_toothlist=toothlist ds_hidden_list2_toothapplist=toothapplist";
  846. oParam.async = false;
  847. tranf_submit(oParam);
  848. ds_main_list1_toothlist.updatecontrol = false;
  849. ds_main_list2_toothapplist.updatecontrol = false;
  850. for (var i=0; i<ds_hidden_list1_toothlist.rowcount; i++) {
  851. if (!utlf_isNull(ds_hidden_list1_toothlist.getColumn(i, "indd"))){
  852. ds_hidden_list1_toothlist.setColumn(i,"orddd", ds_hidden_list1_toothlist.getColumn(i, "indd"));
  853. }
  854. }
  855. ds_hidden_list2_toothapplist.addColumn("orddd","string")
  856. for (var i=0; i<ds_hidden_list2_toothapplist.rowcount; i++) {
  857. ds_hidden_list2_toothapplist.setColumn(i,"orddd", ds_hidden_list2_toothapplist.getColumn(i, "indd"));
  858. }
  859. ds_main_list1_toothlist.appendData(ds_hidden_list1_toothlist, true, true);
  860. ds_main_list2_toothapplist.appendData(ds_hidden_list2_toothapplist, true, true);
  861. if (ds_main_list1_toothlist.rowcount > 0) {
  862. var frow = ds_main_list1_toothlist.findRowExpr("cd=='"+ds_hidden_cond.getColumn(0,"snglcalcscorcd")+"'");
  863. ds_main_list1_toothlist.rowposition = frow;
  864. ds_main_list1_toothlist.setColumn(frow, "chos", "true");
  865. }
  866. if (ds_main_list2_toothapplist.rowcount > 0) {
  867. var frow = ds_main_list2_toothapplist.findRowExpr("cd=='"+ds_hidden_cond.getColumn(0,"snglcalcscorcd")+"'");
  868. ds_main_list2_toothapplist.setColumn(frow, "chos", "true");
  869. ds_main_list2_toothapplist.rowposition = frow;
  870. // ds_main_list2_toothapplist.clearSelect();
  871. // ds_main_list2_toothapplist.selectRow(frow);
  872. }
  873. var toothlistcnt = ds_main_list1_toothlist.rowcount;
  874. if (toothlistcnt > 0 ) {
  875. var milktoothstr = "ABCDE000";
  876. for (var i=0; i<ds_main_list1_toothlist.rowcount; i++) {
  877. var toot = ds_main_list1_toothlist.getColumn(i, "toot");
  878. // if( toot.substring(0, 1) == "#" && toot.substring(1, 2) != "0") {
  879. // toot = lf_setToothFormat(toot);
  880. // }
  881. var subTootStr = "";
  882. for (var inx=0; inx<toot.length; inx++) {
  883. var tootnum = toot.substr(inx,1);
  884. if (tootnum == "*"||tootnum == "!") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
  885. if (inx < 8) {
  886. subTootStr += (8 - inx);
  887. }
  888. else if (inx > 7 && inx < 16) {
  889. subTootStr += (inx - 7);
  890. }
  891. else if (inx > 15 && inx < 24) {
  892. subTootStr += (24 - inx);
  893. } else {
  894. subTootStr += (inx - 23);
  895. }
  896. } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
  897. if (inx < 8) {
  898. subTootStr += milktoothstr.charAt(7 - inx);
  899. }
  900. else if (inx > 7 && inx < 16) {
  901. subTootStr += milktoothstr.charAt(inx - 8);
  902. }
  903. else if (inx > 15 && inx < 24) {
  904. subTootStr += milktoothstr.charAt(23 - inx);
  905. } else {
  906. subTootStr += milktoothstr.charAt(inx - 24);
  907. }
  908. } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
  909. subTootStr += " ";
  910. }
  911. }
  912. ds_main_list1_toothlist.setColumn(i, "rightupper", subTootStr.substr(0, 8));
  913. ds_main_list1_toothlist.setColumn(i, "leftupper", subTootStr.substr(8, 8));
  914. ds_main_list1_toothlist.setColumn(i, "rightlower", subTootStr.substr(16, 8));
  915. ds_main_list1_toothlist.setColumn(i, "leftlower", subTootStr.substr(24, 8));
  916. }
  917. }
  918. var toothapplistcnt = ds_main_list2_toothapplist.rowcount;
  919. if (toothapplistcnt > 0 ) {
  920. var milktoothstr = "ABCDE000";
  921. for (var i=0; i<ds_main_list2_toothapplist.rowcount; i++) {
  922. var toot = ds_main_list2_toothapplist.getColumn(i, "toot");
  923. // if( toot.substring(1, 2) != "0") {
  924. // toot = lf_setToothFormat(toot);
  925. // }
  926. var subTootStr = "";
  927. for (var inx=0; inx<toot.length; inx++) {
  928. var tootnum = toot.substr(inx,1);
  929. if (tootnum == "*"||tootnum == "!") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
  930. if (inx < 8) {
  931. subTootStr += (8 - inx);
  932. }
  933. else if (inx > 7 && inx < 16) {
  934. subTootStr += (inx - 7);
  935. }
  936. else if (inx > 15 && inx < 24) {
  937. subTootStr += (24 - inx);
  938. } else {
  939. subTootStr += (inx - 23);
  940. }
  941. } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
  942. if (inx < 8) {
  943. subTootStr += milktoothstr.charAt(7 - inx);
  944. }
  945. else if (inx > 7 && inx < 16) {
  946. subTootStr += milktoothstr.charAt(inx - 8);
  947. }
  948. else if (inx > 15 && inx < 24) {
  949. subTootStr += milktoothstr.charAt(23 - inx);
  950. } else {
  951. subTootStr += milktoothstr.charAt(inx - 24);
  952. }
  953. } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
  954. subTootStr += " ";
  955. }
  956. }
  957. ds_main_list2_toothapplist.setColumn(i, "rightupper", subTootStr.substr(0, 8));
  958. ds_main_list2_toothapplist.setColumn(i, "leftupper", subTootStr.substr(8, 8));
  959. ds_main_list2_toothapplist.setColumn(i, "rightlower", subTootStr.substr(16, 8));
  960. ds_main_list2_toothapplist.setColumn(i, "leftlower", subTootStr.substr(24, 8));
  961. }
  962. } else {
  963. }
  964. }
  965. var findrow = ds_main_list2_toothapplist.findRowExpr("chos=='true'");
  966. if (findrow > -1) {
  967. var sel_toot = ds_main_list2_toothapplist.getColumn(findrow, "toot");
  968. fSetToothInput(sel_toot); // 입력된 치식 번호를 img에 맞춰 표시한다.
  969. }
  970. ds_main_list1_toothlist.updatecontrol = true;
  971. ds_main_list2_toothapplist.updatecontrol = true;
  972. }
  973. // 입력된 치식 번호를 img에 맞춰 표시한다.
  974. function fSetToothInput(openerteeth)
  975. {
  976. if (!utlf_isNull(openerteeth)) {
  977. // 치식 해당사항 없음의 경우임
  978. if (openerteeth == "-" || openerteeth.length != 32) {
  979. for (var i = 0; i < 32; i++) {
  980. teethArray[i] = "0";
  981. var btnInx = i + 1;
  982. var btnObj = "buttonC"+btnInx;
  983. var rtn = isValidObject(btnObj);
  984. if (rtn) {
  985. lf_imgchange(btnObj, "off");
  986. }
  987. btnObj = "buttonA"+btnInx;
  988. rtn = isValidObject(btnObj);
  989. if (rtn) {
  990. lf_imgchange(btnObj, "off");
  991. }
  992. }
  993. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightupper", "00000000");
  994. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftupper", "00000000");
  995. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightlower", "00000000");
  996. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftlower", "00000000");
  997. return;
  998. }
  999. // 치식이 있는 경우
  1000. for (var i = 0; i < openerteeth.length; i++) {
  1001. var subStr = openerteeth.substr(i, 1);
  1002. teethArray[i] = subStr;
  1003. var btnInx = i + 1;
  1004. if (subStr == "#") { // 유치에 대한 선택을 초기 설정한다.
  1005. var btnObj = "buttonC"+btnInx;
  1006. var rtn = isValidObject(btnObj);
  1007. if (rtn) {
  1008. lf_imgchange(btnObj, "on");
  1009. }
  1010. btnObj = "buttonA"+btnInx;
  1011. rtn = isValidObject(btnObj);
  1012. if (rtn) {
  1013. lf_imgchange(btnObj, "off");
  1014. }
  1015. } else if (subStr == "*"||subStr == "!") { // 영구치에 대한 선택을 초기 설정한다.
  1016. var btnObj = "buttonC"+btnInx;
  1017. var rtn = isValidObject(btnObj);
  1018. if (rtn) {
  1019. lf_imgchange(btnObj, "off");
  1020. }
  1021. btnObj = "buttonA"+btnInx;
  1022. rtn = isValidObject(btnObj);
  1023. if (rtn) {
  1024. lf_imgchange(btnObj, "on");
  1025. }
  1026. } else {
  1027. var btnObj = "buttonC"+btnInx;
  1028. var rtn = isValidObject(btnObj);
  1029. if (rtn) {
  1030. lf_imgchange(btnObj, "off");
  1031. }
  1032. btnObj = "buttonA"+btnInx;
  1033. rtn = isValidObject(btnObj);
  1034. if (rtn) {
  1035. lf_imgchange(btnObj, "off");
  1036. }
  1037. }
  1038. }
  1039. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1040. } else { // opener에서 전달받은 치식 값이 null 인 경우
  1041. for (var i = 0; i < 32; i++) {
  1042. teethArray[i] = "0";
  1043. var btnInx = i + 1;
  1044. var btnObj = "buttonC"+btnInx;
  1045. var rtn = isValidObject(btnObj);
  1046. if (rtn) {
  1047. lf_imgchange(btnObj, "off");
  1048. }
  1049. btnObj = "buttonA"+btnInx;
  1050. rtn = isValidObject(btnObj);
  1051. if (rtn) {
  1052. lf_imgchange(btnObj, "off");
  1053. }
  1054. }
  1055. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightupper", "00000000");
  1056. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftupper", "00000000");
  1057. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightlower", "00000000");
  1058. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftlower", "00000000");
  1059. }
  1060. }
  1061. // 치아 버튼
  1062. function fSelectTooth(selchar, delchar, objnm)
  1063. {
  1064. var btnObject = eval(objnm);
  1065. var btnInx = parseInt(btnObject.name.substr(7));
  1066. btnInx--;
  1067. var teethVal = teethArray[btnInx];
  1068. teethVal = teethVal.replace("!","*");
  1069. if (teethVal == "0") { // 선택되지 않은 상태였음
  1070. lf_imgchange(objnm, "on"); //btnObj.enable = true;
  1071. teethArray[btnInx] = selchar;
  1072. } else if (teethVal == selchar) { // 기존에 동일한 치아가 선택되어 있어, 선택을 취소하는 경우임
  1073. lf_imgchange(objnm, "off"); //btnObj.enable = false;
  1074. teethArray[btnInx] = "0";
  1075. } else if (teethVal == delchar) { // 치식번호가 동일한 영구치(유치)가 선택된 경우, 기존 선택을 취소하고 설정한다.
  1076. lf_imgchange(objnm, "on"); //btnObj.enable = true;
  1077. teethArray[btnInx++] = selchar;
  1078. if (delchar == "*") {
  1079. var btnObj = eval("buttonA" + btnInx);
  1080. lf_imgchange(btnObj.name, "off"); //btnObj.enable = false;
  1081. } else if (delchar == "#") {
  1082. var btnObj = eval("buttonC" + btnInx);
  1083. lf_imgchange(btnObj.name, "off"); //btnObj.enable = false;
  1084. }
  1085. }
  1086. ds_hidden_chkflag_scndtooth.setColumn(0, "rightupperA", "");
  1087. ds_hidden_chkflag_scndtooth.setColumn(0, "leftupperA", "");
  1088. ds_hidden_chkflag_scndtooth.setColumn(0, "rightlowerA", "");
  1089. ds_hidden_chkflag_scndtooth.setColumn(0, "leftlowerA", "");
  1090. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA1", "");
  1091. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA2", "");
  1092. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA3", "");
  1093. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA4", "");
  1094. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA5", "");
  1095. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA6", "");
  1096. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1097. }
  1098. // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1099. function fSetTootCd()
  1100. {
  1101. var milktoothstr = "ABCDE000";
  1102. var subTootStr = "";
  1103. var tmpStr = "";
  1104. for (var i = 0; i < 32; i++) {
  1105. tmpStr += teethArray[i];
  1106. if (teethArray[i] == "*"||teethArray[i] == "!") {
  1107. if (i < 8) {
  1108. subTootStr += (8 - i);
  1109. }
  1110. else if (i > 7 && i < 16) {
  1111. subTootStr += (i - 7);
  1112. }
  1113. else if (i > 15 && i < 24) {
  1114. subTootStr += (24 - i);
  1115. } else {
  1116. subTootStr += (i - 23);
  1117. }
  1118. } else if (teethArray[i] == "#") {
  1119. if (i < 8) {
  1120. subTootStr += milktoothstr.charAt(7 - i);
  1121. }
  1122. else if (i > 7 && i < 16) {
  1123. subTootStr += milktoothstr.charAt(i - 8);
  1124. }
  1125. else if (i > 15 && i < 24) {
  1126. subTootStr += milktoothstr.charAt(23 - i);
  1127. } else {
  1128. subTootStr += milktoothstr.charAt(i - 24);
  1129. }
  1130. } else {
  1131. subTootStr += " ";
  1132. }
  1133. }
  1134. // 명세서에 표시되는 EDI청구용 치식 표기를 설정한다.
  1135. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightupper", tmpStr.substr(0, 8));
  1136. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftupper", tmpStr.substr(8, 8));
  1137. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightlower", tmpStr.substr(16, 8));
  1138. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftlower", tmpStr.substr(24, 8));
  1139. // 현재 치식 입력화면에서 보여지는 번호를 표시한다.
  1140. ds_hidden_selectedtooth_selectednum.setColumn(0, "rightupper", subTootStr.substr(0, 8));
  1141. ds_hidden_selectedtooth_selectednum.setColumn(0, "leftupper", subTootStr.substr(8, 8));
  1142. ds_hidden_selectedtooth_selectednum.setColumn(0, "rightlower", subTootStr.substr(16, 8));
  1143. ds_hidden_selectedtooth_selectednum.setColumn(0, "leftlower", subTootStr.substr(24, 8));
  1144. }
  1145. // "전체취소" Btn
  1146. function fUnSelectAllTooth()
  1147. {
  1148. ds_hidden_chkflag_scndtooth.clearData();
  1149. ds_hidden_chkflag_scndtooth.addRow();
  1150. ds_hidden_chkflag_milktooth.clearData();
  1151. ds_hidden_chkflag_milktooth.addRow();
  1152. ds_hidden_selectedtooth_editoothnum.clearData();
  1153. ds_hidden_selectedtooth_editoothnum.addRow();
  1154. ds_hidden_selectedtooth_selectednum.clearData();
  1155. ds_hidden_selectedtooth_selectednum.addRow();
  1156. for (var i = 0; i < 32; i++) {
  1157. var btnInx = i + 1;
  1158. var btnObj = "buttonC"+btnInx; // 유치에 대한 선택을 초기화 한다.
  1159. var rtn = isValidObject(btnObj);
  1160. if (rtn) {
  1161. lf_imgchange(btnObj, "off");
  1162. }
  1163. btnObj = "buttonA"+btnInx; // 영구치에 대한 선택을 초기화 한다.
  1164. var rtn = isValidObject(btnObj);
  1165. if (rtn) {
  1166. lf_imgchange(btnObj, "off");
  1167. }
  1168. teethArray[i] = "0";
  1169. }
  1170. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightupper", "00000000");
  1171. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftupper", "00000000");
  1172. ds_hidden_selectedtooth_editoothnum.setColumn(0, "rightlower", "00000000");
  1173. ds_hidden_selectedtooth_editoothnum.setColumn(0, "leftlower", "00000000");
  1174. }
  1175. // "전악 (영구치)" Btn
  1176. function fSelectAllScndTooth()
  1177. {
  1178. ds_hidden_chkflag_milktooth.clearData();
  1179. ds_hidden_chkflag_milktooth.addRow();
  1180. ds_hidden_chkflag_scndtooth.clearData();
  1181. ds_hidden_chkflag_scndtooth.addRow();
  1182. ds_hidden_chkflag_scndtooth.setColumn(0, "rightupperA", "Y");
  1183. ds_hidden_chkflag_scndtooth.setColumn(0, "leftupperA", "Y");
  1184. ds_hidden_chkflag_scndtooth.setColumn(0, "rightlowerA", "Y");
  1185. ds_hidden_chkflag_scndtooth.setColumn(0, "leftlowerA", "Y");
  1186. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA1", "Y");
  1187. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA2", "Y");
  1188. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA3", "Y");
  1189. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA4", "Y");
  1190. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA5", "Y");
  1191. ds_hidden_chkflag_scndtooth.setColumn(0, "trisectionA6", "Y");
  1192. for (var i = 0; i < 32; i++) {
  1193. var btnInx = i + 1;
  1194. // 유치에 대한 선택을 초기화 한다.
  1195. var btnObj = "buttonC"+btnInx;
  1196. var rtn = isValidObject(btnObj);
  1197. if (rtn) {
  1198. lf_imgchange(btnObj, "off");
  1199. }
  1200. // 영구치에 대한 선택을 설정한다.
  1201. btnObj = "buttonA"+btnInx;
  1202. var rtn = isValidObject(btnObj);
  1203. if (rtn) {
  1204. lf_imgchange(btnObj, "on");
  1205. }
  1206. teethArray[i] = "*";
  1207. }
  1208. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1209. }
  1210. // "전악 (유치)" Btn
  1211. function fSelectAllMilkTooth()
  1212. {
  1213. ds_hidden_chkflag_scndtooth.clearData();
  1214. ds_hidden_chkflag_scndtooth.addRow();
  1215. ds_hidden_chkflag_milktooth.clearData();
  1216. ds_hidden_chkflag_milktooth.addRow();
  1217. ds_hidden_chkflag_milktooth.setColumn(0, "rightupperC", "Y");
  1218. ds_hidden_chkflag_milktooth.setColumn(0, "leftupperC", "Y");
  1219. ds_hidden_chkflag_milktooth.setColumn(0, "rightlowerC", "Y");
  1220. ds_hidden_chkflag_milktooth.setColumn(0, "leftlowerC", "Y");
  1221. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC1", "Y");
  1222. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC2", "Y");
  1223. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC3", "Y");
  1224. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC4", "Y");
  1225. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC5", "Y");
  1226. ds_hidden_chkflag_milktooth.setColumn(0, "trisectionC6", "Y");
  1227. for (var i = 0; i < 32; i++) {
  1228. var btnInx = i + 1;
  1229. // 영구치에 대한 선택을 초기화 한다.
  1230. var btnObj = "buttonA"+btnInx;
  1231. var rtn = isValidObject(btnObj);
  1232. if (rtn) {
  1233. lf_imgchange(btnObj, "off");
  1234. }
  1235. // 유치에 대한 선택을 설정한다.
  1236. btnObj = "buttonC"+btnInx;
  1237. var rtn = isValidObject(btnObj);
  1238. if (rtn) {
  1239. lf_imgchange(btnObj, "on");
  1240. teethArray[i] = "#";
  1241. } else {
  1242. teethArray[i] = "0";
  1243. }
  1244. }
  1245. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1246. }
  1247. // 지정된 영역의 영구치를 선택한다.
  1248. function fSelectToothGroupA(objnm, from, to)
  1249. {
  1250. var isSelected = ds_hidden_chkflag_scndtooth.getColumn(0, objnm);
  1251. if (isSelected != "Y") {
  1252. ds_hidden_chkflag_scndtooth.setColumn(0, objnm, "Y");
  1253. } else {
  1254. ds_hidden_chkflag_scndtooth.setColumn(0, objnm, "");
  1255. }
  1256. for (var i = from; i < to; i++) {
  1257. var btnInx = i + 1;
  1258. // 유치에 대한 선택을 초기화 한다.
  1259. var btnObj = "buttonC"+btnInx;
  1260. var rtn = isValidObject(btnObj);
  1261. if (rtn) {
  1262. lf_imgchange(btnObj, "off");
  1263. }
  1264. // 영구치에 대한 선택을 설정한다.
  1265. btnObj = "buttonA"+btnInx;
  1266. rtn = isValidObject(btnObj);
  1267. if (rtn) {
  1268. if (isSelected != "Y") {
  1269. var onoff = lf_imgchange(btnObj, "on");
  1270. } else {
  1271. var onoff = lf_imgchange(btnObj, "off");
  1272. }
  1273. if (onoff == "on") {
  1274. teethArray[i] = "*";
  1275. } else {
  1276. teethArray[i] = "0";
  1277. }
  1278. }
  1279. }
  1280. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1281. }
  1282. // 지정된 영역의 유치를 선택한다.
  1283. function fSelectToothGroupC(objnm, from, to)
  1284. {
  1285. var isSelected = ds_hidden_chkflag_milktooth.getColumn(0, objnm);
  1286. if (isSelected != "Y") {
  1287. ds_hidden_chkflag_milktooth.setColumn(0, objnm, "Y");
  1288. } else {
  1289. ds_hidden_chkflag_milktooth.setColumn(0, objnm, "");
  1290. }
  1291. for (var i = from; i < to; i++) {
  1292. var btnInx = i + 1;
  1293. // 영구치에 대한 선택을 초기화 한다.
  1294. var btnObj = "buttonA"+btnInx;
  1295. var rtn = isValidObject(btnObj);
  1296. if (rtn) {
  1297. lf_imgchange(btnObj, "off");
  1298. }
  1299. // 유치에 대한 선택을 설정한다.
  1300. btnObj = "buttonC"+btnInx;
  1301. rtn = isValidObject(btnObj);
  1302. if (rtn) {
  1303. if (isSelected != "Y") {
  1304. var onoff = lf_imgchange(btnObj, "on");
  1305. } else {
  1306. var onoff = lf_imgchange(btnObj, "off");
  1307. }
  1308. if (onoff == "on") {
  1309. teethArray[i] = "#";
  1310. } else {
  1311. teethArray[i] = "0";
  1312. }
  1313. }
  1314. }
  1315. fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
  1316. }
  1317. function SPPIZ00600_onload(obj:Form, e:LoadEventInfo)
  1318. {
  1319. frmf_initForm(obj); // 폼 초기화 함수
  1320. try {
  1321. ds_hidden_cond.clearData();
  1322. ds_hidden_cond.appendData(objDs, true, true);
  1323. ds_hidden_cond_list.clearData();
  1324. ds_hidden_cond_list.appendData(objDs2, true, true);
  1325. ds_main_list2_toothapplist.appendData(ds_hidden_cond_list, true, true);
  1326. } catch(e) {
  1327. }
  1328. lf_init_img(); // 버튼 이미지 초기화
  1329. btn_unselect.click();
  1330. fInitialize(); // 화면을 초기화한다.
  1331. }
  1332. function grd_toothapplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1333. {
  1334. if (ds_main_list2_toothapplist.rowcount > 0) {
  1335. if (e.col != grd_toothapplist.getBindCellIndex("body", "chos")) { // 선택이 아닐때
  1336. var openerteeth = ds_main_list2_toothapplist.getColumn(ds_main_list2_toothapplist.rowposition, "toot");
  1337. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  1338. }
  1339. }
  1340. }
  1341. function grd_toothlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1342. {
  1343. var openerteeth = ds_main_list1_toothlist.getColumn(ds_main_list1_toothlist.rowposition, "toot");
  1344. if (ds_main_list1_toothlist.rowposition > -1) {
  1345. fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
  1346. }
  1347. }
  1348. function btn_trans_onclick(obj:Button, e:ClickEventInfo)
  1349. {
  1350. var rows = ds_main_list2_toothapplist.rowcount;
  1351. // EDI표기
  1352. var tooth = ds_hidden_selectedtooth_editoothnum.getColumn(0, "rightupper")
  1353. + ds_hidden_selectedtooth_editoothnum.getColumn(0, "leftupper")
  1354. + ds_hidden_selectedtooth_editoothnum.getColumn(0, "rightlower")
  1355. + ds_hidden_selectedtooth_editoothnum.getColumn(0, "leftlower");
  1356. var rightupper = ds_hidden_selectedtooth_selectednum.getColumn(0, "rightupper");
  1357. var leftupper = ds_hidden_selectedtooth_selectednum.getColumn(0, "leftupper");
  1358. var rightlower = ds_hidden_selectedtooth_selectednum.getColumn(0, "rightlower");
  1359. var leftlower = ds_hidden_selectedtooth_selectednum.getColumn(0, "leftlower");
  1360. var chos ="";
  1361. if (CheckBox00.value == "Y"){
  1362. tooth = tooth.replace("*","!")
  1363. } else {
  1364. tooth = tooth.replace("!","*")
  1365. }
  1366. for (var i=0; i<rows; i++) {
  1367. chos = ds_main_list2_toothapplist.getColumn(i, "chos");
  1368. if (chos == "true" || chos=="1") {
  1369. ds_main_list2_toothapplist.setColumn(i, "rightupper", rightupper);
  1370. ds_main_list2_toothapplist.setColumn(i, "leftupper", leftupper);
  1371. ds_main_list2_toothapplist.setColumn(i, "rightlower", rightlower);
  1372. ds_main_list2_toothapplist.setColumn(i, "leftlower", leftlower);
  1373. ds_main_list2_toothapplist.setColumn(i, "toot", tooth);
  1374. }
  1375. }
  1376. }
  1377. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  1378. {
  1379. var rows = ds_main_list2_toothapplist.rowcount;
  1380. for (var i=0; i<rows; i++) {
  1381. chos = ds_main_list2_toothapplist.getColumn(i, "chos");
  1382. if (chos == "true" || chos == "1") {
  1383. ds_main_list2_toothapplist.setColumn(i, "rightupper", "");
  1384. ds_main_list2_toothapplist.setColumn(i, "leftupper", "");
  1385. ds_main_list2_toothapplist.setColumn(i, "rightlower", "");
  1386. ds_main_list2_toothapplist.setColumn(i, "leftlower", "");
  1387. ds_main_list2_toothapplist.setColumn(i, "toot", "");
  1388. }
  1389. }
  1390. }
  1391. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  1392. {
  1393. if (frmf_checkOpener()) {
  1394. var rows = ds_main_list2_toothapplist.rowcount;
  1395. var chos = "";
  1396. var flag = "";
  1397. var chos = "";
  1398. var row = "";
  1399. var toot = "";
  1400. var toot1 = "";
  1401. var cd = "";
  1402. var prcflag = ds_hidden_cond.getColumn(0, "flag");
  1403. if (prcflag == "AID") {
  1404. dsf_setDefaultVal(ds_main_list2_toothapplist, "toot:-");
  1405. var oParam = {};
  1406. oParam.id = "TXPIZ00601";
  1407. oParam.service = "insucomapp.DiagOrderTooth";
  1408. oParam.method = "reqSetIsclTootFact";
  1409. oParam.inds = "req=ds_main_list2_toothapplist:U";
  1410. oParam.async = false;
  1411. //oParam.callback = "cf_TXPIZ00601";
  1412. tranf_submit(oParam);
  1413. }
  1414. for (var i=0; i < rows; i++) {
  1415. chos = ds_main_list2_toothapplist.getColumn(i, "chos");
  1416. row = ds_main_list2_toothapplist.getColumn(i, "row");
  1417. flag = ds_main_list2_toothapplist.getColumn(i, "flag");
  1418. toot = ds_main_list2_toothapplist.getColumn(i, "toot");
  1419. cd = ds_main_list2_toothapplist.getColumn(i, "cd");
  1420. // 의사입력방식으로 교체(우상-좌상-좌하-우하)
  1421. if (toot.length == 32 && toot != "00000000000000000000000000000000") {
  1422. var str1 = toot.substr(0,8);
  1423. var str2 = toot.substr(8,8);
  1424. var str4 = toot.substr(16,8);
  1425. var str3 = toot.substr(24,8);
  1426. var subTootStr = "";
  1427. // 우상(1)
  1428. for (var idx1 = 0; idx1 < 8; idx1++) {
  1429. var tootnum = str1.substr(idx1,1);
  1430. var point = 0;
  1431. if (tootnum == "*") {
  1432. point = 8 - idx1;
  1433. if (subTootStr != "") subTootStr += ",1" + point;
  1434. else subTootStr = "1" + point;
  1435. } else if (tootnum == "#") {
  1436. point = 5 - idx1 + 3;
  1437. if (subTootStr != "") subTootStr += ",5" + point;
  1438. else subTootStr = "5" + point;
  1439. } else if (tootnum == "!") {
  1440. point = 8 - idx1;
  1441. if (subTootStr != "") subTootStr += ",1" + point + "!";
  1442. else subTootStr = "1" + point + "!";
  1443. }
  1444. }
  1445. // 좌상(2)
  1446. for (var idx2 = 0; idx2 < 8; idx2++) {
  1447. var tootnum = str2.substr(idx2,1);
  1448. var point = 0;
  1449. if (tootnum == "*") {
  1450. point = idx2 + 1;
  1451. if (subTootStr != "") subTootStr += ",2" + point;
  1452. else subTootStr = "2" + point;
  1453. } else if (tootnum == "#") {
  1454. point = idx2 + 1;
  1455. if (subTootStr != "") subTootStr += ",6" + point;
  1456. else subTootStr = "6" + point;
  1457. } else if (tootnum == "!") {
  1458. point = idx2 + 1;
  1459. if (subTootStr != "") subTootStr += ",2" + point + "!";
  1460. else subTootStr = "2" + point + "!";
  1461. }
  1462. }
  1463. // 우하(4)
  1464. for (var idx4 = 0; idx4 < 8; idx4++) {
  1465. var tootnum = str4.substr(idx4,1);
  1466. var point = 0;
  1467. if (tootnum == "*") {
  1468. point = 8 - idx4;
  1469. if (subTootStr != "") subTootStr += ",4" + point;
  1470. else subTootStr = "4" + point;
  1471. } else if (tootnum == "#") {
  1472. point = 5 - idx4 + 3;
  1473. if (subTootStr != "") subTootStr += ",8" + point;
  1474. else subTootStr = "8" + point;
  1475. } else if (tootnum == "!") {
  1476. point = 8 - idx4;
  1477. if (subTootStr != "") subTootStr += ",4" + point + "!";
  1478. else subTootStr = "4" + point + "!";
  1479. }
  1480. }
  1481. // 좌하(3)
  1482. for (var idx3 = 0; idx3 < 8; idx3++) {
  1483. var tootnum = str3.substr(idx3,1);
  1484. var point = 0;
  1485. if (tootnum == "*") {
  1486. point = idx3 + 1;
  1487. if (subTootStr != "") subTootStr += ",3" + point;
  1488. else subTootStr = "3" + point;
  1489. } else if (tootnum == "#") {
  1490. point = idx3 + 1;
  1491. if (subTootStr != "") subTootStr += ",7" + point;
  1492. else subTootStr = "7" + point;
  1493. } else if (tootnum == "!") {
  1494. point = idx3 + 1;
  1495. if (subTootStr != "") subTootStr += ",3" + point + "!";
  1496. else subTootStr = "3" + point + "!";
  1497. }
  1498. }
  1499. if (subTootStr == "") toot1 = "-";
  1500. else toot1 = subTootStr;
  1501. } else {
  1502. toot1 = "-";
  1503. }
  1504. // 사전 재원심사 상병
  1505. if (prcflag == "AID") {
  1506. if (flag == "상병") {
  1507. ds_hidden_rslt_list.setColumn(i, "flag", "1");
  1508. } else if (flag == "처방") {
  1509. ds_hidden_rslt_list.setColumn(i, "flag", "2");
  1510. }
  1511. if (toot == "" || toot == "00000000000000000000000000000000") {
  1512. toot = "-";
  1513. }
  1514. ds_hidden_rslt_list.setColumn(i, "toot", toot);
  1515. ds_hidden_rslt_list.setColumn(i, "toot1", toot1);
  1516. ds_hidden_rslt_list.setColumn(i, "row", row);
  1517. ds_hidden_rslt_list.setColumn(i, "cd", cd);
  1518. ds_hidden_rslt_list.setColumn(i, "toothYN", "Y");
  1519. ds_hidden_rslt_list.addRow();
  1520. } else {
  1521. if (flag == "상병") {
  1522. ds_hidden_rslt_list.setColumn(i, "flag", "1");
  1523. } else if (flag == "처방") {
  1524. ds_hidden_rslt_list.setColumn(i, "flag", "2");
  1525. }
  1526. if (utlf_isNull(toot) || toot == "00000000000000000000000000000000") {
  1527. toot = "-";
  1528. }
  1529. ds_hidden_rslt_list.setColumn(i, "toot", toot);
  1530. ds_hidden_rslt_list.setColumn(i, "toot1", toot1);
  1531. ds_hidden_rslt_list.setColumn(i, "row", row);
  1532. ds_hidden_rslt_list.setColumn(i, "cd", cd);
  1533. ds_hidden_rslt_list.setColumn(i, "toothYN", "Y");
  1534. ds_hidden_rslt_list.addRow();
  1535. }
  1536. }
  1537. opener.ds_rslt_sppiz00600.copyData(ds_hidden_rslt_list);
  1538. } else {
  1539. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004");
  1540. }
  1541. this.close();
  1542. }
  1543. // 닫기
  1544. function Button00_onclick(obj:Button, e:ClickEventInfo)
  1545. {
  1546. this.close();
  1547. }
  1548. // 버튼 클릭
  1549. function lf_btnclick(obj, e)
  1550. {
  1551. // 1/3 (영구치)
  1552. if (obj.name == "trisectionA1") {
  1553. fSelectToothGroupA("trisectionA1", 0, 5); // 지정된 영역의 영구치를 선택한다.
  1554. } else if (obj.name == "trisectionA2") {
  1555. fSelectToothGroupA("trisectionA2", 5, 11); // 지정된 영역의 영구치를 선택한다.
  1556. } else if (obj.name == "trisectionA3") {
  1557. fSelectToothGroupA("trisectionA3", 11, 16); // 지정된 영역의 영구치를 선택한다.
  1558. } else if (obj.name == "trisectionA4") {
  1559. fSelectToothGroupA("trisectionA4", 16, 21); // 지정된 영역의 영구치를 선택한다.
  1560. } else if (obj.name == "trisectionA5") {
  1561. fSelectToothGroupA("trisectionA5", 21, 27); // 지정된 영역의 영구치를 선택한다.
  1562. } else if (obj.name == "trisectionA6") {
  1563. fSelectToothGroupA("trisectionA6", 27, 32); // 지정된 영역의 영구치를 선택한다.
  1564. // 1/3 (유치)
  1565. } else if (obj.name == "trisectionC1") {
  1566. fSelectToothGroupC("trisectionC1", 0, 5); // 지정된 영역의 유치를 선택한다.
  1567. } else if (obj.name == "trisectionC2") {
  1568. fSelectToothGroupC("trisectionC2", 5, 11); // 지정된 영역의 유치를 선택한다.
  1569. } else if (obj.name == "trisectionC3") {
  1570. fSelectToothGroupC("trisectionC3", 11, 16); // 지정된 영역의 유치를 선택한다.
  1571. } else if (obj.name == "trisectionC4") {
  1572. fSelectToothGroupC("trisectionC4", 16, 21); // 지정된 영역의 유치를 선택한다.
  1573. } else if (obj.name == "trisectionC5") {
  1574. fSelectToothGroupC("trisectionC5", 21, 27); // 지정된 영역의 유치를 선택한다.
  1575. } else if (obj.name == "trisectionC6") {
  1576. fSelectToothGroupC("trisectionC6", 27, 32); // 지정된 영역의 유치를 선택한다.
  1577. // 우상유치
  1578. } else if (obj.name == "rightupperC") {
  1579. fSelectToothGroupC("rightupperC", 0, 8); // 지정된 영역의 유치를 선택한다.
  1580. // 우하유치
  1581. } else if (obj.name == "rightlowerC") {
  1582. fSelectToothGroupC("rightlowerC", 16, 24); // 지정된 영역의 유치를 선택한다.
  1583. // 좌상유치
  1584. } else if (obj.name == "leftupperC") {
  1585. fSelectToothGroupC("leftupperC", 8, 16); // 지정된 영역의 유치를 선택한다.
  1586. // 좌하유치
  1587. } else if (obj.name == "leftlowerC") {
  1588. fSelectToothGroupC("leftlowerC", 24, 32); // 지정된 영역의 유치를 선택한다.
  1589. // 우상
  1590. } else if (obj.name == "rightupperA") {
  1591. fSelectToothGroupA("rightupperA", 0, 8); // 지정된 영역의 유치를 선택한다.
  1592. // 우하
  1593. } else if (obj.name == "rightlowerA") {
  1594. fSelectToothGroupA("rightlowerA", 16, 24); // 지정된 영역의 유치를 선택한다.
  1595. // 좌상
  1596. } else if (obj.name == "leftupperA") {
  1597. fSelectToothGroupA("leftupperA", 8, 16); // 지정된 영역의 유치를 선택한다.
  1598. // 좌하
  1599. } else if (obj.name == "leftlowerA") {
  1600. fSelectToothGroupA("leftlowerA", 24, 32); // 지정된 영역의 유치를 선택한다.
  1601. }
  1602. }
  1603. // 치아 버튼 클릭
  1604. function lf_tootbtnclick(obj, e)
  1605. {
  1606. // 영구치
  1607. if (obj.name.substr(0, 7) == "buttonA") {
  1608. fSelectTooth("*", "#", obj.name );
  1609. }
  1610. // 유치
  1611. if (obj.name.substr(0, 7) == "buttonC") {
  1612. fSelectTooth("#", "*", obj.name );
  1613. }
  1614. }
  1615. // 클릭시 이미지 변경
  1616. function lf_imgchange(objnm, flag)
  1617. {
  1618. var rtn = "";
  1619. var obj = eval(objnm);
  1620. var fRow = ds_btn_img.findRow("btnnm", objnm); // 버튼명으로 이미지 ds 의 row 찾기
  1621. // 버튼의 이미지 경로에서 현재 적용된 이미지파일명 읽어서 스위칭(on/off)
  1622. var imgnm = String(obj.style.image).substr(34).split(".", 1);
  1623. var idxoff = String(imgnm).indexOf("off");
  1624. if (utlf_isNull(flag)) {
  1625. if (idxoff == -1) { // on 일 경우(파일명이 off 가 아닐때) off 파일로 변경
  1626. obj.style.image = "URL('" + imgpath + ds_btn_img.getColumn(fRow, "btnoff") + ".gif" + "')";
  1627. rtn = "off";
  1628. } else {
  1629. obj.style.image = "URL('" + imgpath + ds_btn_img.getColumn(fRow, "btnon") + ".gif" + "')";
  1630. rtn = "on";
  1631. }
  1632. } else {
  1633. if (flag == "on") {
  1634. obj.style.image = "URL('" + imgpath + ds_btn_img.getColumn(fRow, "btnon") + ".gif" + "')";
  1635. rtn = "on";
  1636. } else if (flag == "off") {
  1637. obj.style.image = "URL('" + imgpath + ds_btn_img.getColumn(fRow, "btnoff") + ".gif" + "')";
  1638. rtn = "off";
  1639. }
  1640. }
  1641. return rtn;
  1642. }
  1643. // 버튼 이미지 초기화
  1644. function lf_init_img()
  1645. {
  1646. for (var i=0; i<ds_btn_img.rowcount; i++) {
  1647. var obj = eval(ds_btn_img.getColumn(i, "btnnm"));
  1648. obj.style.image = "URL('" + imgpath + ds_btn_img.getColumn(i, "btnon") + ".gif" + "')";
  1649. }
  1650. }
  1651. // 취소
  1652. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  1653. {
  1654. this.close();
  1655. }
  1656. // 기간
  1657. function rdo_refterm_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1658. {
  1659. fInitialize();
  1660. }
  1661. // 전체취소
  1662. function btn_unselect_onclick(obj:Button, e:ClickEventInfo)
  1663. {
  1664. fUnSelectAllTooth();
  1665. }
  1666. // 전악(영구치)
  1667. function btn_allscndtooth_onclick(obj:Button, e:ClickEventInfo)
  1668. {
  1669. fSelectAllScndTooth();
  1670. }
  1671. // 전악(유치)
  1672. function btn_allmilktooth_onclick(obj:Button, e:ClickEventInfo)
  1673. {
  1674. fSelectAllMilkTooth();
  1675. }
  1676. // 2015.07.06
  1677. // 사전심사 상병 EDI방식 아닌 진료치식 #21,#22 그대로 넘어오기 때문에 변환필요
  1678. // 사전심사 처방은 21,22 형태로 넘어옴
  1679. function lf_setToothFormat(toot) {
  1680. if( toot.substring(1, 2) != "0" ) {
  1681. var toot_arr = new Array(33); // 0번 삭제하기 때문
  1682. if( toot.substring(0, 1) == "#" ) {
  1683. toot_arr = toot.split("#");
  1684. var rtn_toot = "";
  1685. ds_temp_toot.clearData();
  1686. ds_temp_toot.addRow();
  1687. for(var i = 1 ; i < toot_arr.length ; i++) {
  1688. switch(toot_arr[i]) {
  1689. case "18": ds_temp_toot.setColumn(0, "t18", "1"); break;
  1690. case "17": ds_temp_toot.setColumn(0, "t17", "1"); break;
  1691. case "16": ds_temp_toot.setColumn(0, "t16", "1"); break;
  1692. case "15": ds_temp_toot.setColumn(0, "t15", "1"); break;
  1693. case "14": ds_temp_toot.setColumn(0, "t14", "1"); break;
  1694. case "13": ds_temp_toot.setColumn(0, "t13", "1"); break;
  1695. case "12": ds_temp_toot.setColumn(0, "t12", "1"); break;
  1696. case "11": ds_temp_toot.setColumn(0, "t11", "1"); break;
  1697. case "21": ds_temp_toot.setColumn(0, "t21", "1"); break;
  1698. case "22": ds_temp_toot.setColumn(0, "t22", "1"); break;
  1699. case "23": ds_temp_toot.setColumn(0, "t23", "1"); break;
  1700. case "24": ds_temp_toot.setColumn(0, "t24", "1"); break;
  1701. case "25": ds_temp_toot.setColumn(0, "t25", "1"); break;
  1702. case "26": ds_temp_toot.setColumn(0, "t26", "1"); break;
  1703. case "27": ds_temp_toot.setColumn(0, "t27", "1"); break;
  1704. case "28": ds_temp_toot.setColumn(0, "t28", "1"); break;
  1705. case "48": ds_temp_toot.setColumn(0, "t48", "1"); break;
  1706. case "47": ds_temp_toot.setColumn(0, "t47", "1"); break;
  1707. case "46": ds_temp_toot.setColumn(0, "t46", "1"); break;
  1708. case "45": ds_temp_toot.setColumn(0, "t45", "1"); break;
  1709. case "44": ds_temp_toot.setColumn(0, "t44", "1"); break;
  1710. case "43": ds_temp_toot.setColumn(0, "t43", "1"); break;
  1711. case "42": ds_temp_toot.setColumn(0, "t42", "1"); break;
  1712. case "41": ds_temp_toot.setColumn(0, "t41", "1"); break;
  1713. case "31": ds_temp_toot.setColumn(0, "t31", "1"); break;
  1714. case "32": ds_temp_toot.setColumn(0, "t32", "1"); break;
  1715. case "33": ds_temp_toot.setColumn(0, "t33", "1"); break;
  1716. case "34": ds_temp_toot.setColumn(0, "t34", "1"); break;
  1717. case "35": ds_temp_toot.setColumn(0, "t35", "1"); break;
  1718. case "36": ds_temp_toot.setColumn(0, "t36", "1"); break;
  1719. case "37": ds_temp_toot.setColumn(0, "t37", "1"); break;
  1720. case "38": ds_temp_toot.setColumn(0, "t38", "1"); break;
  1721. }
  1722. }
  1723. if( utlf_isNull(ds_temp_toot.getColumn(0, "t18") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1724. if( utlf_isNull(ds_temp_toot.getColumn(0, "t17") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1725. if( utlf_isNull(ds_temp_toot.getColumn(0, "t16") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1726. if( utlf_isNull(ds_temp_toot.getColumn(0, "t15") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1727. if( utlf_isNull(ds_temp_toot.getColumn(0, "t14") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1728. if( utlf_isNull(ds_temp_toot.getColumn(0, "t13") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1729. if( utlf_isNull(ds_temp_toot.getColumn(0, "t12") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1730. if( utlf_isNull(ds_temp_toot.getColumn(0, "t11") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1731. if( utlf_isNull(ds_temp_toot.getColumn(0, "t21") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1732. if( utlf_isNull(ds_temp_toot.getColumn(0, "t22") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1733. if( utlf_isNull(ds_temp_toot.getColumn(0, "t23") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1734. if( utlf_isNull(ds_temp_toot.getColumn(0, "t24") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1735. if( utlf_isNull(ds_temp_toot.getColumn(0, "t25") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1736. if( utlf_isNull(ds_temp_toot.getColumn(0, "t26") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1737. if( utlf_isNull(ds_temp_toot.getColumn(0, "t27") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1738. if( utlf_isNull(ds_temp_toot.getColumn(0, "t28") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1739. if( utlf_isNull(ds_temp_toot.getColumn(0, "t48") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1740. if( utlf_isNull(ds_temp_toot.getColumn(0, "t47") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1741. if( utlf_isNull(ds_temp_toot.getColumn(0, "t46") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1742. if( utlf_isNull(ds_temp_toot.getColumn(0, "t45") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1743. if( utlf_isNull(ds_temp_toot.getColumn(0, "t44") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1744. if( utlf_isNull(ds_temp_toot.getColumn(0, "t43") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1745. if( utlf_isNull(ds_temp_toot.getColumn(0, "t42") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1746. if( utlf_isNull(ds_temp_toot.getColumn(0, "t41") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1747. if( utlf_isNull(ds_temp_toot.getColumn(0, "t31") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1748. if( utlf_isNull(ds_temp_toot.getColumn(0, "t32") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1749. if( utlf_isNull(ds_temp_toot.getColumn(0, "t33") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1750. if( utlf_isNull(ds_temp_toot.getColumn(0, "t34") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1751. if( utlf_isNull(ds_temp_toot.getColumn(0, "t35") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1752. if( utlf_isNull(ds_temp_toot.getColumn(0, "t36") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1753. if( utlf_isNull(ds_temp_toot.getColumn(0, "t37") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1754. if( utlf_isNull(ds_temp_toot.getColumn(0, "t38") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1755. return rtn_toot;
  1756. }
  1757. else {
  1758. toot_arr = toot.split(",");
  1759. var rtn_toot = "";
  1760. ds_temp_toot.clearData();
  1761. ds_temp_toot.addRow();
  1762. for(var i = 0 ; i < toot_arr.length ; i++) {
  1763. switch(toot_arr[i]) {
  1764. case "18": ds_temp_toot.setColumn(0, "t18", "1"); break;
  1765. case "17": ds_temp_toot.setColumn(0, "t17", "1"); break;
  1766. case "16": ds_temp_toot.setColumn(0, "t16", "1"); break;
  1767. case "15": ds_temp_toot.setColumn(0, "t15", "1"); break;
  1768. case "14": ds_temp_toot.setColumn(0, "t14", "1"); break;
  1769. case "13": ds_temp_toot.setColumn(0, "t13", "1"); break;
  1770. case "12": ds_temp_toot.setColumn(0, "t12", "1"); break;
  1771. case "11": ds_temp_toot.setColumn(0, "t11", "1"); break;
  1772. case "21": ds_temp_toot.setColumn(0, "t21", "1"); break;
  1773. case "22": ds_temp_toot.setColumn(0, "t22", "1"); break;
  1774. case "23": ds_temp_toot.setColumn(0, "t23", "1"); break;
  1775. case "24": ds_temp_toot.setColumn(0, "t24", "1"); break;
  1776. case "25": ds_temp_toot.setColumn(0, "t25", "1"); break;
  1777. case "26": ds_temp_toot.setColumn(0, "t26", "1"); break;
  1778. case "27": ds_temp_toot.setColumn(0, "t27", "1"); break;
  1779. case "28": ds_temp_toot.setColumn(0, "t28", "1"); break;
  1780. case "48": ds_temp_toot.setColumn(0, "t48", "1"); break;
  1781. case "47": ds_temp_toot.setColumn(0, "t47", "1"); break;
  1782. case "46": ds_temp_toot.setColumn(0, "t46", "1"); break;
  1783. case "45": ds_temp_toot.setColumn(0, "t45", "1"); break;
  1784. case "44": ds_temp_toot.setColumn(0, "t44", "1"); break;
  1785. case "43": ds_temp_toot.setColumn(0, "t43", "1"); break;
  1786. case "42": ds_temp_toot.setColumn(0, "t42", "1"); break;
  1787. case "41": ds_temp_toot.setColumn(0, "t41", "1"); break;
  1788. case "31": ds_temp_toot.setColumn(0, "t31", "1"); break;
  1789. case "32": ds_temp_toot.setColumn(0, "t32", "1"); break;
  1790. case "33": ds_temp_toot.setColumn(0, "t33", "1"); break;
  1791. case "34": ds_temp_toot.setColumn(0, "t34", "1"); break;
  1792. case "35": ds_temp_toot.setColumn(0, "t35", "1"); break;
  1793. case "36": ds_temp_toot.setColumn(0, "t36", "1"); break;
  1794. case "37": ds_temp_toot.setColumn(0, "t37", "1"); break;
  1795. case "38": ds_temp_toot.setColumn(0, "t38", "1"); break;
  1796. }
  1797. }
  1798. if( utlf_isNull(ds_temp_toot.getColumn(0, "t18") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1799. if( utlf_isNull(ds_temp_toot.getColumn(0, "t17") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1800. if( utlf_isNull(ds_temp_toot.getColumn(0, "t16") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1801. if( utlf_isNull(ds_temp_toot.getColumn(0, "t15") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1802. if( utlf_isNull(ds_temp_toot.getColumn(0, "t14") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1803. if( utlf_isNull(ds_temp_toot.getColumn(0, "t13") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1804. if( utlf_isNull(ds_temp_toot.getColumn(0, "t12") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1805. if( utlf_isNull(ds_temp_toot.getColumn(0, "t11") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1806. if( utlf_isNull(ds_temp_toot.getColumn(0, "t21") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1807. if( utlf_isNull(ds_temp_toot.getColumn(0, "t22") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1808. if( utlf_isNull(ds_temp_toot.getColumn(0, "t23") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1809. if( utlf_isNull(ds_temp_toot.getColumn(0, "t24") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1810. if( utlf_isNull(ds_temp_toot.getColumn(0, "t25") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1811. if( utlf_isNull(ds_temp_toot.getColumn(0, "t26") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1812. if( utlf_isNull(ds_temp_toot.getColumn(0, "t27") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1813. if( utlf_isNull(ds_temp_toot.getColumn(0, "t28") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1814. if( utlf_isNull(ds_temp_toot.getColumn(0, "t48") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1815. if( utlf_isNull(ds_temp_toot.getColumn(0, "t47") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1816. if( utlf_isNull(ds_temp_toot.getColumn(0, "t46") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1817. if( utlf_isNull(ds_temp_toot.getColumn(0, "t45") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1818. if( utlf_isNull(ds_temp_toot.getColumn(0, "t44") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1819. if( utlf_isNull(ds_temp_toot.getColumn(0, "t43") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1820. if( utlf_isNull(ds_temp_toot.getColumn(0, "t42") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1821. if( utlf_isNull(ds_temp_toot.getColumn(0, "t41") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1822. if( utlf_isNull(ds_temp_toot.getColumn(0, "t31") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1823. if( utlf_isNull(ds_temp_toot.getColumn(0, "t32") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1824. if( utlf_isNull(ds_temp_toot.getColumn(0, "t33") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1825. if( utlf_isNull(ds_temp_toot.getColumn(0, "t34") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1826. if( utlf_isNull(ds_temp_toot.getColumn(0, "t35") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1827. if( utlf_isNull(ds_temp_toot.getColumn(0, "t36") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1828. if( utlf_isNull(ds_temp_toot.getColumn(0, "t37") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1829. if( utlf_isNull(ds_temp_toot.getColumn(0, "t38") ) ) { rtn_toot += "0"; } else { rtn_toot += "*"; }
  1830. return rtn_toot;
  1831. }
  1832. }
  1833. else {
  1834. return toot;
  1835. }
  1836. }
  1837. function ds_main_list2_toothapplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1838. {
  1839. if( e.columnid == "chos" ){
  1840. obj.setColumn(e.row, "chos", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  1841. }
  1842. }
  1843. ]]></Script>
  1844. </Form>
  1845. </FDL>