123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527 |
- <?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>
- <acntcdprntlist>
- <instcd/>
- <seq/>
- <acntcd/>
- <prntnm/>
- <calform/>
- <prntnm1/>
- <prntnm2/>
- <prntnm3/>
- <prntkind/>
- </acntcdprntlist>
- <R0003/>
- </main>
- <send>
- <prntkind/>
- <prntseq/>
- <acntcdprntlist/>
- <prntseqnm/>
- <fromdd/>
- <todd/>
- <instcd/>
- </send>
- <hidden>
- <seqchk/>
- <seqcount/>
- <codeflag/>
- <tempcode/>
- <temptext/>
- <search>
- <code/>
- <prntnm/>
- </search>
- </hidden>
- <init>
- <R0003list>
- <R0003>
- <cdnm/>
- <cdid/>
- </R0003>
- </R0003list>
- <sheetflag>
- <cd>01</cd>
- <nm>운영계산서(수익)</nm>
- </sheetflag>
- <sheetflag>
- <cd>02</cd>
- <nm>운영계산서(비용)</nm>
- </sheetflag>
- <sheetflag>
- <cd>03</cd>
- <nm>자금계산서(수입)</nm>
- </sheetflag>
- <sheetflag>
- <cd>04</cd>
- <nm>자금계산서(지출)</nm>
- </sheetflag>
- <sheetflag>
- <cd>10</cd>
- <nm>현금흐름표</nm>
- </sheetflag>
- <sheetflag>
- <cd>11</cd>
- <nm>재고자산명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>12</cd>
- <nm>유형자산명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>13</cd>
- <nm>감가상각누계액명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>14</cd>
- <nm>차입금명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>15</cd>
- <nm>의료미수금명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>16</cd>
- <nm>외래 수익명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>17</cd>
- <nm>입원수익명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>18</cd>
- <nm>직종별 인건비명세서</nm>
- </sheetflag>
- <sheetflag>
- <cd>30</cd>
- <nm>관리항목별손익계산서</nm>
- </sheetflag>
- <sheetflag>
- <cd>21</cd>
- <nm>시산표</nm>
- </sheetflag>
- <sheetflag>
- <cd>22</cd>
- <nm>대차대조표</nm>
- </sheetflag>
- <sheetflag>
- <cd>23</cd>
- <nm>손익계산서</nm>
- </sheetflag>
- <sheetflag>
- <cd>24</cd>
- <nm>전체계정(popup 등...)</nm>
- </sheetflag>
- <sheetflag>
- <cd>25</cd>
- <nm>년이월작업</nm>
- </sheetflag>
- <sheetflag>
- <cd>99</cd>
- <nm>기타</nm>
- </sheetflag>
- </init>
- <temp/>
- <source>
- <instcd/>
- <prntkind/>
- </source>
- <target>
- <instcd/>
- <acntcd/>
- <acntnm/>
- </target>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/prntseq","1");
- model.setValue("/root/hidden/codeflag","1");
- model.removenode( "/root/main/acntcdprntlist");
-
- misfComboComCdList("Z0007", cmb_instcd, "N");
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- cmb_instcd.refresh();
-
- //콩통코드 자료
- // zbcfGetCodeList(new Array("R0003"), new Array("/root/init/R0003list"));
- //misfComboComCdList("R0003", cmb_prntkind)
- cmb_prntkind.select(0);
- ipt_fromdd.value = '19000101';
- ipt_todd.value = '99991231'
-
- model.refresh();
-
- misfMsterDetailSet(grd_acntcdprntlist, null, "TRRAC00501", "Y");
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //조회
- function fGetAactcdprtlist()
- {
- model.setValue( "/root/send/prntkind", cmb_prntkind.value);
-
- if(model.getValue("/root/send/prntseq") == "1")
- {
- model.setValue("/root/send/prntseqnm", "seq");
- }
- else
- {
- model.setValue("/root/send/prntseqnm","codeid");
- }
-
- misfMsterDetailRetrieve(); // submit("TRRAC00501");
- }
-
- //정렬 순서로 sort함.
- function fGetSortSeq()
- {
- var num = grd_acntcdprntlist.rows- 1;
- if(rdo_seq.value == 1)
- {
- grd_acntcdprntlist.sort(1, 2, num, 2) = "asc";
- }
- else
- {
- grd_acntcdprntlist.sort(1, 3, num, 3) = "asc";
- }
- model.refresh();
- }
-
- //출력물순서 저장
- function fInsAactcdprtlist()
- {
- var updtdata = getGridUpdateData(grd_acntcdprntlist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- checkKeyColumn( "grd_acntcdprntlist" );
-
- //중복체크에 대한 부부이 빠져있음.
- model.setValue("/root/send/acntcdprntlist",grd_acntcdprntlist.getUpdateData());
-
- rtn = messageBox("", "Q002");
-
- if(rtn != "6" ) return false;
-
- // if(submit("TXRAC00501"))
- // {
- // grd_acntcdprntlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- // fGetAactcdprtlist();
- // }
-
- misfSave("TXRAC00501");
- }
-
- //엑셀 입력
- function fInputExcel(pGrid) {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
- pGrid.deleteRow(1);
-
- for(i = 1; i < pGrid.rows; i++) {
- pGrid.rowStatus(i) = 1;
- }
- pGrid.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
- <submission id="TRRAC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntcdprntlist"/>
- <submission id="TXRAC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">재무제표 출력순서 관리</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:80px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:17px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGetAactcdprtlist();
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:16px; top:34px; width:104px; height:17px; ">출력물 종류 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_prntkind" ref="/root/main/R0003" class="combo_s_essential" appearance="minimal" showvalue="true" style="left:125px; top:33px; width:205px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sheetflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:345px; top:9px; width:104px; height:17px; ">정 렬 순 서 :</caption>
- <select1 id="rdo_seq" ref="/root/send/prntseq" class="radio_search" overflow="visible" appearance="full" cellspacing="50" cols="2" style="left:455px; top:8px; width:190px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>출력순서</label>
- <value>1</value>
- </item>
- <item>
- <label>계정코드</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetSortSeq();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:780px; top:9px; width:75px; height:17px; ">기 간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:855px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:985px; top:8px; width:100px; height:19px; "/>
- <caption id="cap_1" style="left:958px; top:12px; width:25px; height:15px; text-align:center; vertical-align:top; ">~</caption>
- <select1 id="rdo_codeflag" ref="/root/hidden/codeflag" class="radio_search" overflow="visible" appearance="full" cellspacing="50" cols="3" style="left:455px; top:33px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>회계계정</label>
- <value>1</value>
- </item>
- <item>
- <label>부서코드</label>
- <value>2</value>
- </item>
- <item>
- <label>직종코드</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_codeflag" class="search_name" style="left:345px; top:34px; width:104px; height:17px; ">코 드 선 택 :</caption>
- <input id="ipt_tempcode" ref="/root/hidden/tempcode" visibility="hidden" style="left:1095px; top:35px; width:15px; height:19px; "/>
- <input id="ipt_temptext" ref="/root/hidden/temptext" visibility="hidden" style="left:1110px; top:35px; width:15px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:125px; top:9px; width:205px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:104px; height:17px; text-align:right; ">기 관 :</caption>
- <caption id="caption5" class="search_name" style="left:16px; top:58px; width:114px; height:17px; ">코 드 :</caption>
- <input id="ipt_code" ref="/root/hidden/search/code" class="input_s_essential" appearance="input" style="left:125px; top:57px; width:158px; height:19px; "/>
- <input id="ipt_prntnm" ref="/root/hidden/search/prntnm" class="input_s_essential" appearance="input" style="left:455px; top:57px; width:158px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:345px; top:59px; width:104px; height:17px; ">출 력 명 :</caption>
- <button id="button1" class="btn2_letter2" style="left:288px; top:57px; width:42px; height:19px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var vCode = model.getValue("/root/hidden/search/code");
- if(vCode != "")
- {
- for(var i = grd_acntcdprntlist.fixedRows ; i < grd_acntcdprntlist.rows ; i++)
- {
- if(grd_acntcdprntlist.valueMatrix(i, grd_acntcdprntlist.colRef("codeid")) == vCode)
- {
- grd_acntcdprntlist.row = i;
- grd_acntcdprntlist.col = grd_acntcdprntlist.colRef("codeid");
- return;
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:618px; top:57px; width:42px; height:19px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vPrntnm = model.getValue("/root/hidden/search/prntnm");
- if(vPrntnm != "")
- {
- for(var i = grd_acntcdprntlist.fixedRows ; i < grd_acntcdprntlist.rows ; i++)
- {
- if(grd_acntcdprntlist.valueMatrix(i, grd_acntcdprntlist.colRef("acntnm")) == vPrntnm)
- {
- grd_acntcdprntlist.row = i;
- grd_acntcdprntlist.col = grd_acntcdprntlist.colRef("acntnm");
- return;
- }
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:110px; x2:1194px; y2:110px; "/>
- <button id="button18" class="btn2_letter3" style="left:1139px; top:90px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_acntcdprntlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1085px; top:90px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_acntcdprntlist, "A");
-
- grd_acntcdprntlist.valueMatrix(grd_acntcdprntlist.rows-1, grd_acntcdprntlist.colRef("prntkind")) = cmb_prntkind.value;
- grd_acntcdprntlist.valueMatrix(grd_acntcdprntlist.rows-1, grd_acntcdprntlist.colRef("fromdd")) = '19000101';
- grd_acntcdprntlist.valueMatrix(grd_acntcdprntlist.rows-1, grd_acntcdprntlist.colRef("todd")) = '99991231';
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_acntcdprntlist" nodeset="/root/main/acntcdprntlist" caption="기관코드^출력순서^계정코드^계정명^출력명^계산식^Option1^Option2^Option3^Option4^Option5^사용시작일^사용종료일^출력물 종류" colsep="^" colwidth="0, 89, 80, 150, 200, 220, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1194px; height:618px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="seq" type="input" maxlength="10" _key="false" style="text-align:center; "/>
- <col ref="codeid" type="inputbutton" maxlength="8" style="text-align:left; "/>
- <col ref="acntnm" maxlength="100"/>
- <col ref="prntnm" type="input" maxlength="100"/>
- <col ref="calform" type="input" maxlength="200"/>
- <col ref="prntnm1" type="input" maxlength="100"/>
- <col ref="prntnm2" type="input" maxlength="100"/>
- <col ref="prntnm3" type="input" maxlength="100"/>
- <col ref="prntnm4" type="input" maxlength="100"/>
- <col ref="prntnm5" type="input" maxlength="100"/>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="prntkind"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_acntcdprntlist.col == grd_acntcdprntlist.colRef("codeid"))
- {
- if(rdo_codeflag.value == 1)
- {
- misfOpenPopUpList("05", grd_acntcdprntlist, "", "codeid,prntnm", "cmb_instcd");
- }
- else if(rdo_codeflag.value == 2)
- {
- misfOpenPopUpList("02", grd_acntcdprntlist, "", "codeid,prntnm");
- }
- else if(rdo_codeflag.value == 3)
- {
- //misfOpenPopUpList("02", grd_acntcdprntlist, "", "codeid,prntnm");
- rpbfOpenComCdHelp(ipt_tempcode ,"R0061", "tempcode,temptext");
- model.setValue(grd_acntcdprntlist.nodeset + "[" + grd_acntcdprntlist.row + "]/codeid", ipt_tempcode.value);
- model.setValue(grd_acntcdprntlist.nodeset + "[" + grd_acntcdprntlist.row + "]/prntnm", ipt_temptext.value);
- model.removenode("/root/hidden/tempcode");
- model.removenode("/root/hidden/temptext");
- model.refresh();
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_acntcdprntlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="ipt_excsave" class="btn2_letter4" style="left:1015px; top:90px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfSaveExcel(grd_acntcdprntlist);
-
- ]]>
- </script>
- </button>
- <caption id="caption21" class="tit_2" style="left:5px; top:95px; width:131px; height:13px; ">출력 목록</caption>
- <button id="ipt_excadd" class="btn2_letter4" style="left:944px; top:90px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fInputExcel(grd_acntcdprntlist);
-
- grd_acntcdprntlist.gridToInstance();
-
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_acntcdprntlist.nodeset).length ; i++)
- {
- model.setValue(grd_acntcdprntlist.nodeset + "[" + i + "]/fromdd", "19000101");
- model.setValue(grd_acntcdprntlist.nodeset + "[" + i + "]/todd", "99991231");
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" style="left:860px; top:90px; width:64px; height:19px; ">
- <caption>입력목록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/source/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/source/prntkind", model.getValue(cmb_prntkind.attribute("ref")));
- model.setValue("/root/target/instcd", "");
- model.setValue("/root/target/acntcd", "");
- model.setValue("/root/target/acntnm", "");
- modal("SPRAC00501","","","","","/root/source", "/root/target");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="button39" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fInsAactcdprtlist();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button23" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|