SMPIB01800_산정특례기준정보관리.xrw 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <script type="javascript">
  5. <![CDATA[
  6. // 초기화
  7. function fInitialize(flag)
  8. {
  9. model.resetInstanceNode("/root/main/essc");
  10. model.setValue("/root/main/essc/diagkind","1"); // 기본적으로 ICD10으로 초기화
  11. model.setValue("/root/main/essc/chronicdiseaseyn","N"); // 기본적으로 만성질환여부 미적용으로 초기화
  12. if (flag == "all") {
  13. model.removeNodeset("/root/main/list");
  14. model.makeNode("/root/main/list");
  15. }
  16. // 조회 데이터 초기화 추가
  17. model.resetInstanceNode("/root/send/data1");
  18. model.setValue("/root/send/data1/appflag", "1");
  19. model.setValue("/root/send/data1/diagkind","1");
  20. model.setValue("/root/hidden/todd", getCurrentDate());
  21. model.setValue("/root/main/essc/diagkind", "1");
  22. model.setValue("/root/main/essc/minage", 0);
  23. model.setValue("/root/main/essc/maxage", 999);
  24. cmb_srchinsukind.select(0);
  25. cmb_srchioflag.select(0);
  26. cmb_edicdflag.select(0);
  27. cmb_spclflag1.select(0);
  28. // 추가수정flag, row 초기화
  29. model.setValue("/root/hidden/appflag", "I");
  30. model.setValue("/root/hidden/currow", 0);
  31. cmb_srchflag2.disabled = false;
  32. ipt_spclcd.disabled = false;
  33. // 공통코드
  34. //zbcfGetCodeList(new Array("P0010","P0008","P0131","C0029","P0489","P0490"), new Array("/root/init/P0010list","/root/init/P0008list","/root/init/P0131list","/root/init/C0029list","/root/init/P0489list","/root/init/P0490list"),false);
  35. model.refresh();
  36. }
  37. //자체기초코드 조회
  38. function fComCDRef()
  39. {
  40. zbcfGetCodeList(
  41. new Array("P0002","A0001", "P0010"),
  42. new Array("/root/init/P0002list", // 진료구분코드
  43. "/root/init/A0001list", // 입원경로
  44. "/root/init/P0010list") // 보조유형코드
  45. );
  46. submit("TRPMI00106");
  47. //model.refresh();
  48. }
  49. // 추가, 수정시에 입력데이터의 유효성 검사
  50. function fCheckVariable() {
  51. if (model.getValue("/root/main/essc/srchflag") == "" || model.getValue("/root/main/essc/srchflag") == null)
  52. {
  53. messageBox("검색구분을 선택해 주십시요!","E999","");
  54. return false;
  55. }
  56. if (model.getValue("/root/main/essc/spclcd") == "" || model.getValue("/root/main/essc/spclcd") == null)
  57. {
  58. messageBox("특례기호를 입력해 주십시요!","E999","");
  59. return false;
  60. }
  61. if (model.getValue("/root/main/essc/todd") == "" || model.getValue("/root/main/essc/todd") == null)
  62. {
  63. messageBox("종료일자를 입력해 주십시요!","E999","");
  64. return false;
  65. }
  66. if (model.getValue("/root/main/essc/fromdd") == "" || model.getValue("/root/main/essc/fromdd") == null)
  67. {
  68. messageBox("시작일자를 입력해 주십시요!","E999","");
  69. return false;
  70. }
  71. if (model.getValue("/root/main/essc/diagcdfrom") == "" || model.getValue("/root/main/essc/diagcdfrom") == null)
  72. {
  73. messageBox("시작상병을 선택해 주십시요!","E999","");
  74. return false;
  75. }
  76. if (model.getValue("/root/main/essc/diagcdto") == "" || model.getValue("/root/main/essc/diagcdto") == null)
  77. {
  78. messageBox("종료상병을 선택해 주십시요!","E999","");
  79. return false;
  80. }
  81. return true;
  82. }
  83. ///////////////////////////////////////////////////////////////////////////
  84. // 수가코드를 조회한 후 처방으로 행 추가를 한다.
  85. function fSetSrchCalcScorCd() {
  86. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  87. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  88. /*
  89. // SMPIC00200_수가조회 화면의 검색조건 combo 조건값 설정
  90. if (col == 14) {
  91. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  92. } else {
  93. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
  94. }
  95. */
  96. // 현재 날짜를 수가조회 기준일자로 설정
  97. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", model.getValue("/root/hidden/currendate"));
  98. model.removeNodeset("/root/hidden/smpic00200/rslt/mech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  99. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  100. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  101. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  102. if (mechSelect == null) { // 선택한 코드가 없는 경우
  103. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  104. return;
  105. }
  106. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  107. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  108. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  109. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  110. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  111. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  112. model.setValue("/root/send/item5/mech/insukind", model.getValue("/root/send/insukindcd")); // 임시로 건강보험 유형으로 고정시킴
  113. model.setValue("/root/send/item5/mech/orddd", model.getValue("/root/hidden/smpic00200/rslt/mech/todd"));
  114. model.setValue("/root/send/item5/mech/grupcalcscorcd", model.getValue("/root/hidden/smpic00200/rslt/mech/calcscorcd"));
  115. model.setValue("/root/send/item5/mech/snglcalcscorcd", "");
  116. model.setValue("/root/send/item5/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  117. //model.refresh();
  118. }
  119. ]]>
  120. </script>
  121. <xhtml:head>
  122. <xhtml:title>산정특례기준정보관리</xhtml:title>
  123. <model id="model1">
  124. <instance id="instance1">
  125. <root xmlns="">
  126. <send>
  127. <data1>
  128. <srchflag/>
  129. <spclcd/>
  130. <insukind/>
  131. <ioflag/>
  132. <diagcd/>
  133. <appflag/>
  134. <edicd/>
  135. <spclflag/>
  136. <diagkind/>
  137. </data1>
  138. <data2/>
  139. <data3>
  140. <srch/>
  141. <diagkind/>
  142. </data3>
  143. </send>
  144. <main>
  145. <essc>
  146. <srchflag/>
  147. <spclcd/>
  148. <seq/>
  149. <todd/>
  150. <instcd/>
  151. <fromdd/>
  152. <diagkind/>
  153. <diagcdfrom/>
  154. <diagnmfrom/>
  155. <diagcdto/>
  156. <diagnmto/>
  157. <suppkindflag/>
  158. <spclflag/>
  159. <edicdflag/>
  160. <edicdfrom/>
  161. <edinmfrom/>
  162. <edicdto/>
  163. <edinmto/>
  164. <fixrateyn/>
  165. <payown1/>
  166. <payown2/>
  167. <spclnm/>
  168. <insukind/>
  169. <ioflag/>
  170. <minage/>
  171. <maxage/>
  172. <chronicdiseaseyn/>
  173. </essc>
  174. <list>
  175. <grdspclcdlist/>
  176. </list>
  177. </main>
  178. <hidden>
  179. <rcv/>
  180. <currendate/>
  181. <sppiz00400>
  182. <cond>
  183. <basedd/>
  184. <diagcd/>
  185. <diagnm/>
  186. <selectedrdodiagkind/>
  187. <flag/>
  188. </cond>
  189. <rslt>
  190. <diagcd/>
  191. <diaghngnm/>
  192. <diagengnm/>
  193. <termcd/>
  194. </rslt>
  195. </sppiz00400>
  196. <smpic00200>
  197. <judgsrch>
  198. <con1_dd/>
  199. <con2_gsflag/>
  200. <con3_search1/>
  201. <con4_search2/>
  202. <con5_insu/>
  203. <con6_calcscorcd/>
  204. <con7_todd/>
  205. <con8_instcd/>
  206. <con11_edicd/>
  207. </judgsrch>
  208. <rslt>
  209. <ediitem1/>
  210. <ediitem2/>
  211. <grupcalcscorcd/>
  212. <snglcalcscorcd/>
  213. <edicd/>
  214. <ordnm/>
  215. <edicdflag/>
  216. <ediunitcost/>
  217. </rslt>
  218. </smpic00200>
  219. <todd/>
  220. <list1>
  221. <essc/>
  222. </list1>
  223. <appflag/>
  224. <currow/>
  225. </hidden>
  226. <init>
  227. <!--20090828 zzui 하드코딩된것들 공통코드로 정리-->
  228. <!-- 보험유형 -->
  229. <P0008list>
  230. <P0008>
  231. <cdnm>전체</cdnm>
  232. <cdid/>
  233. </P0008>
  234. </P0008list>
  235. <!-- 보조유형 -->
  236. <P0010list>
  237. <cdid/>
  238. <cdnm/>
  239. </P0010list>
  240. <!-- EDI코드구분 -->
  241. <P0131list>
  242. <cdid/>
  243. <cdnm/>
  244. </P0131list>
  245. <!-- 내외유형 -->
  246. <C0029list>
  247. <C0029>
  248. <cdnm>전체</cdnm>
  249. <cdid>A</cdid>
  250. </C0029>
  251. </C0029list>
  252. <!-- 검색구분 -->
  253. <P0489list>
  254. <P0489>
  255. <cdnm>전체</cdnm>
  256. <cdid/>
  257. </P0489>
  258. </P0489list>
  259. <!-- 특례구분 -->
  260. <P0490list>
  261. <P0490>
  262. <cdnm>-</cdnm>
  263. <cdid/>
  264. </P0490>
  265. </P0490list>
  266. </init>
  267. <checklist>
  268. <grdesscchklist/>
  269. </checklist>
  270. </root>
  271. </instance>
  272. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  273. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  274. <submission id="TRPIB01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  275. <submission id="TRPIB01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/checklist"/>
  276. <submission id="TXPIB01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/temp"/>
  277. <submission id="TXPIB01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/rcv"/>
  278. <submission id="TXPIB01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/hidden/rcv"/>
  279. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  280. <script type="javascript" ev:event="xforms-ready">
  281. <![CDATA[
  282. //2009.09.09 zzui
  283. zbcfGetCodeList(new Array("P0010","P0008","P0131","C0029","P0489","P0490"), new Array("/root/init/P0010list","/root/init/P0008list","/root/init/P0131list","/root/init/C0029list","/root/init/P0489list","/root/init/P0490list"),false);
  284. fInitialize("all");
  285. model.setValue("/root/hidden/currendate", getCurrentDate());
  286. ]]>
  287. </script>
  288. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  289. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  290. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  291. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  292. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  293. <submission id="TXPIB01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/temp"/>
  294. <submission id="TRPIB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/listrsltnm"/>
  295. </model>
  296. </xhtml:head>
  297. <xhtml:body guideline="1,1250;2,81;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  298. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  299. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">산정특례기준정보관리</caption>
  300. </group>
  301. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
  302. <group id="group5" scroll="auto" style="left:0px; top:0px; width:1195px; height:770px; ">
  303. <button id="button9" class="btn4_letter2" navindex="22" visibility="hidden" style="left:890px; top:745px; width:56px; height:22px; ">
  304. <caption>삭제</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. model.copyNode("/root/send/data2","/root/main/essc");
  308. if(submit("TXPIB01803")){
  309. model.resetInstanceNode("/root/main/essc");
  310. var controlObj = document.controls("btn_search");
  311. controlObj.dispatch("DOMActivate");
  312. }
  313. //model.refresh();
  314. ]]>
  315. </script>
  316. </button>
  317. <line id="line17" class="line_2" style="x1:0px; y1:131px; x2:1194px; y2:131px; "/>
  318. <group id="group6" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  319. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  320. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색구분 :</caption>
  321. <button id="btn_search" class="btn1_letter2" navindex="1" style="left:1122px; top:22px; width:56px; height:22px; ">
  322. <caption>조회</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. model.removeNodeset("/root/main/list");
  326. model.makeNode("/root/main/list");
  327. if(submit("TRPIB01801")) {
  328. // 산정특례기준정보 현황
  329. var listcnt = getNodesetCount("/root/hidden/rcv/list");
  330. if (listcnt > 0) {
  331. copyNodeType("/root/main/list","/root/hidden/rcv/list","replace");
  332. }
  333. }
  334. model.refresh();
  335. ]]>
  336. </script>
  337. </button>
  338. <line id="line18" class="line_4" style="x1:1106px; y1:12px; x2:1106px; y2:54px; border-left-style:solid; "/>
  339. <select1 id="cmb_srchflag1" ref="/root/send/data1/srchflag" appearance="minimal" style="left:105px; top:8px; width:195px; height:19px; ">
  340. <choices>
  341. <itemset nodeset="/root/init/P0489list/P0489">
  342. <label ref="cdnm"/>
  343. <value ref="cdid"/>
  344. </itemset>
  345. </choices>
  346. </select1>
  347. <caption id="caption11" class="search_name" style="left:340px; top:8px; width:98px; height:17px; ">특례기호 :</caption>
  348. <input id="ipt_srchspclcd" ref="/root/send/data1/spclcd" class="input_search" imemode="disabled" _chartype="upper" style="left:428px; top:8px; width:127px; height:19px; "/>
  349. <caption id="caption12" class="search_name" style="left:16px; top:35px; width:98px; height:17px; ">상병 :</caption>
  350. <input id="ipt_srchdiagcd" ref="/root/send/data1/diagcd" class="input_search" imemode="disabled" _chartype="upper" style="left:185px; top:35px; width:95px; height:19px; "/>
  351. <caption id="caption13" class="search_name" style="left:840px; top:8px; width:98px; height:17px; ">종료여부 :</caption>
  352. <select1 id="cmb_srchappflag" ref="/root/send/data1/appflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:928px; top:8px; width:110px; height:19px; ">
  353. <choices>
  354. <item>
  355. <label>포함</label>
  356. <value>1</value>
  357. </item>
  358. <item>
  359. <label>미포함</label>
  360. <value>2</value>
  361. </item>
  362. </choices>
  363. </select1>
  364. <caption id="caption14" class="search_name" style="left:340px; top:35px; width:98px; height:17px; ">EDI코드 :</caption>
  365. <input id="ipt_edicd" ref="/root/send/data1/edicd" class="input_search" imemode="disabled" _chartype="upper" style="left:427px; top:35px; width:108px; height:19px; ">
  366. <script type="javascript" ev:event="onkeypress">
  367. <![CDATA[
  368. if (event.keyCode=='13') {
  369. inputEnterKey("btn_srchedicd", "DOMActivate");
  370. }
  371. ]]>
  372. </script>
  373. </input>
  374. <caption id="caption8" class="search_name" style="left:595px; top:35px; width:86px; height:17px; ">보험유형 :</caption>
  375. <caption id="caption15" class="search_name" style="left:840px; top:35px; width:98px; height:17px; ">내외유형 :</caption>
  376. <select1 id="cmb_srchinsukind" ref="/root/send/data1/insukind" appearance="minimal" style="left:684px; top:35px; width:106px; height:19px; ">
  377. <choices>
  378. <itemset nodeset="/root/init/P0008list/P0008">
  379. <label ref="cdnm"/>
  380. <value ref="cdid"/>
  381. </itemset>
  382. </choices>
  383. </select1>
  384. <select1 id="cmb_srchioflag" ref="/root/send/data1/ioflag" appearance="minimal" style="left:928px; top:35px; width:106px; height:19px; ">
  385. <choices>
  386. <itemset nodeset="/root/init/C0029list/C0029">
  387. <label ref="cdnm"/>
  388. <value ref="cdid"/>
  389. </itemset>
  390. </choices>
  391. </select1>
  392. <select1 id="cmb_spclflag1" ref="/root/send/data1/spclflag" appearance="minimal" style="left:685px; top:8px; width:106px; height:19px; ">
  393. <choices>
  394. <itemset nodeset="/root/init/P0490list/P0490">
  395. <label ref="cdnm"/>
  396. <value ref="cdid"/>
  397. </itemset>
  398. </choices>
  399. </select1>
  400. <caption id="caption20" class="search_name" style="left:596px; top:8px; width:86px; height:17px; ">특례구분 :</caption>
  401. </group>
  402. <caption id="caption22" class="tit_2" style="left:5px; top:87px; width:121px; height:13px; ">산정특례기준정보</caption>
  403. <line id="line19" class="line_1" style="x1:0px; y1:102px; x2:1194px; y2:102px; "/>
  404. <caption id="caption23" class="cell_1" style="left:0px; top:107px; width:85px; height:23px; vertical-align:middle; ">검색구분</caption>
  405. <caption id="caption34" class="cell_1" style="left:240px; top:107px; width:85px; height:23px; vertical-align:middle; ">특례기호</caption>
  406. <caption id="caption35" class="cell_1" style="left:240px; top:132px; width:85px; height:23px; vertical-align:middle; ">시작상병</caption>
  407. <caption id="caption36" class="cell_1" style="left:622px; top:132px; width:85px; height:23px; vertical-align:middle; ">종료상병</caption>
  408. <button id="btn_diagcdto" class="icon_search" navindex="11" style="left:815px; top:134px; width:16px; height:16px; ">
  409. <caption/>
  410. <script type="javascript" ev:event="DOMActivate">
  411. <![CDATA[
  412. var diagkind = model.getValue("/root/main/essc/diagkind");
  413. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  414. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  415. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  416. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/essc/diagcdto"));
  417. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  418. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  419. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  420. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  421. if (diagcd !="") {
  422. if (diagkind == "1") {
  423. model.setvalue("/root/main/essc/diagcdto", diagcd);
  424. } else {
  425. model.setvalue("/root/main/essc/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  426. }
  427. model.setvalue("/root/main/essc/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  428. model.refresh();
  429. }
  430. ]]>
  431. </script>
  432. </button>
  433. <input id="ipt_diagcdto" ref="/root/main/essc/diagcdto" class="input_essential" navindex="9" imemode="disabled" maxlength="16" _chartype="upper" style="left:710px; top:134px; width:100px; height:19px; ">
  434. <script type="javascript" ev:event="onkeypress">
  435. <![CDATA[
  436. if (event.keyCode==13) {
  437. inputEnterKey("btn_diagcdto", "DOMFocusIn");
  438. // 1. 시작상병 엔터
  439. model.setValue("/root/send/data3/srch",model.getValue("/root/main/essc/diagcdto"));
  440. model.setValue("/root/send/data3/diagkind",model.getValue("/root/main/essc/diagkind"));
  441. submit("TRPIB00803");
  442. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  443. // 상병코드로 상병명 조회가 된 경우
  444. if(hngnm != ""){
  445. model.setValue("/root/main/essc/diagnmto", hngnm);
  446. }
  447. // 상병코드로 상병명 조회가 안된 경우
  448. if(hngnm == ""){
  449. inputEnterKey("btn_diagcdto", "DOMActivate");
  450. }
  451. model.refresh();
  452. }
  453. ]]>
  454. </script>
  455. </input>
  456. <output id="ipt_diagnmto" ref="/root/main/essc/diagnmto" class="output_fix" appearance="output" style="left:833px; top:134px; width:163px; height:19px; "/>
  457. <caption id="caption37" class="cell_1" style="left:0px; top:133px; width:85px; height:23px; vertical-align:middle; ">상병유형</caption>
  458. <select1 id="rdo_diagkind" ref="/root/main/essc/diagkind" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:88px; top:136px; width:100px; height:18px; border-style:none; ">
  459. <choices>
  460. <item>
  461. <label>ICD10</label>
  462. <value>1</value>
  463. </item>
  464. <item>
  465. <label>확장</label>
  466. <value>2</value>
  467. </item>
  468. </choices>
  469. </select1>
  470. <caption id="caption39" class="cell_1" style="left:0px; top:158px; width:85px; height:23px; vertical-align:middle; ">EDI코드구분</caption>
  471. <caption id="caption42" class="cell_1" style="left:797px; top:184px; width:85px; height:23px; vertical-align:middle; ">종료일자</caption>
  472. <select1 id="cmb_edicdflag" ref="/root/main/essc/edicdflag" class="combo_default" navindex="11" appearance="minimal" style="left:88px; top:160px; width:150px; height:19px; ">
  473. <choices>
  474. <itemset nodeset="/root/init/P0131list/P0131">
  475. <label ref="cdnm"/>
  476. <value ref="cdid"/>
  477. </itemset>
  478. </choices>
  479. </select1>
  480. <caption id="caption48" class="tit_2" style="left:5px; top:250px; width:188px; height:13px; ">산정특례 기준정보 등록 내역</caption>
  481. <line id="line20" class="line_1" style="x1:0px; y1:265px; x2:1194px; y2:265px; "/>
  482. <datagrid id="grd_spclcdlist" nodeset="/root/main/list/grdspclcdlist" caption="검색구분^특례기호^seq^기관코드^보험유형^내외유형^특례구분^시작일자^종료일자^상병유형^시작상병^시작상병명^종료상병^종료상병명^EDI구분^시작EDI^시작EDI명^종료DEI^종료EDI명^보조유형^정류정액구분^본인부담율1^본인부담율2^특례명칭^최소나이^최대나이^old보험유형^old내외유형^old종료일자^만성질환여부^차상위1종 보조유형^차상위2종 보조유형^특례명칭" colsep="^" colwidth="115, 55, 100, 100, 90, 70, 95, 90, 90, 70, 70, 130, 70, 130, 65, 85, 130, 85, 130, 115, 85, 82, 82, 300, 60, 60, 100, 100, 100, 100, 139, 157" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:270px; width:1194px; height:470px; ">
  483. <col disabled="true" ref="srchflag" type="combo">
  484. <choices>
  485. <itemset nodeset="/root/init/P0489list/P0489">
  486. <label ref="cdnm"/>
  487. <value ref="cdid"/>
  488. </itemset>
  489. </choices>
  490. </col>
  491. <col disabled="true" ref="spclcd" type="input" style="text-align:center; "/>
  492. <col ref="seq" visibility="hidden"/>
  493. <col ref="instcd" visibility="hidden"/>
  494. <col ref="insukind" type="combo">
  495. <choices>
  496. <itemset nodeset="/root/init/P0008list/P0008">
  497. <label ref="cdnm"/>
  498. <value ref="cdid"/>
  499. </itemset>
  500. </choices>
  501. </col>
  502. <col ref="ioflag" type="combo">
  503. <choices>
  504. <itemset nodeset="/root/init/C0029list/C0029">
  505. <label ref="cdnm"/>
  506. <value ref="cdid"/>
  507. </itemset>
  508. </choices>
  509. </col>
  510. <col disabled="false" ref="spclflag" type="combo">
  511. <choices>
  512. <itemset nodeset="/root/init/P0490list/P0490">
  513. <label ref="cdnm"/>
  514. <value ref="cdid"/>
  515. </itemset>
  516. </choices>
  517. </col>
  518. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  519. <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  520. <col disabled="false" ref="diagkind" type="combo">
  521. <choices>
  522. <item>
  523. <label>ICD10</label>
  524. <value>1</value>
  525. </item>
  526. <item>
  527. <label>확장</label>
  528. <value>2</value>
  529. </item>
  530. </choices>
  531. </col>
  532. <col ref="diagcdfrom" type="input"/>
  533. <col ref="diagnmfrom" visibility="visible"/>
  534. <col ref="diagcdto" type="input"/>
  535. <col ref="diagnmto" visibility="visible"/>
  536. <col disabled="false" ref="edicdflag" type="combo">
  537. <choices>
  538. <itemset nodeset="/root/init/P0131list/P0131">
  539. <label ref="cdnm"/>
  540. <value ref="cdid"/>
  541. </itemset>
  542. </choices>
  543. </col>
  544. <col ref="edicdfrom" type="input"/>
  545. <col ref="edinmfrom" visibility="visible"/>
  546. <col ref="edicdto" type="input"/>
  547. <col ref="edinmto" visibility="visible"/>
  548. <col disabled="false" ref="suppkindflag" type="combo">
  549. <choices>
  550. <itemset nodeset="/root/init/P0010list/P0010">
  551. <label ref="cdnm"/>
  552. <value ref="cdid"/>
  553. </itemset>
  554. </choices>
  555. </col>
  556. <col ref="fixrateyn" visibility="hidden"/>
  557. <col ref="payown1" visibility="hidden" format="#,### &quot;%&quot;" style="text-align:right; "/>
  558. <col ref="payown2" visibility="hidden" format="#,### &quot;%&quot;" style="text-align:right; "/>
  559. <col ref="spclnm" type="input"/>
  560. <col ref="minage"/>
  561. <col ref="maxage"/>
  562. <col ref="oldinsukind" visibility="hidden"/>
  563. <col ref="oldioflag" visibility="hidden"/>
  564. <col ref="oldtodd" visibility="hidden"/>
  565. <col ref="chronicdiseaseyn"/>
  566. <col ref="suppkindj1" type="combo">
  567. <choices>
  568. <itemset nodeset="/root/init/P0010list/P0010">
  569. <label ref="cdnm"/>
  570. <value ref="cdid"/>
  571. </itemset>
  572. </choices>
  573. </col>
  574. <col ref="suppkindj2" type="combo">
  575. <choices>
  576. <itemset nodeset="/root/init/P0010list/P0010">
  577. <label ref="cdnm"/>
  578. <value ref="cdid"/>
  579. </itemset>
  580. </choices>
  581. </col>
  582. <script type="javascript" ev:event="ondblclick">
  583. <![CDATA[
  584. if(grd_spclcdlist.isCell(event.target) && grd_spclcdlist.row >= grd_spclcdlist.fixedRows) {
  585. var row = grd_spclcdlist.row ;
  586. copyNodeType("/root/main/essc","/root/main/list/grdspclcdlist["+ row +"]","replace");
  587. // 추가수정flag, row 수정상태로 하고, 검색구분, 특례기호는 수정하지 못하게 한다.
  588. model.setValue("/root/hidden/appflag", "U");
  589. model.setValue("/root/hidden/currow", row);
  590. cmb_srchflag2.disabled = true;
  591. ipt_spclcd.disabled = true;
  592. model.refresh();
  593. }
  594. ]]>
  595. </script>
  596. <script type="javascript" ev:event="onaftersort">
  597. <![CDATA[
  598. // 소트 후, 그리드와 인스턴스 매핑 다시 처리
  599. grd_spclcdlist.gridToInstance();
  600. ]]>
  601. </script>
  602. <script type="javascript" ev:event="onkeydown">
  603. <![CDATA[
  604. var row = grd_spclcdlist.row;
  605. var col = grd_spclcdlist.col;
  606. if (event.keyCode == 13){
  607. grd_spclcdlist.endEditCell();
  608. if (col == grd_spclcdlist.colRef("diagcdfrom")) {
  609. // 1. 시작상병 엔터
  610. model.setValue("/root/send/data3/srch",model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom"));
  611. model.setValue("/root/send/data3/diagkind",model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagkind"));
  612. submit("TRPIB00803");
  613. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  614. // 상병코드로 상병명 조회가 된 경우
  615. if(hngnm != ""){
  616. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmfrom", hngnm);
  617. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom"));
  618. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", hngnm);
  619. }
  620. // 상병코드로 상병명 조회가 안된 경우
  621. if(hngnm == ""){
  622. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmfrom", "");
  623. // 상병조회 팝업 호출
  624. var diagkind = model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagkind");
  625. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  626. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  627. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  628. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom"));
  629. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  630. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  631. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  632. // 조회결과 뿌려주기
  633. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  634. if (diagcd !="") {
  635. if (diagkind == "1") {
  636. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom", diagcd);
  637. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", diagcd);
  638. } else {
  639. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  640. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  641. }
  642. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagnmfrom", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  643. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  644. model.refresh();
  645. }
  646. }
  647. } else if (col == grd_spclcdlist.colRef("diagcdto")) {
  648. // 2. 종료상병 엔터
  649. model.setValue("/root/send/data3/srch",model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagcdto"));
  650. model.setValue("/root/send/data3/diagkind",model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagkind"));
  651. submit("TRPIB00803");
  652. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  653. // 상병코드로 상병명 조회가 된 경우
  654. if(hngnm != ""){
  655. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", hngnm);
  656. }
  657. // 상병코드로 상병명 조회가 안된 경우
  658. if(hngnm == ""){
  659. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", "");
  660. // 상병조회 팝업 호출
  661. var diagkind = model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagkind");
  662. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  663. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  664. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  665. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list/grdspclcdlist["+row+"]/diagcdto"));
  666. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  667. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  668. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  669. // 조회결과 뿌려주기
  670. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  671. if (diagcd !="") {
  672. if (diagkind == "1") {
  673. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", diagcd);
  674. } else {
  675. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  676. }
  677. model.setvalue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  678. model.refresh();
  679. }
  680. }
  681. } else if (col == grd_spclcdlist.colRef("edicdfrom")) {
  682. // 3. 시작EDI 엔터
  683. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  684. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  685. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list/grdspclcdlist["+row+"]/edicdfrom"));
  686. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  687. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  688. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  689. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  690. if (mechSelect == null) { // 선택한 코드가 없는 경우
  691. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  692. return;
  693. }
  694. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  695. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  696. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  697. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  698. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  699. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edinmfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  700. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  701. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  702. model.refresh();
  703. } else if (col == grd_spclcdlist.colRef("edicdto")) {
  704. // 4. 종료EDI 엔터
  705. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  706. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  707. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list/grdspclcdlist["+row+"]/edicdto"));
  708. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  709. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  710. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  711. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  712. if (mechSelect == null) { // 선택한 코드가 없는 경우
  713. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  714. return;
  715. }
  716. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  717. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  718. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  719. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  720. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  721. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  722. model.refresh();
  723. }
  724. }
  725. ]]>
  726. </script>
  727. </datagrid>
  728. <line id="line24" class="line_3" style="x1:0px; y1:232px; x2:1194px; y2:232px; "/>
  729. <button id="button4" class="btn4_letter2" navindex="21" style="left:1067px; top:745px; width:56px; height:22px; ">
  730. <caption>저장</caption>
  731. <script type="javascript" ev:event="DOMActivate">
  732. <![CDATA[
  733. // 0. 저장하시겠습니까?
  734. model.removeNode("/root/hidden/list1/essc");
  735. var updtdata = getGridUpdateData(grd_spclcdlist);
  736. if (updtdata == "") {
  737. messageBox("변경된 데이터가", "I004");
  738. return;
  739. }
  740. if (messageBox("산정특례 기준정보를 저장", "S001") != 6) return;
  741. // 1. 그리드에 update가 일어난 데이터를 받는다.
  742. model.makeValue("/root/hidden/list1/essc",updtdata);
  743. // 2. 일괄저장한다.
  744. if (submit("TXPIB01801")) {
  745. // 3. 화면 초기화 + 재조회
  746. btn_clear.dispatch("DOMActivate");
  747. //btn_search.dispatch("DOMActivate"); 2009.09.09 zzui 윤영옥샘 요청으로 저장후 바로 조회되는 기능 뺌.(속도측면)
  748. model.removeNodeset("/root/main/list"); //2009.09.09 zzui 추가
  749. messageBox("정상적으로 저장되었습니다.", "I999");
  750. }
  751. ]]>
  752. </script>
  753. </button>
  754. <button id="button10" class="btn4_letter3" navindex="23" style="left:1127px; top:745px; width:68px; height:22px; ">
  755. <caption>초기화</caption>
  756. <script type="javascript" ev:event="DOMActivate">
  757. <![CDATA[
  758. fInitialize("all");
  759. ]]>
  760. </script>
  761. </button>
  762. <select1 id="cmb_srchflag2" ref="/root/main/essc/srchflag" class="combo_essential" navindex="2" appearance="minimal" style="left:88px; top:108px; width:150px; height:19px; ">
  763. <choices>
  764. <itemset nodeset="/root/init/P0489list/P0489">
  765. <label ref="cdnm"/>
  766. <value ref="cdid"/>
  767. </itemset>
  768. </choices>
  769. </select1>
  770. <input id="ipt_spclcd" ref="/root/main/essc/spclcd" class="input_essential" navindex="3" imemode="disabled" maxlength="4" _chartype="upper" style="left:328px; top:108px; width:62px; height:19px; "/>
  771. <input id="ipt_todd" ref="/root/main/essc/fromdd" class="input_essential" navindex="16" inputtype="date" style="left:710px; top:186px; width:85px; height:19px; ">
  772. <script type="javascript" ev:event="xforms-value-changed">
  773. <![CDATA[
  774. model.setValue("/root/main/essc/todd","99991231");
  775. model.refresh();
  776. ]]>
  777. </script>
  778. </input>
  779. <caption id="caption1" class="cell_1" style="left:622px; top:184px; width:85px; height:23px; vertical-align:middle; ">시작일자</caption>
  780. <input id="ipt_fromdd" ref="/root/main/essc/todd" class="input_essential" navindex="17" inputtype="date" style="left:885px; top:186px; width:110px; height:19px; "/>
  781. <input id="ipt_diagcdfrom" ref="/root/main/essc/diagcdfrom" class="input_essential" navindex="8" imemode="disabled" maxlength="16" _chartype="upper" style="left:328px; top:134px; width:100px; height:19px; ">
  782. <script type="javascript" ev:event="onkeypress">
  783. <![CDATA[
  784. if (event.keyCode==13) {
  785. inputEnterKey("btn_diagcdfrom", "DOMFocusIn");
  786. // 1. 시작상병 엔터
  787. model.setValue("/root/send/data3/srch",model.getValue("/root/main/essc/diagcdfrom"));
  788. model.setValue("/root/send/data3/diagkind",model.getValue("/root/main/essc/diagkind"));
  789. submit("TRPIB00803");
  790. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  791. // 상병코드로 상병명 조회가 된 경우
  792. if(hngnm != ""){
  793. model.setValue("/root/main/essc/diagnmfrom", hngnm);
  794. model.setValue("/root/main/essc/diagcdto", model.getValue("/root/main/essc/diagcdfrom"));
  795. model.setValue("/root/main/essc/diagnmto", hngnm);
  796. }
  797. // 상병코드로 상병명 조회가 안된 경우
  798. if(hngnm == ""){
  799. inputEnterKey("btn_diagcdfrom", "DOMActivate");
  800. }
  801. model.refresh();
  802. }
  803. ]]>
  804. </script>
  805. </input>
  806. <button id="btn_diagcdfrom" class="icon_search" navindex="9" style="left:433px; top:134px; width:16px; height:16px; ">
  807. <caption/>
  808. <script type="javascript" ev:event="DOMActivate">
  809. <![CDATA[
  810. var diagkind = model.getValue("/root/main/essc/diagkind");
  811. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  812. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  813. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  814. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/essc/diagcdfrom"));
  815. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  816. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  817. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  818. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  819. if (diagcd !="") {
  820. if (diagkind == "1") {
  821. model.setvalue("/root/main/essc/diagcdfrom", diagcd);
  822. model.setvalue("/root/main/essc/diagcdto", diagcd);
  823. } else {
  824. model.setvalue("/root/main/essc/diagcdfrom", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  825. model.setvalue("/root/main/essc/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  826. }
  827. model.setvalue("/root/main/essc/diagnmfrom", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  828. model.setvalue("/root/main/essc/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  829. model.refresh();
  830. }
  831. ]]>
  832. </script>
  833. </button>
  834. <output id="opt_diagnmfrom" ref="/root/main/essc/diagnmfrom" class="output_fix" appearance="output" style="left:457px; top:134px; width:163px; height:19px; "/>
  835. <select1 id="cmb_suppkindflag" ref="/root/main/essc/suppkindflag" class="combo_essential" navindex="14" appearance="minimal" style="left:88px; top:186px; width:150px; height:19px; ">
  836. <choices>
  837. <itemset nodeset="/root/init/P0010list/P0010">
  838. <label ref="cdnm"/>
  839. <value ref="cdid"/>
  840. </itemset>
  841. </choices>
  842. </select1>
  843. <caption id="caption2" class="cell_1" style="left:393px; top:107px; width:85px; height:23px; vertical-align:middle; ">특례구분</caption>
  844. <select1 id="cmb_spclflag" ref="/root/main/essc/spclflag" class="combo_essential" navindex="4" appearance="minimal" style="left:481px; top:108px; width:139px; height:19px; ">
  845. <choices>
  846. <itemset nodeset="/root/init/P0490list/P0490">
  847. <label ref="cdnm"/>
  848. <value ref="cdid"/>
  849. </itemset>
  850. </choices>
  851. </select1>
  852. <input id="ipt_edicdfrom" ref="/root/main/essc/edicdfrom" class="input_default" navindex="12" imemode="disabled" maxlength="12" _chartype="upper" style="left:328px; top:160px; width:100px; height:19px; ">
  853. <script type="javascript" ev:event="onkeypress">
  854. <![CDATA[
  855. if (event.keyCode=='13') {
  856. inputEnterKey("btn_edicdfrom", "DOMActivate");
  857. }
  858. ]]>
  859. </script>
  860. </input>
  861. <output id="opt_edinmfrom" ref="/root/main/essc/edinmfrom" class="output_fix" appearance="output" style="left:457px; top:160px; width:163px; height:19px; "/>
  862. <caption id="caption3" class="cell_1" style="left:240px; top:158px; width:85px; height:23px; vertical-align:middle; ">시작EDI코드</caption>
  863. <button id="btn_edicdfrom" class="icon_search" navindex="14" style="left:433px; top:160px; width:16px; height:16px; ">
  864. <caption/>
  865. <script type="javascript" ev:event="DOMActivate">
  866. <![CDATA[
  867. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", model.getValue("/root/hidden/currendate"));
  868. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  869. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/essc/edicdfrom"));
  870. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  871. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  872. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  873. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  874. if (mechSelect == null) { // 선택한 코드가 없는 경우
  875. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  876. return;
  877. }
  878. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  879. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  880. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  881. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  882. model.setValue("/root/main/essc/edicdfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  883. model.setValue("/root/main/essc/edinmfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  884. model.setValue("/root/main/essc/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  885. model.setValue("/root/main/essc/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  886. model.refresh();
  887. ]]>
  888. </script>
  889. </button>
  890. <output id="opt_edinmto" ref="/root/main/essc/edinmto" class="output_fix" appearance="output" style="left:833px; top:160px; width:163px; height:19px; "/>
  891. <button id="btn_edicdto" class="icon_search" navindex="16" style="left:815px; top:160px; width:16px; height:16px; ">
  892. <caption/>
  893. <script type="javascript" ev:event="DOMActivate">
  894. <![CDATA[
  895. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", model.getValue("/root/hidden/currendate"));
  896. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  897. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/essc/edinmto"));
  898. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  899. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  900. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  901. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  902. if (mechSelect == null) { // 선택한 코드가 없는 경우
  903. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  904. return;
  905. }
  906. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  907. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  908. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  909. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  910. model.setValue("/root/main/essc/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  911. model.setValue("/root/main/essc/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  912. model.refresh();
  913. ]]>
  914. </script>
  915. </button>
  916. <caption id="caption4" class="cell_1" style="left:622px; top:158px; width:85px; height:23px; vertical-align:middle; ">종료EDI코드</caption>
  917. <input id="ipt_edicdto" ref="/root/main/essc/edicdto" class="input_default" navindex="13" imemode="disabled" maxlength="12" _chartype="upper" style="left:710px; top:160px; width:100px; height:19px; ">
  918. <script type="javascript" ev:event="onkeypress">
  919. <![CDATA[
  920. if (event.keyCode=='13') {
  921. inputEnterKey("btn_edicdto", "DOMActivate");
  922. }
  923. ]]>
  924. </script>
  925. </input>
  926. <select1 id="cmb_essential" ref="/root/main/essc/fixrateyn" class="combo_default" navindex="17" visibility="hidden" appearance="minimal" style="left:790px; top:350px; width:100px; height:19px; ">
  927. <choices>
  928. <item>
  929. <label>Y</label>
  930. <value>Y</value>
  931. </item>
  932. <item>
  933. <label>N</label>
  934. <value>N</value>
  935. </item>
  936. </choices>
  937. </select1>
  938. <input id="ipt_payown1" ref="/root/main/essc/payown1" class="input_default" navindex="18" visibility="hidden" maxlength="10" format="#,###" appearance="input" style="left:895px; top:350px; width:100px; height:19px; text-align:right; "/>
  939. <input id="ipt_payown2" ref="/root/main/essc/payown2" class="input_default" navindex="19" visibility="hidden" maxlength="10" format="#,###" appearance="input" style="left:1000px; top:350px; width:100px; height:19px; text-align:right; "/>
  940. <input id="ipt_spclnm" ref="/root/main/essc/spclnm" class="input_default" navindex="15" maxlength="100" appearance="input" style="left:328px; top:186px; width:292px; height:19px; "/>
  941. <caption id="caption9" class="cell_1" style="left:240px; top:184px; width:85px; height:23px; vertical-align:middle; ">특례명칭</caption>
  942. <caption id="caption10" class="cell_1" style="left:0px; top:184px; width:85px; height:23px; vertical-align:middle; ">보조유형구분</caption>
  943. <button id="button1" class="icon_search" navindex="9" style="left:285px; top:48px; width:16px; height:16px; ">
  944. <caption/>
  945. <script type="javascript" ev:event="DOMActivate">
  946. <![CDATA[
  947. var diagkind = model.getValue("/root/send/data1/diagkind");
  948. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  949. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  950. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  951. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/send/data1/diagcd"));
  952. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  953. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  954. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  955. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  956. if (diagcd !="") {
  957. if (diagkind == "1") {
  958. model.setvalue("/root/send/data1/diagcd", diagcd);
  959. } else {
  960. model.setvalue("/root/send/data1/diagcd", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  961. }
  962. model.refresh();
  963. }
  964. ]]>
  965. </script>
  966. </button>
  967. <button id="btn_srchedicd" class="icon_search" navindex="16" style="left:540px; top:48px; width:16px; height:16px; ">
  968. <caption/>
  969. <script type="javascript" ev:event="DOMActivate">
  970. <![CDATA[
  971. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", model.getValue("/root/hidden/currendate"));
  972. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  973. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/data1/edicd"));
  974. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  975. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  976. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  977. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  978. if (mechSelect == null) { // 선택한 코드가 없는 경우
  979. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  980. return;
  981. }
  982. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  983. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  984. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  985. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  986. model.setValue("/root/send/data1/edicd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  987. model.refresh();
  988. ]]>
  989. </script>
  990. </button>
  991. <input id="ipt_todd2" ref="/root/hidden/todd" class="input_search" navindex="5" visibility="visible" inputtype="date" style="left:919px; top:245px; width:99px; height:19px; "/>
  992. <button id="btn_end" class="btn2_letter4" navindex="3" style="left:1020px; top:245px; width:64px; height:19px; ">
  993. <caption>적용종료</caption>
  994. <script type="javascript" ev:event="DOMActivate">
  995. <![CDATA[
  996. // 멀티라인 적용종료
  997. model.removeNode("/root/hidden/list1/essc");
  998. var todd = model.getValue("/root/hidden/todd"); // 적용종료일
  999. var rows = grd_spclcdlist.selectedRows;
  1000. if (messageBox("선택된 산정특례 기준정보를 적용종료", "S001") == 6) {
  1001. for (var i = 0; i < rows; i++) {
  1002. var sel = grd_spclcdlist.selectedRow(i);
  1003. if (grd_spclcdlist.rowstatus(sel) != 1 && grd_spclcdlist.rowstatus(sel) != 3) {
  1004. grd_spclcdlist.rowstatus(sel) = 2;
  1005. }
  1006. model.setValue("/root/main/list/grdspclcdlist[" + sel + "]/todd", todd);
  1007. }
  1008. // var updtdata = getGridUpdateData(grd_spclcdlist);
  1009. // if (updtdata == "") {
  1010. // } else {
  1011. // model.makeValue("/root/hidden/list1/essc",updtdata);
  1012. // }
  1013. //
  1014. // // 적용종료일 변경하기
  1015. // if ( submit("TXPIB01804") ) {
  1016. // for (var i = 0; i < rows; i++) {
  1017. // var sel = grd_spclcdlist.selectedRow(i);
  1018. // grd_spclcdlist.rowstatus(sel) = 0;
  1019. // }
  1020. // }
  1021. }
  1022. ]]>
  1023. </script>
  1024. </button>
  1025. <button id="btn_update" class="btn2_letter2" navindex="3" style="left:1051px; top:82px; width:42px; height:19px; ">
  1026. <caption>수정</caption>
  1027. <script type="javascript" ev:event="DOMActivate">
  1028. <![CDATA[
  1029. // 전제:수정모드가 아니면 메세지로 먼저 목록을 더블클릭하여 수정할 데이터를 보여주도록 해야한다.
  1030. var appflag = model.getValue("/root/hidden/appflag");
  1031. if (appflag != "U") {
  1032. messageBox("먼저 수정할 산정특례기준정보를 목록에서 선택해 주십시요.","E999","");
  1033. return false;
  1034. }
  1035. if (fCheckVariable()) {
  1036. var row = model.getValue("/root/hidden/currow");
  1037. // 1. 수정된 내용을 산정특례 기준정보 목록에 반영한다.
  1038. model.setValue("/root/main/list/grdspclcdlist["+row+"]/srchflag", model.getValue("/root/main/essc/srchflag")); // 검색구분
  1039. model.setValue("/root/main/list/grdspclcdlist["+row+"]/spclcd", model.getValue("/root/main/essc/spclcd")); // 특례기호
  1040. model.setValue("/root/main/list/grdspclcdlist["+row+"]/insukind", model.getValue("/root/main/essc/insukind")); // 보험유형
  1041. model.setValue("/root/main/list/grdspclcdlist["+row+"]/ioflag", model.getValue("/root/main/essc/ioflag")); // 내외유형
  1042. model.setValue("/root/main/list/grdspclcdlist["+row+"]/spclflag", model.getValue("/root/main/essc/spclflag")); // 특례구분
  1043. model.setValue("/root/main/list/grdspclcdlist["+row+"]/fromdd", model.getValue("/root/main/essc/fromdd")); // 시작일자
  1044. model.setValue("/root/main/list/grdspclcdlist["+row+"]/todd", model.getValue("/root/main/essc/todd")); // 종료일자
  1045. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagkind", model.getValue("/root/main/essc/diagkind")); // 유형
  1046. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagcdfrom", model.getValue("/root/main/essc/diagcdfrom")); // 시작상병코드
  1047. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmfrom", model.getValue("/root/main/essc/diagnmfrom")); // 시작상병명칭
  1048. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagcdto", model.getValue("/root/main/essc/diagcdto")); // 시작상병코드
  1049. model.setValue("/root/main/list/grdspclcdlist["+row+"]/diagnmto", model.getValue("/root/main/essc/diagnmto")); // 시작상병명칭
  1050. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdflag", model.getValue("/root/main/essc/edicdflag")); // EDI코드구분
  1051. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdfrom", model.getValue("/root/main/essc/edicdfrom")); // 시작EDI코드
  1052. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edinmfrom", model.getValue("/root/main/essc/edinmfrom")); // 시작EDI명칭
  1053. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edicdto", model.getValue("/root/main/essc/edicdto")); // 종료EDI코드
  1054. model.setValue("/root/main/list/grdspclcdlist["+row+"]/edinmto", model.getValue("/root/main/essc/edinmto")); // 종료EDI명칭
  1055. model.setValue("/root/main/list/grdspclcdlist["+row+"]/suppkindflag", model.getValue("/root/main/essc/suppkindflag")); // 보조유형구분
  1056. model.setValue("/root/main/list/grdspclcdlist["+row+"]/spclnm", model.getValue("/root/main/essc/spclnm")); // 특례명칭
  1057. model.setValue("/root/main/list/grdspclcdlist["+row+"]/minage", model.getValue("/root/main/essc/minage")); // 최소나이
  1058. model.setValue("/root/main/list/grdspclcdlist["+row+"]/maxage", model.getValue("/root/main/essc/maxage")); // 최대나이
  1059. model.setValue("/root/main/list/grdspclcdlist["+row+"]/chronicdiseaseyn", model.getValue("/root/main/essc/chronicdiseaseyn")); // 만성질환여부
  1060. model.setValue("/root/main/list/grdspclcdlist["+row+"]/suppkindj1", model.getValue("/root/main/essc/suppkindj1")); // 만성질환여부
  1061. model.setValue("/root/main/list/grdspclcdlist["+row+"]/suppkindj2", model.getValue("/root/main/essc/suppkindj2")); // 만성질환여부
  1062. // 2. row 상태를 update로 변경
  1063. if (grd_spclcdlist.rowstatus(row) == 0) {
  1064. grd_spclcdlist.rowstatus(row) = 2;
  1065. }
  1066. // 3. 입력부분 초기화
  1067. btn_clear.dispatch("DOMActivate");
  1068. }
  1069. ]]>
  1070. </script>
  1071. </button>
  1072. <button id="btn_insert" class="btn2_letter2" navindex="3" style="left:1095px; top:82px; width:42px; height:19px; ">
  1073. <caption>추가</caption>
  1074. <script type="javascript" ev:event="DOMActivate">
  1075. <![CDATA[
  1076. // 전제:수정모드가 아니면 메세지로 먼저 목록을 더블클릭하여 수정할 데이터를 보여주도록 해야한다.
  1077. var appflag = model.getValue("/root/hidden/appflag");
  1078. if (appflag != "I") {
  1079. messageBox("Clear를 클릭하여 수정모드를 해제한 뒤 추가하세요.","E999","");
  1080. return false;
  1081. }
  1082. if (fCheckVariable()) {
  1083. // 1. 추가할 내용을 산정특례 기준정보 목록 맨 밑에 추가한다.
  1084. grd_spclcdlist.addRow();
  1085. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/srchflag", model.getValue("/root/main/essc/srchflag")); // 검색구분
  1086. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/spclcd", model.getValue("/root/main/essc/spclcd")); // 특례기호
  1087. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/insukind", model.getValue("/root/main/essc/insukind")); // 보험유형
  1088. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/ioflag", model.getValue("/root/main/essc/ioflag")); // 내외유형
  1089. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/seq", ""); // 순번
  1090. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/todd", model.getValue("/root/main/essc/todd")); // 종료일자
  1091. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/instcd", ""); // 기관코드
  1092. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/fromdd", model.getValue("/root/main/essc/fromdd")); // 시작일자
  1093. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/diagkind", model.getValue("/root/main/essc/diagkind")); // 유형
  1094. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/diagcdfrom", model.getValue("/root/main/essc/diagcdfrom")); // 시작상병코드
  1095. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/diagnmfrom", model.getValue("/root/main/essc/diagnmfrom")); // 시작상병명칭
  1096. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/diagcdto", model.getValue("/root/main/essc/diagcdto")); // 시작상병코드
  1097. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/diagnmto", model.getValue("/root/main/essc/diagnmto")); // 시작상병명칭
  1098. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/suppkindflag", model.getValue("/root/main/essc/suppkindflag")); // 보조유형구분
  1099. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/spclflag", model.getValue("/root/main/essc/spclflag")); // 특례구분
  1100. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/edicdflag", model.getValue("/root/main/essc/edicdflag")); // EDI코드구분
  1101. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/edicdfrom", model.getValue("/root/main/essc/edicdfrom")); // 시작EDI코드
  1102. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/edinmfrom", model.getValue("/root/main/essc/edinmfrom")); // 시작EDI명칭
  1103. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/edicdto", model.getValue("/root/main/essc/edicdto")); // 종료EDI코드
  1104. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/edinmto", model.getValue("/root/main/essc/edinmto")); // 종료EDI명칭
  1105. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/fixrateyn", ""); // 정율정액구분
  1106. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/payown1", ""); // 본인부담율1
  1107. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/payown2", ""); // 본인부담율2
  1108. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/fstrgstrid", ""); // 최초등록자ID
  1109. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/fstrgstdt", ""); // 최초등록일시
  1110. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/lastupdtrid", ""); // 최종수정자ID
  1111. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/lastupdtdt", ""); // 최종수정일시
  1112. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/spclnm", model.getValue("/root/main/essc/spclnm")); // 특례명칭
  1113. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/minage", model.getValue("/root/main/essc/minage")); // 최소나이
  1114. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/maxage", model.getValue("/root/main/essc/maxage")); // 최대나이
  1115. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/oldinsukind", ""); // 과거 보험유형
  1116. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/oldioflag", ""); // 과거 내외유형
  1117. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/oldtodd", ""); // 과거 종료일자
  1118. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/chronicdiseaseyn", model.getValue("/root/main/essc/chronicdiseaseyn")); // 만성질환여부
  1119. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/suppkindj1", model.getValue("/root/main/essc/suppkindj1")); // 만성질환여부
  1120. model.makeValue("/root/main/list/grdspclcdlist["+grd_spclcdlist.row+"]/suppkindj2", model.getValue("/root/main/essc/suppkindj2")); // 만성질환여부
  1121. // 2. row 상태를 insert로 변경
  1122. grd_spclcdlist.rowstatus(grd_spclcdlist.row) = 3;
  1123. // 3. 입력부분 초기화
  1124. btn_clear.dispatch("DOMActivate");
  1125. }
  1126. ]]>
  1127. </script>
  1128. </button>
  1129. <button id="btn_clear" class="btn2_letter3" navindex="3" style="left:1139px; top:82px; width:53px; height:19px; ">
  1130. <caption>Clear</caption>
  1131. <script type="javascript" ev:event="DOMActivate">
  1132. <![CDATA[
  1133. // 상단 입력 부분만 초기화
  1134. model.resetInstanceNode("/root/main/essc");
  1135. model.setValue("/root/main/essc/diagkind", "1");
  1136. model.setValue("/root/main/essc/minage", 0);
  1137. model.setValue("/root/main/essc/maxage", 999);
  1138. // 추가수정flag, row 초기화
  1139. model.setValue("/root/hidden/appflag", "I");
  1140. model.setValue("/root/hidden/currow", 0);
  1141. cmb_srchflag2.disabled = false;
  1142. ipt_spclcd.disabled = false;
  1143. model.refresh();
  1144. ]]>
  1145. </script>
  1146. </button>
  1147. <button id="btn_delete" class="btn2_letter2" navindex="3" style="left:1085px; top:245px; width:42px; height:19px; ">
  1148. <caption>삭제</caption>
  1149. <script type="javascript" ev:event="DOMActivate">
  1150. <![CDATA[
  1151. // 1. 입력부분 초기화
  1152. btn_clear.dispatch("DOMActivate");
  1153. // 2. 선택된 row 의 rowstatus를 delete 로 변경한다.
  1154. for (var i = 0; i < grd_spclcdlist.selectedRows; i++) {
  1155. var sel = grd_spclcdlist.selectedRow(i);
  1156. if (grd_spclcdlist.rowstatus(sel) != 1 && grd_spclcdlist.rowstatus(sel) != 3) {
  1157. grd_spclcdlist.rowstatus(sel) = 4;
  1158. } else {
  1159. grd_spclcdlist.deleteRow(sel);
  1160. }
  1161. }
  1162. ]]>
  1163. </script>
  1164. </button>
  1165. <caption id="caption5" class="cell_1" style="left:797px; top:107px; width:85px; height:23px; vertical-align:middle; ">내외유형</caption>
  1166. <caption id="caption7" class="cell_1" style="left:622px; top:107px; width:85px; height:23px; vertical-align:middle; ">보험유형</caption>
  1167. <line id="line1" class="line_2" style="x1:0px; y1:156px; x2:1194px; y2:156px; "/>
  1168. <line id="line2" class="line_2" style="x1:0px; y1:182px; x2:1194px; y2:182px; "/>
  1169. <select1 id="cmb_insukind" ref="/root/main/essc/insukind" class="combo_essential" navindex="5" appearance="minimal" style="left:710px; top:108px; width:85px; height:19px; ">
  1170. <choices>
  1171. <itemset nodeset="/root/init/P0008list/P0008">
  1172. <label ref="cdnm"/>
  1173. <value ref="cdid"/>
  1174. </itemset>
  1175. </choices>
  1176. </select1>
  1177. <select1 id="cmb_ioflag" ref="/root/main/essc/ioflag" class="combo_essential" navindex="6" appearance="minimal" style="left:885px; top:108px; width:110px; height:19px; ">
  1178. <choices>
  1179. <itemset nodeset="/root/init/C0029list/C0029">
  1180. <label ref="cdnm"/>
  1181. <value ref="cdid"/>
  1182. </itemset>
  1183. </choices>
  1184. </select1>
  1185. <button id="btn_adddiag" class="btn3_letter8" navindex="23" style="left:5px; top:745px; width:128px; height:22px; ">
  1186. <caption>중증질환상병등록</caption>
  1187. <script type="javascript" ev:event="DOMActivate">
  1188. <![CDATA[
  1189. // 산정특례 중증상병 기준정보 등록
  1190. modal("SPPIB02200", 1,150, 150, "SPPIB02200", "", "", "", "");
  1191. ]]>
  1192. </script>
  1193. </button>
  1194. <button id="btn_addprcp" class="btn3_letter8" navindex="23" style="left:135px; top:745px; width:128px; height:22px; ">
  1195. <caption>중증질환처방등록</caption>
  1196. <script type="javascript" ev:event="DOMActivate">
  1197. <![CDATA[
  1198. // 산정특례 중증처방 기준정보 등록
  1199. modal("SPPIB02300", 1,150, 150, "SPPIB02300", "", "", "", "");
  1200. ]]>
  1201. </script>
  1202. </button>
  1203. <caption id="caption16" class="cell_1" style="left:998px; top:107px; width:85px; height:23px; vertical-align:middle; ">최소나이</caption>
  1204. <caption id="caption17" class="cell_1" style="left:998px; top:132px; width:85px; height:23px; vertical-align:middle; ">최대나이</caption>
  1205. <caption id="caption18" class="cell_1" style="left:998px; top:158px; width:85px; height:23px; vertical-align:middle; ">만성질환여부</caption>
  1206. <caption id="caption19" class="cell_1" style="left:998px; top:184px; width:85px; height:23px; vertical-align:middle; "/>
  1207. <input id="ipt_minage" ref="/root/main/essc/minage" class="input_essential" navindex="7" maxlength="3" format="999" _chartype="upper" style="left:1086px; top:108px; width:106px; height:19px; "/>
  1208. <input id="ipt_maxage" ref="/root/main/essc/maxage" class="input_essential" navindex="10" maxlength="3" format="999" _chartype="upper" style="left:1086px; top:134px; width:106px; height:19px; "/>
  1209. <select1 id="rdo_diagkind1" ref="/root/send/data1/diagkind" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:85px; top:45px; width:100px; height:18px; border-style:none; ">
  1210. <choices>
  1211. <item>
  1212. <label>ICD10</label>
  1213. <value>1</value>
  1214. </item>
  1215. <item>
  1216. <label>확장</label>
  1217. <value>2</value>
  1218. </item>
  1219. </choices>
  1220. </select1>
  1221. <select1 id="radio1" ref="/root/main/essc/chronicdiseaseyn" appearance="full" cols="2" overflow="visible" style="left:1087px; top:161px; width:100px; height:20px; border-style:none; ">
  1222. <choices>
  1223. <item>
  1224. <label>적용</label>
  1225. <value>Y</value>
  1226. </item>
  1227. <item>
  1228. <label>미적용</label>
  1229. <value>N</value>
  1230. </item>
  1231. </choices>
  1232. </select1>
  1233. <button id="button2" class="btn2_letter5" navindex="3" style="left:974px; top:82px; width:75px; height:19px; ">
  1234. <caption>SYNC 체크</caption>
  1235. <script type="javascript" ev:event="onclick">
  1236. <![CDATA[
  1237. if(submit("TRPIB01802")) {
  1238. if (grd_esscchklist.disabled) return;
  1239. grp_synccheck.visible = true;
  1240. }
  1241. ]]>
  1242. </script>
  1243. </button>
  1244. <select1 id="combo1" ref="/root/main/essc/suppkindj1" navindex="14" appearance="minimal" style="left:88px; top:210px; width:150px; height:19px; ">
  1245. <choices>
  1246. <itemset nodeset="/root/init/P0010list/P0010">
  1247. <label ref="cdnm"/>
  1248. <value ref="cdid"/>
  1249. </itemset>
  1250. </choices>
  1251. </select1>
  1252. <caption id="caption24" class="cell_1" style="left:0px; top:208px; width:85px; height:23px; vertical-align:middle; ">1종 보조유형</caption>
  1253. <select1 id="combo2" ref="/root/main/essc/suppkindj2" navindex="14" appearance="minimal" style="left:328px; top:210px; width:150px; height:19px; ">
  1254. <choices>
  1255. <itemset nodeset="/root/init/P0010list/P0010">
  1256. <label ref="cdnm"/>
  1257. <value ref="cdid"/>
  1258. </itemset>
  1259. </choices>
  1260. </select1>
  1261. <caption id="caption25" class="cell_1" style="left:240px; top:208px; width:85px; height:23px; vertical-align:middle; ">2종 보조유형</caption>
  1262. </group>
  1263. </group>
  1264. <button id="btn_excel" class="btn2_letter4" navindex="15" style="left:1128px; top:258px; width:64px; height:19px; ">
  1265. <caption>엑셀저장</caption>
  1266. <script type="javascript" ev:event="DOMActivate">
  1267. <![CDATA[
  1268. if (grd_spclcdlist.rows == 1) {
  1269. return;
  1270. }
  1271. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1272. if (fileName != "")
  1273. {
  1274. grd_spclcdlist.saveExcel(fileName, "산정특례기준정보목록", true, true, "", "", true);
  1275. }
  1276. ]]>
  1277. </script>
  1278. </button>
  1279. <group id="grp_synccheck" visibility="hidden" style="left:255px; top:290px; width:685px; height:405px; border-color:#c7a3cf; border-style:solid; ">
  1280. <caption id="cpt_text" class="tit_2" style="left:5px; top:0px; width:212px; height:14px; ">수가마스터 SYNC 불일치 리스트</caption>
  1281. <line id="line7" class="line_1" style="x1:0px; y1:15px; x2:683px; y2:15px; "/>
  1282. <button id="btn_cancel" class="btn4_letter2" style="left:614px; top:374px; width:56px; height:22px; ">
  1283. <caption>닫기</caption>
  1284. <script type="javascript" ev:event="DOMActivate">
  1285. <![CDATA[
  1286. grp_synccheck.visible = false;
  1287. ]]>
  1288. </script>
  1289. </button>
  1290. <datagrid id="grd_esscchklist" nodeset="/root/checklist/grdesscchklist" caption="수가코드^EDI코드^명칭" colsep="^" colwidth="100, 100, 456" mergecellsfixedrows="bycolrec" rowsep="|" style="left:4px; top:24px; width:675px; height:345px; ">
  1291. <col ref="calcscorcd"/>
  1292. <col ref="insuedicd"/>
  1293. <col ref="hngnm"/>
  1294. </datagrid>
  1295. </group>
  1296. </xhtml:body>
  1297. </xhtml:html>