SMMRT00300_주호소관리.xfdl 132 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRT00300" position="absolute 0 0 1196 774" titletext="주호소 용어 관리" onload="SMMRT00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch2" anchor="left top right" taborder="17" class="div_SA2" position="absolute 260 25 1195 65"/>
  8. <Div id="grp_srch" anchor="left top right" taborder="16" class="div_SA" position="absolute 0 25 250 65">
  9. <Layouts>
  10. <Layout/>
  11. </Layouts>
  12. </Div>
  13. <Static id="caption6selctedmode" text="주호소 용어 관리" class="tit_1" position="absolute 0 0 140 25"/>
  14. <Tab id="switch2" taborder="1" tabindex="0" position="absolute 260 67 1195 773" onlbuttonup="switch2_onlbuttonup">
  15. <Tabpages>
  16. <Tabpage id="case5" text=" 주호소코드 ">
  17. <Layouts>
  18. <Layout>
  19. <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 0 631 465 637"/>
  20. <Shape id="line8" linetype="horizontal" class="line_2" position="absolute 1 506 465 512"/>
  21. <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 0 606 465 612"/>
  22. <Edit id="ipt_termupdtid" taborder="27" class="input_default" enable="false" position="absolute 330 613 460 632"/>
  23. <MaskEdit id="ipt_fstrgsttime" taborder="28" mask="hh:nn" class="input_default" enable="false" position="absolute 423 588 460 607"/>
  24. <Edit id="ipt_engnm" taborder="29" class="input_default" enable="false" position="absolute 113 538 460 557"/>
  25. <Calendar id="ipt_fstrgstdate" taborder="30" class="input_default" enable="false" position="absolute 330 588 420 607" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd"/>
  26. <Button id="btn_snmdcnptid" taborder="31" class="icon_search" enable="false" position="absolute 448 439 464 455"/>
  27. <Static id="caption26" text="용어 관리" class="tit_2" position="absolute 0 415 126 431"/>
  28. <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 431 464 437"/>
  29. <Button id="btn_delete1" taborder="32" text="사용종료" class="btn5" position="absolute 400 409 464 431" onclick="switch2_case5_btn_delete1_onclick"/>
  30. <Edit id="ipt_fstrgstdt" taborder="33" class="input_default" enable="false" visible="false" position="absolute 85 411 114 430"/>
  31. <Edit id="input6" taborder="34" visible="false" position="absolute 108 411 123 430"/>
  32. <Button id="btn_insert1" taborder="35" text="신규" class="btn2" position="absolute 198 409 240 431" onclick="switch2_case5_btn_insert1_onclick"/>
  33. <Button id="btn_save1" taborder="36" text="저장" class="btn5" position="absolute 356 410 398 429"/>
  34. <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 404 935 410"/>
  35. <Edit id="ipt_ccattrcd" taborder="37" class="input_essential" enable="false" position="absolute 113 463 223 482"/>
  36. <Edit id="ipt_termcd" taborder="38" class="input_default" enable="false" position="absolute 113 488 223 507"/>
  37. <Grid id="grd_cccd" class="datagrid2" taborder="39" binddataset="ds_main_cccdinfo_cccd" useinputpanel="false" position="absolute 0 0 935 405" cellsizingtype="both" autosizingtype="row" extendsizetype="row" oncellclick="switch2_case5_grd_cccd_oncellclick" onrbuttonup="switch2_case5_grd_cccd_onrbuttonup" selecttype="multirow">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="25" band="left"/>
  42. <Column size="33"/>
  43. <Column size="0"/>
  44. <Column size="64"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="100"/>
  51. <Column size="0"/>
  52. <Column size="100"/>
  53. <Column size="100"/>
  54. <Column size="250"/>
  55. <Column size="250"/>
  56. <Column size="100"/>
  57. <Column size="100"/>
  58. <Column size="140"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="100"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="100"/>
  68. </Columns>
  69. <Rows>
  70. <Row size="30" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell/>
  75. <Cell col="1" text="사용여부" wordwrap="char"/>
  76. <Cell col="2" text="상태" wordwrap="char"/>
  77. <Cell col="3" text="색인코드" wordwrap="char"/>
  78. <Cell col="4" text="색인명" wordwrap="char"/>
  79. <Cell col="5" text="색인영문명" wordwrap="char"/>
  80. <Cell col="6" text="주호소코드" wordwrap="char"/>
  81. <Cell col="7" text="용어코드" wordwrap="char"/>
  82. <Cell col="8" text="SNOMED-CT&#10;Concept ID" wordwrap="char"/>
  83. <Cell col="9" text="SNOMED-CT&#10;Concept 명" wordwrap="char"/>
  84. <Cell col="10" text="SNOMED-CT&#10;Description ID" wordwrap="char"/>
  85. <Cell col="11" text="ICD10 코드" wordwrap="char"/>
  86. <Cell col="12" text="UMLS코드" wordwrap="char"/>
  87. <Cell col="13" text="주호소 영문명" wordwrap="char"/>
  88. <Cell col="14" text="주호소 한글명" wordwrap="char"/>
  89. <Cell col="15" text="시작일자" wordwrap="char"/>
  90. <Cell col="16" text="종료일자" wordwrap="char"/>
  91. <Cell col="17" text="최종수정일시" wordwrap="char"/>
  92. <Cell col="18" text="속성시작일자" wordwrap="char"/>
  93. <Cell col="19" text="속성종료일자" wordwrap="char"/>
  94. <Cell col="20" text="용어구분" wordwrap="char"/>
  95. <Cell col="21" text="최종수정자ID" wordwrap="char"/>
  96. <Cell col="22" text="최종수정자" wordwrap="char"/>
  97. <Cell col="23" text="최초등록일시" wordwrap="char"/>
  98. <Cell col="24" text="최초등록자ID" wordwrap="char"/>
  99. <Cell col="25" text="최초등록자" wordwrap="char"/>
  100. <Cell col="26" text="필수용어구분" wordwrap="char"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell celltype="head" text="expr:currow+1"/>
  104. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:termuseyn" expr="expr:(termuseyn==&quot;Y&quot;||termuseyn==1)?1:0"/>
  105. <Cell col="2" displaytype="combo" edittype="combo" text="bind:state" enable="false"/>
  106. <Cell col="3" text="bind:ccindxcd"/>
  107. <Cell col="4" text="bind:indxhngnm"/>
  108. <Cell col="5" text="bind:indxengnm"/>
  109. <Cell col="6" text="bind:ccattrcd"/>
  110. <Cell col="7" text="bind:termcd"/>
  111. <Cell col="8" displaytype="text" text="bind:snmdcnptid"/>
  112. <Cell col="9" displaytype="text" text="bind:snmdcnptnm" wordwrap="char" autosizerow="limitmin"/>
  113. <Cell col="10" displaytype="text" text="bind:snmddescid" wordwrap="char" autosizerow="limitmin"/>
  114. <Cell col="11" displaytype="text" text="bind:icd10cd" wordwrap="char" autosizerow="limitmin"/>
  115. <Cell col="12" displaytype="text" text="bind:umlscd" wordwrap="char" autosizerow="limitmin"/>
  116. <Cell col="13" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  117. <Cell col="14" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  118. <Cell col="15" text="bind:termfromdd" mask="expr:utlf_isNull(termfromdd) ? '' : '####-##-##'"/>
  119. <Cell col="16" text="bind:termtodd" mask="expr:utlf_isNull(termtodd) ? '' : '####-##-##'"/>
  120. <Cell col="17" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  121. <Cell col="18" text="bind:attrfromdd"/>
  122. <Cell col="19" text="bind:attrtodd"/>
  123. <Cell col="20" text="bind:termflag"/>
  124. <Cell col="21" text="bind:lastupdtrid"/>
  125. <Cell col="22" text="bind:lastupdtrnm"/>
  126. <Cell col="23" text="bind:fstrgstdt"/>
  127. <Cell col="24" text="bind:fstrgstrid"/>
  128. <Cell col="25" text="bind:fstrgstrnm"/>
  129. <Cell col="26" text="bind:essntermflag"/>
  130. </Band>
  131. </Format>
  132. </Formats>
  133. </Grid>
  134. <Edit id="ipt_snmdcnptid" taborder="40" class="input_essential" enable="false" position="absolute 340 438 445 457"/>
  135. <Edit id="ipt_snmdcnptnm" taborder="41" class="input_default" enable="false" position="absolute 340 463 460 482"/>
  136. <Edit id="ipt_icd10cd" taborder="42" class="input_default" enable="false" position="absolute 340 488 445 507" onkeyup="switch2_case5_ipt_icd10cd_onkeyup"/>
  137. <Button id="btn_snmddescid" taborder="43" class="icon_search" enable="false" visible="false" position="absolute 440 464 456 480"/>
  138. <Button id="btn_icd10cd" taborder="44" class="icon_search" enable="false" position="absolute 448 490 464 506" onclick="switch2_case5_btn_icd10cd_onclick"/>
  139. <Button id="btn_modify1" taborder="45" text="수정" class="btn2" position="absolute 243 409 285 431" onclick="switch2_case5_btn_modify1_onclick"/>
  140. <Edit id="opt_ccindxcd" taborder="46" readonly="true" position="absolute 113 438 223 457" class="output"/>
  141. <Calendar id="ipt_termfromdd" taborder="47" class="input_essential" enable="false" position="absolute 113 588 223 607" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" value="null"/>
  142. <Calendar id="ipt_termtodd" taborder="48" class="input_essential" enable="false" position="absolute 113 613 223 632" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd"/>
  143. <Calendar id="input2" taborder="49" class="input_default" enable="false" visible="false" position="absolute 120 410 155 429" mask="yyyy-mm-dd"/>
  144. <Calendar id="input3" taborder="50" class="input_default" enable="false" visible="false" position="absolute 145 410 180 429" mask="yyyy-mm-dd"/>
  145. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 0 456 465 462"/>
  146. <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 0 481 465 487"/>
  147. <Static id="caption2" text="대표어 코드/명" class="cell_1" visible="false" position="absolute 0 638 110 661"/>
  148. <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 531 464 537"/>
  149. <Combo id="combo4" taborder="51" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" enable="false" visible="false" position="absolute 113 635 223 654">
  150. <Dataset id="innerdataset">
  151. <ColumnInfo>
  152. <Column id="codecolumn"/>
  153. <Column id="datacolumn"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="codecolumn">R</Col>
  158. <Col id="datacolumn">Y</Col>
  159. </Row>
  160. <Row>
  161. <Col id="codecolumn"/>
  162. <Col id="datacolumn">N</Col>
  163. </Row>
  164. </Rows>
  165. </Dataset>
  166. </Combo>
  167. <Grid id="grd_cchist" class="datagrid2" taborder="52" binddataset="ds_grd_cchist" useinputpanel="false" position="absolute 470 436 935 634" extendsizetype="row" autosizingtype="row" cellsizingtype="both" oncellclick="switch2_case5_grd_cchist_oncellclick">
  168. <Formats>
  169. <Format id="default">
  170. <Columns>
  171. <Column size="25" band="left"/>
  172. <Column size="100"/>
  173. <Column size="30"/>
  174. <Column size="100"/>
  175. <Column size="100"/>
  176. <Column size="100"/>
  177. <Column size="100"/>
  178. <Column size="0"/>
  179. <Column size="200"/>
  180. <Column size="200"/>
  181. <Column size="100"/>
  182. <Column size="100"/>
  183. <Column size="100"/>
  184. <Column size="100"/>
  185. <Column size="110"/>
  186. <Column size="120"/>
  187. <Column size="100"/>
  188. <Column size="140"/>
  189. <Column size="100"/>
  190. <Column size="140"/>
  191. <Column size="0"/>
  192. <Column size="100"/>
  193. <Column size="0"/>
  194. <Column size="0"/>
  195. <Column size="0"/>
  196. </Columns>
  197. <Rows>
  198. <Row size="24" band="head"/>
  199. <Row size="24"/>
  200. </Rows>
  201. <Band id="head">
  202. <Cell/>
  203. <Cell col="1" text="사용 기관명"/>
  204. <Cell col="2" text="상태"/>
  205. <Cell col="3" text="색인코드"/>
  206. <Cell col="4" text="속성코드"/>
  207. <Cell col="5" text="주호소코드"/>
  208. <Cell col="6" text="용어구분"/>
  209. <Cell col="7" text="대표어구분"/>
  210. <Cell col="8" text="영문명"/>
  211. <Cell col="9" text="한글명"/>
  212. <Cell col="10" text="SNOMED-CT&#10;ConceptID"/>
  213. <Cell col="11" text="SNOMED-CT&#10;Concept명"/>
  214. <Cell col="12" text="ICD10코드"/>
  215. <Cell col="13" text="UMLS코드"/>
  216. <Cell col="14" text="SNOMED-CT&#10;DESCRIPTION ID"/>
  217. <Cell col="15" text="시작일자"/>
  218. <Cell col="16" text="종료일자"/>
  219. <Cell col="17" text="등록일시"/>
  220. <Cell col="18" text="등록자"/>
  221. <Cell col="19" text="최종수정일시"/>
  222. <Cell col="20" text="최종수정자ID"/>
  223. <Cell col="21" text="최종수정자"/>
  224. <Cell col="22" text="확장코드시작일자"/>
  225. <Cell col="23" text="확장코드종료일자"/>
  226. <Cell col="24" text="ICD시작일자"/>
  227. </Band>
  228. <Band id="body">
  229. <Cell celltype="head" text="expr:currow+1"/>
  230. <Cell col="1" text="bind:instnm"/>
  231. <Cell col="2" text="bind:state"/>
  232. <Cell col="3" text="bind:ccindxcd"/>
  233. <Cell col="4" text="bind:attrcd"/>
  234. <Cell col="5" text="bind:termcd"/>
  235. <Cell col="6" displaytype="combo" edittype="combo" text="bind:termflag" enable="false"/>
  236. <Cell col="7" displaytype="combo" edittype="combo" text="bind:reprflag" enable="false"/>
  237. <Cell col="8" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  238. <Cell col="9" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  239. <Cell col="10" text="bind:snmdcnptid"/>
  240. <Cell col="11" text="bind:snmdcnptnm"/>
  241. <Cell col="12" text="bind:icd10cd"/>
  242. <Cell col="13" text="bind:umlscd"/>
  243. <Cell col="14" text="bind:snmddescid"/>
  244. <Cell col="15" text="bind:termfromdd" mask="expr:utlf_isNull(termfromdd) ? '' : '####-##-##'"/>
  245. <Cell col="16" text="bind:termtodd" mask="expr:utlf_isNull(termtodd) ? '' : '####-##-##'"/>
  246. <Cell col="17" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'"/>
  247. <Cell col="18" text="bind:fstrgstrid"/>
  248. <Cell col="19" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  249. <Cell col="20" text="bind:lastupdtrid"/>
  250. <Cell col="21" text="bind:lastupdtrnm"/>
  251. <Cell col="22" text="bind:attrfromdd"/>
  252. <Cell col="23" text="bind:attrtodd"/>
  253. <Cell col="24" text="bind:icdfromdd"/>
  254. </Band>
  255. </Format>
  256. </Formats>
  257. </Grid>
  258. <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 470 431 935 437"/>
  259. <Shape id="line9" linetype="horizontal" class="line_2" position="absolute 0 581 465 587"/>
  260. <Shape id="line14" linetype="horizontal" class="line_2" position="absolute 1 556 466 562"/>
  261. <Edit id="ipt_hngnm" taborder="53" class="input_default" enable="false" position="absolute 113 563 460 582"/>
  262. <Edit id="input4" taborder="54" class="input_default" enable="false" visible="false" position="absolute 225 635 330 654"/>
  263. <Edit id="input7" taborder="55" class="input_default" enable="false" visible="false" position="absolute 330 634 460 653"/>
  264. <Edit id="input8" taborder="56" class="input_default" enable="false" position="absolute 113 513 223 532"/>
  265. <Button id="btn_rollback" taborder="57" text="되살리기" class="btn5" position="absolute 288 409 352 431" onclick="switch2_case5_btn_rollback_onclick"/>
  266. <Combo id="cmb_allinsthist" taborder="58" innerdataset="@ds_init_M0534allcmb" codecolumn="cdid" datacolumn="cdnm" class="combo_default" visible="false" position="absolute 835 412 935 431" onitemchanged="switch2_case5_cmb_allinsthist_onitemchanged"/>
  267. <Static id="cap_allinsthist" text="기관 :" class="search_name" visible="false" position="absolute 780 414 830 431"/>
  268. <Button id="btn_termsave" taborder="59" text="저장" class="btn5" position="absolute 355 409 397 431" onclick="switch2_case5_btn_termsave_onclick"/>
  269. <Radio id="rdo_essntermflag" taborder="60" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 340 513 457 533" onitemchanged="switch2_case5_rdo_essntermflag_onitemchanged">
  270. <Dataset id="innerdataset">
  271. <ColumnInfo>
  272. <Column id="codecolumn"/>
  273. <Column id="datacolumn"/>
  274. </ColumnInfo>
  275. <Rows>
  276. <Row>
  277. <Col id="codecolumn">Y</Col>
  278. <Col id="datacolumn">Y</Col>
  279. </Row>
  280. <Row>
  281. <Col id="codecolumn">N</Col>
  282. <Col id="datacolumn">N</Col>
  283. </Row>
  284. </Rows>
  285. </Dataset>
  286. </Radio>
  287. <Shape id="line15" linetype="horizontal" class="line_3" position="absolute 0 673 925 679"/>
  288. <Static id="caption27" text="주호소코드" class="cell_1" position="absolute 0 486 110 509" style="padding:0 0 0 4;"/>
  289. <Static id="caption16" text="등록자" class="cell_1" position="absolute 227 611 327 634" style="padding:0 0 0 4;"/>
  290. <Static id="caption8" text="주호소 영문명" class="cell_1" position="absolute 0 536 110 559" style="padding:0 0 0 4;"/>
  291. <Static id="caption17" text="시작일자" class="cell_1" position="absolute 0 586 110 609" style="padding:0 0 0 4;"/>
  292. <Static id="caption19" text="종료일자" class="cell_1" position="absolute 0 611 110 634" style="padding:0 0 0 4;"/>
  293. <Static id="caption1" text="ICD10 코드" class="cell_1" position="absolute 227 486 337 509" style="padding:0 0 0 4;"/>
  294. <Static id="caption3" text="SNMD-concept 명" class="cell_1" position="absolute 227 461 337 484" style="padding:0 0 0 4;"/>
  295. <Static id="caption9" text="주호소 한글명" class="cell_1" position="absolute 0 561 110 584" style="padding:0 0 0 4;"/>
  296. <Static id="caption10" text="UMLS코드" class="cell_1" position="absolute 0 511 110 534" style="padding:0 0 0 4;"/>
  297. <Static id="caption36" text="필수용어 여부" class="cell_1" position="absolute 227 511 337 534" style="padding:0 0 0 4;"/>
  298. <Static id="cap_appinst" text="적용 기관" class="cell_1" position="absolute 0 636 110 676" style="padding:0 0 0 4;"/>
  299. <Static id="caption20" text="속성코드" class="cell_1" position="absolute 0 461 110 484" style="padding:0 0 0 4;"/>
  300. <Static id="caption32" text="SNMD-concept ID" class="cell_1" position="absolute 227 436 337 459" style="padding:0 0 0 4;"/>
  301. <Static id="caption22" text="등록일시" class="cell_1" position="absolute 227 586 327 609" style="padding:0 0 0 4;"/>
  302. <Static id="caption6" text="색인코드" class="cell_1" position="absolute 0 436 110 459" style="padding:0 0 0 4;"/>
  303. <Div id="grp_tabbtn" taborder="62" position="absolute 470 408 680 433">
  304. <Layouts>
  305. <Layout>
  306. <Button id="button2" taborder="7" text="이력조회" class="btn_tab_S" position="absolute 0 1 68 25" anchor="default" onclick="switch2_case5_grp_tabbtn_button2_onclick"/>
  307. <Button id="button6" taborder="8" text="기관별 사용 이력조회" class="btn_tab" position="absolute 69 1 201 25" anchor="default" onclick="switch2_case5_grp_tabbtn_button6_onclick"/>
  308. </Layout>
  309. </Layouts>
  310. </Div>
  311. <cp_checkboxList id="chk_appinst" titletext="CheckBox List" taborder="63" scrollbars="none" class="output" enable="false" position="absolute 114 636 214 656" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  312. </Layout>
  313. </Layouts>
  314. </Tabpage>
  315. <Tabpage id="case_deptccinfo" text=" 과 주호소코드 ">
  316. <Layouts>
  317. <Layout>
  318. <Static id="caption23" text="과주호소" class="tit_2" position="absolute 0 7 86 24"/>
  319. <Button id="btn_deptsrch" taborder="19" class="icon_search" position="absolute 139 5 155 21" onclick="switch2_case_deptccinfo_btn_deptsrch_onclick"/>
  320. <Shape id="line28" linetype="horizontal" class="line_10" position="absolute 0 23 935 29"/>
  321. <Shape id="line29" linetype="horizontal" class="line_10" position="absolute 0 342 935 348"/>
  322. <Static id="caption29" text="주호소 추가" class="tit_2" position="absolute 0 326 103 343"/>
  323. <Button id="btn_srchdeptcc" taborder="20" text="조회" class="btn2" position="absolute 807 1 849 23" onclick="switch2_case_deptccinfo_btn_srchdeptcc_onclick"/>
  324. <Button id="btn_deldeptcc" taborder="21" text="삭제" class="btn2" position="absolute 850 1 892 23" onclick="switch2_case_deptccinfo_btn_deldeptcc_onclick"/>
  325. <Button id="btn_savedeptcc" taborder="22" text="저장" class="btn5" position="absolute 893 1 935 23" onclick="switch2_case_deptccinfo_btn_savedeptcc_onclick"/>
  326. <Radio id="rdo_srchflag" taborder="23" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 104 324 272 344" index="-1" style="textpadding:0 4 0 3;">
  327. <Dataset id="innerdataset">
  328. <ColumnInfo>
  329. <Column id="codecolumn"/>
  330. <Column id="datacolumn"/>
  331. </ColumnInfo>
  332. <Rows>
  333. <Row>
  334. <Col id="codecolumn">C</Col>
  335. <Col id="datacolumn">코드</Col>
  336. </Row>
  337. <Row>
  338. <Col id="codecolumn">E</Col>
  339. <Col id="datacolumn">영문명</Col>
  340. </Row>
  341. <Row>
  342. <Col id="codecolumn">H</Col>
  343. <Col id="datacolumn">한글명</Col>
  344. </Row>
  345. </Rows>
  346. </Dataset>
  347. </Radio>
  348. <Edit id="ipt_srchnm" taborder="24" class="input_search" position="absolute 271 323 426 342" onkeyup="switch2_case_deptccinfo_ipt_srchnm_onkeyup"/>
  349. <Button id="btn_srchcc" taborder="25" text="조회" class="btn2" position="absolute 431 320 473 342" onclick="switch2_case_deptccinfo_btn_srchcc_onclick"/>
  350. <Button id="btn_srchextncc" taborder="26" text="전체주호소 조회" class="btn2" position="absolute 476 320 580 342" onclick="switch2_case_deptccinfo_btn_srchextncc_onclick"/>
  351. <Button id="btn_sendcc" taborder="27" class="icon_top" position="absolute 583 320 609 342" onclick="switch2_case_deptccinfo_btn_sendcc_onclick"/>
  352. <Edit id="ipt_deptnm" taborder="28" class="input_search" position="absolute 158 4 258 23" onkeyup="switch2_case_deptccinfo_ipt_deptnm_onkeyup"/>
  353. <Edit id="ipt_deptcd" taborder="29" class="input_search" position="absolute 86 4 136 23"/>
  354. <Grid id="grd_deptcc" taborder="30" binddataset="ds_main_deptcccdlist_deptcccdinfo" useinputpanel="false" position="absolute 0 28 935 318" autosizingtype="row" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
  355. <Formats>
  356. <Format id="default">
  357. <Columns>
  358. <Column size="25" band="left"/>
  359. <Column size="38"/>
  360. <Column size="128"/>
  361. <Column size="0"/>
  362. <Column size="150"/>
  363. <Column size="267"/>
  364. <Column size="278"/>
  365. <Column size="100"/>
  366. <Column size="0"/>
  367. <Column size="0"/>
  368. <Column size="0"/>
  369. </Columns>
  370. <Rows>
  371. <Row size="24" band="head"/>
  372. <Row size="24"/>
  373. </Rows>
  374. <Band id="head">
  375. <Cell/>
  376. <Cell col="1" text="상태"/>
  377. <Cell col="2" text="주호소코드"/>
  378. <Cell col="3" text="색인코드"/>
  379. <Cell col="4" text="색인명"/>
  380. <Cell col="5" text="주호소 영문명"/>
  381. <Cell col="6" text="주호소 한글명"/>
  382. <Cell col="7" text="진료과"/>
  383. <Cell col="8" text="deptcd"/>
  384. <Cell col="9" text="deptfromdt"/>
  385. <Cell col="10" text="deptindxflag"/>
  386. </Band>
  387. <Band id="body">
  388. <Cell celltype="head"/>
  389. <Cell col="1" displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
  390. <Cell col="2" displaytype="text" text="bind:termcd"/>
  391. <Cell col="3" displaytype="text" text="bind:deptindxcd"/>
  392. <Cell col="4" displaytype="text" text="bind:deptindxnm"/>
  393. <Cell col="5" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  394. <Cell col="6" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  395. <Cell col="7" displaytype="text" text="bind:deptnm"/>
  396. <Cell col="8" text="bind:deptcd"/>
  397. <Cell col="9" text="bind:deptfromdt"/>
  398. <Cell col="10" text="bind:deptindxflag"/>
  399. </Band>
  400. </Format>
  401. </Formats>
  402. </Grid>
  403. <Grid id="grd_srchedccinfo" taborder="31" binddataset="ds_main_srchedcccdlist_srchedcccdinfo" useinputpanel="false" position="absolute 0 347 935 676" oncellclick="switch2_case_deptccinfo_grd_srchedccinfo_oncellclick" extendsizetype="row" cellsizingtype="both" autosizingtype="row" selecttype="multirow">
  404. <Formats>
  405. <Format id="default">
  406. <Columns>
  407. <Column size="25" band="left"/>
  408. <Column size="34"/>
  409. <Column size="100"/>
  410. <Column size="346"/>
  411. <Column size="330"/>
  412. </Columns>
  413. <Rows>
  414. <Row size="24" band="head"/>
  415. <Row size="24"/>
  416. </Rows>
  417. <Band id="head">
  418. <Cell/>
  419. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  420. <Cell col="2" text="주호소코드"/>
  421. <Cell col="3" text="주호소 영문명"/>
  422. <Cell col="4" text="주호소 한글명"/>
  423. </Band>
  424. <Band id="body">
  425. <Cell celltype="head" text="expr:currow+1"/>
  426. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
  427. <Cell col="2" text="bind:termcd"/>
  428. <Cell col="3" displaytype="text" text="bind:termengnm" wordwrap="char" autosizerow="limitmin"/>
  429. <Cell col="4" displaytype="text" text="bind:termhngnm" wordwrap="char" autosizerow="limitmin"/>
  430. </Band>
  431. </Format>
  432. </Formats>
  433. </Grid>
  434. </Layout>
  435. </Layouts>
  436. </Tabpage>
  437. </Tabpages>
  438. </Tab>
  439. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1122 35 1128 57"/>
  440. <Shape id="line12" linetype="horizontal" class="line_10" position="absolute 0 89 250 95"/>
  441. <Static id="caption4" text="조회 :" class="search_name" position="absolute 491 38 543 55"/>
  442. <Edit id="input5" taborder="2" class="input_search" position="absolute 543 36 633 55" onkeyup="input5_onkeyup"/>
  443. <Static id="caption5" text="구분 :" class="search_name" position="absolute 266 38 314 55"/>
  444. <Radio id="radio2" taborder="3" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 316 36 479 56" index="-1" style="textpadding:0 4 0 3;">
  445. <Dataset id="innerdataset">
  446. <ColumnInfo>
  447. <Column id="codecolumn"/>
  448. <Column id="datacolumn"/>
  449. </ColumnInfo>
  450. <Rows>
  451. <Row>
  452. <Col id="codecolumn">C</Col>
  453. <Col id="datacolumn">코드</Col>
  454. </Row>
  455. <Row>
  456. <Col id="codecolumn">E</Col>
  457. <Col id="datacolumn">영문명</Col>
  458. </Row>
  459. <Row>
  460. <Col id="codecolumn">H</Col>
  461. <Col id="datacolumn">한글명</Col>
  462. </Row>
  463. </Rows>
  464. </Dataset>
  465. </Radio>
  466. <Radio id="radio1" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 0 69 175 89" onitemchanged="radio1_onitemchanged">
  467. <Dataset id="innerdataset">
  468. <ColumnInfo>
  469. <Column id="codecolumn"/>
  470. <Column id="datacolumn"/>
  471. </ColumnInfo>
  472. <Rows>
  473. <Row>
  474. <Col id="codecolumn">H</Col>
  475. <Col id="datacolumn">한글명</Col>
  476. </Row>
  477. <Row>
  478. <Col id="codecolumn">E</Col>
  479. <Col id="datacolumn">영문명</Col>
  480. </Row>
  481. </Rows>
  482. </Dataset>
  483. </Radio>
  484. <Button id="button22" taborder="5" text="색인추가" class="btn2" position="absolute 186 67 250 89" onclick="button22_onclick"/>
  485. <Grid id="trv_ccindx" taborder="6" useinputpanel="false" treeusecheckbox="false" position="absolute 0 94 250 770" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="trv_ccindx_oncellclick" onrbuttonup="trv_ccindx_onrbuttonup" selecttype="multirow">
  486. <Formats>
  487. <Format id="default">
  488. <Columns>
  489. <Column size="249"/>
  490. </Columns>
  491. <Rows>
  492. <Row size="20"/>
  493. </Rows>
  494. <Band id="body">
  495. <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
  496. </Band>
  497. </Format>
  498. </Formats>
  499. </Grid>
  500. <Edit id="input1" taborder="7" class="input_search" position="absolute 10 36 165 55" onkeyup="input1_onkeyup"/>
  501. <Button id="btn_srchindxcd" taborder="8" text="조회" class="btn1" position="absolute 185 35 241 57" onclick="btn_srchindxcd_onclick"/>
  502. <Button id="btn_srchtermcd" taborder="9" text="조회" class="btn1" position="absolute 1132 35 1188 57" onclick="btn_srchtermcd_onclick"/>
  503. <Button id="button15" taborder="10" text="엑셀" class="btn7" position="absolute 1145 67 1195 89" onclick="button15_onclick"/>
  504. <CheckBox id="checkbox2" taborder="11" class="checkbox_search" position="absolute 638 36 753 56" text="사용종료용어조회" truevalue="Y" onclick="checkbox2_onclick"/>
  505. <Calendar id="ipt_endtodd" taborder="12" class="input_search" enable="false" position="absolute 871 36 961 55" dateformat="yyyy-MM-dd"/>
  506. <Calendar id="ipt_endfromdd" taborder="13" class="input_search" enable="false" position="absolute 761 36 851 55" dateformat="yyyy-MM-dd" value="null"/>
  507. <Static id="caption25" text="~" position="absolute 856 36 868 56"/>
  508. <Combo id="cmb_selInst" taborder="14" innerdataset="@ds_init_M0534selcmb" codecolumn="cdid" datacolumn="cdnm" class="combo_default" visible="false" position="absolute 1024 36 1119 55"/>
  509. <Static id="cap_selInst" text="기관 :" class="search_name" visible="false" position="absolute 972 38 1019 55"/>
  510. <Button id="btn_saverow" taborder="15" text="저장" class="btn5" position="absolute 1100 67 1142 89" onclick="btn_saverow_onclick"/>
  511. </Layout>
  512. </Layouts>
  513. <Objects>
  514. <Dataset id="ds_main_deptcccdlist_deptcccdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  515. <ColumnInfo>
  516. <Column id="status" type="STRING" size="256"/>
  517. <Column id="termcd" type="STRING" size="256"/>
  518. <Column id="deptindxcd" type="STRING" size="256"/>
  519. <Column id="deptindxnm" type="STRING" size="256"/>
  520. <Column id="termengnm" type="STRING" size="256"/>
  521. <Column id="termhngnm" type="STRING" size="256"/>
  522. <Column id="deptnm" type="STRING" size="256"/>
  523. <Column id="deptcd" type="STRING" size="256"/>
  524. <Column id="deptfromdt" type="STRING" size="256"/>
  525. <Column id="deptindxflag" type="STRING" size="256"/>
  526. </ColumnInfo>
  527. <Rows>
  528. <Row>
  529. <Col id="status"/>
  530. <Col id="termcd"/>
  531. <Col id="deptindxcd"/>
  532. <Col id="deptindxnm"/>
  533. <Col id="termengnm"/>
  534. <Col id="termhngnm"/>
  535. <Col id="deptnm"/>
  536. <Col id="deptcd"/>
  537. <Col id="deptfromdt"/>
  538. <Col id="deptindxflag"/>
  539. </Row>
  540. </Rows>
  541. </Dataset>
  542. <Dataset id="ds_main_cccdhist_app" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  543. <Dataset id="ds_main_cccdhist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  544. <ColumnInfo>
  545. <Column id="instnm" type="STRING" size="256"/>
  546. <Column id="stat" type="STRING" size="256"/>
  547. <Column id="ccindxcd" type="STRING" size="256"/>
  548. <Column id="attrcd" type="STRING" size="256"/>
  549. <Column id="termcd" type="STRING" size="256"/>
  550. <Column id="termflag" type="STRING" size="256"/>
  551. <Column id="reprflag" type="STRING" size="256"/>
  552. <Column id="termengnm" type="STRING" size="256"/>
  553. <Column id="termhngnm" type="STRING" size="256"/>
  554. <Column id="snmdcnptid" type="STRING" size="256"/>
  555. <Column id="snmdcnptnm" type="STRING" size="256"/>
  556. <Column id="icd10cd" type="STRING" size="256"/>
  557. <Column id="umlscd" type="STRING" size="256"/>
  558. <Column id="snmddescid" type="STRING" size="256"/>
  559. <Column id="termfromdd" type="STRING" size="256"/>
  560. <Column id="termtodd" type="STRING" size="256"/>
  561. <Column id="fstrgstdt" type="STRING" size="256"/>
  562. <Column id="fstrgstrid" type="STRING" size="256"/>
  563. <Column id="lastupdtdt" type="STRING" size="256"/>
  564. <Column id="lastupdtrid" type="STRING" size="256"/>
  565. <Column id="lastupdtrnm" type="STRING" size="256"/>
  566. <Column id="attrfromdd" type="STRING" size="256"/>
  567. <Column id="attrtodd" type="STRING" size="256"/>
  568. <Column id="icdfromdd" type="STRING" size="256"/>
  569. </ColumnInfo>
  570. <Rows>
  571. <Row>
  572. <Col id="instnm"/>
  573. <Col id="stat"/>
  574. <Col id="ccindxcd"/>
  575. <Col id="attrcd"/>
  576. <Col id="termcd"/>
  577. <Col id="termflag"/>
  578. <Col id="reprflag"/>
  579. <Col id="termengnm"/>
  580. <Col id="termhngnm"/>
  581. <Col id="snmdcnptid"/>
  582. <Col id="snmdcnptnm"/>
  583. <Col id="icd10cd"/>
  584. <Col id="umlscd"/>
  585. <Col id="snmddescid"/>
  586. <Col id="termfromdd"/>
  587. <Col id="termtodd"/>
  588. <Col id="fstrgstdt"/>
  589. <Col id="fstrgstrid"/>
  590. <Col id="lastupdtdt"/>
  591. <Col id="lastupdtrid"/>
  592. <Col id="lastupdtrnm"/>
  593. <Col id="attrfromdd"/>
  594. <Col id="attrtodd"/>
  595. <Col id="icdfromdd"/>
  596. </Row>
  597. </Rows>
  598. </Dataset>
  599. <Dataset id="ds_main_ccattrrgstinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  600. <ColumnInfo>
  601. <Column id="ccattrcd" type="STRING" size="256"/>
  602. <Column id="ccattrfromdd" type="STRING" size="256"/>
  603. <Column id="ccattrtodd" type="STRING" size="256"/>
  604. </ColumnInfo>
  605. <Rows>
  606. <Row>
  607. <Col id="ccattrcd"/>
  608. <Col id="ccattrfromdd"/>
  609. <Col id="ccattrtodd"/>
  610. </Row>
  611. </Rows>
  612. </Dataset>
  613. <Dataset id="ds_main_peprterminfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_peprterminfo_info_oncolumnchanged">
  614. <ColumnInfo>
  615. <Column id="ccindxcd" type="STRING" size="256"/>
  616. <Column id="ccattrcd" type="STRING" size="256"/>
  617. <Column id="termcd" type="STRING" size="256"/>
  618. <Column id="snmdcnptid" type="STRING" size="256"/>
  619. <Column id="snmdcnptnm" type="STRING" size="256"/>
  620. <Column id="snmddescid" type="STRING" size="256"/>
  621. <Column id="icd10cd" type="STRING" size="256"/>
  622. <Column id="termengnm" type="STRING" size="256"/>
  623. <Column id="termhngnm" type="STRING" size="256"/>
  624. <Column id="reprflag" type="STRING" size="256"/>
  625. <Column id="fstrgstrid" type="STRING" size="256"/>
  626. <Column id="fstrgstrnm" type="STRING" size="256"/>
  627. <Column id="fstrgstdt" type="STRING" size="256"/>
  628. <Column id="termfromdd" type="STRING" size="256"/>
  629. <Column id="termtodd" type="STRING" size="256"/>
  630. <Column id="termflag" type="STRING" size="256"/>
  631. <Column id="fstrgstdate" type="STRING" size="256"/>
  632. <Column id="fstrgsttime" type="STRING" size="256"/>
  633. <Column id="attrfromdd" type="STRING" size="256"/>
  634. <Column id="attrtodd" type="STRING" size="256"/>
  635. <Column id="umlscd" type="STRING" size="256"/>
  636. <Column id="essntermflag" type="STRING" size="256"/>
  637. <Column id="appinstcd" type="STRING" size="256"/>
  638. </ColumnInfo>
  639. <Rows>
  640. <Row>
  641. <Col id="ccindxcd"/>
  642. <Col id="ccattrcd"/>
  643. <Col id="termcd"/>
  644. <Col id="snmdcnptid"/>
  645. <Col id="snmdcnptnm"/>
  646. <Col id="snmddescid"/>
  647. <Col id="icd10cd"/>
  648. <Col id="termengnm"/>
  649. <Col id="termhngnm"/>
  650. <Col id="reprflag">R</Col>
  651. <Col id="fstrgstrid"/>
  652. <Col id="fstrgstrnm"/>
  653. <Col id="fstrgstdt"/>
  654. <Col id="termfromdd"/>
  655. <Col id="termtodd"/>
  656. <Col id="termflag">2</Col>
  657. <Col id="fstrgstdate"/>
  658. <Col id="fstrgsttime"/>
  659. <Col id="attrfromdd"/>
  660. <Col id="attrtodd"/>
  661. <Col id="umlscd"/>
  662. <Col id="essntermflag">N</Col>
  663. <Col id="appinstcd"/>
  664. </Row>
  665. </Rows>
  666. </Dataset>
  667. <Dataset id="ds_main_cccdinfo_cccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_cccdinfo_cccd_oncolumnchanged">
  668. <ColumnInfo>
  669. <Column id="termuseyn" type="STRING" size="256"/>
  670. <Column id="state" type="STRING" size="256"/>
  671. <Column id="ccindxcd" type="STRING" size="256"/>
  672. <Column id="ccattrcd" type="STRING" size="256"/>
  673. <Column id="termcd" type="STRING" size="256"/>
  674. <Column id="snmdcnptid" type="STRING" size="256"/>
  675. <Column id="snmdcnptnm" type="STRING" size="256"/>
  676. <Column id="snmddescid" type="STRING" size="256"/>
  677. <Column id="icd10cd" type="STRING" size="256"/>
  678. <Column id="umlscd" type="STRING" size="256"/>
  679. <Column id="termengnm" type="STRING" size="256"/>
  680. <Column id="termhngnm" type="STRING" size="256"/>
  681. <Column id="termfromdd" type="STRING" size="256"/>
  682. <Column id="termtodd" type="STRING" size="256"/>
  683. <Column id="ccattrtodt" type="STRING" size="256"/>
  684. <Column id="termflag" type="STRING" size="256"/>
  685. <Column id="indxhngnm" type="STRING" size="256"/>
  686. <Column id="indxengnm" type="STRING" size="256"/>
  687. <Column id="attrfromdd" type="STRING" size="256"/>
  688. <Column id="attrtodd" type="STRING" size="256"/>
  689. <Column id="fstrgstdt" type="STRING" size="256"/>
  690. <Column id="fstrgstrid" type="STRING" size="256"/>
  691. <Column id="fstrgstrnm" type="STRING" size="256"/>
  692. <Column id="lastupdtdt" type="STRING" size="256"/>
  693. <Column id="lastupdtrid" type="STRING" size="256"/>
  694. <Column id="lastupdtrnm" type="STRING" size="256"/>
  695. <Column id="essntermflag" type="STRING" size="256"/>
  696. </ColumnInfo>
  697. <Rows>
  698. <Row>
  699. <Col id="termuseyn"/>
  700. <Col id="state">-</Col>
  701. <Col id="ccindxcd"/>
  702. <Col id="ccattrcd"/>
  703. <Col id="termcd"/>
  704. <Col id="snmdcnptid"/>
  705. <Col id="snmdcnptnm"/>
  706. <Col id="snmddescid"/>
  707. <Col id="icd10cd"/>
  708. <Col id="umlscd"/>
  709. <Col id="termengnm"/>
  710. <Col id="termhngnm"/>
  711. <Col id="termfromdd"/>
  712. <Col id="termtodd"/>
  713. <Col id="ccattrtodt"/>
  714. <Col id="termflag"/>
  715. <Col id="indxhngnm"/>
  716. <Col id="indxengnm"/>
  717. <Col id="attrfromdd"/>
  718. <Col id="attrtodd"/>
  719. <Col id="fstrgstdt"/>
  720. <Col id="fstrgstrid"/>
  721. <Col id="fstrgstrnm"/>
  722. <Col id="lastupdtdt"/>
  723. <Col id="lastupdtrid"/>
  724. <Col id="lastupdtrnm"/>
  725. <Col id="essntermflag"/>
  726. </Row>
  727. </Rows>
  728. </Dataset>
  729. <Dataset id="ds_main_srchedcccdlist_srchedcccdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_srchedcccdlist_srchedcccdinfo_oncolumnchanged">
  730. <ColumnInfo>
  731. <Column id="check" type="STRING" size="256"/>
  732. <Column id="termcd" type="STRING" size="256"/>
  733. <Column id="termengnm" type="STRING" size="256"/>
  734. <Column id="termhngnm" type="STRING" size="256"/>
  735. </ColumnInfo>
  736. <Rows>
  737. <Row>
  738. <Col id="check"/>
  739. <Col id="termcd"/>
  740. <Col id="termengnm"/>
  741. <Col id="termhngnm"/>
  742. </Row>
  743. </Rows>
  744. </Dataset>
  745. <Dataset id="ds_main_indxlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  746. <ColumnInfo>
  747. <Column id="depth" type="STRING" size="256"/>
  748. <Column id="indxcd" type="STRING" size="256"/>
  749. <Column id="upindxcd" type="STRING" size="256"/>
  750. <Column id="indxhngnm" type="STRING" size="256"/>
  751. <Column id="pathcd" type="STRING" size="256"/>
  752. </ColumnInfo>
  753. <Rows>
  754. <Row>
  755. <Col id="depth"/>
  756. <Col id="indxcd"/>
  757. <Col id="upindxcd"/>
  758. <Col id="indxhngnm"/>
  759. <Col id="pathcd"/>
  760. </Row>
  761. </Rows>
  762. </Dataset>
  763. <Dataset id="ds_main_seqcd_seq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  764. <ColumnInfo>
  765. <Column id="indxcd" type="STRING" size="256"/>
  766. <Column id="cccd" type="STRING" size="256"/>
  767. <Column id="termcd" type="STRING" size="256"/>
  768. </ColumnInfo>
  769. <Rows>
  770. <Row>
  771. <Col id="indxcd"/>
  772. <Col id="cccd"/>
  773. <Col id="termcd"/>
  774. </Row>
  775. </Rows>
  776. </Dataset>
  777. <Dataset id="ds_init_func_trvmouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  778. <ColumnInfo>
  779. <Column id="hardcdnm" type="STRING" size="256"/>
  780. <Column id="hardcd" type="STRING" size="256"/>
  781. </ColumnInfo>
  782. <Rows>
  783. <Row>
  784. <Col id="hardcdnm">붙여넣기</Col>
  785. <Col id="hardcd">fPasteIndx</Col>
  786. </Row>
  787. </Rows>
  788. </Dataset>
  789. <Dataset id="ds_init_func_mouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  790. <ColumnInfo>
  791. <Column id="hardcdnm" type="STRING" size="256"/>
  792. <Column id="hardcd" type="STRING" size="256"/>
  793. </ColumnInfo>
  794. <Rows>
  795. <Row>
  796. <Col id="hardcdnm">색인변경</Col>
  797. <Col id="hardcd">fModifyIndx</Col>
  798. </Row>
  799. </Rows>
  800. </Dataset>
  801. <Dataset id="ds_init_M0534selcmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  802. <ColumnInfo>
  803. <Column id="M0534" type="STRING" size="256"/>
  804. </ColumnInfo>
  805. <Rows>
  806. <Row>
  807. <Col id="M0534"/>
  808. </Row>
  809. </Rows>
  810. </Dataset>
  811. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  812. <ColumnInfo>
  813. <Column id="today" type="STRING" size="256"/>
  814. <Column id="curruntTime" type="STRING" size="256"/>
  815. </ColumnInfo>
  816. <Rows>
  817. <Row>
  818. <Col id="today"/>
  819. <Col id="curruntTime"/>
  820. </Row>
  821. </Rows>
  822. </Dataset>
  823. <Dataset id="ds_init_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  824. <ColumnInfo>
  825. <Column id="userid" type="STRING" size="256"/>
  826. <Column id="usernm" type="STRING" size="256"/>
  827. <Column id="instcd" type="STRING" size="256"/>
  828. </ColumnInfo>
  829. <Rows>
  830. <Row>
  831. <Col id="userid"/>
  832. <Col id="usernm"/>
  833. <Col id="instcd"/>
  834. </Row>
  835. </Rows>
  836. </Dataset>
  837. <Dataset id="ds_init_M0534allcmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  838. <ColumnInfo>
  839. <Column id="M0534" type="STRING" size="256"/>
  840. </ColumnInfo>
  841. <Rows>
  842. <Row>
  843. <Col id="M0534"/>
  844. </Row>
  845. </Rows>
  846. </Dataset>
  847. <Dataset id="ds_init_M0534" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  848. <ColumnInfo>
  849. <Column id="M0534" type="STRING" size="256"/>
  850. </ColumnInfo>
  851. <Rows>
  852. <Row>
  853. <Col id="M0534"/>
  854. </Row>
  855. </Rows>
  856. </Dataset>
  857. <Dataset id="ds_hidden_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  858. <Dataset id="ds_hidden_condition_deptset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  859. <ColumnInfo>
  860. <Column id="srchflag" type="STRING" size="256"/>
  861. <Column id="selecteddeptcd" type="STRING" size="256"/>
  862. <Column id="selecteddeptnm" type="STRING" size="256"/>
  863. <Column id="srchnm" type="STRING" size="256"/>
  864. </ColumnInfo>
  865. <Rows>
  866. <Row>
  867. <Col id="srchflag">H</Col>
  868. <Col id="selecteddeptcd"/>
  869. <Col id="selecteddeptnm"/>
  870. <Col id="srchnm"/>
  871. </Row>
  872. </Rows>
  873. </Dataset>
  874. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  875. <ColumnInfo>
  876. <Column id="send" type="STRING" size="256"/>
  877. <Column id="rtn" type="STRING" size="256"/>
  878. </ColumnInfo>
  879. <Rows>
  880. <Row>
  881. <Col id="send"/>
  882. <Col id="rtn"/>
  883. </Row>
  884. </Rows>
  885. </Dataset>
  886. <Dataset id="ds_hidden_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  887. <ColumnInfo>
  888. <Column id="srchflag" type="STRING" size="256"/>
  889. <Column id="srchnm" type="STRING" size="256"/>
  890. <Column id="indxflag" type="STRING" size="256"/>
  891. <Column id="selctedmode" type="STRING" size="256"/>
  892. <Column id="status" type="STRING" size="256"/>
  893. <Column id="selectedIndx" type="STRING" size="256"/>
  894. <Column id="selectedIndxDepth" type="STRING" size="256"/>
  895. <Column id="selectedtermcd" type="STRING" size="256"/>
  896. <Column id="selectedIndxPath" type="STRING" size="256"/>
  897. <Column id="indxviewmode" type="STRING" size="256"/>
  898. <Column id="srchindxcd" type="STRING" size="256"/>
  899. <Column id="sametermmode" type="STRING" size="256"/>
  900. <Column id="srchfromdd" type="STRING" size="256"/>
  901. <Column id="srchtodd" type="STRING" size="256"/>
  902. <Column id="endflag" type="STRING" size="256"/>
  903. <Column id="allinsthist" type="STRING" size="256"/>
  904. <Column id="selInstcd" type="STRING" size="256"/>
  905. <Column id="maininstyn" type="STRING" size="256"/>
  906. </ColumnInfo>
  907. <Rows>
  908. <Row>
  909. <Col id="srchflag">C</Col>
  910. <Col id="srchnm"/>
  911. <Col id="indxflag">2</Col>
  912. <Col id="selctedmode">D</Col>
  913. <Col id="status">S</Col>
  914. <Col id="selectedIndx"/>
  915. <Col id="selectedIndxDepth"/>
  916. <Col id="selectedtermcd"/>
  917. <Col id="selectedIndxPath"/>
  918. <Col id="indxviewmode">H</Col>
  919. </Row>
  920. </Rows>
  921. </Dataset>
  922. <Dataset id="ds_temp_receive" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  923. <ColumnInfo>
  924. <Column id="cd" type="STRING" size="256"/>
  925. <Column id="engnm" type="STRING" size="256"/>
  926. <Column id="hngnm" type="STRING" size="256"/>
  927. </ColumnInfo>
  928. </Dataset>
  929. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  930. <ColumnInfo>
  931. <Column id="send" type="STRING" size="256"/>
  932. </ColumnInfo>
  933. <Rows>
  934. <Row>
  935. <Col id="send"/>
  936. </Row>
  937. </Rows>
  938. </Dataset>
  939. </Objects>
  940. <Bind>
  941. <BindItem id="item0" compid="switch2.case5.ipt_termupdtid" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstrnm"/>
  942. <BindItem id="item1" compid="switch2.case5.ipt_fstrgsttime" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgsttime"/>
  943. <BindItem id="item2" compid="switch2.case5.ipt_engnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termengnm"/>
  944. <BindItem id="item3" compid="switch2.case5.ipt_fstrgstdate" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstdate"/>
  945. <BindItem id="item4" compid="switch2.case5.ipt_fstrgstdt" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstdt"/>
  946. <BindItem id="item5" compid="switch2.case5.input6" propid="value" datasetid="ds_main_peprterminfo_info" columnid="reprflag"/>
  947. <BindItem id="item6" compid="switch2.case5.ipt_ccattrcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="ccattrcd"/>
  948. <BindItem id="item7" compid="switch2.case5.ipt_termcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termcd"/>
  949. <BindItem id="item8" compid="switch2.case5.ipt_snmdcnptid" propid="value" datasetid="ds_main_peprterminfo_info" columnid="snmdcnptid"/>
  950. <BindItem id="item9" compid="switch2.case5.ipt_snmdcnptnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="snmdcnptnm"/>
  951. <BindItem id="item10" compid="switch2.case5.ipt_icd10cd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="icd10cd"/>
  952. <BindItem id="item11" compid="switch2.case5.opt_ccindxcd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="ccindxcd"/>
  953. <BindItem id="item12" compid="switch2.case5.ipt_termfromdd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termfromdd"/>
  954. <BindItem id="item13" compid="switch2.case5.ipt_termtodd" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termtodd"/>
  955. <BindItem id="item14" compid="switch2.case5.input2" propid="value" datasetid="ds_main_peprterminfo_info" columnid="attrfromdd"/>
  956. <BindItem id="item15" compid="switch2.case5.input3" propid="value" datasetid="ds_main_peprterminfo_info" columnid="attrtodd"/>
  957. <BindItem id="item16" compid="switch2.case5.ipt_hngnm" propid="value" datasetid="ds_main_peprterminfo_info" columnid="termhngnm"/>
  958. <BindItem id="item17" compid="switch2.case5.input7" propid="value" datasetid="ds_main_peprterminfo_info" columnid="fstrgstrid"/>
  959. <BindItem id="item18" compid="switch2.case5.input8" propid="value" datasetid="ds_main_peprterminfo_info" columnid="umlscd"/>
  960. <BindItem id="item19" compid="switch2.case5.cmb_allinsthist" propid="value" datasetid="ds_hidden_condition" columnid="allinsthist"/>
  961. <BindItem id="item20" compid="switch2.case5.rdo_essntermflag" propid="value" datasetid="ds_main_peprterminfo_info" columnid="essntermflag"/>
  962. <BindItem id="item22" compid="switch2.case_deptccinfo.rdo_srchflag" propid="value" datasetid="ds_hidden_condition_deptset" columnid="srchflag"/>
  963. <BindItem id="item23" compid="switch2.case_deptccinfo.ipt_srchnm" propid="value" datasetid="ds_hidden_condition_deptset" columnid="srchnm"/>
  964. <BindItem id="item24" compid="switch2.case_deptccinfo.ipt_deptnm" propid="value" datasetid="ds_hidden_condition_deptset" columnid="selecteddeptnm"/>
  965. <BindItem id="item25" compid="switch2.case_deptccinfo.ipt_deptcd" propid="value" datasetid="ds_hidden_condition_deptset" columnid="selecteddeptcd"/>
  966. <BindItem id="item26" compid="input5" propid="value" datasetid="ds_hidden_condition" columnid="srchnm"/>
  967. <BindItem id="item27" compid="radio2" propid="value" datasetid="ds_hidden_condition" columnid="srchflag"/>
  968. <BindItem id="item28" compid="radio1" propid="value" datasetid="ds_hidden_condition" columnid="indxviewmode"/>
  969. <BindItem id="item29" compid="input1" propid="value" datasetid="ds_hidden_condition" columnid="srchindxcd"/>
  970. <BindItem id="item30" compid="checkbox2" propid="value" datasetid="ds_hidden_condition" columnid="endflag"/>
  971. <BindItem id="item31" compid="ipt_endtodd" propid="value" datasetid="ds_hidden_condition" columnid="srchtodd"/>
  972. <BindItem id="item32" compid="ipt_endfromdd" propid="value" datasetid="ds_hidden_condition" columnid="srchfromdd"/>
  973. <BindItem id="item33" compid="cmb_selInst" propid="value" datasetid="ds_hidden_condition" columnid="selInstcd"/>
  974. </Bind>
  975. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  976. * System Name :
  977. * Job Name :
  978. * Creator :
  979. * Make Date : 2017-12-04
  980. * Description :
  981. *---------------------------------------------------------------------------------------
  982. * Modify Date Modifier Modify Description
  983. *---------------------------------------------------------------------------------------
  984. * 2017-06-19 Live Converter TF->XP
  985. *
  986. *---------------------------------------------------------------------------------------
  987. ****************************************************************************************/
  988. //=======================================================================================
  989. // Lib Include
  990. //---------------------------------------------------------------------------------------
  991. include "com_commonxp::comm_main.xjs";
  992. //include "emr_termmngtxp::SMMRT00300.xjs";
  993. //include "emr_termmngtxp::MRTCommon.xjs";
  994. include "com_departmentcodexp::ZSD001.xjs";
  995. include "com_basiccodexp::ZBC001.xjs";
  996. include "emr_prcpmngtxp::MMO001.xjs";
  997. include "mis_miscommonxp::MIS.xjs";
  998. //=======================================================================================
  999. // Global Form Variable
  1000. //---------------------------------------------------------------------------------------
  1001. var arErrorCode = new HashArray();
  1002. //=======================================================================================
  1003. // Function
  1004. //---------------------------------------------------------------------------------------
  1005. /*-**************************************************************************************
  1006. * Argument : N/A
  1007. * Description :
  1008. ****************************************************************************************/
  1009. function fn_TRMRT00301() {
  1010. ds_main_indxlist_item.clearData();
  1011. var oParam = {};
  1012. oParam.id = "TRMRT00301";
  1013. oParam.service = "termmngtapp.CCTermMngt";
  1014. oParam.method = "reqGetCcIndxList";
  1015. oParam.inds = "req=ds_send";
  1016. oParam.outds = "ds_main_indxlist_item=item";
  1017. oParam.async = false;
  1018. oParam.callback = "cf_TRMRT00301";
  1019. tranf_submit(oParam);
  1020. }
  1021. function cf_TRMRT00301(sSvcId, nErrorCode, sErrorMsg) {
  1022. arErrorCode.push(sSvcId, nErrorCode);
  1023. grdf_expandDepth(trv_ccindx, 1, "indxhngnm");
  1024. }
  1025. /*-**************************************************************************************
  1026. * Argument : N/A
  1027. * Description :
  1028. ****************************************************************************************/
  1029. function fn_TRMRT00306() {
  1030. ds_main_deptcccdlist_deptcccdinfo.clearData();
  1031. var oParam = {};
  1032. oParam.id = "TRMRT00306";
  1033. oParam.service = "termmngtapp.DeptSetMngt";
  1034. oParam.method = "reqGetDeptCCCdList";
  1035. oParam.inds = "reqCond=ds_send";
  1036. oParam.outds = "ds_main_deptcccdlist_deptcccdinfo=deptcccdinfo";
  1037. oParam.async = false;
  1038. oParam.callback = "cf_TRMRT00306";
  1039. tranf_submit(oParam);
  1040. }
  1041. function cf_TRMRT00306(sSvcId, nErrorCode, sErrorMsg) {
  1042. arErrorCode.push(sSvcId, nErrorCode);
  1043. }
  1044. /*-**************************************************************************************
  1045. * Argument : N/A
  1046. * Description :
  1047. ****************************************************************************************/
  1048. function fn_TRMRT00308() {
  1049. var oParam = {};
  1050. oParam.id = "TRMRT00308";
  1051. oParam.service = "termmngtapp.CCTermMngt";
  1052. oParam.method = "reqGetHistTerm";
  1053. oParam.inds = "req=ds_send";
  1054. oParam.outds = "ds_main_cccdhist_list=list ds_main_cccdhist_app=app";
  1055. oParam.async = false;
  1056. oParam.callback = "cf_TRMRT00308";
  1057. tranf_submit(oParam);
  1058. }
  1059. function cf_TRMRT00308(sSvcId, nErrorCode, sErrorMsg) {
  1060. arErrorCode.push(sSvcId, nErrorCode);
  1061. }
  1062. /*-**************************************************************************************
  1063. * Argument : N/A
  1064. * Description :
  1065. ****************************************************************************************/
  1066. function fn_TRMRT00304() {
  1067. var oParam = {};
  1068. oParam.id = "TRMRT00304";
  1069. oParam.service = "termmngtapp.CCTermMngt";
  1070. oParam.method = "reqGetNewCcCd";
  1071. oParam.inds = "req=ds_send";
  1072. oParam.outds = "ds_main_seqcd_seq=seq";
  1073. oParam.async = false;
  1074. oParam.callback = "cf_TRMRT00304";
  1075. tranf_submit(oParam);
  1076. }
  1077. function cf_TRMRT00304(sSvcId, nErrorCode, sErrorMsg) {
  1078. arErrorCode.push(sSvcId, nErrorCode);
  1079. }
  1080. /*-**************************************************************************************
  1081. * Argument : N/A
  1082. * Description :
  1083. ****************************************************************************************/
  1084. function fn_TXMRT00301() {
  1085. var oParam = {};
  1086. oParam.id = "TXMRT00301";
  1087. oParam.service = "termmngtapp.CCTermMngt";
  1088. oParam.method = "reqExeRTerm";
  1089. oParam.inds = "req=ds_send_reqdata";
  1090. oParam.outds = "ds_main_cccdinfo_cccd=cccd";
  1091. oParam.async = false;
  1092. oParam.callback = "cf_TXMRT00301";
  1093. tranf_submit(oParam);
  1094. }
  1095. function cf_TXMRT00301(sSvcId, nErrorCode, sErrorMsg) {
  1096. arErrorCode.push(sSvcId, nErrorCode);
  1097. }
  1098. /*-**************************************************************************************
  1099. * Argument : N/A
  1100. * Description : 탭버튼 클릭시 이벤트
  1101. ****************************************************************************************/
  1102. function fn_tabbtn_onclick() {
  1103. if(switch2.tabindex == 0) {
  1104. fSelCc();
  1105. } else if(switch2.tabindex == 1) {
  1106. fSelDeptDiag();
  1107. }
  1108. }
  1109. function fn_chk_appinst() {
  1110. ds_main_peprterminfo_info.setColumn(0,"appinstcd",String(switch2.case5.chk_appinst.getData()).replace(",","▦"));
  1111. }
  1112. ////////////////////////////////////////////////SMMRT00300.xjs////////////////////////////////////////////////
  1113. /*-**************************************************************************************
  1114. * Argument : N/A
  1115. * Description : 화면을 초기화 한다
  1116. ****************************************************************************************/
  1117. function fInitalize(){
  1118. var currentTime = utlf_getCurrentTime();
  1119. var instcd = sysf_getUserInfo("dutplceinstcd");
  1120. ds_init.setColumn( 0, "today", utlf_getCurrentDate());
  1121. ds_init.setColumn( 0, "curruntTime", currentTime.substr(0,4));
  1122. ds_hidden_condition.setColumn( 0, "selctedmode", "C");
  1123. ds_init_userinfo.setColumn( 0, "userid", sysf_getUserId());
  1124. ds_init_userinfo.setColumn( 0, "usernm", sysf_getUserName());
  1125. ds_init_userinfo.setColumn( 0, "instcd", instcd);
  1126. var arrParam = [{dsNm: "ds_init_M0534", cdGrpId: "M0534"}
  1127. ];
  1128. appf_getCodeList(arrParam);
  1129. ds_init_M0534selcmb.copyData(ds_init_M0534);
  1130. ds_init_M0534allcmb.copyData(ds_init_M0534);
  1131. dsf_addDsItem(ds_init_M0534selcmb, "cdid", "cdnm", "전체", "001", "above");
  1132. dsf_addDsItem(ds_init_M0534selcmb, "cdid", "cdnm", "전체", "-", "above");
  1133. ds_hidden_condition.setColumn( 0, "maininstyn", "N");
  1134. ds_hidden_condition.setColumn( 0, "selInstcd", instcd);
  1135. ds_send.clearData();
  1136. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  1137. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1138. switch2.case5.grd_cchist.setFormatColProperty(1, "size", 0);
  1139. fn_TRMRT00301();
  1140. }
  1141. /*-**************************************************************************************
  1142. * Argument : N/A
  1143. * Description : 버튼 Enable / Disable
  1144. ****************************************************************************************/
  1145. function fDisabled(flag) {
  1146. var maininstyn = ds_hidden_condition.getColumn(0, "maininstyn");
  1147. if(flag == "N" || flag == "M") {
  1148. switch2.case5.ipt_icd10cd.enable = true;
  1149. switch2.case5.btn_icd10cd.enable = true;
  1150. switch2.case5.ipt_hngnm.enable = true;
  1151. switch2.case5.ipt_engnm.enable = true;
  1152. switch2.case5.ipt_termfromdd.enable = true;
  1153. switch2.case5.ipt_ccattrcd.enable = false;
  1154. switch2.case5.ipt_termcd.enable = false;
  1155. if(maininstyn == "Y"){
  1156. switch2.case5.rdo_essntermflag.enable = true;
  1157. }
  1158. if(flag == "M"){
  1159. switch2.case5.ipt_snmdcnptid.enable = false;
  1160. switch2.case5.btn_snmdcnptid.enable = false;
  1161. switch2.case5.btn_snmddescid.enable = false;
  1162. switch2.case5.ipt_termtodd.enable = false;
  1163. if(maininstyn == "Y"){
  1164. switch2.case5.rdo_essntermflag.enable = true;
  1165. }
  1166. } else {
  1167. switch2.case5.ipt_snmdcnptid.enable = true;
  1168. switch2.case5.btn_snmdcnptid.enable = true;
  1169. switch2.case5.btn_snmddescid.enable = true;
  1170. switch2.case5.ipt_termtodd.enable = true;
  1171. if(maininstyn == "Y"){
  1172. switch2.case5.cap_appinst.enable = true;
  1173. switch2.case5.chk_appinst.enable = true;
  1174. switch2.case5.rdo_essntermflag.enable = true;
  1175. }
  1176. }
  1177. } else if(flag == "AS") {
  1178. switch2.case5.ipt_snmdcnptid.enable = false;
  1179. switch2.case5.btn_snmdcnptid.enable = false;
  1180. switch2.case5.btn_snmddescid.enable = false;
  1181. switch2.case5.ipt_icd10cd.enable = false;
  1182. switch2.case5.btn_icd10cd.enable = false;
  1183. switch2.case5.ipt_hngnm.enable = false;
  1184. switch2.case5.ipt_engnm.enable = false;;
  1185. switch2.case5.ipt_termfromdd.enable = false;
  1186. switch2.case5.ipt_termtodd.enable = false;
  1187. switch2.case5.ipt_ccattrcd.enable = false;
  1188. switch2.case5.ipt_termcd.enable = false;
  1189. switch2.case5.chk_appinst.enable = false;
  1190. switch2.case5.rdo_essntermflag.enable = false;
  1191. }
  1192. }
  1193. /*-**************************************************************************************
  1194. * Argument : N/A
  1195. * Description : 부서 선택 팝업 호출
  1196. ****************************************************************************************/
  1197. function fCallDeptInfo(){
  1198. var xCondPath = "ds_hidden_condition";
  1199. ds_main_indxlist_item.clearData();
  1200. ds_main_deptcccdlist_deptcccdinfo.clearData();
  1201. // zbcfOpenInstDeptCodeList("deptnm", model.getValue(xCondPath+"_deptset_selecteddeptnm"), xCondPath+"_deptset_selecteddeptcd", xCondPath+"_deptset_selecteddeptnm", "ordduseryn", "");
  1202. var rtnObj = appf_openInstDeptCodeList("deptnm", "", "ordduseryn", "", "deptcd deptnm");
  1203. dsf_makeValue(this.objects[xCondPath+"_deptset"],"selecteddeptcd","string",rtnObj.deptcd);
  1204. dsf_makeValue(this.objects[xCondPath+"_deptset"],"selecteddeptnm","string",rtnObj.depthngnm);
  1205. if(!utlf_isNull(this.objects[xCondPath+"_deptset"].getColumn(0, "selecteddeptcd"))) {
  1206. ds_send.clearData();
  1207. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1208. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  1209. var oParam = {};
  1210. oParam.id = "TRMRT00305";
  1211. oParam.service = "termmngtapp.DeptSetMngt";
  1212. oParam.method = "reqGetDeptIndxList";
  1213. oParam.inds = "reqCond=ds_send";
  1214. oParam.outds = "ds_main_indxlist_item=item";
  1215. oParam.async = false;
  1216. oParam.callback = "cf_TRMRT00305";
  1217. tranf_submit(oParam);
  1218. if(arErrorCode.pop("TRMRT00305") > -1) {
  1219. ds_main_deptcccdlist_deptcccdinfo.clearData();
  1220. this.objects[xCondPath].setColumn( 0, "selectedIndx", "");
  1221. }
  1222. }
  1223. }
  1224. function cf_TRMRT00305(sSvcId, nErrorCode, sErrorMsg) {
  1225. arErrorCode.push(sSvcId, nErrorCode);
  1226. ds_main_indxlist_item.updateColID("deptindxcd", "indxcd");
  1227. ds_main_indxlist_item.updateColID("deptupindxcd", "upindxcd");
  1228. ds_main_indxlist_item.updateColID("deptindxnm", "indxhngnm");
  1229. grdf_expandDepth(trv_ccindx, 1, "indxhngnm");
  1230. }
  1231. /*-**************************************************************************************
  1232. * Argument : N/A
  1233. * Description : 과주호소 추가시 주호소 조회
  1234. ****************************************************************************************/
  1235. function fSrchCCInfo(){
  1236. var sCondPath = "ds_hidden_condition_deptset";
  1237. var sSrchedCCCdInfoPath = "ds_main_srchedcccdlist_srchedcccdinfo";
  1238. var srchnm = this.objects[sCondPath].getColumn(0, "srchnm");
  1239. srchnm = srchnm.replace(/^\s*|\s*$/g, '');
  1240. ds_send.clearData();
  1241. if(utlf_isNull(this.objects[sCondPath].getColumn(0, "srchnm"))){
  1242. sysf_messageBox("조회할 내용을","C001");
  1243. return;
  1244. }
  1245. this.objects[sSrchedCCCdInfoPath].clearData();
  1246. dsf_makeValue( ds_send, "srchflag", "string", this.objects[sCondPath].getColumn(0, "srchflag"));
  1247. dsf_makeValue( ds_send, "srchnm", "string", srchnm);
  1248. dsf_makeValue( ds_send, "termflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1249. var oParam = {};
  1250. oParam.id = "TRMRT00307";
  1251. oParam.service = "termmngtapp.DeptSetMngt";
  1252. oParam.method = "reqGetSrchedCCCdList";
  1253. oParam.inds = "reqCond=ds_send";
  1254. oParam.outds = "ds_main_srchedcccdlist_srchedcccdinfo=srchedcccdinfo";
  1255. oParam.async = false;
  1256. //oParam.callback = "cf_TRMRT00307";
  1257. tranf_submit(oParam);
  1258. }
  1259. /*-**************************************************************************************
  1260. * Argument : N/A
  1261. * Description : 과주호소에 주호소 추가
  1262. ****************************************************************************************/
  1263. function fSendDeptCC(){
  1264. var sCondPath = "ds_hidden_condition_deptset";
  1265. var sIndxListPath = "ds_main_indxlist_item";
  1266. var sSrchedCCCdListPath = "ds_main_srchedcccdlist_srchedcccdinfo";
  1267. var sDeptCCCdListPath = "ds_main_deptcccdlist_deptcccdinfo";
  1268. var sDeptCd = this.objects[sCondPath].getColumn(0, "selecteddeptcd");
  1269. var sIndxCd = ds_hidden_condition.getColumn(0, "selectedIndx");
  1270. var sSrchedCCRowCnt = ds_main_srchedcccdlist_srchedcccdinfo.rowcount;
  1271. var iDeptCCRow = 0;
  1272. var sTermcd = "";
  1273. if(utlf_isNull(sDeptCd)){
  1274. sysf_messageBox("부서코드를 먼저", "C002");
  1275. return;
  1276. }
  1277. if(utlf_isNull(sIndxCd)){
  1278. sysf_messageBox("색인코드를 먼저", "C002");
  1279. return;
  1280. }
  1281. for(var iSrchedCCRow = 0; iSrchedCCRow < sSrchedCCRowCnt; iSrchedCCRow++) {
  1282. if(this.objects[sSrchedCCCdListPath].getColumn(iSrchedCCRow, "check") == "Y"){
  1283. sTermcd = this.objects[sSrchedCCCdListPath].getColumn(iSrchedCCRow, "termcd");
  1284. if(!utlf_isNull(this.objects[sDeptCCCdListPath].lookupExpr("termcd == '"+sTermcd+"' && deptindxcd = '"+sIndxCd+"'", "termcd"))) continue;
  1285. var iDeptCCRow = switch2.case_deptccinfo.grd_deptcc.addRow();
  1286. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "status", "I");
  1287. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "deptcd", sDeptCd);
  1288. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "deptnm", this.objects[sCondPath].getColumn(0, "selecteddeptnm"));
  1289. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "termcd", sTermcd);
  1290. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "deptindxcd", sIndxCd);
  1291. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "termengnm", this.objects[sSrchedCCCdListPath].getColumn(iSrchedCCRow, "termengnm"));
  1292. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "termhngnm", this.objects[sSrchedCCCdListPath].getColumn(iSrchedCCRow, "termhngnm"));
  1293. this.objects[sDeptCCCdListPath].setColumn( iDeptCCRow, "deptindxflag", ds_hidden_condition.getColumn(0, "indxflag"));
  1294. }
  1295. }
  1296. }
  1297. /*-**************************************************************************************
  1298. * Argument : N/A
  1299. * Description : 과주호소 저장
  1300. ****************************************************************************************/
  1301. function fSaveDeptCCInfo(){
  1302. var xCondPath = "ds_hidden_condition";
  1303. var sSelIndxCd = this.objects[xCondPath].getColumn(0, "selectedIndx");
  1304. ds_send.clearData();
  1305. dsf_makeValue( ds_send, "indxcd", "string", sSelIndxCd);
  1306. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1307. dsf_makeValue( ds_send, "deptcd", "string", model.getValue(xCondPath+"_deptset_selecteddeptcd"));
  1308. dsf_createDs("ds_send_deptcccdlist");
  1309. ds_send_deptcccdlist.copyData(grdf_getGridUpdateData(switch2.case_deptccinfo.grd_deptcc, "all"), true);
  1310. var oParam = {};
  1311. oParam.id = "TXMRT00302";
  1312. oParam.service = "termmngtapp.DeptSetMngt";
  1313. oParam.method = "reqExeDeptCCCdList";
  1314. oParam.inds = "reqCond=ds_send deptcccdlist=ds_send_deptcccdlist";
  1315. oParam.outds = "ds_main_deptcccdlist_deptcccdinfo=deptcccdinfo";
  1316. oParam.async = false;
  1317. //oParam.callback = "cf_TXMRT00302";
  1318. tranf_submit(oParam);
  1319. }
  1320. /*-**************************************************************************************
  1321. * Argument : N/A
  1322. * Description : 전체주호소 팝업 호출
  1323. ****************************************************************************************/
  1324. function fCallExtnCCInfo(){
  1325. frmf_setParameter("indxflag", ds_hidden_condition.getColumn(0, "indxflag"));
  1326. frmf_modal("SPMRT01000", "SPMRT01000", "", "", 1, 10, 10, "", "", "", "", "", "M");
  1327. }
  1328. /*-**************************************************************************************
  1329. * Argument : N/A
  1330. * Description : 주호소 선택
  1331. ****************************************************************************************/
  1332. function fSelCc(){
  1333. ds_hidden_condition.setColumn( 0, "selctedmode", "C");
  1334. ds_send.clearData();
  1335. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  1336. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1337. fn_TRMRT00301();
  1338. }
  1339. /*-**************************************************************************************
  1340. * Argument : N/A
  1341. * Description : 주호소 신규
  1342. ****************************************************************************************/
  1343. function fSetNewCc(){
  1344. var iRow = switch2.case5.grd_cccd.currentrow;
  1345. var sIndx = ds_hidden_condition.getColumn(0, "selectedIndx"); //선택한 색인(무조건 선택되어야 함)
  1346. var sGrd = ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd"); //그리드 중 주호소코드 하나를 선택했다면 sccccd가 존재함
  1347. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  1348. if(utlf_isNull(sIndx)){
  1349. var rtn = sysf_messageBox("색인을 ", "C002");
  1350. return;
  1351. }
  1352. ds_main_cccdhist_list.clearData(); // 신규버튼 클릭시 이력조회 그리드 초기화
  1353. fDisabled("N");
  1354. switch2.case5.btn_delete1.enable = false;
  1355. ds_send.clearData();
  1356. ds_main_seqcd_seq.clearData();
  1357. if(!utlf_isNull(sGrd)) {
  1358. sIndx = ds_main_cccdinfo_cccd.getColumn(iRow, "ccindxcd");
  1359. }
  1360. dsf_makeValue( ds_send, "indxcd", "string", sIndx);
  1361. dsf_makeValue( ds_send, "attrcd", "string", ds_main_peprterminfo_info.getColumn(0, "ccattrcd"));
  1362. fn_TRMRT00304();
  1363. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  1364. ds_main_peprterminfo_info.setColumn( 0, "ccindxcd", ds_main_seqcd_seq.getColumn(0, "indxcd"));
  1365. ds_main_peprterminfo_info.setColumn( 0, "ccattrcd", ds_main_peprterminfo_info.getColumn(0, "snmdcnptid"));
  1366. ds_main_peprterminfo_info.setColumn( 0, "termcd", ds_main_seqcd_seq.getColumn(0, "termcd"));
  1367. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_init_userinfo.getColumn(0, "userid"));
  1368. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrnm", ds_init_userinfo.getColumn(0, "usernm"));
  1369. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", ds_init.getColumn(0, "today"));
  1370. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", ds_init.getColumn(0, "curruntTime"));
  1371. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate")+ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00");
  1372. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", fromdd.getDateFormat());
  1373. ds_main_peprterminfo_info.setColumn( 0, "termtodd", "99991231");
  1374. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1375. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_peprterminfo_info.getColumn(0, "termtodd"));
  1376. ds_main_peprterminfo_info.setColumn( 0, "essntermflag", "N");
  1377. ds_hidden_condition.setColumn( 0, "status", "N"); //new insert mode
  1378. }
  1379. /*-**************************************************************************************
  1380. * Argument : N/A
  1381. * Description : 주호소 수정
  1382. ****************************************************************************************/
  1383. function fSetCcUpdt(){
  1384. var selTermcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  1385. var selCcattrcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd");
  1386. var fromdd = ((utlf_getCurrentDate()).toDate()).getAddDate(1);
  1387. fDisabled("M");
  1388. switch2.case5.btn_delete1.enable = false;
  1389. if(utlf_isNull(selTermcd) || utlf_isNull(selCcattrcd)){
  1390. var rtn = sysf_messageBox("수정할 주호소를 ", "C002");
  1391. return;
  1392. }
  1393. if(ds_main_peprterminfo_info.getColumn(0, "termfromdd") == ds_init.getColumn(0, "today")) {
  1394. var rtn = sysf_messageBox("당일 등록한 용어는 수정 ", "E001");
  1395. return;
  1396. }
  1397. ds_hidden_condition.setColumn( 0, "status", "M");
  1398. dsf_makeValue( ds_main_peprterminfo_info, "oldtermfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1399. dsf_makeValue( ds_main_peprterminfo_info, "oldattrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  1400. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", fromdd.getDateFormat());
  1401. ds_main_peprterminfo_info.setColumn( 0, "termtodd", "99991231");
  1402. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1403. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_peprterminfo_info.getColumn(0, "termtodd"));
  1404. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", utlf_getCurrentDate());
  1405. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", utlf_getCurrentTime());
  1406. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrnm", sysf_getUserName());
  1407. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_init_userinfo.getColumn(0, "userid"));
  1408. }
  1409. /*-**************************************************************************************
  1410. * Argument : N/A
  1411. * Description : 주호소 저장
  1412. ****************************************************************************************/
  1413. function fSaveCcTerm(){
  1414. var insCcindxcd = ds_main_peprterminfo_info.getColumn(0, "ccindxcd");
  1415. var insCcattrcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd");
  1416. var snmdcnptid = ds_main_peprterminfo_info.getColumn(0, "snmdcnptid");
  1417. var insTermcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd") + "." + ds_main_peprterminfo_info.getColumn(0, "termcd");
  1418. var rowCnt = ds_main_cccdinfo_cccd.rowposition;
  1419. if(utlf_isNull(insTermcd)) {
  1420. sysf_messageBox("용어코드는", "I003");
  1421. return;
  1422. } else if(utlf_isNull(snmdcnptid)) {
  1423. sysf_messageBox("SNMD-conceptID는", "I003");
  1424. return;
  1425. }
  1426. ds_send.clearData();
  1427. dsf_createDs("ds_send_reqdata");
  1428. ds_send_reqdata.copyData(ds_main_peprterminfo_info);
  1429. ds_send_reqdata.setColumn( 0, "ccindxcd", insCcindxcd);
  1430. ds_send_reqdata.setColumn( 0, "ccattrcd", insCcattrcd);
  1431. ds_send_reqdata.setColumn( 0, "termcd", insTermcd);
  1432. ds_send_reqdata.setColumn( 0, "termfromdd", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1433. ds_send_reqdata.setColumn( 0, "termtodd", ds_main_peprterminfo_info.getColumn(0, "termtodd"));
  1434. ds_send_reqdata.setColumn( 0, "termflag", "2"); //defalut :주호소(2)
  1435. ds_send_reqdata.setColumn( 0, "reprflag", "R");
  1436. dsf_makeValue( ds_send_reqdata, "status", "string", ds_hidden_condition.getColumn(0, "status")); //N:등록, M:수정
  1437. dsf_makeValue( ds_send_reqdata, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  1438. dsf_makeValue( ds_send_reqdata, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  1439. dsf_makeValue( ds_send_reqdata, "fstrgstdt", "string", ds_main_peprterminfo_info.getColumn(0, "fstrgstdate") + ds_main_peprterminfo_info.getColumn(0, "fstrgsttime")+"00");
  1440. if(ds_hidden_condition.getColumn(0, "status") == "N") {
  1441. //동일한 코드가 있는지 조회한 후 , 있으면 에러메세지
  1442. fn_TXMRT00301();
  1443. if(arErrorCode.pop("TXMRT00301") > -1) {
  1444. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  1445. fDisabled("AS");
  1446. }
  1447. } else if(ds_hidden_condition.getColumn(0, "status") == "M" || insTermcd == ds_main_cccdinfo_cccd.getColumn(rowCnt, "termcd")) {
  1448. if(ds_main_cccdinfo_cccd.getColumn(rowCnt, "termengnm") != ds_main_peprterminfo_info.getColumn(0, "termengnm") ||
  1449. ds_main_cccdinfo_cccd.getColumn(rowCnt, "termhngnm") != ds_main_peprterminfo_info.getColumn(0, "termhngnm")) {
  1450. if(ds_main_cccdinfo_cccd.getColumn(rowCnt, "icd10cd") != ds_main_peprterminfo_info.getColumn(0, "icd10cd"))
  1451. {
  1452. ds_send_reqdata.setColumn( 0, "status", "ATM");
  1453. } else {
  1454. ds_send_reqdata.setColumn( 0, "status", "TM");
  1455. }
  1456. fn_TXMRT00301();
  1457. if(arErrorCode.pop("TXMRT00301") > -1) {
  1458. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  1459. fDisabled("AS");
  1460. }
  1461. ds_hidden_condition.setColumn( 0, "status", "");
  1462. } else if(ds_main_cccdinfo_cccd.getColumn(rowCnt, "icd10cd") != ds_main_peprterminfo_info.getColumn(0, "icd10cd") ||
  1463. ds_main_cccdinfo_cccd.getColumn(rowCnt, "snmdcnptid") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptid") ||
  1464. ds_main_cccdinfo_cccd.getColumn(rowCnt, "snmdcnptnm") != ds_main_peprterminfo_info.getColumn(0, "snmdcnptnm")) {
  1465. ds_send_reqdata.setColumn( 0, "status", "AM");
  1466. fn_TXMRT00301();
  1467. if(arErrorCode.pop("TXMRT00301") > -1) {
  1468. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  1469. fDisabled("AS");
  1470. ds_hidden_condition.setColumn( 0, "status", "");
  1471. }
  1472. } else {
  1473. var rtn = sysf_messageBox("변경된 내용이 없으므로 저장 ", "E001");
  1474. return;
  1475. }
  1476. }
  1477. }
  1478. /*-**************************************************************************************
  1479. * Argument : N/A
  1480. * Description : 주호소 사용종료
  1481. ****************************************************************************************/
  1482. function fEndCcTerm(){
  1483. var iRow = switch2.case5.grd_cccd.currentrow;
  1484. var ccattr = ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd");
  1485. var term = ds_main_cccdinfo_cccd.getColumn(iRow, "termcd");
  1486. var insccindxcd = ds_main_peprterminfo_info.getColumn(0, "ccindxcd");
  1487. var insccattrcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd");
  1488. var insTermcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd")+"."+ ds_main_peprterminfo_info.getColumn(0, "termcd");
  1489. if(utlf_isNull(insTermcd) || utlf_isNull(insccattrcd)) {
  1490. var rtn = sysf_messageBox("삭제할 주호소용어를 ", "C002");
  1491. return;
  1492. }
  1493. if(insccattrcd == ccattr && insTermcd == term) {
  1494. ds_hidden_condition.setColumn( 0, "status", "ATD");
  1495. ds_send.clearData();
  1496. dsf_makeValue( ds_send_reqdata, "indxcd", "string", insccindxcd);
  1497. dsf_makeValue( ds_send_reqdata, "ccattrcd", "string", insccattrcd);
  1498. dsf_makeValue( ds_send_reqdata, "termcd", "string", insTermcd);
  1499. dsf_makeValue( ds_send_reqdata, "status", "string", ds_hidden_condition.getColumn(0, "status")); //N:등록, M:수정, D:삭제
  1500. dsf_makeValue( ds_send_reqdata, "termflag", "string", "2"); //용어구분
  1501. dsf_makeValue( ds_send_reqdata, "oldtermfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1502. dsf_makeValue( ds_send_reqdata, "termfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "termfromdd"));
  1503. dsf_makeValue( ds_send_reqdata, "oldattrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  1504. dsf_makeValue( ds_send_reqdata, "attrfromdd", "string", ds_main_peprterminfo_info.getColumn(0, "attrfromdd"));
  1505. fn_TXMRT00301();
  1506. ds_main_peprterminfo_info.clearData(); ds_main_peprterminfo_info.addRow();
  1507. ds_hidden_condition.setColumn( 0, "status", "");
  1508. } else {
  1509. var rtn = sysf_messageBox("내용이 수정되었습니다. 수정 내용을 저장하시려면 저장 버튼을 ", "C002");
  1510. return;
  1511. }
  1512. }
  1513. /*-**************************************************************************************
  1514. * Argument : N/A
  1515. * Description : 주호소 선택
  1516. ****************************************************************************************/
  1517. function fSelCcTerm(){
  1518. fDisabled("AS");
  1519. var sametermmode = ds_hidden_condition.getColumn(0, "sametermmode");
  1520. if(sametermmode != "H"){
  1521. switch2.case5.btn_delete1.enable = true;
  1522. }
  1523. var iRow = switch2.case5.grd_cccd.currentrow;
  1524. var ccindx = ds_main_cccdinfo_cccd.getColumn(iRow, "ccindxcd");
  1525. var ccattr = ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd");
  1526. var term = ds_main_cccdinfo_cccd.getColumn(iRow, "termcd");
  1527. ds_hidden_condition.setColumn( 0, "selectedtermcd", term);
  1528. ds_main_peprterminfo_info.setColumn( 0, "ccindxcd", ccindx); // 색인코드
  1529. ds_main_peprterminfo_info.setColumn( 0, "ccattrcd", ccattr); // 속성코드
  1530. ds_main_peprterminfo_info.setColumn( 0, "termcd", term.substr(term.lastIndexOf(".") + 1, term.length - (term.lastIndexOf(".") + 1))); // 대표 주호소 코드
  1531. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptid", ds_main_cccdinfo_cccd.getColumn(iRow, "snmdcnptid")); // 스노메드-cncpt
  1532. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptnm", ds_main_cccdinfo_cccd.getColumn(iRow, "snmdcnptnm")); // 스노메드-cncpt명
  1533. ds_main_peprterminfo_info.setColumn( 0, "snmddescid", ds_main_cccdinfo_cccd.getColumn(iRow, "snmddescid")); // 스노메드-dscrpt
  1534. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", ds_main_cccdinfo_cccd.getColumn(iRow, "icd10cd")); // ICD10CD
  1535. ds_main_peprterminfo_info.setColumn( 0, "umlscd", ds_main_cccdinfo_cccd.getColumn(iRow, "umlscd")); // ICD10CD
  1536. ds_main_peprterminfo_info.setColumn( 0, "termengnm", ds_main_cccdinfo_cccd.getColumn(iRow, "termengnm")); // 영문
  1537. ds_main_peprterminfo_info.setColumn( 0, "termhngnm", ds_main_cccdinfo_cccd.getColumn(iRow, "termhngnm")); // 한글
  1538. ds_main_peprterminfo_info.setColumn( 0, "reprflag", ds_main_cccdinfo_cccd.getColumn(iRow, "reprflag")); // 대표어구분
  1539. ds_main_peprterminfo_info.setColumn( 0, "termflag", ds_main_cccdinfo_cccd.getColumn(iRow, "termflag")); // 용어구분
  1540. //ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_main_cccdinfo_cccd.getColumn(iRow, "fstrgstrid")); // 등록자
  1541. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_main_cccdinfo_cccd.getColumn(iRow, "lastupdtrid")); //
  1542. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrnm", ds_main_cccdinfo_cccd.getColumn(iRow, "lastupdtrnm"));
  1543. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_cccdinfo_cccd.getColumn(iRow, "attrfromdd"));
  1544. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_cccdinfo_cccd.getColumn(iRow, "attrtodd"));
  1545. ds_main_peprterminfo_info.setColumn( 0, "essntermflag", ds_main_cccdinfo_cccd.getColumn(iRow, "essntermflag"));
  1546. var fstrgstdt = ds_main_cccdinfo_cccd.getColumn(iRow, "fstrgstdt");
  1547. var termfromdd = ds_main_cccdinfo_cccd.getColumn(iRow, "termfromdd");
  1548. var termtodd = ds_main_cccdinfo_cccd.getColumn(iRow, "termtodd");
  1549. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", fstrgstdt); // 등록일
  1550. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", fstrgstdt.substr(0,8));
  1551. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", fstrgstdt.substr(8,4));
  1552. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", termfromdd); // 시작일
  1553. ds_main_peprterminfo_info.setColumn( 0, "termtodd", termtodd); // 종료일
  1554. ds_send.clearData();
  1555. dsf_makeValue( ds_send, "ccattrcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd"));
  1556. dsf_makeValue( ds_send, "termcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "termcd"));
  1557. dsf_makeValue( ds_send, "termflag", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "termflag"));
  1558. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  1559. dsf_makeValue( ds_send, "allinsthist", "string", ds_hidden_condition.getColumn(0, "allinsthist"));
  1560. fn_TRMRT00308();
  1561. ds_main_peprterminfo_info.setColumn( 0, "appinstcd", ds_main_cccdhist_appinstcd.getColumn(0, "appinstcd"));
  1562. }
  1563. /*-**************************************************************************************
  1564. * Argument : N/A
  1565. * Description : 주호소 선택
  1566. ****************************************************************************************/
  1567. function fGetSNMDCT(){
  1568. var iRow = switch2.case5.grd_cccd.currentrow;
  1569. var sIndx = ds_hidden_condition.getColumn(0, "selectedIndx");
  1570. var sGrd = ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd"); //그리드 중 주호소코드 하나를 선택했다면 sccccd가 존재함
  1571. ds_main_peprterminfo_info.setColumn( 0, "ccattrcd", ds_main_peprterminfo_info.getColumn(0, "snmdcnptid"));
  1572. if(!utlf_isNull(sGrd)) {
  1573. sIndx = ds_main_cccdinfo_cccd.getColumn(iRow, "ccindxcd");
  1574. }
  1575. dsf_makeValue( ds_send, "indxcd", "string", sIndx);
  1576. dsf_makeValue( ds_send, "attrcd", "string", ds_main_peprterminfo_info.getColumn(0, "ccattrcd"));
  1577. //선택한 색인에 해당하는 시퀀셜한 주호소코드를 가지고 온다
  1578. fn_TRMRT00304();
  1579. ds_main_peprterminfo_info.setColumn( 0, "termcd", ds_main_seqcd_seq.getColumn(0, "termcd"));
  1580. }
  1581. /*-**************************************************************************************
  1582. * Argument : N/A
  1583. * Description : ICD10 팝업 호출
  1584. ****************************************************************************************/
  1585. function fGetICD10(){
  1586. frmf_setParameter("SPMMO3200_param_nodepath", "ds_temp_diaginfo_selectdiaglist");
  1587. frmf_modal("SPMMO03200", "SPMMO03200", "", "", 1, 0, 0, "", "", "", "", "", "M");
  1588. if(ds_temp_diaginfo_selectdiaglist.rowcount > 1){
  1589. sysf_messageBox("진단코드는 하나만", "C002");
  1590. ds_temp_diaginfo_selectdiaglist.clearData(); ds_temp_diaginfo_selectdiaglist.addRow();
  1591. return;
  1592. }
  1593. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", ds_temp_diaginfo_selectdiaglist.getColumn(0, "diagcd"));
  1594. }
  1595. /*-**************************************************************************************
  1596. * Argument : N/A
  1597. * Description : 주호소 이력 선택
  1598. ****************************************************************************************/
  1599. function fSelCcTermHist(){
  1600. var iRow = switch2.case5.grd_cchist.currentrow;
  1601. var indx = ds_hidden_condition.getColumn(0, "selectedIndx");
  1602. var path = ds_hidden_condition.getColumn(0, "selectedIndxPath");
  1603. var term = ds_main_cccdhist_list.getColumn(iRow, "termcd");
  1604. ds_hidden_condition.setColumn( 0, "selectedtermcd", term);
  1605. if( !utlf_isNull(iRow) ){
  1606. ds_hidden_condition.setColumn( 0, "status", "STM");
  1607. ds_main_peprterminfo_info.setColumn( 0, "ccindxcd", indx); //icd9
  1608. ds_main_peprterminfo_info.setColumn( 0, "ccattrcd", ds_main_cccdhist_list.getColumn(0, "attrcd")); // 확장코드
  1609. ds_main_peprterminfo_info.setColumn( 0, "termcd", term.substr(term.lastIndexOf(".") + 1, term.length - (term.lastIndexOf(".") + 1))); // 대표어(동의어)코드
  1610. ds_main_peprterminfo_info.setColumn( 0, "snmddescid", ds_main_cccdhist_list.getColumn(0, "snmddescid")); // 스노메드-dscrpt
  1611. ds_main_peprterminfo_info.setColumn( 0, "termengnm", ds_main_cccdhist_list.getColumn(iRow, "termengnm")); // 영문
  1612. ds_main_peprterminfo_info.setColumn( 0, "termhngnm", ds_main_cccdhist_list.getColumn(iRow, "termhngnm")); // 한글
  1613. ds_main_peprterminfo_info.setColumn( 0, "reprflag", ds_main_cccdhist_list.getColumn(iRow, "reprflag")); // 대표어구분
  1614. ds_main_peprterminfo_info.setColumn( 0, "termflag", ds_main_cccdhist_list.getColumn(iRow, "termflag")); // 용어구분
  1615. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrid", ds_main_cccdhist_list.getColumn(iRow, "lastupdtrid"));
  1616. ds_main_peprterminfo_info.setColumn( 0, "fstrgstrnm", ds_main_cccdhist_list.getColumn(iRow, "lastupdtrnm"));
  1617. //저장시 필요한 키값
  1618. ds_main_peprterminfo_info.setColumn( 0, "attrfromdd", ds_main_cccdhist_list.getColumn(iRow, "attrfromdd"));
  1619. ds_main_peprterminfo_info.setColumn( 0, "attrtodd", ds_main_cccdhist_list.getColumn(iRow, "attrtodd"));
  1620. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptid", ds_main_cccdhist_list.getColumn(iRow, "snmdcnptid")); // snmdconceptid
  1621. ds_main_peprterminfo_info.setColumn( 0, "snmdcnptnm", ds_main_cccdhist_list.getColumn(iRow, "snmdcnptnm"));
  1622. ds_main_peprterminfo_info.setColumn( 0, "icd10cd", ds_main_cccdhist_list.getColumn(iRow, "icd10cd")); //icd10cd
  1623. ds_main_peprterminfo_info.setColumn( 0, "umlscd", ds_main_cccdhist_list.getColumn(iRow, "umlscd")); //icd10cd
  1624. var fstrgstdt = ds_main_cccdhist_list.getColumn(iRow, "lastupdtdt");
  1625. var termfromdd = ds_main_cccdhist_list.getColumn(iRow, "termfromdd");
  1626. var termtodd = ds_main_cccdhist_list.getColumn(iRow, "termtodd");
  1627. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdt", fstrgstdt); // 등록일
  1628. ds_main_peprterminfo_info.setColumn( 0, "fstrgstdate", fstrgstdt.substr(0,8));
  1629. ds_main_peprterminfo_info.setColumn( 0, "fstrgsttime", fstrgstdt.substr(8,4));
  1630. ds_main_peprterminfo_info.setColumn( 0, "termfromdd", termfromdd); // 시작일
  1631. ds_main_peprterminfo_info.setColumn( 0, "termtodd", termtodd); // 종료일
  1632. }
  1633. }
  1634. /*-**************************************************************************************
  1635. * Argument : N/A
  1636. * Description : 선택부서 과주호소 조회
  1637. ****************************************************************************************/
  1638. function fSrchDeptCcInfo(){
  1639. ds_send.clearData();
  1640. var selIndxCd = ds_hidden_condition.getColumn(0, "selectedIndx");
  1641. var sDeptCd = ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd");
  1642. if(utlf_isNull(sDeptCd)) {
  1643. sysf_messageBox("부서코드를 먼저", "C002");
  1644. return;
  1645. }
  1646. if(utlf_isNull(selIndxCd)) {
  1647. sysf_messageBox("색인코드를 먼저", "C002");
  1648. return;
  1649. }
  1650. dsf_makeValue( ds_send, "indxcd", "string", selIndxCd);
  1651. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1652. dsf_makeValue( ds_send, "deptcd", "string", sDeptCd);
  1653. fn_TRMRT00306();
  1654. }
  1655. /*-**************************************************************************************
  1656. * Argument : N/A
  1657. * Description : 선택부서 과주호소 삭제
  1658. ****************************************************************************************/
  1659. function fDelDeptCcTerm(){
  1660. var iRow = switch2.case_deptccinfo.grd_deptcc.currentrow;
  1661. if(iRow < 0){
  1662. return;
  1663. }
  1664. if(ds_main_deptcccdlist_deptcccdinfo.getColumn(iRow, "status") == "I"){
  1665. ds_main_deptcccdlist_deptcccdinfo.deleteRow(iRow);
  1666. }else{
  1667. ds_main_deptcccdlist_deptcccdinfo.setColumn(iRow , "status", "D");
  1668. }
  1669. }
  1670. /*-**************************************************************************************
  1671. * Argument : N/A
  1672. * Description : 과주호소추가 리스트 선택
  1673. ****************************************************************************************/
  1674. function fSelAddCcList(){
  1675. // if(switch2.case_deptccinfo.grd_srchedccinfo.currentrow == 0){
  1676. // var sCheck = ds_main_srchedcccdlist_srchedcccdinfo.getColumn(0, "check");
  1677. // if(sCheck == "true"){
  1678. // var sRowCnt = switch2.case_deptccinfo.grd_srchedccinfo.rows- switch2.case_deptccinfo.grd_srchedccinfo.fixedRows;
  1679. // for(var iRow=1; iRow <= sRowCnt; iRow++){
  1680. // ds_main_srchedcccdlist.setColumn( iRow , "check","false");
  1681. // }
  1682. // }else{
  1683. // var sRowCnt = switch2.case_deptccinfo.grd_srchedccinfo.rows- switch2.case_deptccinfo.grd_srchedccinfo.fixedRows;
  1684. // for(var iRow=1; iRow <= sRowCnt; iRow++){
  1685. // ds_main_srchedcccdlist.setColumn( iRow , "check","true");
  1686. // }
  1687. // }
  1688. // switch2.case_deptccinfo.grd_srchedccinfo.rebuild();
  1689. // }
  1690. }
  1691. /*-**************************************************************************************
  1692. * Argument : N/A
  1693. * Description : 색인추가
  1694. ****************************************************************************************/
  1695. function fAddIndx(){
  1696. ds_send.clearData();
  1697. dsf_makeValue( ds_send, "paramindx", "string", "2");
  1698. var objArg = new Object();
  1699. objArg.arg_ds_hidden_condition_getdata = ds_send;
  1700. frmf_modal("SMMRT00100", "SMMRT00100", objArg, "", 1, 10, 10, "", "", "", "", "", "M");
  1701. var child = "SMMRT00100";
  1702. if(!utlf_isNull(child)){
  1703. ds_send.clearData();
  1704. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  1705. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1706. fn_TRMRT00301();
  1707. }
  1708. }
  1709. /*-**************************************************************************************
  1710. * Argument : N/A
  1711. * Description : 색인 언어 변경
  1712. ****************************************************************************************/
  1713. function fChngLangIndx(){
  1714. ds_send.clearData();
  1715. dsf_makeValue( ds_send, "mode", "string", ds_hidden_condition.getColumn(0, "indxviewmode"));
  1716. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1717. fn_TRMRT00301();
  1718. }
  1719. /*-**************************************************************************************
  1720. * Argument : N/A
  1721. * Description : Tree 선택
  1722. ****************************************************************************************/
  1723. function fSelTreeIndx(){
  1724. ds_send.clearData();
  1725. var iIndx = trv_ccindx.currentrow;
  1726. var selIndxCd = ds_main_indxlist_item.getColumn(iIndx, "indxcd");
  1727. dsf_makeValue( ds_send, "indxcd", "string", selIndxCd);
  1728. dsf_makeValue( ds_send, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  1729. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  1730. if( ds_hidden_condition.getColumn( 0, "selctedmode") == "C" ) { //주호소 코드를 선택했을때
  1731. ds_hidden_condition.setColumn( 0, "selectedIndx", ds_main_indxlist_item.getColumn(iIndx, "indxcd"));
  1732. ds_hidden_condition.setColumn( 0, "selectedIndxDepth", ds_main_indxlist_item.getColumn(iIndx, "depth"));
  1733. ds_hidden_condition.setColumn( 0, "selectedIndxPath", ds_main_indxlist_item.getColumn(iIndx, "pathcd"));
  1734. //인덱스 트리를 가지고 온다
  1735. var oParam = {};
  1736. oParam.id = "TRMRT00302";
  1737. oParam.service = "termmngtapp.CCTermMngt";
  1738. oParam.method = "reqGetCcCdInfo";
  1739. oParam.inds = "req=ds_send";
  1740. oParam.outds = "ds_main_cccdinfo_cccd=cccd";
  1741. oParam.async = false;
  1742. //oParam.callback = "cf_TRMRT00302";
  1743. tranf_submit(oParam);
  1744. }else{ // 과주호소코드를 선택했을때
  1745. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1746. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  1747. fn_TRMRT00306();
  1748. }
  1749. }
  1750. /*-**************************************************************************************
  1751. * Argument : N/A
  1752. * Description : 과주호소 선택
  1753. ****************************************************************************************/
  1754. function fSelDeptDiag(){
  1755. ds_hidden_condition_deptset.setColumn( 0, "srchflag","H");
  1756. ds_hidden_condition_deptset.setColumn( 0, "srchnm","");
  1757. ds_hidden_condition_deptset.setColumn( 0, "selecteddeptcd","");
  1758. ds_hidden_condition_deptset.setColumn( 0, "selecteddeptnm","");
  1759. ds_hidden_condition.setColumn( 0, "selctedmode", "P");
  1760. ds_main_indxlist_item.clearData();
  1761. ds_main_srchedcccdlist_srchedcccdinfo.clearData();
  1762. ds_main_deptcccdlist_deptcccdinfo.clearData();
  1763. }
  1764. /*-**************************************************************************************
  1765. * Argument : N/A
  1766. * Description : 색인 코드 조회
  1767. ****************************************************************************************/
  1768. function fSrchIndxCd(){
  1769. if(utlf_isNull(ds_hidden_condition.getColumn(0, "srchindxcd"))) {
  1770. var rtn = sysf_messageBox("검색할 색인코드를 ", "C001");
  1771. return;
  1772. } else {
  1773. ds_hidden_condition.setColumn( 0, "selectedIndx", ds_hidden_condition.getColumn(0, "srchindxcd"));
  1774. grdf_expandDepth(trv_ccindx, 1, "indxhngnm");
  1775. trv_ccindx.vscrollbar.pos = ds_main_indxlist_item.findRow("indxcd", ds_hidden_condition.getColumn(0, "srchindxcd"));
  1776. }
  1777. }
  1778. /*-**************************************************************************************
  1779. * Argument : N/A
  1780. * Description : 주호소 용어 조회
  1781. ****************************************************************************************/
  1782. function fSrchCcTerm(){
  1783. if(utlf_isNull(ds_hidden_condition.getColumn(0, "srchnm"))) {
  1784. var rtn = sysf_messageBox("검색어를 ", "C001");
  1785. return;
  1786. } else {
  1787. ds_send.clearData();
  1788. dsf_makeValue( ds_send, "srchflag", "string", ds_hidden_condition.getColumn(0, "srchflag"));
  1789. dsf_makeValue( ds_send, "srchnm", "string", ds_hidden_condition.getColumn(0, "srchnm"));
  1790. dsf_makeValue( ds_send, "srchfromdd", "string", ds_hidden_condition.getColumn(0, "srchfromdd"));
  1791. dsf_makeValue( ds_send, "srchtodd", "string", ds_hidden_condition.getColumn(0, "srchtodd"));
  1792. dsf_makeValue( ds_send, "endflag", "string", ds_hidden_condition.getColumn(0, "endflag"));
  1793. dsf_makeValue( ds_send, "maininstyn", "string", ds_hidden_condition.getColumn(0, "maininstyn"));
  1794. dsf_makeValue( ds_send, "selInstcd", "string", ds_hidden_condition.getColumn(0, "selInstcd"));
  1795. var srchnm = ds_hidden_condition.getColumn(0, "srchnm");
  1796. srchnm = srchnm.replace(/^\s*|\s*$/g, '');
  1797. if(ds_send.getColumn(0, "srchflag") == "C" || ds_send.getColumn(0, "srchflag") == "E") {
  1798. srchnm = srchnm.toUpperCase();
  1799. ds_send.setColumn( 0, "srchnm", srchnm);
  1800. }
  1801. if (ds_hidden_condition.getColumn(0, "selctedmode") == "C" ) { // 주호소코드 선택했을때
  1802. ds_main_cccdinfo_cccd.clearData();
  1803. var oParam = {};
  1804. oParam.id = "TRMRT00303";
  1805. oParam.service = "termmngtapp.CCTermMngt";
  1806. oParam.method = "reqGetSrchCcCd";
  1807. oParam.inds = "req=ds_send";
  1808. oParam.outds = "ds_main_cccdinfo_cccd=cccd";
  1809. oParam.async = false;
  1810. //oParam.callback = "cf_TRMRT00303";
  1811. tranf_submit(oParam);
  1812. } else if(ds_hidden_condition.getColumn(0, "selctedmode") == "P" ) { //과 주호소코드 선택했을경우
  1813. ds_send.clearData();
  1814. dsf_makeValue( ds_send, "indxflag", "string", ds_hidden_condition.getColumn(0, "indxflag"));
  1815. dsf_makeValue( ds_send, "indxcd", "string", "null");
  1816. dsf_makeValue( ds_send, "deptcd", "string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
  1817. dsf_makeValue( ds_send, "srchflag", "string", ds_hidden_condition.getColumn(0, "srchflag"));
  1818. dsf_makeValue( ds_send, "srchnm", "string", ds_hidden_condition.getColumn(0, "srchnm"));
  1819. fn_TRMRT00306();
  1820. }
  1821. }
  1822. }
  1823. /*-**************************************************************************************
  1824. * Argument : N/A
  1825. * Description :
  1826. ****************************************************************************************/
  1827. function fRollbackTerm(){
  1828. var icd10cd = ds_main_peprterminfo_info.getColumn(0, "ccindxcd");
  1829. var attrcd = ds_main_peprterminfo_info.getColumn(0, "ccattrcd");
  1830. var termcd = ds_main_peprterminfo_info.getColumn(0, "termcd");
  1831. var fullTermcd = attrcd + "." + termcd;
  1832. ds_send.clearData();
  1833. dsf_makeValue( ds_send, "reqdata", "string", "" );
  1834. ds_send_reqdata.copyData(ds_main_peprterminfo_info);
  1835. ds_send_reqdata.setColumn( 0, "ccindxcd", icd10cd);
  1836. ds_send_reqdata.setColumn( 0, "ccattrcd", attrcd);
  1837. ds_send_reqdata.setColumn( 0, "termcd", fullTermcd);
  1838. ds_send_reqdata.setColumn( 0, "termflag", "2");
  1839. ds_send_reqdata.setColumn( 0, "reprflag", "R");
  1840. ds_send_reqdata.setColumn( 0, "termfromdd", ds_init.getColumn(0, "today"));
  1841. ds_send_reqdata.setColumn( 0, "termtodd", "99991231");
  1842. dsf_makeValue( ds_send_reqdata, "indxcd", "string", ds_hidden_condition.getColumn(0, "selectedIndx"));
  1843. dsf_makeValue( ds_send_reqdata, "status", "string", "N");
  1844. fn_TXMRT00301();
  1845. }
  1846. /*-**************************************************************************************
  1847. * Argument : N/A
  1848. * Description : 오른쪽 마우스 팝업 호출
  1849. ****************************************************************************************/
  1850. function fCallPopup(flag){
  1851. if(flag == "switch2.case5.grd_cccd"){
  1852. return "pmn_menu1";
  1853. } else if(flag == "trv_ccindx"){
  1854. if(utlf_isNull(ds_main_indxlist_item.getColumn(ds_main_indxlist_item.rowposition, "indxcd"))) {
  1855. return null;
  1856. }
  1857. return "pmn_menu2";
  1858. } else {
  1859. return null;
  1860. }
  1861. }
  1862. /*-**************************************************************************************
  1863. * Argument : N/A
  1864. * Description : 색인 변경 처리
  1865. ****************************************************************************************/
  1866. function fModifyIndx(){
  1867. var selTab = ds_hidden_condition.getColumn(0, "selctedmode");
  1868. dsf_createDs("ds_hidden_reqdata_ccindxlist");
  1869. if(selTab == "C"){
  1870. var selectedRows = grdf_getSelectedRows(switch2.case5.grd_cccd);
  1871. dsf_copyColInfo(ds_hidden_reqdata_ccindxlist, ds_main_cccdinfo_cccd);
  1872. for (var i = 0; i < selectedRows.length; i++){
  1873. ds_hidden_reqdata_ccindxlist.copyRow(ds_hidden_reqdata_ccindxlist.addRow(), ds_main_cccdinfo_cccd, selectedRows[i]);
  1874. }
  1875. }
  1876. }
  1877. /*-**************************************************************************************
  1878. * Argument : N/A
  1879. * Description : 색인 변경할 인덱스로 이동 처리
  1880. ****************************************************************************************/
  1881. function fPasteIndx(){
  1882. var selTab = ds_hidden_condition.getColumn(0, "selctedmode");
  1883. var iIndx = trv_ccindx.currentrow;
  1884. var selIndxCd = ds_main_indxlist_item.getColumn(iIndx, "indxcd");
  1885. var msg = sysf_messageBox("색인을", "Q012");
  1886. if(msg == "7"){
  1887. return;
  1888. }
  1889. switch(selTab){
  1890. case "C":
  1891. dsf_createDs("ds_send_reqdata_ccindxlist");
  1892. dsf_createDs("ds_send_reqdata_newindx");
  1893. ds_send_reqdata_ccindxlist.copyData(ds_hidden_reqdata_ccindxlist);
  1894. dsf_makeValue( ds_send_reqdata_newindx, "indxcd", "string", selIndxCd);
  1895. dsf_makeValue( ds_send_reqdata_newindx, "indxflag", "string", selTab);
  1896. if(msg == "6"){
  1897. var oParam = {};
  1898. oParam.id = "TXMRT00303";
  1899. oParam.service = "termmngtapp.CCTermMngt";
  1900. oParam.method = "reqExeIndxUpdate";
  1901. oParam.inds = "ccindxinfo=ds_send_reqdata_ccindxlist newindx=ds_send_reqdata_newindx";
  1902. oParam.outds = "ds_main_cccdinfo_cccd=ccinfo";
  1903. oParam.async = false;
  1904. oParam.callback = "cf_TXMRT00303";
  1905. tranf_submit(oParam);
  1906. if(arErrorCode.pop("TXMRT00303") > -1) {
  1907. sysf_messageBox("색인 변경이","I001");
  1908. } else {
  1909. sysf_messageBox("색인 변경을","E009");
  1910. }
  1911. }
  1912. ds_send_reqdata_ccindxlist.clearData();
  1913. ds_send_reqdata_newindx.clearData();
  1914. ds_hidden_reqdata_ccindxlist.clearData();
  1915. break;
  1916. }
  1917. }
  1918. function cf_TXMRT00303(sSvcId, nErrorCode, sErrorMsg) {
  1919. arErrorCode.push(sSvcId, nErrorCode);
  1920. }
  1921. /*-**************************************************************************************
  1922. * Argument : N/A
  1923. * Description : 기관별 용어 사용여부 설정
  1924. ****************************************************************************************/
  1925. function fTermUseSave(){
  1926. dsf_createDs("ds_send_termuse");
  1927. var dsUpdate = grdf_getGridUpdateData(switch2.case5.grd_cccd, "all");
  1928. grdf_setStatusColumn(dsUpdate, "status");
  1929. ds_send_termuse.copyData(dsUpdate, true);
  1930. var oParam = {};
  1931. oParam.id = "TXMRT00206";
  1932. oParam.service = "termmngtapp.DiagTermMngt";
  1933. oParam.method = "reqInsTermUse";
  1934. oParam.inds = "req=ds_send_termuse";
  1935. //oParam.outds = "ds_=diaginfo";
  1936. oParam.async = false;
  1937. //oParam.callback = "cf_TXMRT00206";
  1938. tranf_submit(oParam);
  1939. }
  1940. /*-**************************************************************************************
  1941. * Argument : N/A
  1942. * Description : 용어 이력 리스트 조회
  1943. ****************************************************************************************/
  1944. function fGetDiagTermHistList(){
  1945. var iRow = switch2.case5.grd_cccd.currentrow;
  1946. switch2.case5.grd_cchist.setFormatColProperty( 1, "size", 0);
  1947. ds_hidden_condition.setColumn( 0, "sametermmode", "N");
  1948. switch2.case5.cap_allinsthist.visible = false;
  1949. switch2.case5.cmb_allinsthist.visible = false;
  1950. switch2.case5.btn_modify1.enable = true;
  1951. switch2.case5.btn_rollback.enable = true;
  1952. switch2.case5.btn_termsave.enable = true;
  1953. switch2.case5.btn_delete1.enable = true;
  1954. ds_send.clearData();
  1955. dsf_makeValue( ds_send, "ccattrcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd"));
  1956. dsf_makeValue( ds_send, "termcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "termcd"));
  1957. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  1958. fn_TRMRT00308();
  1959. }
  1960. /*-**************************************************************************************
  1961. * Argument : N/A
  1962. * Description : 기관별 용어 이력 리스트 조회
  1963. ****************************************************************************************/
  1964. function fGetDiagInstTermHistList(){
  1965. var iRow = switch2.case5.grd_cccd.currentrow;
  1966. switch2.case5.grd_cchist.setFormatColProperty( 1, "size", 100);
  1967. switch2.case5.cap_allinsthist.visible = true;
  1968. switch2.case5.cmb_allinsthist.visible = true;
  1969. //2009-04-30 오후 10:37:47 강지훈 수정 : 기관별 사용이력조회일때는 시작, 종료일자 때문에 수정이 불가하다.
  1970. switch2.case5.btn_modify1.enable = false;
  1971. switch2.case5.btn_rollback.enable = false;
  1972. switch2.case5.btn_termsave.enable = false;
  1973. switch2.case5.btn_delete1.enable = false;
  1974. ds_hidden_condition.setColumn( 0, "sametermmode", "H");
  1975. ds_send.clearData();
  1976. dsf_makeValue( ds_send, "allinsthist", "string", ds_hidden_condition.getColumn(0, "allinsthist"));
  1977. dsf_makeValue( ds_send, "ccattrcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "ccattrcd"));
  1978. dsf_makeValue( ds_send, "termcd", "string", ds_main_cccdinfo_cccd.getColumn(iRow, "termcd"));
  1979. dsf_makeValue( ds_send, "sametermmode", "string", ds_hidden_condition.getColumn(0, "sametermmode"));
  1980. fn_TRMRT00308();
  1981. }
  1982. ////////////////////////////////////////////////SMMRT00300.xjs////////////////////////////////////////////////
  1983. //=======================================================================================
  1984. // Event
  1985. //---------------------------------------------------------------------------------------
  1986. /****************************************************************************************
  1987. * Components : Form
  1988. * Description : 화면 처음 초기화시 폼초기화
  1989. ****************************************************************************************/
  1990. function SMMRT00300_onload(obj:Form, e:LoadEventInfo) {
  1991. frmf_initForm(obj);
  1992. grdf_initGrid(switch2.case_deptccinfo.grd_srchedccinfo);
  1993. //grdf_setGridSort(grd_XXX);
  1994. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  1995. fInitalize();
  1996. frmf_createPopupMenuDs("pmn_menu1", "pmn_menu_onmenuclick", ds_init_func_mouserght);
  1997. frmf_createPopupMenuDs("pmn_menu2", "pmn_menu_onmenuclick", ds_init_func_trvmouserght);
  1998. var sProp42 = "col=4,row=2,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  1999. switch2.case5.chk_appinst.setInitComp(sProp42, ds_init_M0534, "cdid","cdnm", "fn_chk_appinst");
  2000. switch2.tabindex = 1;
  2001. fn_tabbtn_onclick();
  2002. }
  2003. // ds에 생성된 id별 함수 실행
  2004. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  2005. {
  2006. eval(e.id + "()");
  2007. }
  2008. /****************************************************************************************
  2009. * Components : Button
  2010. * Description : 사용종료
  2011. ****************************************************************************************/
  2012. function switch2_case5_btn_delete1_onclick(obj:Button, e:ClickEventInfo) {
  2013. fEndCcTerm();
  2014. }
  2015. /****************************************************************************************
  2016. * Components : Button
  2017. * Description : 신규
  2018. ****************************************************************************************/
  2019. function switch2_case5_btn_insert1_onclick(obj:Button, e:ClickEventInfo) {
  2020. fSetNewCc();
  2021. }
  2022. function switch2_case5_btn_save1_onclick(obj:Button, e:ClickEventInfo) {
  2023. // fSaveCcTerm();
  2024. }
  2025. /****************************************************************************************
  2026. * Components : Grid
  2027. * Description : 주호소코드 선택
  2028. ****************************************************************************************/
  2029. function switch2_case5_grd_cccd_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2030. if(e.col != 1){
  2031. fSelCcTerm();
  2032. }
  2033. else{
  2034. var termuseyn = ds_main_cccdinfo_cccd.getColumn(e.row, "termuseyn");
  2035. var essntermflag = ds_main_cccdinfo_cccd.getColumn(e.row, "essntermflag");
  2036. if(termuseyn == "N"){
  2037. if(essntermflag == "Y"){
  2038. sysf_messageBox("필수 사용 용어 ", "E008");
  2039. ds_main_cccdinfo_cccd.setColumn( e.row , "termuseyn", "Y");
  2040. }
  2041. }
  2042. }
  2043. }
  2044. /****************************************************************************************
  2045. * Components : Edit
  2046. * Description : IDC10코드 입력
  2047. ****************************************************************************************/
  2048. function switch2_case5_ipt_icd10cd_onkeyup(obj:Edit, e:KeyEventInfo) {
  2049. if(e.keycode == 13) {
  2050. obj.updateToDataset();
  2051. switch2.case5.btn_icd10cd.click();
  2052. }
  2053. }
  2054. /****************************************************************************************
  2055. * Components : Button
  2056. * Description : IDC10코드 조회
  2057. ****************************************************************************************/
  2058. function switch2_case5_btn_icd10cd_onclick(obj:Button, e:ClickEventInfo) {
  2059. fGetICD10();
  2060. }
  2061. /****************************************************************************************
  2062. * Components : Button
  2063. * Description : 수정
  2064. ****************************************************************************************/
  2065. function switch2_case5_btn_modify1_onclick(obj:Button, e:ClickEventInfo) {
  2066. fSetCcUpdt();
  2067. }
  2068. /****************************************************************************************
  2069. * Components : Grid
  2070. * Description : 이력선택
  2071. ****************************************************************************************/
  2072. function switch2_case5_grd_cchist_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2073. var sametermmode = ds_hidden_condition.getColumn(0, "sametermmode");
  2074. if(sametermmode != "H"){
  2075. fSelCcTermHist();
  2076. }
  2077. }
  2078. /****************************************************************************************
  2079. * Components : Button
  2080. * Description : 되살리기
  2081. ****************************************************************************************/
  2082. function switch2_case5_btn_rollback_onclick(obj:Button, e:ClickEventInfo) {
  2083. fRollbackTerm();
  2084. }
  2085. /****************************************************************************************
  2086. * Components : Combo
  2087. * Description : 기관변경
  2088. ****************************************************************************************/
  2089. function switch2_case5_cmb_allinsthist_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2090. var selInstcd = ds_hidden_condition.getColumn(0, "selInstcd");
  2091. // if(selInstcd == "001"){
  2092. // btn_saverow.enable = false;
  2093. // }
  2094. // else{
  2095. // btn_saverow.enable = true;
  2096. // }
  2097. fGetDiagInstTermHistList();
  2098. }
  2099. /****************************************************************************************
  2100. * Components : Button
  2101. * Description : 저장
  2102. ****************************************************************************************/
  2103. function switch2_case5_btn_termsave_onclick(obj:Button, e:ClickEventInfo) {
  2104. fSaveCcTerm();
  2105. }
  2106. function switch2_case5_rdo_essntermflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  2107. // var essntermflag = ds_main_peprterminfo_info.getColumn(0, "essntermflag");
  2108. // if(essntermflag == "Y"){
  2109. // for(var a = 0; a < switch2.case5.chk_appinst.length ; a++){
  2110. // switch2.case5.chk_appinst.select(a);
  2111. // }
  2112. // }
  2113. //switch2.case5.chk_appinst.refresh();
  2114. }
  2115. function switch2_case5_chk_appinst_onkillfocus(obj:CheckBox, e:KillFocusEventInfo) {
  2116. // var essntermflag = ds_main_peprterminfo_info.getColumn(0, "essntermflag");
  2117. // if(essntermflag == "Y"){
  2118. // for(var a = 0; a < switch2.case5.chk_appinst.length ; a++){
  2119. // switch2.case5.chk_appinst.select(a);
  2120. // }
  2121. // }
  2122. //switch2.case5.chk_appinst.refresh();
  2123. }
  2124. /****************************************************************************************
  2125. * Components : Button
  2126. * Description : 과검색
  2127. ****************************************************************************************/
  2128. function switch2_case_deptccinfo_btn_deptsrch_onclick(obj:Button, e:ClickEventInfo) {
  2129. fCallDeptInfo();
  2130. }
  2131. /****************************************************************************************
  2132. * Components : Button
  2133. * Description : 과주호소 조회
  2134. ****************************************************************************************/
  2135. function switch2_case_deptccinfo_btn_srchdeptcc_onclick(obj:Button, e:ClickEventInfo) {
  2136. fSrchDeptCcInfo();
  2137. }
  2138. /****************************************************************************************
  2139. * Components : Button
  2140. * Description : 과주호소 삭제
  2141. ****************************************************************************************/
  2142. function switch2_case_deptccinfo_btn_deldeptcc_onclick(obj:Button, e:ClickEventInfo) {
  2143. fDelDeptCcTerm();
  2144. }
  2145. /****************************************************************************************
  2146. * Components : Button
  2147. * Description : 과주호소 저장
  2148. ****************************************************************************************/
  2149. function switch2_case_deptccinfo_btn_savedeptcc_onclick(obj:Button, e:ClickEventInfo) {
  2150. fSaveDeptCCInfo();
  2151. }
  2152. /****************************************************************************************
  2153. * Components : Edit
  2154. * Description : 주호소조회조건 입력 후 조회
  2155. ****************************************************************************************/
  2156. function switch2_case_deptccinfo_ipt_srchnm_onkeyup(obj:Edit, e:KeyEventInfo) {
  2157. if(e.keycode == 13) {
  2158. obj.udpateToDataset();
  2159. switch2.case_deptccinfo.btn_srchcc.click();
  2160. }
  2161. }
  2162. /****************************************************************************************
  2163. * Components : Button
  2164. * Description : 주호소 리스트 조회
  2165. ****************************************************************************************/
  2166. function switch2_case_deptccinfo_btn_srchcc_onclick(obj:Button, e:ClickEventInfo) {
  2167. fSrchCCInfo();
  2168. }
  2169. /****************************************************************************************
  2170. * Components : Button
  2171. * Description : 주호소 리스트 전체주호소 조회
  2172. ****************************************************************************************/
  2173. function switch2_case_deptccinfo_btn_srchextncc_onclick(obj:Button, e:ClickEventInfo) {
  2174. fCallExtnCCInfo();
  2175. }
  2176. /****************************************************************************************
  2177. * Components : Button
  2178. * Description : 주호소 리스트 이동
  2179. ****************************************************************************************/
  2180. function switch2_case_deptccinfo_btn_sendcc_onclick(obj:Button, e:ClickEventInfo) {
  2181. fSendDeptCC();
  2182. }
  2183. /****************************************************************************************
  2184. * Components : Edit
  2185. * Description : 과정보 입력후 조회
  2186. ****************************************************************************************/
  2187. function switch2_case_deptccinfo_ipt_deptnm_onkeyup(obj:Edit, e:KeyEventInfo) {
  2188. if(e.keycode == 13) {
  2189. obj.updateToDataset();
  2190. switch2.case_deptccinfo.btn_deptsrch.click();
  2191. }
  2192. }
  2193. /****************************************************************************************
  2194. * Components : Grid
  2195. * Description : 주호소 리스트 선택
  2196. ****************************************************************************************/
  2197. function switch2_case_deptccinfo_grd_srchedccinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2198. // fSelAddCcList();
  2199. }
  2200. /****************************************************************************************
  2201. * Components : Edit
  2202. * Description : 조회조건 입력 후 조회
  2203. ****************************************************************************************/
  2204. function input5_onkeyup(obj:Edit, e:KeyEventInfo) {
  2205. if(e.keycode == 13) {
  2206. obj.updateToDataset();
  2207. btn_srchtermcd.click();
  2208. }
  2209. }
  2210. /****************************************************************************************
  2211. * Components : Radio
  2212. * Description : 한글 영문 구분
  2213. ****************************************************************************************/
  2214. function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  2215. fChngLangIndx();
  2216. }
  2217. /****************************************************************************************
  2218. * Components : Button
  2219. * Description : 색인추가
  2220. ****************************************************************************************/
  2221. function button22_onclick(obj:Button, e:ClickEventInfo) {
  2222. fAddIndx();
  2223. }
  2224. /****************************************************************************************
  2225. * Components : Grid
  2226. * Description : 색인선택
  2227. ****************************************************************************************/
  2228. function trv_ccindx_oncellclick(obj:Grid, e:GridClickEventInfo) {
  2229. ds_hidden_condition.setColumn(0, "selectedIndx", ds_main_indxlist_item.getColumn(e.row, "indxcd"));
  2230. fSelTreeIndx();
  2231. }
  2232. /****************************************************************************************
  2233. * Components : Edit
  2234. * Description :
  2235. ****************************************************************************************/
  2236. function input1_onkeyup(obj:Edit, e:KeyEventInfo) {
  2237. if(e.keycode == 13) {
  2238. obj.updateToDataset();
  2239. btn_srchindxcd.click();
  2240. }
  2241. }
  2242. /****************************************************************************************
  2243. * Components : Button
  2244. * Description : 트리조회
  2245. ****************************************************************************************/
  2246. function btn_srchindxcd_onclick(obj:Button, e:ClickEventInfo) {
  2247. fSrchIndxCd();
  2248. }
  2249. /****************************************************************************************
  2250. * Components : Button
  2251. * Description : 조회
  2252. ****************************************************************************************/
  2253. function btn_srchtermcd_onclick(obj:Button, e:ClickEventInfo) {
  2254. fSrchCcTerm();
  2255. }
  2256. /****************************************************************************************
  2257. * Components : Button
  2258. * Description : 엑셀저장
  2259. ****************************************************************************************/
  2260. function button15_onclick(obj:Button, e:ClickEventInfo) {
  2261. switch(switch2.tabindex){
  2262. case 0:
  2263. if( ds_main_cccdinfo_cccd.rowcount > 0 ){
  2264. grdf_exportExcel(switch2.case5.grd_cccd, "Excel", "Sheet1", false, "", "user", false);
  2265. } else {
  2266. sysf_messageBox("조회된 데이터가 ", "I004");
  2267. }
  2268. break;
  2269. case 1:
  2270. if( ds_main_deptcccdlist_deptcccdinfo.rowcount > 0 ){
  2271. grdf_exportExcel(switch2.case_deptccinfo.grd_deptcc, "Excel", "Sheet1", false, "", "user", false);
  2272. } else {
  2273. sysf_messageBox("조회된 데이터가 ", "I004");
  2274. }
  2275. break;
  2276. }
  2277. }
  2278. /****************************************************************************************
  2279. * Components : CheckBox
  2280. * Description : 사용종료용어조회 체크
  2281. ****************************************************************************************/
  2282. function checkbox2_onclick(obj:CheckBox, e:ClickEventInfo) {
  2283. if(obj.value == false) {
  2284. ds_hidden_condition.setColumn(0, "endflag", "");
  2285. ds_hidden_condition.setColumn( 0, "srchfromdd", "");
  2286. ds_hidden_condition.setColumn( 0, "srchtodd", "");
  2287. ipt_endfromdd.enable = false;
  2288. ipt_endtodd.enable = false;
  2289. } else {
  2290. ds_hidden_condition.setColumn( 0, "srchfromdd", utlf_getCurrentDate());
  2291. ds_hidden_condition.setColumn( 0, "srchtodd", "99991231");
  2292. ipt_endfromdd.enable = true;
  2293. ipt_endtodd.enable = true;
  2294. }
  2295. }
  2296. function cmb_selInst_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  2297. // var selInstcd = ds_hidden_condition.getColumn(0, "selInstcd");
  2298. // if(selInstcd == "001"){
  2299. // btn_saverow.enable = false;
  2300. // }
  2301. // else{
  2302. // btn_saverow.enable = true;
  2303. // }
  2304. }
  2305. /****************************************************************************************
  2306. * Components : Button
  2307. * Description : 저장
  2308. ****************************************************************************************/
  2309. function btn_saverow_onclick(obj:Button, e:ClickEventInfo) {
  2310. fTermUseSave();
  2311. }
  2312. function switch2_onlbuttonup(obj:Tab, e:TabMouseEventInfo)
  2313. {
  2314. if(e.fromreferenceobject.name == "switch2"){
  2315. var sIdx = obj.getIndex(e.clientX, e.canvasY);
  2316. if( sIdx != -1){
  2317. fn_tabbtn_onclick();
  2318. }
  2319. }
  2320. }
  2321. function ds_main_cccdinfo_cccd_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2322. {
  2323. if(e.columnid=="termuseyn") {
  2324. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  2325. }
  2326. }
  2327. function switch2_case5_grd_cccd_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  2328. {
  2329. if(e.row > -1) {
  2330. var pmnMenu = fCallPopup("grd_cccd");
  2331. if(!utlf_isNull(pmnMenu)) {
  2332. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  2333. eval(pmnMenu).trackPopup(e.screenX,e.screenY);
  2334. }
  2335. }
  2336. return true;
  2337. }
  2338. function ds_main_peprterminfo_info_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2339. {
  2340. if(e.columnid == "essntermflag") {
  2341. var essntermflag = e.newvalue;
  2342. if(essntermflag == "Y"){
  2343. switch2.case5.chk_appinst.setCheckAll(true);
  2344. }
  2345. }
  2346. if(e.columnid == "appinstcd") switch2.case5.chk_appinst.setData(String(e.newvalue).split("▦"),null,false);
  2347. if(e.columnid == "snmdcnptid") fGetSNMDCT();
  2348. if(e.columnid == "termfromdd") obj.setColumn(0, "attrfromdd", e.newvalue);
  2349. if(e.columnid == "termtodd") obj.setColumn(0, "attrtodd", e.newvalue);
  2350. }
  2351. /****************************************************************************************
  2352. * Components : Button
  2353. * Description : 탭버튼 선택
  2354. ****************************************************************************************/
  2355. function switch2_case5_grp_tabbtn_button2_onclick(obj:Button, e:ClickEventInfo)
  2356. {
  2357. misfTabBtnChange(switch2.case5.grp_tabbtn, obj);
  2358. fGetDiagTermHistList();
  2359. }
  2360. function switch2_case5_grp_tabbtn_button6_onclick(obj:Button, e:ClickEventInfo)
  2361. {
  2362. misfTabBtnChange(switch2.case5.grp_tabbtn, obj);
  2363. fGetDiagInstTermHistList();
  2364. }
  2365. function ds_main_srchedcccdlist_srchedcccdinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2366. {
  2367. if(e.columnid=="check") {
  2368. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  2369. }
  2370. }
  2371. function trv_ccindx_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  2372. {
  2373. if(e.row > -1 && ds_hidden_condition.getColumn(0, "selctedmode") == "C") {
  2374. var pmnMenu = fCallPopup("trv_ccindx");
  2375. if(!utlf_isNull(pmnMenu)) {
  2376. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  2377. eval(pmnMenu).trackPopup(e.screenX,e.screenY);
  2378. }
  2379. }
  2380. return true;
  2381. }
  2382. ]]></Script>
  2383. </Form>
  2384. </FDL>