12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811 |
- <?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>
- <acntlist>
- <orgacntlist/>
- </acntlist>
- <bugtlist>
- <orgbugtapplist/>
- </bugtlist>
- <orgbgdtlist>
- <orgbugtdetaillist/>
- </orgbgdtlist>
- <dept/>
- <exist>
- <dummy/>
- </exist>
- <acntprntlist>
- <orgacntprntlist/>
- </acntprntlist>
- </main>
- <send>
- <retrparam>
- <instcd/>
- <acntyy/>
- <deptcd/>
- <depthngnm/>
- <bugtflag>2</bugtflag>
- </retrparam>
- <retrparam2>
- <instcd/>
- <acntyy/>
- <deptcd/>
- <acntcd/>
- <bugtflag/>
- </retrparam2>
- <retrparam3>
- <instcd/>
- <acntyy/>
- <deptcd/>
- <acntcd/>
- <bugtflag/>
- <assgym/>
- </retrparam3>
- <retrparam4>
- <instcd/>
- <mngtcd>bugtdept</mngtcd>
- </retrparam4>
- <orgbugtapplist/>
- <orgbugtdetaillist/>
- <date/>
- <appcancelparams>
- <instcd/>
- <acntyy/>
- <deptcd/>
- <bugtflag/>
- <flag/>
- </appcancelparams>
- <deptcode>
- <instcd/>
- <deptcd/>
- <emplno/>
- <fromdd/>
- <todd/>
- </deptcode>
- </send>
- <init>
- <code>
- <codelist/>
- </code>
- <srchinit>
- <item/>
- </srchinit>
- </init>
- <temp/>
- <temp1>
- <authusinfo>
- <bugtinputyn/>
- <bugtreqyn/>
- <bugtsearchyn/>
- </authusinfo>
- </temp1>
- <hidden>
- <bugtaddflag>N</bugtaddflag>
- </hidden>
- <contextmenu>
- <grd_orgbugtapplist>
- <item>
- <name>행 추가</name>
- <value>fBugtAppListAddRow</value>
- </item>
- <item>
- <name>행 삭제</name>
- <value>fBugtAppListDelRow</value>
- </item>
- </grd_orgbugtapplist>
- <bugtflag>
- <item>
- <label>년간</label>
- <value>-</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- </bugtflag>
- </contextmenu>
- <target/>
- <source>
- <slipinfo/>
- </source>
- <rexprnt/>
- </root>
- </instance>
- <submission id="TRRBQ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/acntlist"/>
- <submission id="TRRBQ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam2" resultref="/root/main/bugtlist"/>
- <submission id="TRRBQ00105" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send/retrparam" replace="instance" resultref="/root/main/acntprntlist"/>
- <submission id="TXRBQ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orgbugtapplist" resultref="/root/temp"/>
- <submission id="TXRBQ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orgbugtdetaillist" resultref="/root/temp"/>
- <submission id="TRRBQ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam3" resultref="/root/main/orgbgdtlist"/>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam4" resultref="/root/init/code"/>
- <submission id="TXRBQ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/appcancelparams" resultref="/root/temp"/>
- <submission id="TRRBQ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/copytable"/>
- <submission id="TRRBQ00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" replace="instance" resultref="/root/init/srchinit"/>
- <submission id="TRRBC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcode" resultref="/root/main/dept"/>
- </model>
- <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/bugtcommonweb/js/RBC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //fCheckAuth();
- fResetForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var Instcd = getUserInfo("dutplceinstcd");
- var Deptcd = getUserInfo("dutplcecd");
- var Deptnm = getUserInfo("dutplcenm");
- var Emplno = getUserInfo("userid");
- var DeptAcnt = "";
-
- //========================================================================================
- //화면 권한 체크 -- 사용안함.
- //========================================================================================
- function fCheckAuth()
- {
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- }
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fResetForm()
- {
- grd_orgbugtlist.rowHeight(0) = 23;
- grd_orgbugtlist.rowHeight(1) = 23;
-
- if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition4') == "Y")
- {
- DeptAcnt = "Y";
- btn_acntaddrow.visible = false;
- }
- else
- {
- DeptAcnt = "N";
- btn_acntaddrow.visible = true;
- }
-
-
- model.setValue("/root/send/retrparam/instcd", Instcd);
- model.setValue("/root/send/retrparam/deptcd", Deptcd);
- model.setValue("/root/send/retrparam/depthngnm", Deptnm);
- ipt_acntyy.value = rbcfgetAppAcntyy(Instcd);
- model.setValue("/root/send/retrparam4/instcd", Instcd);
- submit("TRRAZ00001");
-
- // if(Deptcd == model.getValue("/root/init/code/codelist/cdid"))
- // {
- // ipt_deptcd.disabled = false;
- // btn_depthelp.disabled = false;
- // ipt_depthngnm.disabled = false;
- // }
-
- fauthddchck();
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fauthddchck(){
- // 2011.07.20 cyw 현재일자가 포함되는 예산신청기간 조회.
- submit("TRRBQ00106");
-
- // 2011.07.21 cyw 부서별 사용자권한 조회.
- var sToday = getCurrentDate().toString();
- model.setValue("/root/send/deptcode/todd", "99991231" );
- model.setValue("/root/send/deptcode/fromdd", sToday );
- model.setValue("/root/send/deptcode/instcd", getUserInfo("dutplceinstcd"));
- submit("TRRBC00501");
-
- // 2011.07.21 cyw 권한체크
- fauthchck();
- }
-
- //=======================================================================================
- //그리드 타이틀셋팅
- //=======================================================================================
- function fSetGridTitle(){
- var sCaption = datagrid1.caption;
- var Caption = sCaption.split("|");
- var leftCaption = Caption[0];
- var rightCaption = Caption[1];
- var arrCaption = leftCaption.split("^");
-
- sCaption="기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^";
- sCaption3="금년도^금년도^";
- // sCaption1= ipt_acntyy.value + " 년도^";
- sCaption1= model.getValue("/root/send/retrparam/acntyy") + "년도^";
-
- sCaption2= parseInt(model.getValue("/root/send/retrparam/acntyy"))-1 + "년도^";
- // sCaption2= parseInt(ipt_acntyy.value)-1 + " 년도^";
-
- sCaption = sCaption + sCaption2 + sCaption3 + sCaption1 + sCaption1 + "조정액^부서계정여부^신청|기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^예산(A)^실적(B)^집행율(B/A)^신청액(B)^증감액(B-A)^조정액^부서계정여부^신청";
- datagrid1.caption = sCaption;
- datagrid1.cellformat(0, 12) = "";
- datagrid1.cellformat(0, 13) = "";
- datagrid1.cellformat(0, 14) = "";
- datagrid1.cellformat(0, 15) = "";
- datagrid1.cellformat(0, 16) = "";
- model.refresh();
- /*
- for(var i = 0; i < arrCaption.length ; i++)
- //기관코드^회계년도^부서코드^항코드^항^목코드^목^계정과목^계정과목^예산구분^분기^금년도^금년도^금년도^차년도^차년도^차년도^차년도|기관코드^회계년도^부서코드^항코드^항^목코드^목^계정과목^계정과목^예산구분^분기^예산(A)^실적(B)^집행율(B/A)^신청액(C)^조정예산(D)^조정액(D-C)^증감액(C-A)
- {
- if(i == 13 || i == 14 || i == 15 || i == 16){
- sCaption = sCaption + ipt_acntyy.value + " 년도";
- }else{
- sCaption = sCaption + arrCaption[i];
- }
- if(i+1 != arrCaption.length){
- sCaption = sCaption + "^";
- }
- }
- */
- // grd_orgbugtlist.caption = sCaption;
- //grd_orgbugtlist.caption = sCaption + "|" + rightCaption;
- }
-
- //========================================================================================
- //부서코드 Help Open
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("11", pControl, "", pInstance);
- model.refresh();
- }
-
- //========================================================================================
- // 예산 조회 및 권한 예외 처리
- //========================================================================================
- function fRetrieve()
- {
- model.removeNodeset(grd_orgbugtlist.nodeset);
- model.removeNodeset(grd_orgbugtapplist.nodeset);
- model.removeNodeset(grd_orgbugtdetaillist.nodeset);
- model.refresh();
-
- fauthddchck();
-
- var bugtsearchyn = "";
- var bugtinputyn = "";
- var bugtreqyn = "";
- var bugtdeptcd = model.getValue("/root/init/code/codelist/cdid");
- var vAppCheck = rbcfgetAppPossibleDeptCheck(getUserInfo("dutplceinstcd"), ipt_acntyy.value, ipt_deptcd.value);
-
- var vDeptcd = model.getValue(ipt_deptcd.attribute("ref"));
-
- if(vDeptcd == Deptcd || bugtdeptcd == Deptcd)
- {
- bugtsearchyn = "Y";
- bugtinputyn = "Y";
- bugtreqyn = "Y";
-
- }
- else
- {
- bugtsearchyn = radfCheckBugtAuth(Instcd, Emplno, vDeptcd, 'BUGTSEARCHYN');
- bugtinputyn = radfCheckBugtAuth(Instcd, Emplno, vDeptcd, 'BUGTINPUTYN');
- bugtreqyn = radfCheckBugtAuth(Instcd, Emplno, vDeptcd, 'BUGTREQYN');
- }
- submit("TRRBQ00101");
- /* if(bugtsearchyn == 'Y')
- {
- btn_save.disabled = false;
- btn_app.disabled = false;
- btn_alldel.disabled = false;
- submit("TRRBQ00101");
- if(grd_orgbugtlist.valueMatrix(grd_orgbugtlist.fixedRows, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- bugtinputyn = 'N';
- }
- }else{
- btn_save.disabled = true;
- btn_app.disabled = true;
- btn_alldel.disabled = true;
- return false;
- }
-
- if(bugtinputyn == 'Y' && vAppCheck == 'Y'){
- btn_save.disabled = false;
- btn_excelupload.disabled = false;
- btn_acntaddrow.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_detailaddrow.disabled = false;
- btn_detaildelrow.disabled = false;
- }else{
- btn_save.disabled = true;
- btn_excelupload.disabled = true;
- btn_acntaddrow.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_detailaddrow.disabled = true;
- btn_detaildelrow.disabled = true;
- }
-
- if(bugtreqyn == 'Y'){
- btn_app.disabled = false;
- btn_alldel.disabled = false;
- btn_cancel.disabled = false;
- }else{
- btn_app.disabled = true;
- btn_alldel.disabled = true;
- btn_cancel.disabled = true;
- }
-
- */
-
- fSetRowColor(grd_orgbugtlist);
- fSetGridTitle();
- }
-
- function fSave()
- {
- if(grd_orgbugtapplist.rows == 1) return;
-
- for(var i=0; i<grd_orgbugtapplist.rows; i++)
- {
- if(grd_orgbugtapplist.valueMatrix(i, grd_orgbugtapplist.colRef("assgym")) == "")
- {
- messageBox("배정월에 공백을 삽입할 수", "I004");
- return;
- }
- }
-
- for(var i=1; i<grd_orgbugtdetaillist.rows; i++)
- {
- if(grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appresn")) == "")
- {
- messageBox("산출 내역에 공백을 삽입할 수", "I004");
- return;
- }
- }
-
- var updtdata_bugtapplist = getGridUpdateData(grd_orgbugtapplist);
- var updtdata_bugtdetaillist = getGridUpdateData(grd_orgbugtdetaillist);
- if(updtdata_bugtapplist == "" && updtdata_bugtdetaillist == "")
- {
- messageBox("변경된 내역이", "I004");
- return;
- }
-
- if(updtdata_bugtapplist != "")
- {
- vRowStatus = grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row);
-
- model.setValue("/root/send/orgbugtapplist", grd_orgbugtapplist.getUpdateData());
- if(submit("TXRBQ00101"))
- {
- if(vRowStatus == 4 || vRowStatus == 5 || vRowStatus == 6)
- {
- submit("TRRBQ00102");
- if(grd_orgbugtapplist.rows > 1)
- {
- grd_orgbugtapplist.row = 1;
- grd_orgbugtapplist.dispatch("onrowchanged");
- }
- }
- else
- {
- grd_orgbugtapplist.removeStatus(grd_orgbugtapplist.row, "insert");
- grd_orgbugtapplist.removeStatus(grd_orgbugtapplist.row, "update");
- }
- }else{
- return;
- }
- }
-
- model.setValue("/root/send/orgbugtdetaillist", grd_orgbugtdetaillist.getUpdateData());
- if(submit("TXRBQ00102")){
- grd_orgbugtapplist.dispatch("onrowchanged");
- }else{
- return;
- }
- //submit("TRRBQ00103");
- //fRetrieve();
-
- }
-
- function fSetGridDefaultValue()
- {
- for(var i=0; i<grd_orgbugtapplist.rows; i++)
- {
- if(grd_orgbugtapplist.rowStatus(i) == 1)
- {
- if(grd_orgbugtlist.rows > 2)
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntyy"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("deptcd"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntcd"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntnm")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntnm"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtcd")) = "01";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("projectid")) = "-";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("bugtflag"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtnm")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntnm"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("mainrec")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntnm"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("appamt")) = 0;
- if(grd_orgbugtapplist.rows > 2)
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "";
- }
- else
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "-";
- }
- }
- else if(grd_orgbugtlist.rows == 2)
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy")) = ipt_acntyy.value;
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd")) = ipt_deptcd.value;
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntnm")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtcd")) = "01";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("projectid")) = "-";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) = rdo_bugtflag.value;
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtnm")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("mainrec")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("appamt")) = 0;
- if(grd_orgbugtapplist.rows > 2)
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "";
- }
- else
- {
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "-";
- }
- }
- }
- }
-
- model.refresh();
- }
-
-
-
- function fSetRetrParams()
- {
- model.setValue("/root/send/retrparam2/acntyy", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntyy")));
- model.setValue("/root/send/retrparam2/deptcd", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("deptcd")));
- model.setValue("/root/send/retrparam2/acntcd", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntcd")));
- model.setValue("/root/send/retrparam2/bugtflag", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("bugtflag")));
- }
-
- function fShowContextMenu()
- {
- if(event.button == 3)
- {
- if(event.target == "grd_orgbugtapplist" || grd_orgbugtapplist.isCell(event.target))
- {
- window.setPopupMenu(true, "/root/contextmenu/grd_orgbugtapplist/item", "name", "value", false);
- }
- else
- {
- window.setPopupMenu(false);
- }
- }
- }
-
- //===================================
- // 배정월 중복을 체크한다.
- //===================================
- function fCheckDupData()
- {
- for(var i = grd_orgbugtapplist.fixedRows ; i < grd_orgbugtapplist.rows ; i++)
- {
- if(i == grd_orgbugtapplist.row) continue;
- if((grd_orgbugtapplist.valueMatrix(i, grd_orgbugtapplist.colRef("assgym")) == grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym"))))
- {
- messageBox("같은 예산코드에 동일 배정 [년/월]을 지정할 수", "I004");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "";
- false;
- }
- if(grd_orgbugtapplist.valueMatrix(i, grd_orgbugtapplist.colRef("assgym")) == "-" && grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) != "-")
- {
- messageBox("년간 배정이 있어 월간 배정을 할 수", "I004");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "";
- false;
- }
- if(grd_orgbugtapplist.valueMatrix(i, grd_orgbugtapplist.colRef("assgym")) != "-" && grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) == "-")
- {
- messageBox("월간 배정이 있어 년간 배정을 할 수", "I004");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "";
- false;
- }
- }
- return true;
- }
-
- function fSetOrgAmt()
- {
- var iSumOrgAmt = 0;
-
- for(var i=1; i<grd_orgbugtapplist.rows; i++)
- {
- iSumOrgAmt += parseInt(grd_orgbugtapplist.valueMatrix(i, grd_orgbugtapplist.colRef("appamt")), 10);
- }
- grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("nextappamt")) = iSumOrgAmt;
- grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("nextupdownamt"))
- = parseInt(iSumOrgAmt, 10) - parseInt(grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("curorgbugtamt")), 10);
- }
- function fSetDetailListOrgAmnt()
- {
- var iSumOrgAmt = 0;
- for(var i=1; i<grd_orgbugtdetaillist.rows; i++)
- {
- if(grd_orgbugtdetaillist.rowStatus(i) != 4 && grd_orgbugtdetaillist.rowStatus(i) != 5 && grd_orgbugtdetaillist.rowStatus(i) != 6)
- {
- var sAppAmt = (grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appamt")) == "") ? 0 : grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appamt"));
- iSumOrgAmt += parseInt(sAppAmt);
- }
- }
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("appamt")) = iSumOrgAmt;
-
- if(grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 1 && grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 3)
- {
- grd_orgbugtapplist.addStatus(grd_orgbugtapplist.row, "update");
- }
- }
- function fSetOrgAmtAppCancel()
- {
- if(ipt_acntyy.value.length != 4 || (ipt_deptcd.value == "" && ipt_depthngnm.value == ""))
- {
- messageBox("회계년도 또는 부서코드가", "I004");
- return false;
- }
- var sName = document.controls(event.currentTarget).attribute("id");
- var iRet;
- var sYn;
- if(sName == "btn_app")
- {
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("이미 신청된 예산", "E008");
- return false;
- }
-
- if(rbcfgetAppPossibleCheck(getUserInfo("dutplceinstcd"), ipt_acntyy.value, 'org') == 'N')
- {
- messageBox("예산신청기간이 아닙니다. 기획팀에 문의하시기 바랍니다.", "I000");
- return false;
- }
-
- iRet = messageBox("신청한 후에는 변경이 불가능합니다. 본예산 신청 하시겠습니까", "Q999");
- }
- else if(sName == "btn_cancel")
- {
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "N")
- {
- messageBox("신청되지 않은 예산", "E008");
- return;
- }
- iRet = messageBox("본예산 신청 취소 하시겠습니까", "Q999");
- }
- if(iRet == 6)
- {
- if(sName == "btn_app")
- {
- model.setValue("/root/send/appcancelparams/flag", "orgapp");
- sYn = "Y";
- }
- else if(sName == "btn_cancel")
- {
- model.setValue("/root/send/appcancelparams/flag", "orgcancel");
- sYn = "N";
- }
-
- model.setValue("/root/send/appcancelparams/instcd", model.getValue("/root/send/retrparam/instcd"));
- model.setValue("/root/send/appcancelparams/acntyy", model.getValue("/root/send/retrparam/acntyy"));
- model.setValue("/root/send/appcancelparams/deptcd", model.getValue("/root/send/retrparam/deptcd"));
- model.setValue("/root/send/appcancelparams/bugtflag", model.getValue("/root/send/retrparam/bugtflag"));
-
- if(submit("TXRBQ00103"))
- {
- for(var i = grd_orgbugtlist.fixedRows ; i < grd_orgbugtlist.rows ; i++)
- {
- grd_orgbugtlist.valueMatrix(i, grd_orgbugtlist.colRef("orgbugtappyn")) = sYn;
- }
- }
- fRetrieve();
- }
- }
- /*function fSetGridTitle()
- {
- var sCaption = grd_orgbugtlist.caption;
- var arrCaption = sCaption.split("^");
- sCaption = "";
- for(var i=0; i<arrCaption.length; i++)
- {
- if(i == 11 || i == 12 || i == 13 || i == 14)
- {
- sCaption = sCaption + "금년도 (" + (parseInt(ipt_acntyy.value) - 1).toString() + ")";
- }
- else if(i == 15 || i== 16)
- {
- sCaption = sCaption + "차년도 (" + ipt_acntyy.value + ")";
- }
- else
- {
- sCaption = sCaption + arrCaption[i];
- }
- if(i+1 != arrCaption.length)
- {
- sCaption = sCaption + "^";
- }
-
- }
- grd_orgbugtlist.caption = sCaption;
- }*/
-
- //====================================
- // 본예산 신청내역 변동사항을 체크한다.
- //====================================
- function fOrgbugtapplistChangeCheck()
- {
- var ChangeCheck = true;
- for(var i = grd_orgbugtapplist.fixedRows ; i < grd_orgbugtapplist.rows ; i++)
- {
- if(grd_orgbugtapplist.rowStatus(i) != 0)
- {
- ChangeCheck = false;
- break;
- }
- }
- return ChangeCheck;
- }
-
- //====================================
- // 본예산 산출내역 변동사항을 체크한다.
- //====================================
- function fOrgbugtdetaillistChangeCheck()
- {
- var ChangeCheck = true;
- for(var i = grd_orgbugtdetaillist.fixedRows ; i < grd_orgbugtdetaillist.rows ; i++)
- {
- if(grd_orgbugtdetaillist.rowStatus(i) != 0)
- {
- ChangeCheck = false;
- break;
- }
- }
- return ChangeCheck;
- }
-
- //====================================
- // 행추가 시 예외처리
- //====================================
- function fCheckSave()
- {
- //if(!fOrgbugtapplistChangeCheck() || !fOrgbugtdetaillistChangeCheck())
- if(!fOrgbugtdetaillistChangeCheck())
- {
- messageBox("변경된 데이터가 있습니다. 저장이나 취소(조회) 후 작업하세요", "I000");
- return false;
- }
- return true;
- }
-
- function fSetRowColor(pGrid)
- {
- var iCnt = 0;
-
- for(var i=0; i<pGrid.rows;i++)
- {
- if(pGrid.valueMatrix(i, pGrid.colRef("acntcd")) == "99999999")
- {
- pGrid.rowStyle(i, "all", "background-color") = "#dddddd";
- }
- else
- {
- pGrid.rowStyle(i, "all", "background-color") = "#ffffff";
- }
- }
-
- pGrid.frozenBottomRows = 1;
- pGrid.backColorFrozen = "#dddddd";
- }
-
-
-
- function fprojectidcopy()
- {
- if(grd_orgbugtapplist.rows == 2)
- {
- var sProjectid = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("projectid"));
-
- for(var i = 1 ; i < grd_orgbugtdetaillist.rows ; i++)
- {
- grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("projectid")) = sProjectid;
- grd_orgbugtdetaillist.addStatus(i, "update");
- }
- }
- }
-
- function fPrint()
- {
- model.removeNodeset("/root/main/acntprntlist/orgacntprntlist");
- if( submit("TRRBQ00105") ){
- exeReportPreview("RPRBQ00100", "XMLSTR");
- model.refresh();
- }
- }
-
- // 권한 여부 확인 2011.07.21 CYW
- // 부서별 사용자권한관리 화면에 등록된 사용자만 취소, 삭제, 저장, 신청 가능함
- function fauthchck(){
-
- model.resetInstanceNode("/root/temp1/authusinfo");
-
- var usid = getUserId();
- var depcnt = getNodesetCount("/root/main/dept/deptauth");
- var idx = 0;
- for(var i = 1; i <= depcnt ; i++){
- if( usid == model.getValue("/root/main/dept/deptauth[" + i + "]/emplno") ){
- model.setValue("/root/temp1/authusinfo/bugtinputyn", model.getValue("/root/main/dept/deptauth[" + i + "]/bugtinputyn"));
- model.setValue("/root/temp1/authusinfo/bugtreqyn", model.getValue("/root/main/dept/deptauth[" + i + "]/bugtreqyn"));
- model.setValue("/root/temp1/authusinfo/bugtsearchyn", model.getValue("/root/main/dept/deptauth[" + i + "]/bugtsearchyn"));
- idx++;
- }
- }
-
- if( idx > 0 ){
- btn_cancel.disabled = false;
- btn_alldel.disabled = false;
- btn_excelupload.disabled = false;
- btn_save.disabled = false;
- btn_app.disabled = false;
- btn_search.disabled = false;
- btn_acntaddrow.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_detailaddrow.disabled = false;
- btn_detaildelrow.disabled = false;
- return true;
- }else{
- btn_cancel.disabled = true;
- btn_alldel.disabled = true;
- btn_excelupload.disabled = true;
- btn_save.disabled = true;
- btn_app.disabled = true;
- btn_search.disabled = true;
- btn_acntaddrow.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_detailaddrow.disabled = true;
- btn_detaildelrow.disabled = true;
- return false;
- }
-
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1196;" 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:230px; 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:45px; width:1195px; height:734px; ">
- <datagrid id="grd_orgbugtlist" nodeset="/root/main/acntlist/orgacntlist" caption="기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^금년도^금년도^금년도^차년도^차년도^조정액^부서계정여부^신청|기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^예산(A)^실적(B)^집행율(B/A)^신청액(C)^증감액(C-A)^조정액^부서계정여부^신청" colsep="^" colwidth="0, 0, 0, 0, 120, 0, 120, 0, 140, 0, 188, 0, 105, 105, 105, 105, 105, 0, 0, 66" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:75px; width:1195px; height:322px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="acntyy" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="supacntcd2"/>
- <col ref="supacntnm2"/>
- <col ref="supacntcd3" visibility="hidden"/>
- <col ref="supacntnm3"/>
- <col ref="supacntcd4" visibility="hidden"/>
- <col ref="supacntnm4"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="acntnm"/>
- <col ref="bugtflag" type="combo" visibility="hidden" 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>
- <item>
- <label>자본</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="curorgbugtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="curresult" format="(-)#,###" style="text-align:right; "/>
- <col ref="curexerate" format="#.#%" style="text-align:right; "/>
- <col ref="nextappamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="nextupdownamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="nextadjtamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="deptacnt"/>
- <col ref="orgbugtappyn"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- model.removeNodeset(grd_orgbugtapplist.nodeset);
- model.removeNodeset(grd_orgbugtdetaillist.nodeset);
- model.setValue("/root/send/retrparam2/instcd", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("instcd")) );
- model.setValue("/root/send/retrparam2/acntyy", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntyy")) );
- model.setValue("/root/send/retrparam2/deptcd", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("deptcd")) );
- model.setValue("/root/send/retrparam2/acntcd", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntcd")) );
- model.setValue("/root/send/retrparam2/bugtflag", grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("bugtflag")) );
-
- submit("TRRBQ00102");
-
- if( model.getValue("/root/main/acntlist/orgacntlist[1]/orgbugtappyn") == "Y" ){
- misfSetReadOnlyCol( grd_orgbugtapplist, "acntcd,acntnm,assgym", true );
- misfSetReadOnlyCol(grd_orgbugtdetaillist, "appresn,appbase,appamt", true);
- }else{
- misfSetReadOnlyCol( grd_orgbugtapplist, "acntcd,acntnm,assgym", false );
- misfSetReadOnlyCol(grd_orgbugtdetaillist, "appresn,appbase,appamt", false);
- }
-
- // for(var i = grd_orgbugtapplist.fixedRows ; i < grd_orgbugtapplist.rows ; i++)
- // {
- // misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,acntnm,assgym", true, i);
- // }
-
- if(grd_orgbugtapplist.rows > 1)
- {
- grd_orgbugtapplist.row = 1;
- grd_orgbugtapplist.dispatch("onrowchanged");
- }
-
- /* if(DeptAcnt == "Y")
- {
- var vDeptAcnt = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("deptacnt"));
- if(vDeptAcnt == "Y")
- {
- btn_addrow.disabled = false;
- }
- else
- {
- btn_addrow.disabled = true;
- }
- }
- */
- grd_orgbugtlist.dispatch("onmouseup");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:424px; x2:1195px; y2:424px; "/>
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">예산년도 :</caption>
- <caption id="caption3" class="search_name" style="left:266px; top:9px; width:107px; height:17px; ">부서 :</caption>
- <line id="line13" class="line_4" style="x1:1107; y1:5px; x2:1107; y2:27px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.07.21 cyw 권한체크
- if( model.getValue("/root/temp1/authusinfo/bugtsearchyn") !="Y" ){
- messageBox("예산조회", "E002");
- return;
- }
-
- if(ipt_deptcd.value == "")
- {
- messageBox("부서를 선택하세요", "I000");
- return;
- }
-
- if(ipt_deptcd.value == "")
- {
- messageBox("예산년도를 입력하세요", "I000");
- return;
- }
-
- fRetrieve();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/send/retrparam/deptcd" class="input_s_essential" disabled="false" navindex="2" maxlength="10" style="left:330px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_depthngnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfBugtDeptValidCheck("deptcd,depthngnm", "code");
- if(ipt_deptcd.value != "" &&ipt_depthngnm.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
-
-
- ]]>
- </script>
- </input>
- <input id="ipt_depthngnm" ref="/root/send/retrparam/depthngnm" class="input_s_essential" disabled="false" navindex="3" imemode="hangul" style="left:435px; top:8px; width:150px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- racfBugtDeptValidCheck("deptcd,depthngnm", "name");
-
- if(event.keyCode == 13)
- {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfBugtDeptValidCheck("deptcd,depthngnm", "name");
- if(ipt_deptcd.value != "" && ipt_depthngnm.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
-
-
- ]]>
- </script>
- </input>
- <button id="btn_depthelp" class="icon_search" disabled="false" style="left:414px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
- if(ipt_deptcd.value != "" &&ipt_depthngnm.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:615px; top:9px; width:87px; height:17px; ">예산구분 :</caption>
- <select1 id="rdo_bugtflag" ref="/root/send/retrparam/bugtflag" navindex="27" appearance="full" cellspacing="20" cols="4" overflow="visible" style="left:704px; top:9px; width:296px; height:20px; 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>
- <item>
- <label>자본</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button1" class="icon_next" navindex="-1" style="left:195px; top:9px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vYYYY = model.getValue(ipt_acntyy.attribute("ref"));
- var vNum = parseInt(vYYYY, 10);
-
- if (vNum != 1)
- {
- vNum++;
- }
- else
- {
- return;
- }
- model.setValue(ipt_acntyy.attribute("ref"), vNum);
- ipt_acntyy.refresh();
-
- fRetrieve();
- ]]>
- </script>
- </button>
- <input id="ipt_acntyy" ref="/root/send/retrparam/acntyy" class="input_s_essential" navindex="1" maxlength="4" style="left:125px; top:8px; width:68px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 2011.07.20 cyw 현재일자가 포함되는 예산신청기간 조회.
- model.resetInstanceNode("/root/init/srchinit/item");
- submit("TRRBQ00106");
-
- fRetrieve();
- ]]>
- </script>
- </input>
- <button id="btn_pre" class="icon_pre" navindex="-1" style="left:110px; top:9px; width:13px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vYYYY = model.getValue(ipt_acntyy.attribute("ref"));
- var vNum = parseInt(vYYYY, 10);
-
- if (vNum != 1)
- {
- vNum--;
- }
- else
- {
- return;
- }
- model.setValue(ipt_acntyy.attribute("ref"), vNum);
- ipt_acntyy.refresh();
-
- fRetrieve();
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:55px; width:117px; height:13px; ">본예산 신청현황</caption>
- <caption id="caption1" class="tit_2" style="left:5px; top:409px; width:117px; height:13px; ">본예산 신청내역</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <datagrid id="grd_orgbugtapplist" nodeset="/root/main/bugtlist/orgbugtapplist" autoresize="false" caption="기관코드^회계년도^부서^항계정코드^항^목 계정코드^목^계정과목^계정명^예산구분^배정월^신청액^적요^계산근거^원계정코드^원프로젝트ID" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 100, 230, 0, 60, 104, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:429px; width:540px; height:304px; ">
- <col ref="instcd"/>
- <col ref="acntyy"/>
- <col ref="deptcd"/>
- <col ref="supacntcd3" visibility="hidden"/>
- <col ref="supacntnm3" visibility="hidden"/>
- <col ref="supacntcd4" visibility="hidden"/>
- <col ref="supacntnm4" visibility="hidden"/>
- <col editable="false" ref="acntcd" type="inputbutton"/>
- <col ref="acntnm" style="text-align:left; "/>
- <col 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>
- <item>
- <label>자본</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="assgym" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/contextmenu/bugtflag/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="appamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="mainrec" type="input" visibility="hidden"/>
- <col ref="calcbase" type="input" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
-
- if(grd_orgbugtapplist.col == grd_orgbugtapplist.colRef("acntcd"))
- {
- misfOpenPopUpList("10", grd_orgbugtapplist, "", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", rdo_bugtflag.value, "bugtflag");
- model.refresh();
- }
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) = model.getValue(rdo_bugtflag.attribute("ref"));
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_orgbugtapplist.col == grd_orgbugtapplist.colRef("acntcd"))
- {
- var Vacntcd = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd"));
-
- for(var i = grd_orgbugtdetaillist.fixedRows ; i < grd_orgbugtdetaillist.rows ; i++)
- {
- grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("acntcd")) = Vacntcd;
- grd_orgbugtdetaillist.addStatus(i, "update");
- }
- }
- else if(grd_orgbugtapplist.col == grd_orgbugtapplist.colRef("assgym"))
- {
- fCheckDupData();
-
- var Vassgym = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym"));
-
- for(var i = grd_orgbugtdetaillist.fixedRows ; i < grd_orgbugtdetaillist.rows ; i++)
- {
- grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("assgym")) = Vassgym;
- grd_orgbugtdetaillist.addStatus(i, "update");
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_orgbugtapplist.row == 0)
- {
- grd_orgbugtlist.dispatch("onrowchanged");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- for(var i = grd_orgbugtapplist.fixedRows-1 ; i < grd_orgbugtapplist.rows ; i++)
- {
- if(grd_orgbugtapplist.rowStatus(i) != 0)
- {
- grd_orgbugtlist.dispatch("onrowchanged");
- return;
- }
- }
-
- model.removeNodeset("/root/main/orgbgdtlist/orgbugtdetaillist");
-
- model.setValue("/root/send/retrparam3/instcd", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("instcd")) );
- model.setValue("/root/send/retrparam3/acntyy", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy")) );
- model.setValue("/root/send/retrparam3/deptcd", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd")) );
- model.setValue("/root/send/retrparam3/acntcd", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) );
- model.setValue("/root/send/retrparam3/assgym", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) );
- model.setValue("/root/send/retrparam3/bugtflag", grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) );
- submit("TRRBQ00103");
- if(grd_orgbugtlist.valueMatrix(grd_orgbugtlist.fixedRows, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- misfSetReadOnlyCol(grd_orgbugtdetaillist, "appresn,appbase,appamt", true);
- }
- else
- {
- misfSetReadOnlyCol(grd_orgbugtdetaillist, "appresn,appbase,appamt", false);
- }
- grd_orgbugtapplist.dispatch("onmouseup");
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_orgbugtlist);
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:431px; top:404px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_orgbugtlist.row >= grd_orgbugtlist.fixedRows)
- {
- if(grd_orgbugtapplist.rows == grd_orgbugtapplist.fixedRows + 1)
- {
- if(grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.fixedRows, grd_orgbugtapplist.colRef("assgym")) == "-")
- {
- messageBox("년간 배정이 있어 추가 배정이 불가능 합니다.", "I000");
- return false;
- }
- }
-
- if(grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntcd")) == "99999999") return;
-
- if(grd_orgbugtlist.valueMatrix(grd_orgbugtlist.fixedRows, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("신청된 예산이므로 추가 또는 삭제를 할 수", "I004");
- return;
- }
-
- if(!fCheckSave()) return false;
-
- model.removeNodeset(grd_orgbugtdetaillist.nodeset);
- misfGridIUD(grd_orgbugtapplist, "A");
- misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,acntnm,assgym", false, grd_orgbugtapplist.row);
-
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("instcd")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("instcd"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntyy"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("deptcd"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntcd"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntnm")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntnm"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("bugtflag"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("mainrec")) = grd_orgbugtlist.valueMatrix(grd_orgbugtlist.row, grd_orgbugtlist.colRef("acntnm"));
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("appamt")) = 0;
- if(grd_orgbugtapplist.rows == grd_orgbugtapplist.fixedRows + 1) grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "-";
- model.refresh();
- // fSetGridDefaultValue();
- if(grd_orgbugtapplist.rows == grd_orgbugtapplist.fixedRows + 1)
- {
- btn_detailaddrow.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:486px; top:404px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("신청된 예산이므로 추가 또는 삭제를 할 수", "I004");
- return;
- }
-
- for(var i = 1 ; i < grd_orgbugtapplist.rows ; i++)
- {
- grd_orgbugtapplist.select(i, grd_orgbugtapplist.colRef("acntcd"), i, grd_orgbugtapplist.colRef("mainrec")) = false;
- }
- var iRowStatus = grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row);
-
- if (iRowStatus == 4 || iRowStatus == 5 || iRowStatus == 6) //delete
- {
- grd_orgbugtapplist.removeStatus(grd_orgbugtapplist.row, "delete");
-
- for(var i=1; i<grd_orgbugtdetaillist.rows; i++)
- {
- grd_orgbugtdetaillist.removeStatus(i, "delete");
- }
- }
- else if(iRowStatus == 1 || iRowStatus == 3) //insert
- {
- grd_orgbugtapplist.deleteRow(grd_orgbugtapplist.row, false);
- grd_orgbugtlist.dispatch("onrowchanged");
- }
- else if(iRowStatus == 0 || iRowStatus == 2) //update
- {
- grd_orgbugtapplist.addStatus(grd_orgbugtapplist.row,"delete");
-
- for(var i=1; i<grd_orgbugtdetaillist.rows; i++)
- {
- grd_orgbugtdetaillist.addStatus(i, "delete");
- }
- }
- fSetOrgAmt();
- ]]>
- </script>
- </button>
- <datagrid id="grd_orgbugtdetaillist" nodeset="/root/main/orgbgdtlist/orgbugtdetaillist" autoresize="true" caption="기관코드^회계년도^부서^계정과목^예산구분^배정월^적요^산출근거^신청액^조정산출내역^조정산출근거^조정액" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 240, 250, 110, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:545px; top:429px; width:650px; height:304px; ">
- <col ref="instcd"/>
- <col ref="acntyy"/>
- <col ref="deptcd"/>
- <col ref="acntcd"/>
- <col ref="bugtflag" style="text-align:center; "/>
- <col ref="assgym" style="text-align:center; "/>
- <col ref="appresn" type="input"/>
- <col ref="appbase" type="input" style="text-align:left; "/>r
- <col ref="appamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="adjtresn" visibility="hidden"/>
- <col ref="adjtbase" visibility="hidden"/>
- <col ref="adjtamt" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_orgbugtdetaillist.col == grd_orgbugtdetaillist.colRef("appresn"))
- {
- for(var i=0; i<grd_orgbugtdetaillist.rows; i++)
- {
- if(i == grd_orgbugtdetaillist.row) continue;
-
- if(grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appresn")) == grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appresn")))
- {
- messageBox("신청 내역이 있습니다. 신청 내역을 수정하세요.", "I999");
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appresn")) = "";
- return;
- }
- }
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("adjtresn")) = grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appresn"));
- }
- else if(grd_orgbugtdetaillist.col == grd_orgbugtdetaillist.colRef("appamt"))
- {
- if(grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appamt")) == ""){grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appamt")) = "0"}
- fSetDetailListOrgAmnt();
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("adjtamt")) = grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appamt"));
- }
- else if(grd_orgbugtdetaillist.col == grd_orgbugtdetaillist.colRef("appbase"))
- {
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("adjtbase")) = grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appbase"));
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:541px; y1:427px; x2:541px; y2:732px; "/>
- <button id="btn_detaildelrow" class="btn2_letter3" style="left:1140px; top:404px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("신청된 예산이므로 추가 또는 삭제를 할 수", "I004");
- return;
- }
-
- misfGridIUD(grd_orgbugtdetaillist, "D");
-
- fSetDetailListOrgAmnt();
- var iCnt = 0;
- for(var i=1; i<grd_orgbugtdetaillist.rows; i++)
- {
- if(grd_orgbugtdetaillist.rowStatus(i) == 4 || grd_orgbugtdetaillist.rowStatus(i) == 5 || grd_orgbugtdetaillist.rowStatus(i) == 6)
- {
- iCnt ++ ;
- }
- }
- if(grd_orgbugtdetaillist.rows - grd_orgbugtdetaillist.fixedRows == iCnt)
- {
- if(grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 1 && grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 3)
- {
- grd_orgbugtapplist.addStatus(grd_orgbugtapplist.row, "delete");
- }
- else
- {
- if(grd_orgbugtapplist.rows > 2)
- {
- misfGridIUD(grd_orgbugtapplist, "D");
- }
- }
- }
- else
- {
- if(grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 1 && grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) != 3)
- {
- grd_orgbugtapplist.rowStatus(grd_orgbugtapplist.row) = 2;
- }
- }
- if(grd_orgbugtdetaillist.rows > 1)
- {
- misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,assgym", false, grd_orgbugtapplist.row);
- }
- ]]>
- </script>
- </button>
- <button id="btn_detailaddrow" class="btn2_letter3" style="left:1085px; top:404px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_orgbugtapplist.rows > 1 && grd_orgbugtapplist.row > 0)
- {
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("신청된 예산이므로 추가를 할 수", "I004");
- return;
- }
- if(grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) == "")
- {
- messageBox("본예산 신청할 계정을 선택하세요", "I999");
- return;
- }
-
- if(grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) == "")
- {
- messageBox("배정월을 ", "C002");
- return;
- }
-
- misfGridIUD(grd_orgbugtdetaillist, "A");
-
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("instcd")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("instcd"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("acntyy")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("deptcd")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("acntcd")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("assgym")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("bugtflag")) = grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag"));
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appamt")) = 0;
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("adjtamt")) = 0;
-
- grd_orgbugtdetaillist.row = grd_orgbugtdetaillist.rows - 1;
- grd_orgbugtdetaillist.col = grd_orgbugtdetaillist.colRef("appresn");
- grd_orgbugtdetaillist.editCell();
- // if(grd_orgbugtdetaillist.rows > 1)
- // {
- // misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,assgym", true, grd_orgbugtapplist.row);
- // }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_acntaddrow" class="btn2_letter4" style="left:360px; top:404px; width:64px; height:19px; ">
- <caption>항목추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_orgbugtlist.valueMatrix(2, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("신청된 예산이므로 추가 또는 삭제를 할 수", "I004");
- return;
- }
-
- model.removeNodeset(grd_orgbugtapplist.nodeset);
- model.removeNodeset(grd_orgbugtdetaillist.nodeset);
- model.refresh();
- misfGridIUD(grd_orgbugtapplist, "A");
-
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("instcd")) = model.getValue("/root/send/retrparam/instcd");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntyy")) = model.getValue("/root/send/retrparam/acntyy");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("deptcd")) = model.getValue("/root/send/retrparam/deptcd");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntcd")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("acntnm")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("bugtflag")) = model.getValue("/root/send/retrparam/bugtflag");
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("assgym")) = "-";
-
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("appamt")) = 0;
-
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("mainrec")) = "";
- grd_orgbugtapplist.valueMatrix(grd_orgbugtapplist.row, grd_orgbugtapplist.colRef("calcbase")) = "";
-
- grd_orgbugtapplist.col = grd_orgbugtapplist.colRef("acntcd");
- grd_orgbugtapplist.dispatch("onbuttonclick");
-
- model.setValue("/root/hidden/bugtaddflag", "Y");
-
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:548px; top:409px; width:119px; height:13px; ">본예산 산출내역</caption>
- <button id="button2" class="btn2_letter5" style="left:1006px; top:49px; width:75px; height:19px; ">
- <caption>데이터복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( messageBox("본예산데이터를 복사 합니다.", "Q003") != 6 ) return ;
- if(submit("TRRBQ00104")){
- messageBox("복사되었습니다.", "I999");
- }
- /*for(var i = 1; i <= datagrid1.rows; i++){
- datagrid1.valueMatrix(i, datagrid1.colRef("status")) = "i"
- datagrid1.rowStatus(i) = 1;
- }
- for(var i = 1; i <= datagrid2.rows; i++){
- datagrid2.valueMatrix(i, datagrid2.colRef("status2")) = "i"
- datagrid2.rowStatus(i) = 1;
- }
- submit("TXRBQ00604");*/
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:1083px; top:49px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.06.24 cyw 출력기능추가
- fPrint();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/acntlist/orgacntlist" caption="기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^금년도^금년도^금년도^차년도^차년도^조정액^부서계정여부^신청|기관코드^회계년도^부서코드^관^관^항^항^목^목^계정과목^계정과목^예산구분^예산(A)^실적(B)^집행율(B/A)^신청액(B)^증감액(B-A)^조정액^부서계정여부^신청" colsep="^" colwidth="0, 0, 0, 65, 100, 65, 100, 65, 120, 65, 160, 0, 105, 105, 105, 120, 120, 0, 0, 66" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:322px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="acntyy" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="supacntcd2" style="text-align:center; vertical-align:top; padding-top:3; "/>
- <col ref="supacntnm2" style="vertical-align:top; padding-top:3; "/>
- <col ref="supacntcd3" style="text-align:center; vertical-align:top; padding-top:3; "/>
- <col ref="supacntnm3" style="vertical-align:top; padding-top:3; "/>
- <col ref="supacntcd4" style="text-align:center; vertical-align:top; padding-top:3; "/>
- <col ref="supacntnm4" style="vertical-align:top; padding-top:3; "/>
- <col ref="acntcd" style="text-align:center; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="bugtflag" type="combo" visibility="hidden" 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>
- <item>
- <label>자본</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="curorgbugtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="curresult" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="curexerate" visibility="hidden" format="#.#%" style="text-align:right; "/>
- <col ref="nextappamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="nextupdownamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="nextadjtamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
- <col ref="deptacnt"/>
- <col ref="orgbugtappyn"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- grd_orgbugtlist.row = datagrid1.row;
- grd_orgbugtlist.dispatch("onrowchanged");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1075px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 2011.07.21 cyw 권한체크
- if( model.getValue("/root/temp1/authusinfo/bugtinputyn") !="Y" ){
- messageBox("예산저장", "E002");
- return;
- }
-
- for(var i=0; i<grd_orgbugtdetaillist.rows; i++)
- {
- if( grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appresn")) == "" ||grd_orgbugtdetaillist.rows == grd_orgbugtdetaillist.fixedRows)
- {
- messageBox("산출내역은 ", "I003");
- return;
- }
- }
- fSave();
- if( model.getValue("/root/main/acntlist/orgacntlist[1]/orgbugtappyn") == "Y" ){
- misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,acntnm,assgym", true);
- }else{
- misfSetReadOnlyCol(grd_orgbugtapplist, "acntcd,acntnm,assgym", false);
- }
-
- fSetOrgAmt();
- if(model.getValue("/root/hidden/bugtaddflag") == "Y")
- {
- btn_search.dispatch("DOMActivate");
- model.setValue("/root/hidden/bugtaddflag", "N");
- }
- //grd_orgbugtlist.gridToInstance();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:26px; x2:1194px; y2:26px; "/>
- <button id="btn_app" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
- <caption>신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.07.21 cyw 권한체크
- if( model.getValue("/root/temp1/authusinfo/bugtreqyn") !="Y" ){
- messageBox("예산신청", "E002");
- return;
- }
-
- var offerrcnt = getNodesetCount("/root/init/srchinit/item");
- var idx = 0;
- if( offerrcnt < 1 ){
- messageBox("본예산 신청기간이 아닙니다. 신청기간 데이터를 확인해주십시오." ,"E000");
- return;
- }
-
- for(var i = 1 ; i <= offerrcnt ; i++ ){
- if( model.getValue("/root/send/retrparam/acntyy") == model.getValue("/root/init/srchinit/item[" + i + "]/acntyy") ){
- idx++;
- }
- }
-
- if( idx > 0 ){
- fSetOrgAmtAppCancel();
- }else{
- messageBox("본예산 신청기간이 아닙니다. 신청기간 데이터를 확인해주십시오." ,"E000");
- return;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excelupload" class="btn4_letter4" visibility="visible" style="left:990px; top:3px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/source/slipinfo/acntyy", model.getValue(ipt_acntyy.attribute("ref")));
- model.makeValue("/root/source/slipinfo/deptcd", model.getValue(ipt_deptcd.attribute("ref")));
- model.makeValue("/root/source/slipinfo/depthngnm", model.getValue(ipt_depthngnm.attribute("ref")));
- model.makeValue("/root/source/slipinfo/workflag", "1");
-
- modal("SMRBQ00500","","","","","/root/source", "/root/target");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter4" visibility="hidden" style="left:820px; top:3px; width:80px; height:22px; ">
- <caption>신청취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.07.21 cyw 권한체크
- if( model.getValue("/root/temp1/authusinfo/bugtreqyn") !="Y" ){
- messageBox("신청을 취소할", "E002");
- return;
- }
-
- fSetOrgAmtAppCancel();
- ]]>
- </script>
- </button>
- <button id="btn_alldel" class="btn4_letter4" visibility="visible" style="left:905px; top:3px; width:80px; height:22px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2011.07.22 cyw 권한체크
- if( model.getValue("/root/temp1/authusinfo/bugtsearchyn") !="Y" && model.getValue("/root/temp1/authusinfo/bugtreqyn") !="Y" ){
- messageBox("전체삭제", "E002");
- return;
- }
-
- if(grd_orgbugtlist.valueMatrix(1, grd_orgbugtlist.colRef("orgbugtappyn")) == "Y")
- {
- messageBox("이미 신청된 예산", "E008");
- return;
- }
-
- if (messageBox("본예산 [" + rdo_bugtflag.label + "] 전체 내역을", "Q001") == "6")
- {
- submit("TXRBQ00303");
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
-
- fShowContextMenu();
-
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|