SMANB01000_식품별입출고현황.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>식품월재고마감처리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <cond>
  10. <srch2>
  11. <instcd/>
  12. <instnm/>
  13. <strmm/>
  14. <endmm/>
  15. <pat_emp/>
  16. </srch2>
  17. </cond>
  18. <main>
  19. <stocinfo>
  20. <foodstocrsltlist/>
  21. </stocinfo>
  22. </main>
  23. <send>
  24. <reqdata/>
  25. </send>
  26. <init>
  27. </init>
  28. <hidden/>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. model.removeNodeset(grd_foodstocrsltlist.nodeset);
  38. model.setValue("/root/cond/srch2/instcd",getUserInfo("dutplceinstcd"));
  39. model.setValue("/root/cond/srch2/instnm",getUserInfo("dutplceinstnm"));
  40. model.setValue("/root/cond/srch2/strmm" ,getCurrentDate().substring(0,6));
  41. model.setValue("/root/cond/srch2/endmm" ,getCurrentDate().substring(0,6));
  42. model.setValue("/root/cond/srch2/pat_emp" , "P");
  43. model.refresh();
  44. ]]>
  45. </script>
  46. <script type="javascript">
  47. <![CDATA[
  48. function saveGridToExcel(grdObj){
  49. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  50. if (fileName != ""){
  51. grdObj.saveExcel(fileName, "SheetName", false, false, "", "", true);
  52. }
  53. }
  54. ]]>
  55. </script>
  56. <submission id="TRANB01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/stocinfo"/>
  57. </model>
  58. </xhtml:head>
  59. <xhtml:body guideline="2,701;1,1104;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:132px; height:13px; ">식품별 입출고 현황</caption>
  61. <case id="case1" selected="true" style="left:0px; top:0px; width:640px; height:340px; "/>
  62. <datagrid id="grd_foodstocrsltlist" nodeset="/root/main/stocinfo/foodstocrsltlist" caption="식품코드^식품명^ 이월수량^ 전월이월금액^ 입고수량^ 입고금액^출고수량^ 출고금액^ 재고수량^재고금액|식품코드^식품명^ 이월수량^ 전월이월금액^ 입고수량^ 입고금액^출고수량^ 출고금액^ 재고수량^재고금액" colsep="^" colwidth="99, 190, 70, 113, 70, 113, 70, 113, 70, 113" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:97px; width:1090px; height:678px; ">
  63. <col ref="goodcd" style="text-align:center; "/>
  64. <col ref="goodnm" style="text-align:left; "/>
  65. <col ref="beftotqty" format="#,###.##" style="text-align:center; "/>
  66. <col ref="beftotamt" format="#,###.##" style="text-align:right; "/>
  67. <col ref="inputqty" format="#,###.##" style="text-align:center; "/>
  68. <col ref="inputamt" format="#,###.##" style="text-align:right; "/>
  69. <col ref="outputqty" format="#,###.##" style="text-align:center; "/>
  70. <col ref="outputamt" format="#,###.##" style="text-align:right; "/>
  71. <col ref="apptotqty" format="#,###.##" style="text-align:center; "/>
  72. <col ref="apptotamt" format="#,###.##" style="text-align:right; "/>
  73. </datagrid>
  74. <caption id="caption18" class="tit_2" style="left:5px; top:75px; width:140px; height:20px; ">식품별 리스트</caption>
  75. <button id="button4" class="btn2_letter2" style="left:1049px; top:72px; width:42px; height:19px; ">
  76. <caption>엑셀</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. saveGridToExcel(grd_foodstocrsltlist);
  80. ]]>
  81. </script>
  82. </button>
  83. <group id="group3" style="left:0px; top:20px; width:1100px; height:40px; vertical-align:top; ">
  84. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1095px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <caption id="caption17" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
  86. <output id="output2" ref="/root/cond/srch2/instcd" class="output_fix" style="left:95px; top:10px; width:30px; height:19px; "/>
  87. <output id="output3" ref="/root/cond/srch2/instnm" class="output_fix" style="left:128px; top:10px; width:202px; height:19px; text-align:center; "/>
  88. <button id="button9" class="btn4_letter2" style="left:1010px; top:10px; width:56px; height:22px; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/srch2/instcd"));
  93. model.makeValue("/root/send/reqdata/strmm" ,model.getValue("/root/cond/srch2/strmm"));
  94. model.makeValue("/root/send/reqdata/endmm" ,model.getValue("/root/cond/srch2/endmm"));
  95. model.makeValue("/root/send/reqdata/pat_emp" ,model.getValue("/root/cond/srch2/pat_emp"));
  96. if(submit("TRANB01001")){
  97. grd_foodstocrsltlist.subtotalPosition = "below";
  98. grd_foodstocrsltlist.subtotal("clear", -1, i, "format:(-,+)#,###.#; roundmode:round; roundpostion:2", "background-color:#ffff99; font-weight:bold; text-align:center", 1, "총계" );
  99. for(var i=0; i < grd_foodstocrsltlist.cols; i++){
  100. if(i >= grd_foodstocrsltlist.colRef("beftotqty")){
  101. grd_foodstocrsltlist.subtotal("sum", -1, i, "format:(-,+)#,###.#; roundmode:round; roundpostion:2", "background-color:#ffff99; font-weight:bold; text-align:center", 1, "총계" );
  102. }
  103. }
  104. grd_foodstocrsltlist.refresh();
  105. }
  106. ]]>
  107. </script>
  108. </button>
  109. <caption id="caption19" class="search_name" style="left:355px; top:10px; width:101px; height:17px; ">기간 :</caption>
  110. <input id="input4" ref="/root/cond/srch2/strmm" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:416px; top:11px; width:97px; height:19px; text-align:center; "/>
  111. <line id="line14" class="line_4" style="x1:990px; y1:5px; x2:990px; y2:33px; "/>
  112. <caption id="caption11" class="search_no_b" style="left:521px; top:11px; width:12px; height:17px; ">~</caption>
  113. <input id="input5" ref="/root/cond/srch2/endmm" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:536px; top:11px; width:97px; height:19px; text-align:center; "/>
  114. <caption id="caption1" class="search_name" style="left:685px; top:10px; width:60px; height:17px; ">구분:</caption>
  115. <select1 id="rdo_diet" ref="/root/cond/srch2/pat_emp" class="radio_search" appearance="full" cellspacing="2" cols="4" rows="1" overflow="visible" style="left:743px; top:11px; width:134px; height:19px; ">
  116. <choices>
  117. <item>
  118. <label>환자식</label>
  119. <value>P</value>
  120. </item>
  121. <item>
  122. <label>직원식</label>
  123. <value>E</value>
  124. </item>
  125. </choices>
  126. </select1>
  127. </group>
  128. <button id="button13" class="btn6_letter2" style="left:985px; top:70px; width:56px; height:22px; ">
  129. <caption>출력</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. exeReportPreview("RPANB01001","XMLSTR");
  133. ]]>
  134. </script>
  135. </button>
  136. </xhtml:body>
  137. </xhtml:html>