SMRSO01500_계정별 출고현황(병원연구소).xrw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. <main>
  10. <mmoutputlist/>
  11. </main>
  12. <init>
  13. <acntflag>
  14. <cdid>1</cdid>
  15. <cdnm>분출</cdnm>
  16. <cdid>2</cdid>
  17. <cdnm>의료장비</cdnm>
  18. <cdid>3</cdid>
  19. <cdnm>수선</cdnm>
  20. <cdid>4</cdid>
  21. <cdnm>비품</cdnm>
  22. </acntflag>
  23. </init>
  24. <send>
  25. <instcd/>
  26. <acntflag/>
  27. <delivefrdd/>
  28. <delivetodd/>
  29. <delivedd/>
  30. </send>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. //화면 Control을 초기화한다
  36. fInitialize();
  37. ]]>
  38. </script>
  39. <submission id="TRRSO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dateoutputlist"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  47. <script type="javascript">
  48. <![CDATA[
  49. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  50. function fInitialize() {
  51. model.resetInstanceNode("/root/send");
  52. misfComboComCdListMulti("Z0007", "cmb_instcd")
  53. cmb_instcd.value = getUserInfo("dutplceinstcd");
  54. // rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  55. // model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  56. //alert(getUserInfo("dutplceinstcd"));
  57. misfGridInit(grd_dateoutputlist);
  58. misfMsterDetailSet(grd_dateoutputlist,null, "TRRSO01501" ,"N");
  59. var curdate = getCurrentDate();
  60. var cvtdate = curdate.toDate("YYYYMM");
  61. model.setValue(ipt_delivedd.attribute("ref") ,curdate);
  62. var delivefrdd = curdate+"01";
  63. var delivetodd = curdate+cvtdate.getMonthDay();
  64. model.setValue(opt_delivefrdd.attribute("ref"),delivefrdd);
  65. model.setValue(opt_delivetodd.attribute("ref"),delivetodd);
  66. cmb_goodflag.select(0);
  67. model.refresh();
  68. }
  69. //필수항목 체크하는 메소드
  70. function fCheckRetrieveData()
  71. {
  72. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  73. if(!isRequiredControls("ipt_delivefrdd") )return false; // 출고시작일자
  74. }
  75. ]]>
  76. </script>
  77. </xhtml:head>
  78. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  79. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  80. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">계정별 출고 현황</caption>
  81. </group>
  82. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  83. <caption id="caption21" class="tit_2" style="left:5px; top:62px; width:157px; height:13px; ">계정별 출고 현황</caption>
  84. <group id="group6" style="left:0px; top:13px; width:1195px; height:37px; vertical-align:top; ">
  85. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  86. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:8px; width:56px; height:22px; text-align:left; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. misfGridInit(grd_dateoutputlist);
  91. misfMsterDetailRetrieve();
  92. var tempiokindnm = "";
  93. var gridrow = grd_dateoutputlist.rows;
  94. ]]>
  95. </script>
  96. </button>
  97. <line id="line14" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  98. <caption id="cap_delivefrdd" class="search_name" style="left:503px; top:9px; width:93px; height:17px; ">출고년월 :</caption>
  99. <input id="ipt_delivedd" ref="/root/send/delivedd" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:588px; top:8px; width:100px; height:19px; ">
  100. <script type="javascript" ev:event="xforms-value-changed">
  101. <![CDATA[
  102. var delivedd = model.getValue("/root/send/delivedd");
  103. var cvtdate = delivedd.toDate("YYYYMM");
  104. var delivefrdd = delivedd+"01";
  105. var delivetodd = delivedd+cvtdate.getMonthDay();
  106. model.setValue(opt_delivefrdd.attribute("ref"),delivefrdd);
  107. model.setValue(opt_delivetodd.attribute("ref"),delivetodd);
  108. ]]>
  109. </script>
  110. </input>
  111. <caption id="caption3" class="search_name" style="left:248px; top:9; width:93px; height:17px; ">분류코드 :</caption>
  112. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  113. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:104px; height:19px; ">
  114. <choices>
  115. <itemset nodeset="/root/init/instcd">
  116. <label ref="cdnm"/>
  117. <value ref="cdid"/>
  118. </itemset>
  119. </choices>
  120. </select1>
  121. <select1 id="cmb_goodflag" ref="/root/send/acntflag" class="combo_s_essential" appearance="minimal" style="left:340px; top:8px; width:103px; height:19px; ">
  122. <choices>
  123. <itemset nodeset="/root/init/acntflag">
  124. <label ref="cdnm"/>
  125. <value ref="cdid"/>
  126. </itemset>
  127. </choices>
  128. </select1>
  129. <output id="opt_delivefrdd" ref="/root/send/delivefrdd" visibility="hidden" style="left:730px; top:10px; width:40px; height:25px; "/>
  130. <output id="opt_delivetodd" ref="/root/send/delivetodd" visibility="hidden" style="left:780px; top:10px; width:40px; height:19px; "/>
  131. </group>
  132. <line id="line15" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  133. <datagrid id="grd_dateoutputlist" nodeset="/root/main/mmoutputlist" caption="계정분류^계정분류명^기관코드^기관명^출고(관리)부서^출고(관리)부서명^출고일자^분출구분^분류기준^물품구분^물품구분명^대분류^대분류명^중분류^중분류명^소분류^소분류명^출고수량^출고단가^출고금액^물품코드^물품코드명^규격^계산서일자^입고일자^정산확정년월^REQMTH" colsep="^" colwidth="100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:80px; width:1195px; height:652px; ">
  134. <col ref="acntflag"/>
  135. <col ref="acntflagnm"/>
  136. <col ref="instcd"/>
  137. <col ref="instcdnm" style="text-align:center; "/>
  138. <col ref="windeptcd" style="text-align:center; "/>
  139. <col ref="windeptnm"/>
  140. <col ref="delivedd"/>
  141. <col ref="gubun1" style="text-align:center; "/>
  142. <col ref="gubun2" style="text-align:center; "/>
  143. <col ref="goodflag"/>
  144. <col ref="goodflagnm"/>
  145. <col ref="lrgcd" style="text-align:center; "/>
  146. <col ref="lrgcdnm" style="text-align:center; "/>
  147. <col ref="mdlcd" style="text-align:center; "/>
  148. <col ref="mdlcdnm" style="text-align:center; "/>
  149. <col ref="smlcd"/>
  150. <col ref="smlcdnm"/>
  151. <col ref="qty" style="text-align:center; "/>
  152. <col ref="gocost" style="text-align:center; "/>
  153. <col ref="delamt" style="text-align:center; "/>
  154. <col ref="goodcd"/>
  155. <col ref="goodnm"/>
  156. <col ref="goodspec" style="text-align:center; "/>
  157. <col ref="calcdd"/>
  158. <col ref="windd" style="text-align:center; "/>
  159. <col ref="calccnfmdd"/>
  160. <col ref="reqmthd"/>
  161. </datagrid>
  162. <button id="button1" class="btn2_letter2" style="left:1149px; top:59px; width:42px; height:19px; ">
  163. <caption>엑셀</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var fileName = window.fileDialog("save", ",", false, "분출현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  167. if(fileName !="")
  168. {
  169. grd_dateoutputlist.saveExcel(fileName, "분출현황", false, false, "", "", false);
  170. }
  171. ]]>
  172. </script>
  173. </button>
  174. </group>
  175. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  176. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  177. <caption>출력</caption>
  178. </button>
  179. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  180. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  181. <caption>초기화</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fInitialize();
  185. ]]>
  186. </script>
  187. </button>
  188. </group>
  189. </xhtml:body>
  190. </xhtml:html>