123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?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>예산 편성 과목 추가 HELP</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <orgbgdtlist>
- <orgbugtdetaillist/>
- </orgbgdtlist>
- <exist>
- <rbemorgn/>
- <rbehupdt/>
- <rbphexec/>
- <radhunsl/>
- <radhapsl/>
- </exist>
- </main>
- <send>
- <sendlist>
- <orgbugtdetaillist>
- </orgbugtdetaillist>
- <param>
- <instcd/>
- <assgym/>
- <appflag>orgapp</appflag>
- <bugtflag/>
- <supacntcd3/>
- <supacntnm3/>
- <supacntcd4/>
- <supacntnm4/>
- <deptcd/>
- <deptnm/>
- <acntcd/>
- <acntnm/>
- <projectid/>
- <projectnm/>
- <date/>
- <bugtcd>01</bugtcd>
- <acntyy/>
- </param>
- </sendlist>
- </send>
- <init>
- <assgymset/>
- </init>
- <temp>
- </temp>
- <target>
- <acntyy/>
- </target>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- rdo_bugtflag.select(0);
- finit();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function finit()
- {
-
- model.setValue("/root/send/sendlist/param/instcd", getUserInfo("dutplceinstcd"));
- fSetAssgym();
- //cmb_assgym.disabled = true;
-
- model.setValue("/root/send/sendlist/param/acntyy", model.getValue("/root/target/acntyy"));
-
- grd_orgbugtdetaillist.focusColor = "#ccffff";
- grd_orgbugtdetaillist.selectionmode = "free";
- model.removenode("/root/main/orgbgdtlist/orgbugtdetaillist");
-
- if(getUserInfo("dutplceinstcd") != '103')
- {
- ipt_projectid.disabled = true;
- btn_projectid.disabled = true;
- ipt_projectnm.disabled = true;
- }
- model.refresh();
-
-
-
- }
- //==============================================================
- // 배정년월 setting
- //==============================================================
- function fSetAssgym()
- {
- model.makeNode("/root/init/assgymset[1]/label");
- model.setValue("/root/init/assgymset[1]/label", "년중");
- model.makeNode("/root/init/assgymset[1]/value");
- model.setValue("/root/init/assgymset[1]/value", "-");
-
- for(i = 2 ; i <= 13 ; i++)
- {
- model.makeNode("/root/init/assgymset[" + i + "]/label");
- model.setValue("/root/init/assgymset[" + i + "]/label", i -1+ "월" );
- model.makeNode("/root/init/assgymset[" + i + "]/value");
- model.setValue("/root/init/assgymset[" + i + "]/value", i -1 );
- }
- cmb_assgym.refresh();
- cmb_assgym.select(0);
- }
-
-
- //==============================================================
- // 읽기전용 컬럼 세팅
- //==============================================================
- function fSetReadOnly()
- {
- for( i = grd_orgbugtdetaillist.fixedRows ; i <= grd_orgbugtdetaillist.rows ; i++ )
- {
- grd_orgbugtdetaillist.isReadOnly(i, grd_orgbugtdetaillist.colRef("appamt")) = true;
- }
- }
- //==============================================================
- // 저장 체크
- //==============================================================
- function fSaveCheck()
- {
- if(model.getValue("/root/send/sendlist/param/deptcd") == "") { messageBox("부서코드",""); return false; }
- if(model.getValue("/root/send/sendlist/param/acntcd") == "") { messageBox("계정코드",""); return false; }
- if(grd_orgbugtdetaillist.rows == grd_orgbugtdetaillist.fixedRows) { messageBox("산출내역",""); return false; }
- else
- {
- for(var i = grd_orgbugtdetaillist.fixedRows ; i < grd_orgbugtdetaillist.rows ; i++)
- {
- if(grd_orgbugtdetaillist.valueMatrix(i, grd_orgbugtdetaillist.colRef("appresn")) == "") { messageBox("적요",""); return false; }
- }
- }
- return true;
- }
-
-
- //==============================================================
- // 신규 입력
- //==============================================================
- function fNewInsertion()
- {
- model.removenode("/root/send/sendlist/param/deptcd");
- model.removenode("/root/send/sendlist/param/deptnm");
- model.removenode("/root/send/sendlist/param/acntcd");
- model.removenode("/root/send/sendlist/param/acntnm");
- model.removenode("/root/send/sendlist/param/projectid");
- model.removenode("/root/send/sendlist/param/projectnm");
- model.removenode("/root/send/sendlist/orgbugtdetaillist");
- model.makeNode("/root/send/sendlist/param/deptcd");
- model.makeNode("/root/send/sendlist/param/deptnm");
- model.makeNode("/root/send/sendlist/param/acntcd");
- model.makeNode("/root/send/sendlist/param/acntnm");
- model.makeNode("/root/send/sendlist/param/projectid");
- model.makeNode("/root/send/sendlist/param/projectnm");
- model.makeNode("/root/send/sendlist/orgbugtdetaillist");
- cmb_assgym.select(0);
- model.refresh();
-
- }
-
- //==============================================================
- // 그리드 중복 체크
- //==============================================================
- function fCheckDetailListDupData()
- {
- var iInsCnt = 0;
- var iDupCnt = 0;
- var bDel = false;
-
- 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;
- }
- }
- }
-
- //========================================================================================
- //각종 코드 Help Open
- //========================================================================================
- function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
- {
- misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
- model.refresh();
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
- model.refresh();
-
- if (pNextIndex != "") {
- model.setFocus(pNextIndex);
- }
- }
- }
-
- function fSave()
- {
- submit("TRRBC01100");
- if(model.getValue("/root/main/exist/rbemorgn") > 0)
- {
- messageBox("이미 존재하는 계정입니다. 확인하세요","I000"); return;
- }
- submit("TXRBC01100");
- }
-
- //========================================================================================
- //산출내역 중복체크
- //========================================================================================
- function fCheckDetailListDupData()
- {
- var iInsCnt = 0;
- var iDupCnt = 0;
- var bDel = false;
-
- 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;
- }
- }
- }
- ]]>
- </script>
- <submission id="TXRBC01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/temp"/>
- <submission id="TRRBC01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="600" pageheight="500" guideline="2,-5;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:550px; height:445px; ">
- <group id="group2" style="left:0px; top:0px; width:550px; height:5px; "/>
- <line id="line13" class="line_4" style="x1:515px; y1:0px; x2:515px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <group id="group4" style="left:0px; top:0px; width:550px; height:60px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:550px; height:60px; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:6px; width:86px; height:17px; ">예산년도 :</caption>
- <input id="ipt_acntyy" ref="/root/send/sendlist/param/acntyy" class="input_s_essential" navindex="1" editable="false" maxlength="4" format="yyyy" style="left:100px; top:5px; width:110px; height:19px; text-align:center; "/>
- </group>
- <button id="btn_save" class="btn4_letter2" style="left:489px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/send/sendlist/orgbugtdetaillist");
- model.makeNode("/root/send/sendlist/orgbugtdetaillist");
-
- model.setValue("/root/send/sendlist/orgbugtdetaillist",grd_orgbugtdetaillist.getUpdateData());
-
- if(fSaveCheck() == true)
- {
- fSave();
- }
- ]]>
- </script>
- </button>
- <button id="btn_acptacnthelp" class="icon_search" style="left:183px; top:100px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("10", ipt_acntcd, "", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", rdo_bugtflag.value, "bugtflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption21" class="cell_1" visibility="hidden" style="left:205px; top:123px; width:90px; height:23px; vertical-align:middle; ">프로젝트ID</caption>
- <button id="btn_acptdepthelp" class="icon_search" style="left:184px; top:75px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("47", ipt_deptcd, "deptcd,deptnm", "", "ipt_acntyy", "acntyy");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptnm" ref="/root/send/sendlist/param/deptnm" class="input_default" visibility="13" style="left:202px; top:74px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fValidationCheck("47", "deptcd,deptnm", "", "", "ipt_acntyy", "acntyy");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("47", "deptcd,deptnm", "", "", "ipt_acntyy", "acntyy");
- ]]>
- </script>
- </input>
- <input id="ipt_projectid" ref="/root/send/sendlist/param/projectid" class="input_default" navindex="14" visibility="hidden" editable="true" style="left:297px; top:125px; width:23px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13)
- {
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
- model.setFocus("ipt_acptacntnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "code");
-
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/sendlist/param/deptcd" class="input_default" navindex="12" visibility="visible" style="left:102px; top:74px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fValidationCheck("47", "deptcd,deptnm", "", "", "ipt_acntyy", "acntyy");
- model.setFocus("ipt_deptnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("47", "deptcd,deptnm", "", "", "ipt_acntyy", "acntyy");
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell_1" style="left:10px; top:73px; width:90px; height:23px; vertical-align:middle; ">부서</caption>
- <input id="ipt_acntnm" ref="/root/send/sendlist/param/acntnm" class="input_default" navindex="15" style="left:202px; top:99px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fValidationCheck("10", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", "", "", "ipt_bugtflag", "bugtflag");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("10", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", "", "", "ipt_bugtflag", "bugtflag");
-
- ]]>
- </script>
- </input>
- <input id="ipt_acntcd" ref="/root/send/sendlist/param/acntcd" class="input_default" navindex="14" visibility="visible" style="left:102px; top:100px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fValidationCheck("10", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", "", "", "ipt_bugtflag", "bugtflag");
- model.setFocus("ipt_acptacntnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("10", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm", "", "", "ipt_bugtflag", "bugtflag");
-
- ]]>
- </script>
- </input>
- <caption id="caption19" class="cell_1" style="left:10px; top:98px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
- <datagrid id="grd_orgbugtdetaillist" nodeset="/root/main/orgbgdtlist/orgbugtdetaillist" autoresize="true" caption="적요^산출근거^신청액" colsep="^" colwidth="144, 259, 114" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:11px; top:170px; width:539px; height:273px; ">
- <col ref="appresn" type="input"/>
- <col ref="appbase" type="input" style="text-align:left; "/>
- <col ref="appamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(grd_orgbugtdetaillist.col == grd_orgbugtdetaillist.colRef("appresn"))
- {
- fCheckDetailListDupData();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_detaildelrow" class="btn2_letter3" style="left:490px; top:149px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_orgbugtdetaillist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:13px; top:154px; width:119px; height:13px; ">본예산 산출내역</caption>
- <button id="btn_detailaddrow" class="btn2_letter3" style="left:435px; top:149px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_orgbugtdetaillist, "A");
- fSetReadOnly();
- grd_orgbugtdetaillist.valueMatrix(grd_orgbugtdetaillist.row, grd_orgbugtdetaillist.colRef("appamt")) = 0;
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_bugtflag" ref="/root/send/sendlist/param/bugtflag" navindex="27" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:100px; top:34px; width:250px; 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>
- </select1>
- <caption id="caption5" class="search_name" style="left:11px; top:34px; width:87px; height:17px; ">예산구분 :</caption>
- <button id="btn_projectid" class="icon_search" visibility="hidden" style="left:325px; top:125px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("23", ipt_projectid, "", "projectid,projectnm", "", "", "", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_projectnm" ref="/root/send/sendlist/param/projectnm" class="input_default" navindex="15" visibility="hidden" style="left:345px; top:125px; width:25px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
- model.refresh();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("23", "projectid,projectnm", "", "", "", "", "name");
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_assgym" ref="/root/send/sendlist/param/assgym" class="combo_essential" navindex="4" appearance="minimal" style="left:102px; top:125px; width:78px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/assgymset">
- <label ref="/label"/>
- <value ref="/value"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_del" class="btn2_letter2" visibility="hidden" style="left:450px; top:74px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="btn_new" class="btn2_letter2" style="left:497px; top:74px; width:42px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fNewInsertion();
- ]]>
- </script>
- </button>
- <select1 id="rdo_appflag" ref="/root/send/sendlist/param/appflag" navindex="27" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="2" style="left:310px; top:6px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>본예산</label>
- <value>orgapp</value>
- </item>
- <item>
- <label>추경예산</label>
- <value>revapp</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_appflag" class="search_name" visibility="hidden" style="left:221px; top:6px; width:87px; height:17px; ">신청구분 :</caption>
- <button id="btn_check" class="btn2_letter2" visibility="hidden" style="left:450px; top:99px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <input id="ipt_bugtflag" ref="/root/send/bugtflag" class="input_default" visibility="hidden" style="left:495px; top:35px; width:25px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:10px; top:123px; width:90px; height:23px; vertical-align:middle; ">배정월</caption>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:445px; width:550px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:490px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:5px; x2:518px; y2:5px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|