SMMRT00100.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. /**
  2. * @desc : 색인 Tree 작성
  3. *
  4. * @param :
  5. * @return :
  6. * @author : HIT EMR Team
  7. * @---------------------------------------------------
  8. */
  9. function fInitalize(){
  10. // Edited by NJ 2007-07-21 getDate() -> getCurrentDate()
  11. // model.setValue("/root/init/today", getDate());
  12. model.setValue("/root/init/today", getCurrentDate());
  13. var value = model.getValue("/root/hidden/condition/indxflag");
  14. if(checkOpener()){
  15. model.makeValue("/root/hidden/condition/indxflag", model.getValue("/root/hidden/condition/getdata/paramindx"));
  16. model.makeValue("/root/hidden/condition/selectedmode", "H");
  17. model.makeValue("/root/hidden/condition/indxuseflag", "TOBE");
  18. }
  19. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  20. model.toggle("case1");
  21. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  22. model.toggle("case2");
  23. } else if(model.getValue("/root/hidden/condition/indxflag") == "2"){
  24. model.toggle("case4");
  25. } else{
  26. model.toggle("case3");
  27. }
  28. fIndxListSrch();
  29. }
  30. /**
  31. * @desc : 색인 Tree 작성
  32. *
  33. * @param :
  34. * @return :
  35. * @author : HIT EMR Team
  36. * @---------------------------------------------------
  37. */
  38. function fIndxListSrch(){
  39. model.resetInstanceNode("/root/send");
  40. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  41. model.makeValue("/root/send/mode",model.getValue("/root/hidden/condition/selectedmode"));
  42. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  43. submit("TRMRT00101");
  44. trv_dgindx.rebuild();
  45. }
  46. /**
  47. * @desc : 해당 색인에 대한 정보를 조회
  48. *
  49. * @param :
  50. * @return :
  51. * @author : HIT EMR Team
  52. * @---------------------------------------------------
  53. */
  54. function fIndxInfoListSrch(){
  55. var iIndx = trv_dgindx.focusIndex + 1;
  56. var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd");
  57. model.setValue("/root/hidden/condition/rowcnt", iIndx);
  58. model.resetInstanceNode("/root/send");
  59. model.makeValue("/root/hidden/condition/selectedindx", selIndxCd);
  60. model.makeValue("/root/hidden/condition/focusindx", iIndx);
  61. model.makeValue("/root/send/indxcd", selIndxCd );
  62. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  63. submit("TRMRT00102");
  64. }
  65. /**
  66. * @desc : 버튼 속성 Setting
  67. *
  68. * @param : flag(DE: 진단색인(ICD10), OE: 수술색인(ICD9), CE: 주호소색인, NE: 암진단색인)
  69. * @return :
  70. * @author : HIT EMR Team
  71. * @---------------------------------------------------
  72. */
  73. function fDisable(flag){
  74. if(flag == "DE"){
  75. ipt_indxcd.disabled = "false";
  76. ipt_indxhngnm.disabled = "false";
  77. ipt_indxengnm.disabled = "false";
  78. ipt_upindxcd.disabled = "false";
  79. btn_upindxcd.disabled = "false";
  80. cmb_indxdrdiflag.disabled = "false";
  81. cmb_highestlvel.disabled = "false";
  82. } else if(flag == "OE"){
  83. ipt_opindxcd.disabled = "false";
  84. ipt_opindxhngnm.disabled = "false";
  85. ipt_opindxengnm.disabled = "false";
  86. ipt_opupindxcd.disabled = "false";
  87. btn_opupindxcd.disabled = "false";
  88. cmb_opindxdrdiflag.disabled = "false";
  89. cmb_highestlvel.disabled = "false";
  90. } else if(flag == "NE"){
  91. ipt_cncindxcd.disabled = "false";
  92. ipt_cncindxhngnm.disabled = "false";
  93. ipt_cncindxengnm.disabled = "false";
  94. ipt_cncupindxcd.disabled = "false";
  95. btn_cncupindxcd.disabled = "false";
  96. cmb_cncindxdrdiflag.disabled = "false";
  97. cmb_highestlvel.disabled = "false";
  98. } else if(flag == "CE"){
  99. ipt_ccindxcd.disabled = "false";
  100. ipt_ccindxhngnm.disabled = "false";
  101. ipt_ccindxengnm.disabled = "false";
  102. ipt_ccupindxcd.disabled = "false";
  103. btn_ccupindxcd.disabled = "false";
  104. cmb_ccindxdrdiflag.disabled = "false";
  105. cmb_highestlvel.disabled = "false";
  106. } else if(flag == "AD"){
  107. ipt_indxcd.disabled = "true";
  108. ipt_indxhngnm.disabled = "true";
  109. ipt_indxengnm.disabled = "true";
  110. btn_upindxcd.disabled = "true";
  111. ipt_upindxcd.disabled = "true";
  112. cmb_indxdrdiflag.disabled = "true";
  113. ipt_opindxcd.disabled = "true";
  114. ipt_opindxhngnm.disabled = "true";
  115. ipt_opindxengnm.disabled = "true";
  116. ipt_opupindxcd.disabled = "true";
  117. btn_opupindxcd.disabled = "true";
  118. cmb_opindxdrdiflag.disabled = "true";
  119. ipt_cncindxcd.disabled = "true";
  120. ipt_cncindxhngnm.disabled = "true";
  121. ipt_cncindxengnm.disabled = "true";
  122. ipt_cncupindxcd.disabled = "true";
  123. btn_cncupindxcd.disabled = "true";
  124. cmb_cncindxdrdiflag.disabled = "true";
  125. ipt_ccindxcd.disabled = "true";
  126. ipt_ccindxhngnm.disabled = "true";
  127. ipt_ccindxengnm.disabled = "true";
  128. ipt_ccupindxcd.disabled = "true";
  129. btn_ccupindxcd.disabled = "true";
  130. cmb_ccindxdrdiflag.disabled = "true";
  131. cmb_highestlvel.disabled = "true";
  132. }
  133. model.refresh();
  134. }
  135. /**
  136. * @desc : 색인을 추가한다
  137. *
  138. * @param :
  139. * @return :
  140. * @author : HIT EMR Team
  141. * @---------------------------------------------------
  142. */
  143. function fAddIndx(){
  144. var iIndx = model.getValue("/root/hidden/condition/rowcnt");
  145. model.makeValue("/root/hidden/condition/highestlvel", "");
  146. //if(model.getValue("/root/hidden/condition/selectedindx") == "" || model.getValue("/root/hidden/condition/selectedindx") == null){
  147. // var rtn1 = messageBox("상위 색인을 ", "C002");
  148. //}
  149. //model.resetInstanceNode("/root/main/indxinfo");
  150. if((trv_dgindx.focusIndex < 0)){
  151. messageBox("색인을 선택하지", "E007");
  152. }
  153. if((model.getValue("/root/hidden/condition/indexcode") != "" ) || (trv_dgindx.length == 0)){
  154. var selIndxCd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd");
  155. var selIndxSeqNo = model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxseqno");
  156. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  157. model.resetInstanceNode("/root/main/indxinfo/diagindx");
  158. fDisable("DE");
  159. model.makeValue("/root/main/indxinfo/diagindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"));
  160. model.makeValue("/root/main/indxinfo/diagindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  161. model.makeValue("/root/main/indxinfo/diagindx/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  162. model.makeValue("/root/main/indxinfo/diagindx/indxseqno", selIndxSeqNo);
  163. model.makeNode("/root/main/indxinfo/diagindx/indxcd");
  164. model.makeNode("/root/main/indxinfo/diagindx/indxhngnm");
  165. model.makeNode("/root/main/indxinfo/diagindx/indxengnm");
  166. model.makeNode("/root/main/indxinfo/diagindx/indxdrdiflag");
  167. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  168. model.resetInstanceNode("/root/main/indxinfo/opindx");
  169. fDisable("OE");
  170. model.makeValue("/root/main/indxinfo/opindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"));
  171. model.makeValue("/root/main/indxinfo/opindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  172. model.makeValue("/root/main/indxinfo/opindx/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  173. model.makeValue("/root/main/indxinfo/opindx/indxseqno", selIndxSeqNo);
  174. model.makeNode("/root/main/indxinfo/opindx/indxcd");
  175. model.makeNode("/root/main/indxinfo/opindx/indxhngnm");
  176. model.makeNode("/root/main/indxinfo/opindx/indxengnm");
  177. model.makeNode("/root/main/indxinfo/opindx/indxdrdiflag");
  178. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") {
  179. model.resetInstanceNode("/root/main/indxinfo/ccindx");
  180. fDisable("CE");
  181. model.makeValue("/root/main/indxinfo/ccindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"));
  182. model.makeValue("/root/main/indxinfo/ccindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  183. model.makeValue("/root/main/indxinfo/ccindx/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  184. model.makeValue("/root/main/indxinfo/ccindx/indxseqno", selIndxSeqNo);
  185. model.makeNode("/root/main/indxinfo/ccindx/indxcd");
  186. model.makeNode("/root/main/indxinfo/ccindx/indxhngnm");
  187. model.makeNode("/root/main/indxinfo/ccindx/indxengnm");
  188. model.makeNode("/root/main/indxinfo/ccindx/indxdrdiflag");
  189. }else if (model.getValue("/root/hidden/condition/indxflag") == "1" || model.getValue("/root/hidden/condition/indxflag") == "3" || model.getValue("/root/hidden/condition/indxflag") == "4") {
  190. model.resetInstanceNode("/root/main/indxinfo/cncrindx");
  191. fDisable("NE");
  192. model.makeValue("/root/main/indxinfo/cncrindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxcd"));
  193. model.makeValue("/root/main/indxinfo/cncrindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  194. model.makeValue("/root/main/indxinfo/cncrindx/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  195. model.makeValue("/root/main/indxinfo/cncrindx/indxseqno", selIndxSeqNo);
  196. model.makeNode("/root/main/indxinfo/cncrindx/indxcd");
  197. model.makeNode("/root/main/indxinfo/cncrindx/indxhngnm");
  198. model.makeNode("/root/main/indxinfo/cncrindx/indxengnm");
  199. model.makeNode("/root/main/indxinfo/cncrindx/indxdrdiflag");
  200. }
  201. }
  202. model.setValue("/root/hidden/condition/state", "I"); //최상위 레벨 등록(상위코드=인덱스코드)
  203. model.refresh();
  204. }
  205. /**
  206. * @desc : 색인을 선택한다
  207. *
  208. * @param :
  209. * @return :
  210. * @author : HIT EMR Team
  211. * @---------------------------------------------------
  212. */
  213. function fSelIndx(){
  214. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  215. model.toggle("case1");
  216. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  217. model.toggle("case2");
  218. }else if(model.getValue("/root/hidden/condition/indxflag") == "2"){
  219. model.toggle("case4");
  220. } else{
  221. model.toggle("case3");
  222. }
  223. fIndxListSrch();
  224. fDisable("AD");
  225. model.resetInstanceNode("/root/hidden/condition/indexcode");
  226. model.refresh();
  227. }
  228. /**
  229. * @desc : 최상위 암진단 색인으로 설정한다
  230. *
  231. * @param :
  232. * @return : 2008/07/07 이창록 수정 (체크 상태가아니면 원래되로 되돌리기)
  233. * @author : HIT EMR Team
  234. * @---------------------------------------------------
  235. */
  236. function fSetHighIndx(){
  237. var iIndx = trv_dgindx.focusIndex + 1;
  238. if(model.getValue("/root/hidden/condition/highestlvel") == "Y"){
  239. ipt_upindxcd.disabled = "true";
  240. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  241. model.makeValue("/root/main/indxinfo/diagindx/upindxcd", "-");
  242. model.makeValue("/root/main/indxinfo/diagindx/upindxhngnm", "");
  243. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  244. model.makeValue("/root/main/indxinfo/opindx/upindxcd", "-");
  245. model.makeValue("/root/main/indxinfo/opindx/upindxhngnm", "");
  246. } else if(model.getValue("/root/hidden/condition/indxflag") == "2"){
  247. model.makeValue("/root/main/indxinfo/ccindx/upindxcd", "-");
  248. model.makeValue("/root/main/indxinfo/ccindx/upindxhngnm", "");
  249. } else{
  250. model.makeValue("/root/main/indxinfo/cncrindx/upindxcd", "-");
  251. model.makeValue("/root/main/indxinfo/cncrindx/upindxhngnm", "");
  252. }
  253. } else {
  254. ipt_upindxcd.disabled = "false";
  255. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  256. model.makeValue("/root/main/indxinfo/diagindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/upindxcd"));
  257. model.makeValue("/root/main/indxinfo/diagindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  258. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  259. model.makeValue("/root/main/indxinfo/opindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/upindxcd"));
  260. model.makeValue("/root/main/indxinfo/opindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  261. } else if(model.getValue("/root/hidden/condition/indxflag") == "2"){
  262. model.makeValue("/root/main/indxinfo/ccindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/upindxcd"));
  263. model.makeValue("/root/main/indxinfo/ccindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  264. } else{
  265. model.makeValue("/root/main/indxinfo/cncrindx/upindxcd", model.getValue("/root/main/indxlist/item[" + iIndx + "]/upindxcd"));
  266. model.makeValue("/root/main/indxinfo/cncrindx/upindxhngnm", model.getValue("/root/main/indxlist/item[" + iIndx + "]/indxhngnm"));
  267. }
  268. }
  269. model.refresh();
  270. }
  271. /**
  272. * @desc : 암진단 색인정보를 저장한다
  273. *
  274. * @param :
  275. * @return :
  276. * @author : HIT EMR Team
  277. * @---------------------------------------------------
  278. */
  279. function fSaveCncrDiagIndx(){
  280. var state = model.getValue("/root/hidden/condition/state");
  281. if(state == "-"){
  282. messageBox("신규 및 수정 모드를", "C002");
  283. return;
  284. }
  285. if(model.getValue("/root/main/indxinfo/cncrindx/indxcd") == ""){
  286. messageBox("색인코드는 ","I003");
  287. return;
  288. }
  289. //입력한 색인코드와 동일한 코드가 존재하는지 체크해본 후 동일한 코드 존재하면 수정, 존재하지 않으면 등록
  290. model.resetInstanceNode("/root/send");
  291. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  292. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  293. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  294. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  295. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  296. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  297. }else { //분기:암
  298. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  299. }
  300. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  301. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  302. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  303. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  304. submit("TRMRT00103");
  305. if(model.getValue("/root/hidden/condition/state") == "I") {
  306. if(model.getValue("/root/main/equalindx/indxcount/count") == "0"){
  307. if(isPopup()){
  308. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  309. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  310. }
  311. submit("TXMRT00101");
  312. } else {
  313. var rtn = messageBox("동일한 색인코드가 존재하므로 등록 ", "E001");
  314. }
  315. } else {
  316. if(model.getValue("/root/main/equalindx/indxcount/count") == "1") {
  317. var rtn = messageBox("색인을 수정", "S001");
  318. if (rtn == "6"){
  319. model.setValue("/root/hidden/condition/state", "U");
  320. model.setValue("/root/send/state", "U");
  321. if(isPopup()){
  322. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  323. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  324. }
  325. submit("TXMRT00101");
  326. } else {
  327. return;
  328. }
  329. } else {
  330. var rtn = messageBox("동일한 색인코드가 존재하지 않으므로 수정 ", "E001");
  331. }
  332. }
  333. model.resetInstanceNode("/root/main/indxinfo");
  334. model.setValue("/root/hidden/condition/state", "");
  335. model.setValue("/root/hidden/condition/indexcode", model.getValue("/root/send/indxcd"));
  336. ipt_upindxcd.disabled = "true";
  337. fDisable("AD");
  338. model.refresh();
  339. }
  340. /**
  341. * @desc : 암진단 색인을 삭제한다
  342. *
  343. * @param :
  344. * @return :
  345. * @author : HIT EMR Team
  346. * @---------------------------------------------------
  347. */
  348. function fDelCncrDiagIndx(){
  349. var rtn = messageBox("색인을 ", "Q001");
  350. if (rtn == "6"){
  351. model.setValue("/root/hidden/condition/state", "D");
  352. model.resetInstanceNode("/root/send");
  353. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  354. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  355. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  356. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  357. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  358. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  359. }else {
  360. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  361. }
  362. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  363. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  364. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  365. if(isPopup()){
  366. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  367. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  368. }
  369. submit("TXMRT00101");
  370. model.resetInstanceNode("/root/main/indxinfo");
  371. model.setValue("/root/hidden/condition/state", "");
  372. model.refresh();
  373. }
  374. }
  375. /**
  376. * @desc : 암진단 해당 색인의 상위 색인을 선택한다
  377. *
  378. * @param :
  379. * @return :
  380. * @author : HIT EMR Team
  381. * @---------------------------------------------------
  382. */
  383. function fSelCncrDiagHighIndx(){
  384. model.removeNodeset("/root/send");
  385. model.makeValue("/root/send/paramindx","");
  386. model.makeValue("/root/send/parammode","");
  387. model.setValue("/root/send/paramindx", model.getValue("/root/hidden/condition/indxflag"));
  388. model.setValue("/root/send/parammode", model.getValue("/root/hidden/condition/selectedmode"));
  389. modal("SPMRT01200", 1,10, 10, "SPMRT01200", "/root/send", "/root/hidden/condition/getdata");
  390. var child = "SPMRT01200";
  391. if(child != null){
  392. var getVal1 = getParameter("setVal1");
  393. var getVal2 = getParameter("setVal2");
  394. model.setValue("/root/main/indxinfo/cncrindx/upindxcd", getVal1);
  395. model.setValue("/root/main/indxinfo/cncrindx/upindxhngnm", getVal2);
  396. model.refresh();
  397. }
  398. }
  399. /**
  400. * @desc : 진단(ICD10) 색인정보를 저장한다
  401. *
  402. * @param :
  403. * @return :
  404. * @author : HIT EMR Team
  405. * @---------------------------------------------------
  406. */
  407. function fSaveDiagIndx(){
  408. var state = model.getValue("/root/hidden/condition/state");
  409. if(state == "-"){
  410. messageBox("신규 및 수정 모드를", "C002");
  411. return;
  412. }
  413. if(model.getValue("/root/main/indxinfo/diagindx/indxcd") == ""){
  414. messageBox("색인코드는 ","I003");
  415. return;
  416. }
  417. //입력한 색인코드와 동일한 코드가 존재하는지 체크해본 후 동일한 코드 존재하면 수정, 존재하지 않으면 등록
  418. model.resetInstanceNode("/root/send");
  419. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  420. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  421. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  422. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  423. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  424. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  425. }else { //분기:암
  426. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  427. }
  428. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  429. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  430. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  431. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  432. submit("TRMRT00103");
  433. if(model.getValue("/root/hidden/condition/state") == "I") {
  434. if(model.getValue("/root/main/equalindx/indxcount/count") == "0"){
  435. if(isPopup()){
  436. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  437. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  438. }
  439. submit("TXMRT00101");
  440. } else {
  441. var rtn = messageBox("동일한 색인코드가 존재하므로 등록 ", "E001");
  442. }
  443. } else {
  444. if(model.getValue("/root/main/equalindx/indxcount/count") == "1") {
  445. var rtn = messageBox("색인을 수정", "S001");
  446. if (rtn == "6"){
  447. model.setValue("/root/hidden/condition/state", "U");
  448. model.setValue("/root/send/state", "U");
  449. if(isPopup()){
  450. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  451. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  452. }
  453. submit("TXMRT00101");
  454. trv_dgindx.rebuild();
  455. } else {
  456. return;
  457. }
  458. } else {
  459. var rtn = messageBox("동일한 색인코드가 존재하지 않으므로 수정 ", "E001");
  460. }
  461. }
  462. model.resetInstanceNode("/root/main/indxinfo");
  463. model.setValue("/root/hidden/condition/state", "");
  464. model.setValue("/root/hidden/condition/indexcode", model.getValue("/root/send/indxcd"));
  465. ipt_upindxcd.disabled = "true";
  466. fDisable("AD");
  467. model.refresh();
  468. }
  469. /**
  470. * @desc : 진단 색인을 삭제한다
  471. *
  472. * @param :
  473. * @return :
  474. * @author : HIT EMR Team
  475. * @---------------------------------------------------
  476. */
  477. function fDelDiagIndx(){
  478. var rtn = messageBox("색인을 ", "Q001");
  479. if (rtn == "6"){
  480. model.setValue("/root/hidden/condition/state", "D");
  481. model.resetInstanceNode("/root/send");
  482. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  483. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  484. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  485. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  486. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  487. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  488. }else {
  489. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  490. }
  491. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  492. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  493. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  494. if(isPopup()){
  495. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  496. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  497. }
  498. submit("TXMRT00101");
  499. model.resetInstanceNode("/root/main/indxinfo");
  500. model.setValue("/root/hidden/condition/state", "");
  501. model.refresh();
  502. }
  503. }
  504. /**
  505. * @desc : 진단 해당 색인의 상위 색인을 선택한다
  506. *
  507. * @param :
  508. * @return :
  509. * @author : HIT EMR Team
  510. * @---------------------------------------------------
  511. */
  512. function fSelDiagHighIndx(){
  513. model.removeNodeset("/root/send");
  514. model.makeValue("/root/send/paramindx","");
  515. model.makeValue("/root/send/parammode","");
  516. model.makeValue("/root/send/paramindxuseflag","");
  517. model.setValue("/root/send/paramindx", model.getValue("/root/hidden/condition/indxflag"));
  518. model.setValue("/root/send/parammode", model.getValue("/root/hidden/condition/selectedmode"));
  519. model.setValue("/root/send/paramindxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  520. modal("SPMRT01200_색인선택", 1,10, 10, "SPMRT01200", "/root/send", "/root/hidden/condition/getdata");
  521. var child = "SPMRT01200";
  522. var getVal1 = getParameter("setVal1");
  523. var getVal2 = getParameter("setVal2");
  524. if((child != "")&&((getVal1 != "")|| (getVal1 != ""))){
  525. model.setValue("/root/main/indxinfo/diagindx/upindxcd", getVal1);
  526. model.setValue("/root/main/indxinfo/diagindx/upindxhngnm", getVal2);
  527. model.refresh();
  528. }
  529. }
  530. /**
  531. * @desc : 수술 해당 색인의 상위 색인을 선택한다
  532. *
  533. * @param :
  534. * @return :
  535. * @author : HIT EMR Team
  536. * @---------------------------------------------------
  537. */
  538. function fSelOpHighIndx(){
  539. model.removeNodeset("/root/send");
  540. model.makeValue("/root/send/paramindx","");
  541. model.makeValue("/root/send/parammode","");
  542. model.setValue("/root/send/paramindx", model.getValue("/root/hidden/condition/indxflag"));
  543. model.setValue("/root/send/parammode", model.getValue("/root/hidden/condition/selectedmode"));
  544. modal("SPMRT01200", 1,10, 10, "SPMRT01200", "/root/send", "/root/hidden/condition/getdata");
  545. var child = "SPMRT01200";
  546. if(child != null){
  547. var getVal1 = getParameter("setVal1");
  548. var getVal2 = getParameter("setVal2");
  549. model.setValue("/root/main/indxinfo/opindx/upindxcd", getVal1);
  550. model.setValue("/root/main/indxinfo/opindx/upindxhngnm", getVal2);
  551. model.refresh();
  552. }
  553. }
  554. /**
  555. * @desc : 수술(ICD9) 색인정보를 저장한다
  556. *
  557. * @param :
  558. * @return :
  559. * @author : HIT EMR Team
  560. * @---------------------------------------------------
  561. */
  562. function fSaveOpIndx(){
  563. var state = model.getValue("/root/hidden/condition/state");
  564. if(state == "-"){
  565. messageBox("신규 및 수정 모드를", "C002");
  566. return;
  567. }
  568. if(model.getValue("/root/main/indxinfo/opindx/indxcd") == ""){
  569. messageBox("색인코드는 ","I003");
  570. return;
  571. }
  572. //입력한 색인코드와 동일한 코드가 존재하는지 체크해본 후 동일한 코드 존재하면 수정, 존재하지 않으면 등록
  573. model.resetInstanceNode("/root/send");
  574. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  575. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  576. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  577. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  578. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  579. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  580. }else { //분기:암
  581. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  582. }
  583. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  584. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  585. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  586. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  587. submit("TRMRT00103");
  588. if(model.getValue("/root/hidden/condition/state") == "I") {
  589. if(model.getValue("/root/main/equalindx/indxcount/count") == "0"){
  590. if(isPopup()){
  591. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  592. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  593. }
  594. submit("TXMRT00101");
  595. } else {
  596. var rtn = messageBox("동일한 색인코드가 존재하므로 등록 ", "E001");
  597. }
  598. } else {
  599. if(model.getValue("/root/main/equalindx/indxcount/count") == "1") {
  600. var rtn = messageBox("색인을 수정", "S001");
  601. if (rtn == "6"){
  602. model.setValue("/root/hidden/condition/state", "U");
  603. model.setValue("/root/send/state", "U");
  604. if(isPopup()){
  605. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  606. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  607. }
  608. submit("TXMRT00101");
  609. } else {
  610. return;
  611. }
  612. } else {
  613. var rtn = messageBox("동일한 색인코드가 존재하지 않으므로 수정 ", "E001");
  614. }
  615. }
  616. model.resetInstanceNode("/root/main/indxinfo");
  617. model.setValue("/root/hidden/condition/state", "");
  618. model.setValue("/root/hidden/condition/indexcode", model.getValue("/root/send/indxcd"));
  619. ipt_upindxcd.disabled = "true";
  620. fDisable("AD");
  621. model.refresh();
  622. }
  623. /**
  624. * @desc : 수술 색인을 삭제한다
  625. *
  626. * @param :
  627. * @return :
  628. * @author : HIT EMR Team
  629. * @---------------------------------------------------
  630. */
  631. function fDelOpIndx(){
  632. var rtn = messageBox("색인을 ", "Q001");
  633. if (rtn == "6"){
  634. model.setValue("/root/hidden/condition/state", "D");
  635. model.resetInstanceNode("/root/send");
  636. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  637. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  638. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  639. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  640. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  641. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  642. }else {
  643. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  644. }
  645. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  646. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  647. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  648. if(isPopup()){
  649. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  650. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  651. }
  652. submit("TXMRT00101");
  653. model.resetInstanceNode("/root/main/indxinfo");
  654. model.setValue("/root/hidden/condition/state", "");
  655. model.refresh();
  656. }
  657. }
  658. /**
  659. * @desc : 주호소 해당 색인의 상위 색인을 선택한다
  660. *
  661. * @param :
  662. * @return :
  663. * @author : HIT EMR Team
  664. * @---------------------------------------------------
  665. */
  666. function fSelCcHighIndx(){
  667. model.removeNodeset("/root/send");
  668. model.makeValue("/root/send/paramindx","");
  669. model.makeValue("/root/send/parammode","");
  670. model.setValue("/root/send/paramindx", model.getValue("/root/hidden/condition/indxflag"));
  671. model.setValue("/root/send/parammode", model.getValue("/root/hidden/condition/selectedmode"));
  672. modal("SPMRT01200", 1,10, 10, "SPMRT01200", "/root/send", "/root/hidden/condition/getdata");
  673. var child = "SPMRT01200";
  674. if(child != null){
  675. var getVal1 = getParameter("setVal1");
  676. var getVal2 = getParameter("setVal2");
  677. model.setValue("/root/main/indxinfo/opindx/upindxcd", getVal1);
  678. model.setValue("/root/main/indxinfo/opindx/upindxhngnm", getVal2);
  679. model.refresh();
  680. }
  681. }
  682. /**
  683. * @desc : 주호소 색인정보를 저장한다
  684. *
  685. * @param :
  686. * @return :
  687. * @author : HIT EMR Team
  688. * @---------------------------------------------------
  689. */
  690. function fSaveCcIndx(){
  691. var state = model.getValue("/root/hidden/condition/state");
  692. if(state == "-"){
  693. messageBox("신규 및 수정 모드를", "C002");
  694. return;
  695. }
  696. if(model.getValue("/root/main/indxinfo/ccindx/indxcd") == ""){
  697. messageBox("색인코드는 ","I003");
  698. return;
  699. }
  700. //입력한 색인코드와 동일한 코드가 존재하는지 체크해본 후 동일한 코드 존재하면 수정, 존재하지 않으면 등록
  701. model.resetInstanceNode("/root/send");
  702. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  703. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  704. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  705. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  706. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  707. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  708. }else { //분기:암
  709. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  710. }
  711. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  712. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  713. model.makeValue("/root/send/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  714. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  715. submit("TRMRT00103");
  716. if(model.getValue("/root/hidden/condition/state") == "I") {
  717. if(model.getValue("/root/main/equalindx/indxcount/count") == "0"){
  718. if(isPopup()){
  719. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  720. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  721. }
  722. submit("TXMRT00101");
  723. } else {
  724. var rtn = messageBox("동일한 색인코드가 존재하므로 등록 ", "E001");
  725. }
  726. } else {
  727. if(model.getValue("/root/main/equalindx/indxcount/count") == "1") {
  728. var rtn = messageBox("색인을 수정", "S001");
  729. if (rtn == "6"){
  730. model.setValue("/root/hidden/condition/state", "U");
  731. model.setValue("/root/send/state", "U");
  732. if(isPopup()){
  733. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  734. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  735. }
  736. submit("TXMRT00101");
  737. } else {
  738. return;
  739. }
  740. } else {
  741. var rtn = messageBox("동일한 색인코드가 존재하지 않으므로 수정 ", "E001");
  742. }
  743. }
  744. model.resetInstanceNode("/root/main/indxinfo");
  745. model.setValue("/root/hidden/condition/state", "");
  746. model.setValue("/root/hidden/condition/indexcode", model.getValue("/root/send/indxcd"));
  747. ipt_upindxcd.disabled = "true";
  748. fDisable("AD");
  749. model.refresh();
  750. }
  751. /**
  752. * @desc : 주호소 색인을 삭제한다
  753. *
  754. * @param :
  755. * @return :
  756. * @author : HIT EMR Team
  757. * @---------------------------------------------------
  758. */
  759. function fDelCcIndx(){
  760. var rtn = messageBox("색인을 ", "Q001");
  761. if (rtn == "6"){
  762. model.setValue("/root/hidden/condition/state", "D");
  763. model.resetInstanceNode("/root/send");
  764. if(model.getValue("/root/hidden/condition/indxflag") == "0") { //분기:진단
  765. model.copyNode("/root/send", "/root/main/indxinfo/diagindx");
  766. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") { //분기:수술
  767. model.copyNode("/root/send", "/root/main/indxinfo/opindx");
  768. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") { //분기:주호소
  769. model.copyNode("/root/send", "/root/main/indxinfo/ccindx");
  770. }else {
  771. model.copyNode("/root/send", "/root/main/indxinfo/cncrindx");
  772. }
  773. model.makeValue("/root/send/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  774. model.makeValue("/root/send/mode", model.getValue("/root/hidden/condition/selectedmode"));
  775. model.makeValue("/root/send/state", model.getValue("/root/hidden/condition/state"));
  776. if(isPopup()){
  777. //팝업화면이면 부모화면에 리턴할 값을 셋팅한다.
  778. opener.javascript.setParameter("setVal", model.getValue("/root/hidden/condition/state"));
  779. }
  780. submit("TXMRT00101");
  781. model.resetInstanceNode("/root/main/indxinfo");
  782. model.setValue("/root/hidden/condition/state", "");
  783. model.refresh();
  784. }
  785. }
  786. /**
  787. * @desc : 색인을 수정한다
  788. *
  789. * @param :
  790. * @return :
  791. * @author : HIT EMR Team
  792. * @---------------------------------------------------
  793. */
  794. function fEditIndx(){
  795. if(model.getValue("/root/hidden/condition/indexcode") != "" ) {
  796. if(model.getValue("/root/hidden/condition/indxflag") == "0") {
  797. fDisable("DE");
  798. } else if(model.getValue("/root/hidden/condition/indxflag") == "9") {
  799. fDisable("OE");
  800. } else if(model.getValue("/root/hidden/condition/indxflag") == "2") {
  801. fDisable("CE");
  802. }else if (model.getValue("/root/hidden/condition/indxflag") == "1" || model.getValue("/root/hidden/condition/indxflag") == "3" || model.getValue("/root/hidden/condition/indxflag") == "4") {
  803. fDisable("NE");
  804. }
  805. }
  806. model.setValue("/root/hidden/condition/state", "U"); //최상위 레벨 등록(상위코드=인덱스코드)
  807. model.refresh();
  808. }
  809. /**
  810. * @desc : Drag & Drop
  811. *
  812. * @param : srcNodePos : 기존 색인위치
  813. * : targetNodePos : 바뀔 색인위치
  814. * @return :
  815. * @author : HIT EMR Team
  816. * @---------------------------------------------------
  817. */
  818. function fDragDropIndx(){
  819. var treePath = "/root/main/indxlist/item";
  820. var node = root.main.indxlist.item;
  821. var ins = document.models(0).instances(0);
  822. var srcValue = trv_dgindx.item(trv_dgindx.mouseRow).value;
  823. //alert("drop=" + srcValue);
  824. var targetNode = ins.selectSingleNode(treePath + "[indxcd='"+srcValue+"']" );
  825. //alert(targetNode.xml);
  826. //alert("drag=" + trv_dgindx.value);
  827. var srcNode = ins.selectSingleNode(treePath + "[indxcd='"+trv_dgindx.value+"']");
  828. //alert(srcNode.xml);
  829. //alert(model.getValue(treePath + "[indxcd='"+srcValue+"']/indxseqno")+","+ model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxseqno"));
  830. if(model.getValue(treePath + "[indxcd='"+srcValue+"']/indxcd") != model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxcd")){
  831. var rtn = messageBox("색인 순서 변경을", "Q004");
  832. if(rtn != 6){
  833. return;
  834. }
  835. if((model.getValue(treePath + "[indxcd='"+srcValue+"']/upindxcd") == model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/upindxcd")) && (rtn == 6)){
  836. // 값은 level에서만 순서변경이 가능하다
  837. // indxseqno 값을 변경
  838. if(parseInt(model.getValue(treePath + "[indxcd='"+srcValue+"']/indxseqno")) < parseInt(model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxseqno"))){
  839. //alert("위로");
  840. model.makeValue("/root/send/reqdata/dragdrop/state", "PLUS");
  841. model.makeValue("/root/send/reqdata/dragdrop/indxcd", model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxcd"));
  842. model.makeValue("/root/send/reqdata/dragdrop/indxseqno", model.getValue(treePath + "[indxcd='"+srcValue+"']/indxseqno"));
  843. model.makeValue("/root/send/reqdata/dragdrop/preindxseqno", model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxseqno"));
  844. model.makeValue("/root/send/reqdata/dragdrop/mode", model.getValue("/root/hidden/condition/selectedmode"));
  845. model.makeValue("/root/send/reqdata/dragdrop/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  846. model.makeValue("/root/send/reqdata/dragdrop/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  847. } else {
  848. //alert("아래로");
  849. model.makeValue("/root/send/reqdata/dragdrop/state", "MINUS");
  850. model.makeValue("/root/send/reqdata/dragdrop/indxcd", model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxcd"));
  851. model.makeValue("/root/send/reqdata/dragdrop/indxseqno", model.getValue(treePath + "[indxcd='"+srcValue+"']/indxseqno"));
  852. model.makeValue("/root/send/reqdata/dragdrop/preindxseqno", model.getValue(treePath + "[indxcd='"+trv_dgindx.value+"']/indxseqno"));
  853. model.makeValue("/root/send/reqdata/dragdrop/mode", model.getValue("/root/hidden/condition/selectedmode"));
  854. model.makeValue("/root/send/reqdata/dragdrop/indxflag", model.getValue("/root/hidden/condition/indxflag"));
  855. model.makeValue("/root/send/reqdata/dragdrop/indxuseflag", model.getValue("/root/hidden/condition/indxuseflag"));
  856. }
  857. node.insertBefore(srcNode, targetNode);
  858. model.resetInstanceNode("/root/main/indxlist/item");
  859. if(submit("TXMRT00102")){
  860. messageBox("색인변경이", "I001");
  861. }
  862. } else if(rtn == 6){
  863. messageBox("다른 Level로 색인변경을", "E001");
  864. }
  865. }
  866. trv_dgindx.rebuild();
  867. }