123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?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>
- <rsihdpaplist/>
- <rsihdpapwinlist/>
- <rsihdpaplist1/>
- <rsihdpapwinlist1/>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <fromdd/>
- <todd/>
- <sanctyn/>
- <windd/>
- <winno/>
- <suplplcecd/>
- <goodflag_det/>
- <winpsn/>
- <winpsnnm/>
- <subsuplplcenm/>
- <subsuplplcecd/>
- </send>
- <init>
- <sanctyn>
- <label>전체</label>
- <value/>
- <label>결재</label>
- <value>Y</value>
- <label>미결재</label>
- <value>N</value>
- </sanctyn>
- </init>
- <temp/>
- </root>
- </instance>
- <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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_rsihdpaplist);
- misfGridInit(grd_rsihdpaplist1);
- // 사용자별 청구 기관 List
- //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- // 사용자별 물품 구분
-
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- addComboItem( "cmb_goodflag", "전체", "", "above");
-
- // misfComboComCdListMulti("Z0007,R0025,R0025,R0109","cmb_instcd,cmb_goodflag,grd_rsihdpaplist.goodflag,grd_rsihdpaplist.calcdocukind");
- misfComboComCdListMulti("R0109","grd_rsihdpaplist.calcdocukind");
- misfComboComCdListMulti("R0109","grd_rsihdpaplist1.calcdocukind");
-
- misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist, "goodflag"); // 물품구분
- misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist1, "goodflag"); // 물품구분
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
- cmb_goodflag.select(0);
-
- //오늘날짜부터 3개월전 까지 세팅
- // var reqdate = getCurrentDate().toDate("YYYYMMDD");
- // model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
- // model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- //이번달 1일 과 마지막일을 셋팅하는 부분
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- model.setValue(ipt_fromdd.attribute("ref") , curdate.substr(0,6)+"01" );
- model.setValue(ipt_todd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay());
-
- misfMsterDetailSet(grd_rsihdpaplist, null, "TRRSI02701", "Y");
- misfMsterDetailSet(grd_rsihdpaplist1, null, "TRRSI02708", "Y");
- misfMsterDetailSet(grd_rsihdpapwinlist, null, "TRRSI02702", "N");
- misfMsterDetailSet(grd_rsihdpapwinlist1, null, "TRRSI02709", "N");
-
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRSI02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist"/>
- <submission id="TRRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist"/>
- <submission id="TRRSI02708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist1"/>
- <submission id="TRRSI02709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist1"/>
- <submission id="TXRSI02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsihdpaplist" resultref="/root/temp"/>
- <submission id="TXRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRSI02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </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:131px; height:14px; ">(구매팀)입고금액 결재처리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:732px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:8px; width:221px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:405px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
- <line id="line30" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:53px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("ipt_fromdd"))return;
- if(!isRequiredControls("ipt_todd"))return;
-
- submit("TRRSI02701");
- submit("TRRSI02708");
- grd_rsihdpaplist.dispatch("onrowchanged");
- grd_rsihdpaplist1.dispatch("onrowchanged");
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:495px; top:8px; width:141px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_fromdd" class="search_name" style="left:15px; top:36px; width:89px; height:17px; ">구매일자 :</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:225px; top:34px; 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_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:34px; 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:209px; top:33px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="cap_sanctyn" class="search_name" style="left:405px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
- <select1 id="cmb_sanctyn" ref="/root/send/sanctyn" class="combo_search" appearance="minimal" style="left:495px; top:34px; width:141px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/sanctyn">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_winpsn" class="search_name" style="left:700px; top:10px; width:86px; height:17px; ">입고자 :</caption>
- <button id="btn_winpsn" class="icon_search" style="left:880px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mainObj = getMainViewer();
- var scrnID = mainObj.javascript.getScreenID();
- misfOpenPopUpList("01", ipt_winpsn, "", scrnID, "winpsn,winpsnnm,scrnID", model.getValue(cmb_instcd.attribute("ref")), "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_winpsn" ref="/root/send/winpsn" class="input_search" style="left:779px; top:10px; width:97px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xfroms-value-changed">
- <![CDATA[
- if(ipt_winpsn.value.length == 0)
- {
- ipt_winpsnnm.value = "";
- }else{
- misfValidationCheck("01-1", "", "winpsn,winpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_winpsnnm" ref="/root/send/winpsnnm" class="input_search" appearance="output" style="left:900px; top:10px; width:125px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_winpsnnm.value.length == 0)
- {
- ipt_winpsn.value = "";
- }else {
- misfValidationCheck("01-2", "", "winpsn,winpsnnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:700px; top:35px; width:86px; height:17px; ">거래처 :</caption>
- <input id="ipt_subsuplplcecd" ref="/root/send/subsuplplcecd" class="input_search" style="left:779px; top:34px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_subsuplplcecd.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_subsuplplcecd.attribute("ref"))
- ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
-
- }else{
- ipt_subsuplplcenm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_subsuplplcecd" class="icon_search" style="left:880px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_subsuplplcecd,"","subsuplplcecd,subsuplplcenm","SPRSD00220","instcd","cmb_instcd", "Y");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_subsuplplcenm" ref="/root/send/subsuplplcenm" class="input_search" style="left:900px; top:34px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_subsuplplcenm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_subsuplplcenm.attribute("ref"))
- ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
-
- }else{
- ipt_subsuplplcecd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <button id="button3" class="btn_sw" group="tab" style="left:125px; top:91px; width:144px; height:22px; ">
- <caption>지불필내역</caption>
- <toggle case="case2" ev:event="DOMActivate"/>
- </button>
- <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:91px; width:125px; height:22px; ">
- <caption>결재내역</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- </button>
- <case id="case1" selected="true" style="left:0px; top:0px; width:640px; height:280px; "/>
- <switch id="switch1" style="left:0px; top:115px; width:1190px; height:590px; ">
- <case id="case1" selected="true">
- <button id="btn_excel" class="btn5_letter3" style="left:955px; top:5px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "결재내역List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rsihdpaplist.saveExcel(fileName, "결재내역List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsihdpaplist" nodeset="/root/main/rsihdpaplist" caption="물품구분명^거래처 코드^거래처명^입고일자^입고번호^계산서유형^계산일자^건수^금액^입금은행^은행계좌^결재^결재일자^결재자^전표일자^전표번호" colsep="^" colwidth="82, 73, 81, 80, 60, 88, 73, 46, 77, 75, 97, 41, 76, 72, 68, 74, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:33px; width:1180px; height:280px; ">
- <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="suplplcecd"/>
- <col ref="custnm"/>
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winno" style="text-align:right; "/>
- <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wincnt" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- <col ref="banknm" style="text-align:center; "/>
- <col ref="aactno" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="sanctyn" type="checkbox"/>
- <col ref="sanctdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sanctpsnnm" style="text-align:center; "/>
- <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="slipno" style="text-align:right; "/>
- <col ref="sanctpsn" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="wintaxamt" visibility="hidden"/>
- <col ref="winsupamt" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="paycondt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rsihdpaplist.col == grd_rsihdpaplist.colRef("sanctyn"))
- {
- if(grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctyn")) == 'Y' )
- {
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsn")) = getUserInfo("userid");
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsnnm")) = getUserInfo("usernm");
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctdd")) = getCurrentDate();
- }else
- {
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsn")) = '';
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsnnm")) = '';
- grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctdd")) = '';
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/windd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("windd"))) ;
- model.setValue("/root/send/winno",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("winno"))) ;
- model.setValue("/root/send/suplplcecd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("suplplcecd")));
-
- model.setValue("/root/send/goodflag_det",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("goodflag")));
-
- submit("TRRSI02702");
-
- grd_rsihdpaplist.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsihdpaplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="cap_title" class="tit_2" style="left:5px; top:12px; width:157px; height:13px; ">결재 내역 List</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:28px; x2:1180px; y2:28px; "/>
- <button id="button1" class="btn4_letter4" style="left:1015px; top:5px; width:80px; height:22px; ">
- <caption>자동분개</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRSI02702");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter4" style="left:1100px; top:5px; width:80px; height:22px; ">
- <caption>분개확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRSI02704");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter3" style="left:1126px; top:314px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "결재내역상세List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rsihdpapwinlist.saveExcel(fileName, "결재내역상세List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsihdpapwinlist" nodeset="/root/main/rsihdpapwinlist" caption="물품코드^명칭^모델^규격^제조국^청구부서^사용부서^입고수량^입고단위^입고단가^입고금액" colsep="^" colwidth="100, 200, 120, 120, 100, 110, 110, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1180px; height:241px; ">
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="prodplcenm"/>
- <col ref="reqdeptnm" visibility="hidden"/>
- <col ref="mngtdeptnm" visibility="hidden"/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="winunitcost" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:319px; width:157px; height:13px; ">결재 내역 상세 List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:334px; x2:1180px; y2:334px; "/>
- </case>
- <case id="case2">
- <button id="button5" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "결재내역List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rsihdpaplist1.saveExcel(fileName, "결재내역List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsihdpaplist1" nodeset="/root/main/rsihdpaplist1" caption="물품구분명^거래처 코드^거래처명^입고일자^입고번호^계산서유형^계산일자^건수^금액^입금은행^은행계좌^결재^결재일자^결재자^전표일자^전표번호" colsep="^" colwidth="82, 73, 81, 80, 60, 88, 73, 46, 77, 75, 97, 41, 76, 72, 68, 74, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:33px; width:1180px; height:280px; ">
- <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="suplplcecd"/>
- <col ref="custnm"/>
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winno" style="text-align:right; "/>
- <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wincnt" format="#,###" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- <col ref="banknm" style="text-align:center; "/>
- <col ref="aactno" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="sanctyn" type="checkbox"/>
- <col ref="sanctdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="sanctpsnnm" style="text-align:center; "/>
- <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="slipno" style="text-align:right; "/>
- <col ref="sanctpsn" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="wintaxamt" visibility="hidden"/>
- <col ref="winsupamt" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="paycondt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rsihdpaplist1.col == grd_rsihdpaplist1.colRef("sanctyn"))
- {
- if(grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctyn")) == 'Y' )
- {
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsn")) = getUserInfo("userid");
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsnnm")) = getUserInfo("usernm");
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctdd")) = getCurrentDate();
- }else
- {
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsn")) = '';
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsnnm")) = '';
- grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctdd")) = '';
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue("/root/send/windd",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("windd"))) ;
- model.setValue("/root/send/winno",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("winno"))) ;
- model.setValue("/root/send/suplplcecd",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("suplplcecd")));
-
- model.setValue("/root/send/goodflag_det",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("goodflag")));
-
- submit("TRRSI02709");
-
- grd_rsihdpaplist1.dispatch("onmouseup");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsihdpaplist1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:12px; width:157px; height:13px; ">결재 내역 List</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:28px; x2:1180px; y2:28px; "/>
- <datagrid id="grd_rsihdpapwinlist1" nodeset="/root/main/rsihdpapwinlist1" caption="물품코드^명칭^모델^규격^제조국^청구부서^사용부서^입고수량^입고단위^입고단가" colsep="^" colwidth="100, 200, 120, 120, 100, 110, 110, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1180px; height:240px; ">
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodmodel"/>
- <col ref="goodspec"/>
- <col ref="prodplcenm"/>
- <col ref="reqdeptnm"/>
- <col ref="mngtdeptnm"/>
- <col ref="winqty" format="#,###" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="winunitcost" format="#,###"/>
- </datagrid>
- <button id="button7" class="btn5_letter3" style="left:1126px; top:314px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "결재내역상세List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_rsihdpapwinlist1.saveExcel(fileName, "결재내역상세List",true,true, "");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:5px; top:319px; width:157px; height:13px; ">결재 내역 상세 List</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:334px; x2:1180px; y2:334px; "/>
- </case>
- </switch>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_sabe" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(getGridUpdateData(grd_rsihdpaplist) == "" && getGridUpdateData(grd_rsihdpaplist1) == "" )
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRSI02701");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|