123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <grid>
- <rfchrtdmlist/>
- </grid>
- <chgnhistlist/>
- </main>
- <send>
- <instcd/>
- <instnm/>
- <deptcd/>
- <deptnm/>
- <goodflag/>
- <reqdd1/>
- <reqdd2/>
- <rtreqaprvyn/>
- <rfchcgmt_send>
- <instcd/>
- <fixasetcd/>
- </rfchcgmt_send>
- <goodflaghngnm/>
- <fixasetcd_search/>
- <fixasetnm/>
- </send>
- <init>
- <combo>
- <rtnconfirmyn>
- <label>승인</label>
- <value>Y</value>
- <label>미확인</label>
- <value>N</value>
- <label>부결</label>
- <value>R</value>
- </rtnconfirmyn>
- </combo>
- <goodflag>
- <label>-전 체-</label>
- <value/>
- <label>의료장비</label>
- <value>EQ</value>
- <label>일반비품</label>
- <value>GE</value>
- </goodflag>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ipt_rtreqaprvyn.value = 'Y';
- ]]>
- </script>
- <submission id="TRRSE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfchrtdmlist"/>
- <submission id="TXRSE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfchrtdmlist" resultref="/root/temp"/>
- <submission id="TRRFE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfchcgmt_send" resultref="/root/main/chgnhistlist"/>
- </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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
-
- misfGridInit(grd_rfchrtdmlist);
- misfGridInit(grd_chgnhistlist);
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- //물품구분
- misfComboComCdListMulti("R0025,R0041","grd_rfchrtdmlist.goodflag,grd_chgnhistlist.updtflag");
- // addComboItem( "cmb_goodflag", "- 전 체 -", "", "above" );
-
- misfMsterDetailSet(grd_rfchrtdmlist, null, "TRRSE01501", "Y");
-
- // 기관코드 설정
- model.setValue(ipt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.setValue(opt_instnm.attribute("ref"), getUserInfo("dutplceinstnm"));
-
-
- //날자 설정
- //model.setValue("/root/send/reqdd1", getCurrentDate());
- // 현재 날짜 기본 입력(6개월 간격 설정)
- // var reqdate = getCurrentDate().toDate("YYYYMMDD");
- // model.setValue(ipt_reqdd1.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
- // model.setValue(ipt_reqdd2.attribute("ref"), getCurrentDate());
-
- // 현재 날짜 기본 입력(1개월 간격 설정)
- var reqdate = getCurrentDate();
- var cvtdate = reqdate.toDate("YYYYMMDD");
- model.setValue(ipt_reqdd1.attribute("ref"), reqdate.substr(0,6)+"01" );
- model.setValue(ipt_reqdd2.attribute("ref"), reqdate.substr(0,6)+cvtdate.getMonthDay() );
-
- //디폴트
- model.setValue(cmb_goodflag.attribute("ref"),"GE");
- //cmb_goodflag.select(2);
- model.refresh();
- }
-
- function fupdateCheckSave()
- {
- var updtdata = getGridUpdateData(grd_rfchrtdmlist);
- if (updtdata == "")
- {
- messageBox("저장 하려는 데이터가","I004");
- return;
- }
-
- misfSave("TXRSE01501");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </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:186px; height:14px; ">고정자산 반납 청구 접수</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:431px; x2:1194px; y2:431px; "/>
- <datagrid id="grd_chgnhistlist" nodeset="/root/main/chgnhistlist" caption="순번^자산^자산^변동일자^변동구분^변경부서^변경부서^변경설치장소*^변경설치장소*^취득구분^외화액^단위^금액^적요^거래처코드^기관코드^^caption1^^변경전사용부서코드^변경전사용부서이름" colsep="^" colwidth="37, 70, 123, 100, 73, 91, 98, 88, 89, 100, 100, 153, 90, 93, 100, 100, 73, 100, 53, 120, 120" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" navindex="14" style="left:0px; top:436px; width:1194px; height:294px; ">
- <col ref="updtseq" format="999999-9999999" style="text-align:center; "/>
- <col ref="fixasetcd" _key="true" style="text-align:center; "/>
- <col ref="goodflaghngnm"/>
- <col class="input_essential" disabled="true" ref="updtdd" type="inputdate" format="yyyy-mm-dd" maxlength="8" _key="true"/>
- <col class="input_essential" disabled="true" ref="updtflag" type="combo" _key="true">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_essential" disabled="true" ref="upddeptcd" type="inputbutton" _key="true" style="text-align:center; "/>
- <col ref="upddeptnm" style="text-align:center; "/>
- <col class="input_essential" disabled="true" ref="chnginstallplcecd" type="inputbutton" maxlength="12" _key="true" style="text-align:center; "/>
- <col disabled="true" ref="installplcenm" style="text-align:center; "/>
- <col ref="possnflagcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/possnflagcd">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="forgncurncyamt" type="input" visibility="hidden" format="#,###" maxlength="12" style="text-align:right; "/>
- <col ref="curncyunit" type="combo" visibility="hidden" maxlength="2">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fixasetamt" type="input" format="#,###" maxlength="12" style="text-align:right; "/>
- <col disabled="true" ref="mainrec" type="input" maxlength="60"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="rtnreqdeptcd" visibility="hidden"/>
- <col ref="rtnreqdd" visibility="hidden"/>
- <col ref="rtnreqseq" visibility="hidden"/>
- <col ref="premngtdeptcd"/>
- <col ref="premngtdeptnm"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
- // {
- // misfOpenPopUpList("02", grd_chgnhistlist,"","upddeptcd,upddeptnm");
-
- // rszfOpenPopUpListByWndName(grd_chgnhistlist,"","upddeptcd,upddeptnm","PPRAC00700","instcd","cmb_instcd");
- // model.refresh();
-
- // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
- // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
- // grd_chgnhistlist.refresh();
- //
- // }else if (grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd"))//변경설치 버튼을 눌렀을 때
- // {
- // rszfOpenPopUpListByWndName(grd_chgnhistlist,"","chnginstallplcecd,installplcenm","PPRAC00700","instcd","cmb_instcd");
- // model.refresh();
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("upddeptcd"))//변경부서 버튼을 눌렀을 때
- // {
- // misfValidationCheck("02", "", "upddeptcd,upddeptnm" );
- // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptcd"));
- // grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("installplcenm")) = grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("upddeptnm"));
- //
- // }else if(grd_chgnhistlist.col == grd_chgnhistlist.colRef("chnginstallplcecd") && grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")).length> 0)
- // {
- // rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
- // "deptcd," + grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("chnginstallplcecd")), "", "chnginstallplcecd,installplcenm",
- // grd_chgnhistlist, "PPRAC00700", "","");
- // model.refresh();
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_chgnhistlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if( grd_chgnhistlist.valueMatrix(grd_chgnhistlist.row, grd_chgnhistlist.colRef("rtnreqseq")) != "" )
- {
- btn_delrow.disabled = true;
- }else{
- btn_delrow.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:416px; width:121px; height:13px; ">자산변동이력</caption>
- <button id="btn_delrow" class="btn2_letter3" navindex="13" visibility="hidden" style="left:1135px; top:411px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_chgnhistlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" navindex="12" visibility="hidden" style="left:1079px; top:411px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if(!isRequiredControls("ipt_fixasetcd")) return;
- misfGridIUD(grd_chgnhistlist, "A");
-
- var cur_row = grd_chgnhistlist.row;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd",ipt_instcd.value);
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", getUserInfo("dutplcecd"));
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", getUserInfo("dutplcenm"));
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", getUserInfo("dutplcecd"));
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", getUserInfo("dutplcenm"));
-
-
- var sBaseDate = getCurrentDate();
-
- // 행추가를 누를시 날짜를 오늘 날짜로 자동 세팅 한다
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="9" style="left:1122px; top:21px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_instcd"))return;
- if(!isRequiredControls("ipt_reqdd1"))return;
- if(!isRequiredControls("ipt_reqdd2"))return;
-
- misfMsterDetailRetrieve();
-
- //misfSetReadOnlyCol(grd_rfchrtdmlist, "goodflag,rtnconfirmyn", true);
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1099px; y1:8px; x2:1099px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <output id="opt_instnm" ref="/root/send/instnm" class="output_fix" style="left:105px; top:10px; width:130px; height:19px; text-align:center; "/>
- <input id="ipt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:180px; top:10px; width:55px; height:19px; "/>
- <input id="ipt_deptcd" ref="/root/send/deptcd" navindex="5" calss="input_s_essential" style="left:701px; top:10px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcd.value != '')
- {
- misfValidationCheck("02", "", "deptcd,deptnm" );
- }else{
- ipt_deptnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/deptnm" navindex="6" style="left:825px; top:10px; width:200px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnm.value != '')
- {
- misfValidationCheck("02", "", "deptcd,deptnm" );
- }else{
- ipt_deptcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:265px; top:38px; width:88px; height:17px; text-align:justify; ">물 품 명 :</caption>
- <input id="ipt_goodflaghngnm" ref="/root/send/goodflaghngnm" class="input_fix" navindex="4" appearance="input" style="left:355px; top:38px; width:220px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:609px; top:38px; width:86px; height:17px; text-align:justify; ">자산코드 :</caption>
- <input id="ipt_fixasetcd" ref="/root/send/fixasetcd_search" class="input_search" navindex="7" visibility="visible" style="left:701px; top:38px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetcd.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
- ipt_instcd.value +",fixasetcd," + ipt_fixasetcd.value +"," + cmb_goodflag.value,
- "", "fixasetcd_search,fixasetnm", ipt_fixasetcd, "SPRSD00240",
- "instcd,goodflag","ipt_instcd,cmb_goodflag");
- }else{
- ipt_fixasetnm.value = '';
- }
- ipt_fixasetcd.refresh();
- ipt_fixasetnm.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_fixasetcd" class="icon_search" navindex="-1" style="left:804px; top:38px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_fixasetcd, "", "fixasetcd_search,fixasetnm","SPRSD00240","instcd,goodflag","ipt_instcd,cmb_goodflag");
- ipt_fixasetcd.refresh();
- ipt_fixasetnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fixasetnm" ref="/root/send/fixasetnm" class="input_search" disabled="true" navindex="8" style="left:825px; top:38px; width:200px; height:19px; "/>
- <caption id="cap_deptcd" class="search_name" style="left:609px; top:10px; width:86px; height:17px; ">청구부서 :</caption>
- <button id="btn_deptcd" class="icon_search" navindex="-1" style="left:804px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd,"", "deptcd,deptnm") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" navindex="1" appearance="minimal" style="left:105px; top:38px; width:130px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:15px; top:38px; width:86px; height:17px; ">물품구분 :</caption>
- <input id="ipt_reqdd2" ref="/root/send/reqdd2" class="input_s_essential" navindex="3" inputtype="date" style="left:475px; top:10px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption12" style="left:459px; top:10px; width:20px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_reqdd1" ref="/root/send/reqdd1" class="input_s_essential" navindex="2" inputtype="date" style="left:355px; top:10px; width:100px; height:19px; text-align:center; "/>
- <caption id="cap_reqdd1" class="search_name" style="left:265px; top:10px; width:86px; height:17px; ">의뢰일자 :</caption>
- <input id="ipt_rtreqaprvyn" ref="/root/send/rtreqaprvyn" visibility="hidden" style="left:1070px; top:45px; width:25px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
- <caption id="caption19" style="left:85px; top:355px; width:100px; height:20px; vertical-align:middle; "/>
- <caption id="caption24" class="tit_2" style="left:5px; top:90px; width:157px; height:14px; ">반납 청구 List</caption>
- <datagrid id="grd_rfchrtdmlist" nodeset="/root/main/grid/rfchrtdmlist" dragmode="false" caption="반납청구일자^물품구분^자산코드^자산명^모델^규격^구입일자^사용부서^반납사유^반납청구자^반납청구자^반납확인일자^확인부서^반납확인자^반납확인자^반납확인" colsep="^" colwidth="80, 66, 90, 166, 85, 100, 71, 90, 146, 55, 80, 90, 90, 60, 65, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="listbox" tooltip="true" navindex="11" style="left:0px; top:111px; width:1195px; height:294px; ">
- <col ref="rtnreqdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflaghngnm" style="text-align:center; "/>
- <col ref="goodmodel" style="text-align:center; "/>
- <col ref="goodspec" style="text-align:center; "/>
- <col ref="windd" style="text-align:center; "/>
- <col ref="rtnreqdeptnm" style="text-align:center; "/>
- <col ref="cmt"/>
- <col ref="rtnreqpsn" visibility="hidden" style="text-align:center; "/>
- <col ref="rtnreqpsnnm" style="text-align:center; "/>
- <col ref="rtnconfirmdd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rtnconfirmdeptnm" visibility="hidden" style="text-align:center; "/>
- <col ref="rtnconfirmpsnid" visibility="hidden" style="text-align:center; "/>
- <col ref="rtnconfirmpsnnm" visibility="visible" style="text-align:center; "/>
- <col ref="rtnconfirmyn" type="combo" style="left:1136px; top:23px; width:54px; height:23px; color:#800000; text-align:center; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/init/combo/rtnconfirmyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden"/>
- <col ref="rtnreqdeptcd" visibility="hidden"/>
- <col ref="rtnreqseq" visibility="hidden"/>
- <col ref="rtnconfirmdeptcd" visibility="hidden"/>
- <col ref="mainrec" visibility="hidden"/>
- <col ref="rtnconfirmyn1" visibility="hidden"/>
- <col ref="updtseq" visibility="hidden"/>
- <col checkvalue="Y,N" ref="rtreqaprvyn" type="checkbox" visibility="hidden"/>
- <col ref="rtreqaprvdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rtreqaprvpsn" visibility="hidden" style="text-align:center; "/>
- <col ref="rtreqaprvpsnnm" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- grd_rfchrtdmlist.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rfchrtdmlist.colRef("rtnconfirmyn") == grd_rfchrtdmlist.col)
- {
- if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn")) == 'Y')
- {
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdd")) = getCurrentDate();
-
- /* [2008.01.19 HBH]
- 비품 반품방이 따로 있다 ... "4081400000","재고물품"
-
- 기준정보 신청중
- */
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = "4081400000";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = "재고물품";
- //grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = getUserInfo("dutplcecd");
- //grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = getUserInfo("dutplcenm");
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnid")) = getUserInfo("userid");
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnnm")) = getUserInfo("usernm");
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("mainrec")) = "부서반납확인" ;
-
- /* 자산변동이력에 추가 */
- misfGridIUD(grd_chgnhistlist, "A");
-
- var cur_row = grd_chgnhistlist.row;
-
- //승인 선택시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("instcd")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("fixasetcd")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/goodflaghngnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("goodflaghngnm")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtflag", "0" );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/upddeptnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/chnginstallplcecd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/installplcenm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) );
-
- //자산변동이력에 변경전/후 부서컬럼 추가후 추가가 코딩
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/premngtdeptnm", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnreqdeptnm")) );
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/premngtdeptcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnreqdeptcd")) );
-
- var sBaseDate = getCurrentDate();
-
- // 승인선택시 날짜를 오늘 날짜로 자동 세팅 한다
- model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
- }
-
-
- if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn")) == grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmyn1")) )
- {
- grd_rfchrtdmlist.rowStatus(grd_rfchrtdmlist.row) = 0;
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdd")) = "";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptcd")) = "";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmdeptnm")) = "";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnid")) = "";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("rtnconfirmpsnnm")) = "";
- grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("mainrec")) = "";
- }
- }
- // if(grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row,grd_rfchrtdmlist.colRef("rtnconfirmyn")) == "Y")
- // {
- // misfGridIUD(grd_chgnhistlist, "A");
- //
- // var cur_row = grd_chgnhistlist.row;
- //
- // //승인 선택시 기간코드 값을 자동으로 저장한다.
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/instcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("instcd")) );
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd", grd_rfchrtdmlist.valueMatrix(grd_rfchrtdmlist.row, grd_rfchrtdmlist.colRef("fixasetcd")) );
- //
- // var sBaseDate = getCurrentDate();
- //
- // // 더블클릭시 날짜를 오늘 날짜로 자동 세팅 한다
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/updtdd",sBaseDate);
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfGridInit(grd_chgnhistlist);
- grd_rfchrtdmlist.dispatch("onmouseup");
-
- model.copyNode("/root/send/rfchcgmt_send", "/root/main/grid/rfchrtdmlist["+grd_rfchrtdmlist.row + "]");
-
-
- submit("TRRFE00201");
-
- if(grd_chgnhistlist.rows != grd_chgnhistlist.fixedRows)
- {
- for(var i = grd_chgnhistlist.fixedRows; i < grd_chgnhistlist.rows; i++ )
- {
- if(grd_chgnhistlist.valueMatrix(i, grd_chgnhistlist.colRef("rtnreqseq")) != "")
- {
- misfSetReadOnlyCol(grd_chgnhistlist, "updtfalg,updtdd,updtflag,upddeptcd,forgncurncyamt,chnginstallplcecd,possnflagcd,curncyunit,fixasetamt,mainrec", true, i);
- }else{
- misfSetReadOnlyCol(grd_chgnhistlist, "updtfalg,updtdd", true, i);
- }
- }
-
- grd_chgnhistlist.row = grd_chgnhistlist.fixedRows;
- grd_chgnhistlist.dispatch("onrowchanged");
- grd_chgnhistlist.select(grd_chgnhistlist.fixedRows, grd_chgnhistlist.colRef("goodflaghngnm")) = true;
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn5_letter5" navindex="10" style="left:1115px; top:80px; width:75px; height:19px; ">
- <caption>Excel 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_rfchrtdmlist.rows - grd_rfchrtdmlist.fixedRows > 0 ) {
- var fileName = "반납청구List_" + getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_rfchrtdmlist.saveExcel(fileName, "Sheet");
- } else {
- messageBox("저장 데이터가","I004");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button27" class="btn6_letter2" navindex="15" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="17" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("", "Q002") == "6")
- {
- fupdateCheckSave();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|