123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bugtexecaprv>
- <selchk/>
- <instcd/>
- <unsldd/>
- <unslno/>
- <unslseqno/>
- <bugtmngtdeptcd/>
- <bugtmngtdeptnm/>
- <acntcd/>
- <acntnm/>
- <amt/>
- <bugtbal/>
- <etcnotefact/>
- <bugtaprvyn/>
- <jobflag/>
- <slipyn/>
- </bugtexecaprv>
- </main>
- <send>
- <bugtexecaprv/>
- </send>
- <hidden>
- <condition>
- <slipfr/>
- <slipto/>
- <bugtaprvyn>N</bugtaprvyn>
- <acntcd/>
- <acntnm/>
- <instcd/>
- <bugtaprvdd/>
- </condition>
- <slipyn>Y</slipyn>
- </hidden>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRBP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/main/bugtexecaprv"/>
- <submission id="TXRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bugtexecaprv" resultref="/root/main/bugtexecaprv"/>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //화면 권한 체크
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize() {
- var sToday = getCurrentDate().toString();
-
- model.removenode("/root/main/bugtexecaprv");
- model.refresh();
-
- model.setValue("/root/hidden/condition/slipfr", sToday);
- model.setValue("/root/hidden/condition/slipto", sToday);
- model.setValue("/root/hidden/condition/instcd", getUserInfo("dutplceinstcd"));
- model.refresh();
- }
-
- //========================================================================================
- //각종 코드 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)
- {
- 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);
- model.refresh();
-
- model.setFocus(pNextIndex);
- }
- }
-
- //========================================================================================
- //저장 click
- //========================================================================================
- function fSaveClick() {
- var updtdata = getGridUpdateData(grd_bugtexec);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- model.setValue("/root/send/bugtexecaprv",grd_bugtexec.getUpdateData());
- if (submit("TXRAD00103")) {
- model.setValue("/root/send/bugtexecaprv","");
-
- submit("TRRBP00301");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:40; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:11px; width:86px; height:17px; ">전표일자 :</caption>
- <caption id="caption10" class="search_name" style="left:343px; top:11px; width:86px; height:17px; ">승인구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRBP00301");
- ]]>
- </script>
- </button>
- <caption id="caption12" class="search_name" style="left:607px; top:11px; width:88px; height:17px; ">계정과목 :</caption>
- <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" style="left:207px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="ipt_slipfr" ref="/root/hidden/condition/slipfr" class="input_s_essential" inputtype="date" style="left:100px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_slipto" ref="/root/hidden/condition/slipto" class="input_s_essential" inputtype="date" style="left:225px; top:10px; width:100px; height:19px; "/>
- <select1 id="rdo_bugtaprvyn" ref="/root/hidden/condition/bugtaprvyn" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:433px; top:10px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>승인</label>
- <value>Y</value>
- </item>
- <item>
- <label>미승인</label>
- <value>N</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_acntcd" ref="/root/hidden/condition/acntcd" class="input_s_essential" navindex="2" style="left:700px; top:10px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn", "slipyn");
- ]]>
- </script>
- </input>
- <button id="btn_acntcd" class="icon_search" style="left:805px; top:13px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn", "slipyn");
- ]]>
- </script>
- </button>
- <input id="ipt_acntnm" ref="/root/hidden/condition/acntnm" class="input_s_essential" navindex="3" style="left:825px; top:10px; width:240px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn", "slipyn");
- ]]>
- </script>
- </input>
- <input id="ipt_slipyn" ref="/root/hidden/slipyn" class="input_s_essential" navindex="-1" visibility="hidden" style="left:1075px; top:10px; width:25px; height:19px; "/>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:118px; height:13px; ">예산신청 목록</caption>
- <input id="btn_bugtaprvdd" ref="/root/hidden/condition/bugtaprvdd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:860px; top:55px; width:100px; height:19px; "/>
- <datagrid id="grd_bugtexec" nodeset="/root/main/bugtexecaprv" caption="선택^기관코드^미결전표정보^미결전표정보^미결전표정보^관리부서코드^관리부서^계정코드^계정과목^신청금액^가용액^적요^예산승인여부^승인구분^전표승인여부" colsep="^" colwidth="39, 0, 80, 45, 32, 0, 176, 0, 161, 100, 100, 330, 85, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:85px; width:1195px; height:654px; ">
- <col checkvalue="Y,N" ref="selchk" type="checkbox"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="unsldd" format="yyyy-mm-dd"/>
- <col ref="unslno"/>
- <col ref="unslseqno"/>
- <col ref="bugtmngtdeptcd"/>
- <col ref="bugtmngtdeptnm"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="amt" format="(-)#,###" style="text-align:right; "/>
- <col ref="bugtbal" format="(-)#,###" style="text-align:right; "/>
- <col ref="etcnotefact"/>
- <col ref="bugtaprvyn" style="text-align:center; "/>
- <col ref="jobflag"/>
- <col ref="slipyn"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_bugtexec.row;
- if (grd_bugtexec.col == 1 && model.getValue("/root/main/bugtexecaprv["+cur_row+"]/slipyn") == "Y") {
- messageBox("회계 승인된 전표이므로 작업이 불가합니다.\n재무팀 승인취소 후 작업하세요.","I000");
- model.setValue("/root/main/bugtexecaprv["+cur_row+"]/selchk","N");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_allsel" class="btn2_letter4" style="left:1062px; top:60px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i;
-
- for (i=1; i<grd_bugtexec.rows; i++) {
- model.setValue("/root/main/bugtexecaprv["+i+"]/selchk","Y");
- grd_bugtexec.addStatus(i,"update");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_allunsel" class="btn2_letter4" style="left:1128px; top:60px; width:68px; height:19px; ">
- <caption>선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var i;
-
- for (i=1; i<grd_bugtexec.rows; i++) {
- model.setValue("/root/main/bugtexecaprv["+i+"]/selchk","N");
- grd_bugtexec.addStatus(i,"update");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iFindrow = grd_bugtexec.findRow("Y",1,1);
- if (iFindrow == -1) {
- messageBox("작업할 항목을 선택하세요.","I000");
- return;
- }
-
- fSaveClick();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|