123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?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>
- <bugtcode>
- <bugtcodelist>
- </bugtcodelist>
- </bugtcode>
- <acntcode>
- <acntcodelist>
- <supacntcd3/>
- <supacntnm3/>
- <supacntcd4/>
- <supacntnm4/>
- <acntcd/>
- <acntnm/>
- <projectid/>
- <projectnm/>
- <bugtflag/>
- <bugtcd/>
- <bugtnm/>
- <acntcdbugtcd/>
- <chk/>
- </acntcodelist>
- </acntcode>
- </main>
- <target/>
- <send>
- <bugtref>
- <acntcd/>
- <acntnm/>
- <bugtflag/>
- <deptcd/>
- <acntyy/>
- <bugtflag/>
- </bugtref>
- </send>
- <init>
- <refcond>
- <label>예산코드</label>
- <value>bugtcd</value>
- <label>예산명</label>
- <value>bugtnm</value>
- </refcond>
- </init>
- <source>
- <projectid/>
- </source>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removenode("/root/main/acntcode/acntcodelist");
-
- model.setValue("/root/send/bugtref/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
- model.setValue("/root/send/bugtref/acntyy", model.getValue("/root/target/defaultvalue/acntyy"));
- model.setValue("/root/send/bugtref/bugtflag", model.getValue("/root/target/defaultvalue/bugtflag"));
- misfMsterDetailSet(grd_acntlist, null, "TRRBC99102", "N");
- if(instance1.selectNodes("/root/target/validation/acntcodelist").length == 0)
- {
- misfMsterDetailRetrieve();//계정코드 조회
- }
- else
- {
- model.copyNode("/root/main/acntcode", "/root/target/validation");
- model.refresh();
- }
- fSetReadOnly();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //==============================================================
- // 읽기전용 컬럼 세팅
- //==============================================================
- function fSetReadOnly()
- {
- for(var i = 1; i < grd_acntlist.rows; i++)
- {
- if(grd_acntlist.valueMatrix(i, grd_acntlist.colRef("bugtyn")) == "N")
- {
- grd_acntlist.isReadOnly(i, grd_acntlist.colRef("chk")) = true;
- }
- }
- }
- //==============================================================
- // 계정항목 PopUp
- //==============================================================
- function fOpenPopupAcntHelp(pObj, sRecv)
- {
- misfOpenPopUpList("05", pObj, "", sRecv);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRBC99102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bugtref" resultref="/root/main/acntcode"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:782px; height:522px; ">
- <group id="group2" style="left:0px; top:0px; width:580px; height:5px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:205px; height:13px; ">부서코드별 예산 편성 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:780px; y2:63px; "/>
- <datagrid id="grd_acntlist" nodeset="/root/main/acntcode/acntcodelist" caption="항코드^항^목코드^목^계정코드^계정과목명^프로젝트ID^프로젝트명^예산구분^예산코드^예산명^계정코드예산코드^선택^예산존재여부^가용액" colsep="^" colwidth="0, 81, 0, 70, 55, 192, 71, 111, 58, 0, 0, 0, 0, 120" dataheight="23" defaultrows="0" mergecells="byrestriccol" mergecellsfixedcols="never" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:68px; width:780px; height:444px; ">
- <col ref="supacntcd3" visibility="hidden"/>
- <col ref="supacntnm3"/>
- <col ref="supacntcd4" visibility="hidden"/>
- <col ref="supacntnm4"/>
- <col ref="acntcd" style="text-align:center; "/>
- <col ref="acntnm"/>
- <col ref="projectid" style="text-align:center; "/>
- <col ref="projectnm"/>
- <col disabled="true" ref="bugtflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>수익</label>
- <value>1</value>
- </item>
- <item>
- <label>비용</label>
- <value>2</value>
- </item>
- <item>
- <label>수익 및 비용</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="bugtcd" visibility="hidden" style="text-align:center; "/>
- <col ref="bugtnm" visibility="hidden"/>
- <col ref="acntcdbugtcd" visibility="hidden"/>
- <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- if( grd_acntlist.isCell(event.target) && grd_acntlist.row >= grd_acntlist.fixedRows )
- {
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <col ref="bugtyn" visibility="hidden"/>
- <col ref="solubleamt" format="(-)#,###" style="text-align:right; "/>
- </datagrid>
- <group id="group4" style="left:0px; top:5px; width:780px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:35px; "/>
- <caption id="caption7" class="search_name" visibility="visible" style="left:15; top:9; width:86px; height:17px; ">조건 :</caption>
- <input id="ipt_acntcd" ref="/root/send/bugtref/acntcd" class="input_s_essential" navindex="2" visibility="visible" style="left:80px; top:8px; width:280px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13)
- {
- ipt_acntcd.value = ipt_acntcd.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:715px; top:5px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfMsterDetailRetrieve();
- fSetReadOnly();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:705px; y1:5px; x2:705px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- </group>
- <group id="group1" scroll="auto" style="left:8px; top:521px; width:782px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:661px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- model.setValue("/root/source/projectid",model.getValue(grd_acntlist.valueMatrix(grd_acntlist.row, grd_acntlist.colRef("projectid"))));
-
- misfPopUpListReturn(grd_acntlist);
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:720px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1 65px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|