SMAED00500_외주및소모품출력.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAED00100.xrw
  4. * 설 명 : 치기공접수
  5. * 설 계 자 : 손승현
  6. * 작 성 자 : 손승현
  7. * 작 성 일 : 2010.09.26
  8. * 수정이력 : 2010.09.26 손승현 신규
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head tag="&quot;&quot;">
  14. <xhtml:title>치기공 소모품대장 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <execrcodelist>
  20. <execrcode>
  21. <sortno/>
  22. <basecd/>
  23. <basecdflagdesc/>
  24. <basecdcnts/>
  25. <basecdflag/>
  26. <basesuppdeptcd/>
  27. <seq/>
  28. </execrcode>
  29. </execrcodelist>
  30. <cnsmblslist>
  31. <item/>
  32. </cnsmblslist>
  33. <inqtysum/>
  34. <useqtysum/>
  35. <rcptamtsum/>
  36. <stockqtysum/>
  37. </main>
  38. <send>
  39. <srch>
  40. <srchfromdd/>
  41. <srchtodd/>
  42. <grupcdid/>
  43. <suppdeptcd/>
  44. <dutplceinstcd/>
  45. <basesuppdeptcd/>
  46. <srchprodid/>
  47. <srchprodid_1/>
  48. </srch>
  49. <globalinstance>
  50. <instance1/>
  51. </globalinstance>
  52. <basecd/>
  53. <basecdflag/>
  54. <instcd/>
  55. </send>
  56. <init>
  57. <baseinfo>
  58. <initinsukind/>
  59. </baseinfo>
  60. </init>
  61. <hidden>
  62. <item>
  63. <count/>
  64. </item>
  65. </hidden>
  66. <temp>
  67. <templst/>
  68. </temp>
  69. <rexprnt>
  70. <srchfromdd/>
  71. <srchtodd/>
  72. <prodnm/>
  73. <metalcd/>
  74. </rexprnt>
  75. </root>
  76. </instance>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  81. <script type="javascript" src="../../../ast/dentalcraftweb/js/dentalcraftcombolist.js"/>
  82. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  83. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  84. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. fGetScreenInit();
  88. fGetComboInit();
  89. ]]>
  90. </script>
  91. <submission id="TRAVB00001"/>
  92. <submission id="TRAAA00001"/>
  93. <submission id="TRAEB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/execrcodelist"/>
  94. <submission id="TRZBC00101"/>
  95. <submission id="TRAED00106"/>
  96. <submission id="TRAED00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/cnsmblslist"/>
  97. </model>
  98. <script type="javascript">
  99. <![CDATA[
  100. /**
  101. * 콤보 초기화
  102. */
  103. function fGetComboInit() {
  104. aezfSetSuppDeptcd();
  105. model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  106. // 제작자 조회
  107. model.setValue("/root/send/basecdflag", "E");
  108. submit("TRAEB00801");
  109. // 콤포박스 초기화
  110. addComboItem("cmb_prodid", "전체", "all", "above");
  111. cmb_prodid.value = "all";
  112. model.refresh();
  113. }
  114. /**
  115. * 화면 기본 초기화
  116. */
  117. function fGetScreenInit() {
  118. model.resetInstanceNode("/root/send");
  119. model.setValue("/root/send/srch/srchfromdd", getCurrentDate() );
  120. model.setValue("/root/send/srch/srchtodd", getCurrentDate() );
  121. model.refresh();
  122. }
  123. function fGetCnsmblsList() {
  124. model.removenode("/root/main/cnsmblslist");
  125. if( model.getValue("/root/send/srch/srchprodid_1") == "all" ){
  126. model.setValue("/root/send/srch/srchprodid", "" );
  127. }else{
  128. model.setValue("/root/send/srch/srchprodid", model.getValue("/root/send/srch/srchprodid_1") );
  129. }
  130. submit("TRAED00500");
  131. var amt_totalsum = 0;
  132. var in_totalsum = 0;
  133. var use_totalsum = 0;
  134. var sto_totalsum = 0;
  135. var Cnt = getNodesetCount("/root/main/cnsmblslist/item");
  136. if( Cnt > 0 ) {
  137. for( var i = 1 ; i <= Cnt ; i++ ) {
  138. // model.setValue("/root/main/cnsmblslist/item/inqty" , model.getValue("/root/main/cnsmblslist/item/inqty") + " g");
  139. // model.setValue("/root/main/cnsmblslist/item/useqty", model.getValue("/root/main/cnsmblslist/item/useqty") + " g");
  140. // model.setValue("/root/main/cnsmblslist/item/stockqty", model.getValue("/root/main/cnsmblslist/item/stockqty") + " g");
  141. // model.setValue("/root/main/cnsmblslist/item/rcptamt", model.getValue("/root/main/cnsmblslist/item/rcptamt") + " 원");
  142. if(model.getValue("/root/main/cnsmblslist/item["+ i +"]/rcptamt") != "" ){
  143. amt_totalsum = amt_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/rcptamt") );
  144. }
  145. if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/inqty") != "" ){
  146. in_totalsum = in_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/inqty") );
  147. }
  148. if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/useqty") != "" ){
  149. use_totalsum = use_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/useqty") );
  150. }
  151. if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/stockqty") != "" ){
  152. sto_totalsum = sto_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/stockqty") );
  153. }
  154. model.setValue("/root/main/rcptamtsum" , amt_totalsum);
  155. model.setValue("/root/main/inqtysum" , in_totalsum);
  156. model.setValue("/root/main/useqtysum" , use_totalsum);
  157. model.setValue("/root/main/stockqtysum" , sto_totalsum);
  158. }
  159. }
  160. model.refresh();
  161. }
  162. ]]>
  163. </script>
  164. </xhtml:head>
  165. <xhtml:body guideline="1,1218;2,885;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  166. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  167. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">치기공 외주 소모품대장 관리</caption>
  168. </group>
  169. <group id="grp_btn" style="left:0px; top:739px; width:1055px; height:27px; ">
  170. <button id="btn_prt" class="btn6_letter8" style="left:1px; top:3px; width:56px; height:22px; ">
  171. <caption>소모품대장 출력</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. model.resetInstanceNode("/root/rexprnt");
  175. model.removenode("/root/rexprnt/cnsmblslist");
  176. var Cnt = getNodesetCount("/root/main/cnsmblslist/item");
  177. if( Cnt > 0 ) {
  178. for( var i = 1 ; i <= Cnt ; i++ ) {
  179. model.makeNode("/root/rexprnt/cnsmblslist/item["+ i +"]");
  180. model.copyNode("/root/rexprnt/cnsmblslist/item["+ i +"]", "/root/main/cnsmblslist/item["+ i + "]");
  181. }
  182. model.setValue("/root/rexprnt/srchtodd", ipt_srchtodd.label);
  183. model.setValue("/root/rexprnt/srchfromdd", ipt_srchfromdd.label);
  184. model.setValue("/root/rexprnt/prodnm", cmb_prodid.label);
  185. model.setValue("/root/rexprnt/metalcd", "");
  186. exeReportPreview("RPAED00400", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. <caption id="lbl_rmedadmin" class="cell_1" style="left:733px; top:4px; width:80px; height:20px; text-align:center; vertical-align:middle; ">수납합계</caption>
  192. <input id="ipt_useqty" ref="/root/main/useqtysum" class="input_default" imemode="hangul" maxlength="20" format="###.#" style="left:469px; top:4px; width:81px; height:19px; text-align:right; padding-right:10; "/>
  193. <input id="ipt_rcptamtsum" ref="/root/main/rcptamtsum" class="input_default" imemode="hangul" maxlength="20" format="#,###" style="left:816px; top:4px; width:120px; height:19px; text-align:right; padding-right:10; "/>
  194. <caption id="caption3" class="cell_1" style="left:308px; top:4px; width:80px; height:19px; text-align:center; vertical-align:middle; ">누계</caption>
  195. <input id="ipt_inqty" ref="/root/main/inqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:390px; top:4px; width:80px; height:19px; text-align:right; padding-right:10; "/>
  196. <caption id="caption8" style="left:938px; top:8px; width:20px; height:15px; ">원</caption>
  197. <input id="ipt_stockqty" ref="/root/main/stockqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:549px; top:4px; width:82px; height:19px; text-align:right; padding-right:10; "/>
  198. <input id="input1" ref="/root/main/useqtysum" class="input_default" imemode="hangul" maxlength="20" format="###.#" style="left:474px; top:4px; width:81px; height:19px; text-align:right; padding-right:10; "/>
  199. <caption id="caption2" class="cell_1" style="left:313px; top:4px; width:80px; height:19px; text-align:center; vertical-align:middle; ">누계</caption>
  200. <input id="input2" ref="/root/main/inqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:395px; top:4px; width:80px; height:19px; text-align:right; padding-right:10; "/>
  201. <input id="input3" ref="/root/main/stockqtysum" class="input_default" visibility="hidden" imemode="hangul" maxlength="20" format="##.#" style="left:554px; top:4px; width:82px; height:19px; text-align:right; padding-right:10; "/>
  202. </group>
  203. <group id="grp_main" scroll="auto" style="left:0px; top:13px; width:1060px; height:727px; ">
  204. <group id="grp_srch" style="left:0px; top:10px; width:1050px; height:35px; vertical-align:top; ">
  205. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:1049px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  206. <line id="line16" class="line_4" style="x1:965px; y1:7px; x2:965px; y2:29px; "/>
  207. <button id="btn_select" class="btn1_letter2" style="left:978px; top:7px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fGetCnsmblsList();
  212. // fGetScreenInit();
  213. ]]>
  214. </script>
  215. </button>
  216. <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:8px; width:100px; height:19px; "/>
  217. <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:106px; top:8px; width:100px; height:19px; "/>
  218. <caption id="lbl_srchdd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  219. <caption id="lbl_~" class="search_no_b" style="left:208px; top:10px; width:12px; height:17px; ">~</caption>
  220. <caption id="caption1" class="search_name" style="left:346px; top:9px; width:60px; height:17px; ">구분 :</caption>
  221. <select1 id="cmb_prodid" ref="/root/send/srch/srchprodid_1" class="combo_search" appearance="minimal" style="left:410px; top:8px; width:86px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/main/execrcodelist/execrcode">
  224. <label ref="basecdflagdesc"/>
  225. <value ref="basecd"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. </group>
  230. <caption id="caption45" class="tit_2" style="left:5px; top:55px; width:190px; height:13px; ">외주 소모품대장 LIST</caption>
  231. <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1050px; y2:70px; "/>
  232. <multilinegrid id="multilinegrid1" nodeset="/root/main/cnsmblslist/item" caption="접수일자^접수번호^성명^처방의사^수입(g)^출금(g)^재고(g)^진찰부위^진찰부위^수납금액(원)^제작자^비고|접수일자^접수번호^성명^처방의사^수입(g)^출금(g)^재고(g)^진찰부위^진찰부위^수납금액(원)^제작자^비고" colsep="^" colwidth="100, 90, 90, 90, 80, 80, 80, 100, 100, 100, 90, 85" rowheader="seq" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:75px; width:1050px; height:650px; ">
  233. <row>
  234. <col ref="acptdt" rowspan="2" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  235. <col ref="acptno" rowspan="2" type="output" format="9999-99-9999" style="text-align:center; "/>
  236. <col ref="hngnm" rowspan="2" type="output" style="text-align:center; "/>
  237. <col ref="orddrnm" rowspan="2" type="output" style="text-align:center; "/>
  238. <col ref="inqty" rowspan="2" type="output" format="###.#" style="text-align:right; padding-right:10; "/>
  239. <col ref="useqty" rowspan="2" type="output" format="###.#" style="text-align:right; padding-right:10; "/>
  240. <col ref="stockqty" rowspan="2" type="output" visibility="hidden" format="###.#" style="text-align:right; padding-right:10; "/>
  241. <col ref="tootfact11" type="output" style="text-align:right; "/>
  242. <col ref="tootfact12" type="output" style="text-align:left; "/>
  243. <col ref="rcptamt" rowspan="2" type="output" format="#,###" style="text-align:right; padding-right:10; "/>
  244. <col ref="prodnm" rowspan="2" type="output" style="text-align:center; "/>
  245. <col ref="bigo" rowspan="2" type="output" style="text-align:center; "/>
  246. </row>
  247. <row>
  248. <col/>
  249. <col ref="tootfact21" type="output" style="text-align:right; "/>
  250. <col ref="tootfact22" type="output" style="text-align:left; "/>
  251. </row>
  252. </multilinegrid>
  253. </group>
  254. </xhtml:body>
  255. </xhtml:html>