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

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