SPPIB02200_산정특례중증상병등록.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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()
  8. {
  9. // 1. 기준정보 초기화
  10. model.resetInstanceNode("/root/main/item1/essc");
  11. model.setValue("/root/main/item1/essc/spclcd", "V191");
  12. model.setValue("/root/main/item1/essc/fromdd", getCurrentDate());
  13. model.setValue("/root/main/item1/essc/todd", "99991231");
  14. model.setValue("/root/main/item1/essc/srchflag", "B"); // 검색구분 : 상병+처방
  15. model.setValue("/root/main/item1/essc/spclflag", "2"); // 특례구분 : 중증환자
  16. model.setValue("/root/main/item1/essc/suppkindflag", "05"); // 보조유형 : 개심,개두10%
  17. model.setValue("/root/main/item1/essc/insukind", "-"); // 보험유형 : 전체
  18. model.setValue("/root/main/item1/essc/ioflag", "A"); // 내외유형 : 전체
  19. model.setValue("/root/main/item1/essc/minage", 0); // 최소나이 : 0
  20. model.setValue("/root/main/item1/essc/maxage", 999); // 최대나이 : 999
  21. // 2. 상병,처방 리스트 초기화
  22. model.removeNodeset("/root/main/list1");
  23. model.removeNodeset("/root/main/list2");
  24. model.makeNode("/root/main/list1");
  25. model.makeNode("/root/main/list2");
  26. // 3. 처방목록조회 데이터 초기화
  27. model.setValue("/root/send/data1/srchflag", "B");
  28. // 4. 상위화면 전달 데이터 초기화
  29. model.removenode("/root/main/list3");
  30. model.makeNode("/root/main/list3");
  31. model.refresh();
  32. }
  33. // 중증상병과 연결시킬 처방목록 조회
  34. function fgetPrcpList() {
  35. submit("TRPIB02201");
  36. }
  37. // 입력데이터의 유효성 검사
  38. function fCheckVariable() {
  39. if (model.getValue("/root/main/item1/essc/srchflag") == "" || model.getValue("/root/main/item1/essc/srchflag") == null)
  40. {
  41. messageBox("검색구분을 선택해 주십시요!","E999","");
  42. return false;
  43. }
  44. if (model.getValue("/root/main/item1/essc/spclcd") == "" || model.getValue("/root/main/item1/essc/spclcd") == null)
  45. {
  46. messageBox("특례기호를 입력해 주십시요!","E999","");
  47. return false;
  48. }
  49. if (model.getValue("/root/main/item1/essc/suppkindflag") == "" || model.getValue("/root/main/item1/essc/suppkindflag") == null)
  50. {
  51. messageBox("보조유형구분을 입력해 주십시요!","E999","");
  52. return false;
  53. }
  54. if (model.getValue("/root/main/item1/essc/fromdd") == "" || model.getValue("/root/main/item1/essc/fromdd") == null)
  55. {
  56. messageBox("시작일자를 입력해 주십시요!","E999","");
  57. return false;
  58. }
  59. if (model.getValue("/root/main/item1/essc/todd") == "" || model.getValue("/root/main/item1/essc/todd") == null)
  60. {
  61. messageBox("종료일자를 입력해 주십시요!","E999","");
  62. return false;
  63. }
  64. if (grd_diaglist.rows == 1)
  65. {
  66. messageBox("등록할 상병내역을 입력해 주십시요!","E999","");
  67. return false;
  68. }
  69. return true;
  70. }
  71. ]]>
  72. </script>
  73. <xhtml:head>
  74. <xhtml:title>산정특례기준정보관리</xhtml:title>
  75. <model id="model1">
  76. <instance id="instance1">
  77. <root xmlns="">
  78. <send>
  79. <data1>
  80. <srchflag/>
  81. </data1>
  82. <data2>
  83. <srch/>
  84. <diagkind/>
  85. </data2>
  86. </send>
  87. <main>
  88. <item1>
  89. <essc>
  90. <srchflag/>
  91. <spclcd/>
  92. <spclflag/>
  93. <insukind/>
  94. <ioflag/>
  95. <suppkindflag/>
  96. <spclnm/>
  97. <fromdd/>
  98. <todd/>
  99. <minage/>
  100. <maxage/>
  101. </essc>
  102. </item1>
  103. <list1>
  104. <diag>
  105. <diagkind/>
  106. <diagcdfrom/>
  107. <diagnmfrom/>
  108. <diagcdto/>
  109. <diagnmto/>
  110. </diag>
  111. </list1>
  112. <list2>
  113. <prcp>
  114. <edicdflag/>
  115. <edicdfrom/>
  116. <edinmfrom/>
  117. <edicdto/>
  118. <edinmto/>
  119. </prcp>
  120. </list2>
  121. <list3>
  122. <grdspclcdlist/>
  123. </list3>
  124. </main>
  125. <init/>
  126. <hidden>
  127. <sppiz00400>
  128. <cond>
  129. <basedd/>
  130. <diagcd/>
  131. <diagnm/>
  132. <selectedrdodiagkind/>
  133. <flag/>
  134. </cond>
  135. <rslt>
  136. <diagcd/>
  137. <diaghngnm/>
  138. <diagengnm/>
  139. <termcd/>
  140. </rslt>
  141. </sppiz00400>
  142. <smpic00200>
  143. <judgsrch>
  144. <con1_dd/>
  145. <con2_gsflag/>
  146. <con3_search1/>
  147. <con4_search2/>
  148. <con5_insu/>
  149. <con6_calcscorcd/>
  150. <con7_todd/>
  151. <con8_instcd/>
  152. </judgsrch>
  153. <rslt>
  154. <ediitem1/>
  155. <ediitem2/>
  156. <grupcalcscorcd/>
  157. <snglcalcscorcd/>
  158. <edicd/>
  159. <ordnm/>
  160. <edicdflag/>
  161. <ediunitcost/>
  162. </rslt>
  163. </smpic00200>
  164. </hidden>
  165. </root>
  166. </instance>
  167. <script type="javascript" ev:event="xforms-ready">
  168. <![CDATA[
  169. // 1. 화면 초기화
  170. fInitialize();
  171. // 2. 등록할 중증상병과 연결시킬 처방목록 조회
  172. fgetPrcpList();
  173. ]]>
  174. </script>
  175. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  176. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  178. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  179. <submission id="TRPIB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/listrsltnm"/>
  180. <submission id="TRPIB02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list2"/>
  181. <submission id="TXPIB02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/temp"/>
  182. </model>
  183. </xhtml:head>
  184. <xhtml:body pagewidth="1220" pageheight="450" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  185. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  186. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:219px; height:14px; ">중증질환 상병 기준자료 등록</caption>
  187. </group>
  188. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:412px; ">
  189. <group id="group5" scroll="auto" style="left:0px; top:0px; width:1195px; height:410px; ">
  190. <line id="line17" class="line_2" style="x1:0px; y1:51px; x2:1194px; y2:51px; "/>
  191. <caption id="caption22" class="tit_2" style="left:5px; top:8px; width:126px; height:13px; ">중증질환 기준정보</caption>
  192. <line id="line19" class="line_1" style="x1:0px; y1:22px; x2:1194px; y2:22px; "/>
  193. <caption id="caption23" class="cell_1" style="left:0px; top:27px; width:85px; height:23px; vertical-align:middle; ">검색구분</caption>
  194. <caption id="caption34" class="cell_1" style="left:207px; top:27px; width:85px; height:23px; vertical-align:middle; ">특례기호</caption>
  195. <caption id="caption42" class="cell_1" style="left:847px; top:52px; width:85px; height:23px; vertical-align:middle; ">종료일자</caption>
  196. <caption id="caption48" class="tit_2" style="left:5px; top:85px; width:214px; height:13px; ">중증질환 상병 기준정보 등록</caption>
  197. <line id="line20" class="line_1" style="x1:0px; y1:100px; x2:570px; y2:100px; "/>
  198. <datagrid id="grd_diaglist" nodeset="/root/main/list1/diag" caption="상병유형^시작상병^시작상병명^종료상병^종료상병명^특례명칭" colsep="^" colwidth="70, 70, 155, 70, 155" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:105px; width:570px; height:270px; ">
  199. <col disabled="false" ref="diagkind" type="combo" style="text-align:center; ">
  200. <choices>
  201. <item>
  202. <label>ICD10</label>
  203. <value>1</value>
  204. </item>
  205. <item>
  206. <label>확장</label>
  207. <value>2</value>
  208. </item>
  209. </choices>
  210. </col>
  211. <col ref="diagcdfrom" type="input" _chartype="upper"/>
  212. <col disabled="true" ref="diagnmfrom" visibility="visible"/>
  213. <col ref="diagcdto" type="input" _chartype="upper"/>
  214. <col disabled="true" ref="diagnmto" visibility="visible"/>
  215. <script type="javascript" ev:event="onaftersort">
  216. <![CDATA[
  217. // 소트 후, 그리드와 인스턴스 매핑 다시 처리
  218. grd_diaglist.gridToInstance();
  219. ]]>
  220. </script>
  221. <script type="javascript" ev:event="onkeydown">
  222. <![CDATA[
  223. var row = grd_diaglist.row;
  224. var col = grd_diaglist.col;
  225. if (event.keyCode == 13){
  226. grd_diaglist.endEditCell();
  227. if (col == grd_diaglist.colRef("diagcdfrom")) {
  228. // 1. 시작상병 엔터
  229. model.setValue("/root/send/data2/srch",model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  230. model.setValue("/root/send/data2/diagkind",model.getValue("/root/main/list1/diag["+row+"]/diagkind"));
  231. submit("TRPIB00803");
  232. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  233. // 상병코드로 상병명 조회가 된 경우
  234. if(hngnm != ""){
  235. model.setValue("/root/main/list1/diag["+row+"]/diagnmfrom", hngnm);
  236. model.setValue("/root/main/list1/diag["+row+"]/diagcdto", model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  237. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", hngnm);
  238. }
  239. // 상병코드로 상병명 조회가 안된 경우
  240. if(hngnm == ""){
  241. model.setValue("/root/main/list1/diag["+row+"]/diagnmfrom", "");
  242. // 상병조회 팝업 호출
  243. var diagkind = model.getValue("/root/main/list1/diag["+row+"]/diagkind");
  244. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  245. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  246. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  247. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  248. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  249. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  250. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  251. // 조회결과 뿌려주기
  252. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  253. if (diagcd !="") {
  254. if (diagkind == "1") {
  255. model.setvalue("/root/main/list1/diag["+row+"]/diagcdfrom", diagcd);
  256. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", diagcd);
  257. } else {
  258. model.setvalue("/root/main/list1/diag["+row+"]/diagcdfrom", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  259. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  260. }
  261. model.setvalue("/root/main/list1/diag["+row+"]/diagnmfrom", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  262. model.setvalue("/root/main/list1/diag["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  263. model.refresh();
  264. }
  265. }
  266. } else if (col == grd_diaglist.colRef("diagcdto")) {
  267. // 2. 종료상병 엔터
  268. model.setValue("/root/send/data2/srch",model.getValue("/root/main/list1/diag["+row+"]/diagcdto"));
  269. model.setValue("/root/send/data2/diagkind",model.getValue("/root/main/list1/diag["+row+"]/diagkind"));
  270. submit("TRPIB00803");
  271. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  272. // 상병코드로 상병명 조회가 된 경우
  273. if(hngnm != ""){
  274. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", hngnm);
  275. }
  276. // 상병코드로 상병명 조회가 안된 경우
  277. if(hngnm == ""){
  278. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", "");
  279. // 상병조회 팝업 호출
  280. var diagkind = model.getValue("/root/main/list1/diag["+row+"]/diagkind");
  281. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  282. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  283. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  284. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list1/diag["+row+"]/diagcdto"));
  285. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  286. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  287. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  288. // 조회결과 뿌려주기
  289. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  290. if (diagcd !="") {
  291. if (diagkind == "1") {
  292. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", diagcd);
  293. } else {
  294. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  295. }
  296. model.setvalue("/root/main/list1/diag["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  297. model.refresh();
  298. }
  299. }
  300. }
  301. }
  302. ]]>
  303. </script>
  304. </datagrid>
  305. <line id="line24" class="line_3" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  306. <button id="btn_close" class="btn4_letter2" navindex="21" style="left:1060px; top:380px; width:56px; height:22px; ">
  307. <caption>취소</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. window.close();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_init" class="btn4_letter3" navindex="23" style="left:1118px; top:380px; width:68px; height:22px; ">
  315. <caption>초기화</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. fInitialize();
  319. ]]>
  320. </script>
  321. </button>
  322. <select1 id="cmb_srchflag" ref="/root/main/item1/essc/srchflag" class="combo_essential" disabled="true" navindex="1" appearance="minimal" style="left:88px; top:28px; width:117px; height:19px; ">
  323. <choices>
  324. <item>
  325. <label>상병</label>
  326. <value>A</value>
  327. </item>
  328. <item>
  329. <label>상병+처방</label>
  330. <value>B</value>
  331. </item>
  332. <item>
  333. <label>상병+중증번호</label>
  334. <value>C</value>
  335. </item>
  336. <item>
  337. <label>처방+중증번호</label>
  338. <value>D</value>
  339. </item>
  340. <item>
  341. <label>상병+처방+중증번호</label>
  342. <value>E</value>
  343. </item>
  344. <item>
  345. <label>처방</label>
  346. <value>F</value>
  347. </item>
  348. </choices>
  349. </select1>
  350. <input id="ipt_spclcd" ref="/root/main/item1/essc/spclcd" class="input_essential" navindex="2" imemode="disabled" maxlength="4" _chartype="upper" style="left:293px; top:28px; width:100px; height:19px; "/>
  351. <input id="ipt_fromdd" ref="/root/main/item1/essc/fromdd" class="input_essential" navindex="8" inputtype="date" style="left:745px; top:54px; width:100px; height:19px; "/>
  352. <caption id="caption1" class="cell_1" style="left:657px; top:52px; width:85px; height:23px; vertical-align:middle; ">시작일자</caption>
  353. <input id="ipt_todd" ref="/root/main/item1/essc/todd" class="input_essential" navindex="9" inputtype="date" style="left:934px; top:54px; width:100px; height:19px; "/>
  354. <select1 id="cmb_suppkindflag" ref="/root/main/item1/essc/suppkindflag" class="combo_essential" navindex="6" appearance="minimal" style="left:88px; top:54px; width:117px; height:19px; ">
  355. <choices>
  356. <item>
  357. <label>인공신장투석</label>
  358. <value>02</value>
  359. </item>
  360. <item>
  361. <label>복막관류술</label>
  362. <value>03</value>
  363. </item>
  364. <item>
  365. <label>장기이식</label>
  366. <value>04</value>
  367. </item>
  368. <item>
  369. <label>개심,개두 10%</label>
  370. <value>05</value>
  371. </item>
  372. <item>
  373. <label>등록암 10%</label>
  374. <value>06</value>
  375. </item>
  376. <item>
  377. <label>산정특례 20%</label>
  378. <value>07</value>
  379. </item>
  380. <item>
  381. <label>자연분만 0%</label>
  382. <value>09</value>
  383. </item>
  384. <item>
  385. <label>가정간호(등록암) 10%</label>
  386. <value>10</value>
  387. </item>
  388. </choices>
  389. </select1>
  390. <caption id="caption2" class="cell_1" style="left:394px; top:27px; width:85px; height:23px; vertical-align:middle; ">특례구분</caption>
  391. <select1 id="cmb_spclflag" ref="/root/main/item1/essc/spclflag" class="combo_essential" navindex="3" appearance="minimal" style="left:482px; top:28px; width:172px; height:19px; ">
  392. <choices>
  393. <item>
  394. <label>-</label>
  395. <value>-</value>
  396. </item>
  397. <item>
  398. <label>자연분만</label>
  399. <value>1</value>
  400. </item>
  401. <!--<item>
  402. <label>암환자</label>
  403. <value>2</value>
  404. </item>-->
  405. <item>
  406. <label>중증환자</label>
  407. <value>2</value>
  408. </item>
  409. <item>
  410. <label>산정특례</label>
  411. <value>3</value>
  412. </item>
  413. <!--<item>
  414. <label>의약분업예외</label>
  415. <value>5</value>
  416. </item>-->
  417. <item>
  418. <label>장기이식</label>
  419. <value>4</value>
  420. </item>
  421. <item>
  422. <label>가정간호</label>
  423. <value>5</value>
  424. </item>
  425. <item>
  426. <label>희귀난치</label>
  427. <value>6</value>
  428. </item>
  429. </choices>
  430. </select1>
  431. <input id="ipt_spclnm" ref="/root/main/item1/essc/spclnm" class="input_default" navindex="7" maxlength="100" appearance="input" style="left:293px; top:54px; width:360px; height:19px; "/>
  432. <caption id="caption9" class="cell_1" style="left:207px; top:52px; width:85px; height:23px; vertical-align:middle; ">특례명칭</caption>
  433. <caption id="caption10" class="cell_1" style="left:0px; top:52px; width:85px; height:23px; vertical-align:middle; ">보조유형구분</caption>
  434. <caption id="caption5" class="cell_1" style="left:847px; top:27px; width:85px; height:23px; vertical-align:middle; ">내외유형</caption>
  435. <caption id="caption7" class="cell_1" style="left:657px; top:27px; width:85px; height:23px; vertical-align:middle; ">보험유형</caption>
  436. <select1 id="cmb_insukind" ref="/root/main/item1/essc/insukind" class="combo_essential" navindex="4" appearance="minimal" style="left:745px; top:28px; width:100px; height:19px; ">
  437. <choices>
  438. <item>
  439. <label>전체</label>
  440. <value>-</value>
  441. </item>
  442. <item>
  443. <label>건강보험</label>
  444. <value>11</value>
  445. </item>
  446. <item>
  447. <label>의료급여1종</label>
  448. <value>21</value>
  449. </item>
  450. <item>
  451. <label>의료급여2종</label>
  452. <value>22</value>
  453. </item>
  454. <item>
  455. <label>자보</label>
  456. <value>31</value>
  457. </item>
  458. <item>
  459. <label>산재</label>
  460. <value>41</value>
  461. </item>
  462. <item>
  463. <label>공상</label>
  464. <value>42</value>
  465. </item>
  466. <item>
  467. <label>일반</label>
  468. <value>51</value>
  469. </item>
  470. <item>
  471. <label>외국인</label>
  472. <value>61</value>
  473. </item>
  474. <item>
  475. <label>임상시험</label>
  476. <value>71</value>
  477. </item>
  478. </choices>
  479. </select1>
  480. <select1 id="cmb_ioflag" ref="/root/main/item1/essc/ioflag" class="combo_essential" navindex="5" appearance="minimal" style="left:934px; top:28px; width:100px; height:19px; ">
  481. <choices>
  482. <item>
  483. <label>전체</label>
  484. <value>A</value>
  485. </item>
  486. <item>
  487. <label>입원</label>
  488. <value>I</value>
  489. </item>
  490. <item>
  491. <label>외래</label>
  492. <value>O</value>
  493. </item>
  494. </choices>
  495. </select1>
  496. <button id="button1" class="btn4_letter2" navindex="21" style="left:1002px; top:380px; width:56px; height:22px; ">
  497. <caption>등록</caption>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. // 0. 저장하시겠습니까?
  501. if (messageBox("중증질환 상병을 등록", "S001") != 6) return;
  502. // 1. 기준정보 입력 데이터 검사
  503. if (!fCheckVariable()) {
  504. return;
  505. }
  506. // 2. 저장한다.
  507. if (submit("TXPIB02201")) {
  508. messageBox("정상적으로 등록되었습니다.", "I999");
  509. }
  510. // 3. 화면 종료
  511. window.close();
  512. ]]>
  513. </script>
  514. </button>
  515. <line id="line1" class="line_1" style="x1:575px; y1:100px; x2:1193px; y2:100px; "/>
  516. <caption id="caption3" class="tit_2" style="left:580px; top:85px; width:214px; height:13px; ">중증질환 처방 기준정보 등록</caption>
  517. <datagrid id="grd_prcplist" nodeset="/root/main/list2/prcp" caption="EDI구분^시작EDI^시작EDI명^종료DEI^종료EDI명^특례명칭" colsep="^" colwidth="70, 100, 150, 100, 150" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:575px; top:105px; width:618px; height:270px; ">
  518. <col disabled="true" ref="edicdflag" type="combo" style="text-align:center; ">
  519. <choices>
  520. <item>
  521. <label>전체</label>
  522. <value>-</value>
  523. </item>
  524. <item>
  525. <label>수가</label>
  526. <value>1</value>
  527. </item>
  528. <item>
  529. <label>약가</label>
  530. <value>3</value>
  531. </item>
  532. <item>
  533. <label>치료재료</label>
  534. <value>8</value>
  535. </item>
  536. </choices>
  537. </col>
  538. <col disabled="true" ref="edicdfrom" type="input" _chartype="upper"/>
  539. <col disabled="true" ref="edinmfrom" visibility="visible"/>
  540. <col disabled="true" ref="edicdto" type="input" _chartype="upper"/>
  541. <col disabled="true" ref="edinmto" visibility="visible"/>
  542. <script type="javascript" ev:event="onaftersort">
  543. <![CDATA[
  544. // 소트 후, 그리드와 인스턴스 매핑 다시 처리
  545. grd_prcplist.gridToInstance();
  546. grd_prcplist.row = 1;
  547. ]]>
  548. </script>
  549. <script type="javascript" ev:event="onkeydown">
  550. <![CDATA[
  551. var row = grd_prcplist.row;
  552. var col = grd_prcplist.col;
  553. if (event.keyCode == 13){
  554. grd_prcplist.endEditCell();
  555. if (col == grd_prcplist.colRef("edicdfrom")) {
  556. // 3. 시작EDI 엔터
  557. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  558. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  559. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list2/prcp["+row+"]/edicdfrom"));
  560. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  561. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  562. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  563. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  564. if (mechSelect == null) { // 선택한 코드가 없는 경우
  565. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  566. return;
  567. }
  568. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  569. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  570. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  571. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  572. model.setValue("/root/main/list2/prcp["+row+"]/edicdfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  573. model.setValue("/root/main/list2/prcp["+row+"]/edinmfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  574. model.setValue("/root/main/list2/prcp["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  575. model.setValue("/root/main/list2/prcp["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  576. model.refresh();
  577. } else if (col == grd_prcplist.colRef("edicdto")) {
  578. // 4. 종료EDI 엔터
  579. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  580. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  581. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list2/prcp["+row+"]/edicdto"));
  582. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  583. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  584. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  585. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  586. if (mechSelect == null) { // 선택한 코드가 없는 경우
  587. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  588. return;
  589. }
  590. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  591. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  592. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  593. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  594. model.setValue("/root/main/list2/prcp["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  595. model.setValue("/root/main/list2/prcp["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  596. model.refresh();
  597. }
  598. }
  599. ]]>
  600. </script>
  601. </datagrid>
  602. <button id="btn_deldiag" class="btn2_letter2" navindex="20" style="left:528px; top:80px; width:42px; height:19px; ">
  603. <caption>삭제</caption>
  604. <script type="javascript" ev:event="DOMActivate">
  605. <![CDATA[
  606. grd_diaglist.deleteRow(grd_diaglist.row);
  607. ]]>
  608. </script>
  609. </button>
  610. <button id="btn_adddiag" class="btn2_letter2" navindex="20" style="left:485px; top:80px; width:42px; height:19px; ">
  611. <caption>추가</caption>
  612. <script type="javascript" ev:event="DOMActivate">
  613. <![CDATA[
  614. grd_diaglist.additem();
  615. model.setValue("/root/main/list1/diag["+grd_diaglist.row+"]/diagkind", "1");
  616. ]]>
  617. </script>
  618. </button>
  619. <button id="btn_addprcp" class="btn2_letter2" navindex="20" style="left:1106px; top:80px; width:42px; height:19px; ">
  620. <caption>추가</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. grd_prcplist.additem();
  624. model.setValue("/root/main/list2/prcp["+grd_prcplist.row+"]/edicdflag", "1");
  625. grd_prcplist.row = grd_prcplist.rows - 1;
  626. ]]>
  627. </script>
  628. </button>
  629. <button id="btn_delprcp" class="btn2_letter2" navindex="20" style="left:1149px; top:80px; width:42px; height:19px; ">
  630. <caption>삭제</caption>
  631. <script type="javascript" ev:event="DOMActivate">
  632. <![CDATA[
  633. // var rows = grd_prcplist.selectedRows;
  634. // for (var i = 0; i < rows; i++) {
  635. // var sel = grd_prcplist.selectedRow(i);
  636. // grd_prcplist.rowStatus(sel) = 4;
  637. // }
  638. grd_prcplist.deleteRow(grd_prcplist.row);
  639. ]]>
  640. </script>
  641. </button>
  642. <caption id="caption4" class="cell_1" style="left:1035px; top:52px; width:85px; height:23px; vertical-align:middle; ">최대나이</caption>
  643. <caption id="caption8" class="cell_1" style="left:1035px; top:27px; width:85px; height:23px; vertical-align:middle; ">최소나이</caption>
  644. <input id="ipt_minage" ref="/root/main/item1/essc/minage" class="input_default" navindex="2" imemode="disabled" maxlength="3" format="999" _chartype="upper" style="left:1122px; top:28px; width:67px; height:19px; "/>
  645. <input id="ipt_maxage" ref="/root/main/item1/essc/maxage" class="input_default" navindex="2" imemode="disabled" maxlength="3" format="999" _chartype="upper" style="left:1122px; top:54px; width:67px; height:19px; "/>
  646. </group>
  647. </group>
  648. </xhtml:body>
  649. </xhtml:html>