123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>예산관리부서</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <dept>
- <deptlist>
- </deptlist>
- </dept>
- <gent>
- <gentdeptlist>
- </gentdeptlist>
- </gent>
- </main>
- <send>
- <condition>
- <deptcd/>
- <depthngnm/>
- <instcd/>
- </condition>
- <gentdeptlist/>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRBC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/dept/deptlist"/>
- <submission id="TXRAD00351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gentdeptlist" resultref="/root/temp"/>
- <submission id="TRRAD00351" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/gent/gentdeptlist"/>
- </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/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // fCheckAuth();
- fOpenForm();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_grdadd.disabled = !checkAuth("X");
- btn_grddel.disabled = !checkAuth("X");
- btn_prt.disabled = !checkAuth("P");
- }
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm() {
-
- misfComboComCdList("Z0007", cmb_instcd, "N");
- model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
-
- btn_search.dispatch("DOMActivate");
- }
-
- //========================================================================================
- //부서코드 조회
- //========================================================================================
- function fGetDeptList()
- {
- //기존 데이터 삭제
- model.removeNodeset("/root/main/dept/deptlist");
- model.refresh();
- submit("TRRBC00201");
- }
-
- //========================================================================================
- //예산관리부서 조회
- //========================================================================================
- function fGetGentMngtList()
- {
- model.removeNodeset(grd_gentdeptlist.nodeset);
- model.refresh();
- submit("TRRAD00351");
- }
-
- //========================================================================================
- // 저장버튼 클릭시 저장 수행 함수
- //========================================================================================
- function fClickSaveBtn()
- {
- if(!fIsValidForSave())//저장전 유효성 검사
- return;
-
- model.setValue("/root/send/gentdeptlist", grd_gentdeptlist.getUpdateData());
-
- submit("TXRAD00351");
-
- btn_search.dispatch("DOMActivate");
-
- }
-
- //========================================================================================
- //저장전 유효성 검사
- //========================================================================================
- function fIsValidForSave()
- {
- var sGentList = getGridUpdateData(grd_gentdeptlist);
- if(sGentList == "")
- {
- messageBox("변경된 데이터가","I004");
- return false;
- }
- else if(sGentList != "" )
- {
- return true;
- }
-
- }
-
- //========================================================================================
- //그리드 행 추가
- //========================================================================================
- function fAddGrid(pGrid)
- {
- var dept_row = grd_deptlist.row;
- if ( dept_row > 0 ) {
-
- var sInstCd = grd_deptlist.valueMatrix(dept_row, grd_deptlist.colRef("instcd"));
- var sDeptCd = grd_deptlist.valueMatrix(dept_row, grd_deptlist.colRef("deptcd"));
- var sDeptNm = grd_deptlist.valueMatrix(dept_row, grd_deptlist.colRef("depthngnm"));
- for(i = pGrid.fixedRows ; i < pGrid.rows; i++)
- {
- if(pGrid.valueMatrix(i, pGrid.colRef("deptcd")) == sDeptCd)
- {
- messageBox("이미 등록된 부서 ","E008");
- return;
- }
- }
-
- pGrid.addRow();
-
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/instcd", sInstCd);
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/deptcd", sDeptCd);
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/depthngnm", sDeptNm);
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/fromdd", "19000101");
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/todd", "99991231");
- model.setValue(pGrid.nodeset + "["+ pGrid.row + "]/gentmngtyn", "Y");
- pGrid.editCell();
- model.refresh();
- pGrid.col = grd_deptlist.colRef("depthngnm");
- }else {
- messageBox("부서목록을 선택하지 ","E007");
- }
- }
-
- //========================================================================================
- //그리드 행 삭제
- //========================================================================================
- function fDelGrid(pGrid)
- {
- var cur_row = pGrid.row;
- if(cur_row > -1)
- {
- deleteSelectedRows(pGrid, true); //true : 바로삭제, false : 상태만 삭제로 변경
- model.refresh();
- }
- else if(cur_row == -1)
- {
- messageBox("삭제하려는 행을", "C002");
- }
- }
-
- //========================================================================================
- //부서코드 Help Open
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance) {
- //02 부서코드Helper
- misfOpenPopUpList("02", pControl, "", pInstance);
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,471;" 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:40px; width:1195px; height:744px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:471; y2:70px; "/>
- <caption id="caption9" class="tit_2" style="left:5px; top:55px; width:117px; height:14px; ">부서목록</caption>
- <group id="grp_sea" style="left:0px; top:10px; width:1194; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:35; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line3" class="line_4" style="x1:1108; y1:8px; x2:1108; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="search_name" style="left:11px; top:9px; width:74px; height:17px; ">부 서 :</caption>
- <input id="ipt_deptcd" ref="/root/send/condition/deptcd" class="input_s_essential" navindex="3" style="left:85px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("deptcd,depthngnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <input id="ipt_depthngnm" ref="/root/send/condition/depthngnm" class="input_s_essential" navindex="3" style="left:190px; top:8px; width:180px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfDeptValidCheck("deptcd,depthngnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDeptList();
- fGetGentMngtList();
- ]]>
- </script>
- </button>
- <button id="btn_help" class="icon_search" style="left:170px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_s_essential" navindex="1" visibility="hidden" appearance="minimal" style="left:489px; top:8px; width:175px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:400px; top:9px; width:86px; height:17px; ">기 관 :</caption>
- </group>
- <button id="button2" class="btn2_letter2" style="left:1040px; top:50px; width:42px; height:19px; text-align:left; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfSaveExcel(grd_excelload);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:476px; y1:70px; x2:1194; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:481px; top:55px; width:131px; height:13px; ">반제관리부서 목록</caption>
- <datagrid id="grd_deptlist" nodeset="/root/main/dept/deptlist" caption="기관코드^부서코드^부서명" colsep="^" colwidth="0, 100, 279" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:471px; height:663px; ">
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fAddGrid(grd_gentdeptlist);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_gentdeptlist" nodeset="/root/main/gent/gentdeptlist" caption="기관코드^부서코드^부서명^시작일자*^종료일자*^사용여부^출력순서" colsep="^" colwidth="0, 80, 330, 35, 35, 110, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:476px; top:75px; width:717px; height:663px; ">
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="depthngnm"/>
- <col ref="fromdd" type="inputdate" visibility="hidden"/>
- <col ref="todd" type="inputdate" visibility="hidden"/>
- <col checkvalue="Y,N" ref="gentmngtyn" type="checkbox"/>
- <col ref="prntseq" type="input"/>
- </datagrid>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1084px; top:50px; width:58px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddGrid(grd_gentdeptlist);
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelGrid(grd_gentdeptlist);
- //misfGridIUD(grd_gentdeptlist, "D");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickSaveBtn();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <caption id="caption1" style="left:60px; top:5px; width:1075px; height:20px; font-weight:bold; color:#ff0000; ">주의 : 반제관리 부서에 저장된 부서가 없을 경우 모든부서의 부채가 관리되며 하나이상의 부서가 저장되어 있을 시 저장되어 있는 부서의 부채만 관리됨 [부서관리를 정확히 해야함]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|