SMRSE00120_청구분반납관리(CSR).xrw 25 KB

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