SMRSG02600_지출현황(영양).xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. <goodflag/>
  13. <stocdeptcd/>
  14. <stocfrym/>
  15. <stoctoym/>
  16. <goodcd/>
  17. <goodnm/>
  18. </send>
  19. <temp/>
  20. <main>
  21. <list>
  22. <nutrstoccustbiyul/>
  23. <goodlist/>
  24. </list>
  25. </main>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. //화면 Control을 초기화한다
  31. fInitialize();
  32. ]]>
  33. </script>
  34. <submission id="TRRSG02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  35. <submission id="TRRSG02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  40. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. var RetrYn = "Y";
  46. function fInitialize() {
  47. misfGridInit(grd_nutrcustbiyul);
  48. misfGridInit(grd_goodlist);
  49. grd_nutrcustbiyul.rowHeight(0) = "20";
  50. grd_nutrcustbiyul.rowHeight(1) = "20";
  51. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  52. misfMsterDetailSet(grd_nutrcustbiyul,null, "TRRSG02601" ,"N");
  53. //misfMsterDetailSet(grd_goodlist,null, "TRRSG02602" ,"N");
  54. var curdate = getCurrentDate();
  55. model.setValue(ipt_stocfrym.attribute("ref") ,curdate);
  56. model.setValue(ipt_stoctoym.attribute("ref") ,curdate);
  57. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  58. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  59. // hidden column
  60. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  61. model.setValue(ipt_goodflag.attribute("ref"),'SF');
  62. //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
  63. model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  64. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  65. btn_custpr.selected = "true";
  66. model.toggle("case_grdcustpr");
  67. model.refresh();
  68. }
  69. function fCheckRetrieveData(pmsg)
  70. {
  71. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  72. {
  73. if(pmsg == true)
  74. {
  75. messageBox("기관코드를 " ,"C002");
  76. model.setFocus("cmb_instcd");
  77. }
  78. return false;
  79. }
  80. if(model.getValue(ipt_stocym.attribute("ref")).length== 0 )
  81. {
  82. if(pmsg == true)
  83. {
  84. messageBox("기준년월 " ,"C002");
  85. model.setFocus("ipt_stocym");
  86. }
  87. return false;
  88. }
  89. /*
  90. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  91. {
  92. if(pmsg == true)
  93. {
  94. messageBox("공급처를 " ,"C001");
  95. model.setFocus("ipt_suplplcecd");
  96. }
  97. return false;
  98. }
  99. */
  100. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  101. {
  102. if(pmsg == true)
  103. {
  104. messageBox("입고부서를 " ,"C001");
  105. model.setFocus("ipt_windeptcd");
  106. }
  107. return false;
  108. }
  109. if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
  110. {
  111. if(pmsg == true)
  112. {
  113. messageBox("입고시작일자를 " ,"C001");
  114. model.setFocus("ipt_winfrdd");
  115. }
  116. return false;
  117. }
  118. if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
  119. {
  120. if(pmsg == true)
  121. {
  122. messageBox("입고종료일자를 " ,"C001");
  123. model.setFocus("ipt_wintodd");
  124. }
  125. return false;
  126. }
  127. return true;
  128. }
  129. ]]>
  130. </script>
  131. </xhtml:head>
  132. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  133. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  134. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">영양 지출현황</caption>
  135. </group>
  136. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:717px; ">
  137. <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  138. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  139. <caption id="caption4" class="search_name" style="left:226px; top:9px; width:86px; height:17px; ">입고일자 :</caption>
  140. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  141. <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. //if(fCheckRetrieveData(false) == false)return;
  146. if(sw_flag.selectedIndex == 0)
  147. {
  148. //misfMsterDetailRetrieve();
  149. submit("TRRSG02601");
  150. } else if (sw_flag.selectedIndex == 1)
  151. {
  152. submit("TRRSG02602");
  153. }
  154. model.refresh();
  155. //fAfterRetrieve();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  160. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:100; height:19px; ">
  161. <choices>
  162. <itemset>
  163. <label/>
  164. <value/>
  165. </itemset>
  166. </choices>
  167. </select1>
  168. <input id="ipt_stocfrym" ref="/root/send/stocfrym" class="input_s_essential" inputtype="date" style="left:312px; top:8px; width:100; height:19px; text-align:center; "/>
  169. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:923px; top:7px; width:42px; height:19px; "/>
  170. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:980px; top:7px; width:45px; height:19px; "/>
  171. <input id="ipt_stoctoym" ref="/root/send/stoctoym" class="input_s_essential" inputtype="date" style="left:431px; top:8px; width:104px; height:19px; ">
  172. <script type="javascript" ev:event="xforms-value-changed">
  173. <![CDATA[
  174. //btn_search.dispatch("DOMActivate");
  175. ]]>
  176. </script>
  177. </input>
  178. <caption id="caption22" style="left:414px; top:8px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  179. <caption id="caption1" class="search_name" visibility="hidden" style="left:560px; top:9px; width:115px; height:17px; ">식자재코드 :</caption>
  180. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_search" visibility="hidden" _chartype="upper" style="left:665px; top:8px; width:80px; height:19px; ">
  181. <script type="javascript" ev:event="xforms-value-changed">
  182. <![CDATA[
  183. if(ipt_goodcd.value.length == 0)
  184. ipt_goodnm.value = "";
  185. else
  186. /*
  187. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  188. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  189. ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,ipt_goodflag,ipt_goodcd");
  190. */
  191. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  192. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  193. ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,ipt_goodflag,"+ model.getValue(ipt_goodcd.attribute("ref")) );
  194. model.refresh();
  195. ]]>
  196. </script>
  197. </input>
  198. <button id="button2" class="icon_search" visibility="hidden" style="left:748px; top:9px; width:16px; height:16px; ">
  199. <caption/>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </button>
  207. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_fix" visibility="hidden" appearance="input" style="left:766px; top:8px; width:133px; height:19px; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. if(ipt_goodnm.value.length == 0)
  211. ipt_goodcd.value = "";
  212. else
  213. /*
  214. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  215. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  216. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  217. */
  218. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  219. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd",
  220. ipt_goodcd,"SPRSD00210","instcd,goodflag,goodnm","cmb_instcd,ipt_goodflag,"+ model.getValue(ipt_goodnm.attribute("ref")) );
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </input>
  225. </group>
  226. <switch id="sw_flag" class="sw_box" style="left:0px; top:75px; width:1193px; height:640px; border-style:solid; ">
  227. <case id="case_grdcustpr" selected="true">
  228. <line id="line15" class="line_1" style="x1:0px; y1:24px; x2:1191px; y2:24px; "/>
  229. <button id="button14" class="btn2_letter2" style="left:1145px; top:4px; width:42px; height:19px; ">
  230. <caption>엑셀</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. misfSaveExcel(grd_nutrcustbiyul,"거래처별지출현황");
  234. ]]>
  235. </script>
  236. </button>
  237. <datagrid id="grd_nutrcustbiyul" nodeset="/root/main/list/nutrstoccustbiyul" caption="거래처^거래처^환자식금액^환자식금액^직원식금액^직원식금액^합계^^비율(%)^^^^|거래처^거래처^일반식^치료식^직원식^직원야식^합계^^비율(%)^^^^" colsep="^" colwidth="100, 150, 160, 160, 150, 150, 200, 0, 100,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:29px; width:1190px; height:598px; ">
  238. <col ref="maincustlastsuplplce"/>
  239. <col ref="maincustlastsuplplcenm"/>
  240. <col ref="custpatwinamt" format="###,###,###.##" style="text-align:right; "/>
  241. <col ref="custcurwinamt" format="###,###,###.##" style="text-align:right; "/>
  242. <col ref="custempwinamt" format="###,###,###.##" style="text-align:right; "/>
  243. <col ref="custempnigtwinamt" format="###,###,###.##" style="text-align:right; "/>
  244. <col ref="custtotwinamt" format="###,###,###.##" style="text-align:right; "/>
  245. <col ref="custbiyul" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
  246. <col ref="custbiyul2" format="###,###,###.##" style="text-align:right; "/>
  247. <col ref="winamtvat" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
  248. <col ref="totwinamtwithvat" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
  249. <col ref="totwinamt" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
  250. </datagrid>
  251. </case>
  252. <case id="case_grdgoodpr" style="left:0px; top:0px; width:1193px; height:643px; ">
  253. <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  254. <button id="button10" class="btn2_letter2" style="left:1145px; top:4px; width:42px; height:19px; ">
  255. <caption>엑셀</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. misfSaveExcel(grd_goodlist,"식품별지출현황");
  259. ]]>
  260. </script>
  261. </button>
  262. <datagrid id="grd_goodlist" nodeset="/root/main/list/goodlist" caption="입고일자^식품명^^단위^단가^환자식수량^환자식수량^직원식수량^직원식수량^환자식금액^환자식금액^직원식금액^직원식금액^총합계액^^^^^^|입고일자^식품명^^단위^단가^G^T^S^N^G^T^S^N^총합계액^^^^^^" colsep="^" colwidth="100, 150, 0, 50, 50, 80, 80, 80, 80, 90, 90, 90, 90, 135,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:29px; width:1190px; height:590px; ">
  263. <col ref="windd" format="yyyy-mm-dd"/>
  264. <col ref="goodnm"/>
  265. <col ref="goodcd" visiable="hidden"/>
  266. <col ref="winunit"/>
  267. <col ref="winunitcost" format="#,###.#" style="text-align:right; "/>
  268. <col ref="patmealwinqty" format="#,###.#" style="text-align:right; "/>
  269. <col ref="curemealwinqty" format="#,###.#" style="text-align:right; "/>
  270. <col ref="empmealwinqty" format="#,###.#" style="text-align:right; "/>
  271. <col ref="empnigtmealwinqty" format="#,###.#" style="text-align:right; "/>
  272. <col ref="patmealwinamt" format="###,###,###.##" style="text-align:right; "/>
  273. <col ref="curemealwinamt" format="###,###,###.##" style="text-align:right; "/>
  274. <col ref="empmealwinamt" format="###,###,###.##" style="text-align:right; "/>
  275. <col ref="empnigtmealwinamt" format="###,###,###.##" style="text-align:right; "/>
  276. <col ref="totwinamt" format="###,###,###.##" style="text-align:right; "/>
  277. <col ref="instcd" visiable="hidden" style="text-align:right; "/>
  278. <col ref="slipdd" visiable="hidden" style="text-align:right; "/>
  279. <col ref="slipno" visiable="hidden" style="text-align:right; "/>
  280. <col ref="reqdeptcd" visiable="hidden" style="text-align:right; "/>
  281. </datagrid>
  282. </case>
  283. </switch>
  284. <button id="btn_custpr" class="btn_sw" group="tab" style="left:0px; top:54px; width:95px; height:22px; ">
  285. <caption>거 래 처 별</caption>
  286. <toggle case="case_grdcustpr" ev:event="onclick"/>
  287. </button>
  288. <button id="btn_goodpr" class="btn_sw" group="tab" style="left:95px; top:54px; width:100px; height:22px; ">
  289. <caption>식 품 별</caption>
  290. <toggle case="case_grdgoodpr" ev:event="onclick"/>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. caption1.visible = true;
  294. ipt_goodcd.visible = true;
  295. button2.visible = true;
  296. ipt_goodnm.visible = true;
  297. model.refresh();
  298. ]]>
  299. </script>
  300. </button>
  301. </group>
  302. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  303. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  304. <caption>출력</caption>
  305. </button>
  306. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  307. </group>
  308. </xhtml:body>
  309. </xhtml:html>