SMPEA00101_예약자별통합검사예약현황.xrw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <init>
  10. <deptlist>
  11. <deptinfo>
  12. <deptcd/>
  13. <deptnm/>
  14. </deptinfo>
  15. </deptlist>
  16. </init>
  17. <main>
  18. <worklist>
  19. <workinfo>
  20. <dutplcecd/>
  21. <dutplcenm/>
  22. <dcnt/>
  23. <rsrvrid/>
  24. <rsrvrnm/>
  25. <rcnt/>
  26. <pid/>
  27. <prcpdd/>
  28. <suppdeptcd/>
  29. <suppdeptnm/>
  30. <excuroomcd/>
  31. <excuroomnm/>
  32. <calcscorcd/>
  33. <calcscornm/>
  34. <rsrvdt/>
  35. <logno/>
  36. <lastupdtdt/>
  37. </workinfo>
  38. </worklist>
  39. </main>
  40. <send>
  41. <fromdd/>
  42. <todd/>
  43. <dutplcecd/>
  44. <bscdflag>Y</bscdflag>
  45. </send>
  46. </root>
  47. </instance>
  48. <submission id="TRPEA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptlist/deptinfo"/>
  49. <submission id="TRPEA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/worklist/workinfo"/>
  50. </model>
  51. <script type="javascript">
  52. <![CDATA[
  53. ]]>
  54. </script>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. model.setValue("/root/send/fromdd", getCurrentDate());
  61. model.setValue("/root/send/todd", getCurrentDate());
  62. ipt_fromdd.refresh();
  63. ipt_todd.refresh();
  64. submit("TRPEA00107");
  65. addComboItem("cmb_deptcd", "전체", "T");
  66. cmb_deptcd.select(0);
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  71. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; font-family:돋움; vertical-align:middle; ">예약자별 통합 검사 예약 현황</caption>
  72. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
  73. <caption id="caption35" class="search_name" style="left:5px; top:33px; width:76px; height:17px; ">예약일 :</caption>
  74. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:31px; width:90px; height:19px; "/>
  75. <caption id="caption2" style="left:175px; top:33px; width:15px; height:20px; text-align:center; ">~</caption>
  76. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:190px; top:31px; width:90px; height:19px; "/>
  77. <caption id="caption1" class="search_name" style="left:320px; top:33px; width:66px; height:17px; ">부서 :</caption>
  78. <select1 id="cmb_deptcd" ref="/root/send/dutplcecd" class="combo_search" navindex="2" appearance="minimal" style="left:386px; top:31px; width:140px; height:19px; ">
  79. <choices>
  80. <itemset nodeset="/root/init/deptlist/deptinfo">
  81. <label ref="deptnm"/>
  82. <value ref="deptcd"/>
  83. </itemset>
  84. </choices>
  85. </select1>
  86. <line id="line13" style="x1:1120px; y1:30px; x2:1120px; y2:55px; border-color:#FFD799; border-left-style:solid; "/>
  87. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  88. <caption>조회</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. submit("TRPEA00111");
  92. var cnt = instance1.selectNodes("/root/main/worklist/workinfo").length;
  93. var prevId = "";
  94. var color = "#f0f0f0";
  95. for (var i = 1; i <= cnt; i++) {
  96. var currId = model.getValue("/root/main/worklist/workinfo[" + i + "]/rsrvrid");
  97. if (currId != prevId) {
  98. prevId = currId;
  99. color = color == "#f0f0f0" ? "#ffffff" : "#f0f0f0";
  100. }
  101. if (color == "#f0f0f0") {
  102. grd_work.rowStyle(i, "all", "background-color") = color;
  103. }
  104. }
  105. ]]>
  106. </script>
  107. </button>
  108. <caption id="caption7" class="tit_2" style="left:0px; top:70px; width:85px; height:14px; font-weight:bold; ">조회 내역</caption>
  109. <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
  110. <datagrid id="grd_work" nodeset="/root/main/worklist/workinfo" backcoloralternate="transparent" caption="부서^건수^예약자^건수^예약일시^등록번호^처방일^수행부서^검사실^검사코드^검사명^검사일시" colsep="^" colwidth="120, 35, 50, 35, 120, 60, 80, 120, 160, 100, 190, 110" ellipsis="true" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; text-align:center; ">
  111. <col ref="dutplcenm" style="text-align:center; "/>
  112. <col ref="dcnt"/>
  113. <col ref="rsrvrnm"/>
  114. <col ref="rcnt"/>
  115. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  116. <col ref="pid"/>
  117. <col ref="prcpdd" format="yyyy-mm-dd"/>
  118. <col ref="suppdeptnm" style="text-align:center; "/>
  119. <col ref="excuroomnm"/>
  120. <col ref="calcscorcd"/>
  121. <col ref="calcscornm" style="text-align:left; "/>
  122. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn"/>
  123. </datagrid>
  124. <button id="btn_excel" class="btn2_letter4" style="left:1131px; top:65px; width:64px; height:19px; ">
  125. <caption>엑셀저장</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var period = model.getValue("/root/send/fromdd") + "-" + model.getValue("/root/send/todd");
  129. var filename = window.fileDialog("save", ",", false, "예약자별 통합 검사 예약 현황_" + period, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  130. grd_work.saveExcel(filename, "sheetname:예약현황;colhiddenextend:true;rowhiddenextend:false;");
  131. messageBox("엑셀 저장이 완료되었습니다.", "I999");
  132. ]]>
  133. </script>
  134. </button>
  135. </xhtml:body>
  136. </xhtml:html>