123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?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>
- <rscmpcomlist/>
- <rsihdpaplist/>
- </main>
- <send>
- <instcd/>
- <goodflag/>
- <fromdd/>
- <todd/>
- <sanctyn/>
- <winpsn/>
- <winpsnnm/>
- <subsuplplcenm/>
- <subsuplplcecd/>
- </send>
- <init>
- <sanctyn>
- <label>전체</label>
- <value/>
- <label>결재</label>
- <value>Y</value>
- <label>미결재</label>
- <value>N</value>
- </sanctyn>
- </init>
- <hidden/>
- <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();
-
- //misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSC00803", "Y");
- misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSI02704", "Y");
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscmpcomlist"/>
- <submission id="TXRSC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rscmpcomlist" resultref="/root/temp"/>
- <submission id="TRRSI02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
-
-
- misfGridInit(grd_rscmpcomlist);
- // 사용자별 청구 기관 List
- rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
- // 사용자별 물품 구분
- 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_rscmpcomlist.calcdocukind");
-
- //misfComboCopyItemSet(cmb_goodflag, "", grd_rscmpcomlist, "goodflag"); // 물품구분
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
- cmb_goodflag.select(0);
-
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSI02704", "Y");
-
- model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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:162px; height:14px; ">구매재고 회계 전표처리.</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:70px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( getGridUpdateData(grd_rscmpcomlist) != "" )
- {
- if( messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
- misfMsterDetailRetrieve();
- }else{
- return;
- }
-
- }else{
- //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
- misfMsterDetailRetrieve();
- }
-
- //misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd,prodcmpynm", true);
- misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd", true);
- model.refresh();
-
- ]]>
- </script>
- </button>
- <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_fromdd" class="search_name" style="left:15px; top:36px; width:88px; height:17px; ">입고일자 :</caption>
- <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>
- <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>
- <caption id="cap_goodflag" class="search_name" style="left:405px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
- <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_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>
- <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>
- <button id="btn_winpsn" class="icon_search" style="left:880px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_winpsn, "", "winpsn,winpsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <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="caption3" 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>
- <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:157px; height:13px; ">결재내역 List</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:99px; "/>
- <datagrid id="grd_rscmpcomlist" nodeset="/root/main/rsihdpaplist" allowuserresize="false" caption="금액^차변과목^적요^대변과목^금액^거래처^전표일자^전표번호" colsep="^" colwidth="100, 190, 291, 190, 100, 150, 70, 70" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1195px; height:615px; ">
- <col ref="winamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="slipcmt" format="9999999999"/>
- <col ref="rlacntnm" style="text-align:left; "/>
- <col ref="winamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="custnm" style="text-align:left; "/>
- <col ref="slipdd" style="text-align:left; "/>
- <col ref="slipno" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rscmpcomlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grdadd1" class="btn2_letter3" visibility="hidden" style="left:1085px; top:77px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscmpcomlist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddel1" class="btn2_letter3" visibility="hidden" style="left:1140px; top:77px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rscmpcomlist, "D");
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:56px; top:715px; width:35px; height:23px; vertical-align:middle; ">Total:</caption>
- <output id="opt_sumreqfla" ref="/root/init/reqamt" class="output_default" format="#,###" style="left:98px; top:718px; width:85px; height:19px; font-weight:bold; "/>
- <caption id="caption2" style="left:940px; top:715px; width:35px; height:23px; vertical-align:middle; ">Total:</caption>
- <output id="output1" ref="/root/init/reqamt" class="output_default" format="#,###" style="left:975px; top:718px; width:85px; height:19px; font-weight:bold; "/>
- </group>
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( getGridUpdateData(grd_rscmpcomlist) == "" )
- {
- messageBox("업데이트 된 내용이", "I004");
- return;
- }
-
- misfSave("TXRSC00802");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- btn_search.dispatch("DOMAtivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- <button id="btn_clear" 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_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|