SMRSG02200_환자식및직원식지출현황.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. <init/>
  10. <send>
  11. <instcd/>
  12. <stocym/>
  13. <goodflag/>
  14. <stocdeptcd/>
  15. </send>
  16. <temp/>
  17. <main>
  18. <list>
  19. <nutrstocgubunamt/>
  20. </list>
  21. </main>
  22. </root>
  23. </instance>
  24. <script type="javascript" ev:event="xforms-ready">
  25. <![CDATA[
  26. //화면 Control을 초기화한다
  27. fInitialize();
  28. ]]>
  29. </script>
  30. <submission id="TRRSG02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  31. </model>
  32. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. var RetrYn = "Y";
  41. function fInitialize() {
  42. misfGridInit(grd_nutrstocgubunamt);
  43. grd_nutrstocgubunamt.rowHeight(0) = "20";
  44. grd_nutrstocgubunamt.rowHeight(1) = "20";
  45. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  46. misfMsterDetailSet(grd_nutrstocgubunamt,null, "TRRSG02201" ,"N");
  47. var curdate = getCurrentDate();
  48. model.setValue(ipt_stocym.attribute("ref") ,curdate);
  49. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  50. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  51. // hidden column
  52. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  53. model.setValue(ipt_goodflag.attribute("ref"),'SF');
  54. //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
  55. model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  56. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  57. // grd_nutrstocgubunamt.mergecells = "bycol";
  58. // grid sum
  59. grd_nutrstocgubunamt.subtotalposition = "after";
  60. model.refresh();
  61. }
  62. function fCheckRetrieveData(pmsg)
  63. {
  64. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  65. {
  66. if(pmsg == true)
  67. {
  68. messageBox("기관코드를 " ,"C002");
  69. model.setFocus("cmb_instcd");
  70. }
  71. return false;
  72. }
  73. if(model.getValue(ipt_stocym.attribute("ref")).length== 0 )
  74. {
  75. if(pmsg == true)
  76. {
  77. messageBox("기준년월 " ,"C002");
  78. model.setFocus("ipt_stocym");
  79. }
  80. return false;
  81. }
  82. /*
  83. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  84. {
  85. if(pmsg == true)
  86. {
  87. messageBox("공급처를 " ,"C001");
  88. model.setFocus("ipt_suplplcecd");
  89. }
  90. return false;
  91. }
  92. */
  93. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  94. {
  95. if(pmsg == true)
  96. {
  97. messageBox("입고부서를 " ,"C001");
  98. model.setFocus("ipt_windeptcd");
  99. }
  100. return false;
  101. }
  102. if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
  103. {
  104. if(pmsg == true)
  105. {
  106. messageBox("입고시작일자를 " ,"C001");
  107. model.setFocus("ipt_winfrdd");
  108. }
  109. return false;
  110. }
  111. if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
  112. {
  113. if(pmsg == true)
  114. {
  115. messageBox("입고종료일자를 " ,"C001");
  116. model.setFocus("ipt_wintodd");
  117. }
  118. return false;
  119. }
  120. return true;
  121. }
  122. ]]>
  123. </script>
  124. </xhtml:head>
  125. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  126. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  127. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자식 및 직원식 지출현황</caption>
  128. </group>
  129. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  130. <caption id="caption21" class="tit_2" style="left:5px; top:54px; width:188px; height:14px; ">환자식 및 직원식 지출현황</caption>
  131. <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  132. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  133. <caption id="caption4" class="search_name" style="left:224px; top:9px; width:86px; height:17px; ">기준년월 :</caption>
  134. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  135. <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  136. <caption>조회</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. //if(fCheckRetrieveData(false) == false)return;
  140. misfMsterDetailRetrieve();
  141. // merge가 안되네..
  142. //grd_nutrstocgubunamt.mergecol(2) = true;
  143. grd_nutrstocgubunamt.subtotal("clear", 0, 0);
  144. /*
  145. grd_nutrstocgubunamt.subtotal("sum", 2, 5, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", true);
  146. grd_nutrstocgubunamt.subtotal("sum", 2, 6, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", true);
  147. grd_nutrstocgubunamt.subtotal("sum", 2, 7, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", true);
  148. grd_nutrstocgubunamt.subtotal("sum", 2, 8, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", true);
  149. */
  150. // 총합계 ( sub합계보다 먼저 선언되어야한다.)
  151. grd_nutrstocgubunamt.subtotal("sum", 1, 5, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 2, "TOTAL");
  152. grd_nutrstocgubunamt.subtotal("sum", 1, 6, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 2, "TOTAL");
  153. grd_nutrstocgubunamt.subtotal("sum", 1, 7, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 2, "TOTAL");
  154. grd_nutrstocgubunamt.subtotal("sum", 1, 8, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 2, "TOTAL");
  155. // 구분별 합계 ( total 합계가 먼저 선언되어야한다)
  156. grd_nutrstocgubunamt.subtotal("sum", 2, 5, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 3, "SUB합계");
  157. grd_nutrstocgubunamt.subtotal("sum", 2, 6, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 3, "SUB합계");
  158. grd_nutrstocgubunamt.subtotal("sum", 2, 7, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 3, "SUB합계");
  159. grd_nutrstocgubunamt.subtotal("sum", 2, 8, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 3, "SUB합계");
  160. //fAfterRetrieve();
  161. model.refresh();
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  166. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:100; height:19px; ">
  167. <choices>
  168. <itemset>
  169. <label/>
  170. <value/>
  171. </itemset>
  172. </choices>
  173. </select1>
  174. <input id="ipt_stocym" ref="/root/send/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:310px; top:8px; width:100px; height:19px; text-align:center; "/>
  175. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:516px; top:8px; width:100px; height:19px; "/>
  176. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:618px; top:8px; width:100px; height:19px; "/>
  177. </group>
  178. <line id="line15" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  179. <button id="button14" class="btn2_letter2" style="left:1153px; top:48px; width:42px; height:19px; ">
  180. <caption>엑셀</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. misfSaveExcel(grd_nutrstocgubunamt,"환자식및직원식지출현황");
  184. ]]>
  185. </script>
  186. </button>
  187. <datagrid id="grd_nutrstocgubunamt" nodeset="/root/main/list/nutrstocgubunamt" caption="subtotal용임시^구분^대분류^대분류^전월재고액^당월구입액^당월소모액^당월잔고액^비고^" colsep="^" colwidth="18, 103, 69, 114, 189, 163, 183, 204, 312" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:660px; ">
  188. <col ref="tmpsum" visibility="hidden"/>
  189. <col ref="gubun" style="text-align:center; "/>
  190. <col ref="lrgcd"/>
  191. <col ref="lrgnm"/>
  192. <col ref="brngfwrdamt" format="###,###,###.##" style="text-align:right; "/>
  193. <col ref="winamt" format="###,###,###.##" style="text-align:right; "/>
  194. <col ref="deliveamt" format="###,###,###.##" style="text-align:right; "/>
  195. <col ref="stocamt" format="###,###,###.##" style="text-align:right; "/>
  196. <col/>
  197. </datagrid>
  198. </group>
  199. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  200. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  201. <caption>출력</caption>
  202. </button>
  203. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  204. </group>
  205. </xhtml:body>
  206. </xhtml:html>