123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZSA20800" position="absolute 0 0 1195 766" titletext="Untitle" onload="SMZSA20800_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 475 85" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption1" text="화면코드" class="search_name" position="absolute 15 9 132 26" anchor="default"/>
- <Static id="caption4" text="화면URL" class="search_name" position="absolute 15 35 132 52" anchor="default"/>
- <Edit id="ipt_scrnurl" taborder="1" class="input_search" position="absolute 126 34 310 53" anchor="default" onkeyup="grp_sea_ipt_scrnurl_onkeyup"/>
- <Edit id="ipt_scrncd" taborder="2" class="input_search" position="absolute 126 8 310 27" anchor="default" onkeyup="grp_sea_ipt_scrncd_onkeyup"/>
- <Shape id="line1" linetype="vertical" position="absolute 395 7 401 51" anchor="default"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 412 19 468 41" anchor="default" onclick="grp_sea_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption9" text="화면목록" class="tit_2" position="absolute 0 96 111 112"/>
- <Shape id="line12" linetype="vertical" class="line_1" position="absolute 5 127 480 128"/>
- <Grid id="grd_scrnlist" taborder="2" binddataset="ds_grd_scrnlist" useinputpanel="false" position="absolute 0 115 475 761" oncelldblclick="grd_scrnlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="88"/>
- <Column size="375"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="화면코드"/>
- <Cell col="1" text="화면URL"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:scrncd"/>
- <Cell col="1" style="align:left;" text="bind:scrnurl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_delete_acntitem" taborder="3" text="삭제" class="btn2_letter2" position="absolute 1107 83 1149 102" onclick="btn_delete_acntitem_onclick"/>
- <Button id="btn_save_acntitem" taborder="4" text="저장" class="btn5" position="absolute 1152 83 1194 102" onclick="btn_save_acntitem_onclick"/>
- <Static id="caption3" text="화면제한자항목" class="tit_2" position="absolute 491 85 602 101"/>
- <Shape id="line2" linetype="vertical" class="line_1" position="absolute 491 100 1194 101"/>
- <Button id="btn_reg" taborder="5" text="등록" class="btn2_letter2" position="absolute 1062 83 1103 102" onclick="btn_reg_onclick"/>
- <Grid id="grd_denyuserlist" class="datagrid" taborder="6" binddataset="ds_grd_denyuserlist" useinputpanel="false" position="absolute 490 104 1193 761">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="138"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="177"/>
- <Column size="100"/>
- <Column size="125"/>
- <Column size="100"/>
- <Column size="125"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="화면코드"/>
- <Cell col="2" text="사용자ID"/>
- <Cell col="3" text="사용자명"/>
- <Cell col="4" text="근무지기관명"/>
- <Cell col="5" text="근무지기관코드"/>
- <Cell col="6" text="근무지명"/>
- <Cell col="7" text="근무지코드"/>
- <Cell col="8" text="제한사유"/>
- <Cell col="9" text="최초등록자"/>
- <Cell col="10" text="최초등록일시"/>
- <Cell col="11" text="최종수정자"/>
- <Cell col="12" text="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" text="bind:scrncd"/>
- <Cell col="2" text="bind:userid"/>
- <Cell col="3" text="bind:usernm"/>
- <Cell col="4" text="bind:dutplceinstnm"/>
- <Cell col="5" text="bind:dutplceinstcd"/>
- <Cell col="6" text="bind:dutplcenm"/>
- <Cell col="7" text="bind:dutplcecd"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:reason"/>
- <Cell col="9" text="bind:fstrgstrid"/>
- <Cell col="10" text="bind:fstrgstdt" mask="yyyy-mm-dd hh:nn:ss"/>
- <Cell col="11" text="bind:lastupdtrid"/>
- <Cell col="12" text="bind:lastupdtdt" mask="yyyy-mm-dd hh:nn:ss"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save_excel" taborder="8" text="엑셀저장" class="btn2" position="absolute 960 83 1024 102" onclick="btn_save_excel_onclick"/>
- <Button id="button1" taborder="9" text="엑셀입력" class="btn2" position="absolute 893 83 957 102" onclick="button1_onclick"/>
- <Static id="caption6" text="화면제한자관리" class="tit_1" position="absolute 0 0 122 25"/>
- <Static id="caption11" text="화면코드" class="cell_1" position="absolute 490 47 554 66"/>
- <Edit id="opt_scrncd" taborder="10" readonly="true" position="absolute 557 47 654 66"/>
- <Static id="caption2" text="화면 URL" class="cell_1" position="absolute 660 47 795 66"/>
- <Edit id="opt_scrnurl" taborder="11" readonly="true" position="absolute 798 47 1192 66"/>
- <Static id="caption12" text="선택 화면" class="tit_2" position="absolute 490 27 659 44"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_scrnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrncd" type="STRING"/>
- <Column id="scrnurl" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_denyuserlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrncd" type="STRING"/>
- <Column id="userid" type="STRING"/>
- <Column id="usernm" type="STRING"/>
- <Column id="dutplceinstnm" type="STRING"/>
- <Column id="dutplceinstcd" type="STRING"/>
- <Column id="dutplcenm" type="STRING"/>
- <Column id="dutplcecd" type="STRING"/>
- <Column id="reason" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="lastupdtrid" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_Z0005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="scrnkind" type="STRING" size="256" sumtext="화면구분"/>
- <Column id="scrncd" type="STRING" size="256" sumtext="화면코드"/>
- <Column id="scrnurl" type="STRING" size="256" sumtext="화면url"/>
- <Column id="awtyn" type="STRING" size="256" sumtext="awt가능여부"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_scrncd" propid="value" datasetid="ds_send" columnid="scrncd"/>
- <BindItem id="item1" compid="grp_sea.ipt_scrnurl" propid="value" datasetid="ds_send" columnid="scrnurl"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-31
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-31 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function SMZSA20800_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- fInitComcd();
- fInitialize();
- grdf_setRowTypeIcon(grd_denyuserlist, 0);
- }
- function fInitComcd() {
- //공통코드조회
- appf_getCodeList([ {dsNm: "ds_Z0007", cdGrpId: "Z0007"} ]);
- }
- 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");
-
- ds_send.clearData();
- ds_send.addRow();
- ds_send.setColumn(0, "scrnkind", "xrw");
- }
- function grp_sea_ipt_scrncd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- ds_send.setColumn(0, "scrncd", obj.text);
- fbtnSearch();
- }
-
- }
- function grp_sea_ipt_scrnurl_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- //ipt_scrnurl.value = ipt_scrnurl.currentText;
- ds_send.setColumn(0, "scrnurl", obj.text);
- fbtnSearch();
- }
- }
- function fbtnSearch()
- {
- var oParam = {};
- oParam.id = "TRZSA20501";
- oParam.service = "authinfoapp.AuthInfo";
- oParam.method = "reqGetScrnList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_scrnlist=scrnlist";
- oParam.async = false;
- oParam.callback = "cf_TRZSA20501";
- tranf_submit(oParam);
- grd_scrnlist.row=1;
- }
- function cf_TRZSA20501(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fbtnSearch();
- }
- function grd_scrnlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
-
- opt_scrncd.value = ds_grd_scrnlist.getColumn(e.row, "scrncd");
- opt_scrnurl.value = ds_grd_scrnlist.getColumn(e.row, "scrnurl");
-
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [ {col: "scrncd", val: opt_scrncd.value} ]);
-
- var oParam = {};
- oParam.id = "TRZSA20800";
- oParam.service = "authinfoapp.AuthInfo";
- oParam.method = "reqGetScrnDenyUserList";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_grd_denyuserlist=userlist";
- oParam.async = false;
- oParam.callback = "cf_TRZSA20800";
- tranf_submit(oParam);
-
- grd_denyuserlist.row=1;
- }
- function cf_TRZSA20800(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_grd_denyuserlist.rowcount > 0)
- {
- sysf_messageBox("해당 메뉴전체가 삭제된 후에 메뉴엑셀입력이 ", "I006");
- return;
- }
- var result = grdf_ImportExcel("ds_grd_denyuserlist", 2, grd_denyuserlist); // 타이틀 제외한 2열부터 입력
-
- var scrncd = opt_scrncd.value;
- if (result != false)
- {
- for (i=0; i<grd_denyuserlist.rowcount; i++)
- {
- ds_grd_denyuserlist.setColumn(i, "scrncd", scrncd);
- }
- }
- }
- function btn_save_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var excelFileName = "사용자그룹";
- grdf_exportExcel(grd_denyuserlist, excelFileName, "화면제한자항목", false, "", "user", true );
- }
- function btn_reg_onclick(obj:Button, e:ClickEventInfo)
- {
- if(opt_scrncd.value == ""){
- alert("화면제한자을 선택하십시요!");
- } else {
- var iProperties = frmf_modal("SPZSU10103", "SPZSU10103", null, null, null, 200, 200);
- if(iProperties != "" && iProperties != undefined){
-
- var iNodesetCount = iProperties.rowcount;
-
- for(var i = 0; i < iNodesetCount; i++){
-
- ds_grd_denyuserlist.addRow();
- iRow = grd_denyuserlist.currentrow;
- ds_grd_denyuserlist.setColumn(iRow, "scrncd", opt_scrncd.value);
- ds_grd_denyuserlist.setColumn(iRow, "userid", iProperties.getColumn(i, "userid"));
- ds_grd_denyuserlist.setColumn(iRow, "usernm", iProperties.getColumn(i, "usernm"));
-
- ds_grd_denyuserlist.setColumn(iRow, "dutplceinstnm", iProperties.getColumn(i, "dutplceinstnm"));
- ds_grd_denyuserlist.setColumn(iRow, "dutplceinstcd", iProperties.getColumn(i, "dutplceinstcd"));
- ds_grd_denyuserlist.setColumn(iRow, "dutplcenm", iProperties.getColumn(i, "dutplcenm"));
- ds_grd_denyuserlist.setColumn(iRow, "dutplcecd", iProperties.getColumn(i, "dutplcecd"));
- }
- // var iStatus = grd_denyuserlist.rowstatus(iRow);
- //
- // if(iStatus=="0"){
- // grd_denyuserlist.rowstatus(iRow) = "2";
- // }
-
- } else {
- sysf_messageBox("데이터를 저장", "E001");
- }
- }
- }
- function btn_delete_acntitem_onclick(obj:Button, e:ClickEventInfo)
- {
- var rtn = sysf_messageBox(" 해당 화면제한자항목을 ", "Q001");
- if(rtn == 6){
- fClicked("delete", grd_denyuserlist, "denyuserlist");
- }
- }
- function fClicked(control, grid, param){
- if ("save" == control){
- fSaveClick(grid, param);
- } else if ("delete" == control){
- fDeleteClick(grid, param);
- }else {
- sysf_messageBox("처리를 수행","E002");
- }
- }
- function fSaveClick(grid, param){
- if("denyuserlist" == param){
-
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [ {col: "scrncd", val: opt_scrncd.value} ]);
-
- var oParam = {};
- oParam.id = "TXZSA20201";
- oParam.service = "authinfoapp.AuthInfo";
- oParam.method = "reqExeSaveScrnDenyUserList";
- oParam.inds = "req="+sInDsName+" denyuserlist=ds_grd_denyuserlist:U";
- oParam.outds = "null";
- oParam.async = false;
- oParam.callback = "cf_TXZSA20201";
- tranf_submit(oParam);
- }
- }
- function cf_TXZSA20201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fDeleteClick(grid, param){
- if(param == "denyuserlist"){
- var arrPostion = new Array();
- arrPostion[0] = ds_grd_denyuserlist.rowposition;
- grdf_setStatus(grd_denyuserlist, "D", arrPostion);
-
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [ {col: "scrncd", val: opt_scrncd.value} ]);
-
- var oParam = {};
- oParam.id = "TXZSA20201";
- oParam.service = "authinfoapp.AuthInfo";
- oParam.method = "reqExeSaveScrnDenyUserList";
- oParam.inds = "req="+sInDsName+" denyuserlist=ds_grd_denyuserlist:U";
- oParam.outds = "null";
- oParam.async = false;
- oParam.callback = "cf_TXZSA20201_2";
- tranf_submit(oParam);
- }
- }
- function cf_TXZSA20201_2(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- var jRow = ds_grd_denyuserlist.rowposition;
- ds_grd_denyuserlist.deleteRow(jRow);
- }
- function btn_save_acntitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fClicked("save", grd_denyuserlist, "denyuserlist");
- }
- ]]></Script>
- </Form>
- </FDL>
|