SMRSO01400_기간별 출고현황.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. <dateoutputlist/>
  11. </main>
  12. <init/>
  13. <send>
  14. <instcd/>
  15. <goodflag/>
  16. <delivefrdd/>
  17. <delivetodd/>
  18. <stocdeptcd/>
  19. <stocdeptnm/>
  20. </send>
  21. </root>
  22. </instance>
  23. <script type="javascript" ev:event="xforms-ready">
  24. <![CDATA[
  25. //화면 Control을 초기화한다
  26. fInitialize();
  27. ]]>
  28. </script>
  29. <submission id="TRRSO01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dateoutputlist"/>
  30. </model>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  40. function fInitialize() {
  41. model.resetInstanceNode("/root/send");
  42. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  43. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  44. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  45. //rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","%","","");
  46. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  47. //model.setValue(ipt_delivedeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  48. //model.setValue(ipt_delivedeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  49. misfGridInit(grd_dateoutputlist);
  50. misfMsterDetailSet(grd_dateoutputlist,null, "TRRSO01401" ,"N");
  51. var curdate = getCurrentDate();
  52. var cvtdate = curdate.toDate("YYYYMMDD");
  53. model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  54. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  55. model.refresh();
  56. }
  57. //필수항목 체크하는 메소드
  58. function fCheckRetrieveData()
  59. {
  60. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  61. if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
  62. if(!isRequiredControls("ipt_delivefrdd") )return false; // 출고시작일자
  63. if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 ) // 출고종료일자
  64. {
  65. messageBox("출고일자", "I003");
  66. model.setFocus("ipt_delivetodd");
  67. return false;
  68. }
  69. }
  70. ]]>
  71. </script>
  72. </xhtml:head>
  73. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  74. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  75. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">기간별 출고 현황</caption>
  76. </group>
  77. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  78. <caption id="caption21" class="tit_2" style="left:5px; top:83px; width:157px; height:13px; ">기간별 출고 현황</caption>
  79. <group id="group6" style="left:0px; top:13px; width:1195px; height:61px; vertical-align:top; ">
  80. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  81. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
  82. <caption>조회</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. misfGridInit(grd_dateoutputlist);
  86. // if(fCheckRetrieveData(false) == false)return;
  87. misfMsterDetailRetrieve();
  88. var tempiokindnm = "";
  89. //datagrid 전체 row수만큼 for 문 돌리고
  90. // var gridrow = grd_dateoutputlist.bottomRow;
  91. var gridrow = grd_dateoutputlist.rows;
  92. // alert("전체그리드열수 "+gridrow);
  93. for ( i=1 ; i<=gridrow ; i++) {
  94. tempiokindnm = model.getValue("/root/main/dateoutputlist["+i+"]/iokindnm");
  95. if( tempiokindnm == "정상입고동시출고" ) {
  96. // alert(tempiokindnm);
  97. model.setValue("/root/main/dateoutputlist["+i+"]/iokindcd1" , "OK");
  98. }
  99. if( tempiokindnm == "이송출고" ) {
  100. // alert(tempiokindnm);
  101. model.setValue("/root/main/dateoutputlist["+i+"]/iokindnm1" , "OK");
  102. }
  103. }
  104. //instance에 Xpath에 값을 가져와서 비교후 맞을경우에는 노드값을 바꿔준다.
  105. //입출유형명에 정산출고일 경우
  106. //입출유형명에 이송출고일 경우
  107. //model.refresh();
  108. ]]>
  109. </script>
  110. </button>
  111. <line id="line14" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  112. <caption id="cap_goodflag" class="search_name" style="left:15px; top:35; width:93px; height:17px; ">물품구분 :</caption>
  113. <caption id="cap_delivefrdd" class="search_name" style="left:667px; top:9px; width:93px; height:17px; ">출고일자 :</caption>
  114. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:34; width:103px; height:19px; ">
  115. <choices>
  116. <itemset nodeset="/root/init/goodflag">
  117. <label ref="cdnm"/>
  118. <value ref="cdid"/>
  119. </itemset>
  120. </choices>
  121. </select1>
  122. <input id="ipt_delivefrdd" ref="/root/send/delivefrdd" class="input_s_essential" inputtype="date" style="left:752px; top:8px; width:100px; height:19px; "/>
  123. <input id="ipt_delivetodd" ref="/root/send/delivetodd" class="input_s_essential" inputtype="date" style="left:871px; top:8px; width:100px; height:19px; "/>
  124. <caption id="caption11" class="search_n_b" style="left:855px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  125. <input id="input2" class="input_search" style="left:436px; top:8px; width:180px; height:19px; "/>
  126. <input id="input3" class="input_search" style="left:333px; top:8px; width:80px; height:19px; "/>
  127. <button id="button2" class="icon_search" style="left:417px; top:8px; width:16px; height:16px; ">
  128. <caption/>
  129. </button>
  130. <caption id="caption3" class="search_name" style="left:248px; top:9; width:93px; height:17px; ">분류코드 :</caption>
  131. <caption id="caption1" class="search_name" style="left:248px; top:35; width:86px; height:17px; ">부 서 :</caption>
  132. <button id="button1" class="icon_search" style="left:417px; top:37px; width:16px; height:16px; ">
  133. <caption/>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var recv_list = "stocdeptcd,stocdeptnm";
  137. misfOpenPopUpList("02", ipt_stocdeptcd,"", recv_list) ;
  138. model.refresh();
  139. ]]>
  140. </script>
  141. </button>
  142. <input id="ipt_stocdeptnm" ref="/root/send/stocdeptnm" class="input_search" style="left:436px; top:34; width:180px; height:19px; "/>
  143. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" class="input_search" style="left:333px; top:34; width:80px; height:19px; "/>
  144. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  145. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:104px; height:19px; ">
  146. <choices>
  147. <itemset nodeset="/root/init/instcd">
  148. <label ref="cdnm"/>
  149. <value ref="cdid"/>
  150. </itemset>
  151. </choices>
  152. </select1>
  153. </group>
  154. <line id="line15" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  155. <datagrid id="grd_dateoutputlist" nodeset="/root/main/dateoutputlist" caption="물품코드^품 명^단 위^정산출고^이송출고^입출유형코드^입출유형명" colsep="^" colwidth="120, 430, 120, 101, 101, 100, 100" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:100px; width:1195px; height:632px; ">
  156. <col ref="goodcd"/>
  157. <col ref="goodnm"/>
  158. <col ref="deliveunit"/>
  159. <col ref="iokindcd1" style="text-align:center; "/>
  160. <col ref="iokindnm1" style="text-align:center; "/>
  161. <col ref="iokindcd" visibility="hidden"/>
  162. <col ref="iokindnm" visibility="hidden"/>
  163. </datagrid>
  164. </group>
  165. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  166. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  167. <caption>출력</caption>
  168. </button>
  169. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  170. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  171. <caption>초기화</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. fInitialize();
  175. ]]>
  176. </script>
  177. </button>
  178. </group>
  179. </xhtml:body>
  180. </xhtml:html>