SMRSE00900_부서별 재멸균 청구 현황.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <grid>
  11. <rsdhdemdlist/>
  12. </grid>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <fromdd/>
  17. <todd/>
  18. <reqdeptcd/>
  19. <reqflag>Z</reqflag>
  20. </send>
  21. <init>
  22. <reqdeptcd>
  23. <label>외래</label>
  24. <value>1</value>
  25. <label>병동</label>
  26. <value>2</value>
  27. <label>OR</label>
  28. <value>3</value>
  29. <label>ER</label>
  30. <value>4</value>
  31. <label>기타</label>
  32. <value>5</value>
  33. <label>전체</label>
  34. <value/>
  35. </reqdeptcd>
  36. </init>
  37. <temp/>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. //submit 되는 node 들을 초기화한다
  43. fInitialize();
  44. ]]>
  45. </script>
  46. <submission id="TRRSE00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rsdhdemdlist"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fInitialize()
  56. {
  57. misfGridInit(grd_rsdhdemdlist);
  58. misfComboComCdListMulti("Z0007","cmb_instcd");
  59. misfMsterDetailSet(grd_rsdhdemdlist, null, "TRRFE00901", "N");
  60. // 기관코드 설정
  61. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  62. // 현재 날짜 기본 입력(6개월 간격 설정)
  63. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  64. model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  65. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  66. // 부서코드 설정
  67. //model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  68. // 부서코드명 설정
  69. //model.setValue(ipt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  76. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  77. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">부서별 재멸균 현황 출력</caption>
  78. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  79. </group>
  80. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  81. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  82. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  83. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  84. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:100px; top:8px; width:302px; height:19px; text-align:center; ">
  85. <choices>
  86. <itemset>
  87. <label/>
  88. <value/>
  89. </itemset>
  90. </choices>
  91. </select1>
  92. <caption id="cap_fromdd" class="search_name" style="left:582px; top:10px; width:89px; height:17px; ">청구일자 :</caption>
  93. <caption id="cap_todd" class="search_name" visibility="hidden" style="left:582px; top:10px; width:89px; height:17px; ">청구일자 :</caption>
  94. <caption id="cap_reqdeptcd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">청구부서 :</caption>
  95. <caption id="caption9" style="left:792px; top:11px; width:15px; height:20px; font-weight:bold; ">~</caption>
  96. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:668px; top:9px; width:122px; height:19px; text-align:center; "/>
  97. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:807px; top:9px; width:122px; height:19px; text-align:center; "/>
  98. <line id="line30" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; "/>
  99. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. if(!isRequiredControls("cmb_instcd"))return;
  104. if(!isRequiredControls("ipt_fromdd"))return;
  105. if(!isRequiredControls("ipt_todd"))return;
  106. submit("TRRSE00901");
  107. for(var i = grd_rsdhdemdlist.fixedRows; i < grd_rsdhdemdlist.cols ; i++)
  108. grd_rsdhdemdlist.mergecol(i) = false;
  109. grd_rsdhdemdlist.mergecol(grd_rsdhdemdlist.colRef("reqdeptnm")) = true;
  110. ]]>
  111. </script>
  112. </button>
  113. <select1 id="rdo_reqdeptcd" ref="/root/send/reqdeptcd" overflow="visible" appearance="full" cols="6" style="left:100px; top:35px; width:250px; height:15px; background-color:transparent; border-style:none; ">
  114. <choices>
  115. <itemset nodeset="/root/init/reqdeptcd">
  116. <label ref="label"/>
  117. <value ref="value"/>
  118. </itemset>
  119. </choices>
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. btn_search.dispatch("DOMActivate");
  123. ]]>
  124. </script>
  125. </select1>
  126. </group>
  127. <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:169px; height:14px; ">부서별 재멸균 현황</caption>
  128. <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  129. <button id="btn_excel" class="btn5_letter4" style="left:1127px; top:75px; width:64px; height:19px; ">
  130. <caption>엑셀저장</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. if(grd_rsdhdemdlist.fixedRows != grd_rsdhdemdlist.rows)
  134. {
  135. var fileName = window.fileDialog("save", ",", false, "부서별 재멸균 청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  136. if (fileName != "")
  137. {
  138. grd_rsdhdemdlist.saveExcel(fileName, "부서별 재멸균 현황");
  139. }
  140. }else{
  141. messageBox("저장할 Data가 없습니다. Data 조회 후 다시 실행하세요.", "I999");
  142. }
  143. ]]>
  144. </script>
  145. </button>
  146. <datagrid id="grd_rsdhdemdlist" nodeset="/root/main/grid/rsdhdemdlist" caption="부서^부서^물품코드^품명^단위^재멸균수량" colsep="^" colwidth="93, 129, 120, 311, 96, 96" mergecells="bycol" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:100px; width:1190px; height:640px; ">
  147. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  148. <col ref="reqdeptnm" style="text-align:left; "/>
  149. <col ref="goodcd" style="text-align:left; "/>
  150. <col ref="goodnm" style="text-align:left; "/>
  151. <col ref="deliveunit" style="text-align:center; "/>
  152. <col ref="qty" format="#,###" style="text-align:right; "/>
  153. </datagrid>
  154. </group>
  155. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  156. <line id="line11" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  157. <line id="line1" class="line_2" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  158. <button id="btn_print" class="btn6_letter9" style="left:0px; top:3px; width:159px; height:22px; ">
  159. <caption>부서별 재멸균 출력</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. exeReportPreview("RPRSE00901", "XMLSTR");
  163. ]]>
  164. </script>
  165. </button>
  166. </group>
  167. </xhtml:body>
  168. </xhtml:html>