SMMNW19200_뇌사추정자확인.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>뇌사추정자 리스트 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <searchdd/>
  12. <gcsflag/>
  13. <prflag/>
  14. </cond>
  15. <send>
  16. <reqdata/>
  17. </send>
  18. <rsrvlist>
  19. <rsrvinfo/>
  20. </rsrvlist>
  21. </main>
  22. <init>
  23. <ward>
  24. <wardcd/>
  25. <wardnm/>
  26. </ward>
  27. <dept>
  28. <deptcd/>
  29. <depthngnm/>
  30. </dept>
  31. <settingrn>
  32. <settingrnid/>
  33. <settingrnnm/>
  34. </settingrn>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript">
  39. <![CDATA[
  40. function fInit(){
  41. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  42. // model.setValue("/root/main/cond/settingrnid", "");
  43. // model.setValue("/root/main/cond/userid", getUserId());
  44. // model.setValue("/root/main/cond/usernm", getUserName());
  45. // model.setValue("/root/main/cond/orddd", getCurrentDate());
  46. // model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
  47. model.removeNodeset("/root/send/reqdata");
  48. model.makeNode("/root/send/reqdata");
  49. // model.makeValue("/root/send/reqdata/wardcd", model.getValue("/root/main/cond/wardcd"));
  50. // submit("TRMNW00101");
  51. // model.setValue("/root/main/cond/settingrnid", "");
  52. // for(i=1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  53. // if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  54. // model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  55. // }
  56. // }
  57. // cmb_wardcd.refresh();
  58. // cmb_settingrnid.refresh();
  59. fGetRsrvPatientList();
  60. }
  61. function fGetRsrvPatientList(){
  62. var searchdd = model.getValue("/root/main/cond/searchdd");
  63. model.removeNodeset("/root/send/reqdata");
  64. model.makeNode("/root/send/reqdata");
  65. model.makeValue("/root/send/reqdata/searchdd", searchdd);
  66. model.makeValue("/root/send/reqdata/gcsflag", model.getValue("/root/main/cond/gcsflag"));
  67. model.makeValue("/root/send/reqdata/prflag", model.getValue("/root/main/cond/prflag"));
  68. // 뇌사추정자 리스트 초기화
  69. model.removenode("/root/main/rsrvlist");
  70. model.makeNode("/root/main/rsrvlist");
  71. grd_rsrv.refresh();
  72. if(submit("TRMNW19200")){
  73. //if (getNodesetCount("/root/main_om/testrsltinfo/rsltlist") == 0) {
  74. if (getNodesetCount("/root/main/rsrvlist/rsrvinfo") == 0) {
  75. messageBox("출력할 데이터가 존재하지 않습니다.", "I");
  76. return;
  77. }
  78. }
  79. }
  80. function fSaveExcel(){
  81. var fileName = window.fileDialog("save", ",", false, "검사예약환자리스트_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  82. if (fileName != "") {
  83. grd_rsrv.saveExcel(fileName, "SheetName", false, false, "", "", false);
  84. }
  85. }
  86. ]]>
  87. </script>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. //model.removeNodeset("/root/main/cond/execdetlgrup/execdetlgruplist");
  91. ipt_searchdd.value = getCurrentDate() ;// 기준일에 현재날짜(디폴트)
  92. // 조회기간 설정 시 해당 코드 사용
  93. // var addDy = model.getValue("/root/main/cond/prcpddfrom");
  94. // addDy = addDy.toDate().getAddDate(-3,"D");
  95. // addDy = addDy.getDateFormat();
  96. //
  97. // ipt_fromdd.value = getCurrentDate();
  98. // ipt_todd.value = getCurrentDate();// 기준일에 현재날짜(디폴트)
  99. fInit();
  100. ]]>
  101. </script>
  102. <submission id="TRMNR07602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/wardcdgrup"/>
  103. <submission id="TRMNR07603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/roomcdgrup"/>
  104. <submission id="TRMNR07604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrup"/>
  105. <submission id="TRMNR07605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/patientgrupInfo"/>
  106. <submission id="TRMNR07606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/execdetlgrup"/>
  107. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init"/>
  108. <submission id="TRMNW19100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsrvlist"/>
  109. <submission id="TRMNW19200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rsrvlist"/>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. </xhtml:head>
  115. <xhtml:body pagewidth="825" pageheight="620" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <group id="grp_tle" style="left:0px; top:0px; width:805px; height:13px; ">
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:171px; height:15px; ">뇌사추정자 리스트 조회</caption>
  118. </group>
  119. <group id="grp_biz" scroll="l" style="left:0px; top:13px; width:805px; height:592px; ">
  120. <group id="grp_sea" style="left:0px; top:10px; width:800px; height:55px; vertical-align:top; ">
  121. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:-201px; top:0px; width:1001px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  122. <button id="button3" class="btn1_letter2" style="left:630px; top:15px; width:56px; height:22px; ">
  123. <caption>조회</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. fGetRsrvPatientList();// 뇌사추정자 리스트 조회시
  127. ]]>
  128. </script>
  129. </button>
  130. <line id="line13" class="line_4" style="x1:600px; y1:15px; x2:600px; y2:37px; "/>
  131. <input id="ipt_searchdd" ref="/root/main/cond/searchdd" class="input_default" inputtype="date" style="left:99px; top:19px; width:95px; height:19px; ">
  132. <script type="javascript" ev:event="xforms-value-changed">
  133. <![CDATA[
  134. ]]>
  135. </script>
  136. </input>
  137. <caption id="caption9" class="search_name" style="left:8px; top:19px; width:92px; height:17px; ">조회일자 :</caption>
  138. <button id="button1" class="btn1_letter4" style="left:694px; top:15px; width:80px; height:22px; ">
  139. <caption>엑셀저장</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. fSaveExcel();
  143. ]]>
  144. </script>
  145. </button>
  146. <select id="chk_deptflag" ref="/root/main/cond/gcsflag" class="checkbox_search" overflow="visible" appearance="full" style="left:215px; top:20px; width:130px; height:18px; border-style:none; ">
  147. <choices>
  148. <item>
  149. <label>GCS 점수 조건해제</label>
  150. <value>Y</value>
  151. </item>
  152. </choices>
  153. <script type="javascript" ev:event="xforms-value-changed">
  154. <![CDATA[
  155. ]]>
  156. </script>
  157. </select>
  158. <select id="checkbox1" ref="/root/main/cond/prflag" class="checkbox_search" overflow="visible" appearance="full" style="left:355px; top:20px; width:190px; height:18px; border-style:none; ">
  159. <choices>
  160. <item>
  161. <label>Pupil Reflex(Fixed) 조건포함</label>
  162. <value>Y</value>
  163. </item>
  164. </choices>
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. ]]>
  168. </script>
  169. </select>
  170. </group>
  171. <line id="line16" class="line_1" style="x1:0px; y1:88px; x2:796px; y2:88px; "/>
  172. <caption id="caption26" class="tit_2" style="left:5px; top:73px; width:150px; height:13px; vertical-align:middle; ">뇌사추정자자 리스트</caption>
  173. <datagrid id="grd_rsrv" nodeset="/root/main/rsrvlist/rsrvinfo" caption="병실^병상^등록번호^이름^S/A^진료과^주치의^담당의^입원일자" colsep="^" colwidth="80, 80, 80, 70, 60, 138, 80, 80, 90" mergecells="never" rowheader="select" rowsep="|" tooltip="true" style="left:0px; top:93px; width:800px; height:492px; ">
  174. <col ref="wardnm" style="text-align:center; "/>
  175. <col ref="bedcd" style="text-align:center; "/>
  176. <col ref="pid" style="text-align:center; "/>
  177. <col ref="patnm" style="text-align:center; "/>
  178. <col ref="sexage" style="text-align:center; "/>
  179. <col ref="orddeptnm" style="text-align:center; "/>
  180. <col ref="medispclnm" style="text-align:center; "/>
  181. <col ref="atdoctnm" style="text-align:center; "/>
  182. <col ref="indd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  183. </datagrid>
  184. </group>
  185. </xhtml:body>
  186. </xhtml:html>