SMMNG03501_운송불출관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. <trnsinfo>
  11. <trnslist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <outcnt/>
  16. <delcnt/>
  17. <remark1/>
  18. <fstrgstrid/>
  19. <ioseq/>
  20. <ioflag/>
  21. <iodd/>
  22. </trnslist>
  23. <csrdeptlist/>
  24. </trnsinfo>
  25. <csrdeptlist/>
  26. </main>
  27. <send>
  28. <instcdnm/>
  29. <reqfromdd/>
  30. <gubuncd>01</gubuncd>
  31. <reqtodd/>
  32. <cdgrupid>T66</cdgrupid>
  33. <srchflag/>
  34. <deptcd/>
  35. <cdgrupid1>T64</cdgrupid1>
  36. </send>
  37. <cond>
  38. <reqtodd/>
  39. <selyymmdd>DD</selyymmdd>
  40. <reqfromdd/>
  41. </cond>
  42. <init>
  43. <grupcdinfo/>
  44. <grupcdinfo1/>
  45. </init>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fInitialize();
  54. ]]>
  55. </script>
  56. <submission id="TRMNG02305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo"/>
  57. <submission id="TRMNG02306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/grupcdinfo1"/>
  58. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrdeptlist"/>
  59. <submission id="TRMNG03502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/trnsinfo"/>
  60. <submission id="TXMNG02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  61. </model>
  62. <script type="javascript">
  63. <![CDATA[
  64. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  65. function fInitialize()
  66. {
  67. grd_trnslist.fixedcellcheckbox(0, grd_trnslist.colRef("chkyn")) = true;
  68. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  69. model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate()); //년월
  70. var da = getCurrentDate();
  71. var dat = ((da.toDate("YYYYMMDD")).getAddDate(-1, "D")).getDateFormat("YYYYMMDD") ;
  72. model.setValue(ipt_reqfromdd.attribute("ref"), dat);
  73. rdo_srchflag.value = "L";
  74. rdo_srchflag.disabled = true;
  75. model.makeValue("/root/send/useyn", "Y");
  76. grd_trnslist.colDisabled(grd_trnslist.colRef("erflag")) = true;
  77. // CSR 청구부서, 린넨청구부서 가져오기
  78. submit("TRMNG00402");
  79. // 공통코드 가져오기(T66) => 공급실업무구분
  80. submit("TRMNG02305");
  81. // 공통코드 가져오기(T64) => 린넨청구구분
  82. submit("TRMNG02306");
  83. model.refresh();
  84. fSearch();
  85. }
  86. function fSearch() {
  87. model.setValue("/root/send/reqfromdd", model.getValue("/root/cond/reqfromdd"));
  88. model.setValue("/root/send/reqtodd", model.getValue("/root/cond/reqtodd"));
  89. submit("TRMNG03502");
  90. }
  91. function fPrintRex() {
  92. // submit("TRMNG03402");
  93. //
  94. // model.makeNode("/root/send/report/csmtrexinfo");
  95. //
  96. // copyNodesetType("/root/send/report/csmtrexinfo", "/root/main/whiorexinfo");
  97. //
  98. // exeReportPreview("RPMNG03400", "XMLSTR", "/root/send/report/csmtrexinfo");
  99. }
  100. ]]>
  101. </script>
  102. </xhtml:head>
  103. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1210;2,756;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  105. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">운송 불출관리</caption>
  106. </group>
  107. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:655px; ">
  108. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:138px; height:14px; ">운송 불출관리</caption>
  109. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
  110. <button id="btn_sav" class="btn5_letter2" style="left:1135px; top:3px; width:42px; height:19px; ">
  111. <caption>저장</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. var cnt = 0;
  115. for ( i = grd_trnslist.fixedRows; i < grd_trnslist.rows; i++ ) {
  116. if ( grd_trnslist.valueMatrix(i, grd_trnslist.colRef("chkyn")) == "Y" ) {
  117. grd_trnslist.valueMatrix(i, grd_trnslist.colRef("trnsflag")) = "05";
  118. grd_trnslist.valueMatrix(i, grd_trnslist.colRef("trscnt")) = grd_trnslist.valueMatrix(i, grd_trnslist.colRef("outcnt"));
  119. grd_trnslist.rowStatus(i) = 2;
  120. cnt++;
  121. }
  122. }
  123. if ( cnt < 1) {
  124. alert("선택된 불출확인목록이 없습니다.");
  125. return;
  126. }
  127. model.makeValue("/root/send/savedata/trnslist", getGridUpdateData(grd_trnslist) );
  128. if ( submit("TXMNG02304") ) {
  129. alert(cnt + "건이 운송 처리되었습니다.");
  130. }
  131. fSearch();
  132. ]]>
  133. </script>
  134. </button>
  135. <datagrid id="grd_trnslist" nodeset="/root/main/trnsinfo/trnslist" caption="선택^응급여부^상태구분^부서코드^물품코드^상세코드^린넨품명^상세규격^불출량^불출자^운송량^운송자^운송일시^수령량^수령자^수령일시" colsep="^" colwidth="50, 58, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1185px; height:615px; ">
  136. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  137. <col checkvalue="Y,N" ref="erflag" type="checkbox"/>
  138. <col ref="trnsflag" type="combo">
  139. <choices>
  140. <itemset nodeset="/root/init/grupcdinfo1/grupcdlist">
  141. <label ref="cdnm"/>
  142. <value ref="cdid"/>
  143. </itemset>
  144. </choices>
  145. </col>
  146. <col ref="deptcd" type="combo">
  147. <choices>
  148. <itemset nodeset="/root/main/csrdeptlist">
  149. <label ref="deptnm"/>
  150. <value ref="deptcd"/>
  151. </itemset>
  152. </choices>
  153. </col>
  154. <col ref="goodcd" visibility="visible"/>
  155. <col ref="goodcdseq" visibility="visible"/>
  156. <col ref="lngoodnm" visibility="visible"/>
  157. <col ref="goodmodel"/>
  158. <col ref="outcnt" format="#,###"/>
  159. <col ref="outnm"/>
  160. <col ref="trscnt"/>
  161. <col ref="trsnm"/>
  162. <col ref="trsdt"/>
  163. <col ref="reccnt"/>
  164. <col ref="recnm"/>
  165. <col ref="reqdd" visibility="hidden"/>
  166. <col ref="seqno" visibility="hidden"/>
  167. <script type="javascript" ev:event="onkeypress">
  168. <![CDATA[
  169. var row = grd_whiolist.row;
  170. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  171. if(grd_whiolist.col == grd_whiolist.colRef("outcnt") || grd_whiolist.col == grd_whiolist.colRef("delcnt")) { //불출수량이나 미불출수량 엔터시
  172. if(grd_whiolist.row + 1 < grd_whiolist.rows) {
  173. grd_whiolist.row = row + 1;
  174. }
  175. }
  176. }
  177. ]]>
  178. </script>
  179. </datagrid>
  180. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  181. <choices>
  182. <item>
  183. <label>물품마스터</label>
  184. <value>01</value>
  185. </item>
  186. <item>
  187. <label>창고마스터</label>
  188. <value>02</value>
  189. </item>
  190. </choices>
  191. </select1>
  192. </group>
  193. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  194. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1062px; top:27px; width:56px; height:22px; ">
  195. <caption>조회</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. fSearch();
  199. ]]>
  200. </script>
  201. </button>
  202. <line id="line2" class="line_4" style="x1:1050px; y1:25px; x2:1050px; y2:50px; "/>
  203. <caption id="cap_csrreqdeptcd" class="search_name" style="left:245px; top:30px; width:81px; height:17px; ">업무일자:</caption>
  204. <input id="ipt_reqfromdd" ref="/root/cond/reqfromdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:330px; top:30px; width:85px; height:19px; ">
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. fSearch();
  208. ]]>
  209. </script>
  210. </input>
  211. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  212. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:30px; width:135px; height:19px; text-align:center; "/>
  213. <button id="btn_prt" class="btn1_letter2" style="left:1125px; top:27px; width:56px; height:22px; ">
  214. <caption>출력</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. fPrintRex();
  218. ]]>
  219. </script>
  220. </button>
  221. <caption id="caption1" class="search_name" style="left:515px; top:30px; width:81px; height:17px; ">부서구분:</caption>
  222. <select1 id="cmb_dept" ref="/root/send/deptcd" appearance="minimal" style="left:600px; top:30px; width:100px; height:19px; ">
  223. <choices>
  224. <itemset nodeset="/root/main/csrdeptlist">
  225. <label ref="deptnm"/>
  226. <value ref="deptcd"/>
  227. </itemset>
  228. </choices>
  229. </select1>
  230. <select1 id="rdo_srchflag" ref="/root/send/srchflag" appearance="full" cols="4" overflow="visible" style="left:790px; top:30px; width:250px; height:20px; border-style:none; ">
  231. <choices>
  232. <itemset nodeset="/root/init/grupcdinfo/grupcdlist">
  233. <label ref="cdnm"/>
  234. <value ref="cdid"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <caption id="caption2" class="search_name" style="left:705px; top:30px; width:81px; height:17px; ">업무구분:</caption>
  239. <input id="ipt_reqtodd" ref="/root/cond/reqtodd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:430px; top:30px; width:85px; height:19px; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. fSearch();
  243. ]]>
  244. </script>
  245. </input>
  246. <caption id="caption3" style="left:417px; top:30px; width:20px; height:25px; ">~</caption>
  247. </xhtml:body>
  248. </xhtml:html>