SPRSO20100_출고내역(경북대).xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. <delivemst>
  11. <delivemstlist>
  12. </delivemstlist>
  13. </delivemst>
  14. <delivedtl>
  15. <delivedtllist>
  16. </delivedtllist>
  17. </delivedtl>
  18. </main>
  19. <send>
  20. <search>
  21. <instcd/>
  22. <wareflag/>
  23. <delivedd/>
  24. <deliveno/>
  25. <delivedeptcd/>
  26. <gubun>1</gubun>
  27. </search>
  28. </send>
  29. <init/>
  30. <hidden/>
  31. <temp/>
  32. <popdata>
  33. <instcd/>
  34. <wareflag/>
  35. <wareflagnm/>
  36. <delivedd/>
  37. </popdata>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. misfGridInit(grd_delivemst);
  43. misfGridInit(grd_delivedtl);
  44. misfMsterDetailSet(grd_delivemst, null, "TRRSO20101" ,"N");
  45. misfMsterDetailSet(grd_delivedtl, grd_delivemst, "TRRSO20102" ,"N");
  46. //Master 조회를 위한 parameter setting
  47. model.setValue("/root/send/search/instcd", model.getValue("/root/popdata/instcd"));
  48. model.setValue("/root/send/search/wareflag", model.getValue("/root/popdata/wareflag"));
  49. model.setValue("/root/send/search/delivedd", model.getValue("/root/popdata/delivedd"));
  50. misfMsterDetailRetrieve();
  51. //조회된 자료가 없는 경우 message를 주고 창을 닫는다.
  52. if(grd_delivemst.rows == 1) {
  53. messageBox("해당 창고, 일자에 출고내역이 존재하지 않습니다..", "I999", "");
  54. opener.model.setFocus("ipt_delivedd");
  55. btn_cancel.dispatch("DOMActivate");
  56. }
  57. ]]>
  58. </script>
  59. <submission id="TRRSO20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/delivemst"/>
  60. <submission id="TRRSO20102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/delivedtl"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  65. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  66. </xhtml:head>
  67. <xhtml:body pagewidth="790" pageheight="400">
  68. <line id="line8" class="line_1" style="x1:10px; y1:72px; x2:780px; y2:72px; "/>
  69. <caption id="caption20" class="tit_2" style="left:11px; top:57px; width:184px; height:13px; ">출고내역</caption>
  70. <datagrid id="grd_delivemst" nodeset="/root/main/delivemst/delivemstlist" visibility="visible" caption="순번^출고유형^출고부서^" colwidth="40, 59, 206" mergecellsfixedrows="bycolrec" style="left:10px; top:77px; width:325px; height:278px; ">
  71. <col ref="deliveno" style="text-align:center; "/>
  72. <col ref="deliveflagnm" style="text-align:center; "/>
  73. <col ref="delivedeptnm"/>
  74. <col ref="gubun" visibility="hidden"/>
  75. <script type="javascript" ev:event="onrowchanged">
  76. <![CDATA[
  77. //Detail 조회를 위한 parameter setting
  78. model.setValue("/root/send/search/instcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/instcd"));
  79. model.setValue("/root/send/search/delivedd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedd"));
  80. model.setValue("/root/send/search/deliveno", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveno"));
  81. model.setValue("/root/send/search/wareflag", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/wareflag"));
  82. model.setValue("/root/send/search/delivedeptcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptcd"));
  83. model.setValue("/root/send/search/gubun", "1");
  84. misfMsterDetailRetrieve();
  85. ]]>
  86. </script>
  87. <script type="javascript" ev:event="ondblclick">
  88. <![CDATA[
  89. btn_select.dispatch("DOMActivate");
  90. ]]>
  91. </script>
  92. </datagrid>
  93. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:10px; top:10px; width:770px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  94. <caption id="caption12" class="search_name" style="left:210px; top:19px; width:80px; height:17px; ">출고일자</caption>
  95. <output id="opt_title" ref="/root/popdata/delivedd" class="output_fix" format="yyyy-mm-dd" style="left:292px; top:18px; width:93px; height:19px; text-align:center; padding-left:5; "/>
  96. <datagrid id="grd_delivedtl" nodeset="/root/main/delivedtl/delivedtllist" visibility="visible" caption="품목코드^품목명^출고수량^" colwidth="86, 248, 60" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:336px; top:77px; width:444px; height:278px; ">
  97. <col ref="goodcd" style="text-align:center; "/>
  98. <col ref="goodnm"/>
  99. <col ref="deliveqty" format="#,###.##" style="text-align:right; "/>
  100. </datagrid>
  101. <button id="btn_cancel" class="btn4_letter2" style="left:725px; top:365px; width:56px; height:22px; ">
  102. <caption>취소</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
  106. opener.model.setValue("/root/popdelive/selectyn", "N");
  107. window.close();
  108. ]]>
  109. </script>
  110. </button>
  111. <button id="btn_select" class="btn4_letter2" style="left:665px; top:365px; width:56px; height:22px; ">
  112. <caption>선택</caption>
  113. <script type="javascript" ev:event="DOMActivate">
  114. <![CDATA[
  115. //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
  116. opener.model.setValue("/root/popdelive/selectyn", "Y");
  117. //선택한 출고내역을 opener의 조회조건에 setting한다.
  118. opener.model.setValue("/root/send/search/deliveno", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveno"));
  119. opener.model.setValue("/root/send/search/delivedeptcd", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptcd"));
  120. opener.model.setValue("/root/send/search/delivedeptnm", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/delivedeptnm"));
  121. opener.model.setValue("/root/send/search/deliveflag", model.getValue(grd_delivemst.nodeset + "[" + grd_delivemst.row + "]/deliveflag"));
  122. opener.model.refreshpart("/root/send/search/deliveno");
  123. opener.model.refreshpart("/root/send/search/delivedeptcd");
  124. opener.model.refreshpart("/root/send/search/delivedeptnm");
  125. opener.model.refreshpart("/root/send/search/deliveflag");
  126. window.close();
  127. // 저장할 data의 확인
  128. //alert( model.getValue("/root/send/delivedtl") );
  129. /* 1) 해당 채용건에 대해 이전에 작업한 적이 없을 경우 : 합격자 data 일괄 가져오기 작업을 실행하시겠습니까?
  130. 2) 이전에 작업한 적이 있을 경우 : 해당 채용공고에 대한 지원자 정보가 이미 존재합니다.\n\n 기존 data를 모두 삭제하고 합격자 data 일괄 가져오기를 실행하시겠습니까?
  131. 3) 이미 사번 생성작업에 들어간 경우 : 이미 사번이 생성된 사람이 존재하므로, 작업을 실행할 수 없습니다.
  132. */
  133. /*
  134. if (submit("TRRPE04003")) {
  135. if ( model.getValue("/root/main/exec/execpossibility/emplcnt") == "1" ) { //사원번호가 생성된 건이 있는 경우
  136. messageBox("이미 사번이 생성된 사람이 존재하므로, 작업을 진행할 수 없습니다.", "E999", "");
  137. return;
  138. } else if ( ( model.getValue("/root/main/exec/execpossibility/emplcnt") == "0" ) &&
  139. ( model.getValue("/root/main/exec/execpossibility/apntcnt") == "1" ) ) {
  140. //return : yes=6, no=7
  141. var rtn = messageBox("해당 채용공고에 대한 지원자 정보가 이미 존재합니다.\n\n기존 data를 모두 삭제하고 합격자 data 일괄 가져오기를", "Q004");
  142. if ( rtn != 6 ) {
  143. return;
  144. }
  145. } else {
  146. //return : yes=6, no=7, cancel=2
  147. var rtn = messageBox("합격자 data 일괄 가져오기 작업을", "Q004");
  148. if ( rtn != 6 ) {
  149. return;
  150. }
  151. }
  152. }
  153. if (misfSave("TXRPE04001")) {
  154. messageBox("작업이 정상적으로", "I001", "");
  155. btn_cancel.dispatch("onclick");
  156. }
  157. */
  158. ]]>
  159. </script>
  160. </button>
  161. <caption id="caption3" class="search_name" style="left:35px; top:19px; width:80px; height:17px; ">창고</caption>
  162. <output id="opt_apntyy" ref="/root/popdata/wareflagnm" class="output_fix" style="left:90px; top:18px; width:95px; height:19px; text-align:center; padding-left:5; "/>
  163. </xhtml:body>
  164. </xhtml:html>