123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 수정이력 :
-
- [2007.10.18 HBH : 공급실 불출구분이 "응급"이면 마감차수를 입력받지 않는다.
-
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>청구분출고관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodreqcsrdept>
- <goodreqcsrdeptlist/>
- </goodreqcsrdept>
- <goodreq>
- <goodreqlist/>
- <goodreqdetllist/>
- </goodreq>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </list>
- <item/>
- </main>
- <send>
- <save>
- <goodreq>
- <goodreqlist/>
- </goodreq>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </save>
- <goodreq>
- <instcd/>
- <reqfrdd/>
- <reqtodd/>
- <delivedd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodcd/>
- <goodnm/>
- <deliveprcsflag/>
- <reqflag/>
- <workflag/>
- <reqmthdflag/>
- <purcflag/>
- <deliveprcsflag_group>13</deliveprcsflag_group>
- <deliveflag/>
- <reqpridflag/>
- <csrreqdeptcd/>
- <iudflag/>
- <querygubun/>
- <goodflag>T</goodflag>
- <gubun>Y</gubun>
- </goodreq>
- <gooddelive>
- <instcd/>
- <reqflag/>
- <reqdd/>
- <reqno/>
- <reqseqno/>
- </gooddelive>
- </send>
- <init>
- <goodreqcsrdeptlist>
- <reqdeptcd/>
- <reqdeptnm/>
- </goodreqcsrdeptlist>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- <printdata>
- <instnm/>
- <deliveflagnm/>
- <reqpridflagnm/>
- <fromdd/>
- <todd/>
- </printdata>
- </root>
- </instance>
- <bind id="savedeliveprcsflag" ref="/root/main/list/goodreq/goodreqlist/savedeliveprcsflag" calculate="../deliveprcsflag"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/init/csrreqdeptlist"/>
- <submission id="TRRSE00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/init/goodreqcsrdeptlist"/>
- <submission id="TRRSE00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list/goodreq/goodreqdetllist"/>
- <submission id="TRRSE00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- <submission id="TRRSD06013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/reqtimslist"/>
- <submission id="TXRSE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/temp"/>
- <submission id="TXRSE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var curGoodReqRow = -1;
-
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_goodreqcsrdept);
- misfGridInit(grd_goodreq);
-
- misfComboComCdListMulti("Z0007", "cmb_instcd");
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
-
- submit("TRRSS01211");
-
- addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
-
-
- // 불출구분은 '1"
- model.setValue(cmb_deliveflag.attribute("ref") , "1");
- // hidden
- model.setValue(ipt_reqmthdflag.attribute("ref") , "3");
-
- // [2008.01.23 HBH] reqflag 를 전체 가 가능하게 하면서 물품구분 "T"를 send 추가
- model.setValue(opt_goodflag.attribute("ref") , "T");
-
- grd_goodreq.explorerbar = "sortshow";
-
- for(licol = 0; licol < grd_goodreq.cols ; licol++)if(grd_goodreq.colRef("reqdeptnm") != licol) grd_goodreq.mergecol(licol) = false;
- grd_goodreq.mergecells = "bycol";
-
- model.setValue(ipt_reqfrdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_reqtodd.attribute("ref"), getCurrentDate());
-
- fsearch();
- model.refresh();
- }
-
- function fCheckAuth() {
- // btn_search.disabled = !checkAuth("R") ;
- // btn_save.disabled = !checkAuth("X") ;
- }
- function fsearch() {
- model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
-
- submit("TRRSD06013");
- var degr = model.getValue("/root/init/reqseqlist/reqseq");
-
- cmb_reqpridflag.value = degr;
- }
-
- function fsearch2() {
-
- model.makeValue("/root/send/reqdata/instcd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")));
- model.makeValue("/root/send/reqdata/reqflag", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqflag")));
- model.makeValue("/root/send/reqdata/reqdd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
- model.makeValue("/root/send/reqdata/reqdeptcd", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdeptcd")));
- model.makeValue("/root/send/reqdata/reqseqno", grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqseqno")));
-
- submit("TRRSE00112");
- }
-
- function fsearch3() {
-
- model.setValue("/root/send/goodreq/reqdeptcd", grd_goodreqcsrdept.valueMatrix(grd_goodreqcsrdept.row, grd_goodreqcsrdept.colRef("reqdeptcd")));
- model.refresh();
-
- //청구분출고처리에서 상비품이 조회되지 않게 하기 위해서 임의의 플래그를 보내게 됨으로써 조회시 상비품을 제외시키는 sql을 로드하게 만들어줍니다.
- //맵을 상비품 출고관리와 같이 사용합니다. 그래서 이렇게 플래그를 사용하게 되었습니다.
- model.setValue("/root/send/goodreq/gubun", 'Y');
-
- //misfDetailRetrieve();
- submit("TRRSE00113");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">청구분출관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:62px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1005px; top:27px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //if(fCheckRetrieveData(true) == false)return;
-
- // initial value
- model.setValue("/root/send/goodreq/reqdeptcd", model.getValue(cmb_csrreqdeptcd.attribute("ref")));
- misfGridInit(grd_goodreqcsrdept);
- misfGridInit(grd_goodreq);
-
- //misfMsterDetailRetrieve();
- // grd_goodreqcsrdept.dispatch("onrowchanged");
-
- submit("TRRSE00111");
-
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption23" style="left:407px; top:21px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <button id="btnselect" class="btn2_letter4" style="left:1130px; top:76px; width:64px; height:19px; ">
- <caption>불출저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for(var i = 0; i < grd_goodreq.rows; i++) {
- grd_goodreq.valueMatrix(i, grd_goodreq.colRef("delivedeptcd")) = getUserInfo("dutplcecd");
- }
-
- var updtdata = getGridUpdateData(grd_goodreq);
-
- model.makeValue("/root/send/reqdata/updtdata", updtdata);
-
-
- if(submit("TXRSE00102")) {
- messageBox("저장이 완료되었습니다.", "I");
- }
-
- fsearch3();
-
- ]]>
- </script>
- </button>
- <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; "/>
- <button id="btn_goodcd" class="icon_search" style="left:721px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,opt_goodflag");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="input_search" style="left:721px; top:44px; width:148px; height:19px; text-align:left; "/>
- <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; ">
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqdeptnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="safestocqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:left; "/>
- <col ref="exchngqty2" style="text-align:right; "/>
- <col ref="dlvexchngqty" format="#,###" style="text-align:right; "/>
- <col ref="exchngqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="noexchngqty" format="#,###" style="text-align:right; "/>
- <col ref="lendqty2" style="text-align:right; "/>
- <col ref="dlvlendqty" format="#,###" style="text-align:right; "/>
- <col ref="lendqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="nolendqty" format="#,###" style="text-align:right; "/>
- <col ref="cmt"/>
- <col ref="instcd"/>
- <col ref="reqflag"/>
- <col ref="reqseqno"/>
- <col ref="reqdeptcd"/>
- <col ref="goodcd"/>
- <col ref="goodflag"/>
- <col ref="deliveflag"/>
- <col ref="delivedeptcd"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- //if(grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("input") > -1 ||grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("checkbox") > -1) grd_goodreq.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_goodreq.isCell(event.target) && grd_goodreq.mouseRow >= grd_goodreq.fixedrows){
- if(grd_goodreq.col != grd_goodreq.colRef("exchngqty") && grd_goodreq.col != grd_goodreq.colRef("lendqty") ) {
- fsearch2();
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- if(grd_goodreq.col == grd_goodreq.colRef("exchngqty")) {
-
- var exchngqty2 = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty2"));
- var dlvexchngqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("dlvexchngqty"));
- var exchngqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty"));
-
- var org = Number(exchngqty2);
- var sum = Number(dlvexchngqty) + Number(exchngqty);
-
- if( org < sum ) {
- messageBox("불출량이 청구량보다 많을 수 없습니다.", "E");
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty")) = "";
- grd_goodreq.rowStatus(grd_goodreq.row) = "0";
- grd_goodreq.editCell();
- }
- } else if(grd_goodreq.col == grd_goodreq.colRef("lendqty")) {
-
- var lendqty2 = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("lendqty2"));
- var dlvlendqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("dlvlendqty"));
- var lendqty = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("lendqty"));
-
- var org = Number(lendqty2);
- var sum = Number(dlvlendqty) + Number(lendqty);
-
- if( org < sum ) {
- messageBox("불출량이 청구량보다 많을 수 없습니다.", "E");
- grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("exchngqty")) = "";
-
- grd_goodreq.editCell();
- }
-
- }
- ]]>
- </script>
- </datagrid>
- <line id="line14" class="line_4" style="x1:990px; y1:20px; x2:990px; y2:62px; "/>
- <caption id="caption14" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption16" class="search_name" style="left:536px; top:45px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption18" class="search_name" visibility="hidden" style="left:535px; top:20px; width:86px; height:17px; ">진행상태 :</caption>
- <caption id="caption20" class="search_name" style="left:15px; top:45px; width:94px; height:17px; ">부서구분 :</caption>
- <caption id="caption24" class="search_name" style="left:215px; top:20px; width:86px; height:17px; ">청구일자 :</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:170px; y2:96px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:81px; width:110px; height:13px; ">청구부서</caption>
- <input id="ipt_reqmthdflag" ref="/root/send/goodreq/reqmthdflag" visibility="hidden" style="left:915px; top:25px; width:25px; height:19px; text-align:center; "/>
- <select1 id="cmb_reqpridflag" ref="/root/send/goodreq/reqpridflag" appearance="minimal" style="left:365px; top:45px; width:65px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/reqtimslist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_deliveflag" ref="/root/send/goodreq/deliveflag" appearance="minimal" style="left:301px; top:45px; width:59px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>정기</label>
- <value>1</value>
- </item>
- <item>
- <label>응급</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:215px; top:45px; width:86px; height:17px; ">청구주기</caption>
- <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; ">
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="qty"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/goodreq/reqdeptcd", "");
-
- misfGridInit(grd_goodreq);
-
- if(grd_goodreqcsrdept.isCell(event.target) && grd_goodreqcsrdept.mouseRow >= grd_goodreqcsrdept.fixedrows){
- fsearch3();
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:175px; y1:96px; x2:1195px; y2:96px; "/>
- <output id="opt_goodflag" ref="/root/send/goodreq/goodflag" visibility="hidden" style="left:820px; top:20px; width:20px; height:19px; "/>
- <output id="output1" ref="/root/send/goodreq/gubun" visibility="hidden" style="left:845px; top:20px; width:70px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>불출</label>
- <value>67</value>
- </item>
- <item>
- <label>미불출</label>
- <value>13</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:19px; width:95px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/goodreq/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:44px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button2" class="btn1_letter2" navindex="7" style="left:1065px; top:27px; width:56px; height:22px; text-align:left; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData(true) == false)return;
-
- // initial value
- model.setValue("/root/send/goodreq/reqdeptcd", "");
- misfGridInit(grd_goodreqcsrdept);
- misfGridInit(grd_goodreq);
-
- //misfMsterDetailRetrieve();
- // grd_goodreqcsrdept.dispatch("onrowchanged");
- submit("TRRSE00111");
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn1_letter2" navindex="7" style="left:1125px; top:27px; width:56px; height:22px; text-align:left; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData(true) == false)return;
-
- // initial value
- model.setValue("/root/send/goodreq/reqdeptcd", "");
- misfGridInit(grd_goodreqcsrdept);
- misfGridInit(grd_goodreq);
-
- //misfMsterDetailRetrieve();
- // grd_goodreqcsrdept.dispatch("onrowchanged");
- submit("TRRSE00111");
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:175px; top:81px; width:110px; height:13px; ">불출List</caption>
- <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; ">
- <col ref="delivestat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>불출</label>
- <value>Y</value>
- </item>
- <item>
- <label>불출취소</label>
- <value>C</value>
- </item>
- <item>
- <label>부분반납</label>
- <value>D</value>
- </item>
- <item>
- <label>반납완료</label>
- <value>X</value>
- </item>
- </choices>
- </col>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqdeptnm"/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="delivedd" format="yyyy-mm-dd"/>
- <col ref="dlvexchngqty" type="input" format="#,###"/>
- <col ref="dlvlendqty"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="cmt"/>
- <col ref="reqdeptcd"/>
- <col ref="reqseqno"/>
- <col ref="reqflag"/>
- <col ref="instcd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- grd_goodreq.rebuild();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:175px; top:425px; width:110px; height:14px; ">불출상세List</caption>
- <line id="line3" class="line_1" style="x1:175px; y1:440px; x2:1195px; y2:440px; "/>
- <button id="button1" class="btn2_letter4" style="left:1130px; top:420px; width:64px; height:19px; ">
- <caption>불출취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_goodreqdetllist.row > -1 && grd_goodreqdetllist.row >= grd_goodreqdetllist.fixedrows){
- var rtn = messageBox("불출을 취소하시겠습니까?", "Q");
- if(rtn == "6") {
- var firstRow = grd_goodreqdetllist.selectedRow(0);
- var lastRow = grd_goodreqdetllist.selectedRow(grd_goodreqdetllist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- grd_goodreqdetllist.addStatus(i, "update");
- }
-
- var updtdata = getGridUpdateData(grd_goodreqdetllist);
- model.makeValue("/root/send/reqdata/goodreqdetllist", updtdata);
-
- submit("TXRSE00103");
- if(model.getValue("/root/temp/exist/count") == "0") {
- messageBox("반납내역이 존재하여 불출취소를 할 수 없습니다.", "E");
- fsearch2();
- return;
- }
- fsearch2();
- }
- }
- else {
- messageBox("불출 취소할 항목을 선택하여 주세요.", "E");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|