SMAHS01600_환자별수납현황.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>건진일평균인원현황</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patlst>
  11. <item>
  12. <pid/>
  13. <hngnm/>
  14. <healexamflag/>
  15. <rcptdd/>
  16. <rcptamt/>
  17. <uncorcptamt/>
  18. <prercptamt/>
  19. <mdlrcptamt/>
  20. <penalamt/>
  21. <lid/>
  22. </item>
  23. </patlst>
  24. <export/>
  25. </main>
  26. <send>
  27. <srchinstcd/>
  28. <srchdd/>
  29. <srchlid/>
  30. </send>
  31. <hidden>
  32. </hidden>
  33. <init>
  34. <baseinfo>
  35. </baseinfo>
  36. </init>
  37. </root>
  38. </instance>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. // 기관코드 초기화
  42. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
  43. // 공통코드 조회
  44. // 일자초기화
  45. model.setValue("/root/send/srchdd" , getCurrentDate());
  46. model.refresh();
  47. ]]>
  48. </script>
  49. <submission id="TRZBC00101"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. /*
  53. * 건진종류 소계 및 총계를 생성한다.
  54. */
  55. function fSetRcptSum() {
  56. // 그리드 merge 및 합계 초기화
  57. grd_patlst.subtotalPosition = "below";
  58. grd_patlst.multiTotals = true;
  59. grd_patlst.subtotal("clear", 0, 0);
  60. for(var i =0; i < grd_patlst.cols ; i++) {
  61. // 소계 및 합계
  62. if(i >= grd_patlst.colRef("rcptamt") && i <= grd_patlst.colRef("penalamt")) {
  63. grd_patlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_patlst.colRef("pid") , "총계" );
  64. }
  65. }
  66. }
  67. /*
  68. * 일자 초기화 (srchfromdd , srchtodd)
  69. */
  70. function fDate(vYear , vMon) {
  71. var dd = new Date(vYear, vMon ,0);
  72. model.setValue("/root/send/srchfromdd" , vYear + vMon + "01");
  73. model.setValue("/root/send/srchtodd" , vYear + vMon + dd.getDate());
  74. }
  75. ]]>
  76. </script>
  77. <submission id="TRAHS01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patlst"/>
  78. </model>
  79. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  87. </xhtml:head>
  88. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1049;">
  89. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  90. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">환자별 수납현황</caption>
  91. </group>
  92. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  93. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  94. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  95. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  96. <caption>조회</caption>
  97. <script type="javascript" ev:event="DOMActivate">
  98. <![CDATA[
  99. var ret = submit("TRAHS01601");
  100. if(ret) {
  101. fSetRcptSum();
  102. model.refresh();
  103. }
  104. ]]>
  105. </script>
  106. </button>
  107. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:976px; top:7px; width:80px; height:22px; ">
  108. <caption>액셀저장</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  112. grd_patlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  113. ]]>
  114. </script>
  115. </button>
  116. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  117. <caption>출력</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate().getDateFormat("YYYY/MM/DD"));
  121. exeReportPreview("RPAHS01601", "XMLSTR", "/root/main/export","", "false","","","","","false");
  122. ]]>
  123. </script>
  124. </button>
  125. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  126. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:73px; height:17px; ">일자 :</caption>
  127. <input id="ipt_fromdd" ref="/root/send/srchdd" class="input_search" navindex="7" inputtype="date" style="left:82px; top:8px; width:105px; height:19px; "/>
  128. <caption id="caption1" class="search_name" style="left:205px; top:9px; width:86px; height:17px; ">LID 구분 :</caption>
  129. <input id="input1" ref="/root/send/srchlid" style="left:300px; top:8px; width:105px; height:19px; "/>
  130. </group>
  131. <datagrid id="grd_patlst" nodeset="/root/main/patlst/item" caption="등록번호^성명^건진종류^수납일시^수납액^미수입금^선수금^선수반환^위약금^LID" colsep="^" colwidth="150, 100, 200, 150, 100, 100, 100, 100, 100, 100" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  132. <col ref="pid" style="font-weight:bold; text-align:center; "/>
  133. <col ref="hngnm" format="(-,+)#,###"/>
  134. <col ref="healexamflag" format="(-,+)#,###"/>
  135. <col ref="rcptdd"/>
  136. <col ref="rcptamt" format="(-,+)#,###"/>
  137. <col ref="uncorcptamt" format="(-,+)#,###"/>
  138. <col ref="prercptamt" format="(-,+)#,###"/>
  139. <col ref="mdlrcptamt" format="(-,+)#,###"/>
  140. <col ref="penalamt" format="(-,+)#,###"/>
  141. <col ref="lid"/>
  142. </datagrid>
  143. </xhtml:body>
  144. </xhtml:html>