SMANS01100_병동별식수현황.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <list>
  11. <item>
  12. <wardnm/>
  13. <breakmeal/>
  14. <lunchmeal/>
  15. <dinnermeal/>
  16. <mdlsum/>
  17. </item>
  18. </list>
  19. </main>
  20. <send>
  21. <fromdd/>
  22. <todd/>
  23. <globalinstance>
  24. <instance1/>
  25. </globalinstance>
  26. </send>
  27. <hidden/>
  28. </root>
  29. </instance>
  30. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  35. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  36. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  37. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. aezfSetSuppDeptcd(); // globalinstance 셋팅하기
  41. //var fromdd = getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
  42. //var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  43. var fromdd = getCurrentDate(); // 적용일자 현재일자 셋팅
  44. var todd = getCurrentDate(); // 적용일자 현재일자 셋팅
  45. model.removenode("/root/main/list/item");
  46. model.setValue("/root/send/fromdd", fromdd);
  47. model.setValue("/root/send/todd", todd);
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <submission id="TRZBC00101"/>
  52. <submission id="TRANS01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  53. </model>
  54. </xhtml:head>
  55. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  56. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  57. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">병동별 식수 현황</caption>
  58. </group>
  59. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  60. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:15px; ">병동별 식수 통계</caption>
  61. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1183px; y2:65px; "/>
  62. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  63. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  64. <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  65. <line id="line13" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:26px; "/>
  66. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  67. <caption>조회</caption>
  68. <script type="javascript" ev:event="DOMActivate">
  69. <![CDATA[
  70. if (model.getValue("/root/send/fromdd") == ""){
  71. messageBox("조회시작일자는", "I003");
  72. model.setFocus("ipt_fromdd");
  73. return;
  74. }
  75. if (model.getValue("/root/send/todd") == ""){
  76. messageBox("조회종료일자는", "I003");
  77. model.setFocus("ipt_todd");
  78. return;
  79. }
  80. if (isValidDateTime(model.getValue("/root/send/fromdd"), "YYYYMMDD") == false){
  81. messageBox("조회 시작일자의 형식이", "E016");
  82. model.setFocus("ipt_fromdd");
  83. return;
  84. }
  85. if (isValidDateTime(model.getValue("/root/send/todd"), "YYYYMMDD") == false){
  86. messageBox("조회 종료일자의 형식이", "E016");
  87. model.setFocus("ipt_todd");
  88. return;
  89. }
  90. if (model.getValue("/root/send/fromdd") > model.getValue("/root/send/todd")){
  91. messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  92. model.setFocus("ipt_fromdd");
  93. return;
  94. }
  95. submit("TRANS01101");
  96. grd_mealprcpcd.subtotalPosition = "below";
  97. grd_mealprcpcd.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
  98. for(var i=0; i < grd_mealprcpcd.cols; i++){
  99. if(i >= grd_mealprcpcd.colRef("breakmeal")){
  100. grd_mealprcpcd.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 1, "총계" );
  101. }
  102. }
  103. grd_mealprcpcd.refresh();
  104. ]]>
  105. </script>
  106. </button>
  107. <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="2" visibility="hidden" inputtype="date" style="left:207px; top:6px; width:85px; height:19px; "/>
  108. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:106px; top:6px; width:85px; height:19px; "/>
  109. </group>
  110. <button id="btn_excsave" class="btn2_letter4" style="left:1120px; top:45px; width:64px; height:19px; ">
  111. <caption>엑셀저장</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  115. if (fileName != "") {
  116. grd_mealprcpcd.saveExcel(fileName);
  117. }
  118. ]]>
  119. </script>
  120. </button>
  121. <datagrid id="grd_mealprcpcd" nodeset="/root/main/list/item" class="datagrid2" caption="구분^조식^중식^석식^합계" colsep="^" colwidth="263, 100, 100, 100, 100" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:71px; width:1183px; height:664px; ">
  122. <col disabled="true" ref="wardnm" style="text-align:center; "/>
  123. <col disabled="true" ref="breakmeal" style="text-align:center; "/>
  124. <col disabled="true" ref="lunchmeal" style="text-align:center; "/>
  125. <col disabled="true" ref="dinnermeal" style="text-align:center; "/>
  126. <col disabled="true" ref="mdlsum" format="#,###" style="text-align:center; "/>
  127. </datagrid>
  128. </group>
  129. <button id="btn_print" class="btn6_letter2" style="left:10px; top:755px; width:56px; height:22px; ">
  130. <caption>출력</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. exeReportPreview("RPANS01101", "XMLSTR", "/root/main/list");
  134. ]]>
  135. </script>
  136. </button>
  137. </xhtml:body>
  138. </xhtml:html>