SMMNE01400_인계용 sheet.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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>인계용 Sheet</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <item>
  10. <grid/>
  11. </item>
  12. <main>
  13. <cond>
  14. <section>-</section>
  15. <todate/>
  16. </cond>
  17. <nursemainlist>
  18. <nursemaininfo>
  19. <bedposcnts/>
  20. <stat/>
  21. <inreq/>
  22. <pid/>
  23. <patnm/>
  24. <grdrage/>
  25. <orddeptcd/>
  26. <orddrid/>
  27. <cc/>
  28. <assgroom/>
  29. <telrsrvrem/>
  30. <spcltest/>
  31. <chosdd/>
  32. <chostm/>
  33. </nursemaininfo>
  34. </nursemainlist>
  35. </main>
  36. <init>
  37. <erbaselist>
  38. <bedinfo/>
  39. </erbaselist>
  40. </init>
  41. <send/>
  42. <condition>
  43. <arlist>-</arlist>
  44. </condition>
  45. <sendchk/>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <submission id="TRMNE00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/erbaselist"/>
  52. <submission id="TRZBC00101" method="post" replace="instance"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.removenode("/root/send");
  56. model.setValue("/root/main/cond/todate", getCurrentDate());
  57. model.makeValue("/root/send/searchitem", "sheetbed");
  58. submit("TRMNE00203");
  59. fSearchSheet();
  60. ]]>
  61. </script>
  62. <submission id="TRMNE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nursemainlist"/>
  63. </model>
  64. <script type="javascript">
  65. <![CDATA[
  66. function fSearchSheet(){
  67. var rendcd="";
  68. var chkdata=checkbox1.value;
  69. rendcd=model.getValue("/root/main/cond/section");
  70. var rendcdlist=rendcd.split(" ");
  71. if (chkdata.substr(0,1) != "-") {
  72. if (rendcd.length>0) {
  73. for (var i=0; i<rendcdlist.length;i++) {
  74. rendcd=rendcd.replace(" ","','");
  75. }
  76. rendcd="('" + rendcd + "')";
  77. }
  78. } else {
  79. rendcd = "-";
  80. }
  81. //model.makeValue("/root/main/cond/section",rendcd);
  82. var sSrchData = "";
  83. var sSrchHeader = "section▩";
  84. //var sSrchData = model.getValue("/root/main/cond/section")+"▩";
  85. sSrchData=rendcd ;
  86. model.removenode("/root/send");
  87. model.makeValue("/root/send/searchinfo", sSrchHeader + sSrchData);
  88. submit("TRMNE00101");
  89. model.refresh();
  90. }
  91. function fSaveExcel(){
  92. var fileName = window.fileDialog("save", ",", false, "인계용 Sheet_"+ getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  93. if (fileName != "") {
  94. grd_patlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  95. }
  96. }
  97. ]]>
  98. </script>
  99. </xhtml:head>
  100. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  101. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  102. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">인계용 sheet</caption>
  103. </group>
  104. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  105. <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:0px; top:0px; width:1165px; height:24px; background-color:#fffbf2; border-color:#7cbbdd; "/>
  106. <caption id="caption41" style="left:13px; top:4px; width:493px; height:20px; ">상태 - ⓐ : 입원 / ⓓ : 퇴원예고 / ⓒ : 간호사 퇴원정리완료</caption>
  107. <caption id="caption47" style="left:551px; top:4px; width:394px; height:20px; ">입원장 - 응급입원장: ◇ / 입원수속: ◈ / 병실배정: ◆ / 외래입원장: ◎</caption>
  108. <caption id="caption1" style="left:1165px; top:4px; width:30px; height:20px; text-align:right; ">[표]</caption>
  109. </group>
  110. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  111. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  112. <datagrid id="grd_patlist" nodeset="/root/main/nursemainlist/nursemaininfo" class="datagrid2" caption="Bed^상태^입원장^등록번호^환자명^S/A^주진료과^전문의^담당의^담당의^호출&#xA;진료과^호출의사^주호소^병실^Remark^Remark2^내원일자^내원시간" colsep="^" colwidth="55, 30, 70, 75, 70, 45, 56, 54, 48, 49, 56, 60, 233, 50, 145, 145, 84, 56" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:74px; width:1195px; height:666px; ">
  113. <col ref="bedposcnts"/>
  114. <col ref="stat" style="text-align:center; "/>
  115. <col ref="inreq"/>
  116. <col ref="pid"/>
  117. <col ref="patnm"/>
  118. <col ref="grdrage" style="text-align:center; "/>
  119. <!--(20110129) -->
  120. <col ref="juorddeptcd" style="text-align:center; "/>
  121. <col ref="juorddrid" style="text-align:center; "/>
  122. <col ref="damorddrid" style="text-align:center; "/>
  123. <col ref="dampdano" style="text-align:center; "/>
  124. <!--(20110129) -->
  125. <col ref="orddeptcd" style="text-align:center; "/>
  126. <col ref="orddrid"/>
  127. <col ref="cc"/>
  128. <col ref="assgroom" style="text-align:center; "/>
  129. <col ref="telrsrvrem"/>
  130. <col ref="spcltest"/>
  131. <col ref="chosdd" format="yyyy-mm-dd" style="text-align:center; "/>
  132. <col ref="chostm" format="hh:nn" style="text-align:center; "/>
  133. </datagrid>
  134. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  135. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  136. <button id="btn_search" class="btn1_letter2" style="left:1006px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  137. <caption>조회</caption>
  138. <script type="javascript" ev:event="onclick">
  139. <![CDATA[
  140. fSearchSheet();
  141. ]]>
  142. </script>
  143. </button>
  144. <button id="btn_print" class="btn1_letter2" style="left:1063px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  145. <caption>출력</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. model.copyNode("/root/send","/root/main");
  149. exeReportPreview("RPMNE01400","XMLSTR","");
  150. ]]>
  151. </script>
  152. </button>
  153. <line id="line13" class="line_4" style="x1:1000px; y1:7px; x2:1000px; y2:29px; "/>
  154. <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:12px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구역 :</caption>
  155. <button id="btn_excelprint" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  156. <caption>엑셀</caption>
  157. <script type="javascript" ev:event="onclick">
  158. <![CDATA[
  159. fSaveExcel();
  160. ]]>
  161. </script>
  162. </button>
  163. <select1 id="cmb_section" ref="/root/main/cond/section" visibility="hidden" appearance="minimal" style="left:850px; top:5px; width:120px; height:19px; ">
  164. <choices>
  165. <itemset nodeset="/root/init/erbaselist/bedinfo">
  166. <label ref="bednm"/>
  167. <value ref="bedcd"/>
  168. </itemset>
  169. </choices>
  170. <script type="javascript" ev:event="xforms-select">
  171. <![CDATA[
  172. fSearchSheet();
  173. ]]>
  174. </script>
  175. </select1>
  176. <select id="checkbox1" ref="/root/main/cond/section" visibility="visible" overflow="visible" appearance="full" cols="20" style="left:85px; top:10px; width:705px; height:20px; border-style:none; ">
  177. <choices>
  178. <itemset nodeset="/root/init/erbaselist/bedinfo">
  179. <label ref="bednm"/>
  180. <value ref="bedcd"/>
  181. </itemset>
  182. </choices>
  183. <script type="javascript" ev:event="onclick">
  184. <![CDATA[
  185. var chk1=checkbox1.value;
  186. var s = chk1.indexOf("-");
  187. if (s>=0) {
  188. model.makeValue("/root/main/cond/section","-");
  189. model.refresh();
  190. }
  191. ]]>
  192. </script>
  193. <script type="javascript" ev:event="onmousedown">
  194. <![CDATA[
  195. ]]>
  196. </script>
  197. <script type="javascript" ev:event="onmouseup">
  198. <![CDATA[
  199. ]]>
  200. </script>
  201. </select>
  202. </group>
  203. </group>
  204. </xhtml:body>
  205. </xhtml:html>