SMANS00600_임상영양관리현황.xrw 6.8 KB

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