SPPIB02300_산정특례중증처방등록.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  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 fgetDiagList() {
  35. submit("TRPIB02301");
  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_prcplist.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. fgetDiagList();
  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="TRPIB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list1"/>
  182. <submission id="TXPIB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/temp"/>
  183. </model>
  184. </xhtml:head>
  185. <xhtml:body pagewidth="1220" pageheight="450" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  186. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  187. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:219px; height:14px; ">중증질환 처방 기준자료 등록</caption>
  188. </group>
  189. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:412px; ">
  190. <group id="group5" scroll="auto" style="left:0px; top:0px; width:1195px; height:410px; ">
  191. <line id="line17" class="line_2" style="x1:0px; y1:51px; x2:1194px; y2:51px; "/>
  192. <caption id="caption22" class="tit_2" style="left:5px; top:8px; width:126px; height:13px; ">중증질환 기준정보</caption>
  193. <line id="line19" class="line_1" style="x1:0px; y1:22px; x2:1194px; y2:22px; "/>
  194. <caption id="caption23" class="cell_1" style="left:0px; top:27px; width:85px; height:23px; vertical-align:middle; ">검색구분</caption>
  195. <caption id="caption34" class="cell_1" style="left:207px; top:27px; width:85px; height:23px; vertical-align:middle; ">특례기호</caption>
  196. <caption id="caption42" class="cell_1" style="left:847px; top:52px; width:85px; height:23px; vertical-align:middle; ">종료일자</caption>
  197. <caption id="caption48" class="tit_2" style="left:5px; top:85px; width:214px; height:14px; ">중증질환 처방 기준정보 등록</caption>
  198. <line id="line20" class="line_1" style="x1:0px; y1:100px; x2:618px; y2:100px; "/>
  199. <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:622px; top:105px; width:570px; height:270px; ">
  200. <col disabled="true" ref="diagkind" type="combo" style="text-align:center; ">
  201. <choices>
  202. <item>
  203. <label>ICD10</label>
  204. <value>1</value>
  205. </item>
  206. <item>
  207. <label>확장</label>
  208. <value>2</value>
  209. </item>
  210. </choices>
  211. </col>
  212. <col disabled="true" ref="diagcdfrom" type="input" _chartype="upper"/>
  213. <col disabled="true" ref="diagnmfrom" visibility="visible"/>
  214. <col disabled="true" ref="diagcdto" type="input" _chartype="upper"/>
  215. <col disabled="true" ref="diagnmto" visibility="visible"/>
  216. <script type="javascript" ev:event="onaftersort">
  217. <![CDATA[
  218. // 소트 후, 그리드와 인스턴스 매핑 다시 처리
  219. grd_diaglist.gridToInstance();
  220. ]]>
  221. </script>
  222. <script type="javascript" ev:event="onkeydown">
  223. <![CDATA[
  224. var row = grd_diaglist.row;
  225. var col = grd_diaglist.col;
  226. if (event.keyCode == 13){
  227. grd_diaglist.endEditCell();
  228. if (col == grd_diaglist.colRef("diagcdfrom")) {
  229. // 1. 시작상병 엔터
  230. model.setValue("/root/send/data2/srch",model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  231. model.setValue("/root/send/data2/diagkind",model.getValue("/root/main/list1/diag["+row+"]/diagkind"));
  232. submit("TRPIB00803");
  233. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  234. // 상병코드로 상병명 조회가 된 경우
  235. if(hngnm != ""){
  236. model.setValue("/root/main/list1/diag["+row+"]/diagnmfrom", hngnm);
  237. model.setValue("/root/main/list1/diag["+row+"]/diagcdto", model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  238. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", hngnm);
  239. }
  240. // 상병코드로 상병명 조회가 안된 경우
  241. if(hngnm == ""){
  242. model.setValue("/root/main/list1/diag["+row+"]/diagnmfrom", "");
  243. // 상병조회 팝업 호출
  244. var diagkind = model.getValue("/root/main/list1/diag["+row+"]/diagkind");
  245. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  246. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  247. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  248. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list1/diag["+row+"]/diagcdfrom"));
  249. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  250. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  251. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  252. // 조회결과 뿌려주기
  253. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  254. if (diagcd !="") {
  255. if (diagkind == "1") {
  256. model.setvalue("/root/main/list1/diag["+row+"]/diagcdfrom", diagcd);
  257. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", diagcd);
  258. } else {
  259. model.setvalue("/root/main/list1/diag["+row+"]/diagcdfrom", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  260. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  261. }
  262. model.setvalue("/root/main/list1/diag["+row+"]/diagnmfrom", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  263. model.setvalue("/root/main/list1/diag["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  264. model.refresh();
  265. }
  266. }
  267. } else if (col == grd_diaglist.colRef("diagcdto")) {
  268. // 2. 종료상병 엔터
  269. model.setValue("/root/send/data2/srch",model.getValue("/root/main/list1/diag["+row+"]/diagcdto"));
  270. model.setValue("/root/send/data2/diagkind",model.getValue("/root/main/list1/diag["+row+"]/diagkind"));
  271. submit("TRPIB00803");
  272. var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
  273. // 상병코드로 상병명 조회가 된 경우
  274. if(hngnm != ""){
  275. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", hngnm);
  276. }
  277. // 상병코드로 상병명 조회가 안된 경우
  278. if(hngnm == ""){
  279. model.setValue("/root/main/list1/diag["+row+"]/diagnmto", "");
  280. // 상병조회 팝업 호출
  281. var diagkind = model.getValue("/root/main/list1/diag["+row+"]/diagkind");
  282. model.setvalue("/root/hidden/sppiz00400/rslt/diagcd", "");
  283. model.setvalue("/root/hidden/sppiz00400/rslt/diaghngnm", "");
  284. model.setValue("/root/hidden/sppiz00400/cond/basedd", getCurrentDate());
  285. model.setValue("/root/hidden/sppiz00400/cond/diagcd", model.getValue("/root/main/list1/diag["+row+"]/diagcdto"));
  286. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", diagkind);
  287. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  288. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  289. // 조회결과 뿌려주기
  290. var diagcd = model.getvalue("/root/hidden/sppiz00400/rslt/diagcd");
  291. if (diagcd !="") {
  292. if (diagkind == "1") {
  293. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", diagcd);
  294. } else {
  295. model.setvalue("/root/main/list1/diag["+row+"]/diagcdto", model.getvalue("/root/hidden/sppiz00400/rslt/termcd"));
  296. }
  297. model.setvalue("/root/main/list1/diag["+row+"]/diagnmto", model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  298. model.refresh();
  299. }
  300. }
  301. }
  302. }
  303. ]]>
  304. </script>
  305. </datagrid>
  306. <line id="line24" class="line_3" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  307. <button id="btn_close" class="btn4_letter2" navindex="21" style="left:1060px; top:380px; width:56px; height:22px; ">
  308. <caption>취소</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. window.close();
  312. ]]>
  313. </script>
  314. </button>
  315. <button id="btn_init" class="btn4_letter3" navindex="23" style="left:1118px; top:380px; width:68px; height:22px; ">
  316. <caption>초기화</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. fInitialize();
  320. ]]>
  321. </script>
  322. </button>
  323. <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; ">
  324. <choices>
  325. <item>
  326. <label>상병</label>
  327. <value>A</value>
  328. </item>
  329. <item>
  330. <label>상병+처방</label>
  331. <value>B</value>
  332. </item>
  333. <item>
  334. <label>상병+중증번호</label>
  335. <value>C</value>
  336. </item>
  337. <item>
  338. <label>처방+중증번호</label>
  339. <value>D</value>
  340. </item>
  341. <item>
  342. <label>상병+처방+중증번호</label>
  343. <value>E</value>
  344. </item>
  345. <item>
  346. <label>처방</label>
  347. <value>F</value>
  348. </item>
  349. </choices>
  350. </select1>
  351. <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; "/>
  352. <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; "/>
  353. <caption id="caption1" class="cell_1" style="left:657px; top:52px; width:85px; height:23px; vertical-align:middle; ">시작일자</caption>
  354. <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; "/>
  355. <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; ">
  356. <choices>
  357. <item>
  358. <label>인공신장투석</label>
  359. <value>02</value>
  360. </item>
  361. <item>
  362. <label>복막관류술</label>
  363. <value>03</value>
  364. </item>
  365. <item>
  366. <label>장기이식</label>
  367. <value>04</value>
  368. </item>
  369. <item>
  370. <label>개심,개두 10%</label>
  371. <value>05</value>
  372. </item>
  373. <item>
  374. <label>등록암 10%</label>
  375. <value>06</value>
  376. </item>
  377. <item>
  378. <label>산정특례 20%</label>
  379. <value>07</value>
  380. </item>
  381. <item>
  382. <label>자연분만 0%</label>
  383. <value>09</value>
  384. </item>
  385. <item>
  386. <label>가정간호(등록암) 10%</label>
  387. <value>10</value>
  388. </item>
  389. </choices>
  390. </select1>
  391. <caption id="caption2" class="cell_1" style="left:394px; top:27px; width:85px; height:23px; vertical-align:middle; ">특례구분</caption>
  392. <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; ">
  393. <choices>
  394. <item>
  395. <label>-</label>
  396. <value>-</value>
  397. </item>
  398. <item>
  399. <label>자연분만</label>
  400. <value>1</value>
  401. </item>
  402. <!--<item>
  403. <label>암환자</label>
  404. <value>2</value>
  405. </item>-->
  406. <item>
  407. <label>중증환자</label>
  408. <value>2</value>
  409. </item>
  410. <item>
  411. <label>산정특례</label>
  412. <value>3</value>
  413. </item>
  414. <!--<item>
  415. <label>의약분업예외</label>
  416. <value>5</value>
  417. </item>-->
  418. <item>
  419. <label>장기이식</label>
  420. <value>4</value>
  421. </item>
  422. <item>
  423. <label>가정간호</label>
  424. <value>5</value>
  425. </item>
  426. <item>
  427. <label>희귀난치</label>
  428. <value>6</value>
  429. </item>
  430. </choices>
  431. </select1>
  432. <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; "/>
  433. <caption id="caption9" class="cell_1" style="left:207px; top:52px; width:85px; height:23px; vertical-align:middle; ">특례명칭</caption>
  434. <caption id="caption10" class="cell_1" style="left:0px; top:52px; width:85px; height:23px; vertical-align:middle; ">보조유형구분</caption>
  435. <caption id="caption5" class="cell_1" style="left:847px; top:27px; width:85px; height:23px; vertical-align:middle; ">내외유형</caption>
  436. <caption id="caption7" class="cell_1" style="left:657px; top:27px; width:85px; height:23px; vertical-align:middle; ">보험유형</caption>
  437. <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; ">
  438. <choices>
  439. <item>
  440. <label>전체</label>
  441. <value>-</value>
  442. </item>
  443. <item>
  444. <label>건강보험</label>
  445. <value>11</value>
  446. </item>
  447. <item>
  448. <label>의료급여1종</label>
  449. <value>21</value>
  450. </item>
  451. <item>
  452. <label>의료급여2종</label>
  453. <value>22</value>
  454. </item>
  455. <item>
  456. <label>자보</label>
  457. <value>31</value>
  458. </item>
  459. <item>
  460. <label>산재</label>
  461. <value>41</value>
  462. </item>
  463. <item>
  464. <label>공상</label>
  465. <value>42</value>
  466. </item>
  467. <item>
  468. <label>일반</label>
  469. <value>51</value>
  470. </item>
  471. <item>
  472. <label>외국인</label>
  473. <value>61</value>
  474. </item>
  475. <item>
  476. <label>임상시험</label>
  477. <value>71</value>
  478. </item>
  479. </choices>
  480. </select1>
  481. <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; ">
  482. <choices>
  483. <item>
  484. <label>전체</label>
  485. <value>A</value>
  486. </item>
  487. <item>
  488. <label>입원</label>
  489. <value>I</value>
  490. </item>
  491. <item>
  492. <label>외래</label>
  493. <value>O</value>
  494. </item>
  495. </choices>
  496. </select1>
  497. <button id="button1" class="btn4_letter2" navindex="21" style="left:1002px; top:380px; width:56px; height:22px; ">
  498. <caption>등록</caption>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. // 0. 저장하시겠습니까?
  502. if (messageBox("중증질환 처방을 등록", "S001") != 6) return;
  503. // 1. 기준정보 입력 데이터 검사
  504. if (!fCheckVariable()) {
  505. return;
  506. }
  507. // 2. 저장한다.
  508. if (submit("TXPIB02301")) {
  509. messageBox("정상적으로 등록되었습니다.", "I999");
  510. }
  511. // 3. 화면 종료
  512. window.close();
  513. ]]>
  514. </script>
  515. </button>
  516. <line id="line1" class="line_1" style="x1:622px; y1:100px; x2:1192px; y2:100px; "/>
  517. <caption id="caption3" class="tit_2" style="left:625px; top:85px; width:214px; height:14px; ">중증질환 상병 기준정보 등록</caption>
  518. <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:0px; top:105px; width:618px; height:270px; ">
  519. <col disabled="false" ref="edicdflag" type="combo" style="text-align:center; ">
  520. <choices>
  521. <item>
  522. <label>전체</label>
  523. <value>-</value>
  524. </item>
  525. <item>
  526. <label>수가</label>
  527. <value>1</value>
  528. </item>
  529. <item>
  530. <label>약가</label>
  531. <value>3</value>
  532. </item>
  533. <item>
  534. <label>치료재료</label>
  535. <value>8</value>
  536. </item>
  537. </choices>
  538. </col>
  539. <col disabled="false" ref="edicdfrom" type="input" _chartype="upper"/>
  540. <col disabled="true" ref="edinmfrom" visibility="visible"/>
  541. <col disabled="false" ref="edicdto" type="input" _chartype="upper"/>
  542. <col disabled="true" ref="edinmto" visibility="visible"/>
  543. <script type="javascript" ev:event="onaftersort">
  544. <![CDATA[
  545. // 소트 후, 그리드와 인스턴스 매핑 다시 처리
  546. grd_prcplist.gridToInstance();
  547. grd_prcplist.row = 1;
  548. ]]>
  549. </script>
  550. <script type="javascript" ev:event="onkeydown">
  551. <![CDATA[
  552. var row = grd_prcplist.row;
  553. var col = grd_prcplist.col;
  554. if (event.keyCode == 13){
  555. grd_prcplist.endEditCell();
  556. if (col == grd_prcplist.colRef("edicdfrom")) {
  557. // 3. 시작EDI 엔터
  558. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  559. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  560. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list2/prcp["+row+"]/edicdfrom"));
  561. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  562. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  563. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  564. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  565. if (mechSelect == null) { // 선택한 코드가 없는 경우
  566. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  567. return;
  568. }
  569. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  570. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  571. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  572. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  573. model.setValue("/root/main/list2/prcp["+row+"]/edicdfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  574. model.setValue("/root/main/list2/prcp["+row+"]/edinmfrom", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  575. model.setValue("/root/main/list2/prcp["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd"));
  576. model.setValue("/root/main/list2/prcp["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  577. model.refresh();
  578. } else if (col == grd_prcplist.colRef("edicdto")) {
  579. // 4. 종료EDI 엔터
  580. model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate());
  581. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  582. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/main/list2/prcp["+row+"]/edicdto"));
  583. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  584. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech"); // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로임
  585. modal("SMPIC00200", 1,150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  586. var mechSelect = instance1.selectSingleNode("/root/temp/picmmech");
  587. if (mechSelect == null) { // 선택한 코드가 없는 경우
  588. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  589. return;
  590. }
  591. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  592. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  593. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  594. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  595. model.setValue("/root/main/list2/prcp["+row+"]/edicdto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_insuedicd")); // 임시로 건강보험 유형으로 고정시킴
  596. model.setValue("/root/main/list2/prcp["+row+"]/edinmto", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_hngnm"));
  597. model.refresh();
  598. }
  599. }
  600. ]]>
  601. </script>
  602. </datagrid>
  603. <button id="btn_deldiag" class="btn2_letter2" navindex="20" style="left:1148px; top:80px; width:42px; height:19px; ">
  604. <caption>삭제</caption>
  605. <script type="javascript" ev:event="DOMActivate">
  606. <![CDATA[
  607. grd_diaglist.deleteRow(grd_diaglist.row);
  608. ]]>
  609. </script>
  610. </button>
  611. <button id="btn_adddiag" class="btn2_letter2" navindex="20" style="left:1105px; top:80px; width:42px; height:19px; ">
  612. <caption>추가</caption>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. grd_diaglist.additem();
  616. model.setValue("/root/main/list1/diag["+grd_diaglist.row+"]/diagkind", "1");
  617. grd_diaglist.row = grd_diaglist.rows - 1;
  618. ]]>
  619. </script>
  620. </button>
  621. <button id="btn_addprcp" class="btn2_letter2" navindex="20" style="left:533px; top:80px; width:42px; height:19px; ">
  622. <caption>추가</caption>
  623. <script type="javascript" ev:event="DOMActivate">
  624. <![CDATA[
  625. grd_prcplist.additem();
  626. model.setValue("/root/main/list2/prcp["+grd_prcplist.row+"]/edicdflag", "1");
  627. ]]>
  628. </script>
  629. </button>
  630. <button id="btn_delprcp" class="btn2_letter2" navindex="20" style="left:576px; top:80px; width:42px; height:19px; ">
  631. <caption>삭제</caption>
  632. <script type="javascript" ev:event="DOMActivate">
  633. <![CDATA[
  634. // var rows = grd_prcplist.selectedRows;
  635. // for (var i = 0; i < rows; i++) {
  636. // var sel = grd_prcplist.selectedRow(i);
  637. // grd_prcplist.rowStatus(sel) = 4;
  638. // }
  639. grd_prcplist.deleteRow(grd_prcplist.row);
  640. ]]>
  641. </script>
  642. </button>
  643. <caption id="caption4" class="cell_1" style="left:1035px; top:52px; width:85px; height:23px; vertical-align:middle; ">최대나이</caption>
  644. <caption id="caption8" class="cell_1" style="left:1035px; top:27px; width:85px; height:23px; vertical-align:middle; ">최소나이</caption>
  645. <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; "/>
  646. <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; "/>
  647. </group>
  648. </group>
  649. </xhtml:body>
  650. </xhtml:html>