SMMRT00700_수술용어관리.xrw 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>수술용어 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <indxlist>
  11. <item>
  12. <depth/>
  13. <indxcd/>
  14. <upindxcd/>
  15. <indxhngnm/>
  16. <pathcd/>
  17. <indxdrdiflag/>
  18. </item>
  19. </indxlist>
  20. <opcdinfo>
  21. <icd9cd>
  22. <state>-</state>
  23. <icd9cd/>
  24. <icd9drindxcd/>
  25. <icd9medireccd/>
  26. <icd9engnm/>
  27. <icd9hngnm/>
  28. <icd9seqno/>
  29. <icd9fromdd/>
  30. <icd9todd/>
  31. <fstrgstrid/>
  32. <fstrgstdt/>
  33. <lastupdtrid/>
  34. <lastupdtdt/>
  35. </icd9cd>
  36. <opcd>
  37. <termuseyn/>
  38. <state>-</state>
  39. <icd9cd/>
  40. <opattrcd/>
  41. <termcd/>
  42. <snmdcnptid/>
  43. <snmdcnptnm/>
  44. <snmddescid/>
  45. <umlscd/>
  46. <termengnm/>
  47. <termhngnm/>
  48. <alttermcd/>
  49. <reprflag/>
  50. <opattrdrindxcd/>
  51. <opattrmedireccd/>
  52. <opattrverflag/>
  53. <termfromdd/>
  54. <termtodd/>
  55. <fstrgstdt/>
  56. <termflag/>
  57. <fstrgstrid/>
  58. <attrfromdd/>
  59. <attrtodd/>
  60. <icdfromdd/>
  61. <calcscorcd/>
  62. <lastupdtrid/>
  63. <lastupdtrnm/>
  64. <lastupdtdt/>
  65. <essntermflag/>
  66. </opcd>
  67. <deptset/>
  68. </opcdinfo>
  69. <peprterminfo>
  70. <info>
  71. <icd9cd/>
  72. <opattrcd/>
  73. <termcd/>
  74. <snmdcnptid/>
  75. <snmdcnptnm/>
  76. <snmddescid/>
  77. <termengnm/>
  78. <termhngnm/>
  79. <opattrdrindxcd/>
  80. <opattrmedireccd/>
  81. <opattrverflag>9</opattrverflag>
  82. <reprflag/>
  83. <fstrgstrid/>
  84. <opattrtodd/>
  85. <fstrgstdt/>
  86. <termfromdd/>
  87. <termtodd/>
  88. <termflag>9</termflag>
  89. <fstrgstdate/>
  90. <fstrgsttime/>
  91. <attrfromdd/>
  92. <attrtodd/>
  93. <icdfromdd/>
  94. <calcscorcd/>
  95. <umlscd/>
  96. <alttermcd/>
  97. <appinstcd/>
  98. <essntermflag/>
  99. </info>
  100. </peprterminfo>
  101. <icd9cdlist>
  102. <info>
  103. <icd9cd/>
  104. </info>
  105. </icd9cdlist>
  106. <sametermlist>
  107. <info>
  108. <state/>
  109. <termcd/>
  110. <reprflag/>
  111. <termengnm/>
  112. <termhngnm/>
  113. <alttermcd/>
  114. <snmdcnptid/>
  115. <snmdcnptnm/>
  116. <snmddescid/>
  117. <umlscd/>
  118. <calcscorcd/>
  119. <termfromdd/>
  120. <termtodd/>
  121. <fstrgstdt/>
  122. <fstrgstrid/>
  123. <lastupdtdt/>
  124. <lastupdtrnm/>
  125. <attrcd/>
  126. <termflag/>
  127. <lastupdtrid/>
  128. <attrfromdd/>
  129. <attrtodd/>
  130. <icdfromdd/>
  131. </info>
  132. </sametermlist>
  133. <deptopcdlist>
  134. <deptopcdinfo>
  135. <status/>
  136. <termcd/>
  137. <deptindxcd/>
  138. <deptindxnm/>
  139. <termengnm/>
  140. <termhngnm/>
  141. <deptnm/>
  142. <deptcd/>
  143. <deptfromdt/>
  144. <deptindxflag/>
  145. </deptopcdinfo>
  146. </deptopcdlist>
  147. <srchedopcdlist>
  148. <srchedopcdinfo>
  149. <check/>
  150. <termcd/>
  151. <termengnm/>
  152. <termhngnm/>
  153. </srchedopcdinfo>
  154. </srchedopcdlist>
  155. <temp/>
  156. </main>
  157. <hidden>
  158. <condition>
  159. <srchflag>C</srchflag>
  160. <srchnm/>
  161. <indxflag>9</indxflag>
  162. <selctedmode>D</selctedmode>
  163. <status>S</status>
  164. <selectedIndx/>
  165. <selectedIndxDepth/>
  166. <selectedicd9/>
  167. <selectedtermcd/>
  168. <selectedIndxPath/>
  169. <indxviewmode>H</indxviewmode>
  170. <sametermmode>U</sametermmode>
  171. <srchindxcd/>
  172. <deptset>
  173. <srchflag>H</srchflag>
  174. <selecteddeptcd/>
  175. <selecteddeptnm/>
  176. <srchnm/>
  177. </deptset>
  178. <endflag/>
  179. <srchfromdd/>
  180. <srchtodd/>
  181. <indxuseflag/>
  182. <selInstcd/>
  183. <allinsthist>-</allinsthist>
  184. <maininstyn/>
  185. </condition>
  186. <reqdata/>
  187. </hidden>
  188. <send>
  189. </send>
  190. <init>
  191. <today/>
  192. <curruntTime/>
  193. <userinfo>
  194. <userid/>
  195. <usernm/>
  196. <instcd/>
  197. </userinfo>
  198. <func>
  199. <mouserght>
  200. <label>색인변경</label>
  201. <value>fModifyIndx</value>
  202. </mouserght>
  203. <trvmouserght>
  204. <label>붙여넣기</label>
  205. <value>fPasteIndx</value>
  206. </trvmouserght>
  207. </func>
  208. <M0534list>
  209. </M0534list>
  210. <M0534selcmb>
  211. <M0534>
  212. </M0534>
  213. </M0534selcmb>
  214. <M0534allcmb>
  215. <M0534>
  216. </M0534>
  217. </M0534allcmb>
  218. </init>
  219. <temp>
  220. <terminfo>
  221. <altterminfo/>
  222. </terminfo>
  223. </temp>
  224. </root>
  225. </instance>
  226. <script type="javascript" ev:event="xforms-ready">
  227. <![CDATA[
  228. fInitalize();
  229. ]]>
  230. </script>
  231. <submission id="TRMRT00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/indxlist"/>
  232. <submission id="TRMRT00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opcdinfo"/>
  233. <submission id="TRMRT00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opcdinfo"/>
  234. <submission id="TRMRT00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opcdinfo"/>
  235. <submission id="TRMRT00705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sametermlist"/>
  236. <submission id="TRMRT00706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/icd9cdlist"/>
  237. <submission id="TRMRT00707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/temp"/>
  238. <submission id="TRMRT00708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/temp"/>
  239. <submission id="TXMRT00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opcdinfo"/>
  240. <submission id="TRMRT00710" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/indxlist"/>
  241. <submission id="TRMRT00711" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/deptopcdlist"/>
  242. <submission id="TXMRT00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/deptopcdlist"/>
  243. <submission id="TRMRT00712" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/srchedopcdlist"/>
  244. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  245. <submission id="TXMRT00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opcdinfo"/>
  246. <submission id="TRMRT00709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/exists"/>
  247. <submission id="TXMRT00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/opcdinfo"/>
  248. <submission id="TXMRT00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/termuse"/>
  249. </model>
  250. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  251. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  252. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  253. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  254. <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
  255. <script type="javascript" src="../../../emr/termmngtweb/js/SMMRT00700.js"/>
  256. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  257. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  258. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  259. </xhtml:head>
  260. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  261. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  262. <caption id="caption6selctedmode" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">수술용어 관리</caption>
  263. </group>
  264. <group id="group2" style="left:0px; top:13px; width:1195px; height:754px; vertical-align:top; ">
  265. <button id="button68" class="btn_sw" group="tab" style="left:255px; top:47px; width:84px; height:22px; ">
  266. <caption>ICD9CM코드</caption>
  267. <toggle case="ICD9CD" ev:event="onclick"/>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. btn_addrow.attribute("visibility") = "visible";
  271. btn_delrow.attribute("visibility") = "visible";
  272. btn_saverow.attribute("visibility") = "visible";
  273. btn_modify.attribute("visibility") = "visible";
  274. model.setValue("/root/hidden/condition/selctedmode", "I");
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button3" class="btn_sw" group="tab" selected="true" style="left:340px; top:47px; width:84px; height:22px; ">
  279. <caption>수술용어</caption>
  280. <toggle case="OpTerm" ev:event="onclick"/>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. fSelOpList();
  284. ]]>
  285. </script>
  286. </button>
  287. <button id="button5" class="btn_sw" group="tab" style="left:425px; top:47px; width:84px; height:22px; ">
  288. <caption>과수술코드</caption>
  289. <toggle case="case_deptopinfo" ev:event="onclick"/>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. fSelDeptOp();
  293. ]]>
  294. </script>
  295. </button>
  296. <switch id="switch2" style="left:255px; top:70px; width:935px; height:680px; ">
  297. <case id="ICD9CD">
  298. <datagrid id="grd_icd9" nodeset="/root/main/opcdinfo/icd9cd" class="datagrid2" autoresize="true" caption="상태^icd9코드^의사색인코드^분류코드^영문명^한글명^조회순서^시작일자^종료일자^최초등록자^최초등록일시^최종수정자^최종수정일시" colsep="^" colwidth="50, 100, 100, 92, 250, 250, 70, 70, 70, 75, 110, 75, 110" dataheight="25" defaultrows="0" explorerbar="sortshow" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:0px; width:930px; height:675px; ">
  299. <col disabled="true" ref="state" type="combo" visibility="visible">
  300. <choices>
  301. <item>
  302. <label>-</label>
  303. <value>-</value>
  304. </item>
  305. <item>
  306. <label>입력</label>
  307. <value>I</value>
  308. </item>
  309. <item>
  310. <label>수정</label>
  311. <value>U</value>
  312. </item>
  313. <item>
  314. <label>삭제</label>
  315. <value>D</value>
  316. </item>
  317. </choices>
  318. </col>
  319. <col ref="icd9cd" type="input"/>
  320. <col ref="icd9drindxcd" type="input" visibility="hidden"/>
  321. <col ref="icd9medireccd" type="input"/>
  322. <col ref="icd9engnm" type="input"/>
  323. <col ref="icd9hngnm" type="input"/>
  324. <col ref="icd9seqno" type="input" style="background-color:#ffffff; "/>
  325. <col ref="icd9fromdd" type="input" format="yyyy-mm-dd"/>
  326. <col ref="icd9todd" type="input" format="yyyy-mm-dd"/>
  327. <col ref="fstrgstrid" type="input"/>
  328. <col ref="fstrgstdt" type="input" format="yyyy-mm-dd hh:mm:ss"/>
  329. <col ref="lastupdtrid" type="input"/>
  330. <col ref="lastupdtdt" type="input" format="yyyy-mm-dd hh:mm:ss"/>
  331. <script type="javascript" ev:event="onrowchanged">
  332. <![CDATA[
  333. //if(model.getValue("/root/main/opcdinfo/icd9cd/state") == "-") {
  334. // model.setValue("/root/main/opcdinfo/icd9cd/state", "U");
  335. //}
  336. ]]>
  337. </script>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="onaftersort">
  343. <![CDATA[
  344. grd_icd9.gridToInstance();
  345. ]]>
  346. </script>
  347. </datagrid>
  348. </case>
  349. <case id="OpTerm" selected="true">
  350. <datagrid id="grd_opcd" nodeset="/root/main/opcdinfo/opcd" class="datagrid2" autoresize="true" caption="사용여부^상태^ICD9&#xA;코드^ICD9시작일자^확장코드^용어코드^수가코드^SNOMED-CT&#xA;Concept ID^SNOMED-CT&#xA;Concept 명^SNOMED-CT&#xA;Description ID^UMLS^영문명^한글명^대체코드^대표어&#xA;여부^처방&#xA;색인^분류&#xA;코드^버전^시작일^종료일^최초등록일시^최초등록자ID^확장코드시작일자^확장코드종료일자^최종수정일^최종수정자^최종수정자ID^구분^필수용어구분^종료일" colsep="^" colwidth="35, 50, 39, 100, 64, 80, 70, 87, 100, 100, 100, 245, 245, 80, 70, 44, 90, 42, 85, 85, 100, 100, 100, 100, 130, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:0px; width:930px; height:380px; ">
  351. <col checkvalue="Y,N" ref="termuseyn" type="checkbox"/>
  352. <col disabled="true" ref="state" type="combo" visibility="hidden">
  353. <choices>
  354. <item>
  355. <label>-</label>
  356. <value>-</value>
  357. </item>
  358. <item>
  359. <label>입력</label>
  360. <value>I</value>
  361. </item>
  362. <item>
  363. <label>수정</label>
  364. <value>U</value>
  365. </item>
  366. <item>
  367. <label>삭제</label>
  368. <value>D</value>
  369. </item>
  370. </choices>
  371. </col>
  372. <col ref="icd9cd"/>
  373. <col ref="icdfromdd" visibility="hidden"/>
  374. <col ref="opattrcd"/>
  375. <col ref="termcd"/>
  376. <col ref="calcscorcd"/>
  377. <col ref="snmdcnptid"/>
  378. <col ref="snmdcnptnm"/>
  379. <col ref="snmddescid" visibility="hidden" style="background-color:#ffffff; "/>
  380. <col ref="umlscd"/>
  381. <col ref="termengnm"/>
  382. <col ref="termhngnm"/>
  383. <col ref="alttermcd"/>
  384. <col ref="reprflag" type="combo" visibility="hidden" style="left:870px; top:32px; width:76px; height:23px; ">
  385. <choices>
  386. <item>
  387. <label>대표어</label>
  388. <value>R</value>
  389. </item>
  390. <item>
  391. <label>동의어</label>
  392. <value>S</value>
  393. </item>
  394. <item>
  395. <label>유사어</label>
  396. <value>A</value>
  397. </item>
  398. </choices>
  399. </col>
  400. <col ref="opattrdrindxcd" visibility="hidden"/>
  401. <col ref="opattrmedireccd" visibility="hidden"/>
  402. <col ref="opattrverflag" visibility="hidden"/>
  403. <col ref="termfromdd" format="yyyy-mm-dd"/>
  404. <col ref="termtodd" format="yyyy-mm-dd"/>
  405. <col ref="fstrgstdt" visibility="hidden"/>
  406. <col ref="fstrgstrid" visibility="hidden"/>
  407. <col ref="attrfromdd" visibility="hidden"/>
  408. <col ref="attrtodd" visibility="hidden"/>
  409. <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss"/>
  410. <col ref="lastupdtrnm"/>
  411. <col ref="lastupdtrid" visibility="hidden"/>
  412. <col ref="termflag" visibility="hidden"/>
  413. <col ref="essntermflag"/>
  414. <script type="javascript" ev:event="onclick">
  415. <![CDATA[
  416. if(grd_opcd.col != "1"){
  417. fSelOpTerm();
  418. }
  419. else{
  420. var termuseyn = model.getValue("/root/main/opcdinfo/opcd[" + grd_opcd.row + "]/termuseyn");
  421. var essntermflag = model.getValue("/root/main/opcdinfo/opcd[" + grd_opcd.row + "]/essntermflag");
  422. if(termuseyn == "N"){
  423. if(essntermflag == "Y"){
  424. messageBox("필수 사용 용어 ", "E008");
  425. model.setValue("/root/main/opcdinfo/opcd[" + grd_opcd.row + "]/termuseyn", "Y");
  426. }
  427. }
  428. }
  429. ]]>
  430. </script>
  431. <script type="javascript" ev:event="onaftersort">
  432. <![CDATA[
  433. grd_opcd.gridToInstance();
  434. ]]>
  435. </script>
  436. <script type="javascript" ev:event="DOMFocusOut">
  437. <![CDATA[
  438. initPopupMenu();
  439. ]]>
  440. </script>
  441. <script type="javascript" ev:event="onmousedown">
  442. <![CDATA[
  443. if(event.button == 3){
  444. fCallPopup("grd_opcd");
  445. }
  446. ]]>
  447. </script>
  448. </datagrid>
  449. <line id="line8" class="line_2" style="x1:0px; y1:511px; x2:463px; y2:511px; "/>
  450. <select1 id="cmb_termflag" ref="/root/main/peprterminfo/info/termflag" navindex="21" visibility="hidden" appearance="minimal" style="left:78px; top:367px; width:25px; height:19px; ">
  451. <choices>
  452. <item>
  453. <label>진단용어</label>
  454. <value>0</value>
  455. </item>
  456. <item>
  457. <label>수술용어</label>
  458. <value>9</value>
  459. </item>
  460. <item>
  461. <label>주호소</label>
  462. <value>2</value>
  463. </item>
  464. <item>
  465. <label>원발장기</label>
  466. <value>1</value>
  467. </item>
  468. <item>
  469. <label>ICD-O-3</label>
  470. <value>3</value>
  471. </item>
  472. <item>
  473. <label>KCD-4-M</label>
  474. <value>4</value>
  475. </item>
  476. </choices>
  477. </select1>
  478. <select1 id="cmb_icd9cd" ref="/root/main/icd9cdlist/info" disabled="true" appearance="minimal" itemcount="20" style="left:113px; top:414px; width:107px; height:19px; ">
  479. <choices>
  480. <itemset nodeset="/root/main/icd9cdlist/info">
  481. <label ref="icd9cd"/>
  482. <value ref="icd9cd"/>
  483. </itemset>
  484. </choices>
  485. <script type="javascript" ev:event="xforms-value-changed">
  486. <![CDATA[
  487. fGetNewExtCd();
  488. ]]>
  489. </script>
  490. </select1>
  491. <line id="line10" class="line_2" style="x1:0px; y1:585px; x2:463px; y2:585px; "/>
  492. <input id="ipt_fstrgstrid" ref="/root/main/peprterminfo/info/fstrgstrid" class="input_default" disabled="true" navindex="24" style="left:373px; top:612px; width:90px; height:19px; "/>
  493. <datagrid id="grd_termlist" nodeset="/root/main/sametermlist/info" class="datagrid2" caption="사용 기관명^상태^용어&#xA;코드^용어&#xA;구분^영문명^한글명^대체코드^SNOMED-CNPT&#xA;ID^SNOMED-CNPT&#xA;명^SNOMED-CT&#xA;DESCRIPTION ID^UMLS^수가코드^시작일자^종료일자^등록일시^등록자^최종수정일시^최종수정자^확장코드^용어^최종수정자ID^확장코드시작일자^확장코드종료일자^ICD시작일자" colsep="^" colwidth="85, 30, 80, 47, 149, 160, 100, 100, 100, 111, 100, 100, 85, 85, 130, 100, 130, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:469px; top:413px; width:462px; height:220px; ">
  494. <col ref="instnm"/>
  495. <col ref="state" visibility="hidden"/>
  496. <col ref="termcd"/>
  497. <col disabled="true" ref="reprflag" type="combo">
  498. <choices>
  499. <item>
  500. <label>대표어</label>
  501. <value>R</value>
  502. </item>
  503. <item>
  504. <label>동의어</label>
  505. <value>S</value>
  506. </item>
  507. <item>
  508. <label>유사어</label>
  509. <value>A</value>
  510. </item>
  511. </choices>
  512. </col>
  513. <col ref="termengnm"/>
  514. <col ref="termhngnm"/>
  515. <col ref="alttermcd"/>
  516. <col ref="snmdcnptid" visibility="visible"/>
  517. <col ref="snmdcnptnm" visibility="hidden"/>
  518. <col ref="snmddescid"/>
  519. <col ref="umlscd"/>
  520. <col ref="calcscorcd" visibility="visible"/>
  521. <col ref="termfromdd" format="yyyy-mm-dd"/>
  522. <col ref="termtodd" format="yyyy-mm-dd"/>
  523. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm:ss"/>
  524. <col ref="fstrgstrid"/>
  525. <col ref="lastupdtdt" format="yyyy-mm-dd hh:mm:ss"/>
  526. <col ref="lastupdtrnm"/>
  527. <col ref="attrcd" visibility="hidden"/>
  528. <col ref="termflag" type="combo" visibility="hidden">
  529. <choices>
  530. <item>
  531. <label>진단용어</label>
  532. <value>0</value>
  533. </item>
  534. <item>
  535. <label>수술용어</label>
  536. <value>9</value>
  537. </item>
  538. <item>
  539. <label>주호소</label>
  540. <value>2</value>
  541. </item>
  542. <item>
  543. <label>원발장기</label>
  544. <value>1</value>
  545. </item>
  546. <item>
  547. <label>ICD-O-3</label>
  548. <value>3</value>
  549. </item>
  550. <item>
  551. <label>KCD-4-M</label>
  552. <value>4</value>
  553. </item>
  554. </choices>
  555. </col>
  556. <col ref="lastupdtrid" visibility="hidden"/>
  557. <col ref="attrfromdd" visibility="hidden"/>
  558. <col ref="attrtodd" visibility="hidden"/>
  559. <col ref="icdfromdd" visibility="hidden"/>
  560. <script type="javascript" ev:event="xforms-value-changed">
  561. <![CDATA[
  562. //if(model.getValue("/root/main/sametermlist/info/state") == "-") {
  563. // model.setValue("/root/main/sametermlist/info/state", "U");
  564. //}
  565. ]]>
  566. </script>
  567. <script type="javascript" ev:event="onclick">
  568. <![CDATA[
  569. var termmode = model.getValue("/root/hidden/condition/sametermmode");
  570. if(termmode != "H"){
  571. fGetSynom();
  572. }
  573. ]]>
  574. </script>
  575. <script type="javascript" ev:event="onaftersort">
  576. <![CDATA[
  577. grd_termlist.gridToInstance();
  578. ]]>
  579. </script>
  580. </datagrid>
  581. <caption id="caption20" class="cell_1" style="left:0px; top:413px; width:110px; height:23px; vertical-align:middle; ">ICD9 코드</caption>
  582. <caption id="caption21" class="cell_1" style="left:0px; top:612px; width:60px; height:23px; vertical-align:middle; ">시작일</caption>
  583. <input id="ipt_fstrgsttime" ref="/root/main/peprterminfo/info/fstrgsttime" class="input_default" disabled="true" navindex="26" format="hh:nn" style="left:413px; top:588px; width:50px; height:19px; "/>
  584. <caption id="caption32" class="cell_1" style="left:223px; top:413px; width:110px; height:23px; vertical-align:middle; ">SNMD-concept ID</caption>
  585. <input id="ipt_engnm" ref="/root/main/peprterminfo/info/termengnm" class="input_default" disabled="true" navindex="12" imemode="alpha" style="left:113px; top:540px; width:350px; height:19px; "/>
  586. <caption id="caption22" class="cell_1" style="left:223px; top:587px; width:110px; height:23px; vertical-align:middle; ">등록일시</caption>
  587. <input id="ipt_fstrgstdate" ref="/root/main/peprterminfo/info/fstrgstdate" class="input_default" disabled="true" navindex="25" format="yyyy-mm-dd" style="left:336px; top:588px; width:73px; height:19px; "/>
  588. <caption id="caption11" class="cell_1" style="left:223px; top:463px; width:110px; height:23px; vertical-align:middle; ">색인코드</caption>
  589. <line id="line14" class="line_2" style="x1:0px; y1:537px; x2:463px; y2:537px; "/>
  590. <line id="line15" class="line_2" style="x1:0px; y1:609px; x2:463px; y2:609px; "/>
  591. <line id="line16" class="line_1" style="x1:469px; y1:408px; x2:931px; y2:408px; "/>
  592. <button id="btn_snmdcnptid" class="icon_search" disabled="true" navindex="6" style="left:444px; top:415px; width:16px; height:16px; ">
  593. <caption/>
  594. </button>
  595. <input id="ipt_hngnm" ref="/root/main/peprterminfo/info/termhngnm" class="input_default" disabled="true" navindex="13" imemode="hangul" style="left:113px; top:563px; width:350px; height:19px; "/>
  596. <line id="line17" class="line_2" style="x1:0px; y1:461px; x2:463px; y2:461px; "/>
  597. <line id="line18" class="line_2" style="x1:0px; y1:560px; x2:463px; y2:560px; "/>
  598. <caption id="caption37" class="cell_1" style="left:223px; top:438px; width:110px; height:23px; vertical-align:middle; ">SNMD-concept 명</caption>
  599. <caption id="caption26" class="tit_2" style="left:5px; top:391px; width:91px; height:13px; ">용어 관리</caption>
  600. <caption id="caption6" class="cell_1" style="left:0px; top:438px; width:110px; height:23px; vertical-align:middle; ">확장코드</caption>
  601. <caption id="caption15" class="cell_1" style="left:223px; top:513px; width:110px; height:23px; vertical-align:middle; ">수가코드</caption>
  602. <select1 id="cmb_reprflag" ref="/root/main/peprterminfo/info/reprflag" disabled="true" navindex="11" visibility="hidden" appearance="minimal" style="left:303px; top:365px; width:107px; height:19px; ">
  603. <choices>
  604. <item>
  605. <label>대표어</label>
  606. <value>R</value>
  607. </item>
  608. <item>
  609. <label>동의어</label>
  610. <value>S</value>
  611. </item>
  612. <item>
  613. <label>유사어</label>
  614. <value>A</value>
  615. </item>
  616. </choices>
  617. </select1>
  618. <line id="line19" class="line_3" style="x1:1px; y1:633px; x2:461px; y2:633px; "/>
  619. <line id="line3" class="line_1" style="x1:0px; y1:408px; x2:463px; y2:408px; "/>
  620. <caption id="caption27" class="cell_1" style="left:0px; top:463px; width:110px; height:23px; vertical-align:middle; ">용어코드</caption>
  621. <caption id="caption16" class="cell_1" style="left:311px; top:611px; width:60px; height:23px; vertical-align:middle; ">등록자</caption>
  622. <caption id="caption8" class="cell_1" style="left:0px; top:538px; width:110px; height:23px; vertical-align:middle; ">영문명</caption>
  623. <caption id="caption9" class="cell_1" style="left:0px; top:562px; width:110px; height:23px; vertical-align:middle; ">한글명</caption>
  624. <caption id="caption19" class="cell_1" style="left:157px; top:611px; width:60px; height:23px; vertical-align:middle; ">종료일</caption>
  625. <line id="line6" class="line_2" style="x1:0px; y1:436px; x2:463px; y2:436px; "/>
  626. <line id="line7" class="line_2" style="x1:0px; y1:486px; x2:463px; y2:486px; "/>
  627. <button id="btn_delete1" class="btn5_letter4" disabled="true" visibility="hidden" style="left:401px; top:383px; width:64px; height:19px; ">
  628. <caption>사용종료</caption>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. var selTermcd = model.getValue("/root/hidden/condition/selectedtermcd");
  632. var insicd9cd = model.getValue("/root/main/peprterminfo/info/icd9cd");
  633. var insopattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd");
  634. var insTermcd = model.getValue("/root/main/peprterminfo/info/termcd");
  635. var rowCnt = grd_opcd.rows;
  636. var sameTerm = model.getValue("/root/main/sametermlist/info/termcd");
  637. if(selTermcd == "" || selTermcd == null){
  638. var rtn = messageBox("수술용어를 ", "C002");
  639. return;
  640. }
  641. var rtn = messageBox("확장코드와 함께 대표어/동의어/유사어를", "Q001");
  642. if( rtn == "6") { //확장코드 + 대표어, 동이어, 유사어 모두 삭제 : messageBox("확장코드와 모든 용어들을 삭제하려면 ", "S001");
  643. model.setValue("/root/hidden/condition/status", "ETD");
  644. model.removeNodeset("/root/send");
  645. model.makeValue("/root/send/indxcd","");
  646. model.makeValue("/root/send/icd9cd","");
  647. model.makeValue("/root/send/opattrcd","");
  648. model.makeValue("/root/send/termcd","");
  649. model.makeValue("/root/send/status","");
  650. model.setValue("/root/send/indxcd", model.getValue("/root/hidden/condition/selectedIndx"));
  651. model.setValue("/root/send/icd9cd", insicd9cd);
  652. model.setValue("/root/send/opattrcd", insicd9cd + "." + insopattrcd);
  653. model.setValue("/root/send/termcd", insicd9cd + "." + insopattrcd + "." + insTermcd);
  654. model.setValue("/root/send/status", model.getValue("/root/hidden/condition/status")); //N:등록, M:수정, D:삭제
  655. submit("TXMRT00701");
  656. } else if( rtn == "7") { //대표어만 삭제하려면
  657. messageBox("용어의 수정 및 삭제는 '동의어/유사어'에서 ", "C002"); //동의어, 유사어가 있을 경우 대표어로 바꿀 것을 입력받아야 한다
  658. return;
  659. }
  660. ]]>
  661. </script>
  662. </button>
  663. <button id="btn_delete2" class="btn5_letter4" style="left:401px; top:387px; width:64px; height:19px; ">
  664. <caption>사용종료</caption>
  665. <script type="javascript" ev:event="DOMActivate">
  666. <![CDATA[
  667. fEndOpTerm();
  668. ]]>
  669. </script>
  670. </button>
  671. <input id="ipt_drindxcd" ref="/root/main/peprterminfo/info/opattrdrindxcd" class="input_default" navindex="18" visibility="hidden" style="left:118px; top:367px; width:14px; height:19px; "/>
  672. <input id="ipt_fstrgstdt" ref="/root/main/peprterminfo/info/fstrgstdt" class="input_default" disabled="true" visibility="hidden" style="left:104px; top:367px; width:14px; height:19px; "/>
  673. <input id="input6" ref="/root/main/peprterminfo/info/reprflag" visibility="hidden" style="left:145px; top:367px; width:15px; height:19px; "/>
  674. <input id="ipt_medireccd" ref="/root/main/peprterminfo/info/opattrmedireccd" class="input_default" disabled="true" navindex="9" style="left:336px; top:464px; width:127px; height:19px; "/>
  675. <button id="btn_insert1" class="btn2_letter4" navindex="10" style="left:99px; top:387px; width:64px; height:19px; ">
  676. <caption>신규입력</caption>
  677. <script type="javascript" ev:event="DOMActivate">
  678. <![CDATA[
  679. fSetNewTerm();
  680. ]]>
  681. </script>
  682. </button>
  683. <button id="btn_modify2" class="btn2_letter2" visibility="hidden" style="left:311px; top:385px; width:42px; height:19px; ">
  684. <caption>수정</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. //동의어 수정
  688. var iRow = grd_termlist.row;
  689. var term = model.getValue("/root/main/sametermlist/info[" + iRow + "]/termcd"); //그리드에서 선택한 term
  690. var indx = model.getValue("/root/hidden/condition/selectedIndx"); //트리에서 선택한 index
  691. if(term == "" || term == null){
  692. var rtn = messageBox("대표어/동의어/유사어를 ", "C002");
  693. return;
  694. }
  695. model.setValue("/root/main/peprterminfo/info/termtotime", model.getValue("/root/init/curruntTime"));
  696. model.setValue("/root/main/peprterminfo/info/termtodate", model.getValue("/root/init/today"));
  697. fDisabled("SS");
  698. model.setValue("/root/hidden/condition/status", "TM"); //term 만 modify
  699. model.refresh();
  700. ]]>
  701. </script>
  702. </button>
  703. <button id="btn_save2" class="btn5_letter2" visibility="hidden" style="left:356px; top:385px; width:42px; height:19px; ">
  704. <caption>저장</caption>
  705. <script type="javascript" ev:event="DOMActivate">
  706. <![CDATA[
  707. var insicd9cd = model.getValue("/root/main/peprterminfo/info/icd9cd");
  708. var insopattrcd = model.getValue("/root/main/peprterminfo/info/opattrcd");
  709. var insTermcd = model.getValue("/root/main/peprterminfo/info/termcd");
  710. var rowCnt = grd_termlist.rows;
  711. model.removeNodeset("/root/send");
  712. model.makeValue("/root/send/indxcd",model.getValue("/root/hidden/condition/selectedIndx"));
  713. model.makeValue("/root/send/icd9cd",insicd9cd);
  714. model.makeValue("/root/send/opattrcd",insicd9cd + "." + insopattrcd);
  715. model.makeValue("/root/send/termcd",insicd9cd + "." + insopattrcd + "." + insTermcd);
  716. model.makeValue("/root/send/snmddescid",model.getValue("/root/main/peprterminfo/info/snmddescid"));
  717. model.makeValue("/root/send/termengnm",model.getValue("/root/main/peprterminfo/info/termengnm"));
  718. model.makeValue("/root/send/termhngnm",model.getValue("/root/main/peprterminfo/info/termhngnm"));
  719. model.makeValue("/root/send/termfromdd",model.getValue("/root/main/peprterminfo/info/termfromdate") + model.getValue("/root/main/peprterminfo/info/termfromtime")+"59"); //용어시작일
  720. model.makeValue("/root/send/termtodd",model.getValue("/root/main/peprterminfo/info/termtodate") + model.getValue("/root/main/peprterminfo/info/termtotime")+"59"); //용어종료일
  721. model.makeValue("/root/send/fstrgstdt",model.getValue("/root/main/peprterminfo/info/fstrgstdate") + model.getValue("/root/main/peprterminfo/info/fstrgsttime")+"00"); //용어등록일
  722. model.makeValue("/root/send/fstrgstrid", "/root/main/peprterminfo/info/fstrgstrid"); //용어등록/수정자id
  723. model.makeValue("/root/send/indxflag",model.getValue("/root/hidden/condition/indxflag")); //용어수정일
  724. model.makeValue("/root/send/reprflag",model.getValue("/root/main/peprterminfo/info/reprflag")); //대표어구분
  725. model.makeValue("/root/send/termflag",model.getValue("/root/main/peprterminfo/info/termflag")); //용어구분
  726. model.makeValue("/root/send/status",model.getValue("/root/hidden/condition/status")); //N:등록, M:수정
  727. if(model.getValue("/root/hidden/condition/status") == "TN") {
  728. if(model.getValue("/root/main/peprterminfo/info/reprflag") == "R") {
  729. var rtn = messageBox("대표어로 등록", "E001");
  730. }
  731. submit("TXMRT00701");
  732. model.refresh();
  733. } else if(model.getValue("/root/hidden/condition/status") == "TM") {
  734. for(var i=1; i<= rowCnt; i++) {
  735. if( (insicd9cd + "." + insopattrcd + "." + insTermcd) != model.getValue("/root/main/sametermlist/info[" + i + "]/termcd")){
  736. if(model.getValue("/root/main/sametermlist/info[" + i + "]/termengnm") != model.getValue("/root/main/peprterminfo/info/termengnm") ||
  737. model.getValue("/root/main/sametermlist/info[" + i + "]/termhngnm") != model.getValue("/root/main/peprterminfo/info/termhngnm") ||
  738. model.getValue("/root/main/sametermlist/info[" + i + "]/reprflag") != model.getValue("/root/main/peprterminfo/info/termflag") ||
  739. model.getValue("/root/main/sametermlist/info[" + i + "]/termflag") != model.getValue("/root/main/peprterminfo/info/termflag") ||
  740. model.getValue("/root/main/sametermlist/info[" + i + "]/termfromdd") != model.getValue("/root/main/peprterminfo/info/termfromdd") ||
  741. model.getValue("/root/main/sametermlist/info[" + i + "]/termtodd") != model.getValue("/root/main/peprterminfo/info/termtodd") ||
  742. model.getValue("/root/main/sametermlist/info[" + i + "]/fstrgstdt") != model.getValue("/root/main/peprterminfo/info/fstrgstdt")) {
  743. submit("TXMRT00701");
  744. model.refresh();
  745. } else {
  746. var rtn = messageBox("수정되지 ", "E007");
  747. return;
  748. }
  749. }
  750. }
  751. } else {
  752. var rtn = messageBox("신규 혹은 수정 버튼을 ", "C002");
  753. return;
  754. }
  755. ]]>
  756. </script>
  757. </button>
  758. <button id="btn_modify1" class="btn2_letter2" style="left:244px; top:387px; width:42px; height:19px; ">
  759. <caption>수정</caption>
  760. <script type="javascript" ev:event="DOMActivate">
  761. <![CDATA[
  762. fSetTermUpdt();
  763. ]]>
  764. </script>
  765. </button>
  766. <button id="btn_save1" class="btn5_letter2" style="left:356px; top:387px; width:42px; height:19px; ">
  767. <caption>저장</caption>
  768. <script type="javascript" ev:event="DOMActivate">
  769. <![CDATA[
  770. fSaveOp();
  771. ]]>
  772. </script>
  773. </button>
  774. <button id="btn_insert2" class="btn2_letter5" style="left:166px; top:387px; width:75px; height:19px; ">
  775. <caption>동의어입력</caption>
  776. <script type="javascript" ev:event="DOMActivate">
  777. <![CDATA[
  778. fSetInj();
  779. ]]>
  780. </script>
  781. </button>
  782. <button id="button1" class="btn_sw" group="tab1" selected="true" style="left:470px; top:385px; width:69px; height:22px; ">
  783. <caption>동의어</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. fGetSynomList();
  787. ]]>
  788. </script>
  789. </button>
  790. <button id="button2" class="btn_sw" group="tab1" style="left:540px; top:385px; width:74px; height:22px; ">
  791. <caption>이력조회</caption>
  792. <script type="javascript" ev:event="DOMActivate">
  793. <![CDATA[
  794. fGetOpTermHistList();
  795. ]]>
  796. </script>
  797. </button>
  798. <input id="ipt_opattrcd" ref="/root/main/peprterminfo/info/opattrcd" class="input_default" disabled="true" navindex="1" format="999" style="left:113px; top:439px; width:107px; height:19px; "/>
  799. <caption id="caption3" class="cell_1" visibility="hidden" style="left:190px; top:363px; width:110px; height:23px; vertical-align:middle; ">대표어 구분</caption>
  800. <input id="ipt_snmdcnptid" ref="/root/main/peprterminfo/info/snmdcnptid" class="input_default" disabled="true" navindex="5" style="left:336px; top:414px; width:105px; height:19px; "/>
  801. <input id="ipt_snmdcnptnm" ref="/root/main/peprterminfo/info/snmdcnptnm" class="input_default" disabled="true" navindex="7" style="left:336px; top:439px; width:127px; height:19px; "/>
  802. <input id="ipt_termcd" ref="/root/main/peprterminfo/info/termcd" class="input_default" disabled="true" navindex="3" format="99" style="left:113px; top:464px; width:107px; height:19px; "/>
  803. <caption id="caption7" class="cell_1" style="left:0px; top:488px; width:110px; height:23px; vertical-align:middle; ">버전</caption>
  804. <button id="btn_opattrcd" class="icon_search" disabled="true" navindex="2" visibility="hidden" style="left:200px; top:440px; width:16px; height:16px; ">
  805. <caption/>
  806. </button>
  807. <button id="btn_medreccd" class="icon_search" disabled="true" navindex="10" visibility="hidden" style="left:440px; top:466px; width:16px; height:16px; ">
  808. <caption/>
  809. </button>
  810. <input id="ipt_calcscor" ref="/root/main/peprterminfo/info/calcscorcd" class="input_default" disabled="true" navindex="14" style="left:336px; top:515px; width:104px; height:19px; ">
  811. <script type="javascript" ev:event="onkeyup">
  812. <![CDATA[
  813. inputEnterKey("btn_calcscor", "DOMActivate");
  814. ]]>
  815. </script>
  816. </input>
  817. <button id="btn_calcscor" class="icon_search" disabled="false" navindex="15" style="left:444px; top:516px; width:16px; height:16px; ">
  818. <caption/>
  819. <script type="javascript" ev:event="DOMActivate">
  820. <![CDATA[
  821. fGetCalcScor();
  822. //model.removeNodeset("/root/send");
  823. //model.makeValue("/root/send/paramindx","");
  824. //model.setValue("/root/send/paramindx", "9");
  825. //modal("../../../emr/termmngtweb/xrw/SMMRT00100_색인관리", 1,10, 10, "SMMRT00100", "/root/send", "/root/hidden/condition/getdata");
  826. //open("SMPIC00200", 1, 10,10);
  827. /*var child = "SMMRT00100";
  828. if(child != null){
  829. model.removeNodeset("/root/send");
  830. model.makeValue("/root/send/mode",model.getValue("/root/hidden/condition/indxviewmode"));
  831. model.makeValue("/root/send/indxflag",model.getValue("/root/hidden/condition/indxflag"));
  832. submit("TRMRT00701");
  833. trv_dgindx.refresh();
  834. }*/
  835. ]]>
  836. </script>
  837. </button>
  838. <input id="ipt_termfromdd" ref="/root/main/peprterminfo/info/termfromdd" class="input_default" disabled="true" navindex="16" inputtype="date" format="yyyy-mm-dd" style="left:63px; top:613px; width:90px; height:19px; ">
  839. <script type="javascript" ev:event="xforms-value-changed">
  840. <![CDATA[
  841. if(model.getValue("/root/hidden/condition/status") == "ETM"){
  842. var newfromdd = model.getValue("/root/main/peprterminfo/info/termfromdd");
  843. var oldfromdd = model.getValue("/root/main/peprterminfo/info/oldtermfromdd");
  844. if(parseInt(newfromdd) < parseInt(oldfromdd)){
  845. messageBox("이전 일자를 선택", "E001");
  846. return;
  847. }
  848. }
  849. model.setValue("/root/main/peprterminfo/info/attrfromdd", model.getValue("/root/main/peprterminfo/info/termfromdd"));
  850. ]]>
  851. </script>
  852. </input>
  853. <input id="ipt_termtodd" ref="/root/main/peprterminfo/info/termtodd" class="input_default" disabled="true" navindex="18" inputtype="date" format="yyyy-mm-dd" style="left:218px; top:612px; width:90px; height:19px; ">
  854. <script type="javascript" ev:event="xforms-value-changed">
  855. <![CDATA[
  856. model.setValue("/root/main/peprterminfo/info/attrtodd", model.getValue("/root/main/peprterminfo/info/termtodd"));
  857. ]]>
  858. </script>
  859. </input>
  860. <input id="input2" ref="/root/main/peprterminfo/info/attrfromdd" class="input_default" disabled="true" visibility="hidden" style="left:160px; top:367px; width:14px; height:19px; "/>
  861. <input id="input3" ref="/root/main/peprterminfo/info/attrtodd" class="input_default" disabled="true" visibility="hidden" style="left:132px; top:367px; width:14px; height:19px; "/>
  862. <input id="input4" ref="/root/main/peprterminfo/info/icdfromdd" class="input_default" disabled="true" visibility="hidden" style="left:174px; top:367px; width:14px; height:19px; "/>
  863. <output id="opt_Hdicd9cd" ref="/root/main/peprterminfo/info/icd9cd" class="output_fix" visibility="hidden" appearance="output" style="left:113px; top:414px; width:107px; height:19px; "/>
  864. <select1 id="cmb_version" ref="/root/main/peprterminfo/info/opattrverflag" disabled="true" navindex="11" visibility="visible" appearance="minimal" style="left:113px; top:490px; width:107px; height:19px; ">
  865. <choices>
  866. <item>
  867. <label>ICD9</label>
  868. <value>9</value>
  869. </item>
  870. </choices>
  871. </select1>
  872. <line id="line4" class="line_3" style="x1:0px; y1:381px; x2:931px; y2:381px; "/>
  873. <button id="button4" class="btn5_letter4" style="left:289px; top:387px; width:64px; height:19px; ">
  874. <caption>되살리기</caption>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. fRollbackTerm();
  878. ]]>
  879. </script>
  880. </button>
  881. <caption id="caption1" class="cell_1" visibility="visible" style="left:223px; top:488px; width:110px; height:23px; vertical-align:middle; ">UMLS</caption>
  882. <input id="ipt_umlscd" ref="/root/main/peprterminfo/info/umlscd" class="input_default" disabled="true" navindex="9" style="left:336px; top:489px; width:127px; height:19px; "/>
  883. <input id="ipt_alttermcd" ref="/root/main/peprterminfo/info/alttermcd" class="input_default" disabled="true" navindex="14" style="left:113px; top:515px; width:85px; height:19px; ">
  884. <script type="javascript" ev:event="onkeyup">
  885. <![CDATA[
  886. inputEnterKey("btn_calcscor", "DOMActivate");
  887. ]]>
  888. </script>
  889. </input>
  890. <caption id="caption2" class="cell_1" style="left:0px; top:513px; width:110px; height:23px; vertical-align:middle; ">대체코드</caption>
  891. <button id="btn_altterm" class="icon_search" disabled="true" navindex="15" style="left:202px; top:516px; width:16px; height:16px; ">
  892. <caption/>
  893. <script type="javascript" ev:event="DOMActivate">
  894. <![CDATA[
  895. var ref1 = "/root/main/peprterminfo/info/alttermcd";
  896. fCallTermSrch(ref1);
  897. ]]>
  898. </script>
  899. </button>
  900. <line id="line1" class="line_2" style="x1:0px; y1:537px; x2:463px; y2:537px; "/>
  901. <button id="button6" class="btn_sw" group="tab1" style="left:615px; top:385px; width:130px; height:22px; ">
  902. <caption>기관별 사용 이력조회</caption>
  903. <script type="javascript" ev:event="DOMActivate">
  904. <![CDATA[
  905. fGetDiagInstTermHistList();
  906. ]]>
  907. </script>
  908. </button>
  909. <select1 id="cmb_allinsthist" ref="/root/hidden/condition/allinsthist" class="combo_default" visibility="hidden" appearance="minimal" style="left:827px; top:388px; width:100px; height:19px; ">
  910. <choices>
  911. <itemset nodeset="/root/init/M0534allcmb/M0534">
  912. <label ref="cdnm"/>
  913. <value ref="cdid"/>
  914. </itemset>
  915. </choices>
  916. <script type="javascript" ev:event="xforms-value-changed">
  917. <![CDATA[
  918. var selInstcd = model.getValue("/root/hidden/condition/selInstcd");
  919. if(selInstcd == "001"){
  920. btn_saverow.disabled = true;
  921. }
  922. else{
  923. btn_saverow.disabled = false;
  924. }
  925. fGetDiagInstTermHistList();
  926. ]]>
  927. </script>
  928. </select1>
  929. <caption id="cap_allinsthist" class="search_name" visibility="hidden" style="left:764px; top:389px; width:66px; height:17px; ">기관 :</caption>
  930. <caption id="cap_appinst" class="cell_1" visibility="visible" style="left:0px; top:636px; width:110px; height:40px; vertical-align:middle; ">적용 기관</caption>
  931. <select id="chk_appinst" ref="/root/main/peprterminfo/info/appinstcd" disabled="true" visibility="visible" overflow="visible" appearance="full" cellspacing="20" cols="7" rows="2" sep="▦" vcellspacing="5" style="left:113px; top:634px; width:795px; height:45px; border-style:none; ">
  932. <choices>
  933. <itemset nodeset="/root/init/M0534list/M0534">
  934. <label ref="cdnm"/>
  935. <value ref="cdid"/>
  936. </itemset>
  937. </choices>
  938. <script type="javascript" ev:event="xforms-value-changed">
  939. <![CDATA[
  940. var essntermflag = model.getValue("/root/main/peprterminfo/info/essntermflag");
  941. if(essntermflag == "Y"){
  942. for(var a = 0; a < chk_appinst.length ; a++){
  943. chk_appinst.select(a);
  944. }
  945. }
  946. chk_appinst.refresh();
  947. ]]>
  948. </script>
  949. </select>
  950. <line id="line2" class="line_3" style="x1:0px; y1:676px; x2:925px; y2:676px; "/>
  951. <select1 id="rdo_essntermflag" ref="/root/main/peprterminfo/info/essntermflag" disabled="true" navindex="17" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:113px; top:589px; width:102px; height:20px; border-style:none; ">
  952. <choices>
  953. <item>
  954. <label>Y</label>
  955. <value>Y</value>
  956. </item>
  957. <item>
  958. <label>N</label>
  959. <value>N</value>
  960. </item>
  961. </choices>
  962. <script type="javascript" ev:event="xforms-value-changed">
  963. <![CDATA[
  964. var essntermflag = model.getValue("/root/main/peprterminfo/info/essntermflag");
  965. if(essntermflag == "Y"){
  966. for(var a = 0; a < chk_appinst.length ; a++){
  967. chk_appinst.select(a);
  968. }
  969. }
  970. chk_appinst.refresh();
  971. ]]>
  972. </script>
  973. </select1>
  974. <caption id="caption36" class="cell_1" style="left:0px; top:587px; width:110px; height:23px; vertical-align:middle; ">필수용어 여부</caption>
  975. </case>
  976. <case id="case_deptopinfo">
  977. <caption id="caption23" class="tit_2" style="left:0px; top:10px; width:87px; height:14px; ">과수술 정보</caption>
  978. <line id="line28" class="line_1" style="x1:1px; y1:23px; x2:931px; y2:23px; "/>
  979. <line id="line29" class="line_1" style="x1:3px; y1:342px; x2:931px; y2:342px; "/>
  980. <caption id="caption29" class="tit_2" style="left:0px; top:325px; width:76px; height:14px; ">수술 추가</caption>
  981. <datagrid id="grd_deptop" nodeset="/root/main/deptopcdlist/deptopcdinfo" allowselection="false" caption="상태^ICD-9^색인코드^색인명^수술 영문명^수술 한글명^진료과^deptcd^deptfromdt^deptindxflag" colsep="^" colwidth="38, 128, 100, 130, 310, 310, 100, 0, 0, 0" dataheight="25" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:28px; width:931px; height:287px; vertical-align:middle; ">
  982. <col ref="status" type="combo" style="text-align:center; ">
  983. <choices>
  984. <item>
  985. <label>-</label>
  986. <value>-</value>
  987. </item>
  988. <item>
  989. <label>입력</label>
  990. <value>I</value>
  991. </item>
  992. <item>
  993. <label>수정</label>
  994. <value>U</value>
  995. </item>
  996. <item>
  997. <label>삭제</label>
  998. <value>D</value>
  999. </item>
  1000. </choices>
  1001. </col>
  1002. <col ref="termcd"/>
  1003. <col ref="deptindxcd"/>
  1004. <col ref="deptindxnm"/>
  1005. <col ref="termengnm"/>
  1006. <col ref="termhngnm"/>
  1007. <col ref="deptnm" visibility="hidden"/>
  1008. <col ref="deptcd"/>
  1009. <col ref="deptfromdt"/>
  1010. <col ref="deptindxflag"/>
  1011. <script type="javascript" ev:event="onaftersort">
  1012. <![CDATA[
  1013. grd_deptop.gridToInstance();
  1014. ]]>
  1015. </script>
  1016. </datagrid>
  1017. <datagrid id="grd_srchedopinfo" nodeset="/root/main/srchedopcdlist/srchedopcdinfo" allowselection="false" caption="선택^ICD-9^수술 영문명^수술 한글명" colsep="^" colwidth="34, 130, 370, 370" dataheight="25" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:347px; width:930px; height:327px; text-align:center; vertical-align:middle; ">
  1018. <col ref="check" type="checkbox"/>
  1019. <col ref="termcd" style="text-align:left; "/>
  1020. <col ref="termengnm" style="text-align:left; "/>
  1021. <col ref="termhngnm" style="text-align:left; "/>
  1022. <script type="javascript" ev:event="onclick">
  1023. <![CDATA[
  1024. if(grd_srchedopinfo.row == 0){
  1025. var sCheck = model.getValue("/root/main/srchedopcdlist/srchedopcdinfo[1]/check");
  1026. if(sCheck == "true"){
  1027. var sRowCnt = grd_srchedopinfo.rows- grd_srchedopinfo.fixedRows;
  1028. for(var iRow=1; iRow <= sRowCnt; iRow++){
  1029. model.setValue("/root/main/srchedopcdlist/srchedopcdinfo["+iRow+"]/check","false");
  1030. }
  1031. }else{
  1032. var sRowCnt = grd_srchedopinfo.rows- grd_srchedopinfo.fixedRows;
  1033. for(var iRow=1; iRow <= sRowCnt; iRow++){
  1034. model.setValue("/root/main/srchedopcdlist/srchedopcdinfo["+iRow+"]/check","true");
  1035. }
  1036. }
  1037. grd_srchedopinfo.rebuild();
  1038. }
  1039. ]]>
  1040. </script>
  1041. <script type="javascript" ev:event="onaftersort">
  1042. <![CDATA[
  1043. grd_srchedopinfo.gridToInstance();
  1044. ]]>
  1045. </script>
  1046. </datagrid>
  1047. <button id="btn_srchdeptop" class="btn2_letter2" style="left:801px; top:3px; width:42px; height:19px; ">
  1048. <caption>조회</caption>
  1049. <script type="javascript" ev:event="DOMActivate">
  1050. <![CDATA[
  1051. var sSelectedMode = model.getValue("/root/hidden/condition/selctedmode");
  1052. var selIndxCd = model.getValue("/root/hidden/condition/selectedIndx");
  1053. var sDeptCd = model.getValue("/root/hidden/condition/deptset/selecteddeptcd");
  1054. if(sDeptCd == ""){
  1055. messageBox("부서코드를 먼저", "C002");
  1056. return;
  1057. }
  1058. if(selIndxCd == ""){
  1059. messageBox("색인코드를 먼저", "C002");
  1060. return;
  1061. }
  1062. model.removeNodeset("/root/send");
  1063. model.makeValue("/root/send/indxcd", selIndxCd);
  1064. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  1065. model.makeValue("/root/send/deptcd", sDeptCd);
  1066. submit("TRMRT00711");
  1067. ]]>
  1068. </script>
  1069. </button>
  1070. <button id="btn_savedeptop" class="btn5_letter2" navindex="18" style="left:887px; top:3px; width:42px; height:19px; ">
  1071. <caption>저장</caption>
  1072. <script type="javascript" ev:event="DOMActivate">
  1073. <![CDATA[
  1074. fSaveDeptOpInfo();
  1075. ]]>
  1076. </script>
  1077. </button>
  1078. <button id="btn_sendop" class="icon_top" style="left:549px; top:320px; width:26px; height:19px; ">
  1079. <caption/>
  1080. <script type="javascript" ev:event="DOMActivate">
  1081. <![CDATA[
  1082. fSendDeptOp();
  1083. ]]>
  1084. </script>
  1085. </button>
  1086. <button id="btn_srchop" class="btn2_letter2" style="left:415px; top:321px; width:42px; height:19px; ">
  1087. <caption>조회</caption>
  1088. <script type="javascript" ev:event="DOMActivate">
  1089. <![CDATA[
  1090. fSrchOpInfo();
  1091. ]]>
  1092. </script>
  1093. </button>
  1094. <button id="btn_deptsrch" class="icon_search" style="left:147px; top:5px; width:16px; height:16px; ">
  1095. <caption/>
  1096. <script type="javascript" ev:event="DOMActivate">
  1097. <![CDATA[
  1098. fCallDeptInfo();
  1099. ]]>
  1100. </script>
  1101. </button>
  1102. <input id="ipt_deptnm" ref="/root/hidden/condition/deptset/selecteddeptnm" class="input_search" style="left:166px; top:4px; width:100px; height:19px; ">
  1103. <script type="javascript" ev:event="onkeyup">
  1104. <![CDATA[
  1105. inputEnterKey("btn_deptsrch", "DOMActivate");
  1106. ]]>
  1107. </script>
  1108. </input>
  1109. <input id="ipt_deptcd" ref="/root/hidden/condition/deptset/selecteddeptcd" class="input_search" style="left:94px; top:4px; width:50px; height:19px; "/>
  1110. <button id="btn_deldeptop" class="btn2_letter2" style="left:844px; top:3px; width:42px; height:19px; ">
  1111. <caption>삭제</caption>
  1112. <script type="javascript" ev:event="DOMActivate">
  1113. <![CDATA[
  1114. var iRow = grd_deptop.row;
  1115. if(iRow < 1){
  1116. return;
  1117. }
  1118. if(model.getValue("/root/main/deptopcdlist/deptopcdinfo["+iRow+"]/status") == "I"){
  1119. grd_deptop.deleteItem(iRow);
  1120. }else{
  1121. model.setValue("/root/main/deptopcdlist/deptopcdinfo["+iRow+"]/status","D");
  1122. }
  1123. grd_deptop.rebuild();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <select1 id="rdo_srchflag" ref="/root/hidden/condition/deptset/srchflag" class="radio_search" navindex="2" appearance="full" cols="3" overflow="visible" style="left:90px; top:321px; width:160px; height:20px; border-style:none; ">
  1128. <choices>
  1129. <item>
  1130. <label>코드</label>
  1131. <value>C</value>
  1132. </item>
  1133. <item>
  1134. <label>영문명</label>
  1135. <value>E</value>
  1136. </item>
  1137. <item>
  1138. <label>한글명</label>
  1139. <value>H</value>
  1140. </item>
  1141. </choices>
  1142. </select1>
  1143. <input id="ipt_srchnm" ref="/root/hidden/condition/deptset/srchnm" class="input_search" navindex="3" style="left:255px; top:322px; width:155px; height:19px; ">
  1144. <script type="javascript" ev:event="onkeyup">
  1145. <![CDATA[
  1146. inputEnterKey("btn_srchop", "DOMActivate");
  1147. ]]>
  1148. </script>
  1149. </input>
  1150. <button id="btn_srchextnop" class="btn2_letter6" style="left:460px; top:320px; width:86px; height:19px; ">
  1151. <caption>전체수술 조회</caption>
  1152. <script type="javascript" ev:event="DOMActivate">
  1153. <![CDATA[
  1154. fCallExtnOpInfo();
  1155. ]]>
  1156. </script>
  1157. </button>
  1158. </case>
  1159. </switch>
  1160. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:255px; top:8px; width:938px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1161. <line id="line13" class="line_4" style="x1:1125px; y1:15px; x2:1125px; y2:37px; "/>
  1162. <line id="line11" class="line_2" style="x1:0px; y1:70px; x2:250px; y2:70px; "/>
  1163. <line id="line12" class="line_1" style="x1:0px; y1:66px; x2:250px; y2:66px; "/>
  1164. <caption id="caption4" class="search_name" style="left:479px; top:17px; width:60px; height:17px; ">조회 :</caption>
  1165. <input id="input5" ref="/root/hidden/condition/srchnm" class="input_search" navindex="3" style="left:539px; top:16px; width:100px; height:19px; ">
  1166. <script type="javascript" ev:event="onkeyup">
  1167. <![CDATA[
  1168. inputEnterKey("btn_srchtermcd", "DOMActivate");
  1169. ]]>
  1170. </script>
  1171. </input>
  1172. <caption id="caption5" class="search_name" style="left:265px; top:17px; width:60px; height:17px; ">구분 :</caption>
  1173. <select1 id="radio2" ref="/root/hidden/condition/srchflag" class="radio_search" navindex="2" appearance="full" cols="3" overflow="visible" style="left:325px; top:17px; width:155px; height:20px; border-style:none; ">
  1174. <choices>
  1175. <item>
  1176. <label>코드</label>
  1177. <value>C</value>
  1178. </item>
  1179. <item>
  1180. <label>영문명</label>
  1181. <value>E</value>
  1182. </item>
  1183. <item>
  1184. <label>한글명</label>
  1185. <value>H</value>
  1186. </item>
  1187. </choices>
  1188. </select1>
  1189. <select1 id="radio1" ref="/root/hidden/condition/indxviewmode" appearance="full" cellspacing="3" cols="2" overflow="visible" style="left:0px; top:45px; width:115px; height:20px; border-style:none; ">
  1190. <choices>
  1191. <item>
  1192. <label>한글명</label>
  1193. <value>H</value>
  1194. </item>
  1195. <item>
  1196. <label>영문명</label>
  1197. <value>E</value>
  1198. </item>
  1199. </choices>
  1200. <script type="javascript" ev:event="xforms-value-changed">
  1201. <![CDATA[
  1202. fChngLangIndx();
  1203. ]]>
  1204. </script>
  1205. </select1>
  1206. <button id="button22" class="btn2_letter4" style="left:185px; top:45px; width:64px; height:19px; ">
  1207. <caption>색인추가</caption>
  1208. <script type="javascript" ev:event="DOMActivate">
  1209. <![CDATA[
  1210. var selectedmode = model.getValue("/root/hidden/condition/selctedmode");
  1211. if(selectedmode != "P"){
  1212. model.removeNodeset("/root/send");
  1213. model.makeValue("/root/send/paramindx","");
  1214. model.setValue("/root/send/paramindx", "9");
  1215. modal("SMMRT00100", 1,10, 10, "SMMRT00100", "/root/send", "/root/hidden/condition/getdata");
  1216. var child = "SMMRT00100";
  1217. if(child != null){
  1218. model.removeNodeset("/root/send");
  1219. model.makeValue("/root/send/mode",model.getValue("/root/hidden/condition/indxviewmode"));
  1220. model.makeValue("/root/send/indxflag",model.getValue("/root/hidden/condition/indxflag"));
  1221. submit("TRMRT00701");
  1222. trv_dgindx.refresh();
  1223. }
  1224. }else{
  1225. model.removeNodeset("/root/send");
  1226. model.makeValue("/root/send/indxflag","9");
  1227. model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd"));
  1228. model.makeValue("/root/send/deptnm", model.getValue("/root/hidden/condition/deptset/selecteddeptnm"));
  1229. modal("SMMRT01300",1,10,10,"SMMRT01300","/root/send","/root/hidden/condition/getdata");
  1230. if(getParameter("saveyn") == "Y" && model.getValue("/root/hidden/condition/deptset/selecteddeptcd") != ""){
  1231. model.removenode("/root/send");
  1232. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  1233. model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd"));
  1234. if(submit("TRMRT00710")){
  1235. model.removenodeset("/root/main/deptdiagcdlist/deptdiagcdinfo");
  1236. model.setValue("/root/hidden/condition/selectedIndx","");
  1237. grd_deptop.rebuild();
  1238. trv_dgindx.rebuild();
  1239. }
  1240. }
  1241. }
  1242. ]]>
  1243. </script>
  1244. </button>
  1245. <treeview id="trv_dgindx" ref="/root/hidden/condition/selectedIndx" expanddepth="1" itemheight="15" itemsettype="depth" style="left:0px; top:72px; width:250px; height:679; border-color:#c0c0c0; border-style:solid; ">
  1246. <itemset nodeset="/root/main/indxlist/item">
  1247. <label ref="indxhngnm"/>
  1248. <value ref="indxcd"/>
  1249. <depth ref="depth"/>
  1250. </itemset>
  1251. <script type="javascript" ev:event="xforms-select">
  1252. <![CDATA[
  1253. var sSelectedMode = model.getValue("/root/hidden/condition/selctedmode");
  1254. var iIndx = trv_dgindx.focusIndex + 1;
  1255. var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd");
  1256. fDisabled("AS");
  1257. model.removeNodeset("/root/send");
  1258. model.makeValue("/root/send/indxcd", selIndxCd);
  1259. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  1260. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  1261. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  1262. model.makeValue("/root/send/maininstyn", model.getValue("/root/hidden/condition/maininstyn"));
  1263. model.makeValue("/root/send/selInstcd", model.getValue("/root/hidden/condition/selInstcd"));
  1264. switch(sSelectedMode){
  1265. case 'P' : // 과수술 코드
  1266. fDisabled("AS");
  1267. model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd"));
  1268. submit("TRMRT00711");
  1269. break;
  1270. default :
  1271. model.setValue("/root/hidden/condition/selectedIndx", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"));
  1272. model.setValue("/root/hidden/condition/selectedIndxDepth", model.getValue("/root/main/indxlist/item[" + iIndx + "]/depth"));
  1273. model.setValue("/root/hidden/condition/selectedIndxPath", model.getValue("/root/main/indxlist/item[" + iIndx + "]/pathcd"));
  1274. submit("TRMRT00702");
  1275. grd_icd9.rebuild();
  1276. grd_opcd.rebuild();
  1277. }
  1278. ]]>
  1279. </script>
  1280. <script type="javascript" ev:event="onmousedown">
  1281. <![CDATA[
  1282. if(event.button == 3){
  1283. if(model.getValue("/root/hidden/condition/selctedmode") == "D"){
  1284. fCallPopup("trv_dgindx");
  1285. }
  1286. }
  1287. ]]>
  1288. </script>
  1289. <script type="javascript" ev:event="DOMFocusOut">
  1290. <![CDATA[
  1291. initPopupMenu();
  1292. ]]>
  1293. </script>
  1294. </treeview>
  1295. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:8px; width:250px; height:35; background-color:#fffbf2; border-color:#ffd799; "/>
  1296. <input id="input1" ref="/root/hidden/condition/srchindxcd" class="input_search" style="left:10px; top:16px; width:155px; height:19px; ">
  1297. <script type="javascript" ev:event="onkeyup">
  1298. <![CDATA[
  1299. inputEnterKey("btn_srchindxcd", "DOMActivate");
  1300. ]]>
  1301. </script>
  1302. </input>
  1303. <button id="btn_srchindxcd" class="btn1_letter2" navindex="4" style="left:185px; top:15px; width:56px; height:22px; ">
  1304. <caption>조회</caption>
  1305. <script type="javascript" ev:event="DOMActivate">
  1306. <![CDATA[
  1307. if(model.getValue("/root/hidden/condition/srchindxcd") == "" || model.getValue("/root/hidden/condition/srchindxcd") == null){
  1308. var rtn = messageBox("검색할 색인코드를 ", "C001");
  1309. return;
  1310. } else {
  1311. model.setValue("/root/hidden/condition/selectedIndx", model.getValue("/root/hidden/condition/srchindxcd"));
  1312. trv_dgindx.expandDepth = 5;
  1313. model.refresh();
  1314. trv_dgindx.vscroll.attribute("pos") = ( parseInt(trv_dgindx.attribute("itemheight")) + 1 ) * trv_dgindx.selectedIndex;
  1315. }
  1316. ]]>
  1317. </script>
  1318. </button>
  1319. <button id="btn_srchtermcd" class="btn1_letter2" navindex="4" style="left:1130px; top:15px; width:56px; height:22px; ">
  1320. <caption>조회</caption>
  1321. <script type="javascript" ev:event="DOMActivate">
  1322. <![CDATA[
  1323. if(model.getValue("/root/hidden/condition/srchnm") == "" || model.getValue("/root/hidden/condition/srchnm") == null){
  1324. var rtn = messageBox("검색어를 ", "C001");
  1325. return;
  1326. } else {
  1327. model.removeNodeset("/root/send");
  1328. model.makeValue("/root/send/srchflag", model.getValue("/root/hidden/condition/srchflag"));
  1329. model.makeValue("/root/send/srchnm", model.getValue("/root/hidden/condition/srchnm"));
  1330. model.makeValue("/root/send/srchfromdd", model.getValue("/root/hidden/condition/srchfromdd"));
  1331. model.makeValue("/root/send/srchtodd", model.getValue("/root/hidden/condition/srchtodd"));
  1332. model.makeValue("/root/send/endflag", model.getValue("/root/hidden/condition/endflag"));
  1333. var srchnm = model.getValue("/root/hidden/condition/srchnm");
  1334. srchnm = srchnm.replace(/^ *| *$/g, "");
  1335. if(model.getValue("/root/send/srchflag") == "C" || model.getValue("/root/send/srchflag") == "E") {
  1336. srchnm = srchnm.toUpperCase();
  1337. model.setValue("/root/send/srchnm", srchnm);
  1338. }
  1339. if(model.getValue("/root/hidden/condition/selctedmode") == "I" ) {
  1340. model.removeNodeset("/root/main/opcdinfo/icd9cd");
  1341. submit("TRMRT00703");
  1342. } else if (model.getValue("/root/hidden/condition/selctedmode") == "D" ) {
  1343. model.removeNodeset("/root/main/opcdinfo/opcd");
  1344. submit("TRMRT00704");
  1345. } else if(model.getValue("/root/hidden/condition/selctedmode") == "P" ) {
  1346. if(model.getValue("/root/hidden/condition/deptset/selecteddeptcd") == "") {
  1347. messageBox("과를 ", "C002");
  1348. return;
  1349. }
  1350. model.removeNodeset("/root/send");
  1351. model.removeNodeset("/root/main/deptopcdlist/deptopcdinfo");
  1352. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  1353. model.makeValue("/root/send/indxcd", "null");
  1354. model.makeValue("/root/send/deptcd", model.getValue("/root/hidden/condition/deptset/selecteddeptcd"));
  1355. model.makeValue("/root/send/srchflag", model.getValue("/root/hidden/condition/srchflag"));
  1356. model.makeValue("/root/send/srchnm", model.getValue("/root/hidden/condition/srchnm"));
  1357. submit("TRMRT00711");
  1358. }
  1359. model.refresh();
  1360. }
  1361. ]]>
  1362. </script>
  1363. </button>
  1364. <button id="button15" class="btn2_letter2" visibility="visible" style="left:1152px; top:48px; width:42px; height:19px; ">
  1365. <caption>엑셀</caption>
  1366. <script type="javascript" ev:event="DOMActivate">
  1367. <![CDATA[
  1368. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1369. if (fileName != "")
  1370. {
  1371. switch(switch2.selectedIndex){
  1372. case 0:
  1373. grd_icd9.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  1374. break;
  1375. case 1:
  1376. grd_opcd.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  1377. break;
  1378. case 2:
  1379. grd_deptop.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  1380. break;
  1381. }
  1382. }
  1383. ]]>
  1384. </script>
  1385. </button>
  1386. <select id="checkbox2" ref="/root/hidden/condition/endflag" class="checkbox_search" overflow="visible" appearance="full" style="left:640px; top:16px; width:115px; height:20px; border-style:none; ">
  1387. <choices>
  1388. <item>
  1389. <label>사용종료용어조회</label>
  1390. <value>Y</value>
  1391. </item>
  1392. </choices>
  1393. <script type="javascript" ev:event="xforms-select">
  1394. <![CDATA[
  1395. model.setValue("/root/hidden/condition/srchfromdd", getCurrentDate());
  1396. model.setValue("/root/hidden/condition/srchtodd", '99991231');
  1397. ipt_endfromdd.disabled = false;
  1398. ipt_endtodd.disabled = false;
  1399. model.refresh();
  1400. ]]>
  1401. </script>
  1402. <script type="javascript" ev:event="xforms-deselect">
  1403. <![CDATA[
  1404. model.setValue("/root/hidden/condition/srchfromdd", "");
  1405. model.setValue("/root/hidden/condition/srchtodd", "");
  1406. ipt_endfromdd.disabled = true;
  1407. ipt_endtodd.disabled = true;
  1408. model.refresh();
  1409. ]]>
  1410. </script>
  1411. </select>
  1412. <input id="ipt_endfromdd" ref="/root/hidden/condition/srchfromdd" class="input_search" disabled="true" inputtype="date" style="left:760px; top:16px; width:90px; height:19px; "/>
  1413. <input id="ipt_endtodd" ref="/root/hidden/condition/srchtodd" class="input_search" disabled="true" inputtype="date" style="left:866px; top:16px; width:90px; height:19px; "/>
  1414. <caption id="caption25" style="left:851px; top:16px; width:12px; height:20px; ">~</caption>
  1415. <select id="checkbox1" ref="/root/hidden/condition/indxuseflag" class="checkbox_search" overflow="visible" appearance="full" style="left:120px; top:45px; width:55px; height:20px; border-style:none; ">
  1416. <choices>
  1417. <item>
  1418. <label>AS_IS</label>
  1419. <value>ASIS</value>
  1420. </item>
  1421. </choices>
  1422. <script type="javascript" ev:event="xforms-deselect">
  1423. <![CDATA[
  1424. fChngLangIndx();
  1425. ]]>
  1426. </script>
  1427. <script type="javascript" ev:event="xforms-select">
  1428. <![CDATA[
  1429. fChngLangIndx();
  1430. ]]>
  1431. </script>
  1432. </select>
  1433. <button id="btn_delrow" class="btn2_letter3" disabled="false" visibility="hidden" style="left:1006px; top:48px; width:53px; height:19px; ">
  1434. <caption>줄삭제</caption>
  1435. <script type="javascript" ev:event="DOMActivate">
  1436. <![CDATA[
  1437. var flag = model.getValue("/root/hidden/condition/selctedmode");
  1438. fDelRow(flag);
  1439. ]]>
  1440. </script>
  1441. </button>
  1442. <button id="btn_addrow" class="btn2_letter3" disabled="false" visibility="hidden" style="left:950px; top:48px; width:53px; height:19px; ">
  1443. <caption>줄추가</caption>
  1444. <script type="javascript" ev:event="DOMActivate">
  1445. <![CDATA[
  1446. var flag = model.getValue("/root/hidden/condition/selctedmode");
  1447. fAddRow(flag);
  1448. ]]>
  1449. </script>
  1450. </button>
  1451. <button id="btn_saverow" class="btn5_letter2" disabled="false" visibility="visible" style="left:1107px; top:48px; width:42px; height:19px; ">
  1452. <caption>저장</caption>
  1453. <script type="javascript" ev:event="DOMActivate">
  1454. <![CDATA[
  1455. var flag = model.getValue("/root/hidden/condition/selctedmode");
  1456. if(flag == "D"){
  1457. fTermUseSave();
  1458. }
  1459. else{
  1460. fICD9Save();
  1461. }
  1462. //fSave( flag );
  1463. ]]>
  1464. </script>
  1465. </button>
  1466. <button id="btn_modify" class="btn2_letter2" disabled="false" visibility="hidden" style="left:1062px; top:48px; width:42px; height:19px; ">
  1467. <caption>수정</caption>
  1468. <script type="javascript" ev:event="DOMActivate">
  1469. <![CDATA[
  1470. var flag = model.getValue("/root/hidden/condition/selctedmode");
  1471. fEditRow(flag);
  1472. ]]>
  1473. </script>
  1474. </button>
  1475. <select1 id="cmb_selInst" ref="/root/hidden/condition/selInstcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:1025px; top:16px; width:95px; height:19px; ">
  1476. <choices>
  1477. <itemset nodeset="/root/init/M0534selcmb/M0534">
  1478. <label ref="cdnm"/>
  1479. <value ref="cdid"/>
  1480. </itemset>
  1481. </choices>
  1482. <script type="javascript" ev:event="xforms-value-changed">
  1483. <![CDATA[
  1484. // var selInstcd = model.getValue("/root/hidden/condition/selInstcd");
  1485. // if(selInstcd == "001"){
  1486. // btn_saverow.disabled = true;
  1487. // }
  1488. // else{
  1489. // btn_saverow.disabled = false;
  1490. // }
  1491. ]]>
  1492. </script>
  1493. </select1>
  1494. <caption id="cap_selInst" class="search_name" visibility="hidden" style="left:965px; top:17px; width:63px; height:17px; ">기관 :</caption>
  1495. </group>
  1496. </xhtml:body>
  1497. </xhtml:html>