SMAHS03000_초진재진현황.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="UTF-16"?>
  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. <earncntlist>
  11. <item>
  12. <hopedd/>
  13. <cnt1/>
  14. <cnt2/>
  15. <cnt3/>
  16. </item>
  17. </earncntlist>
  18. </main>
  19. <send>
  20. <healexamflag/>
  21. <srchtodd/>
  22. <srchfromdd/>
  23. </send>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. model.setValue("/root/send/srchtodd", getCurrentDate().substring(0, 6));
  29. model.setValue("/root/send/srchfromdd", getCurrentDate().substring(0, 6));
  30. model.refresh();
  31. model.setFocus("ipt_ftodd");
  32. ]]>
  33. </script>
  34. <submission id="TRAHS03000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/earncntlist"/>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  43. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. /*
  47. * 소계 및 총계를 생성한다.
  48. */
  49. function fSetRcptSum() {
  50. // 그리드 merge 및 합계 초기화
  51. grd_earncntlist.autoMerge = false;
  52. grd_earncntlist.mergeCells = "bycolrec";
  53. grd_earncntlist.subtotalPosition = "below";
  54. grd_earncntlist.multiTotals = true;
  55. grd_earncntlist.subtotal("clear", 0, 0);
  56. for(var i =0; i <grd_earncntlist.cols ; i++){
  57. if(i >= grd_earncntlist.colRef("cnt1")){
  58. grd_earncntlist.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", 1, "총계", false);
  59. }
  60. if(i == grd_earncntlist.colRef("totalcnt")){
  61. grd_earncntlist.mergeCol(i) = true;
  62. }else{
  63. grd_earncntlist.mergeCol(i) = false;
  64. }
  65. }
  66. grd_earncntlist.merge();
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
  72. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  73. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:110px; height:13px; font-family:돋움; vertical-align:middle; ">월별초진재진현황</caption>
  74. </group>
  75. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  76. <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; "/>
  77. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:198px; height:17px; ">기간 ~</caption>
  78. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  79. <input id="ipt_ftodd" ref="/root/send/srchtodd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:70px; top:8px; width:120px; height:19px; "/>
  80. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:215px; top:8px; width:120px; height:19px; "/>
  81. <button id="btn_excelsave" class="btn6_letter4" style="left:986px; top:7px; width:80px; height:22px; ">
  82. <caption>액셀저장</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  86. grd_earncntlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  87. ]]>
  88. </script>
  89. </button>
  90. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  91. <caption>출력</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. exeReportPreview("RPAHS03000", "XMLSTR", "/root/main/earncntlist","", "false","","","","","false");
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1139px; top:7px; width:56px; height:22px; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. model.setValue("/root/send/healexamflag", "C");
  103. submit("TRAHS03000");
  104. fSetRcptSum();
  105. ]]>
  106. </script>
  107. </button>
  108. </group>
  109. <datagrid id="grd_earncntlist" nodeset="/root/main/earncntlist/item" caption="일자^초진^재진^합계" colsep="^" colwidth="130, 100, 100, 100" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" rowheader="seq" rowsep="|" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  110. <col ref="hopedd" format="yyyy-mm" style="text-align:center; "/>
  111. <col ref="cnt1" format="#,###" style="text-align:right; "/>
  112. <col ref="cnt2" format="#,###" style="text-align:right; "/>
  113. <col ref="cnt3" format="#,###" style="text-align:right; "/>
  114. </datagrid>
  115. </xhtml:body>
  116. </xhtml:html>