SMRST00902_부서별 계정별 약품 사용금액 조회(약국).xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <init/>
  10. <send>
  11. <sendlist>
  12. <instcd/>
  13. <goodflag/>
  14. <stocym/>
  15. <tostocym/>
  16. <mngtcls/>
  17. </sendlist>
  18. </send>
  19. <main>
  20. <stocpropertylist>
  21. </stocpropertylist>
  22. </main>
  23. <temp/>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fInitialize();
  36. misfGridInit(grd_stocpropertylist);
  37. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  38. misfMsterDetailSet(grd_stocpropertylist,null,"TRRST00901","Y");
  39. //화면 권한 설정
  40. // btn_save.disabled = !(checkAuth("X"));
  41. btn_prt.disabled= !(checkAuth("P"));
  42. model.refresh();
  43. ]]>
  44. </script>
  45. <submission id="TRRST00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/stocpropertylist"/>
  46. </model>
  47. <script type="javascript">
  48. <![CDATA[
  49. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  50. function fInitialize() {
  51. model.removeNodeset("/root/main/stocpropertylist");
  52. model.resetInstanceNode("/root/send");
  53. misfComboComCdList("030M0003",cmb_mngtcls,"Y");
  54. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  55. var curdd = getCurrentDate();
  56. model.setValue(ipt_stocym.attribute("ref") ,curdd.substr(0,6) );
  57. model.setValue(ipt_tostocym.attribute("ref") ,curdd.substr(0,6) );
  58. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  59. model.setValue(opt_goodflag.attribute("ref") ,"PH" );
  60. model.refresh();
  61. }
  62. ]]>
  63. </script>
  64. </xhtml:head>
  65. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  67. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:245px; height:8px; ">부서별 계정별 약품 사용금액 통계</caption>
  68. </group>
  69. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  70. <caption id="caption21" class="tit_2" style="left:5px; top:57px; width:260px; height:13px; ">부서별 계정별 약품 사용금액 통계</caption>
  71. <group id="group6" style="left:0px; top:13px; width:1195px; height:35px; vertical-align:top; ">
  72. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  73. <caption id="caption10" class="search_name" style="left:353px; top:9px; width:93px; height:17px; ">조 회 월 :</caption>
  74. <caption id="caption7" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  75. <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:8px; width:141px; height:19px; text-align:center; ">
  76. <choices>
  77. <itemset>
  78. <label/>
  79. <value/>
  80. </itemset>
  81. </choices>
  82. </select1>
  83. <input id="ipt_stocym" ref="/root/send/sendlist/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:439px; top:8px; width:100px; height:19px; text-align:center; "/>
  84. <line id="line18" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-left-style:solid; "/>
  85. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. // submit("TRRST00800");
  90. //기관코드체크
  91. var null_check = cmb_instcd.value;
  92. /*
  93. if( null_check=="") {
  94. messageBox("기관코드를","C002");
  95. return;
  96. null_check=cmb_goodflag.value;
  97. } else if(null_check=="") {
  98. messageBox("물품청구 구분","C002");
  99. return;
  100. }
  101. */
  102. submit("TRRST00903");
  103. // misfMsterDetailRetrieve();
  104. ]]>
  105. </script>
  106. </button>
  107. <output id="opt_goodflag" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:960px; top:5px; width:100px; height:19px; "/>
  108. <select1 id="cmb_mngtcls" ref="/root/send/sendlist/mngtcls" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:810px; top:8px; width:150px; height:19px; ">
  109. <choices>
  110. <itemset>
  111. <label/>
  112. <value/>
  113. </itemset>
  114. </choices>
  115. </select1>
  116. <caption id="caption2" class="search_name" visibility="hidden" style="left:725px; top:9px; width:88px; height:17px; ">관리분류 :</caption>
  117. <caption id="caption1" visibility="hidden" style="left:540px; top:10px; width:15px; height:20px; ">~</caption>
  118. <input id="ipt_tostocym" ref="/root/send/sendlist/tostocym" class="input_s_essential" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:560px; top:8px; width:100px; height:19px; text-align:center; "/>
  119. </group>
  120. <line id="line15" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  121. <datagrid id="grd_stocpropertylist" nodeset="/root/main/stocpropertylist" class="datagrid2" caption="약분류^부서명^계정명^수량^금액^재고금액^계정코드" colsep="^" colwidth="8, 190, 142, 70, 147, 113, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:77px; width:1195px; height:657px; ">
  122. <col ref="lrgnm" visibility="hidden" style="text-align:center; "/>
  123. <col ref="deptnm" style="text-align:center; "/>
  124. <col ref="acntnm" style="text-align:center; "/>
  125. <col ref="outcnts" style="text-align:center; "/>
  126. <col ref="totuseamt" format="#,###" style="text-align:center; "/>
  127. <col ref="stocamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  128. <col ref="amtacnt" visibility="hidden" style="text-align:center; "/>
  129. </datagrid>
  130. <button id="btn_excel" class="btn5_letter6" style="left:1106px; top:52px; width:86px; height:19px; ">
  131. <caption>Excel Save</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. var reqfrdd = model.getValue(ipt_stocym.attribute("ref"));
  135. var fileName = window.fileDialog("save", ",", false, "부서별 계정별 약품사용금액"+"(" + reqfrdd + ")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  136. if (fileName != "")
  137. {
  138. grd_stocpropertylist.saveExcel(fileName, "부서별 계정별 약품사용금액");
  139. }
  140. ]]>
  141. </script>
  142. </button>
  143. </group>
  144. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  145. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  146. <caption>출력</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. model.removeNodeset("/root/tmp/rexinfo/sendlist");
  150. model.removeNodeset("/root/tmp/rexinfo/stocpropertylist");
  151. model.makeNode("/root/tmp/rexinfo/sendlist");
  152. model.makeNode("/root/tmp/rexinfo/stocpropertylist");
  153. copyNodesetType("/root/tmp/rexinfo/sendlist", "/root/send/sendlist", "replace");
  154. copyNodesetType("/root/tmp/rexinfo/stocpropertylist", grd_stocpropertylist.nodeset, "replace");
  155. exeReportPreview("RPRST00903", "XMLSTR","/root/tmp/rexinfo");
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  160. </group>
  161. </xhtml:body>
  162. </xhtml:html>