123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834 |
- <?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>
- <condition>
- <instcd/>
- <slipflag>1</slipflag>
- <genrdd/>
- <alldate/>
- <deptcd/>
- <deptnm/>
- <slipkind/>
- <slipendyn>1</slipendyn>
- </condition>
- <list>
- <detailist/>
- </list>
- </main>
- <send>
- <data>
- <instcd/>
- <mngtcd/>
- </data>
- </send>
- <save>
- <detailist/>
- </save>
- <display>
- <slipflag>
- <cdnm>전체</cdnm>
- <cdid>A</cdid>
- </slipflag>
- <slipflag>
- <cdnm>일반전표</cdnm>
- <cdid>1</cdid>
- </slipflag>
- <slipflag>
- <cdid>2</cdid>
- <cdnm>
- <![CDATA[입원수익전표]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>3</cdid>
- <cdnm>
- <![CDATA[외래수익전표]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>4</cdid>
- <cdnm>
- <![CDATA[건진수익전표]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>5</cdid>
- <cdnm>
- <![CDATA[급여전표]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>6</cdid>
- <cdnm>
- <![CDATA[물류전표(입고)]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>7</cdid>
- <cdnm>
- <![CDATA[물류전표(출고)]]>
- </cdnm>
- </slipflag>
- <slipflag>
- <cdid>8</cdid>
- <cdnm>
- <![CDATA[감가상각전표]]>
- </cdnm>
- </slipflag>
- <slipkind>
- <cd>1</cd>
- <nm>대체</nm>
- </slipkind>
- <slipkind>
- <cd>2</cd>
- <nm>입금</nm>
- </slipkind>
- <slipkind>
- <cd>3</cd>
- <nm>출금</nm>
- </slipkind>
- <profflag>
- <nm>법인카드</nm>
- <cd>1</cd>
- </profflag>
- <profflag>
- <nm>개인신용카드</nm>
- <cd>2</cd>
- </profflag>
- <profflag>
- <nm>현금영수증</nm>
- <cd>3</cd>
- </profflag>
- <profflag>
- <nm>세금계산서</nm>
- <cd>4</cd>
- </profflag>
- <profflag>
- <nm>계산서</nm>
- <cd>5</cd>
- </profflag>
- <profflag>
- <nm>기타</nm>
- <cd>6</cd>
- </profflag>
- <profflag>
- <nm>근로소득</nm>
- <cd>7</cd>
- </profflag>
- <profflag>
- <nm>비과세근로소득</nm>
- <cd>8</cd>
- </profflag>
- <profflag>
- <nm>퇴직소득</nm>
- <cd>9</cd>
- </profflag>
- <profflag>
- <nm>일용근로소득</nm>
- <cd>A</cd>
- </profflag>
- <profflag>
- <nm>사업소득</nm>
- <cd>B</cd>
- </profflag>
- <profflag>
- <nm>기타소득</nm>
- <cd>C</cd>
- </profflag>
- <custflag>
- <nm>거래처</nm>
- <cd>1</cd>
- </custflag>
- <custflag>
- <nm>부서</nm>
- <cd>3</cd>
- </custflag>
- <custflag>
- <nm>교직원</nm>
- <cd>4</cd>
- </custflag>
- <custflag>
- <nm>개인</nm>
- <cd>5</cd>
- </custflag>
- <custflag>
- <nm>기타</nm>
- <cd>9</cd>
- </custflag>
- <dcrflag>
- <nm>차변</nm>
- <cd>D</cd>
- </dcrflag>
- <dcrflag>
- <nm>대변</nm>
- <cd>C</cd>
- </dcrflag>
- <fixasetflag>
- <nm>일반매입매출</nm>
- <cd>00</cd>
- </fixasetflag>
- <fixasetflag>
- <nm>건·구축물</nm>
- <cd>01</cd>
- </fixasetflag>
- <fixasetflag>
- <nm>기계장치</nm>
- <cd>02</cd>
- </fixasetflag>
- <fixasetflag>
- <nm>차량운반구</nm>
- <cd>03</cd>
- </fixasetflag>
- <fixasetflag>
- <nm>기타감가상각물</nm>
- <cd>04</cd>
- </fixasetflag>
- <bankflag>
- <nm/>
- <cd/>
- </bankflag>
- <bankflag>
- <nm>국민카드</nm>
- <cd>01</cd>
- </bankflag>
- <bankflag>
- <nm>롯데카드</nm>
- <cd>02</cd>
- </bankflag>
- <bankflag>
- <nm>비씨카드</nm>
- <cd>03</cd>
- </bankflag>
- <bankflag>
- <nm>삼성카드</nm>
- <cd>04</cd>
- </bankflag>
- <bankflag>
- <nm>신한카드</nm>
- <cd>05</cd>
- </bankflag>
- <bankflag>
- <nm>씨티카드</nm>
- <cd>06</cd>
- </bankflag>
- <bankflag>
- <nm>엘지카드</nm>
- <cd>07</cd>
- </bankflag>
- <bankflag>
- <nm>외환카드</nm>
- <cd>08</cd>
- </bankflag>
- <bankflag>
- <nm>우리카드</nm>
- <cd>09</cd>
- </bankflag>
- <bankflag>
- <nm>조흥카드</nm>
- <cd>10</cd>
- </bankflag>
- <bankflag>
- <nm>현대카드</nm>
- <cd>11</cd>
- </bankflag>
- </display>
- <init>
- <R0008list>
- <R0008>
- <cdnm/>
- <cdid/>
- </R0008>
- </R0008list>
- <code>
- <codelist/>
- </code>
- </init>
- <temp/>
- <source>
- <slipinfo/>
- </source>
- </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/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fOpenForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var deptcd = "";
- var acntdept = "";
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm()
- {
- var instcd = getUserInfo("dutplceinstcd");
- deptcd = getUserInfo("dutplcecd");
- var deptnm = getUserInfo("dutplcenm");
-
- model.setValue("/root/send/data/instcd", instcd);
- model.setValue("/root/send/data/mngtcd", "acntdept");
- submit("TRRAZ00001");
- acntdept = model.getValue("/root/init/code/code/codelist/cdid");
-
- if (deptcd != acntdept)
- {
- model.setValue(cmb_slipflag.attribute("ref"), "1");
- //cmb_slipflag.disabled = true;
-
- model.setValue(cmb_slipkind.attribute("ref"), "3");
- //cmb_slipkind.disabled = true;
-
- //model.setValue(ipt_deptcd.attribute("ref"), deptcd);
- //model.setValue(ipt_deptnm.attribute("ref"), deptnm);
- //ipt_deptcd.disabled = true;
- //ipt_deptnm.disabled = true;
- }
-
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
- {
- misfComboComCdList("R0360", cmb_slipkind, "Y");
- }
- else
- {
- misfComboComCdList("R0359", cmb_slipkind, "Y");
- }
-
- misfComboComCdList("R0008", cmb_slipflag, "N");
-
- model.removenode("/root/main/notelist");
- var sToday = getCurrentDate().toString();
- model.setValue("/root/main/condition/genrdd",sToday);
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/main/condition/instcd",instcd);
- model.resetInstanceNode("/root/main/list/detailist");
- model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
-
- for(var i = grd_autosliplist.fixedCols ; i < grd_autosliplist.cols ; i++)
- {
- grd_autosliplist.colDisabled(i) = true;
- }
- model.refresh();
- }
-
- function fAddDelRow(sStatus)
- {
- if(sStatus == "A")
- {
- misfGridIUD(grd_autosliplist, sStatus);
- grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("genrdd")) = model.getValue("/root/main/condition/genrdd");
- grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("slipflag")) = model.getValue("/root/main/condition/slipflag");
- }
- else
- {
- misfGridIUD(grd_autosliplist, sStatus);
- }
- }
-
- function fSaveClick()
- {
- model.resetInstanceNode("/root/send");
- model.removenode("/root/send");//조회시 기존 데이터 삭제
-
- model.setValue("/root/save/detailist", grd_autosliplist.getUpdateData());
- model.refresh();
-
- submit("TXRAD01402");
- }
-
- //========================================================================================
- //기재사항코드 조회
- //========================================================================================
- function fRetrive()
- {
- model.resetInstanceNode("/root/main/list/detailist");
- model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main/condition");
-
- model.refresh();
- submit("TRRAD01401");
- grd_autosliplist.subtotalposition="below";
- grd_autosliplist.multitotals=true;
-
-
- grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("slipseqno"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#0000ff; font-weight:bold; ", 30, "전표구분번호별합계", false);
-
- grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("workflag"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#0000ff; font-weight:bold; ", 30, "업무별합계", false);
-
- grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("unslno"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#0000ff; font-weight:bold; ", 30, "전표차대합계", false);
-
- grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("drcrflag"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 30, "차대소계", false);
-
-
- model.refresh();
- }
-
- function fAutoBookClick()
- {
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main/condition");
-
- model.refresh();
- submit("TXRAD01403");
- model.refresh();
- }
-
- //========================================================================================
- //관리항목 상세정보 조회(그리드용)
- //========================================================================================
- function fGetMngItemInfo(pRow)
- {
-
- if ( pRow > 0 )
- {
- model.resetInstanceNode("/root/send");
-
- var strItem ;
- strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
- model.setValue("/root/main/condition/mngitem",strItem);
-
- model.resetInstanceNode("/root/main/list/detailist");
- model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
- submit("TRRAD01002");
- }
- }
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
-
- //========================================================================================
- //엑셀입력(excel file을 그리드에 입력)
- //========================================================================================
- 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>
- <submission id="TRRAD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
- <submission id="TXRAD01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/detailist" resultref="/root/temp"/>
- <submission id="TXRAD01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,415;" 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:15px; width:1195px; height:735px; ">
- <group id="grp_sea" visibility="visible" style="left:0px; top:33px; width:1195px; height:64px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:11px; width:125px; height:17px; ">전표구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1130px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrive();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:375px; top:11px; width:89px; height:17px; ">발의일자 :</caption>
- <input id="input2" ref="/root/main/condition/genrdd" class="input_s_essential" inputtype="date" style="left:465px; top:10px; width:105px; height:19px; "/>
- <select1 id="cmb_slipflag" ref="/root/main/condition/slipflag" class="combo_default" appearance="minimal" showvalue="true" style="left:105px; top:10px; width:215px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0008list/R0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1105px; y1:8px; x2:1105px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_deptnm" ref="/root/main/condition/deptnm" class="input_s_essential" navindex="10" style="left:850px; top:10px; width:145px; height:19px; "/>
- <button id="btn_deptcd" class="icon_search" navindex="9" style="left:830px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd, "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/main/condition/deptcd" class="input_s_essential" navindex="8" style="left:730px; top:10px; width:95px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:630px; top:11px; width:90px; height:17px; ">발의부서 :</caption>
- <select1 id="cmb_slipendyn" ref="/root/main/condition/slipendyn" class="combo_default" appearance="minimal" showvalue="true" style="left:465px; top:36px; width:105px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>분개전</label>
- <value>1</value>
- </item>
- <item>
- <label>분개후</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:375px; top:37px; width:125px; height:17px; ">분개구분 :</caption>
- <select1 id="cmb_slipkind" ref="/root/main/condition/slipkind" class="combo_default" appearance="minimal" showvalue="true" style="left:105px; top:35px; width:215px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:16px; top:36px; width:125px; height:17px; ">전표유형 :</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:125px; x2:1195px; y2:125px; "/>
- <caption id="caption21" class="tit_2" style="left:3px; top:108px; width:131px; height:13px; ">전표 자동분개</caption>
- <datagrid id="grd_autosliplist" nodeset="/root/main/list/detailist" caption="기관코드^순번^전표구분번호^작업 구분^발의일자^미결^미결^미결^전표구분^전표유형^차대구분^계정코드^계정명^상대계정코드^상대계정명^귀속부서^귀속부서명^기표부서^기표부서명^입출금예정일^전표적요^상대처구분^상대처코드^상대처명^기재사항제목1^기재사항코드1^기재사항내역1^기재사항제목2^기재사항코드2^기재사항내역2^기타기재사항^프로젝트ID^합계금액^공급가액^부가가치세^증빙구분^사용일자^거래처^거래처명^거래처주소^거래처대표자^거래처 업태^거래처 종목^전화번호^증빙적요^법인카드번호^카드사코드^사용자^소유부서^소유부서명^고정자산매입구분^매입매출구분^과세구분^처리일자|기관코드^순번^전표구분번호^작업 구분^발의일자^전표일자^전표번호^일련번호^전표구분^전표유형^차대구분^계정코드^계정명^상대계정코드^상대계정명^귀속부서^귀속부서명^기표부서^기표부서명^입출금예정일^전표적요^상대처구분^상대처코드^상대처명^기재사항제목1^기재사항코드1^기재사항내역1^기재사항제목2^기재사항코드2^기재사항내역2^기타기재사항^프로젝트ID^합계금액^공급가액^부가가치세^증빙구분^사용일자^거래처^거래처명^거래처주소^거래처대표자^거래처 업태^거래처 종목^전화번호^증빙적요^법인카드번호^카드사코드^사용자^소유부서^소유부서명^고정자산매입구분^매입매출구분^과세구분^처리일자" colsep="^" colwidth="0, 51, 50, 50, 81, 77, 68, 58, 108, 60, 58, 74, 77, 90, 79, 66, 88, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="move" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:130px; width:1195px; height:604px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="seqno" style="text-align:left; "/>
- <col ref="slipseqno"/>
- <col ref="workflag"/>
- <col ref="genrdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="unsldd" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="unslno" style="text-align:left; "/>
- <col ref="unslseqno" style="text-align:left; "/>
- <col ref="slipflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/slipflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="slipkind" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/slipkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="drcrflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/dcrflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="acntcd" type="inputbutton" style="text-align:left; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="rlaacntcd" type="inputbutton" style="text-align:left; "/>
- <col ref="rlaacntnm" style="text-align:left; "/>
- <col ref="costcntrdeptcd" type="inputbutton" style="text-align:left; "/>
- <col ref="costcntrdeptnm" style="text-align:left; "/>
- <col ref="slipdeptcd" type="inputbutton" style="text-align:left; "/>
- <col ref="slipdeptnm" style="left:1137px; top:43px; width:100px; height:23px; text-align:left; "/>
- <col ref="defrayreqdd" type="inputdate" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="slipcmt" type="input" style="text-align:left; "/>
- <col ref="rlaflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/custflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="rlacd" type="inputbutton" style="text-align:left; "/>
- <col ref="rlanm" type="input" style="text-align:left; "/>
- <col ref="notefactnm1" type="input" style="text-align:left; "/>
- <col ref="notefactcd1" type="inputbutton" style="text-align:left; "/>
- <col ref="notefactspec1" type="input" style="text-align:left; "/>
- <col ref="notefactnm2" type="input" style="text-align:left; "/>
- <col ref="notefactcd2" type="input" style="text-align:left; "/>
- <col ref="notefactspec2" type="input" style="text-align:left; "/>
- <col ref="etcnotefact" type="input" style="text-align:left; "/>
- <col ref="projectid" type="input" style="text-align:left; "/>
- <col ref="amt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="suplamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="valaddtax" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="profflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/profflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="usedd" type="inputdate" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="entrregno" type="inputbutton" style="text-align:left; "/>
- <col ref="custnm" type="input" style="text-align:left; "/>
- <col ref="custaddr" type="input" style="text-align:left; "/>
- <col ref="custprsd" type="input" style="text-align:left; "/>
- <col ref="custbizcond" type="input" style="text-align:left; "/>
- <col ref="custitem" type="input" style="text-align:left; "/>
- <col ref="cntctel" type="input" style="text-align:left; "/>
- <col ref="mainrec" type="input" style="text-align:left; "/>
- <col ref="instcardseqno" type="input" style="text-align:left; "/>
- <col ref="cardcmpycd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/bankflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="posspsn" type="input" style="text-align:left; "/>
- <col ref="possdeptcd" type="inputbutton" style="text-align:left; "/>
- <col ref="possdeptnm" style="text-align:left; "/>
- <col ref="fixasetflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/display/fixasetflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="taxbillflag" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>매입</label>
- <value>1</value>
- </item>
- <item>
- <label>매출</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="taxkind" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>과세</label>
- <value>01</value>
- </item>
- <item>
- <label>영세율</label>
- <value>02</value>
- </item>
- <item>
- <label>대손세액가감</label>
- <value>03</value>
- </item>
- </choices>
- </col>
- <col ref="prcdd" format="yyyy-mm-dd" style="text-align:left; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_autosliplist.col == grd_autosliplist.colRef("acntcd"))
- {
- misfOpenPopUpList("05", grd_autosliplist, "", "acntcd,acntnm");
- model.refresh();
- }
-
- if(grd_autosliplist.col == grd_autosliplist.colRef("rlaacntcd"))
- {
- misfOpenPopUpList("05", grd_autosliplist, "", "rlaacntcd,rlaacntnm");
- model.refresh();
- }
- if(grd_autosliplist.col == grd_autosliplist.colRef("costcntrdeptcd"))
- {
- misfOpenPopUpList("02", grd_autosliplist, "", "costcntrdeptcd,costcntrdeptnm");
- model.refresh();
- }
- if(grd_autosliplist.col == grd_autosliplist.colRef("slipdeptcd"))
- {
- misfOpenPopUpList("02", grd_autosliplist, "", "slipdeptcd,slipdeptnm");
- model.refresh();
- }
-
- if(grd_autosliplist.col == grd_autosliplist.colRef("possdeptcd"))
- {
- misfOpenPopUpList("02", grd_autosliplist, "", "possdeptcd,possdeptnm");
- model.refresh();
- }
-
-
- if(grd_autosliplist.col == grd_autosliplist.colRef("entrregno"))
- {
- misfOpenPopUpList("14", grd_autosliplist, "", "entrregno,custnm,custprsd,cntctel,custaddr,custbizcond,custitem");
- model.refresh();
- }
- if(grd_autosliplist.col == grd_autosliplist.colRef("rlacd"))
- {
- var strPopup;
- var strChk;
- var rownum ;
- rownum = grd_autosliplist.row;
- strChk = model.getValue("/root/main/list/detailist["+ rownum + "]/rlaflag");
-
- if ( strChk == "1" ) {
- strPopup = "14";
- } else if ( strChk == "3" ) {
- strPopup = "02";
- } else if ( strChk == "4" ) {
- strPopup = "01";
- } else if ( strChk == "5" ) {
- strPopup = "31";
- } else {
- return;
- }
-
- misfOpenPopUpList(strPopup, grd_autosliplist, "", "rlacd,rlanm");
- model.refresh();
- }
- if(grd_autosliplist.col == grd_autosliplist.colRef("notefactcd1"))
- {
- /* 순서 체크 해야 함 notefactnm1*/
- misfOpenPopUpList("15", grd_autosliplist, "", "notefactcd1,notefactspec1");
- var strtmp = grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("notefactcd1")) ;
- if (strtmp != "")
- {
- grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("notefactnm1")) = "계좌번호";
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_autosliplist.isCell(event.target) && grd_autosliplist.row > 0 && grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unsldd")) != "")
- {
- model.makeValue("/root/source/slipinfo/instcd", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("instcd")));
- model.makeValue("/root/source/slipinfo/slipdt", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unsldd")));
- model.makeValue("/root/source/slipinfo/slipno", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unslno")));
-
- model.refresh();
-
- modal("SMRAD08100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delrow" class="btn2_letter3" navindex="9" style="left:1139px; top:102px; width:53px; height:19px; text-align:left; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddDelRow("D");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" navindex="8" visibility="hidden" style="left:940px; top:102px; width:53px; height:19px; text-align:left; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddDelRow("A");
- ]]>
- </script>
- </button>
- <button id="btn_autotr" class="btn4_letter2" navindex="23" style="left:1130px; top:3px; width:56px; height:22px; ">
- <caption>분개</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(deptcd == acntdept)
- {
- if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "3") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
- {
- messageBox("CTMS 출금전표는 임상연구지원 센터 권한입니다.", "I000");
- return;
- }
- }
- else
- {
- if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "1" || model.getValue(cmb_slipkind.attribute("ref")) == "2") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
- {
- messageBox("CTMS 대체, 입금 전표는 재무팀 권한입니다.", "I000");
- return;
- }
- }
-
- fAutoBookClick();
- fRetrive();
-
-
-
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/main/condition/alldate" disabled="true" visibility="hidden" overflow="visible" appearance="full" style="left:920px; top:5px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>모든 일자 자동분개</label>
- <value>A</value>
- </item>
- </choices>
- </select>
- <button id="btn_save" class="btn4_letter2" navindex="23" visibility="visible" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(deptcd == acntdept)
- {
- if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "3") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
- {
- messageBox("CTMS 출금전표는 임상연구지원 센터 권한입니다.", "I000");
- return;
- }
- }
-
- fSaveClick();
- fRetrive();
- ]]>
- </script>
- </button>
- <button id="btn_5" class="btn2_letter4" style="left:1070px; top:102px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfSaveExcel(grd_autosliplist);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|