SMAHS01400_월별수납현황.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. <rcptlst>
  11. <item>
  12. <rcptdd/>
  13. <c01cnt/>
  14. <g02cnt/>
  15. <cardamt/>
  16. <cashamt/>
  17. <cmpyamt/>
  18. <totamt/>
  19. <sumtotamt/>
  20. </item>
  21. </rcptlst>
  22. <export/>
  23. </main>
  24. <send>
  25. <srchdd/>
  26. <srchinstcd/>
  27. <srchpid/>
  28. <srchhealexamflag/>
  29. </send>
  30. <hidden>
  31. </hidden>
  32. <init>
  33. <baseinfo>
  34. <healexamflaglist/>
  35. <healexamdetlflaglist/>
  36. <healexamdetlflaglist2/>
  37. <srchhealexamflag/>
  38. </baseinfo>
  39. </init>
  40. <report>
  41. <cmpyamtlst/>
  42. </report>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. // 일자초기화
  48. model.setValue("/root/send/srchdd" , getCurrentDate().substr(0,6));
  49. // 공통코드 조회
  50. zbcfGetCodeList( new Array("A0068","A0069" ,"A0070", "A0068" ),
  51. new Array("/root/init/baseinfo/healexamflaglist" ,"/root/init/baseinfo/healexamdetlflaglist" , "/root/init/baseinfo/healexamdetlflaglist2", "/root/init/baseinfo/srchhealexamflag" ) );
  52. addComboItem("cmb_healexamflag","전체","%","above");
  53. cmb_healexamflag.select(0);
  54. model.refresh();
  55. ]]>
  56. </script>
  57. <submission id="TRZBC00101"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. /*
  61. * 건진종류 소계 및 총계를 생성한다.
  62. */
  63. function fSetRcptSum() {
  64. // 그리드 merge 및 합계 초기화
  65. grd_dyrcptlst.autoMerge = false;
  66. grd_dyrcptlst.mergeCells = "bycolrec";
  67. grd_dyrcptlst.subtotalPosition = "below";
  68. grd_dyrcptlst.multiTotals = true;
  69. grd_dyrcptlst.subtotal("clear", 0, 0);
  70. for(var i =0; i < grd_dyrcptlst.cols ; i++) {
  71. // 소계
  72. // if(i >= grd_dyrcptlst.colRef("cardamt") && i <= grd_dyrcptlst.colRef("totamt")){
  73. if(i >= grd_dyrcptlst.colRef("c01cnt") && i <= grd_dyrcptlst.colRef("totamt")){
  74. grd_dyrcptlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold " , "총계" );
  75. }
  76. // 화면 merge
  77. if( i == grd_dyrcptlst.colRef("healexamkind")) {
  78. grd_dyrcptlst.mergeCol(i) = true;
  79. }else{
  80. grd_dyrcptlst.mergeCol(i) = false;
  81. }
  82. }
  83. grd_dyrcptlst.merge();
  84. }
  85. ]]>
  86. </script>
  87. <submission id="TRAHS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rcptlst"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  95. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  96. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1207;">
  99. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  100. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">월별수입현황</caption>
  101. </group>
  102. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  103. <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; "/>
  104. <caption id="caption2" class="search_name" style="left:230px; top:9px; width:73px; height:17px; ">조회월 :</caption>
  105. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  106. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  107. <caption>조회</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. var ret = submit("TRAHS01401");
  111. fSetRcptSum();
  112. ]]>
  113. </script>
  114. </button>
  115. <input id="ipt_fromdd" ref="/root/send/srchdd" class="input_search" navindex="7" inputtype="date" format="yyyy-mm" style="left:307px; top:8px; width:105px; height:19px; ">
  116. <script type="javascript" ev:event="onkeydown">
  117. <![CDATA[
  118. /*
  119. if( event.keyCode == 13 ) {
  120. var pCurTargetObj = event.ptarget.parent;
  121. if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
  122. event.keyCode = 9;
  123. pCurTargetObj.dispatch("onkeydown");
  124. }else {
  125. event.keyCode = 9;
  126. }
  127. }
  128. event.stopPropagation();
  129. */
  130. ]]>
  131. </script>
  132. </input>
  133. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1045px; top:6px; width:80px; height:22px; ">
  134. <caption>액셀저장</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  138. if(fileName != ""){
  139. grd_dyrcptlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  140. }
  141. ]]>
  142. </script>
  143. </button>
  144. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" appearance="minimal" style="left:115px; top:9px; width:100px; height:19px; ">
  145. <choices>
  146. <itemset nodeset="/root/init/baseinfo/srchhealexamflag/A0068">
  147. <label ref="cdnm"/>
  148. <value ref="cdid"/>
  149. </itemset>
  150. </choices>
  151. </select1>
  152. <caption id="caption7" class="search_name" style="left:25px; top:10px; width:87px; height:17px; ">건진구분 :</caption>
  153. </group>
  154. <datagrid id="grd_dyrcptlst" nodeset="/root/main/rcptlst/item" caption="날 짜^건진인원^비자인원^채용인원^카드수입^현금수입^미수금^당일총수입^누 계" colsep="^" colwidth="150, 100, 100, 100, 150, 150, 150, 150, 150" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  155. <col ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  156. <col ref="c01cnt"/>
  157. <col ref="g02cnt"/>
  158. <col ref="g05cnt"/>
  159. <col ref="cardamt" format="#,###" style="text-align:right; padding-right:20; margin-right:0; "/>
  160. <col ref="cashamt" format="#,###" style="text-align:right; padding-right:20; margin-right:0; "/>
  161. <col ref="cmpyamt" format="#,###" style="text-align:right; padding-right:20; margin-right:0; "/>
  162. <col ref="totamt" format="#,###" style="text-align:right; padding-right:20; margin-right:0; "/>
  163. <col ref="sumtotamt" format="#,###" style="text-align:right; padding-right:20; margin-right:0; "/>
  164. </datagrid>
  165. </xhtml:body>
  166. </xhtml:html>