SMMNP07000_회복실퇴실장소별환자조회.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. <cond>
  11. <srchflag>-</srchflag>
  12. <fromdd/>
  13. <todd/>
  14. </cond>
  15. <list>
  16. <stslist/>
  17. </list>
  18. </main>
  19. <send/>
  20. <init>
  21. </init>
  22. <code/>
  23. <result>
  24. </result>
  25. <temp>
  26. <cond>
  27. <doctlist>
  28. <medispcl/>
  29. <atdoct/>
  30. </doctlist>
  31. </cond>
  32. </temp>
  33. <hidden/>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. fInitScreen();
  39. ]]>
  40. </script>
  41. <script type="javascript">
  42. <![CDATA[
  43. function fInitScreen(){
  44. var fromdd = getDateCalc(getCurrentDate(), 1) ;
  45. var todd = getDateCalc(getCurrentDate(), 1) ;
  46. model.setValue("/root/main/cond/srchflag", "-");
  47. model.setValue("/root/main/cond/fromdd", fromdd);
  48. model.setValue("/root/main/cond/todd", todd);
  49. fSearch();
  50. }
  51. function fSearch(){
  52. model.removeNodeset("/root/main/list/stslist");
  53. var caption = "^";
  54. model.removeNodeset("/root/send");
  55. model.makeNode("/root/send");
  56. model.copyNode("/root/send", "/root/main/cond");
  57. submit("TRMNP07001", false);
  58. //그리드 기본 타이틀 최초값 세팅
  59. caption = model.getValue("/root/main/list/stslist[" + 1 + "]/opcnfmdd");
  60. //column별 타이틀 값 세팅 및 그리드 숨기기
  61. for( j = 1 ; j < 21 ; j++ ){
  62. if(model.getValue("/root/main/list/stslist[" + 1 + "]/col" + j ) == ""){
  63. grd_stslist.colAttribute(grd_stslist.colRef("col" + j), "visibility") = "hidden";
  64. }
  65. if( j == 20 ){
  66. caption += "^" + model.getValue("/root/main/list/stslist[" + 1 + "]/col" + j ) + "^TOTAL" ;
  67. }else{
  68. caption += "^" +model.getValue("/root/main/list/stslist[" + 1 + "]/col" + j ) ;
  69. }
  70. }
  71. model.removeNode("/root/main/list/stslist[" + 1 + "]");
  72. grd_stslist.caption = caption;
  73. model.refresh();
  74. }
  75. ]]>
  76. </script>
  77. <submission id="TRMNP07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  78. <bind id="bind1" ref="/root/main/list/stslist/total" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12 + ../col13 + ../col14 + ../col15 + ../col16 + ../col17 + ../col18 + ../col19 + ../col20"/>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  84. </xhtml:head>
  85. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <line id="line8" class="line_3" style="x1:0px; y1:55px; x2:1179px; y2:55px; "/>
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">회복실 퇴실장소별 회복환자건수 조회</caption>
  88. <group id="group1" style="left:0px; top:21px; width:1194px; height:39px; vertical-align:top; ">
  89. <shape id="roundrect1" appearance="roundrect" b-color="#ffd799" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:39px; background-color:#fffbf2; "/>
  90. <line id="line25" class="line_4" style="x1:1055px; y1:9px; x2:1055px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  91. <button id="btn_srch" class="btn1_letter2" style="left:1064px; top:9px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. fSearch();
  96. ]]>
  97. </script>
  98. </button>
  99. <button id="btn_excel" class="btn1_letter2" style="left:1122px; top:9px; width:56px; height:22px; ">
  100. <caption>엑셀</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. if(getNodesetCount("/root/main/list/stslist") < 1){
  104. messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
  105. return;
  106. }
  107. var fileName = window.fileDialog("save", ",", false, "회복실퇴실장소별환자조회", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  108. if (fileName != "") {
  109. grd_stslist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  110. }
  111. ]]>
  112. </script>
  113. </button>
  114. <caption id="caption1" class="search_name" style="left:20px; top:12px; width:88px; height:17px; ">조회일자 :</caption>
  115. <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" appearance="input" style="left:222px; top:11px; width:90px; height:19px; "/>
  116. <caption id="caption7" class="search_no_b" style="left:206px; top:12px; width:12px; height:17px; ">~</caption>
  117. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" appearance="input" style="left:112px; top:11px; width:90px; height:19px; "/>
  118. </group>
  119. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
  120. <caption id="caption9" class="tit_2" style="left:0px; top:74px; width:255px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">회복실 퇴실장소별 리스트</caption>
  121. <datagrid id="grd_stslist" nodeset="/root/main/list/stslist" class="datagrid2" caption="^" colwidth="85, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:0px; top:95px; width:1193px; height:635px; ">
  122. <col ref="opcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  123. <col ref="col1" style="text-align:right; "/>
  124. <col ref="col2" style="text-align:right; "/>
  125. <col ref="col3" style="text-align:right; "/>
  126. <col ref="col4" style="text-align:right; "/>
  127. <col ref="col5" style="text-align:right; "/>
  128. <col ref="col6" style="text-align:right; "/>
  129. <col ref="col7" style="text-align:right; "/>
  130. <col ref="col8" style="text-align:right; "/>
  131. <col ref="col9" style="text-align:right; "/>
  132. <col ref="col10" style="text-align:right; "/>
  133. <col ref="col11" style="text-align:right; "/>
  134. <col ref="col12" style="text-align:right; "/>
  135. <col ref="col13" style="text-align:right; "/>
  136. <col ref="col14" style="text-align:right; "/>
  137. <col ref="col15" style="text-align:right; "/>
  138. <col ref="col16" style="text-align:right; "/>
  139. <col ref="col17" style="text-align:right; "/>
  140. <col ref="col18" style="text-align:right; "/>
  141. <col ref="col19" style="text-align:right; "/>
  142. <col ref="col20" style="text-align:right; "/>
  143. <col ref="total" style="text-align:right; "/>
  144. </datagrid>
  145. </xhtml:body>
  146. </xhtml:html>