123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?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>
- <insertacntlist/>
- </list>
- </main>
- <send>
- <instcd/>
- <prntkind/>
- <refcond>remove</refcond>
- <acntflag/>
- </send>
- <init>
- <refcond>
- <label>중복제거</label>
- <value>remove</value>
- <label>전체</label>
- <value/>
- </refcond>
- </init>
- <target>
- <instcd/>
- <prntkind/>
- </target>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRRAC00511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- rdo_refcond.select(0);
- model.removenode("/root/main/list/insertacntlist");
- model.setValue("/root/send/instcd", model.getValue("/root/target/instcd"));
- model.setValue("/root/send/prntkind", model.getValue("/root/target/prntkind"));
-
- model.refresh();
- }
-
- function fAcntSelect()
- {
- if (checkOpener())
- {
- var vInstcd = "";
- var vAcntcd = "";
- var vAcntnm = "";
- var vOption1 = 0;
- var seq = "";
-
-
- for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows ; i++)
- {
- //alert(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")));
-
- if(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) == "Y")
- {
- vInstcd = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("instcd"));
- vAcntcd = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("acntcd"));
- vAcntnm = grd_insertacntlist.valueMatrix(i,grd_insertacntlist.colRef("acntnm"));
-
- //alert(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")));
-
- for(var j = opener.grd_acntcdprntlist.fixedRows ; j < opener.grd_acntcdprntlist.rows ; j++)
- {
- //alert(parseInt(vAcntcd) + ' ' + parseInt(opener.grd_acntcdprntlist.valueMatrix(i, opener.grd_acntcdprntlist.colRef("codeid"))));
-
- if(parseInt(vAcntcd) > parseInt(opener.grd_acntcdprntlist.valueMatrix(j, opener.grd_acntcdprntlist.colRef("codeid"))) && parseInt(vAcntcd) < parseInt(opener.grd_acntcdprntlist.valueMatrix((parseInt(j)+1), opener.grd_acntcdprntlist.colRef("codeid"))))
- {
- opener.grd_acntcdprntlist.insertRow(j, "below");
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("instcd")) = vInstcd;
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("codeid")) = vAcntcd;
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntnm")) = vAcntnm;
-
- if(opener.cmb_prntkind.value == '21') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10);
- else if(opener.cmb_prntkind.value == '22') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10);
- else if(opener.cmb_prntkind.value == '23') vOption1 = parseInt(grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("acntclsflag")), 10) + 1;
-
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntkind")) = opener.cmb_prntkind.value;
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("fromdd")) = '19000101';
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("todd")) = '99991231';
- //alert(vOption1);
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("prntnm1")) = vOption1;
- opener.grd_acntcdprntlist.valueMatrix(j+1, opener.grd_acntcdprntlist.colRef("seq")) = opener.grd_acntcdprntlist.valueMatrix(j, opener.grd_acntcdprntlist.colRef("seq")).substr(0, 1) + vAcntcd + "0";
-
- opener.model.refresh();
- break;
- }
- }
- }
- }
-
-
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- window.close();
- }
-
- function fAllCheck(strAllChk)
- {
- var grdTolCnt;
- grdTolCnt = grd_insertacntlist.rows;
-
- if (strAllChk == "Y")
- {
- for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows; i++)
- {
- grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) = "Y";
- }
- }
- else
- {
- for(var i = grd_insertacntlist.fixedRows ; i < grd_insertacntlist.rows; i++)
- {
- grd_insertacntlist.valueMatrix(i, grd_insertacntlist.colRef("chk")) = "N";
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="860" pageheight="570" guideline="1,-2;2,-2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:840px; height:552px; ">
- <group id="group2" style="left:0px; top:0px; width:840px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:840px; height:35px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:771px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRAC00511");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:758px; y1:3px; x2:758px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:285px; top:9px; width:91px; height:17px; ">계졍구분 :</caption>
- <caption id="caption3" class="search_name" visibility="visible" style="left:3px; top:9px; width:91px; height:17px; ">조회조건 :</caption>
- <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:94px; top:8px; width:181px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/refcond">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_prntkind" ref="/root/send/acntflag" class="combo_s_essential" appearance="minimal" style="left:375px; top:8px; width:160px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>자산</label>
- <value>1</value>
- </item>
- <item>
- <label>부채</label>
- <value>2</value>
- </item>
- <item>
- <label>자본</label>
- <value>3</value>
- </item>
- <item>
- <label>수익</label>
- <value>4</value>
- </item>
- <item>
- <label>비용</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:39px; width:145px; height:14px; ">입력 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:54px; x2:838px; y2:54px; "/>
- <datagrid id="grd_insertacntlist" nodeset="/root/main/list/insertacntlist" class="grd_bugtorgnzlist" caption="선택^기관코드^기관명^계정구분^계정분류구분^차대구분^계정코드^계정명" colsep="^" colwidth="50, 0, 110, 110, 110, 110, 110, 200" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:59px; width:838px; height:463px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="instnm"/>
- <col ref="acntflag"/>
- <col ref="acntclsflag"/>
- <col ref="balflag"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_insertacntlist.isCell(event.target))
- {
- fAcntSelect();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_bugtorgnzlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn2_letter4" style="left:105px; top:34px; width:64px; height:19px; text-align:left; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck("Y");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter4" style="left:175px; top:34px; width:64px; height:19px; text-align:left; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllCheck("N");
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:524px; width:839px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:719px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAcntSelect();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:776px; top:2px; 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:787px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|