SMRSE00100_청구분출고관리(CSR).xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 수정이력 :
  4. [2007.10.18 HBH : 공급실 불출구분이 "응급"이면 마감차수를 입력받지 않는다.
  5. -->
  6. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>청구분출고관리</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <list>
  15. <goodreqcsrdept>
  16. <goodreqcsrdeptlist/>
  17. </goodreqcsrdept>
  18. <goodreq>
  19. <goodreqlist/>
  20. <goodreqdetllist/>
  21. </goodreq>
  22. <gooddelive>
  23. <gooddelivelist/>
  24. </gooddelive>
  25. </list>
  26. <item/>
  27. </main>
  28. <send>
  29. <save>
  30. <goodreq>
  31. <goodreqlist/>
  32. </goodreq>
  33. <gooddelive>
  34. <gooddelivelist/>
  35. </gooddelive>
  36. </save>
  37. <goodreq>
  38. <instcd/>
  39. <reqfrdd/>
  40. <reqtodd/>
  41. <delivedd/>
  42. <reqdeptcd/>
  43. <reqdeptnm/>
  44. <goodcd/>
  45. <goodnm/>
  46. <deliveprcsflag/>
  47. <reqflag/>
  48. <workflag/>
  49. <reqmthdflag/>
  50. <purcflag/>
  51. <deliveprcsflag_group>13</deliveprcsflag_group>
  52. <deliveflag/>
  53. <reqpridflag/>
  54. <csrreqdeptcd/>
  55. <iudflag/>
  56. <querygubun/>
  57. <goodflag>T</goodflag>
  58. <gubun>Y</gubun>
  59. </goodreq>
  60. <gooddelive>
  61. <instcd/>
  62. <reqflag/>
  63. <reqdd/>
  64. <reqno/>
  65. <reqseqno/>
  66. </gooddelive>
  67. </send>
  68. <init>
  69. <goodreqcsrdeptlist>
  70. <reqdeptcd/>
  71. <reqdeptnm/>
  72. </goodreqcsrdeptlist>
  73. </init>
  74. <hidden/>
  75. <temp/>
  76. <copynode/>
  77. <printdata>
  78. <instnm/>
  79. <deliveflagnm/>
  80. <reqpridflagnm/>
  81. <fromdd/>
  82. <todd/>
  83. </printdata>
  84. </root>
  85. </instance>
  86. <bind id="savedeliveprcsflag" ref="/root/main/list/goodreq/goodreqlist/savedeliveprcsflag" calculate="../deliveprcsflag"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. //화면 Control을 초기화한다
  90. fCheckAuth();
  91. fInitialize();
  92. ]]>
  93. </script>
  94. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/init/csrreqdeptlist"/>
  95. <submission id="TRRSE00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/init/goodreqcsrdeptlist"/>
  96. <submission id="TRRSE00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list/goodreq/goodreqdetllist"/>
  97. <submission id="TRRSE00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  98. <submission id="TRRSD06013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/reqtimslist"/>
  99. <submission id="TXRSE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/temp"/>
  100. <submission id="TXRSE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  108. <script type="javascript">
  109. <![CDATA[
  110. var curGoodReqRow = -1;
  111. function fInitialize() {
  112. model.resetInstanceNode("/root/send");
  113. misfGridInit(grd_goodreqcsrdept);
  114. misfGridInit(grd_goodreq);
  115. misfComboComCdListMulti("Z0007", "cmb_instcd");
  116. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  117. submit("TRRSS01211");
  118. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  119. // 불출구분은 '1"
  120. model.setValue(cmb_deliveflag.attribute("ref") , "1");
  121. // hidden
  122. model.setValue(ipt_reqmthdflag.attribute("ref") , "3");
  123. // [2008.01.23 HBH] reqflag 를 전체 가 가능하게 하면서 물품구분 "T"를 send 추가
  124. model.setValue(opt_goodflag.attribute("ref") , "T");
  125. grd_goodreq.explorerbar = "sortshow";
  126. for(licol = 0; licol < grd_goodreq.cols ; licol++)if(grd_goodreq.colRef("reqdeptnm") != licol) grd_goodreq.mergecol(licol) = false;
  127. grd_goodreq.mergecells = "bycol";
  128. model.setValue(ipt_reqfrdd.attribute("ref"), getCurrentDate());
  129. model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate());
  130. fsearch();
  131. model.refresh();
  132. }
  133. function fCheckAuth() {
  134. // btn_search.disabled = !checkAuth("R") ;
  135. // btn_save.disabled = !checkAuth("X") ;
  136. }
  137. function fsearch() {
  138. model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
  139. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  140. submit("TRRSD06013");
  141. var degr = model.getValue("/root/init/reqseqlist/reqseq");
  142. cmb_reqpridflag.value = degr;
  143. }
  144. function fsearch2() {
  145. model.makeValue("/root/send/reqdata/instcd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")));
  146. model.makeValue("/root/send/reqdata/reqflag", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqflag")));
  147. model.makeValue("/root/send/reqdata/reqdd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
  148. model.makeValue("/root/send/reqdata/reqdeptcd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdeptcd")));
  149. model.makeValue("/root/send/reqdata/reqseqno", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqseqno")));
  150. submit("TRRSE00112");
  151. }
  152. function fsearch3() {
  153. model.setValue("/root/send/goodreq/reqdeptcd", grd_goodreqcsrdept.valueMatrix(grd_goodreqcsrdept.row, grd_goodreqcsrdept.colRef("reqdeptcd")));
  154. model.refresh();
  155. //청구분출고처리에서 상비품이 조회되지 않게 하기 위해서 임의의 플래그를 보내게 됨으로써 조회시 상비품을 제외시키는 sql을 로드하게 만들어줍니다.
  156. //맵을 상비품 출고관리와 같이 사용합니다. 그래서 이렇게 플래그를 사용하게 되었습니다.
  157. model.setValue("/root/send/goodreq/gubun", 'Y');
  158. //misfDetailRetrieve();
  159. submit("TRRSE00113");
  160. }
  161. ]]>
  162. </script>
  163. </xhtml:head>
  164. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  165. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  166. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">청구분출관리</caption>
  167. </group>
  168. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  169. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:62px; "/>
  170. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1005px; top:27px; width:56px; height:22px; text-align:left; ">
  171. <caption>조회</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. //if(fCheckRetrieveData(true) == false)return;
  175. // initial value
  176. model.setValue("/root/send/goodreq/reqdeptcd", model.getValue(cmb_csrreqdeptcd.attribute("ref")));
  177. misfGridInit(grd_goodreqcsrdept);
  178. misfGridInit(grd_goodreq);
  179. //misfMsterDetailRetrieve();
  180. // grd_goodreqcsrdept.dispatch("onrowchanged");
  181. submit("TRRSE00111");
  182. ]]>
  183. </script>
  184. </button>
  185. <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:301px; top:18px; width:100px; height:19px; text-align:center; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. btn_search.dispatch("DOMActivate");
  189. ]]>
  190. </script>
  191. </input>
  192. <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:425px; top:20px; width:100px; height:19px; text-align:center; ">
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. btn_search.dispatch("DOMActivate");
  196. ]]>
  197. </script>
  198. </input>
  199. <caption id="caption23" style="left:407px; top:21px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  200. <button id="btnselect" class="btn2_letter4" style="left:1130px; top:76px; width:64px; height:19px; ">
  201. <caption>불출저장</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. for(var i = 0; i < grd_goodreq.rows; i++) {
  205. grd_goodreq.valueMatrix(i, grd_goodreq.colRef("delivedeptcd")) = getUserInfo("dutplcecd");
  206. }
  207. var updtdata = getGridUpdateData(grd_goodreq);
  208. model.makeValue("/root/send/reqdata/updtdata", updtdata);
  209. if(submit("TXRSE00102")) {
  210. messageBox("저장이 완료되었습니다.", "I");
  211. }
  212. fsearch3();
  213. ]]>
  214. </script>
  215. </button>
  216. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_search" imemode="disabled" appearance="input" style="left:622px; top:44px; width:96px; height:19px; text-align:left; "/>
  217. <button id="btn_goodcd" class="icon_search" style="left:721px; top:46px; width:16px; height:16px; ">
  218. <caption/>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,opt_goodflag");
  222. model.refresh();
  223. btn_search.dispatch("DOMActivate");
  224. ]]>
  225. </script>
  226. </button>
  227. <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="input_search" style="left:721px; top:44px; width:148px; height:19px; text-align:left; "/>
  228. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" visibility="visible" caption="청구일자^청구부서^물품명^규격^안전재고^불출단위^교환^교환^교환^교환^대여^대여^대여^대여^미불출사유^instcd^reqflag^reqseqno^reqdeptcd^goodcd^goodflag^deliveflag^delivedeptcd|청구일자^청구부서^물품명^규격^안전재고^불출단위^수량^기불출^불출^미불출^수량^기불출^불출^미불출^미불출사유^instcd^reqflag^reqseqno^reqdeptcd^goodcd^goodflag^deliveflag^delivedeptcd" colsep="^" colwidth="80, 67, 160, 130, 65, 60, 50, 50, 50, 50, 50, 50, 50, 50, 161, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecells="byrowrec" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:175px; top:101px; width:1020px; height:315px; ">
  229. <col ref="reqdd" format="yyyy-mm-dd"/>
  230. <col ref="reqdeptnm"/>
  231. <col ref="goodnm"/>
  232. <col ref="goodspec"/>
  233. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  234. <col ref="deliveunit" style="text-align:left; "/>
  235. <col ref="exchngqty2" style="text-align:right; "/>
  236. <col ref="dlvexchngqty" format="#,###" style="text-align:right; "/>
  237. <col ref="exchngqty" type="input" format="#,###" style="text-align:right; "/>
  238. <col ref="noexchngqty" format="#,###" style="text-align:right; "/>
  239. <col ref="lendqty2" style="text-align:right; "/>
  240. <col ref="dlvlendqty" format="#,###" style="text-align:right; "/>
  241. <col ref="lendqty" type="input" format="#,###" style="text-align:right; "/>
  242. <col ref="nolendqty" format="#,###" style="text-align:right; "/>
  243. <col ref="cmt"/>
  244. <col ref="instcd"/>
  245. <col ref="reqflag"/>
  246. <col ref="reqseqno"/>
  247. <col ref="reqdeptcd"/>
  248. <col ref="goodcd"/>
  249. <col ref="goodflag"/>
  250. <col ref="deliveflag"/>
  251. <col ref="delivedeptcd"/>
  252. <script type="javascript" ev:event="onentercell">
  253. <![CDATA[
  254. //if(grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("input") > -1 ||grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("checkbox") > -1) grd_goodreq.editCell();
  255. ]]>
  256. </script>
  257. <script type="javascript" ev:event="onaftersort">
  258. <![CDATA[
  259. grd_goodreq.gridToInstance();
  260. ]]>
  261. </script>
  262. <script type="javascript" ev:event="onclick">
  263. <![CDATA[
  264. if(grd_goodreq.isCell(event.target) && grd_goodreq.mouseRow >= grd_goodreq.fixedrows){
  265. if(grd_goodreq.col != grd_goodreq.colRef("exchngqty") && grd_goodreq.col != grd_goodreq.colRef("lendqty") ) {
  266. fsearch2();
  267. }
  268. }
  269. ]]>
  270. </script>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. if(grd_goodreq.col == grd_goodreq.colRef("exchngqty")) {
  274. var exchngqty2 = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty2"));
  275. var dlvexchngqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("dlvexchngqty"));
  276. var exchngqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty"));
  277. var org = Number(exchngqty2);
  278. var sum = Number(dlvexchngqty) + Number(exchngqty);
  279. if( org < sum ) {
  280. messageBox("불출량이 청구량보다 많을 수 없습니다.", "E");
  281. grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty")) = "";
  282. grd_goodreq.rowStatus(grd_goodreq.row) = "0";
  283. grd_goodreq.editCell();
  284. }
  285. } else if(grd_goodreq.col == grd_goodreq.colRef("lendqty")) {
  286. var lendqty2 = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("lendqty2"));
  287. var dlvlendqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("dlvlendqty"));
  288. var lendqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("lendqty"));
  289. var org = Number(lendqty2);
  290. var sum = Number(dlvlendqty) + Number(lendqty);
  291. if( org < sum ) {
  292. messageBox("불출량이 청구량보다 많을 수 없습니다.", "E");
  293. grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty")) = "";
  294. grd_goodreq.editCell();
  295. }
  296. }
  297. ]]>
  298. </script>
  299. </datagrid>
  300. <line id="line14" class="line_4" style="x1:990px; y1:20px; x2:990px; y2:62px; "/>
  301. <caption id="caption14" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  302. <caption id="caption16" class="search_name" style="left:536px; top:45px; width:86px; height:17px; ">물품코드 :</caption>
  303. <caption id="caption18" class="search_name" visibility="hidden" style="left:535px; top:20px; width:86px; height:17px; ">진행상태 :</caption>
  304. <caption id="caption20" class="search_name" style="left:15px; top:45px; width:94px; height:17px; ">부서구분 :</caption>
  305. <caption id="caption24" class="search_name" style="left:215px; top:20px; width:86px; height:17px; ">청구일자 :</caption>
  306. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:170px; y2:96px; "/>
  307. <caption id="caption4" class="tit_2" style="left:5px; top:81px; width:110px; height:13px; ">청구부서</caption>
  308. <input id="ipt_reqmthdflag" ref="/root/send/goodreq/reqmthdflag" visibility="hidden" style="left:915px; top:25px; width:25px; height:19px; text-align:center; "/>
  309. <select1 id="cmb_reqpridflag" ref="/root/send/goodreq/reqpridflag" appearance="minimal" style="left:365px; top:45px; width:65px; height:19px; text-align:center; ">
  310. <choices>
  311. <itemset nodeset="/root/init/reqtimslist">
  312. <label ref="cdnm"/>
  313. <value ref="cdid"/>
  314. </itemset>
  315. </choices>
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. btn_search.dispatch("DOMActivate");
  319. ]]>
  320. </script>
  321. </select1>
  322. <select1 id="cmb_deliveflag" ref="/root/send/goodreq/deliveflag" appearance="minimal" style="left:301px; top:45px; width:59px; height:19px; text-align:center; ">
  323. <choices>
  324. <item>
  325. <label>정기</label>
  326. <value>1</value>
  327. </item>
  328. <item>
  329. <label>응급</label>
  330. <value>2</value>
  331. </item>
  332. </choices>
  333. </select1>
  334. <caption id="caption1" class="search_name" style="left:215px; top:45px; width:86px; height:17px; ">청구주기</caption>
  335. <datagrid id="grd_goodreqcsrdept" nodeset="/root/init/goodreqcsrdeptlist" caption="청구부서^청구부서^수량" colsep="^" colwidth="6, 100, 46" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:101px; width:170px; height:643px; ">
  336. <col ref="reqdeptcd" visibility="hidden"/>
  337. <col ref="reqdeptnm"/>
  338. <col ref="qty"/>
  339. <script type="javascript" ev:event="onclick">
  340. <![CDATA[
  341. model.setValue("/root/send/goodreq/reqdeptcd", "");
  342. misfGridInit(grd_goodreq);
  343. if(grd_goodreqcsrdept.isCell(event.target) && grd_goodreqcsrdept.mouseRow >= grd_goodreqcsrdept.fixedrows){
  344. fsearch3();
  345. }
  346. ]]>
  347. </script>
  348. </datagrid>
  349. <line id="line2" class="line_1" style="x1:175px; y1:96px; x2:1195px; y2:96px; "/>
  350. <output id="opt_goodflag" ref="/root/send/goodreq/goodflag" visibility="hidden" style="left:820px; top:20px; width:20px; height:19px; "/>
  351. <output id="output1" ref="/root/send/goodreq/gubun" visibility="hidden" style="left:845px; top:20px; width:70px; height:19px; "/>
  352. <select1 id="rdo_deliveprcsflag_group" ref="/root/send/goodreq/deliveprcsflag_group" visibility="hidden" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:620px; top:20px; width:185px; height:15px; border-style:none; ">
  353. <choices>
  354. <item>
  355. <label>전체</label>
  356. <value/>
  357. </item>
  358. <item>
  359. <label>불출</label>
  360. <value>67</value>
  361. </item>
  362. <item>
  363. <label>미불출</label>
  364. <value>13</value>
  365. </item>
  366. </choices>
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. btn_search.dispatch("DOMActivate");
  370. ]]>
  371. </script>
  372. </select1>
  373. <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:19px; width:95px; height:19px; ">
  374. <choices>
  375. <itemset>
  376. <label/>
  377. <value/>
  378. </itemset>
  379. </choices>
  380. </select1>
  381. <select1 id="cmb_csrreqdeptcd" ref="/root/send/goodreq/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:44px; width:95px; height:19px; ">
  382. <choices>
  383. <itemset nodeset="/root/init/csrreqdeptlist">
  384. <label ref="csrreqdeptnm"/>
  385. <value ref="csrreqdeptcd"/>
  386. </itemset>
  387. </choices>
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. btn_search.dispatch("DOMActivate");
  391. ]]>
  392. </script>
  393. </select1>
  394. <button id="button2" class="btn1_letter2" navindex="7" style="left:1065px; top:27px; width:56px; height:22px; text-align:left; ">
  395. <caption>엑셀</caption>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. if(fCheckRetrieveData(true) == false)return;
  399. // initial value
  400. model.setValue("/root/send/goodreq/reqdeptcd", "");
  401. misfGridInit(grd_goodreqcsrdept);
  402. misfGridInit(grd_goodreq);
  403. //misfMsterDetailRetrieve();
  404. // grd_goodreqcsrdept.dispatch("onrowchanged");
  405. submit("TRRSE00111");
  406. ]]>
  407. </script>
  408. </button>
  409. <button id="button3" class="btn1_letter2" navindex="7" style="left:1125px; top:27px; width:56px; height:22px; text-align:left; ">
  410. <caption>출력</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. if(fCheckRetrieveData(true) == false)return;
  414. // initial value
  415. model.setValue("/root/send/goodreq/reqdeptcd", "");
  416. misfGridInit(grd_goodreqcsrdept);
  417. misfGridInit(grd_goodreq);
  418. //misfMsterDetailRetrieve();
  419. // grd_goodreqcsrdept.dispatch("onrowchanged");
  420. submit("TRRSE00111");
  421. ]]>
  422. </script>
  423. </button>
  424. <caption id="caption2" class="tit_2" style="left:175px; top:81px; width:110px; height:13px; ">불출List</caption>
  425. <datagrid id="grd_goodreqdetllist" nodeset="/root/main/list/goodreq/goodreqdetllist" visibility="visible" caption="불출상태^청구일자^청구부서^물품명^규격^불출일자^교환^대여^불출번호^미불출사유^reqdeptcd^reqseqno^reqflag^instcd" colsep="^" colwidth="74, 80, 118, 160, 130, 100, 100, 100, 0, 161, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:175px; top:445px; width:1020px; height:298px; ">
  426. <col ref="delivestat" type="combo" style="text-align:center; ">
  427. <choices>
  428. <item>
  429. <label>불출</label>
  430. <value>Y</value>
  431. </item>
  432. <item>
  433. <label>불출취소</label>
  434. <value>C</value>
  435. </item>
  436. <item>
  437. <label>부분반납</label>
  438. <value>D</value>
  439. </item>
  440. <item>
  441. <label>반납완료</label>
  442. <value>X</value>
  443. </item>
  444. </choices>
  445. </col>
  446. <col ref="reqdd" format="yyyy-mm-dd"/>
  447. <col ref="reqdeptnm"/>
  448. <col ref="goodnm" style="text-align:left; "/>
  449. <col ref="goodspec" style="text-align:left; "/>
  450. <col ref="delivedd" format="yyyy-mm-dd"/>
  451. <col ref="dlvexchngqty" type="input" format="#,###"/>
  452. <col ref="dlvlendqty"/>
  453. <col ref="deliveseqno" visibility="hidden"/>
  454. <col ref="cmt"/>
  455. <col ref="reqdeptcd"/>
  456. <col ref="reqseqno"/>
  457. <col ref="reqflag"/>
  458. <col ref="instcd"/>
  459. <script type="javascript" ev:event="onaftersort">
  460. <![CDATA[
  461. grd_goodreq.gridToInstance();
  462. grd_goodreq.rebuild();
  463. ]]>
  464. </script>
  465. </datagrid>
  466. <caption id="caption3" class="tit_2" style="left:175px; top:425px; width:110px; height:14px; ">불출상세List</caption>
  467. <line id="line3" class="line_1" style="x1:175px; y1:440px; x2:1195px; y2:440px; "/>
  468. <button id="button1" class="btn2_letter4" style="left:1130px; top:420px; width:64px; height:19px; ">
  469. <caption>불출취소</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. if(grd_goodreqdetllist.row > -1 && grd_goodreqdetllist.row >= grd_goodreqdetllist.fixedrows){
  473. var rtn = messageBox("불출을 취소하시겠습니까?", "Q");
  474. if(rtn == "6") {
  475. var firstRow = grd_goodreqdetllist.selectedRow(0);
  476. var lastRow = grd_goodreqdetllist.selectedRow(grd_goodreqdetllist.selectedRows-1);
  477. for(var i = firstRow; i <= lastRow; i++) {
  478. grd_goodreqdetllist.addStatus(i, "update");
  479. }
  480. var updtdata = getGridUpdateData(grd_goodreqdetllist);
  481. model.makeValue("/root/send/reqdata/goodreqdetllist", updtdata);
  482. submit("TXRSE00103");
  483. if(model.getValue("/root/temp/exist/count") == "0") {
  484. messageBox("반납내역이 존재하여 불출취소를 할 수 없습니다.", "E");
  485. fsearch2();
  486. return;
  487. }
  488. fsearch2();
  489. }
  490. }
  491. else {
  492. messageBox("불출 취소할 항목을 선택하여 주세요.", "E");
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. </group>
  498. </xhtml:body>
  499. </xhtml:html>