SMPPI00700_환자별약제누적관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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. <xhtml:head>
  5. <xhtml:title>환자별약제누적관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <picmdrrulist/>
  11. <patinfo>
  12. <patinfolist/>
  13. </patinfo>
  14. <picmdrhiyear/>
  15. <prcplist/>
  16. <clamcutlist/>
  17. </main>
  18. <send>
  19. <data1>
  20. <pid/>
  21. <hngnm/>
  22. <aplydd/>
  23. <instcd/>
  24. </data1>
  25. <data2>
  26. <pid/>
  27. <instcd/>
  28. <prcpcd/>
  29. <rulecd/>
  30. <prcpdd/>
  31. <grupsnglflag/>
  32. </data2>
  33. <data3/>
  34. </send>
  35. <init>
  36. <M0011/>
  37. <C0048/>
  38. </init>
  39. <hidden/>
  40. <source>
  41. <srchcond/>
  42. <pid/>
  43. <hngnm/>
  44. <rrgstno1/>
  45. <rrgstno2/>
  46. <acptdd/>
  47. </source>
  48. <temp/>
  49. </root>
  50. </instance>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInitalize();
  54. ]]>
  55. </script>
  56. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  57. <submission id="TRPPI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/picmdrrulist"/>
  58. <submission id="TRPPI00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/main/picmdrhiyear"/>
  59. <submission id="TXPPI00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" replace="instance" resultref="/root/temp"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  68. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  69. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  70. <script type="javascript">
  71. <![CDATA[
  72. function fInitalize() {
  73. model.removeNodeset("/root/main/picmdrrulist");
  74. model.removeNodeset("/root/main/picmdrhiyear");
  75. model.removeNodeset("/root/main/prcplist");
  76. model.removeNodeset("/root/main/clamcutlist");
  77. // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
  78. pamGetDeptCDDrIDList();
  79. zbcfGetCodeList(new Array("M0011","C0048") , new Array("/root/init/M0011","/root/init/C0048"));
  80. ipt_aplydd.value = getCurrentDate();
  81. grd_picmdrhiyear.subtotalposition = "below";
  82. //model.setValue("/root/send/data1/instcd", getUserInfo("dutplceinstcd"))
  83. model.setValue("/root/send/data1/instcd", getUserInfo("dutplceinstcd"))
  84. if (getUserInfo("dutplceinstcd") == "031" || getUserInfo("dutplceinstcd") == "032"){
  85. combo1.disabled = false;
  86. } else {
  87. combo1.disabled = true;
  88. }
  89. if (checkOpener()) {
  90. btn_init.visible = true;
  91. var vpid = opener.javascript.getParameter("pid");
  92. var vhngnm = opener.javascript.getParameter("hngnm");
  93. var vprcpdd = opener.javascript.getParameter("prcpdd");
  94. var vprcpcd = opener.javascript.getParameter("prcpcd");
  95. if(vpid != null) {
  96. model.setValue("/root/send/data1/pid", vpid);
  97. model.setValue("/root/send/data1/hngnm", vhngnm);
  98. model.setValue("/root/send/data1/aplydd", vprcpdd);
  99. submit("TRPPI00401");
  100. for(var i = 0 ; i < grd_picmdrrulist.rows ; i++) {
  101. if(grd_picmdrrulist.valueMatrix(i, grd_picmdrrulist.colRef("prcpcd")) == vprcpcd) {
  102. model.setFocus("grd_picmdrrulist");
  103. grd_picmdrrulist.select(i, 1, i, 11) = true;
  104. grd_picmdrrulist.topRow = i;
  105. model.setValue("/root/send/data2/pid", grd_picmdrrulist.valueMatrix(i, grd_picmdrrulist.colRef("pid")));
  106. model.setValue("/root/send/data2/instcd", grd_picmdrrulist.valueMatrix(i, grd_picmdrrulist.colRef("instcd")));
  107. model.setValue("/root/send/data2/prcpcd", grd_picmdrrulist.valueMatrix(i, grd_picmdrrulist.colRef("prcpcd")));
  108. model.setValue("/root/send/data2/rulecd", grd_picmdrrulist.valueMatrix(i, grd_picmdrrulist.colRef("rulecd")));
  109. model.setValue("/root/send/data2/prcpdd", model.getValue("/root/send/data1/aplydd"));
  110. }
  111. }
  112. //grd_picmdrrulist.select(1, 1, 1, 11) = true;
  113. model.removeNodeset("/root/main/prcplist");
  114. model.refresh();
  115. submit("TRPPI00701");
  116. //grd_picmdrhiyear.subtotal("sum", grd_picmdrhiyear.colRef("prcpyear"), grd_picmdrhiyear.colRef("dayno"), "#,###", "", 2, "소 계");
  117. grd_picmdrhiyear.subtotal("sum", -1, grd_picmdrhiyear.colRef("dayno"), "#,###", "", 1, "총 계");
  118. model.resetInstanceNode("/root/send/data2");
  119. model.refresh();
  120. }
  121. }
  122. }
  123. function fGridfindrow() {
  124. var vprcpcd = opener.javascript.getParameter("prcpcd");
  125. var srow = grd_picmdrrulist.row;
  126. if ( srow > 0 ) {
  127. grd_picmdrrulist.isSelected(srow) = false;
  128. }
  129. var frow = grd_picmdrrulist.findRow(vprcpcd, 1, grd_picmdrrulist.colRef("prcpcd"), false, false);
  130. grd_picmdrrulist.isSelected(frow) = true;
  131. grd_picmdrrulist.toprow = frow;
  132. model.setValue("/root/send/data2/pid", grd_picmdrrulist.valueMatrix(frow, grd_picmdrrulist.colRef("pid")));
  133. model.setValue("/root/send/data2/instcd", grd_picmdrrulist.valueMatrix(frow, grd_picmdrrulist.colRef("instcd")));
  134. model.setValue("/root/send/data2/prcpcd", grd_picmdrrulist.valueMatrix(frow, grd_picmdrrulist.colRef("prcpcd")));
  135. model.setValue("/root/send/data2/rulecd", grd_picmdrrulist.valueMatrix(frow, grd_picmdrrulist.colRef("rulecd")));
  136. model.setValue("/root/send/data2/prcpdd", model.getValue("/root/send/data1/aplydd"));
  137. model.removeNodeset("/root/main/prcplist");
  138. model.refresh();
  139. submit("TRPPI00701");
  140. // grd_picmdrhiyear.subtotal("sum", grd_picmdrhiyear.colRef("prcpyear"), grd_picmdrhiyear.colRef("dayno"), "#,###", "", 2, "소 계");
  141. grd_picmdrhiyear.subtotal("sum", -1, grd_picmdrhiyear.colRef("dayno"), "#,###", "", 1, "총 계");
  142. model.resetInstanceNode("/root/send/data2");
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body guideline="1,1213;2,783;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  148. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  149. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">환자별약제누적관리</caption>
  150. </group>
  151. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
  152. <group id="group2" style="left:0px; top:10px; width:1211px; height:40px; vertical-align:top; ">
  153. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:40px; "/>
  154. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:10px; width:56px; height:22px; ">
  155. <caption>조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. if(model.getValue("/root/send/data1/pid") == "") {
  159. alert("환자번호는 필수입니다.");
  160. return;
  161. }
  162. submit("TRPPI00401");
  163. model.setValue("/root/send/data1/hngnm", model.getValue("/root/main/picmdrrulist[1]/hngnm"));
  164. ipt_hngnm.refresh();
  165. ]]>
  166. </script>
  167. </button>
  168. <line id="line13" class="line_4" style="x1:1107px; y1:10px; x2:1107px; y2:37px; "/>
  169. <caption id="caption5" class="search_name" style="left:20px; top:10px; width:117px; height:17px; ">환 자 :</caption>
  170. <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" style="left:120px; top:10px; width:100px; height:19px; ">
  171. <script type="javascript" ev:event="onkeyup">
  172. <![CDATA[
  173. setInputNodeCurText();
  174. if (event.keyCode == '13') {
  175. btn_search.dispatch("DOMActivate");
  176. }
  177. ]]>
  178. </script>
  179. </input>
  180. <button id="button1" class="icon_search" navindex="5" style="left:224px; top:10px; width:16px; height:16px; ">
  181. <caption/>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. var srch_pid = model.getValue("/root/send/data1/pid");
  185. if(srch_pid) {
  186. model.setValue("/root/source/pid", srch_pid);
  187. model.setValue("/root/source/srchcond", "1");
  188. } else {
  189. model.resetInstanceNode("/root/source");
  190. }
  191. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send", "", "");
  192. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  193. var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  194. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  195. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  196. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  197. model.setValue("/root/send/data1/pid", srch_pid);
  198. model.setValue("/root/send/data1/hngnm", srch_hngnm);
  199. }
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </button>
  204. <input id="ipt_hngnm" ref="/root/send/data1/hngnm" class="input_search" editable="false" style="left:246px; top:10px; width:169px; height:19px; "/>
  205. <input id="ipt_aplydd" ref="/root/send/data1/aplydd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:697px; top:12px; width:99px; height:19px; ">
  206. <script type="javascript" ev:event="onkeyup">
  207. <![CDATA[
  208. if (event.keyCode == '13') {
  209. inputEnterKey("btn_search", "DOMActivate");
  210. }
  211. ]]>
  212. </script>
  213. </input>
  214. <caption id="caption4" class="search_name" style="left:599px; top:10px; width:88px; height:17px; ">적 용 일 :</caption>
  215. <select1 id="combo1" ref="/root/send/data1/instcd" disabled="true" appearance="minimal" style="left:950px; top:10px; width:145px; height:19px; ">
  216. <choices>
  217. <item>
  218. <label>경북대학교병원</label>
  219. <value>031</value>
  220. </item>
  221. <item>
  222. <label>칠곡경북대학교병원</label>
  223. <value>032</value>
  224. </item>
  225. </choices>
  226. </select1>
  227. <caption id="caption8" class="search_name" style="left:880px; top:10px; width:88px; height:17px; ">기관 :</caption>
  228. </group>
  229. <caption id="caption1" class="tit_2" style="left:5px; top:58px; width:95px; height:13px; ">처방 List</caption>
  230. <line id="line1" class="line_1" style="x1:0px; y1:74px; x2:1204px; y2:73px; "/>
  231. <button id="button5" class="btn2_letter4" visibility="hidden" style="left:972px; top:52px; width:64px; height:19px; ">
  232. <caption>엑셀저장</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  236. if (fileName != "")
  237. {
  238. grd_bfjudgprcplist.saveExcel(fileName, "사전심사처방", true, true, "", "", true);
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. <datagrid id="grd_picmdrhiyear" nodeset="/root/main/picmdrhiyear" autoresize="true" caption="투여연도^급여구분^일수^비고^환자번호^기관코드^수가코드" colsep="^" colwidth="200, 100, 100, 550, 100, 50, 50" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:385px; width:1205px; height:115px; ">
  244. <col ref="prcpyear" type="output" style="text-align:center; "/>
  245. <col disabled="true" ref="payflagcd" type="combo" style="text-align:center; ">
  246. <choices>
  247. <item>
  248. <label>급여</label>
  249. <value>0</value>
  250. </item>
  251. <item>
  252. <label>본인부담</label>
  253. <value>1</value>
  254. </item>
  255. <item>
  256. <label>비급여</label>
  257. <value>2</value>
  258. </item>
  259. </choices>
  260. </col>
  261. <col ref="dayno" type="output" style="text-align:right; padding-right:5; "/>
  262. <col ref="remark" type="input" style="padding-left:5; "/>
  263. <col ref="pid" type="output" visibility="hidden"/>
  264. <col ref="instcd" type="output" visibility="hidden"/>
  265. <col ref="prcpcd" type="output" visibility="hidden"/>
  266. </datagrid>
  267. <caption id="caption2" class="tit_2" style="left:5px; top:366px; width:157px; height:13px; ">년도별내역</caption>
  268. <line id="line2" class="line_1" style="x1:0px; y1:382px; x2:1204px; y2:381px; "/>
  269. <line id="line3" class="line_1" style="x1:0px; y1:533px; x2:1204px; y2:532px; "/>
  270. <button id="btn_rowadd" class="btn2_letter2" style="left:1161px; top:360px; width:42px; height:19px; ">
  271. <caption>저장</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. // if ( messageBox("","Q002")==6 ) {
  275. var update = getGridUpdateData(grd_picmdrhiyear);
  276. if(update == ""){
  277. messageBox("업데이트 정보가 없습니다.", "I");
  278. return 0;
  279. } else {
  280. model.setValue("/root/send/data3", update);
  281. submit("TXPPI00701");
  282. }
  283. // }
  284. var rowcnt = grd_picmdrhiyear.rows;
  285. for(var i = 1 ; i < rowcnt ; i++) {
  286. grd_picmdrhiyear.rowStatus(i) = 0;
  287. }
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="btn_rsltsrch" class="btn2_letter4" visibility="hidden" style="left:1040px; top:52px; width:64px; height:19px; ">
  292. <caption>결과조회</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. /*
  296. if (group9.visible == true) {
  297. group9.visible = false;
  298. }
  299. // /root/main/item1/iteminfo/pid
  300. var patnm = model.getValue("/root/main/item1/iteminfo/patnm");
  301. if (patnm != "") {
  302. model.makevalue("/root/hidden/smaer00800/cond/srchdate1", model.getValue("/root/main/item1/iteminfo/indd1"));
  303. model.makevalue("/root/hidden/smaer00800/cond/srchdate2", getCurrentDate());
  304. model.makevalue("/root/hidden/smaer00800/cond/srchpid", model.getValue("/root/main/item1/iteminfo/pid"));
  305. model.makevalue("/root/hidden/smaer00800/cond/wardcd", "");
  306. model.makevalue("/root/hidden/smaer00800/cond/roomcd", "");
  307. model.makevalue("/root/hidden/smaer00800/cond/listflag", "P");
  308. model.makevalue("/root/hidden/smaer00800/cond/deptcd", "");
  309. model.makevalue("/root/hidden/smaer00800/cond/drid", "");
  310. model.makevalue("/root/hidden/smaer00800/cond/chkcheck", "");
  311. model.makevalue("/root/hidden/smaer00800/cond/chkcheck1", "A");
  312. model.makevalue("/root/hidden/smaer00800/cond/chkcheck2", "B");
  313. model.makevalue("/root/hidden/smaer00800/cond/chkcheck3", "C");
  314. model.makevalue("/root/hidden/smaer00800/cond/chkcheck4", "D");
  315. model.makevalue("/root/hidden/smaer00800/cond/chkcheck5", "E");
  316. model.makevalue("/root/hidden/smaer00800/cond/chkcheck6", "F");
  317. model.makevalue("/root/hidden/smaer00800/cond/chkcheck7", "G");
  318. model.makevalue("/root/hidden/smaer00800/cond/chkcheck8", "");
  319. model.makevalue("/root/hidden/smaer00800/cond/tabflag", "");
  320. model.makevalue("/root/hidden/smaer00800/cond/mdlcd", "");
  321. model.makevalue("/root/hidden/smaer00800/cond/examgubun", "");
  322. model.makevalue("/root/hidden/smaer00800/cond/srchflag", "B");
  323. model.makevalue("/root/hidden/smaer00800/cond/hlaflag", "N");
  324. model.makevalue("/root/hidden/smaer00800/cond/prntfrmflag", "");
  325. }
  326. */
  327. open("SMAER00800" ,"", "10", "10", "SMAER00800", "/root/send/data1/pid", "/root/send/data/singdata/srchpid", "", "");
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="button2" class="icon_top_direction" style="left:1145px; top:52px; width:26px; height:19px; ">
  332. <caption/>
  333. <script type="javascript" ev:event="onclick">
  334. <![CDATA[
  335. grd_picmdrrulist.attribute("height") = "163";
  336. ]]>
  337. </script>
  338. </button>
  339. <button id="button3" class="icon_bottom_direction" style="left:1175px; top:52px; width:26px; height:19px; ">
  340. <caption/>
  341. <script type="javascript" ev:event="onclick">
  342. <![CDATA[
  343. grd_picmdrrulist.attribute("height") = "420";
  344. ]]>
  345. </script>
  346. </button>
  347. <caption id="caption7" class="tit_2" style="left:5px; top:250px; width:75px; height:13px; ">삭감내역</caption>
  348. <line id="line4" class="line_1" style="x1:0px; y1:265px; x2:1205px; y2:265px; "/>
  349. <datagrid id="grd_clamcutlist" nodeset="/root/main/clamcutlist" caption="내원유형^청구과^진료의^주상병^처방코드^EDI코드^한글명^단가^유형시작일^삭감투여량^삭감횟수^삭감일수^총투삭감량^조정금액^이의신청금액^실삭감금액^원외^심사자^접수번호^명일련^줄번호" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:270px; width:1205px; height:85px; ">
  350. <col ref="ioflag"/>
  351. <col ref="clamdeptcd"/>
  352. <col ref="orddrnm"/>
  353. <col ref="diagcd"/>
  354. <col ref="prcpcd"/>
  355. <col ref="edicd"/>
  356. <col ref="calchngnm"/>
  357. <col ref="unitcost"/>
  358. <col ref="ordfromdd"/>
  359. <col ref="cutdrugqty"/>
  360. <col ref="cuttims"/>
  361. <col ref="cutdayno"/>
  362. <col ref="totcutqty"/>
  363. <col ref="adjtamt"/>
  364. <col ref="obtappamt"/>
  365. <col ref="orgreduamt"/>
  366. <col ref="oprcp"/>
  367. <col ref="judgrnm"/>
  368. <col ref="acptno"/>
  369. <col ref="docuseqno"/>
  370. <col ref="edilnno"/>
  371. </datagrid>
  372. <datagrid id="grd_picmdrrulist" nodeset="/root/main/picmdrrulist" class="datagrid2" caption="수가코드^처방상태^구분^진료과^개시일자^타병원&#xA;일수^삭감&#xA;건수^비고^환자번호^환자명^기관코드^제어코드^종료일자" colsep="^" colwidth="100, 78, 270, 160, 75, 50, 39, 420, 69, 50, 60, 60, 100, 100" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1205px; height:163px; ">
  373. <col ref="prcpcd" type="output" visibility="visible"/>
  374. <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; ">
  375. <choices>
  376. <itemset nodeset="/root/init/M0011/M0011">
  377. <label ref="cdnm"/>
  378. <value ref="cdid"/>
  379. </itemset>
  380. </choices>
  381. </col>
  382. <col ref="prcpnm" type="output" style="text-align:center; "/>
  383. <col disabled="true" itemcount="20" ref="orddeptcd" type="combo" visibility="hidden" style="text-align:center; ">
  384. <choices>
  385. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  386. <label ref="nm"/>
  387. <value ref="cd"/>
  388. </itemset>
  389. </choices>
  390. </col>
  391. <col ref="startdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  392. <col ref="thospdayno" type="output" visibility="visible" style="text-align:center; padding-right:5; "/>
  393. <col ref="cnt" type="output" style="text-align:right; "/>
  394. <col ref="remark" type="output" style="padding-left:5; "/>
  395. <col ref="pid" type="output" visibility="hidden"/>
  396. <col ref="hngnm" type="output" visibility="hidden"/>
  397. <col ref="instcd" type="output" visibility="hidden"/>
  398. <col ref="rulecd" type="output" visibility="hidden"/>
  399. <col ref="todd" type="output" visibility="hidden"/>
  400. <col ref="grupsnglflag" type="output" visibility="hidden"/>
  401. <script type="javascript" ev:event="onclick">
  402. <![CDATA[
  403. if(grd_picmdrrulist.isCell(event.target) && grd_picmdrrulist.mouseRow >= grd_picmdrrulist.fixedrows) {
  404. var rowno = grd_picmdrrulist.row;
  405. model.setValue("/root/send/data2/pid", grd_picmdrrulist.valueMatrix(rowno, grd_picmdrrulist.colRef("pid")));
  406. model.setValue("/root/send/data2/instcd", grd_picmdrrulist.valueMatrix(rowno, grd_picmdrrulist.colRef("instcd")));
  407. model.setValue("/root/send/data2/prcpcd", grd_picmdrrulist.valueMatrix(rowno, grd_picmdrrulist.colRef("prcpcd")));
  408. model.setValue("/root/send/data2/rulecd", grd_picmdrrulist.valueMatrix(rowno, grd_picmdrrulist.colRef("rulecd")));
  409. model.setValue("/root/send/data2/grupsnglflag", grd_picmdrrulist.valueMatrix(rowno, grd_picmdrrulist.colRef("grupsnglflag")));
  410. model.setValue("/root/send/data2/prcpdd", model.getValue("/root/send/data1/aplydd"));
  411. model.removeNodeset("/root/main/prcplist");
  412. model.removeNodeset("/root/main/clamcutlist");
  413. model.refresh();
  414. submit("TRPPI00701");
  415. // grd_picmdrhiyear.subtotal("sum", grd_picmdrhiyear.colRef("prcpyear"), grd_picmdrhiyear.colRef("dayno"), "#,###", "", 2, "소 계");
  416. grd_picmdrhiyear.subtotal("sum", -1, grd_picmdrhiyear.colRef("dayno"), "#,###", "", 1, "총 계");
  417. model.resetInstanceNode("/root/send/data2");
  418. }
  419. ]]>
  420. </script>
  421. </datagrid>
  422. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist" class="datagrid2" caption="기관코드^진료과^처방일자^실시일자^내원&#xA;구분^보험유형^보조유형^수술구분^일수^급여구분^1회용량^1회&#xA;수량^1일&#xA;횟수^처방상태^처방^처방코드" colsep="^" colwidth="0, 160, 80, 80, 36, 80, 70, 80, 36, 60, 80, 40, 40, 82, 241, 100" dataheight="23" defaultrows="0" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:535px; width:1205px; height:195px; ">
  423. <col ref="instcd" type="output"/>
  424. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  425. <choices>
  426. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  427. <label ref="nm"/>
  428. <value ref="cd"/>
  429. </itemset>
  430. </choices>
  431. </col>
  432. <col ref="prcpdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  433. <col ref="execdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  434. <col ref="ioflag" type="combo" style="text-align:center; ">
  435. <choices>
  436. <item>
  437. <label>외래</label>
  438. <value>O</value>
  439. </item>
  440. <item>
  441. <label>입원</label>
  442. <value>I</value>
  443. </item>
  444. </choices>
  445. </col>
  446. <col ref="insukind" type="output" style="text-align:center; "/>
  447. <col ref="suppkind" type="output" style="text-align:center; "/>
  448. <col ref="opansflagcd" type="output" style="text-align:center; "/>
  449. <col ref="prcpdayno" type="output" style="text-align:right; padding-right:5; "/>
  450. <col disabled="true" ref="payflagcd" type="combo" style="text-align:center; ">
  451. <choices>
  452. <item>
  453. <label>급여</label>
  454. <value>0</value>
  455. </item>
  456. <item>
  457. <label>본인부담</label>
  458. <value>1</value>
  459. </item>
  460. <item>
  461. <label>비급여</label>
  462. <value>2</value>
  463. </item>
  464. </choices>
  465. </col>
  466. <col ref="prcponevol" type="output" style="text-align:right; padding-right:5; "/>
  467. <col ref="prcponeqty" type="output" style="text-align:right; padding-right:5; "/>
  468. <col ref="prcptims" type="output" style="text-align:right; padding-right:5; "/>
  469. <col disabled="true" ref="prcpstatcd" type="combo" style="text-align:center; padding-left:5; ">
  470. <choices>
  471. <itemset nodeset="/root/init/M0011/M0011">
  472. <label ref="cdnm"/>
  473. <value ref="cdid"/>
  474. </itemset>
  475. </choices>
  476. </col>
  477. <col ref="prcpnm" type="output" style="text-align:left; padding-left:5; "/>
  478. <col ref="prcpcd" type="output" style="text-align:left; padding-left:5; "/>
  479. </datagrid>
  480. <button id="button4" class="icon_top_direction" style="left:1145px; top:509px; width:26px; height:19px; ">
  481. <caption/>
  482. <script type="javascript" ev:event="onclick">
  483. <![CDATA[
  484. grd_prcplist.attribute("height") = "345";
  485. grd_prcplist.attribute("top") = "385";
  486. caption2.visible = false;
  487. btn_rowadd.visible = false;
  488. line2.visible = false;
  489. caption3.attribute("top") = "365";
  490. line3.attribute("y1") = "382";
  491. line3.attribute("y2") = "382";
  492. button4.attribute("top") = "360";
  493. button6.attribute("top") = "360";
  494. ]]>
  495. </script>
  496. </button>
  497. <button id="button6" class="icon_bottom_direction" style="left:1175px; top:509px; width:26px; height:19px; ">
  498. <caption/>
  499. <script type="javascript" ev:event="onclick">
  500. <![CDATA[
  501. grd_prcplist.attribute("height") = "195";
  502. grd_prcplist.attribute("top") = "535";
  503. caption2.visible = true;
  504. btn_rowadd.visible = true;
  505. line2.visible = true;
  506. caption3.attribute("top") = "515";
  507. line3.attribute("y1") = "533";
  508. line3.attribute("y2") = "533";
  509. button4.attribute("top") = "509";
  510. button6.attribute("top") = "509";
  511. ]]>
  512. </script>
  513. </button>
  514. <caption id="caption3" class="tit_2" style="left:5px; top:515px; width:157px; height:14px; ">처방내역</caption>
  515. <button id="button7" class="icon_bottom_direction" style="left:1176px; top:244px; width:26px; height:19px; ">
  516. <caption/>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. grd_clamcutlist.attribute("height") = "230";
  520. grd_picmdrhiyear.visible = false;
  521. caption2.visible = false;
  522. btn_rowadd.visible = false;
  523. line2.visible = false;
  524. ]]>
  525. </script>
  526. </button>
  527. <button id="button8" class="icon_top_direction" style="left:1146px; top:244px; width:26px; height:19px; ">
  528. <caption/>
  529. <script type="javascript" ev:event="DOMActivate">
  530. <![CDATA[
  531. grd_clamcutlist.attribute("height") = "85";
  532. grd_picmdrhiyear.visible = true;
  533. caption2.visible = true;
  534. btn_rowadd.visible = true;
  535. line2.visible = true;
  536. ]]>
  537. </script>
  538. </button>
  539. </group>
  540. <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
  541. <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
  542. <button id="btn_init" class="btn4_letter3" visibility="hidden" style="left:1136px; top:10px; width:68px; height:22px; ">
  543. <caption>닫 기</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. window.close();
  547. ]]>
  548. </script>
  549. </button>
  550. </group>
  551. </xhtml:body>
  552. </xhtml:html>