SMPIJ01200_미시행처방및반납처방조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. <send>
  10. <fromdd/>
  11. <todd/>
  12. <wardcd/>
  13. <pid/>
  14. <patnm/>
  15. <indd/>
  16. <chkflag/>
  17. </send>
  18. <main>
  19. <list01>
  20. <ordlist>
  21. <actorddd/>
  22. <pid/>
  23. <hngnm/>
  24. <prcpflag/>
  25. <execprcphistcd/>
  26. <prcpdd/>
  27. <roomcd/>
  28. <prcpexecdeptcd/>
  29. <orddrid/>
  30. <prcpno/>
  31. <prcphistno/>
  32. <prcpcd/>
  33. <actcretno/>
  34. <prcpnm/>
  35. <calcflag/>
  36. <execprcpqty/>
  37. <execprcptims/>
  38. <execprcpdayno/>
  39. <resncd/>
  40. <rem/>
  41. <rgstdeptcd/>
  42. <rgstrid/>
  43. <carecnfmdd/>
  44. <carecnfmrid/>
  45. <judgid/>
  46. </ordlist>
  47. </list01>
  48. <patinfo>
  49. <patinfolist/>
  50. </patinfo>
  51. </main>
  52. <hidden>
  53. <sppmc02500>
  54. <cond>
  55. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  56. <srchcond/>
  57. <pid/>
  58. <hngnm/>
  59. <rrgstno1/>
  60. <rrgstno2/>
  61. </cond>
  62. </sppmc02500>
  63. </hidden>
  64. <init>
  65. <P0160list>
  66. <P0160/>
  67. </P0160list>
  68. <U0001list>
  69. <U0001/>
  70. </U0001list>
  71. </init>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. zbcfGetCodeList(new Array("P0160" ), new Array("/root/init/P0160list") );
  77. submit("TRPIJ01201");
  78. init();
  79. ]]>
  80. </script>
  81. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  82. <submission id="TRPIJ01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/U0001list"/>
  83. <submission id="TRPIJ01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  84. <script type="javascript">
  85. <![CDATA[
  86. function init() {
  87. // 팝업일 경우 자동 조회
  88. if(window.parent != null) {
  89. // if(model.getValue("/root/send/wardcd") != "" || model.getValue("/root/send/pid") != "" ||
  90. // model.getValue("/root/send/indd") != "" || model.getValue("/root/send/chkflag") != "") {
  91. if(model.getValue("/root/send/wardcd") != "" || model.getValue("/root/send/pid") != "" || model.getValue("/root/send/indd") != "") {
  92. search();
  93. }
  94. }
  95. }
  96. // 조회 실행시 검색조건 검사
  97. function search() {
  98. if(cmb_chkflag.value=='4') {
  99. if(ipt_fromdd.value == "") {
  100. messageBox("의뢰일자 시작일을","C001");
  101. model.setFocus("ipt_fromdd");
  102. return false;
  103. }
  104. if(ipt_todd.value == "") {
  105. messageBox("의뢰일자 종료일을","C001");
  106. model.setFocus("ipt_todd");
  107. return false;
  108. }
  109. }
  110. model.removenode("/root/main/list01");
  111. submit("TRPIJ01202");
  112. }
  113. ]]>
  114. </script>
  115. </model>
  116. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  121. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  122. </xhtml:head>
  123. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  124. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  125. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:191px; height:13px; ">미시행 처방 및 반납처방 조회</caption>
  126. </group>
  127. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  128. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
  129. <shape id="roundrect1" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  130. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="onclick">
  133. <![CDATA[
  134. if ((model.getValue("/root/send/fromdd") && model.getValue("/root/send/todd")) ||
  135. (model.getValue("/root/send/wardcd") != "" || model.getValue("/root/send/pid") != "" || model.getValue("/root/send/indd") != "")) {
  136. search();
  137. } else {
  138. messageBox("의뢰일자(시작일자~종료일자) 또는 그외의 조건을","C001");
  139. }
  140. ]]>
  141. </script>
  142. </button>
  143. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  144. <caption id="caption3" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">의뢰일자 :</caption>
  145. <caption id="caption2" class="search_name" style="left:744px; top:9px; width:73px; height:17px; ">입원일 :</caption>
  146. <caption id="caption4" style="left:190px; top:8px; width:12px; height:17px; ">~</caption>
  147. <caption id="caption7" class="search_name" style="left:302px; top:9px; width:60px; height:17px; ">병동 :</caption>
  148. <caption id="caption5" class="search_name" style="left:495px; top:9px; width:86px; height:17px; ">환자번호 :</caption>
  149. <caption id="caption8" class="search_name" style="left:920px; top:9px; width:60px; height:17px; ">확인 :</caption>
  150. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:102px; top:8px; width:85px; height:19px; "/>
  151. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:205px; top:8px; width:85px; height:19px; "/>
  152. <select1 id="cmb_wardcd" ref="/root/send/wardcd" class="combo_search" appearance="minimal" style="left:365px; top:8px; width:115px; height:19px; ">
  153. <choices>
  154. <itemset nodeset="/root/init/U0001list/U0001">
  155. <label ref="cdnm"/>
  156. <value ref="cdid"/>
  157. </itemset>
  158. </choices>
  159. </select1>
  160. <input id="ipt_pid" ref="/root/send/pid" class="input_search" inputtype="button" appearance="input" style="left:584px; top:8px; width:85px; height:19px; ">
  161. <script type="javascript" ev:event="onbuttonclick">
  162. <![CDATA[
  163. if (ipt_pid.value) {
  164. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  165. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
  166. } else {
  167. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  168. }
  169. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  170. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  171. ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
  172. opt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  173. model.refresh();
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="onkeypress">
  177. <![CDATA[
  178. if (event.keyCode == '13') { // Enter 입력 시에
  179. if (ipt_pid.value) {
  180. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  181. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
  182. } else {
  183. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  184. }
  185. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  186. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  187. ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
  188. opt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  189. model.refresh();
  190. }
  191. ]]>
  192. </script>
  193. </input>
  194. <output id="opt_patnm" ref="/root/send/patnm" class="output_fix" style="left:673px; top:8px; width:57px; height:19px; "/>
  195. <select1 id="cmb_chkflag" ref="/root/send/chkflag" class="combo_search" appearance="minimal" style="left:983px; top:8px; width:102px; height:19px; ">
  196. <choices>
  197. <item>
  198. <label>미시행 + 반납</label>
  199. <value>1</value>
  200. </item>
  201. <item>
  202. <label>미시행</label>
  203. <value>2</value>
  204. </item>
  205. <item>
  206. <label>반납</label>
  207. <value>3</value>
  208. </item>
  209. <item>
  210. <label>시행</label>
  211. <value>4</value>
  212. </item>
  213. <item>
  214. <label>전체</label>
  215. <value>5</value>
  216. </item>
  217. </choices>
  218. </select1>
  219. <input id="ipt_indd" ref="/root/send/indd" class="input_search" inputtype="date" style="left:820px; top:8px; width:85px; height:19px; "/>
  220. </group>
  221. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:206px; height:13px; ">미시행 처방 및 반납처방 리스트</caption>
  222. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  223. <datagrid id="grd_ordlist" nodeset="/root/main/list01/ordlist" class="datagrid2" caption="의뢰일자^환자번호^성명^구분^상태^처방일^병실^처방부서^진료의^처방번호^처방구분번호^처방코드^Acting^처방명^계산여부^투여량^횟수^일수^사유^참고^등록부서^등록자^확인일시^확인자^심사자" colsep="^" colwidth="85, 86, 66, 60, 109, 86, 54, 84, 68, 59, 80, 77, 52, 122, 56, 47, 37, 37, 100, 100, 75, 71, 100, 73, 76" dataheight="25" defaultrows="2" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:664px; ">
  224. <col ref="actorddd" type="inputdate"/>
  225. <col ref="pid" style="text-align:center; "/>
  226. <col ref="hngnm" style="text-align:center; "/>
  227. <col ref="prcpflag" type="combo">
  228. <choices>
  229. <item>
  230. <label>수가</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>지시</label>
  235. <value>2</value>
  236. </item>
  237. <item>
  238. <label>영양완성</label>
  239. <value>3</value>
  240. </item>
  241. </choices>
  242. </col>
  243. <col ref="execprcphistcd"/>
  244. <col ref="prcpdd" type="inputdate"/>
  245. <col ref="roomcd" style="text-align:center; "/>
  246. <col ref="prcpexecdeptcd" style="text-align:center; "/>
  247. <col ref="orddrid"/>
  248. <col ref="prcpno" style="text-align:center; "/>
  249. <col ref="prcphistno" visibility="hidden" style="text-align:center; "/>
  250. <col ref="prcpcd"/>
  251. <col ref="actcretno" visibility="hidden" style="text-align:center; "/>
  252. <col ref="prcpnm"/>
  253. <col ref="calcflag" style="text-align:center; "/>
  254. <col ref="execprcpqty" style="text-align:center; "/>
  255. <col ref="execprcptims" style="text-align:center; "/>
  256. <col ref="execprcpdayno" style="text-align:center; "/>
  257. <col ref="resncd"/>
  258. <col ref="rem"/>
  259. <col ref="rgstdeptcd" style="text-align:center; "/>
  260. <col ref="rgstrid" style="text-align:center; "/>
  261. <col ref="carecnfmdd" style="text-align:center; "/>
  262. <col ref="carecnfmrid" style="text-align:center; "/>
  263. <col ref="judgid" style="text-align:center; "/>
  264. <script type="javascript" ev:event="ondblclick">
  265. <![CDATA[
  266. if(window.parent != null) {
  267. var row = grd_ordlist.row;
  268. opener.model.removeNodeset("/root/hidden/ordlist");
  269. opener.model.makeNode("/root/hidden/ordlist");
  270. opener.model.copyNode("/root/hidden/ordlist","/root/main/list01/ordlist["+row+"]");
  271. window.close();
  272. } else {
  273. return false;
  274. }
  275. ]]>
  276. </script>
  277. <script type="javascript" ev:event="onaftersort">
  278. <![CDATA[
  279. grd_ordlist.gridToInstance();
  280. ]]>
  281. </script>
  282. </datagrid>
  283. </group>
  284. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  285. <button id="button9" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  286. <caption>닫기</caption>
  287. <close ev:event="DOMActivate"/>
  288. </button>
  289. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  290. </group>
  291. </xhtml:body>
  292. </xhtml:html>