SMANS00200_환자급식관리현황.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. <patmeal>
  11. <patmeallist>
  12. <fromdd/>
  13. <todd/>
  14. <dietcd/>
  15. <mm01/>
  16. <mm02/>
  17. <mm03/>
  18. <mm04/>
  19. <mm05/>
  20. <mm06/>
  21. <mm07/>
  22. <mm08/>
  23. <mm09/>
  24. <mm10/>
  25. <mm11/>
  26. <mm12/>
  27. <mdlsum/>
  28. <lastsum/>
  29. <difrate/>
  30. </patmeallist>
  31. </patmeal>
  32. <gridcaption>
  33. <mm1/>
  34. <mm2/>
  35. <mm3/>
  36. <mm4/>
  37. <mm5/>
  38. <mm6/>
  39. <mm7/>
  40. <mm8/>
  41. <mm9/>
  42. <mm10/>
  43. <mm11/>
  44. <mm12/>
  45. <lastyy/>
  46. </gridcaption>
  47. </main>
  48. <send>
  49. <data>
  50. <fromdd/>
  51. <todd/>
  52. <lastfromdd/>
  53. </data>
  54. </send>
  55. <init>
  56. </init>
  57. <hidden>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. ipt_fromdd.value = getCurrentDate().substr(0, 6);
  69. ipt_todd.value = getCurrentDate().substr(0, 6);
  70. makeReportPreview(5,55,1170,700);
  71. ]]>
  72. </script>
  73. <submission id="TRANS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/patmeal"/>
  74. </model>
  75. </xhtml:head>
  76. <xhtml:body guideline="1,750;" 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:800px; ">
  81. <group id="group1" style="left:5px; top:10px; width:1180px; height:35px; vertical-align:top; ">
  82. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  83. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회년월 :</caption>
  84. <line id="line13" class="line_4" style="x1:1095px; y1:7px; x2:1095px; y2:29px; "/>
  85. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1110px; top:7px; width:56px; height:22px; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. if (model.getValue("/root/send/data/fromdd") == ""){
  90. messageBox("조회시작년월은", "I003");
  91. model.setFocus("ipt_fromdd");
  92. return;
  93. }
  94. if (model.getValue("/root/send/data/todd") == ""){
  95. messageBox("조회종료년월은", "I003");
  96. model.setFocus("ipt_todd");
  97. return;
  98. }
  99. if (isValidDateTime(model.getValue("/root/send/data/fromdd"), "YYYYMM") == false){
  100. messageBox("조회 시작년월의 형식이", "E016");
  101. model.setFocus("ipt_fromdd");
  102. return;
  103. }
  104. if (isValidDateTime(model.getValue("/root/send/data/todd"), "YYYYMM") == false){
  105. messageBox("조회 종료년월의 형식이", "E016");
  106. model.setFocus("ipt_todd");
  107. return;
  108. }
  109. if (model.getValue("/root/send/data/fromdd") > model.getValue("/root/send/data/todd")){
  110. messageBox("조회 시작년월은 종료년월 보다 클 수", "I004");
  111. model.setFocus("ipt_fromdd");
  112. return;
  113. }
  114. var fromdd = model.getValue("/root/send/data/fromdd");
  115. var fromdd2 = fromdd + "01";
  116. fromdd2 = fromdd2.toDate().getAddDate(-1,"Y").getDateFormat("YYYYMM");
  117. model.setValue("/root/send/data/lastfromdd", fromdd2);
  118. submit("TRANS00201");
  119. //그리드의 caption을 조회년월에 따라 가변적으로 바꿔주기
  120. model.resetInstanceNode("/root/main/gridcaption");
  121. var sdate = model.getValue("/root/send/data/fromdd");
  122. var sdate1 = parseInt(sdate.substr(0, 4))-1;
  123. var sdate2 = sdate + "01";
  124. //출력물의 caption setting
  125. var todd = model.getValue("/root/send/data/todd");
  126. for (var i = 1; i <= 12; i++) {
  127. if (sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYYMM") <= todd) {
  128. model.setValue("/root/main/gridcaption[1]/mm" + i, sdate2.toDate().getAddDate(+(i-1),"M").getDateFormat("YYYY/MM"));
  129. }
  130. }
  131. model.setValue("/root/main/gridcaption[1]/lastyy", sdate1);
  132. exeReportPreview("RPANS00201", "XMLSTR", "", "", "false","","","","","false", "", "");
  133. ]]>
  134. </script>
  135. </button>
  136. <input id="ipt_fromdd" ref="/root/send/data/fromdd" format="yyyy-mm" style="left:110px; top:10px; width:75px; height:19px; text-align:center; "/>
  137. <input id="ipt_todd" ref="/root/send/data/todd" format="yyyy-mm" style="left:205px; top:9px; width:75px; height:19px; text-align:center; "/>
  138. <caption id="caption11" class="search_n_b" style="left:190px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  139. </group>
  140. <line id="line1" class="line_1" style="x1:5px; y1:50px; x2:1185px; y2:50px; "/>
  141. <datagrid id="grd_patmeal" nodeset="/root/main/patmeal/patmeallist" 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="130, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 100, 104, 104" 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="dietcd"/>
  143. <col ref="mm01"/>
  144. <col ref="mm02"/>
  145. <col ref="mm03"/>
  146. <col ref="mm04"/>
  147. <col ref="mm05"/>
  148. <col ref="mm06"/>
  149. <col ref="mm07"/>
  150. <col ref="mm08"/>
  151. <col ref="mm09"/>
  152. <col ref="mm10"/>
  153. <col ref="mm11"/>
  154. <col ref="mm12"/>
  155. <col ref="mdlsum"/>
  156. <col ref="lastsum"/>
  157. <col ref="difrate"/>
  158. </datagrid>
  159. </group>
  160. </xhtml:body>
  161. </xhtml:html>