123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <goodreq>
- <goodreqlist/>
- <goodmaxreqno/>
- </goodreq>
- <goodreqno>
- <goodmaxreqno/>
- </goodreqno>
- <psgereq>
- <psgereqlist/>
- </psgereq>
- </list>
- <goodreq>
- <goodreqlist>
- <reqdd/>
- <reqno/>
- <reqpsnnm/>
- <reqdeptnm/>
- <bugtexpcamt/>
- <reqflagnm/>
- <reqflag/>
- <reqseqno/>
- <workflag/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpycd/>
- <prodcmpynm/>
- <bugtcd/>
- <bugtnm/>
- <bugtyy/>
- <stdysubjno/>
- <reqdeptcd/>
- <installplcecd/>
- <reqpsnid/>
- <reqtm/>
- <delivedeptcd/>
- <delivehopedd/>
- <reqqty/>
- <requnit/>
- <attfilenm/>
- <attfilepathnm/>
- <makeyn/>
- <deptaprvyn/>
- <deptaprvdd/>
- <acptflag/>
- <acptdd/>
- <adjtqty/>
- <adjtrsn/>
- <acptcharid/>
- <plceorddd/>
- <plceordseqno/>
- <deliveqty/>
- <unwinresn/>
- <deliveprcsflag/>
- <cmt/>
- <instcd/>
- <installplcenm/>
- <totamt/>
- <useamt/>
- <remamt/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <fixasetcd/>
- <cntrdeptcd/>
- <cntrdeptcdnm/>
- <mngtdeptcd/>
- <mngtdeptcdnm/>
- <reqtel/>
- </goodreqlist>
- </goodreq>
- </main>
- <send>
- <save>
- <goodreqlist/>
- </save>
- <goodreq>
- <instcd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqflag/>
- <reqfrdd/>
- <reqtodd/>
- <psgedeptaprvyn/>
- <psgedeptcd/>
- </goodreq>
- <psgereq>
- <instcd/>
- <reqflag/>
- <reqdd/>
- <reqno/>
- <reqseqno/>
- <psgedeptcd/>
- <psgedeptaprvyn/>
- </psgereq>
- <search>
- <goodflag/>
- </search>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD11102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
- <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TRRSD11103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/psgereq" resultref="/root/main/list/psgereq"/>
- <submission id="TRRSD04801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.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">
- <![CDATA[
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
-
- //misfComboComCdListMulti("Z0007,R0032","cmb_instcd_search,cmb_requnit");
- misfComboComCdListMulti("Z0007,R0032,R0246","cmb_instcd_search,cmb_requnit,cmb_workflag");
-
- rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
- //rszfComboAppendBlankChild("cmb_deliveprceflag");
- misfGridInit(grd_goodreq);
- misfGridInit(grd_psgelist);
-
-
- misfMsterDetailSet(grd_goodreq,null, "TRRSD04801" ,"N");
- /*-----------------------------------------------------------------*/
- /* 조회조건 추가로 인해 m/d 가 깨졌다 .......그럼 하단 1줄을 막아야한다.*/
- /* 그러나 저장시 TXRSD11101 을 사용하기 위해 그냥 둔다 */
- /*-----------------------------------------------------------------*/
- misfMsterDetailSet(grd_psgelist,grd_goodreq, "TRRSD11103" ,"Y");
-
-
- model.setValue(ipt_reqfrdd_search.attribute("ref") , getCurrentDate());
- model.setValue(ipt_reqtodd_search.attribute("ref") , getCurrentDate());
-
- //getUserInfo("dutplceinstcd")
- //if(cmb_instcd.length > 0) cmb_instcd.selectedindex= 0;
- model.setValue(cmb_instcd_search.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- //model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
- //model.setValue(ipt_reqdeptcd_search.attribute("ref") , "4080102000");
- //model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
-
- // hidden
- model.setValue(cmb_reqflag_search.attribute("ref") , "D");
- model.setValue(ipt_goodflag.attribute("ref") , "GE");
- //model.setValue(ipt_psgedeptcd.attribute("ref") , "3230000000"); //경유부서
- model.setValue(ipt_psgedeptcd.attribute("ref") , getUserInfo("dutplcecd")); //경유부서
-
- btn_search.dispatch("DOMActivate");
- fAllControlDisabled("Y");
-
- model.refresh();
- }
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
- function fSetControlDisabled(pDisabled)
- {
- ipt_reqno.disabled = pDisabled;
- }
-
- function fReplacefilename()
- {
- if(model.getValue(ipt_attfilepathnm.attribute("ref")).length !=0)
- {
- var attfilepathnm = model.getValue(ipt_attfilepathnm.attribute("ref"));
- var replacepath = "";
- attfilepathnmlist = attfilepathnm.split("\\");
-
- for(var i = 0 ; i < attfilepathnmlist.length ; i++ )
- {
- if(attfilepathnmlist[i].length>0)
- {
- if (i == 0) replacepath = replacepath + attfilepathnmlist[i];
- else replacepath = replacepath + '\\'+attfilepathnmlist[i];
- }
- }
- model.setValue(ipt_attfilepathnm.attribute("ref"),replacepath);
- model.refresh();
-
- }
- }
- /*--------------------------------------------------------------------------------*/
- /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
- /*--------------------------------------------------------------------------------*/
- function fAllControlDisabled(pDisableYn)
- {
- if(pDisableYn == "Y")
- {
- ipt_goodnm.disabled ="true";
- ipt_goodspec.disabled ="true";
- ipt_goodmodel.disabled ="true";
- cmb_workflag.disabled ="true";
- rbo_makeyn.disabled ="true";
- cmb_requnit.disabled ="true";
- ipt_prodcmpycd.disabled ="true";
- ipt_reqqty.disabled ="true";
- ipt_installplcecd.disabled ="true";
- // ipt_bugtyy.disabled ="true";
- // ipt_bugtexpcamt.disabled ="true";
- // ipt_attfilename.disabled ="true";
- ipt_attfilepathnm.disabled ="true";
-
- /*-----------------------------------------------------------------*/
- /* 하단은 disable 해놓구 우측에서 선택하게한다. */
- /*-----------------------------------------------------------------*/
- ipt_lrgcd.disabled ="true";
- opt_lrgnm.disabled ="true";
- ipt_mdlcd.disabled ="true";
- opt_mdlnm.disabled ="true";
- ipt_smlcd.disabled ="true";
- opt_smlnm.disabled ="true";
- ipt_fixasetcd.disabled ="true";
- ipt_acptcharid.disabled="true";
- ipt_acptdd.disabled="true";
- cmb_acptflag.disabled="true";
- ipt_adjtqty.disabled="true";
- ipt_adjtrsn.disabled="true";
- ipt_cmt.disabled="true";
-
- // ipt_cntrdeptcd.disabled ="true";
- // ipt_cntrdeptcdnm.disabled ="true";
-
- // ipt_mngtdeptcd.disabled ="true";
- // ipt_mngtdeptcdnm.disabled ="true";
-
- }
- else
- {
-
- ipt_goodnm.disabled ="false";
- ipt_goodspec.disabled ="false";
- ipt_goodmodel.disabled ="false";
- cmb_workflag.disabled ="false";
- rbo_makeyn.disabled ="false";
- cmb_requnit.disabled ="false";
- ipt_prodcmpycd.disabled ="false";
- ipt_reqqty.disabled ="false";
- ipt_installplcecd.disabled ="false";
- // ipt_bugtyy.disabled ="false";
- // ipt_bugtexpcamt.disabled ="false";
- // ipt_attfilename.disabled ="false";
- ipt_attfilepathnm.disabled ="false";
-
- ipt_acptcharid.disabled="false";
- ipt_acptdd.disabled="false";
- cmb_acptflag.disabled="false";
- ipt_adjtqty.disabled="false";
- ipt_adjtrsn.disabled="false";
- ipt_cmt.disabled="false";
-
- // ipt_cntrdeptcd.disabled ="false";
- // ipt_cntrdeptcdnm.disabled ="false";
-
- // ipt_mngtdeptcd.disabled ="false";
- // ipt_mngtdeptcdnm.disabled ="false";
-
- }
- model.refresh();
- }
-
- function fAfterRetr()
- {
- if ( grd_goodreq.rows - grd_goodreq.fixedRows > 0) {
- model.resetInstanceNode("/root/main/goodreq");
- grd_goodreq.row = 1;
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
-
- fReplacefilename();
- } else {
- model.resetInstanceNode("/root/main/goodreq");
- if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
- {
- fSetControlDisabled("true");
- }
- else
- {
- fSetControlDisabled("false");
- }
- model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreq/goodmaxreqno/reqno"));
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
-
- }
- model.refresh();
- }
- function fSaveDataSetting()
- {
- model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(cmb_instcd_search.attribute("ref")));
- }
- function fSetReqNo(pReqControl,pAdd)
- {
- if(pAdd == "Y")
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) + 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- else
- {
- var reqno = model.getValue(ipt_reqno.attribute("ref"));
- reqno = parseInt(reqno) - 1;
- if(reqno == 0)reqno = 1;
- reqno = "" + reqno;
- reqno = reqno.getLeftPad(4,"0");
- }
- model.setValue(pReqControl.attribute("ref"), reqno);
- model.refresh();
- }
-
- // function fRetrByReqNo()
- // {
- // model.removenode("/root/main/tmplist");
- // model.makeNode("/root/main/tmplist/goodreq/goodreqlist");
- // model.makeNode("/root/main/tmplist/goodreq/goodmaxreqno");
- // model.copyNode("/root/main/tmplist", "/root/main/list");
- //
- // model.setValue("/root/send/goodreq/retrmaxreqnoyn","N");
- //
- // misfMsterDetailRetrieve();
- //
- // var rtncount = grd_goodreq.rows - grd_goodreq.fixedRows;
- //
- // if(rtncount == 0)
- // {
- // model.copyNode("/root/main/list","/root/main/tmplist");
- // }
- //
- // return rtncount;
- // }
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd_search");
- }
- return false;
- }
-
- // if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- // {
- // if(pmsg == true)
- // {
- // messageBox("청구부서를 " ,"C002");
- // model.setFocus("ipt_reqdeptcd_search");
- // }
- // return false;
- // }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqfrdd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구시작일자를 " ,"C001");
- model.setFocus("ipt_reqfrdd_search");
- }
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("청구종료일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- }
- return false;
- }
- submit("TRRSD11103");
- return true;
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd_search");
- return false;
- }
- // if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
- // {
- // messageBox("청구부서를 " ,"C002");
- // model.setFocus("ipt_reqdeptcd_search");
- // return false;
- // }
-
- if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
- {
- messageBox("청구구분을 " ,"C001");
- model.setFocus("cmb_reqflag_search");
- return false;
- }
-
- if(model.getValue(ipt_reqfrdd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구시작일자를 " ,"C001");
- model.setFocus("ipt_reqfrdd_search");
- return false;
- }
-
- if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
- {
- messageBox("청구끝일자를 " ,"C001");
- model.setFocus("ipt_reqtodd_search");
- return false;
- }
-
- if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
- {
- messageBox("물품명을 " ,"C001");
- model.setFocus("ipt_goodnm");
- return false;
- }
- if(model.getValue(ipt_reqqty.attribute("ref")).length== 0 )
- {
- messageBox("청구수량을 " ,"C001");
- model.setFocus("ipt_reqqty");
- return false;
- }
- if(model.getValue(cmb_requnit.attribute("ref")).length== 0 )
- {
- messageBox("청구단위를 " ,"C001");
- model.setFocus("cmb_requnit");
- return false;
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">비품청구 경유부서 접수</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <line id="line19" class="line_3" style="x1:610px; y1:418px; x2:1195px; y2:418px; "/>
- <line id="line16" class="line_2" style="x1:610px; y1:393px; x2:1195px; y2:393px; "/>
- <line id="line7" class="line_2" style="x1:610; y1:170px; x2:1195; y2:170; "/>
- <line id="line6" class="line_2" style="x1:610; y1:146px; x2:1195; y2:146; "/>
- <line id="line5" class="line_2" style="x1:610; y1:122px; x2:1195; y2:122; "/>
- <line id="line15" class="line_3" style="x1:610px; y1:363px; x2:1195px; y2:363px; "/>
- <line id="line12" class="line_2" style="x1:610px; y1:315px; x2:1195px; y2:315px; "/>
- <line id="line11" class="line_2" style="x1:610; y1:266px; x2:1195; y2:266; "/>
- <line id="line10" class="line_2" style="x1:610; y1:242px; x2:1195; y2:242; "/>
- <line id="line9" class="line_2" style="x1:610; y1:218px; x2:1195; y2:218; "/>
- <line id="line8" class="line_2" style="x1:610; y1:194px; x2:1195; y2:194; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:80px; width:111px; height:13px; ">비품청구 내역</caption>
- <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
- <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="청구일자^번호^진행상태^청구부서^대분류^중분류^소분류^물품명^규격^모델^제조회사^청구수량^승인^승인일자^예산금액" colsep="^" colwidth="70, 38, 54, 85, 64, 69, 76, 180, 87, 77, 84, 55, 52, 100, 82, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:100px; width:605px; height:634px; ">
- <col ref="reqdd" visibility="visible" format="yyyy-mm-dd"/>
- <col ref="reqno" style="text-align:center; "/>
- <col ref="deliveprcsflagnm"/>
- <col ref="reqdeptnm"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="reqqty"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="bugtexpcamt" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col ref="bugtcd" visibility="hidden"/>
- <col ref="bugtnm" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="reqtm" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="delivehopedd" visibility="hidden"/>
- <col ref="requnit" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="attfilepathnm" visibility="hidden"/>
- <col ref="deptaprvyn" visibility="hidden"/>
- <col ref="deptaprvdd" visibility="hidden"/>
- <col ref="adjtqty" visibility="hidden"/>
- <col ref="adjtrsn" visibility="hidden"/>
- <col ref="acptcharid" visibility="hidden"/>
- <col ref="plceorddd" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="deliveqty" visibility="hidden"/>
- <col ref="unwinresn" visibility="hidden"/>
- <col ref="deliveprcsflag" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqpsnnm" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="makeyn" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="cntrdeptcdnm" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcdnm" visibility="hidden"/>
- <col ref="reqtel" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if( grd_goodreq.row >= grd_goodreq.fixedRows )
- {
- misfGridInit(grd_psgelist);
-
- model.resetInstanceNode("/root/main/goodreq");
- model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
-
- model.setValue("/root/send/psgereq/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("instcd")));
- model.setValue("/root/send/psgereq/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqflag")));
- model.setValue("/root/send/psgereq/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqdd")));
- model.setValue("/root/send/psgereq/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqno")));
- model.setValue("/root/send/psgereq/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("reqseqno")));
- // 소속부서가 경유부서인경우만 처리함.
- // m/d를 엮었더니 psgedeptcd가 없어서 argument가 안넘어가네.hbh
- model.setValue("/root/send/psgereq/psgedeptcd" , model.getValue(ipt_psgedeptcd.attribute("ref")));
- model.setValue("/root/send/psgereq/psgedeptaprvyn" , model.getValue(cmb_psgedeptaprvyn_search.attribute("ref")));
- //misfMsterDetailRetrieve();
- submit("TRRSD11103");
- fReplacefilename();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "N" )
- {
- model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , "");
- }
- else
- {
- model.setValue(grd_goodreq.nodeset + "[" + grd_goodreq.Row + "]/acptdd" , getCurrentDate());
- //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:605px; y2:95px; "/>
- <!--</group>-->
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- //model.setValue("/root/send/goodreq/retrmaxreqnoyn","Y");
- // 위의 조건을 변경후 조회하면, 각 조회조건 값들이 이전값이다.
- //fDefaultSetting();
- misfMsterDetailRetrieve();
- fAfterRetr();
- ]]>
- </script>
- </button>
- <button id="btn_reqdept" class="icon_search" style="left:520px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list) ;
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd_search" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18px; width:211px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:15px; top:19; width:117px; height:17px; ">기관코드 :</caption>
- <line id="line18" class="line_4" style="x1:1110px; y1:19px; x2:1110px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:634px; top:44px; width:90px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_reqdeptcd_search" ref="/root/send/goodreq/reqdeptcd" class="input_s_essential" style="left:420px; top:18px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd_search.value.length == 0)
- {
- ipt_reqdeptnm_search.value = "";
- }
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:335px; top:19; width:86px; height:17px; ">청구부서 :</caption>
- <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="input_fix" appearance="input" style="left:540px; top:18px; width:239px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptnm_search.value.length == 0)
- {
- ipt_reqdeptcd_search.value = "";
- }
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- ]]>
- </script>
- </input>
- <caption id="caption14" class="search_name" style="left:15px; top:45; width:86px; height:17px; ">청구일자 :</caption>
- <input id="ipt_reqfrdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:44; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:1120px; top:100px; width:20px; height:19px; "/>
- <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:1045px; top:100px; width:30px; height:19px; "/>
- <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:900px; top:100px; width:25px; height:19px; "/>
- <caption id="caption67" class="cell_1" style="left:610px; top:172px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
- <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_fix" style="left:712px; top:174px; width:481px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:610px; top:196px; width:100px; height:23px; vertical-align:middle; ">규격</caption>
- <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:712px; top:198px; width:481px; height:19px; "/>
- <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:712px; top:222px; width:481px; height:19px; "/>
- <caption id="caption59" class="cell_1" style="left:610px; top:220px; width:100px; height:23px; vertical-align:middle; ">모델</caption>
- <caption id="caption66" class="cell_1" style="left:610px; top:244px; width:100px; height:23px; vertical-align:middle; ">제조회사</caption>
- <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_default" style="left:712px; top:246px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpynm,," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- model.setFocus("ipt_goodmodel");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_prodplce");
- else model.setFocus("ipt_goodmodel");
- }
- event.preventDefault();
- ]]>
- </script>
- </input>
- <output id="opt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="output_fix" appearance="output" style="left:804px; top:246px; width:389px; height:19px; "/>
- <output id="opt_winacntnm" ref="/root/main/goodreq/goodreqlist/bugtnm" class="output_fix" visibility="hidden" appearance="output" style="left:1010px; top:100px; width:15px; height:19px; "/>
- <input id="ipt_winacnt" ref="/root/main/goodreq/goodreqlist/bugtcd" class="input_fix" visibility="hidden" style="left:950px; top:100px; width:25px; height:19px; "/>
- <caption id="caption64" class="cell_1" style="left:610px; top:268px; width:100px; height:23px; vertical-align:middle; ">청구수량</caption>
- <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_essential" format="#,###" style="left:712px; top:270px; width:79px; height:19px; text-align:right; "/>
- <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="combo_essential" appearance="minimal" style="left:793px; top:270px; width:78px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption71" class="cell_1" style="left:610px; top:124px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
- <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:961px; top:270px; width:77px; height:19px; "/>
- <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:712px; top:127px; width:116px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:873px; top:268px; width:86px; height:23px; vertical-align:middle; ">설치장소</caption>
- <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_fix" visibility="hidden" style="left:1100px; top:100px; width:20px; height:19px; "/>
- <caption id="caption57" class="cell_1" style="left:638px; top:371px; width:76px; height:23px; vertical-align:middle; ">접수/조정량</caption>
- <caption id="caption60" class="cell_1" style="left:610px; top:292px; width:100px; height:23px; vertical-align:middle; ">첨부파일</caption>
- <input id="ipt_attfilepathnm" ref="/root/main/goodreq/goodreqlist/attfilepathnm" class="input_default" style="left:712px; top:294px; width:481px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:335px; top:45; width:86px; height:17px; ">접수구분 :</caption>
- <caption id="caption2" class="cell_1" style="left:610px; top:100px; width:100px; height:23px; vertical-align:middle; ">청구사유</caption>
- <select1 id="cmb_workflag" ref="/root/main/goodreq/goodreqlist/workflag" appearance="minimal" style="left:712px; top:102px; width:160px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="tit_2" style="left:615px; top:435px; width:113px; height:13px; ">경유부서 접수</caption>
- <line id="line2" class="line_1" style="x1:610px; y1:449px; x2:1195px; y2:449px; "/>
- <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:925px; top:100px; width:25px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" visibility="hidden" style="left:1075px; top:100px; width:20px; height:19px; "/>
- <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:1025px; top:100px; width:20px; height:19px; "/>
- <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:995px; top:100px; width:15px; height:19px; "/>
- <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:975px; top:100px; width:20px; height:19px; "/>
- <datagrid id="grd_psgelist" nodeset="/root/main/list/psgereq/psgereqlist" caption="접수^의견" colsep="^" colwidth="40, 520, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:610px; top:455px; width:585px; height:279px; ">
- <col checkvalue="Y,N" ref="psgedeptaprvyn" type="checkbox"/>
- <col ref="psgecmt" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="psgedeptaprvid" visibility="hidden"/>
- <col ref="psgedeptaprvdd" visibility="hidden"/>
- <col ref="psgedeptcd" visibility="hidden"/>
- <col ref="psgedeptnm" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_psgelist.col == 1) {
- var recv_list = "psgedeptcd,psgedeptnm";
- misfOpenPopUpList("02", grd_psgelist,"",recv_list);
- var cur_row = grd_psgelist.row;
- var status = grd_psgelist.valueMatrix(cur_row, grd_psgelist.colRef("m"));
- if(status !="insert" && status !="delete") grd_psgelist.addStatus(cur_row,"update");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:610px; y1:95px; x2:1195px; y2:95px; "/>
- <caption id="caption10" class="tit_2" style="left:615px; top:80px; width:100px; height:13px; ">비품청구</caption>
- <output id="opt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="output_fix" style="left:1041px; top:270px; width:152px; height:19px; "/>
- <input id="ipt_goodflag" ref="/root/send/search/goodflag" visibility="hidden" style="left:727px; top:44px; width:30px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:610px; top:148px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
- <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:775px; top:150px; width:96px; height:19px; "/>
- <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:936px; top:150px; width:96px; height:19px; "/>
- <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:1098px; top:150px; width:95px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:610px; top:317px; width:100px; height:47px; vertical-align:middle; ">비고</caption>
- <textarea id="ipt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" maxlength="100" appearance="textarea" style="left:712px; top:319px; width:481px; height:42px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- model.setFocus("ipt_cmt");
- messageBox("입력 가능한 글자수 초과","I009");
- ]]>
- </script>
- </textarea>
- <caption id="caption15" class="cell_1" style="left:873px; top:124px; width:100px; height:23px; vertical-align:middle; ">자산코드</caption>
- <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:975px; top:126px; width:110px; height:19px; "/>
- <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_fix" style="left:738px; top:150px; width:35px; height:19px; "/>
- <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_fix" style="left:900px; top:150px; width:34px; height:19px; "/>
- <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" style="left:1062px; top:150px; width:34px; height:19px; "/>
- <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:215px; top:44px; width:96px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_adjtqty" ref="/root/main/goodreq/goodreqlist/adjtqty" class="input_essential" format="#,###" style="left:833px; top:373px; width:130px; height:19px; text-align:right; "/>
- <select1 id="cmb_acptflag" ref="/root/main/goodreq/goodreqlist/acptflag" class="combo_essential" appearance="minimal" style="left:716px; top:373px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- <item>
- <label>부결</label>
- <value>C</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /* 미접수처리시 */
- if (model.getValue(cmb_acptflag.attribute("ref"))=="N")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), "");
- model.setValue(ipt_acptdd.attribute("ref"), "");
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- model.setValue(ipt_adjtrsn.attribute("ref"), "");
- }
- /* 접수처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="Y")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- }
- /* 부결처리시 */
- else if (model.getValue(cmb_acptflag.attribute("ref"))=="C")
- {
- model.setValue(ipt_acptcharid.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_acptdd.attribute("ref"), getCurrentDate());
- /* 부결처리시 수량을 0으로 셋팅하는것 */
- model.setValue(ipt_adjtqty.attribute("ref"), 0);
- //model.setValue(ipt_adjtqty.attribute("ref"), model.getValue(ipt_reqqty.attribute("ref")));
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_acptdd" ref="/root/main/goodreq/goodreqlist/acptdd" class="input_essential" visibility="hidden" style="left:1145px; top:100px; width:25px; height:19px; text-align:right; "/>
- <input id="ipt_acptcharid" ref="/root/main/goodreq/goodreqlist/acptcharid" class="input_essential" visibility="hidden" style="left:1087px; top:126px; width:15px; height:19px; text-align:center; "/>
- <caption id="caption11" class="cell_1" style="left:638px; top:395px; width:76px; height:23px; vertical-align:middle; ">조정사유</caption>
- <input id="ipt_adjtrsn" ref="/root/main/goodreq/goodreqlist/adjtrsn" class="input_essential" style="left:716px; top:397px; width:477px; height:19px; text-align:left; "/>
- <caption id="caption12" class="cell_1" style="left:610px; top:371px; width:27px; height:47px; vertical-align:middle; ">접수</caption>
- <select1 id="cmb_psgedeptaprvyn_search" ref="/root/send/goodreq/psgedeptaprvyn" class="combo_s_essential" appearance="minimal" style="left:420px; top:44; width:95px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>미접수</label>
- <value>N</value>
- </item>
- <item>
- <label>접수</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_psgedeptcd" ref="/root/send/goodreq/psgedeptcd" visibility="visible" style="left:517px; top:44px; width:115px; height:19px; "/>
- <line id="line1" class="line_1" style="x1:610px; y1:366px; x2:1195px; y2:366px; "/>
- <caption id="caption5" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption16" class="cell_1" style="left:711px; top:148px; width:25px; height:23px; vertical-align:middle; ">대</caption>
- <caption id="caption18" class="cell_1" style="left:873px; top:148px; width:25px; height:23px; vertical-align:middle; ">중</caption>
- <caption id="caption19" class="cell_1" style="left:1035px; top:148px; width:25px; height:23px; vertical-align:middle; ">소</caption>
- <line id="line20" class="line_2" style="x1:610px; y1:290px; x2:1195px; y2:290px; "/>
- <line id="line13" class="line_2" style="x1:610px; y1:315px; x2:1195px; y2:315px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button46" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
- misfGridInit(grd_goodreq);
- misfGridIUD(grd_goodreq, "A");
- model.refresh();
- }
- misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
- model.refresh();
- misfSave("TXRSD11101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button28" class="btn6_letter5" visibility="hidden" style="left:0; top:3px; width:92px; height:22px; ">
- <caption>청구서출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|