SPMNE04700_중증응급환자조회.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. <cond>
  11. <prid>1M</prid>
  12. <fromdd/>
  13. <todd/>
  14. <appyn>Y</appyn>
  15. <serflag>-</serflag>
  16. </cond>
  17. <serdiaginfo>
  18. <serdiaglist/>
  19. </serdiaginfo>
  20. </main>
  21. <send>
  22. <savedata/>
  23. </send>
  24. <init>
  25. <serdiagcls/>
  26. </init>
  27. <hidden/>
  28. </root>
  29. </instance>
  30. <script type="javascript">
  31. <![CDATA[
  32. // CVR 리스트를 조회 한다.
  33. function fReqGetSerDiagList() {
  34. model.resetInstanceNode("/root/main/prcpinfo/prcplist");
  35. model.refresh(); // 트리가 접힌 상태에서 재조회 하면 그리드에 접힌 수만큼 조회 되지 않는 오류 수정.
  36. submit("TRMNE04702");
  37. }
  38. ]]>
  39. </script>
  40. <submission id="TRMNE04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/serdiaginfo"/>
  41. <submission id="TXMMO04906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/cvrconfinfo"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. model.setValue("/root/main/cond/fromdd" ,((getCurrentDate().toDate()).getAddDate(-1,"M")).getDateFormat()); //시작일자는 1개월 전
  45. model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
  46. zbcfGetCodeList(new Array("M0757"),new Array("/root/init/serdiagcls"));
  47. addComboInstance("/root/init/serdiagcls" , "cdid^cdnm", "-^전체", "M0757"); //응급유형 '전체'추가
  48. btn_req.dispatch("DOMActivate");
  49. model.refresh();
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  57. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  58. </xhtml:head>
  59. <xhtml:body pagewidth="820" pageheight="460" guideline="1,801;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  60. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:801px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  61. <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:280px; height:13px; vertical-align:middle; ">중증응급 환자조회</caption>
  62. <caption id="caption2" class="search_name" style="left:5px; top:30px; width:95px; height:17px; vertical-align:middle; ">등록일자 :</caption>
  63. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:92px; top:30px; width:85px; height:19px; "/>
  64. <caption id="caption3" style="left:180px; top:30px; width:15px; height:20px; ">~</caption>
  65. <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:30px; width:85px; height:19px; "/>
  66. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:280px; top:30px; width:55px; height:19px; ">
  67. <choices>
  68. <item>
  69. <label>1개월</label>
  70. <value>1M</value>
  71. </item>
  72. <item>
  73. <label>3개월</label>
  74. <value>3M</value>
  75. </item>
  76. <item>
  77. <label>6개월</label>
  78. <value>6M</value>
  79. </item>
  80. <item>
  81. <label>9개월</label>
  82. <value>9M</value>
  83. </item>
  84. <item>
  85. <label>1년</label>
  86. <value>1Y</value>
  87. </item>
  88. <item>
  89. <label>2년</label>
  90. <value>2Y</value>
  91. </item>
  92. </choices>
  93. <script type="javascript" ev:event="xforms-value-changed">
  94. <![CDATA[
  95. var today = getCurrentDate();
  96. var idate = new Date();
  97. var prid = model.getValue("/root/main/cond/prid");
  98. if (prid =="3M") {
  99. var threeMDate = idate.getAddDate(-3, "M");
  100. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  101. model.setValue("/root/main/cond/todd", today);
  102. } else if (prid =="6M") {
  103. var sixMDate = idate.getAddDate(-6, "M");
  104. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  105. model.setValue("/root/main/cond/todd", today);
  106. } else if (prid =="9M") {
  107. var nineMDate = idate.getAddDate(-9, "M");
  108. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  109. model.setValue("/root/main/cond/todd", today);
  110. } else if (prid =="1Y") {
  111. var oneYDate = idate.getAddDate(-1, "Y");
  112. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  113. model.setValue("/root/main/cond/todd", today);
  114. } else if (prid =="2Y") {
  115. var twoYDate = idate.getAddDate(-2, "Y");
  116. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  117. model.setValue("/root/main/cond/todd", today);
  118. }
  119. model.refresh();
  120. ]]>
  121. </script>
  122. </select1>
  123. <line id="line3" style="x1:720px; y1:26px; x2:720px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. <button id="btn_req" class="btn1_letter2" style="left:735px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. fReqGetSerDiagList();
  129. ]]>
  130. </script>
  131. </button>
  132. <button id="button3" class="btn3_letter6" style="left:5px; top:425px; width:104px; height:22px; ">
  133. <caption>통합기록조회</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var curRow = grd_serdiagflist.row;
  137. if (curRow < 1) return;
  138. var pid = model.getValue("/root/main/serdiaginfo/serdiaglist["+ curRow +"]/pid");
  139. if(pid == ""){
  140. messageBox("통합기록조회를 검색할 환자를", "C002");
  141. return;
  142. }
  143. var wndobj = getOpenWindow("SMMRI00400");
  144. if(wndobj != null){
  145. setParameter("SMMRI00400_param_pid", pid);
  146. wndobj.javascript.fInitalize();
  147. }else{
  148. setParameter("SMMRI00400_param_pid", pid);
  149. open("SMMRI00400", 2, 0, 0);
  150. }
  151. ]]>
  152. </script>
  153. </button>
  154. <button id="button5" class="btn3_letter6" style="left:114px; top:425px; width:104px; height:22px; ">
  155. <caption>통합결과조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. var curRow = grd_serdiagflist.row;
  159. if (curRow < 1) return;
  160. var pid = model.getValue("/root/main/serdiaginfo/serdiaglist["+ curRow +"]/pid");
  161. model.makeValue("/root/source/pid", pid);
  162. if(pid == ""){
  163. messageBox("통합결과조회를 검색할 환자를", "C002");
  164. return;
  165. }
  166. curExamRsltObj = getOpenWindow("SMAER00800"); //활성화된 검사결과 화면 object loading
  167. if(curExamRsltObj != null){
  168. curExamRsltObj.model.setvalue("/root/send/data/singdata/srchpid", pid );
  169. curExamRsltObj.javascript.btn_srch.dispatch("DOMActivate");
  170. } else {
  171. open("SMAER00800", "", "", "", "SMAER00800", "/root/source/pid", "/root/send/data/singdata/srchpid");
  172. }
  173. ]]>
  174. </script>
  175. </button>
  176. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:801px; y2:66px; "/>
  177. <datagrid id="grd_serdiagflist" nodeset="/root/main/serdiaginfo/serdiaglist" caption="등록일자^일련번호^환자번호^환자명^유형^진단명^진료과^진료의^병동^퇴원일^적용시작^적용종료^등록부서^등록자" colsep="^" colwidth="70, 0, 60, 70, 40, 170, 100, 70, 70, 70, 100, 100, 100, 70" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:801px; height:345px; ">
  178. <col ref="genrdd" format="yyyy-mm-dd"/>
  179. <col ref="genrno" visibility="hidden"/>
  180. <col ref="pid" type="input" style="text-align:center; "/>
  181. <col ref="hngnm" style="text-align:center; "/>
  182. <col ref="serflagnm" style="text-align:center; "/>
  183. <col ref="diagnm"/>
  184. <col ref="orddeptnm" style="text-align:center; "/>
  185. <col ref="orddrnm" style="text-align:center; "/>
  186. <col ref="wardnm" style="text-align:center; "/>
  187. <col ref="dschdd" format="yyyy-mm-dd"/>
  188. <col ref="fromdt" format="yyyy-mm-dd hh:nn"/>
  189. <col ref="todt" format="yyyy-mm-dd hh:nn"/>
  190. <col ref="fstrgstdeptnm" style="text-align:center; "/>
  191. <col ref="fstrgstrnm" style="text-align:center; "/>
  192. <script type="javascript" ev:event="onaftersort">
  193. <![CDATA[
  194. grd_serdiagflist.gridToInstance();
  195. ]]>
  196. </script>
  197. </datagrid>
  198. <caption id="caption5" class="search_name" style="left:355px; top:30px; width:95px; height:17px; vertical-align:middle; ">응급유형 :</caption>
  199. <select1 id="cmb_orddrid" ref="/root/main/cond/serflag" class="combo_default" appearance="minimal" itemcount="30" style="left:442px; top:30px; width:68px; height:19px; ">
  200. <choices>
  201. <itemset nodeset="/root/init/serdiagcls/M0757">
  202. <value ref="cdid"/>
  203. <label ref="cdnm"/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <caption id="caption1" class="search_name" style="left:515px; top:30px; width:95px; height:17px; vertical-align:middle; ">적용여부 :</caption>
  208. <select1 id="combo1" ref="/root/main/cond/appyn" class="combo_default" appearance="minimal" itemcount="30" style="left:602px; top:30px; width:68px; height:19px; ">
  209. <choices>
  210. <item>
  211. <label>전체</label>
  212. <value>A</value>
  213. </item>
  214. <item>
  215. <label>적용</label>
  216. <value>Y</value>
  217. </item>
  218. <item>
  219. <label>해제</label>
  220. <value>N</value>
  221. </item>
  222. </choices>
  223. </select1>
  224. <button id="btn_close" class="btn4_letter2" style="left:744px; top:425px; width:56px; height:22px; ">
  225. <caption>닫기</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. window.close();
  229. ]]>
  230. </script>
  231. </button>
  232. </xhtml:body>
  233. </xhtml:html>