SMRSD10200_부가가치세 물품내역 조회(경북대).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. <instcd/>
  11. <instnm/>
  12. <srchfromdd/>
  13. <srchtodd/>
  14. <goodflag>A</goodflag>
  15. <goodcd/>
  16. <suplplcecd/>
  17. <suplplcenm/>
  18. </cond>
  19. <main>
  20. <list>
  21. <addtaxsumgoodinfo>
  22. <addtaxsumgoodlist/>
  23. </addtaxsumgoodinfo>
  24. </list>
  25. </main>
  26. <init>
  27. <totalsumqty/>
  28. <totalsumamt/>
  29. </init>
  30. <send>
  31. <reqdata/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. //화면 Control을 초기화한다
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <submission id="TRRSD10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/list"/>
  44. </model>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  54. function fInitialize() {
  55. misfGridInit(grd_addtaxsumgoodlist);
  56. var curdate = getCurrentDate();
  57. var cvtdate = curdate.toDate("YYYYMMDD");
  58. model.setValue("/root/cond/instcd",getUserInfo("dutplceinstcd"));
  59. model.setValue("/root/cond/instnm",getUserInfo("dutplceinstnm"));
  60. model.setValue(ipt_srchfromdd.attribute("ref"),cvtdate.getAddDate(-1,"D").getDateFormat("YYYYMMDD"));
  61. model.setValue(ipt_srchtodd.attribute("ref") ,curdate);
  62. model.refresh();
  63. }
  64. function fGridChange(){
  65. var gridCaption = grd_addtaxsumgoodlist.caption;
  66. if(rdo_goodflag.value == "A"){
  67. gridCaption = gridCaption.replace("약품코드","물품코드");
  68. gridCaption = gridCaption.replace("약품명","물품명");
  69. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("goodspec")) = false;
  70. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("goodmodel")) = false;
  71. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("cnst")) = true;
  72. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("costconyn")) = false;
  73. }else{
  74. gridCaption = gridCaption.replace("물품코드","약품코드");
  75. gridCaption = gridCaption.replace("물품명","약품명");
  76. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("goodspec")) = true;
  77. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("goodmodel")) = true;
  78. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("cnts")) = false;
  79. grd_addtaxsumgoodlist.colHidden(grd_addtaxsumgoodlist.colRef("costconyn")) = true;
  80. }
  81. grd_addtaxsumgoodlist.caption = gridCaption;
  82. grd_addtaxsumgoodlist.refresh();
  83. }
  84. ]]>
  85. </script>
  86. </xhtml:head>
  87. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  88. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  89. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:201px; height:14px; ">부가가치세 집계물품내역 조회</caption>
  90. </group>
  91. <group id="group5" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  92. <group id="group6" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  93. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  94. <line id="line2" class="line_4" style="x1:1079px; y1:7px; x2:1079px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  95. <caption id="caption5" class="search_name" style="left:360px; top:10px; width:101px; height:17px; ">발생일자 :</caption>
  96. <caption id="cap_goodcdA" class="search_name" style="left:360px; top:35px; width:99px; height:17px; ">물품코드 :</caption>
  97. <caption id="cap_goodcdB" class="search_name" visibility="hidden" style="left:360px; top:35px; width:99px; height:17px; ">약품코드 :</caption>
  98. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1094px; top:17px; width:56px; height:22px; text-align:left; ">
  99. <caption>조회</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. if(submit("TRRSD10201")){
  103. fGridChange();
  104. var tGrid = grd_addtaxsumgoodlist;
  105. var totalSumQty = 0;
  106. var totalSumAmt = 0;
  107. for(var i=tGrid.fixedRows ; i<tGrid.rows ; i++ ){
  108. totalSumQty += parseFloat(tGrid.valueMatrix(i , tGrid.colRef("totsumqty")));
  109. totalSumAmt += parseFloat(tGrid.valueMatrix(i , tGrid.colRef("totsumamt")));
  110. }
  111. model.setValue("/root/init/totalsumqty",totalSumQty);
  112. model.setValue("/root/init/totalsumamt",totalSumAmt);
  113. //alert("totalSumQty := " + totalSumQty + "\ntotalSumAmt := " + totalSumAmt);
  114. opt_totalsumqty.refresh();
  115. opt_totalsumamt.refresh();
  116. }
  117. ]]>
  118. </script>
  119. </button>
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. //btn_search.dispatch("DOMActivate");
  123. ]]>
  124. </script>
  125. <caption id="caption2" class="search_name" style="left:20px; top:35px; width:101px; height:17px; ">집계구분 :</caption>
  126. <caption id="cap_instcd" class="search_name" style="left:20px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  127. <output id="opt_instcd" ref="/root/cond/instcd" class="output_fix" visibility="hidden" style="left:10px; top:10px; width:30px; height:19px; "/>
  128. <output id="opt_instcdnm" ref="/root/cond/instnm" class="output_fix" style="left:110px; top:10px; width:180px; height:19px; "/>
  129. <input id="ipt_srchfromdd" ref="/root/cond/srchfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:452px; top:10px; width:100px; height:19px; text-align:center; "/>
  130. <caption id="caption11" class="search_no_b" style="left:555px; top:12px; width:12px; height:17px; ">~</caption>
  131. <input id="ipt_srchtodd" ref="/root/cond/srchtodd" class="input_s_essential" navindex="2" inputtype="date" style="left:570px; top:10px; width:100px; height:19px; text-align:center; "/>
  132. <select1 id="rdo_goodflag" ref="/root/cond/goodflag" overflow="visible" appearance="full" cols="2" style="left:110px; top:35px; width:100px; height:20px; border-style:none; ">
  133. <choices>
  134. <item>
  135. <label>재료</label>
  136. <value>A</value>
  137. </item>
  138. <item>
  139. <label>약품</label>
  140. <value>B</value>
  141. </item>
  142. </choices>
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. if(rdo_goodflag.value== "A"){
  146. cap_goodcdA.visible = true;
  147. cap_goodcdB.visible = false;
  148. }else{
  149. cap_goodcdA.visible = false;
  150. cap_goodcdB.visible = true;
  151. }
  152. ]]>
  153. </script>
  154. </select1>
  155. <input id="ipt_goodcd" ref="/root/cond/goodcd" class="input_search" imemode="disabled" _chartype="upper" style="left:452px; top:35px; width:145px; height:19px; ">
  156. <script type="javascript" ev:event="onkeyup">
  157. <![CDATA[
  158. inputEnterKey("btn_search", "DOMActivate");
  159. ]]>
  160. </script>
  161. </input>
  162. <caption id="caption1" class="search_name" style="left:720px; top:12px; width:75px; height:17px; ">거래처 :</caption>
  163. <input id="ipt_suplplcecd" ref="/root/cond/suplplcecd" class="input_search" navindex="19" style="left:800px; top:10px; width:65px; height:19px; text-align:center; ">
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. if(ipt_suplplcecd.value.length == 0)
  167. opt_suplplcenm.value = "";
  168. else{
  169. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  170. model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  171. ipt_suplplcecd,"SPRSD00220","instcd","opt_instcd");
  172. if(model.getValue("/root/init/main/reqcustomlist/custcode") != ""){
  173. ipt_suplplcecd.value = model.getValue("/root/init/main/reqcustomlist/custcode");
  174. }
  175. }
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </input>
  180. <button id="btn_suplplcecd" class="icon_search" style="left:870px; top:13px; width:16px; height:16px; ">
  181. <caption/>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","opt_instcd");
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </button>
  189. <output id="opt_suplplcenm" ref="/root/cond/suplplcenm" class="output_fix" style="left:890px; top:10px; width:155px; height:19px; text-align:left; padding-left:10; "/>
  190. </group>
  191. <datagrid id="grd_addtaxsumgoodlist" nodeset="/root/main/list/addtaxsumgoodinfo/addtaxsumgoodlist" class="datagrid2" caption="발생일자^물품코드^물품명^규격^모델^함량^거래처^단가계약^총수량^단가^금액^금액(부가세적용)^원무부가세^구매집계여부^품의일자^품의번호" colsep="^" colwidth="100, 113, 258, 136, 94, 100, 100, 64, 63, 91, 91, 100, 82, 82, 75, 55" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:104px; width:1195px; height:631px; ">
  192. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  193. <col ref="goodcd" style="text-align:center; "/>
  194. <col ref="goodnm" style="text-align:left; "/>
  195. <col ref="goodspec" style="text-align:left; "/>
  196. <col ref="goodmodel" style="text-align:left; "/>
  197. <col ref="cnts" visibility="hidden" style="text-align:center; "/>
  198. <col ref="suplplcenm" style="text-align:left; "/>
  199. <col ref="costconyn" style="text-align:center; "/>
  200. <col ref="totsumqty" format="#,###.##" style="text-align:right; "/>
  201. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  202. <col ref="totsumamt" format="#,###.##" style="text-align:right; "/>
  203. <col ref="totsumamttax" visibility="hidden" style="text-align:right; "/>
  204. <col ref="totsumamtpamtax" visibility="hidden" style="text-align:right; "/>
  205. <col ref="purcflag" style="text-align:center; "/>
  206. <col ref="purccnsttndd" format="yyyy-mm-dd" style="text-align:center; "/>
  207. <col ref="purccnsttnno" style="text-align:center; "/>
  208. </datagrid>
  209. <caption id="caption35" class="tit_2" style="left:5px; top:84px; width:185px; height:13px; ">부가가치세 집계물품내역</caption>
  210. <line id="line15" class="line_1" style="x1:0px; y1:101px; x2:1195px; y2:100px; "/>
  211. <output id="opt_totalsumamt" ref="/root/init/totalsumamt" class="output_default" format="#,###" style="left:910px; top:77px; width:110px; height:19px; font-weight:bold; "/>
  212. <caption id="caption39" class="tit_2" style="left:832px; top:81px; width:80px; height:13px; vertical-align:middle; ">총 금액 :</caption>
  213. <button id="button1" class="btn5_letter5" navindex="12" style="left:1115px; top:77px; width:75px; height:19px; ">
  214. <caption>Excel 저장</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var fileName = window.fileDialog("save", ",", false, "부가가치세 집계물품내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  218. if (fileName != "")
  219. {
  220. grd_addtaxsumgoodlist.saveExcel(fileName);
  221. }
  222. ]]>
  223. </script>
  224. </button>
  225. <output id="opt_totalsumqty" ref="/root/init/totalsumqty" class="output_default" format="#,###" style="left:770px; top:77px; width:55px; height:19px; font-weight:bold; "/>
  226. <caption id="caption3" class="tit_2" style="left:692px; top:81px; width:80px; height:13px; vertical-align:middle; ">총 수량 :</caption>
  227. </group>
  228. <group id="group4" ref="/root/init/instcd" style="left:0px; top:12; width:1195; height:26px; ">
  229. <button id="button8" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  230. <caption>출력</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. ]]>
  234. </script>
  235. </button>
  236. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195; y2:25px; "/>
  237. <button id="button2" class="btn6_letter4" visibility="hidden" style="left:60px; top:3px; width:56px; height:22px; ">
  238. <caption>미리보기</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. ]]>
  242. </script>
  243. </button>
  244. </group>
  245. </xhtml:body>
  246. </xhtml:html>