SMANS00400_직원급식관리현황.xrw 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <data>
  11. <title/>
  12. <cdnm/>
  13. <mm1/>
  14. <mm2/>
  15. <mm3/>
  16. <mm4/>
  17. <mm5/>
  18. <mm6/>
  19. <mm7/>
  20. <mm8/>
  21. <mm9/>
  22. <mm10/>
  23. <mm11/>
  24. <mm12/>
  25. <mmsum/>
  26. <lastsum/>
  27. <difrate/>
  28. </data>
  29. </main>
  30. <send>
  31. <data>
  32. <fromdd/>
  33. <todd/>
  34. <lastfromdd/>
  35. </data>
  36. <gridcaption>
  37. <mm1/>
  38. <mm2/>
  39. <mm3/>
  40. <mm4/>
  41. <mm5/>
  42. <mm6/>
  43. <mm7/>
  44. <mm8/>
  45. <mm9/>
  46. <mm10/>
  47. <mm11/>
  48. <mm12/>
  49. <lastyy/>
  50. </gridcaption>
  51. </send>
  52. <init/>
  53. <hidden/>
  54. </root>
  55. </instance>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. ipt_fromdd.value = getCurrentDate().substr(0, 6);
  65. ipt_todd.value = getCurrentDate().substr(0, 6);
  66. makeReportPreview(5,55,1180,705);
  67. ]]>
  68. </script>
  69. <submission id="TRANS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main"/>
  70. </model>
  71. <script type="javascript">
  72. <![CDATA[
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  78. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">직원급식관리현황</caption>
  79. </group>
  80. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:770px; ">
  81. <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
  82. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; "/>
  83. <caption id="caption3" class="search_name" style="left:25px; top:9px; width:90px; height:17px; ">조회년월 :</caption>
  84. <line id="line14" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
  85. <input id="ipt_fromdd" ref="/root/send/data/fromdd" format="yyyy-mm" style="left:115px; top:9px; width:75px; height:19px; text-align:center; "/>
  86. <input id="ipt_todd" ref="/root/send/data/todd" format="yyyy-mm" style="left:210px; top:9px; width:75px; height:19px; text-align:center; "/>
  87. <caption id="caption11" class="search_n_b" style="left:195px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  88. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1110px; top:7px; width:56px; height:22px; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. if (model.getValue("/root/send/data/fromdd") == ""){
  93. messageBox("조회시작년월은", "I003");
  94. model.setFocus("ipt_fromdd");
  95. return;
  96. }
  97. if (model.getValue("/root/send/data/todd") == ""){
  98. messageBox("조회종료년월은", "I003");
  99. model.setFocus("ipt_todd");
  100. return;
  101. }
  102. if (isValidDateTime(model.getValue("/root/send/data/fromdd"), "YYYYMM") == false){
  103. messageBox("조회 시작년월의 형식이", "E016");
  104. model.setFocus("ipt_fromdd");
  105. return;
  106. }
  107. if (isValidDateTime(model.getValue("/root/send/data/todd"), "YYYYMM") == false){
  108. messageBox("조회 종료년월의 형식이", "E016");
  109. model.setFocus("ipt_todd");
  110. return;
  111. }
  112. if (model.getValue("/root/send/data/fromdd") > model.getValue("/root/send/data/todd")){
  113. messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
  114. model.setFocus("ipt_fromdd");
  115. return;
  116. }
  117. var fromdd = model.getValue("/root/send/data/fromdd");
  118. var fromdd2 = fromdd + "01";
  119. fromdd2 = fromdd2.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMM");
  120. model.setValue("/root/send/data/lastfromdd", fromdd2);
  121. submit("TRANS00401");
  122. //그리드의 caption을 조회년월에 따라 가변적으로 바꿔주기
  123. model.resetInstanceNode("/root/send/gridcaption");
  124. var sdate = model.getValue("/root/send/data/fromdd");
  125. var sdate1 = parseInt(sdate.substr(0, 4))-1;
  126. var sdate2 = sdate + "01";
  127. //출력물의 caption setting
  128. var todd = model.getValue("/root/send/data/todd");
  129. for (var i = 1; i <= 12; i++) {
  130. if (sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYYMM") <= todd) {
  131. model.setValue("/root/send/gridcaption[1]/mm" + i, sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYY/MM"));
  132. }
  133. }
  134. model.setValue("/root/send/gridcaption[1]/lastyy", sdate1);
  135. exeReportPreview("RPANS00401", "XMLSTR", "", "", "false","","","","","false", "", "");
  136. ]]>
  137. </script>
  138. </button>
  139. </group>
  140. <line id="line2" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
  141. <datagrid id="grd_data" nodeset="/root/main/data" visibility="hidden" caption="구분^구분^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^계^비고^비고|구분^구분^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^계^caption^증감비(%)" colsep="^" colwidth="70, 70, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 80, 80, 80" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" navindex="5" style="left:5px; top:55px; width:1180px; height:705px; text-align:center; ">
  142. <col ref="title"/>
  143. <col ref="cdnm"/>
  144. <col ref="mm1"/>
  145. <col ref="mm2"/>
  146. <col ref="mm3"/>
  147. <col ref="mm4"/>
  148. <col ref="mm5"/>
  149. <col ref="mm6"/>
  150. <col ref="mm7"/>
  151. <col ref="mm8"/>
  152. <col ref="mm9"/>
  153. <col ref="mm10"/>
  154. <col ref="mm11"/>
  155. <col ref="mm12"/>
  156. <col ref="mmsum"/>
  157. <col ref="lastsum"/>
  158. <col ref="difrate"/>
  159. </datagrid>
  160. </group>
  161. </xhtml:body>
  162. </xhtml:html>