123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <scrnlist/>
- </list>
- <list_user>
- <userlist/>
- </list_user>
- </main>
- <send>
- <scrncd/>
- <scrnurl/>
- <scrnkind/>
- <denyuserlist/>
- <scrncd_temp/>
- <scrnurl_temp/>
- </send>
- <hide>
- <acntgruplist/>
- </hide>
- <init>
- <searchitem/>
- <flag>
- <lable>화면제한자명</lable>
- <value>acntgrupnm</value>
- </flag>
- <flag>
- <lable>화면제한자코드</lable>
- <value>acntgrupcd</value>
- </flag>
- <comcd/>
- </init>
- <agmenu>
- <label>화면제한자수정</label>
- <func>setacntgrup</func>
- </agmenu>
- <agmenu>
- <label>화면제한자삭제</label>
- <func>delacntgrup</func>
- </agmenu>
- <temp>_OneS_DD</temp>
- <hidden>
- <comcd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitComcd();
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- <submission id="TRZSA20501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list">
- <script type="javascript" ev:event="xforms-submit-error">
- <![CDATA[
-
- ]]>
- </script>
- </submission>
- <submission id="TRZSA20800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_user"/>
- <submission id="TXZSA20800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list_user"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면조회
- * @return :
- * @---------------------------------------------------
- */
- function fbtnSearch()
- {
- submit("TRZSA20501");
- //grd_scrnlist.select(1, 3)=true;
- grd_scrnlist.row=1;
- }
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공통코드 초기화
- * @return :
- * @---------------------------------------------------
- */
- function fInitComcd() {
- zbcfGetCodeList( new Array("Z0005"), new Array("/root/init/comcd"));
- //fInsertInstance("Z0005", "전체", "-");
- }
-
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list_user/userlist");
- model.resetInstanceNode("/root/temp/list");
- model.removeNodeset("/root/hide/usergruplist");
-
- model.removeNodeset("/root/main/list/scrnlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/scrnkind", "xrw");
-
- //grd_acntitemlist.colhidden(6)=true;
- //grd_acntgruplist.colDisabled(2)=true;
-
- //combo1.select(0);
- //cmc_scrncd.select(0);
-
- model.refresh();
-
- }
-
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- model.reset();
- } else if ("save" == control){
- fSaveClick(grid, param);
- } else if ("delete" == control){
- fDeleteClick(grid, param);
- }else {
- messageBox("처리를 수행","E002");
- }
- model.refresh();
- }
-
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- // window.setPopupMenu(true, "/root/menu/menu", "Label", "func", true);
- // window.showPopupMenu(true);
- grid.explorerbar = "sortshow";
- model.removeNodeset("/root/main/list_grup/acntgruplist");
- grid.rebuild();
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem", ipt_search_item.text);
- model.setValue("/root/send/flag", combo1.value);
- submit("TRZSA20200");
- }
-
- /*
- 저장 버튼 클릭시 사는 함수입니다.
- 사용자코드, 사용자명, 비밀번호, 적용시작일자, 적용종료일자는 필수 항목 입니다.
- 필수항목 모두 입력시 /root/main/item 노드를 send 노드로 복사합니다.
- submit을 날립니다.
- */
- function fSaveClick(grid, param){
- if("denyuserlist" == param){
- // alert("화면제한자항목을 저장합니다.");
- model.setValue("/root/send/denyuserlist", grid.getUpdateData());
- if ( submit("TXZSA20800") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
- }
-
- // model.copyNode("/root/send/item", "/root/hide/item");
-
- // submit("TXZSU10101");
- }
-
- function fDeleteClick(grid, param){
- if(param == "denyuserlist"){
- grid.addStatus(grid.row,"delete");
- model.setValue("/root/send/denyuserlist", grid.getUpdateData());
- if ( submit("TXZSA20800") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- //var jRow = grid.row;
- //grid.deleteItem(jRow);
- }
- }
- }
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- // alert(model.elementName("/root/main/item"));
- }
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
-
- function fSetRowValue(node, destinationelement, sourceelement, row) {
- model.setValue(node + "[" + row + "]/" + destinationelement, sourceelement);
- }
-
- function fCheckItem(iRow){
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- if(event.description == "delacntgrup")
- {
- btn_delete_acntgrup.dispatch("DOMActivate");
- }
-
- if(event.description == "setacntgrup")
- {
- var iRow = grd_acntgruplist.row;
-
- setParameter("SPZSA20201_", "");
- modal("SPZSA20201_사용자그룹변경", "", "200", "200", "SPZSA20201","/root/main/list_grup/acntgruplist["+iRow+"]/acntgrupcd", "/root/send/acntgrupcd");
-
- var iProperties = getParameter("SPZSA20201_");
-
- if(iProperties.length > 0 && iProperties != undefined){
- model.setValue("/root/main/list_grup/acntgruplist[" + iRow + "]/acntgrupnm", iProperties);
- //grd_acntgruplist.addStatus(iRow, "update");
- } else {
- messageBox("데이터를 저장", "E001");
- }
- }
-
- ]]>
- </script>
- <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">화면제한자관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:5px; top:10px; width:475px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:475px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">화면코드</caption>
- <line id="line1" style="x1:398px; y1:7px; x2:398px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:412px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbtnSearch();
- ]]>
- </script>
- </button>
- <input id="ipt_scrnurl" ref="/root/send/scrnurl" class="input_search" imemode="hangul" style="left:126px; top:34px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_scrnurl.value = ipt_scrnurl.currentText;
- fbtnSearch();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_scrncd" ref="/root/send/scrncd" class="input_search" imemode="hangul" style="left:126px; top:8px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_scrncd.value = ipt_scrncd.currentText;
- fbtnSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="search_name" style="left:15px; top:35px; width:117px; height:17px; ">화면URL</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:88px; width:111px; height:14px; vertical-align:middle; ">화면목록</caption>
- <line id="line12" class="line_1" style="x1:5px; y1:103px; x2:480px; y2:104px; "/>
- <datagrid id="grd_scrnlist" nodeset="/root/main/list/scrnlist" caption="화면코드^화면URL" colsep="^" colwidth="88, 310" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:107px; width:475px; height:630px; ">
- <col ref="scrncd"/>
- <col ref="scrnurl"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = grd_scrnlist.row;
- var iNode = "/root/main/list/scrnlist";
- opt_scrncd.value = fGetValue(iNode, iRow, "scrncd");
- opt_scrnurl.value = fGetValue(iNode, iRow, "scrnurl");
-
- submit("TRZSA20800");
- //grd_scrnlist.select(1, 3)=true;
- grd_denyuserlist.row=1;
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete_acntitem" class="btn2_letter2" style="left:1107px; top:55px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rtn = messageBox(" 해당 화면제한자항목을 ", "Q001");
- if(rtn == 6){
- fClicked("delete", grd_denyuserlist, "denyuserlist");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_acntitem" class="btn5_letter2" style="left:1152px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClicked("save", grd_denyuserlist, "denyuserlist");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:491px; top:61px; width:111px; height:13px; ">화면제한자항목</caption>
- <line id="line2" class="line_1" style="x1:491px; y1:76px; x2:1194px; y2:77px; "/>
- <button id="btn_reg" class="btn2_letter2" style="left:1062px; top:55px; width:41px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // grd_denyuserlist.addItem();
- var iRow = grd_denyuserlist.row;
- model.removeNodeset("/root/temp/list");
- clearParameter("SPZSU10103_");
-
- if(opt_scrncd.value == ""){
- model.alert("화면제한자을 선택하십시요!");
- } else {
- // modal("../../userdeptinfoweb/xrw/SPZSU10101", "", "200", "200", "SPZSU10101");
- //
- // var iProperties = getParameter("SPZSU10101_");
- // modal("../../userdeptinfoweb/xrw/SPZSU10103", "", "200", "200", "SPZSU10103","/root/temp","/root/main/temp");
- modal("../../userdeptinfoweb/xrw/SPZSU10103", "", "200", "200", "SPZSU10103");
-
- var iProperties = getParameter("SPZSU10103_");
- // alert(iProperties);
-
- // var iRow = grd_menuitemlist.row;
-
- if(iProperties.length > 0 && iProperties != "" && iProperties != undefined){
-
- var iNode = "/root/main/list_user/userlist";
- // var iNode = "/root/main/list_item";
- setCSVToNode("/root/temp", iProperties);
-
- // model.copyNode(iNode, "/root/main/list_item");
-
- var iNodesetCount = getNodesetCount("/root/temp/list");
-
- for(var i = 1; i <= iNodesetCount; i++){
- grd_denyuserlist.addItem();
- iRow = grd_denyuserlist.row;
- // alert(model.getValue("/root/temp/list["+i+"]/userid"));
- fSetRowValue(iNode, "scrncd", opt_scrncd.value, iRow);
- fSetRowValue(iNode, "userid", model.getValue("/root/temp/list["+i+"]/userid"), iRow);
- fSetRowValue(iNode, "usernm", model.getValue("/root/temp/list["+i+"]/usernm"), iRow);
-
- fSetRowValue(iNode, "dutplceinstnm", model.getValue("/root/temp/list["+i+"]/dutplceinstnm"), iRow);
- fSetRowValue(iNode, "dutplceinstcd", model.getValue("/root/temp/list["+i+"]/dutplceinstcd"), iRow);
- fSetRowValue(iNode, "dutplcenm", model.getValue("/root/temp/list["+i+"]/dutplcenm"), iRow);
- fSetRowValue(iNode, "dutplcecd", model.getValue("/root/temp/list["+i+"]/dutplcecd"), iRow);
- }
-
- // fSetRowValue(iNode, "acntgrupnm", opt_scrnurl.value, iRow);
- // fSetRowValue(iNode, "acntgrupcd", opt_scrncd.value, iRow);
- // fSetRowValue(iNode, "userid", iSplit_Value[0], iRow);
- // fSetRowValue(iNode, "usernm", iSplit_Value[1], iRow);
- // fSetRowValue(iNode, "dutplceinstcd", iSplit_Value[6], iRow);
- // fSetRowValue(iNode, "dutplceinstnm", iSplit_Value[7], iRow);
- // fSetRowValue(iNode, "dutplcecd", iSplit_Value[8], iRow);
- // fSetRowValue(iNode, "dutplcenm", iSplit_Value[9], iRow);
-
- var iStatus = grd_denyuserlist.rowstatus(iRow);
-
- if(iStatus=="0"){
- grd_denyuserlist.rowstatus(iRow) = "2";
- }
-
-
- } else {
- messageBox("데이터를 저장", "E001");
- // grd_denyuserlist.removeItem();
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_denyuserlist" nodeset="/root/main/list_user/userlist" class="datagrid" caption="화면코드^사용자ID^사용자명^근무지기관명^근무지기관코드^근무지명^근무지코드^제한사유^최초등록자^최초등록일시^최종수정자^최종수정일시" colwidth="100, 100, 100, 138, 112, 150, 100, 177, 100, 125, 100, 125" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:490px; top:80px; width:703px; height:657px; ">
- <col ref="scrncd" visibility="hidden"/>
- <col ref="userid"/>
- <col ref="usernm"/>
- <col ref="dutplceinstnm"/>
- <col ref="dutplceinstcd" visibility="hidden"/>
- <col ref="dutplcenm"/>
- <col ref="dutplcecd"/>
- <col ref="reason" type="input"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- </datagrid>
- <group id="group4" style="left:491px; top:10px; width:702px; height:45px; vertical-align:top; ">
- <caption id="caption11" class="cell_1" style="left:0px; top:20px; width:60px; height:19px; ">화면코드</caption>
- <output id="opt_scrncd" ref="/root/send/scrncd_temp" class="output_fix" style="left:63px; top:20px; width:97px; height:19px; "/>
- <output id="opt_scrnurl" ref="/root/send/scrnurl_temp" class="output_fix" style="left:301px; top:20px; width:394px; height:19px; "/>
- <caption id="caption12" class="tit_2" style="left:0px; top:0px; width:169px; height:14px; ">선택 화면</caption>
- <caption id="caption2" class="cell_1" style="left:163px; top:20px; width:135px; height:19px; ">화면 URL</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:15px; x2:702px; y2:15px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:42px; x2:702px; y2:42px; "/>
- </group>
- <button id="btn_save_excel" class="btn2_letter4" style="left:960px; top:55px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "사용자그룹", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_acntitemlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:893px; top:55px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "사용자그룹", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_acntitemlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|