123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <?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>
- <deptauth/>
- </dept>
- </main>
- <send>
- <deptcode>
- <instcd/>
- <deptcd/>
- <depthngnm/>
- <emplno/>
- <emplnm/>
- <fromdd/>
- <todd>99991231</todd>
- </deptcode>
- <deptauthlist>
- <deptauth/>
- </deptauthlist>
- </send>
- <init/>
- <hidden/>
- <source>
- <defaultvalue/>
- </source>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fResetForm();
-
- // misfMsterDetailSet(grd_deptauth, null, "TRRBC00501", "Y");
-
- // misfMsterDetailRetrieve();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fResetForm()
- {
- model.removenode("/root/main/dept");
-
- var sToday = getCurrentDate().toString();
- model.setValue(ipt_fromdd.attribute("ref"), sToday);
-
- model.setValue("/root/send/deptcode/instcd", getUserInfo("dutplceinstcd"));
-
- btn_search.dispatch("DOMActivate");
-
- 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);
- }
- }
- }
-
- //========================================================================================
- //부서코드 Help Open
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("11", pControl, "TRRBC00501", pInstance);
- model.refresh();
- }
-
- function fOpenPopupUserHelp(pCtrl, pInstance)
- {
- misfOpenPopUpList("01", pCtrl, "", pInstance);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRRBC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptcode" resultref="/root/main/dept"/>
- <submission id="TXRBC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptauthlist" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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; ">
- <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:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:85px; height:17px; ">부 서 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_deptcd" ref="/root/send/deptcode/deptcd" class="input_s_essential" navindex="2" style="left:104px; top:8px; width:76px; 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[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <input id="ipt_depthngnm" ref="/root/send/deptcode/depthngnm" class="input_s_essential" navindex="3" style="left:205px; top:8px; width:140px; 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[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/dept/deptauth");
- model.refresh();
- submit("TRRBC00501");
-
- misfSetReadOnlyCol(grd_deptauth, "deptcd,depthngnm,emplno", true);
-
- //misfMsterDetailRetrieve();
-
- // misfSetReadOnlyCol(grd_deptauth, "deptcd");
- // misfSetReadOnlyCol(grd_deptauth, "emplno");
- ]]>
- </script>
- </button>
- <button id="btn_help" class="icon_search" style="left:184px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:365px; top:10px; width:91px; height:17px; ">관 리 자 :</caption>
- <input id="ipt_name" ref="/root/send/deptcode/emplnm" class="input_s_essential" navindex="2" style="left:553px; top:9px; width:140px; 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("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:534px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupUserHelp(ipt_emplno, "emplno,emplnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/deptcode/emplno" class="input_s_essential" navindex="1" maxlength="8" style="left:455px; top:9px; width:76px; height:19px; text-align:center; ">
- <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("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/send/deptcode/fromdd" class="input_s_essential" inputtype="date" style="left:816px; top:9px; width:94px; height:19px; "/>
- <caption id="caption19" class="search_name" style="left:725px; top:10px; width:101px; height:17px; ">유효일자 :</caption>
- <input id="ipt_todd" ref="/root/send/deptcode/todd" class="input_s_essential" inputtype="date" style="left:930px; top:10px; width:94px; height:19px; "/>
- <caption id="caption38" style="left:915px; top:11px; width:15px; height:20px; ">~</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:55px; width:117px; height:13px; ">사용자 권한</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- <datagrid id="grd_deptauth" nodeset="/root/main/dept/deptauth" caption="기관코드^전체^관리부서^관리부서^사원번호^성명^근무부서^직책^전표 예산^부서 선택^예산 입력^예산 신청^예산 조회^종료일자" colsep="^" colwidth="0, 60, 85, 120, 100, 100, 120, 90, 90, 90, 90, 90, 90, 100" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="free" style="left:0px; top:75px; width:1194px; height:665px; ">
- <col ref="instcd"/>
- <col checkvalue="Y,N" ref="alldept" type="checkbox"/>
- <col class="text_center" ref="deptcd" type="inputbutton"/>
- <col ref="depthngnm" type="input"/>
- <col class="text_center" ref="emplno" type="inputbutton"/>
- <col class="text_center" ref="emplnm"/>
- <col ref="duplcedeptnm"/>
- <col ref="jobrespnm"/>
- <col checkvalue="Y,N" ref="slipsearchyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="selectdeptyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="bugtinputyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="bugtreqyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="bugtsearchyn" type="checkbox"/>
- <col class="text_center" ref="todd" type="inputdate" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_deptauth.col == grd_deptauth.colRef("deptcd"))
- {
- fOpenPopupDeptHelp(grd_deptauth, "deptcd,depthngnm");
- }
- else if(grd_deptauth.col == grd_deptauth.colRef("emplno"))
- {
- fOpenPopupUserHelp(grd_deptauth, "emplno,emplnm");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- if(grd_deptauth.col == grd_deptauth.colRef("deptcd") || grd_deptauth.col == grd_deptauth.colRef("depthngnm"))
- {
- misfValidationCheck("02", "", "deptcd,depthngnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_deptauth.col == grd_deptauth.colRef("alldept") && grd_deptauth.isCell(event.target))
- {
- if(grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("alldept")) == "Y")
- {
- grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("deptcd")) = "";
- grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("depthngnm")) = "";
-
- grd_deptauth.isReadOnly(grd_deptauth.row, grd_deptauth.colRef("deptcd")) = true;
- grd_deptauth.isReadOnly(grd_deptauth.row, grd_deptauth.colRef("depthngnm")) = true;
- }
- else
- {
- grd_deptauth.isReadOnly(grd_deptauth.row, grd_deptauth.colRef("deptcd")) = false;
- grd_deptauth.isReadOnly(grd_deptauth.row, grd_deptauth.colRef("depthngnm")) = false;
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1015px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_deptauth);
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1084px; top:50px; width:58px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_deptauth, "A");
- grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("todd")) = "99991231";
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_deptauth, "D");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line1" 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[
-
- if(getGridUpdateData(grd_deptauth) == "")
- {
- messageBox("변경된 데이터가","I004");
- }
- else
- {
- for(var i = grd_deptauth.fixedRows ; i < grd_deptauth.rows ; i++)
- {
-
- if(grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("alldept")) != "Y")
- {
- if(grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("deptcd")) == "")
- {
- messageBox("부서를 입력하세요!","I000");
- return false;
- }
-
- if(grd_deptauth.valueMatrix(grd_deptauth.row, grd_deptauth.colRef("emplno")) == "")
- {
- messageBox("사번을 입력하세요!","I000");
- return false;
- }
- }
-
- }
- //alert("저장");
- //alert(grd_deptauth.getUpdateData());
- model.setValue("/root/send/deptauthlist/deptauth", grd_deptauth.getUpdateData());
- submit("TXRBC00501");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|