SPASI02200_흉부방사선검사결과조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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. <brstraytestrsltinfo>
  11. </brstraytestrsltinfo>
  12. <cond>
  13. <termflag>1</termflag>
  14. <fromdd/>
  15. <todd/>
  16. <orddeptcd/>
  17. <wardcd/>
  18. </cond>
  19. </main>
  20. <send>
  21. <reqdata/>
  22. </send>
  23. <hidden>
  24. <popupmenu>
  25. <grid01>
  26. <item>
  27. <name>통합기록조회</name>
  28. <func>fSytsRecRefPopup</func>
  29. </item>
  30. <item>
  31. <name>병원감염보고서등록</name>
  32. <func>fHospInfcReptPopup</func>
  33. </item>
  34. </grid01>
  35. </popupmenu>
  36. <getdata>
  37. <selectedpid/>
  38. </getdata>
  39. </hidden>
  40. <init>
  41. <initdate>
  42. <today/>
  43. </initdate>
  44. <warddeptlist>
  45. </warddeptlist>
  46. <deptlist>
  47. </deptlist>
  48. </init>
  49. </root>
  50. </instance>
  51. <submission id="TRASI02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/brstraytestrsltinfo"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fInitialize();
  55. model.removeNodeset("/root/main/brstraytestrsltinfo");
  56. model.refresh();
  57. fSetParameter() ;
  58. ]]>
  59. </script>
  60. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. function fInitialize(){
  69. // 공통코드를 조회한다.
  70. // 진료과
  71. var instcd = getUserInfo("dutplceinstcd");
  72. var standard_yn = "orduseyn";
  73. var ord_deptflag = 'D';
  74. var rslt_ref = "/root/init/deptlist";
  75. var sort_field = "depthngnm";
  76. var sort_method = "asc";
  77. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  78. addComboItem("cmb_orddeptcd","","","above");
  79. //병동
  80. standard_yn = "orduseyn";
  81. ord_deptflag = "W";
  82. rslt_ref = "/root/init/warddeptlist";
  83. sort_field = "deptcd";
  84. sort_method = "asc";
  85. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  86. addComboItem("cmb_wardcd","","","above");
  87. model.refresh();
  88. }
  89. function fSetParameter(){
  90. var today = getCurrentDate();
  91. var idate = new Date();
  92. var peveDate = idate.getAddDate(-1, "M");
  93. model.setValue("/root/init/initdate/today", today);
  94. model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  95. model.makeValue("/root/send/cond/todd", today);
  96. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  97. model.setValue("/root/main/cond/todd", today);
  98. model.refresh();
  99. }
  100. //상단정보설정
  101. function fUpInfo(){
  102. var sessionPID = getPatientId();
  103. if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
  104. fReqOpPatPamInfo();
  105. }
  106. }
  107. function fReqOpPatPamInfo(){
  108. var tioflag=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/ioflag");
  109. if(tioflag == "I") {
  110. var ioflag="I";
  111. var pid= model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid");
  112. var indd=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/indd");
  113. var cretno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/cretno") ;
  114. var seqno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/iseqno");
  115. var instcd=getUserInfo("dutplceinstcd");
  116. var srchdd=getCurrentDate();
  117. var param= ioflag + "▦" //입원환자
  118. + pid + "▦"
  119. + indd + "▦"
  120. + cretno + "▦"
  121. + instcd+ "▦";
  122. setParameter("condparam", param);
  123. }
  124. else if(tioflag == "O") {
  125. var ioflag="O";
  126. var pid= model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid");
  127. var orddd=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/indd");
  128. var cretno=model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/cretno") ;
  129. var instcd=getUserInfo("dutplceinstcd");
  130. var srchdd=getCurrentDate();
  131. var param= ioflag + "▦" //외래환자
  132. + pid + "▦"
  133. + orddd + "▦"
  134. + cretno + "▦"
  135. + instcd + "▦"
  136. + srchdd;
  137. setParameter("condparam", param);
  138. }
  139. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  140. }
  141. function fSytsRecRefPopup(){
  142. var sessionPID = getPatientId();
  143. if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
  144. fReqOpPatPamInfo();
  145. }
  146. modal("SMMRI00400",1,10,10,"SMMRI00400", "", "/root/hidden/oprecinfo/info");
  147. }
  148. function fPrcpRefPopup(){
  149. var sessionPID = getPatientId();
  150. if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
  151. fReqOpPatPamInfo();
  152. }
  153. modal("SPTMP00100", "", "", "", "popup", "/root/send", "/root/main/grid01");
  154. }
  155. function fHospInfcReptPopup(){
  156. var sessionPID = getPatientId();
  157. if(sessionPID != model.getValue("/root/main/brstraytestrsltinfo/brstraytestrsltlist["+grd_brstraytestrsltlist.row+"]/pid")){
  158. fReqOpPatPamInfo();
  159. }
  160. open("SMASI00100", 1,10,10, "SMASI00100");
  161. //window.close();
  162. }
  163. /*=======================================================================================================================================
  164. @desc : 흉부방사선 검사결과 조회
  165. =======================================================================================================================================*/
  166. function fGetRadRslt(){
  167. if( !isRequiredControls("cmb_trgtmancnt","ipt_fromdd","ipt_todd") ){
  168. return;
  169. }
  170. model.makeNode("/root/send/reqdata");
  171. model.copyNode("/root/send/reqdata", "/root/main/cond");
  172. openLoadingBar("흉부방사선 검사결과 정보 ") ;//처리중 화면을 오픈한다.
  173. submit("TRASI02201");
  174. closeLoadingBar() ;//처리중 화면을 close한다.
  175. }
  176. ]]>
  177. </script>
  178. </xhtml:head>
  179. <xhtml:body pagewidth="1208" pageheight="784" style="margin-left:8; margin-right:8; ">
  180. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  181. <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
  182. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  183. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  184. <caption id="caption7" class="search_no_b" style="left:312px; top:9px; width:12px; height:17px; ">~</caption>
  185. <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  186. <caption id="caption3" class="search_name" style="left:690px; top:8px; width:92px; height:17px; ">병동 :</caption>
  187. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  188. <caption>조회</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fGetRadRslt();
  192. ]]>
  193. </script>
  194. </button>
  195. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:194px; top:8px; width:110px; height:19px; "/>
  196. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:330px; top:8px; width:110px; height:19px; "/>
  197. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" appearance="minimal" style="left:760px; top:8px; width:115px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/init/warddeptlist/dept">
  200. <label ref="depthngnm"/>
  201. <value ref="deptcd"/>
  202. </itemset>
  203. </choices>
  204. </select1>
  205. <select1 id="cmb_trgtmancnt" ref="/root/main/cond/termflag" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:85px; height:19px; ">
  206. <choices>
  207. <item>
  208. <label>처방일</label>
  209. <value>1</value>
  210. </item>
  211. <item>
  212. <label>촬영일</label>
  213. <value>2</value>
  214. </item>
  215. <item>
  216. <label>판독일</label>
  217. <value>3</value>
  218. </item>
  219. </choices>
  220. </select1>
  221. <caption id="caption4" class="search_name" style="left:465px; top:8px; width:92px; height:17px; ">진료과 :</caption>
  222. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:550px; top:8px; width:115px; height:19px; ">
  223. <choices>
  224. <itemset nodeset="/root/init/deptlist/dept">
  225. <label ref="depthngnm"/>
  226. <value ref="deptcd"/>
  227. </itemset>
  228. </choices>
  229. </select1>
  230. <caption id="cap_trgtmancnt" class="search_name" style="left:15px; top:9px; width:92px; height:17px; ">기간선택 :</caption>
  231. </group>
  232. <line id="line2" class="line_1" style="x1:1px; y1:75px; x2:1191px; y2:75px; "/>
  233. <caption id="caption25" class="tit_2" style="left:0px; top:58px; width:173px; height:14px; ">훙부방사선검사결과</caption>
  234. <button id="btn_excel" class="btn2_letter2" style="left:1147px; top:54px; width:42px; height:19px; ">
  235. <caption>엑셀</caption>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  239. // if (fileName != ""){
  240. // grd_brstraytestrsltlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  241. // }
  242. var fileName = window.fileDialog("save", ",", false, "흉부방사선검사결과", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  243. if (fileName != ""){
  244. grd_brstraytestrsltlist.saveExcel(fileName, "흉부방사선검사결과", true, true, "", "", false);
  245. var s = fileName.lastIndexOf("\\");
  246. var fileName=fileName.substring(s+1);
  247. var rmsg = messageBox("저장된 Excel을", "Q004");
  248. if( rmsg == 6 ){
  249. window.exec("excel.exe", fileName);
  250. }
  251. }
  252. ]]>
  253. </script>
  254. </button>
  255. <datagrid id="grd_brstraytestrsltlist" nodeset="/root/main/brstraytestrsltinfo/brstraytestrsltlist" autoresize="true" caption="등록번호^성명^성별^나이^진료과^병동^병실^입원일^퇴원일^처방일^촬영일^접수일^판독일^상태^판독결과^cretno^seqno^instcd^orddd^ioflag" colsep="^" colwidth="70, 62, 40, 40, 110, 74, 72, 80, 80, 80, 80, 80, 80, 50, 288, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:80px; width:1192px; height:661px; vertical-align:middle; ">
  256. <![CDATA[b]]>
  257. <col ref="pid"/>
  258. <col ref="name"/>
  259. <col ref="sexflag"/>
  260. <col ref="age"/>
  261. <col disabled="true" ref="orddeptcd"/>
  262. <col disabled="true" ref="wardcd"/>
  263. <col ref="roomcd"/>
  264. <col ref="indd" format="yyyy-mm-dd"/>
  265. <col ref="dschdd" format="yyyy-mm-dd"/>
  266. <col ref="prcpdd" visibility="visible" format="yyyy-mm-dd"/>
  267. <col ref="phodd" format="yyyy-mm-dd"/>
  268. <col ref="acptdd" visibility="hidden" format="yyyy-mm-dd"/>
  269. <col ref="readdd" format="yyyy-mm-dd"/>
  270. <col ref="stat" visibility="hidden"/>
  271. <col ref="readrslt"/>
  272. <col ref="cretno" visibility="hidden"/>
  273. <col ref="seqno" visibility="hidden"/>
  274. <col ref="instcd" visibility="hidden"/>
  275. <col ref="orddd" visibility="hidden"/>
  276. <col ref="ioflag" visibility="hidden"/>
  277. <script type="javascript" ev:event="onaftersort">
  278. <![CDATA[
  279. grd_brstraytestrsltlist.gridToInstance();
  280. ]]>
  281. </script>
  282. <!--
  283. <script type="javascript" ev:event="ondblclick">
  284. <![CDATA[
  285. if(( grd_brstraytestrsltlist.mouseRow > 0) && ( grd_brstraytestrsltlist.mouseRow <= grd_brstraytestrsltlist.rows )) {
  286. fReqOpPatPamInfo();
  287. }
  288. ]]>
  289. </script>
  290. -->
  291. <script type="javascript" ev:event="onmousedown">
  292. <![CDATA[
  293. setPopupMenu("grd_brstraytestrsltlist", false, "/root/hidden/popupmenu/grid01/item", "name", "func");
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="DOMFocusOut">
  297. <![CDATA[
  298. setPopupMenu(false);
  299. ]]>
  300. </script>
  301. </datagrid>
  302. </group>
  303. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  304. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:168px; height:14px; ">흉부방사선 검사결과조회</caption>
  305. </group>
  306. <group id="group6" style="left:0px; top:757px; width:1195px; height:27px; ">
  307. <button id="btn_print" class="btn6_letter2" style="left:5px; top:3px; width:56px; height:22px; ">
  308. <caption>출력</caption>
  309. </button>
  310. <button id="btn_init" class="btn4_letter3" style="left:1120px; top:3px; width:68px; height:22px; ">
  311. <caption>초기화</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. model.removeNodeset("/root/main/brstraytestrsltinfo");
  315. model.refresh();
  316. ]]>
  317. </script>
  318. </button>
  319. </group>
  320. </group>
  321. </xhtml:body>
  322. </xhtml:html>