SPAER01000_환자별입원촬영현황조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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. <subordlist>
  11. <subordlist1>
  12. <pid/>
  13. <patnm/>
  14. <prcpgenrflag/>
  15. <prcpdt/>
  16. <acptdt/>
  17. <arvdt/>
  18. <excuexectodt/>
  19. <cnfmdt/>
  20. <prcpnm/>
  21. <examroomnm/>
  22. <rgstdepthngnm/>
  23. <rgstridnm/>
  24. <cnfmwait/>
  25. <execwait/>
  26. <inddcnt/>
  27. <indd/>
  28. <dschdd/>
  29. <dschnotidt/>
  30. <execrid1/>
  31. <execprcpuniqno/>
  32. <hisorderid/>
  33. </subordlist1>
  34. </subordlist>
  35. </main>
  36. <send>
  37. <pid/>
  38. <cdgrupid/>
  39. <offset/>
  40. <globalinstance>
  41. <instance1/>
  42. </globalinstance>
  43. </send>
  44. <init>
  45. <baseinfo>
  46. <initexecprcpstatcd/>
  47. <initprcpgenrflagcd/>
  48. </baseinfo>
  49. <cmb_info2>
  50. <initexecroom>
  51. <excuroomcdid/>
  52. <excuroomcdnm/>
  53. </initexecroom>
  54. </cmb_info2>
  55. <cmb_lrgcd>
  56. <lrgcdlist>
  57. <cdid/>
  58. <cdnm/>
  59. </lrgcdlist>
  60. </cmb_lrgcd>
  61. <cmb_mdlcd>
  62. <mdlcdlist>
  63. <mdlcdid/>
  64. <mdlcdnm/>
  65. </mdlcdlist>
  66. </cmb_mdlcd>
  67. <cmb_smlcd>
  68. <smlcdlist>
  69. <smlcdid/>
  70. <smlcdnm/>
  71. </smlcdlist>
  72. </cmb_smlcd>
  73. <popupmenu>
  74. <grid01>
  75. <item>
  76. <name>PACS조회(등록번호)</name>
  77. <func>fPACSInfo</func>
  78. </item>
  79. <item>
  80. <name>PACS조회(처방기준)</name>
  81. <func>fPACSPrcpInfo</func>
  82. </item>
  83. </grid01>
  84. </popupmenu>
  85. </init>
  86. <hidden>
  87. <comcd/>
  88. <comcd2/>
  89. <comcd3/>
  90. </hidden>
  91. <temp>
  92. <userinfolist/>
  93. <userpopupinfo>
  94. <param/>
  95. <flag/>
  96. <searchitem/>
  97. </userpopupinfo>
  98. </temp>
  99. </root>
  100. </instance>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. // instance 가져오기
  104. aezfSetSuppDeptcd();
  105. zbcfGetCodeList( new Array("M0011","M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
  106. submit("TRZBC00101");
  107. aezfInsertInstance2("/root/hidden/comcd2", "M0011", "전체", "", "/root/init/baseinfo/initexecprcpstatcd");
  108. aezfInsertInstance2("/root/hidden/comcd", "M0010", "전체", "", "/root/init/baseinfo/initprcpgenrflagcd");
  109. model.removeNode("/root/hidden/comcd/M0010[cdid='-']"); // 외래,입원구분 : 공통
  110. model.removeNode("/root/hidden/comcd/M0010[cdnm='전체']"); // 외래,입원구분 : 공통
  111. model.removeNode("/root/hidden/comcd2/M0011[cdid='150']"); // 상태구분 : 처방전출력
  112. model.removeNode("/root/hidden/comcd2/M0011[cdid='160']"); // 상태구분 : 처방전미출력
  113. model.removeNode("/root/hidden/comcd2/M0011[cdid='170']"); // 상태구분 : 검수완료
  114. model.removeNode("/root/hidden/comcd2/M0011[cdid='180']"); // 상태구분 : 처방보류
  115. model.removeNode("/root/hidden/comcd2/M0011[cdid='200']"); // 상태구분 : 부분계산
  116. model.removeNode("/root/hidden/comcd2/M0011[cdid='210']"); // 상태구분 : 수납대기
  117. model.removeNode("/root/hidden/comcd2/M0011[cdid='220']"); // 상태구분 : 계산(입원용)
  118. model.removeNode("/root/hidden/comcd2/M0011[cdid='300']"); // 상태구분 : 조제보류
  119. model.removeNode("/root/hidden/comcd2/M0011[cdid='310']"); // 상태구분 : 조제완료
  120. model.removeNode("/root/hidden/comcd2/M0011[cdid='320']"); // 상태구분 : 불출
  121. model.removeNode("/root/hidden/comcd2/M0011[cdid='330']"); // 상태구분 : 미불출
  122. model.removeNode("/root/hidden/comcd2/M0011[cdid='400']"); // 상태구분 : 바코드발행
  123. model.removeNode("/root/hidden/comcd2/M0011[cdid='410']"); // 상태구분 : 채취/채혈
  124. model.removeNode("/root/hidden/comcd2/M0011[cdid='420']"); // 상태구분 : 전달/확인
  125. model.removeNode("/root/hidden/comcd2/M0011[cdid='430']"); // 상태구분 : 검체접수
  126. model.removeNode("/root/hidden/comcd2/M0011[cdid='500']"); // 상태구분 : 접수
  127. model.removeNode("/root/hidden/comcd2/M0011[cdid='510']"); // 상태구분 : 검사중
  128. model.removeNode("/root/hidden/comcd2/M0011[cdid='505']"); // 상태구분 : 준비
  129. model.removeNode("/root/hidden/comcd2/M0011[cdid='520']"); // 상태구분 : 검사완료
  130. model.removeNode("/root/hidden/comcd2/M0011[cdid='530']"); // 상태구분 : 출고
  131. model.removeNode("/root/hidden/comcd2/M0011[cdid='525']"); // 상태구분 : 불출요청
  132. model.removeNode("/root/hidden/comcd2/M0011[cdid='540']"); // 상태구분 : 반납의뢰
  133. model.removeNode("/root/hidden/comcd2/M0011[cdid='550']"); // 상태구분 : 반납완료
  134. model.removeNode("/root/hidden/comcd2/M0011[cdid='560']"); // 상태구분 : 폐기의뢰
  135. model.removeNode("/root/hidden/comcd2/M0011[cdid='570']"); // 상태구분 : 폐기완료
  136. model.removeNode("/root/hidden/comcd2/M0011[cdid='700']"); // 상태구분 : 판독중
  137. model.removeNode("/root/hidden/comcd2/M0011[cdid='720']"); // 상태구분 : 중간결과
  138. model.removeNode("/root/hidden/comcd2/M0011[cdid='305']"); // 상태구분 : 조제중
  139. model.removeNode("/root/hidden/comcd2/M0011[cdid='315']"); // 상태구분 : 특조완료
  140. model.removeNode("/root/hidden/comcd2/M0011[cdid='725']"); // 상태구분 : Confirm확인
  141. //공통코드 테이블에서 영상구분정보 가져오기
  142. model.setValue("/root/send/cdgrupid", "A0463");
  143. submit("TRAER01002", false);
  144. aezfInsertInstance2("/root/hidden/comcd3", "lrgcdlist", "전체", "", "/root/init/cmb_lrgcd");
  145. // 사용할때는 common.js 파일이 필요
  146. if (checkOpener()) { //opener 검사
  147. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  148. if(param != "") { // opener parameter value가 있는 경우
  149. //두번째 방법 parameter value를 이용하여 프로그램 수행
  150. condarray = param.split("▦");
  151. model.setValue("/root/send/pid", condarray[0]);
  152. }
  153. }
  154. grd_mainordlist.rebuild();
  155. // 부모창에서 등록번호 받아서 바로 조회하기
  156. btn_sea.dispatch("DOMActivate");
  157. model.refresh();
  158. ]]>
  159. </script>
  160. <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
  161. <submission id="TRAER01005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/subordlist"/>
  162. <submission id="TRAER01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
  163. <submission id="TRZBC00101"/>
  164. </model>
  165. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  167. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  169. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  171. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  172. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  173. <script type="javascript">
  174. <![CDATA[
  175. /* @group : 촬영현황조회
  176. * @ver : 2007.06.14
  177. * @by : 장준원
  178. * @-----------------------------------
  179. * @type : function
  180. * @access : public
  181. * @desc : 대량조회를 위한 Grid Scroll 제어 Function
  182. */
  183. function fSubmitOnScroll() {
  184. if(grd_mainordlist.vscroll.attribute("max") == grd_mainordlist.vscroll.attribute("pos")) {
  185. // end of scroll
  186. model.setValue("/root/send/offset", grd_mainordlist.rows-1); // grid의 header row는 제외
  187. //alert('offset->'+model.getValue("/root/send/offset"));
  188. //if ( messageBox("미조회된 건수가 존재합니다. 추가 조회를 하시겠습니까?","Q001")==6 ) {
  189. submit("TRAER01005");
  190. grd_mainordlist.dispatch("onmouseup");
  191. //}else {
  192. //}
  193. }
  194. }
  195. /* @group : 결과조회
  196. * @ver : 2009.10.14
  197. * @by : 박상준
  198. * @-----------------------------------
  199. * @type : function
  200. * @access : public
  201. * @desc : 실시와 결과상태 PACS 결과 조회 Function (등록번호 사용)
  202. */
  203. function fPACSInfo() {
  204. if ( grd_mainordlist.row == 0 ) return;
  205. fClickPACSPatResultList(grd_mainordlist);
  206. }
  207. /* @group : 결과조회
  208. * @ver : 2009.10.14
  209. * @by : 박상준
  210. * @-----------------------------------
  211. * @type : function
  212. * @access : public
  213. * @desc : 실시와 결과상태 PACS 결과 조회 Function (PRCPDD + EXECPRCPUNIQNO = HISORDERID 사용)
  214. */
  215. function fPACSPrcpInfo() {
  216. if ( grd_mainordlist.row == 0 ) return;
  217. if ( model.getValue("/root/main/subordlist/subordlist1["+ grd_mainordlist.row +"]/excuexectodt") == "" || model.getValue("/root/main/subordlist/subordlist1["+ grd_mainordlist.row +"]/excuexectodt") == "-") {
  218. messageBox("미실시된 검사 " , "E008");
  219. return;
  220. }
  221. fClickPACSPrcpResultList(grd_mainordlist);
  222. }
  223. /* @group : 결과조회
  224. * @ver : 2009.10.14
  225. * @by : 박상준
  226. * @-----------------------------------
  227. * @type : function
  228. * @access : public
  229. * @desc : 실시와 결과상태 PACS 결과 조회 Function (등록번호 사용 구현부분)
  230. */
  231. function fClickPACSPatResultList(grdobj) {
  232. //alert(grdobj.row)
  233. if ( grdobj.row >= grdobj.fixedRows ) {
  234. var rowidx = grdobj.row;
  235. var pid = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/pid");
  236. // PACS Viewer 호출
  237. //zepfpacsOrderID("2007082725595");
  238. //alert(pid);
  239. zepfpacsPatientID(pid);
  240. }
  241. }
  242. /* @group : 결과조회
  243. * @ver : 2009.10.14
  244. * @by : 박상준
  245. * @-----------------------------------
  246. * @type : function
  247. * @access : public
  248. * @desc : 실시와 결과상태 PACS 결과 조회 Function (PRCPDD + EXECPRCPUNIQNO = HISORDERID 사용 구현부분)
  249. */
  250. function fClickPACSPrcpResultList(grdobj) {
  251. //alert(grdobj.row)
  252. if ( grdobj.row >= grdobj.fixedRows ) {
  253. var rowidx = grdobj.row;
  254. var pid = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/pid");
  255. var pacsorderid = model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/prcpdt")+model.getValue("/root/main/subordlist/subordlist1["+ rowidx +"]/execprcpuniqno");
  256. //"grd_subordlist1" nodeset="/root/main/subordlist/subordlist1"
  257. // PACS Viewer 호출
  258. //alert(pacsorderid);
  259. zepfpacsAll(pacsorderid, pid);
  260. }
  261. }
  262. ]]>
  263. </script>
  264. </xhtml:head>
  265. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  266. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:747px; ">
  267. <group id="group2" style="left:0px; top:5px; width:1195px; height:40px; vertical-align:top; ">
  268. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  269. <caption id="caption7" class="search_name" style="left:10px; top:10px; width:92px; height:17px; text-align:left; ">등록번호 :</caption>
  270. <input id="input6" ref="/root/send/pid" class="input_search" style="left:99px; top:10px; width:80px; height:19px; ">
  271. <script type="javascript" ev:event="onkeyup">
  272. <![CDATA[
  273. if(event.keyCode == "13") {
  274. setInputNodeCurText();
  275. btn_sea.dispatch("DOMActivate");
  276. }
  277. ]]>
  278. </script>
  279. </input>
  280. <button id="btn_sea" class="btn1_letter2" style="left:1055px; top:7px; width:56px; height:22px; ">
  281. <caption>조회</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. // 대량조회-offset초기화
  285. model.removeNodeset("/root/main/subordlist/subordlist1");
  286. model.setValue("/root/send/offset","0");
  287. grd_mainordlist.rebuild();
  288. submit("TRAER01005");
  289. ]]>
  290. </script>
  291. </button>
  292. </group>
  293. <line id="line2" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
  294. <datagrid id="grd_mainordlist" nodeset="/root/main/subordlist/subordlist1" class="datagrid2" autoresize="true" caption="등록번호^환자명^구분^처방일시^접수일시^촬영시작^촬영일시^판독일시^처방명^촬영실^처방과^처방의^판독기간^검사&#xA;대기시간^검사시간^일수^입원일자^퇴원일자^퇴원통보일자^실시자^execprcpuniqno_h^hisorderid_h" colsep="^" colwidth="65, 60, 38, 70, 70, 70, 70, 65, 200, 67, 73, 60, 60, 60, 60, 40, 100, 100, 100, 80, 100, 100" datatype="xml" explorerbar="sortshowmove" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:55px; width:1195px; height:664px; text-align:center; ">
  295. <col ref="pid"/>
  296. <col ref="patnm"/>
  297. <col ref="prcpgenrflag" type="combo">
  298. <choices>
  299. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  300. <label ref="cdnm"/>
  301. <value ref="cdid"/>
  302. </itemset>
  303. </choices>
  304. </col>
  305. <col ref="prcpdt" format="yyyy-mm-dd hh:nn:ss"/>
  306. <col ref="acptdt" format="yyyy-mm-dd hh:nn:ss"/>
  307. <col ref="arvdt" format="yyyy-mm-dd hh:nn:ss"/>
  308. <col ref="excuexectodt" format="yyyy-mm-dd hh:nn:ss"/>
  309. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn:ss"/>
  310. <col ref="prcpnm" style="text-align:left; "/>
  311. <col ref="examroomnm"/>
  312. <col ref="rgstdepthngnm"/>
  313. <col ref="rgstridnm"/>
  314. <col ref="cnfmwait"/>
  315. <col ref="execwait" format="hh:nn:ss"/>
  316. <col ref="phowait" format="hh:nn:ss"/>
  317. <col ref="inddcnt" style="text-align:center; "/>
  318. <col ref="indd" visibility="hidden"/>
  319. <col ref="dschdd" visibility="hidden"/>
  320. <col ref="dschnotidt" visibility="hidden"/>
  321. <col ref="execrid1" style="text-align:center; "/>
  322. <col ref="execprcpuniqno" visibility="hidden"/>
  323. <col ref="hisorderid" visibility="hidden"/>
  324. <script type="javascript" ev:event="onmousedown">
  325. <![CDATA[
  326. setPopupMenu("grd_mainordlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
  327. ]]>
  328. </script>
  329. </datagrid>
  330. <button id="button2" class="btn4_letter3" style="left:1118px; top:12px; width:68px; height:22px; ">
  331. <caption>Excel</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  335. if(file == "") return;
  336. grd_mainordlist.saveExcel(file, "sheet1");
  337. ]]>
  338. </script>
  339. </button>
  340. </group>
  341. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  342. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">개인별 입원촬영 현황조회</caption>
  343. </group>
  344. </xhtml:body>
  345. </xhtml:html>