SMANS00700_처방코드중분류별통계.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <dietlrgcd/>
  13. <dietmdlcd/>
  14. <dietsmlcd/>
  15. <dietcd/>
  16. <dietnm/>
  17. <breakmeal/>
  18. <lunchmeal/>
  19. <dinnermeal/>
  20. <dietsum/>
  21. </item>
  22. </list>
  23. </main>
  24. <send>
  25. <fromdd/>
  26. <todd/>
  27. <dietmdlcd/>
  28. <globalinstance>
  29. <instance1/>
  30. </globalinstance>
  31. </send>
  32. <init>
  33. <basecode>
  34. <dietlrg>
  35. <A0046>
  36. <cdid/>
  37. <cdnm/>
  38. </A0046>
  39. </dietlrg>
  40. <dietsml>
  41. <A0048>
  42. <cdid/>
  43. <cdnm/>
  44. </A0048>
  45. </dietsml>
  46. <inputcond>
  47. <A0053>
  48. <cdid/>
  49. <cdnm/>
  50. </A0053>
  51. </inputcond>
  52. <endflag>
  53. <A0054>
  54. <cdid/>
  55. <cdnm/>
  56. </A0054>
  57. </endflag>
  58. <mealflag>
  59. <A0055>
  60. <cdid/>
  61. <cdnm/>
  62. </A0055>
  63. </mealflag>
  64. </basecode>
  65. <code>
  66. <dietcls>
  67. <lrgcd/>
  68. <lrgnm/>
  69. <mdlcd/>
  70. <mdlnm/>
  71. </dietcls>
  72. <etcdietcls>
  73. <cdid/>
  74. <cdnm/>
  75. </etcdietcls>
  76. </code>
  77. <ward>
  78. <dept>
  79. <deptcd/>
  80. <depthngnm/>
  81. </dept>
  82. </ward>
  83. </init>
  84. <hidden/>
  85. </root>
  86. </instance>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  94. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. aezfSetSuppDeptcd(); // globalinstance 셋팅하기
  98. zbcfGetCodeList( new Array( "A0046", "A0048", "A0053", "A0054", "A0055" ), new Array( "/root/init/basecode/dietlrg", "/root/init/basecode/dietsml", "/root/init/basecode/inputcond", "/root/init/basecode/endflag", "/root/init/basecode/mealflag" ) );
  99. submit("TRANB00203"); // 식사/기타 분류코드 조회
  100. astfAddCombo("/root/init/code","dietcls","mdlcd,mdlnm",",");
  101. //var fromdd = getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
  102. //var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  103. var fromdd = getCurrentDate(); // 적용일자 현재일자 셋팅
  104. var todd = getCurrentDate(); // 적용일자 현재일자 셋팅
  105. model.removenode("/root/main/list/item");
  106. model.setValue("/root/send/fromdd", fromdd);
  107. model.setValue("/root/send/todd", todd);
  108. model.refresh();
  109. ]]>
  110. </script>
  111. <submission id="TRZBC00101"/>
  112. <submission id="TRANB00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/code"/>
  113. <submission id="TRANS00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  114. </model>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">영양팀 중분류별 통계</caption>
  119. </group>
  120. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  121. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">중분류별 통계</caption>
  122. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1183px; y2:65px; "/>
  123. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
  124. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  125. <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  126. <line id="line13" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:26px; "/>
  127. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  128. <caption>조회</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. if (model.getValue("/root/send/fromdd") == ""){
  132. messageBox("조회시작일자는", "I003");
  133. model.setFocus("ipt_fromdd");
  134. return;
  135. }
  136. if (model.getValue("/root/send/todd") == ""){
  137. messageBox("조회종료일자는", "I003");
  138. model.setFocus("ipt_todd");
  139. return;
  140. }
  141. if (isValidDateTime(model.getValue("/root/send/fromdd"), "YYYYMMDD") == false){
  142. messageBox("조회 시작일자의 형식이", "E016");
  143. model.setFocus("ipt_fromdd");
  144. return;
  145. }
  146. if (isValidDateTime(model.getValue("/root/send/todd"), "YYYYMMDD") == false){
  147. messageBox("조회 종료일자의 형식이", "E016");
  148. model.setFocus("ipt_todd");
  149. return;
  150. }
  151. if (model.getValue("/root/send/fromdd") > model.getValue("/root/send/todd")){
  152. messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  153. model.setFocus("ipt_fromdd");
  154. return;
  155. }
  156. submit("TRANS00701");
  157. ]]>
  158. </script>
  159. </button>
  160. <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:207px; top:6px; width:85px; height:19px; "/>
  161. <caption id="caption5" class="search_no_b" style="left:192px; top:7px; width:12px; height:17px; ">~</caption>
  162. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:106px; top:6px; width:85px; height:19px; "/>
  163. <caption id="caption3" class="search_name" visibility="visible" style="left:325px; top:7px; width:86px; height:17px; ">중분류 :</caption>
  164. <select1 id="combo1" ref="/root/send/dietmdlcd" visibility="visible" appearance="minimal" style="left:410px; top:6px; width:100px; height:19px; ">
  165. <choices>
  166. <itemset nodeset="/root/init/code/dietcls">
  167. <label ref="mdlnm"/>
  168. <value ref="mdlcd"/>
  169. </itemset>
  170. </choices>
  171. </select1>
  172. </group>
  173. <button id="btn_excsave" class="btn2_letter4" style="left:1120px; top:45px; width:64px; height:19px; ">
  174. <caption>엑셀저장</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  178. if (fileName != "") {
  179. grd_mealprcpcd.saveExcel(fileName);
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. <datagrid id="grd_mealprcpcd" nodeset="/root/main/list/item" class="datagrid2" caption="대분류^중분류^소분류^식사코드^식사명^조식^중식^석식^합계" colsep="^" colwidth="70, 100, 70, 100, 200, 100, 100, 100, 100" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:71px; width:1183px; height:624px; ">
  185. <col disabled="true" ref="dietlrgcd" type="combo" visibility="hidden" style="text-align:center; ">
  186. <choices>
  187. <itemset nodeset="/root/init/basecode/dietlrg/A0046">
  188. <label ref="cdnm"/>
  189. <value ref="cdid"/>
  190. </itemset>
  191. </choices>
  192. </col>
  193. <col disabled="true" ref="dietmdlcd" type="combo" style="text-align:center; ">
  194. <choices>
  195. <itemset nodeset="/root/init/code/dietcls">
  196. <label ref="mdlnm"/>
  197. <value ref="mdlcd"/>
  198. </itemset>
  199. </choices>
  200. </col>
  201. <col disabled="true" ref="dietsmlcd" type="combo" style="text-align:center; ">
  202. <choices>
  203. <itemset nodeset="/root/init/basecode/dietsml/A0048">
  204. <label ref="cdnm"/>
  205. <value ref="cdid"/>
  206. </itemset>
  207. </choices>
  208. </col>
  209. <col autonext="false" disabled="true" ref="dietcd" style="text-align:center; "/>
  210. <col disabled="true" ref="dietnm" style="text-align:center; "/>
  211. <col disabled="true" ref="breakmeal" style="text-align:center; "/>
  212. <col disabled="true" ref="lunchmeal" style="text-align:center; "/>
  213. <col disabled="true" ref="dinnermeal" style="text-align:center; "/>
  214. <col disabled="true" ref="dietsum" style="text-align:center; "/>
  215. </datagrid>
  216. </group>
  217. </xhtml:body>
  218. </xhtml:html>