SMRSO02000_출고내역현황출력.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <outputsumlist/>
  11. </main>
  12. <init/>
  13. <send>
  14. <instcd/>
  15. <goodflag/>
  16. <delivefrdd/>
  17. <delivetodd/>
  18. <reqdeptcd/>
  19. <reqdeptnm/>
  20. <prtflag/>
  21. </send>
  22. </root>
  23. </instance>
  24. <script type="javascript" ev:event="xforms-ready">
  25. <![CDATA[
  26. //화면 Control을 초기화한다
  27. fInitialize();
  28. ]]>
  29. </script>
  30. <submission id="TRRSO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outputsumlist"/>
  31. <bind id="deliveamt" ref="/root/main/outputsumlist/deliveamt" calculate="../goodunitcost * ../delivedeptqty"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  42. function fInitialize() {
  43. model.resetInstanceNode("/root/send");
  44. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  45. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  46. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  47. //rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
  48. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  49. //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  50. //model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  51. misfGridInit(grd_outputsumlist);
  52. misfMsterDetailSet(grd_outputsumlist,null, "TRRSO02001" ,"N");
  53. var curdate = getCurrentDate();
  54. var cvtdate = curdate.toDate("YYYYMMDD");
  55. model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  56. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  57. model.refresh();
  58. }
  59. //필수항목 체크하는 메소드
  60. function fCheckRetrieveData()
  61. {
  62. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  63. if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
  64. if(!isRequiredControls("ipt_delivefrdd") )return false; // 출고시작일자
  65. if(!isRequiredControls("ipt_delivetodd") )return false; // 출고종료일자
  66. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  72. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  73. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:209px; height:14px; ">부서별 청구약품내역</caption>
  74. </group>
  75. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  76. <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:211px; height:13px; ">청구약품 내역현황</caption>
  77. <group id="group6" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  78. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  79. <caption id="cap_goodflag" class="search_name" style="left:15px; top:35; width:93px; height:17px; ">물품구분 :</caption>
  80. <caption id="cap_delivefrdd" class="search_name" style="left:270px; top:9px; width:93px; height:17px; ">출고일자 :</caption>
  81. <caption id="cap_prtflag" class="search_name" style="left:655px; top:9px; width:87px; height:17px; ">출력구분 :</caption>
  82. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:34; width:120px; height:19px; ">
  83. <choices>
  84. <itemset nodeset="/root/init/goodflag">
  85. <label ref="cdnm"/>
  86. <value ref="cdid"/>
  87. </itemset>
  88. </choices>
  89. </select1>
  90. <input id="ipt_delivefrdd" ref="/root/send/delivefrdd" class="input_s_essential" inputtype="date" style="left:356px; top:8px; width:115px; height:19px; "/>
  91. <input id="ipt_delivetodd" ref="/root/send/delivetodd" class="input_s_essential" inputtype="date" style="left:489px; top:8px; width:117px; height:19px; "/>
  92. <caption id="caption11" class="search_n_b" style="left:473px; top:8px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  93. <input id="ipt_reqdeptcd" ref="/root/send/reqdeptcd" class="input_s_essential" style="left:356px; top:34px; width:90px; height:19px; "/>
  94. <button id="button1" class="icon_search" style="left:451px; top:36px; width:16px; height:16px; ">
  95. <caption/>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. var recv_list = "reqdeptcd,reqdeptnm";
  99. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  100. model.refresh();
  101. //btn_search.dispatch("DOMActivate");
  102. ]]>
  103. </script>
  104. </button>
  105. <input id="ipt_reqdeptnm" ref="/root/send/reqdeptnm" class="input_s_essential" style="left:470px; top:34px; width:182px; height:19px; "/>
  106. <caption id="caption1" class="search_name" style="left:270px; top:35px; width:112px; height:17px; ">청구부서 :</caption>
  107. <select1 id="rdo_prtflag" ref="/root/send/prtflag" appearance="full" overflow="visible" style="left:739px; top:10px; width:61px; height:20px; border-style:none; ">
  108. <choices>
  109. <item>
  110. <label>부서별</label>
  111. <value>A</value>
  112. </item>
  113. </choices>
  114. </select1>
  115. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8; width:120px; height:19px; ">
  116. <choices>
  117. <itemset nodeset="/root/init/instcd">
  118. <label ref="cdnm"/>
  119. <value ref="cdid"/>
  120. </itemset>
  121. </choices>
  122. </select1>
  123. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  124. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:20px; width:56px; height:22px; text-align:left; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. misfGridInit(grd_outputsumlist);
  129. if(fCheckRetrieveData(false) == false)return;
  130. //misfGridInit(grd_outputsumlist)
  131. misfMsterDetailRetrieve();
  132. ]]>
  133. </script>
  134. </button>
  135. <line id="line14" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  136. </group>
  137. <line id="line15" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  138. <datagrid id="grd_outputsumlist" nodeset="/root/main/outputsumlist" caption="청구부서^계 정^물품코드^품명 및 규격^출고수량^단 가^금 액^청구일자^출고일자^재 고" colsep="^" colwidth="150, 100, 80, 300, 70, 80, 100, 80, 80, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:100px; width:1195px; height:634px; ">
  139. <col ref="reqdeptnm"/>
  140. <col ref="winacntnm"/>
  141. <col ref="goodcd" style="text-align:center; "/>
  142. <col ref="goodnm"/>
  143. <col ref="delivedeptqty" style="text-align:right; "/>
  144. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  145. <col ref="deliveamt" format="#,###.##" style="text-align:right; "/>
  146. <col ref="reqdd" style="text-align:center; "/>
  147. <col ref="delivedd" style="text-align:center; "/>
  148. <col ref="stocqty" style="text-align:right; "/>
  149. </datagrid>
  150. </group>
  151. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  152. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  153. <caption>출력</caption>
  154. </button>
  155. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  156. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  157. <caption>초기화</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. fInitialize();
  161. ]]>
  162. </script>
  163. </button>
  164. </group>
  165. </xhtml:body>
  166. </xhtml:html>