SPAED00100_처방조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAED00100.xrw
  4. * 설 명 : 처방조회
  5. * 설 계 자 : 손승현
  6. * 작 성 자 : 손승현
  7. * 작 성 일 : 2010.09.28
  8. * 수정이력 : 2010.09.28 손승현 신규
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <![CDATA[">]]>
  15. <xhtml:title>처방조회</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <ordlist1>
  21. <mainordlist>
  22. <check/>
  23. <pid/>
  24. <hngnm/>
  25. <sna/>
  26. <rrgstno1/>
  27. <rrgstno2/>
  28. <orddepthngnm/>
  29. <orddrnm/>
  30. <portprcpflag/>
  31. <calcscorcd/>
  32. <prcpdd/>
  33. <execprcpstatcd/>
  34. <roomcd/>
  35. <srchrsrvdt/>
  36. <prcpnm/>
  37. <rsrvrid/>
  38. <execdt/>
  39. <execrid1/>
  40. <execrnm/>
  41. <rcptyn/>
  42. <hight/>
  43. <weight/>
  44. <prcpexecdeptnm/>
  45. <execdeptnm/>
  46. <hometel/>
  47. <mpphontel/>
  48. <statcd/>
  49. <basecd/>
  50. <execprcpuniqno/>
  51. <prcpexecdeptcd/>
  52. <excuroomcd/>
  53. <inflag/>
  54. <rcptacptyn/>
  55. <execbaseflag/>
  56. <excupartcd/>
  57. <modality/>
  58. <execrem/>
  59. <prcpdelivefact/>
  60. <carecnfmdd/>
  61. <prcpkindcd/>
  62. <rcptno/>
  63. <acptseqno/>
  64. <prcpgenrflag/>
  65. <orddd/>
  66. <orddeptcd/>
  67. <rcptdd/>
  68. <orddrid/>
  69. <prcpno/>
  70. <eqmtifyn/>
  71. <basesuppdeptcd/>
  72. <cretno/>
  73. <wardcd/>
  74. <rsrvdt/>
  75. <rgstdeptcd/>
  76. <rgstrid/>
  77. <inclprcpcd/>
  78. <lrgcd/>
  79. <mdlcd/>
  80. <actorddd/>
  81. <actcretno/>
  82. <examroomnm/>
  83. <prcphistno/>
  84. <pacsnocretyn/>
  85. <tmpldata/>
  86. <prcpdt/>
  87. <rsrvrnm/>
  88. <deptengabbr/>
  89. <cnclresncdnm/>
  90. <rsrvexmptmplcd/>
  91. <age/>
  92. <tretflagcd/>
  93. <rsrvexcuroomposscd/>
  94. <prcphopedd/>
  95. <precureprcpflag/>
  96. <clincstdycd/>
  97. <aftrcptinfo/>
  98. <centcd/>
  99. <prcpclscd/>
  100. <ioflag/>
  101. <bf_srchrsrvtm/>
  102. <emryn/>
  103. <prcpqty/>
  104. <unrsrvexecyn/>
  105. <insukind/>
  106. <ordrsrvdt/>
  107. </mainordlist>
  108. </ordlist1>
  109. </main>
  110. <send>
  111. <srch>
  112. <srchfromdd/>
  113. <srchtodd/>
  114. <srchhngnm/>
  115. <suppdeptcd/>
  116. <srchprcpflag/>
  117. </srch>
  118. <data>
  119. <srchpid/>
  120. <srchdate1/>
  121. <srchdate2/>
  122. <acptlistflag/>
  123. <selectexcuroom/>
  124. <excuroomcd/>
  125. <prcpgenrflag/>
  126. <prcpexecdeptcd/>
  127. <centyn/>
  128. <cenflag/>
  129. <sgubn/>
  130. <term/>
  131. <largeclass/>
  132. </data>
  133. <globalinstance>
  134. <instance1/>
  135. </globalinstance>
  136. </send>
  137. <hidden>
  138. <receiveref/>
  139. </hidden>
  140. <init>
  141. <cmb_info>
  142. <initexcuroomcd>
  143. <excuroomcd/>
  144. </initexcuroomcd>
  145. <initexecroom>
  146. <excuroomcdid/>
  147. <excuroomcdnm/>
  148. </initexecroom>
  149. <initexecrid1>
  150. <execrid1cdnm/>
  151. <execrid1cdid/>
  152. </initexecrid1>
  153. <prcpexecdeptcdlist>
  154. <prcpexecdeptcd/>
  155. </prcpexecdeptcdlist>
  156. <cdidlist>
  157. <cdid/>
  158. </cdidlist>
  159. </cmb_info>
  160. </init>
  161. </root>
  162. </instance>
  163. <submission id="TRAEA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ordlist1"/>
  164. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  165. </model>
  166. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  168. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" ev:event="xforms-ready">
  171. <![CDATA[
  172. // 검색조건 설정
  173. var vpid = opener.javascript.getParameter("SPAVT00110_PID");
  174. model.setValue("/root/send/data/srchpid", vpid);
  175. model.refresh();
  176. // 자동조회
  177. model.setValue("/root/send/data/excuroomcd", model.getValue("/root/properties/menu/menuprestdeptcd"));
  178. model.setValue("/root/send/data/acptlistflag", "Y");
  179. model.setValue("/root/send/data/prcpexecdeptcd", model.getValue("/root/properties/menu/menuprestdeptcd"));
  180. aezfSetSuppDeptcd();
  181. model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  182. model.setValue("/root/send/data/acptlistflag", "N");
  183. // submit("TRAEA01101", false);
  184. //검사실 갖고오기
  185. submit("TRAEA01115",false);
  186. // if(grd_temproom.rows == 2 ) {
  187. // var excuroomcd = model.getValue("/root/init/cmb_info/initexcuroomcd[1]/excuroomcd") ;
  188. // }
  189. // if(grd_temproom.rows >2 ) {
  190. var loop = getNodesetCount("/root/init/cmb_info/initexcuroomcd");
  191. var excuroomcd = "";
  192. for(var i = 1; i <= loop; i++){
  193. excuroomcd = model.getValue("/root/init/cmb_info/initexcuroomcd["+i+"]/excuroomcd") + " " + excuroomcd;
  194. }
  195. // }
  196. model.setValue("/root/send/data/selectexcuroom", excuroomcd );
  197. // submit("TRAEA01101", false);
  198. //20160708 kya 수정
  199. ////2011.01.26 c y w
  200. // 일자 setting
  201. var curDD = getCurrentDate();
  202. if ( vpid != "") {
  203. var curDD_from = curDD.substring (0, 6) + "01";
  204. model.setValue("/root/send/data/srchdate1" , curDD_from ); // 조회시작일자
  205. model.setValue("/root/send/data/srchdate2" , curDD ); // 조회종료일자
  206. btn_search.dispatch("DOMActivate");
  207. } else {
  208. model.setValue("/root/send/data/srchdate1" , curDD ); // 조회시작일자
  209. model.setValue("/root/send/data/srchdate2" , curDD ); // 조회종료일자
  210. }
  211. model.refresh();
  212. ]]>
  213. </script>
  214. <script type="javascript">
  215. <![CDATA[
  216. function fSetOpener(){
  217. var statcd = model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/statcd") ;
  218. var roomcd = model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/roomcd" );
  219. //if( model.getValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.row + "]/statcd" ) == "수납" ){
  220. if ( statcd == "수납" || roomcd != "" ){
  221. if( checkOpener() ){
  222. opener.model.makeNode("/root/temp/okflag");
  223. opener.model.setValue("/root/temp/okflag", "ok");
  224. var idx = grd_ordlist1.row;
  225. // opener.model.makeNode("/root/send/ordlist1/mainordlist");
  226. // Opener Node에 복사
  227. copyNodeListType("/root/send/ordlist1", "/root/main/ordlist1/mainordlist[" + idx + "]", "replace", opener.model, model );
  228. window.close();
  229. }
  230. }else{
  231. messageBox("처방상태가 수납일 경우에만 접수", "I006");
  232. return;
  233. }
  234. }
  235. ]]>
  236. </script>
  237. </xhtml:head>
  238. <xhtml:body pagewidth="820" pageheight="380" guideline="1,807;2,380;1,2;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  239. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:21px; width:795px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  240. <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:175px; height:14px; vertical-align:middle; ">처방조회</caption>
  241. <caption id="caption3" class="search_name" style="left:320px; top:30px; width:86px; height:17px; ">등록번호 :</caption>
  242. <line id="line1" style="x1:719px; y1:27px; x2:719px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  243. <line id="line3" class="line_1" style="x1:5px; y1:58px; x2:800px; y2:58px; "/>
  244. <button id="btn_search" class="btn1_letter2" style="left:731px; top:28px; width:56px; height:22px; ">
  245. <caption>조회</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. if( submit("TRAEA01101") ){
  249. if( model.getValue("/root/send/srch/srchprcpflag") != "true" ){
  250. var cnt = getNodesetCount("/root/main/ordlist1/mainordlist");
  251. for(var i = cnt ; i >= 1 ; i-- ){
  252. // alert(" i ==> " + i );
  253. if( model.getValue("/root/main/ordlist1/mainordlist[" + i + "]/statcd") != "수납" ){
  254. // alert("here");
  255. model.removenode("/root/main/ordlist1/mainordlist[" + i + "]");
  256. }
  257. }
  258. }
  259. }
  260. model.refresh();
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_cfm" class="btn4_letter2" style="left:678px; top:355px; width:56px; height:22px; ">
  265. <caption>확인</caption>
  266. <script type="javascript" ev:event="onclick">
  267. <![CDATA[
  268. // 조회됐는지 확인
  269. var rows = grd_ordlist1.rows;
  270. if( rows >= 1 ){
  271. fSetOpener();
  272. } else {
  273. messageBox("조회된 처방 정보가", "I004" , "다시 조회해주세요.");
  274. }
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="btn_can" class="btn4_letter2" style="left:735px; top:355px; width:56px; height:22px; ">
  279. <caption>취소</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. if( checkOpener() ) {
  283. opener.model.makeNode("/root/temp/okflag");
  284. opener.model.setValue("/root/temp/okflag", "");
  285. }
  286. window.close();
  287. ]]>
  288. </script>
  289. </button>
  290. <caption id="caption1" class="search_name" style="left:20px; top:30px; width:86px; height:17px; ">기 간 :</caption>
  291. <input id="ipt_srchpid" ref="/root/send/data/srchpid" class="input_search" style="left:409px; top:30px; width:106px; height:19px; ">
  292. <script type="javascript" ev:event="onkeypress">
  293. <![CDATA[
  294. inputEnterKey("btn_search", "DOMActivate");
  295. ]]>
  296. </script>
  297. </input>
  298. <input id="ipt_srchfromdd" ref="/root/send/data/srchdate1" class="input_s_essential" inputtype="date" style="left:90px; top:30px; width:100px; height:19px; "/>
  299. <caption id="lbl_~" class="search_no_b" style="left:193px; top:31px; width:12px; height:17px; ">~</caption>
  300. <input id="ipt_srchtodd" ref="/root/send/data/srchdate2" class="input_s_essential" inputtype="date" style="left:207px; top:30px; width:100px; height:19px; "/>
  301. <input id="input1" ref="/root/send/srch/srchhngnm" class="input_search" style="left:517px; top:30px; width:106px; height:19px; ">
  302. <script type="javascript" ev:event="onkeypress">
  303. <![CDATA[
  304. inputEnterKey("btn_search", "DOMActivate");
  305. ]]>
  306. </script>
  307. </input>
  308. <datagrid id="grd_ordlist1" nodeset="/root/main/ordlist1/mainordlist" caption="^등록번호^성명^S/A^진료과^진료의^처방코드^처방일자^처방상태^병실^예약시간^처방명^비고란^예약자^실시시간^실시자^수납여부^취소코드" colsep="^" colwidth="16, 72, 70, 45, 73, 58, 80, 104, 70, 61, 116, 165, 214, 59, 121, 62, 54, 100" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:70px; width:795px; height:275px; ">
  309. <col checkvalue="true,false" ref="check" type="checkbox" visibility="hidden"/>
  310. <col ref="pid"/>
  311. <col ref="hngnm" style="left:0px; top:20px; width:63px; height:20px; "/>
  312. <col ref="sna"/>
  313. <col ref="orddepthngnm"/>
  314. <col ref="orddrnm"/>
  315. <col ref="calcscorcd"/>
  316. <col ref="prcpdt" format="yyyy-mm-dd hh:nn"/>
  317. <col ref="statcd"/>
  318. <col ref="roomcd"/>
  319. <col ref="srchrsrvdt" format="yyyy-mm-dd hh:nn"/>
  320. <col ref="prcpnm"/>
  321. <col ref="prcpdelivefact"/>
  322. <col ref="rsrvrnm" type="output"/>
  323. <col ref="execdt"/>
  324. <col ref="execrnm" type="output"/>
  325. <col ref="rcptyn"/>
  326. <col ref="basecd"/>
  327. <script type="javascript" ev:event="onmousedown">
  328. <![CDATA[
  329. setPopupMenu("grd_ordlist1", false, "/root/hidden/popupmenu/menu/item", "label", "func");
  330. ]]>
  331. </script>
  332. <script type="javascript" ev:event="DOMFocusOut">
  333. <![CDATA[
  334. initPopupMenu();
  335. ]]>
  336. </script>
  337. <script type="javascript" ev:event="onaftersort">
  338. <![CDATA[
  339. grd_ordlist1.gridToInstance();
  340. ]]>
  341. </script>
  342. <script type="javascript" ev:event="onmouseup">
  343. <![CDATA[
  344. /* if (isDataCell()) {
  345. for ( var i = 1; i < grd_ordlist1.rows; i++) {
  346. model.setValue("/root/main/ordlist1/mainordlist["+i+"]/check", "false");
  347. }
  348. for ( var i =0 ; i< grd_ordlist1.selectedRows;i++){
  349. model.setValue("/root/main/ordlist1/mainordlist[" + grd_ordlist1.selectedRow(i) + "]/check", "true");
  350. }
  351. if(grd_ordlist1.selectedRows == 1 ){
  352. var idx = grd_ordlist1.row;
  353. model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/ordlist1/mainordlist["+ idx + "]/excuroomcd"));
  354. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/ordlist1/mainordlist[" + idx + "]/pid"));
  355. model.setValue("/root/send/data/orddd", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/orddd"));
  356. model.setValue("/root/send/data/genrflag", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpgenrflag"));
  357. model.setValue("/root/send/data/prcpno", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpno"));
  358. model.setValue("/root/send/data/prcpdd", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/prcpdd"));
  359. model.setValue("/root/send/data/execprcpuniqno", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/execprcpuniqno"));
  360. model.setValue("/root/send/data/srchrsrvdt", model.getValue("/root/main/ordlist1/mainordlist["+ idx +"]/srchrsrvdt"));
  361. //환자Comment 환자정보 조회
  362. submit("TRAEA01114",false);
  363. model.setValue("/root/hidden/isolinfo/isoldata", "");
  364. if (model.getValue("/root/main/patrem/isolinfo/isoldispcd") != "") {
  365. model.setValue("/root/hidden/isolinfo/isoldata", "확인");
  366. }
  367. model.refresh();
  368. }else {
  369. //상단정보 초기화
  370. delPatientInfos();
  371. }
  372. }*/
  373. ]]>
  374. </script>
  375. <script type="javascript" ev:event="ondblclick">
  376. <![CDATA[
  377. // 조회됐는지 확인
  378. var rows = grd_ordlist1.rows;
  379. if( rows >= 1 ){
  380. if(grd_ordlist1.row != 0) {
  381. fSetOpener();
  382. }
  383. }
  384. ]]>
  385. </script>
  386. </datagrid>
  387. <datagrid id="grd_temproom" nodeset="/root/init/cmb_info/initexcuroomcd" visibility="hidden" caption="caption3" colsep="^" colwidth="127" mergecellsfixedrows="bycolrec" rowsep="|" style="left:490px; top:115px; width:220px; height:190px; ">
  388. <col ref="excuroomcd"/>
  389. </datagrid>
  390. <bool id="bool1" ref="/root/send/srch/srchprcpflag" style="left:630px; top:30px; width:20px; height:20px; "/>
  391. <caption id="caption4" style="left:650px; top:31px; width:50px; height:20px; ">처방포함</caption>
  392. </xhtml:body>
  393. </xhtml:html>