SMRSG06600_식수단가 집계(영양).xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <init/>
  10. <send>
  11. <instcd/>
  12. <stocym/>
  13. <goodflag/>
  14. <stocdeptcd/>
  15. <avgwinamtlist/>
  16. </send>
  17. <temp/>
  18. <main>
  19. <list>
  20. <monthcostlist/>
  21. <costlist/>
  22. </list>
  23. </main>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. //화면 Control을 초기화한다
  30. fInitialize();
  31. ]]>
  32. </script>
  33. <submission id="TRRSG06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  34. <submission id="TRRSG06602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  42. <script type="javascript">
  43. <![CDATA[
  44. var RetrYn = "Y";
  45. function fInitialize() {
  46. misfGridInit(grd_monthcostlist);
  47. misfGridInit(grd_costlist);
  48. grd_monthcostlist.rowHeight(0) = "20";
  49. grd_monthcostlist.rowHeight(1) = "20";
  50. grd_costlist.rowHeight(0) = "20";
  51. grd_costlist.rowHeight(1) = "20";
  52. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  53. //misfMsterDetailSet(grd_monthcostlist,null, "TRRSG06601" ,"N");
  54. var curdate = getCurrentDate();
  55. model.setValue(ipt_stocym.attribute("ref") ,curdate.substr(0,6));
  56. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  57. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  58. // hidden column
  59. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  60. model.setValue(ipt_goodflag.attribute("ref"),'SF');
  61. //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
  62. model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  63. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  64. btn_monthpr.selected = "true";
  65. model.toggle("case_grdmonthpr");
  66. model.refresh();
  67. }
  68. function fCheckRetrieveData(pmsg)
  69. {
  70. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  71. {
  72. if(pmsg == true)
  73. {
  74. messageBox("기관코드를 " ,"C002");
  75. model.setFocus("cmb_instcd");
  76. }
  77. return false;
  78. }
  79. if(model.getValue(ipt_stocym.attribute("ref")).length== 0 )
  80. {
  81. if(pmsg == true)
  82. {
  83. messageBox("조회시작년월 " ,"C002");
  84. model.setFocus("ipt_stocfrym");
  85. }
  86. return false;
  87. }
  88. return true;
  89. }
  90. ]]>
  91. </script>
  92. </xhtml:head>
  93. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  94. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">식수단가 집계</caption>
  96. </group>
  97. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  98. <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  99. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <caption id="caption4" class="search_name" style="left:226px; top:9px; width:86px; height:17px; ">조회년월 :</caption>
  101. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  102. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  103. <caption>조회</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. if (sw_flag.selectedIndex == 0)
  107. {
  108. submit("TRRSG06601");
  109. } else {
  110. submit("TRRSG06602");
  111. }
  112. model.refresh();
  113. ]]>
  114. </script>
  115. </button>
  116. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  117. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:100; height:19px; ">
  118. <choices>
  119. <itemset>
  120. <label/>
  121. <value/>
  122. </itemset>
  123. </choices>
  124. </select1>
  125. <input id="ipt_stocym" ref="/root/send/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:312px; top:8px; width:100; height:19px; text-align:center; "/>
  126. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:632px; top:9px; width:51px; height:19px; "/>
  127. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:688px; top:8px; width:44px; height:19px; "/>
  128. </group>
  129. <button id="btn_costpr" class="btn_sw" group="tab" style="left:130px; top:54px; width:130px; height:22px; ">
  130. <caption>기간별 식수단가 집계</caption>
  131. <toggle case="case_grdcostpr" ev:event="onclick"/>
  132. </button>
  133. <button id="btn_monthpr" class="btn_sw" group="tab" style="left:0px; top:54px; width:130px; height:22px; ">
  134. <caption>월별 식수단가 집계</caption>
  135. <toggle case="case_grdmonthpr" ev:event="onclick"/>
  136. </button>
  137. <switch id="sw_flag" style="left:0px; top:75px; width:1195px; height:655px; ">
  138. <case id="case_grdmonthpr" selected="true">
  139. <line id="line15" class="line_1" style="x1:0px; y1:27px; x2:1190px; y2:27px; "/>
  140. <button id="button14" class="btn2_letter2" style="left:1148px; top:6px; width:42px; height:19px; ">
  141. <caption>엑셀</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. misfSaveExcel(grd_monthcostlist,"월별 식수단가 집계_"+model.getValue("/root/send/stocym"));
  145. ]]>
  146. </script>
  147. </button>
  148. <datagrid id="grd_monthcostlist" nodeset="/root/main/list/monthcostlist" caption="코드분류^코드분류^전년동월^전년동월^전년동월^전월^전월^전월^당월^당월^당월^증감율^증감율^|코드^품명^환자식^직원식^계^환자식^직원식^계^환자식^직원식^계^전년동월대비^전월대비^" colsep="^" colwidth="70, 115, 90, 90,100, 90, 90,100, 90, 90, 100, 78, 65,0,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:32px; width:1190px; height:610px; ">
  149. <col ref="lrgcd"/>
  150. <col ref="lrgnm" style="text-align:right; "/>
  151. <col ref="befyearpat" format="###,###,###" style="text-align:right; "/>
  152. <col ref="befyearemp" format="###,###,###" style="text-align:right; "/>
  153. <col ref="befyeartot" format="###,###,###" style="text-align:right; "/>
  154. <col ref="befmonpat" format="###,###,###" style="text-align:right; "/>
  155. <col ref="befmonemp" format="###,###,###" style="text-align:right; "/>
  156. <col ref="befmontot" format="###,###,###" style="text-align:right; "/>
  157. <col ref="realmonpat" format="###,###,###" style="text-align:right; "/>
  158. <col ref="realmonemp" format="###,###,###" style="text-align:right; "/>
  159. <col ref="realmontot" format="###,###,###" style="text-align:right; "/>
  160. <col ref="befyearodds" style="text-align:right; "/>
  161. <col ref="befmonodds" style="text-align:right; "/>
  162. <col ref="instcd" visiable="hidden" style="text-align:right; "/>
  163. </datagrid>
  164. </case>
  165. <case id="case_grdcostpr">
  166. <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:1190px; y2:27px; "/>
  167. <button id="button1" class="btn2_letter2" style="left:1146px; top:6px; width:42px; height:19px; ">
  168. <caption>엑셀</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. misfSaveExcel(grd_costlist,"기간별 식수단가 집계_"+ model.getValue("/root/send/stocym"));
  172. ]]>
  173. </script>
  174. </button>
  175. <datagrid id="grd_costlist" nodeset="/root/main/list/costlist" caption="코드분류^코드분류^전월^전월^전월^당월^당월^당월^기간별합계^기간별합계^기간별합계^|코드^품명^환자식^직원식^계^환자식^직원식^계^환자식^직원식^계^" colsep="^" colwidth="80, 145, 100, 100,100, 100, 100,100, 110, 110, 120, 0, 0,0,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:32px; width:1190px; height:610px; ">
  176. <col ref="lrgcd"/>
  177. <col ref="lrgnm" style="text-align:right; "/>
  178. <col ref="befmonpat" format="###,###,###" style="text-align:right; "/>
  179. <col ref="befmonemp" format="###,###,###" style="text-align:right; "/>
  180. <col ref="befmontot" format="###,###,###" style="text-align:right; "/>
  181. <col ref="realmonpat" format="###,###,###" style="text-align:right; "/>
  182. <col ref="realmonemp" format="###,###,###" style="text-align:right; "/>
  183. <col ref="realmontot" format="###,###,###" style="text-align:right; "/>
  184. <col ref="totcostpat" format="###,###,###" style="text-align:right; "/>
  185. <col ref="totcostemp" format="###,###,###" style="text-align:right; "/>
  186. <col ref="totcosttot" format="###,###,###" style="text-align:right; "/>
  187. <col ref="instcd" visiable="hidden" style="text-align:right; "/>
  188. </datagrid>
  189. </case>
  190. </switch>
  191. </group>
  192. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  193. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  194. <caption>출력</caption>
  195. </button>
  196. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  197. </group>
  198. </xhtml:body>
  199. </xhtml:html>