123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF01300" position="absolute 0 0 1197 785" titletext="New Form" onload="SMLLF01300_onload" oninit="SMLLF01300_oninit">
- <Layouts>
- <Layout>
- <Div position="absolute 0 40 1195 784" id="group3" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout width="1195" height="744">
- <Static text="권한목록" position="absolute 1 55 76 73" id="caption1" class="tit_2" anchor="default"/>
- <Static text="권한목록" position="absolute 594 55 669 72" id="caption3" class="tit_2" anchor="default"/>
- <Div position="absolute 0 10 1195 45" id="group1" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Button position="absolute 1129 6 1185 28" id="button3" class="btn1" text="조회" anchor="top right" onclick="group3_group1_button3_onclick"/>
- <Static text="사용자 :" position="absolute 15 9 105 26" id="caption2" class="search_name" anchor="left top"/>
- <Combo position="absolute 112 8 262 27" id="usernm" innerdataset="@ds_init_lb0909" datacolumn="nm" codecolumn="cd" anchor="left top" onitemchanged="group3_group1_usernm_onitemchanged"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1114 6 1120 28" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 447 49 500 68" id="button1" class="btn2" text="행삭제" anchor="default" onclick="group3_button1_onclick"/>
- <Button position="absolute 535 380 561 399" id="button102" class="icon_left" text="" anchor="default" onclick="group3_button102_onclick"/>
- <Grid position="absolute 0 75 500 744" id="ufunlist" binddataset="ds_ufunlist" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="160"/>
- </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="기능설명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:funtgrupcd"/>
- <Cell col="2" text="bind:funtseqno"/>
- <Cell col="3" text="bind:funtgrupdesc"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 594 75 1194 744" id="funtlist" binddataset="ds_funtlist" anchor="default" autofittype="col" scrollbars="autovert" oncellclick="group3_funtlist_oncellclick" selectbandtype="default" selecttype="row" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="226"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="기능그룹"/>
- <Cell col="3" text="기능ID"/>
- <Cell col="4" text="기능설명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
- <Cell col="2" text="bind:funtgrupcd"/>
- <Cell col="3" text="bind:funtseqno"/>
- <Cell col="4" text="bind:funtgrupdesc"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 40" id="group4" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 1126 3 1194 25" id="button5" class="btn4" text="초기화" onclick="group4_button5_onclick" anchor="top right"/>
- <Button position="absolute 1067 3 1123 25" id="button11" class="btn4" text="저장" onclick="group4_button11_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" taborder="1" position="absolute 0 0 130 32">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사용자기능관리" class="tit_1" position="absolute 0 0 128 25" onclick="group2_caption6_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_lb0909" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_ufunlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="funtgrupcd" type="STRING"/>
- <Column id="funtseqno" type="STRING"/>
- <Column id="funtgrupdesc" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_funtlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_funtlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING"/>
- <Column id="funtgrupcd" type="STRING"/>
- <Column id="funtseqno" type="STRING"/>
- <Column id="funtgrupdesc" type="STRING"/>
- </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="codeflaq" type="STRING" size="256"/>
- <Column id="null" type="STRING" size="256"/>
- <Column id="userinfo" type="STRING" size="256"/>
- <Column id="data1" type="STRING" size="256"/>
- <Column id="data2" type="STRING" size="256"/>
- <Column id="basecdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_userid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_refrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refrslt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="funtgrupcd" type="STRING" size="256"/>
- <Column id="funtseqno" type="STRING" size="256"/>
- <Column id="funtgrupdesc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userdeptflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userinfo" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLLF01300_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMLLF01300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group3.ufunlist, 0);
- grdf_setRowTypeIcon(group3.funtlist, 0);
-
- //시작할때 리스트 조회
- fExeInitialize();
- }
- // 초기화면 출력
- function fExeInitialize()
- {
- group3.group1.usernm.value = "00";
-
- var usernm = group3.group1.usernm.value;
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "null", val: usernm}]);
-
- var oParam = {};
- oParam.id = "TRLLF01302";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetFuntList";
- //oParam.inds = "cond=ds_";
- oParam.outds = "ds_funtlist=getFuntList";
- oParam.async = false;
- //oParam.callback = "cbf_SMLLF01300";
- tranf_submit(oParam);
-
-
-
- // 사용자가 속한 과코드 조회
- var usernm = group3.group1.usernm.value;
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLAF00402";
- oParam.service = "goodbaseinfomngtapp.GoodBaseInfoRgst";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_refrslt=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLAF00402";
- tranf_submit(oParam);
-
- if (ds_refrslt.getColumn(0, "cd") == "P")
- {
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: ds_refrslt.getColumn(0,"cd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00105";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetUserInfoList";
- oParam.inds = "refdata=" + sInDsName;
- oParam.outds = "ds_reflist=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00105";
- tranf_submit(oParam);
- }
- else
- {
- lf_getDbDeptcd("0000|0909|", "");
- }
- }
- //목록추가
- function fdatemove()
- {
- var usernm = group3.group1.usernm.value;
-
- //사용자 조회
- if(utlf_isNull(usernm))
- {
- alert("사용자를 선택해주십시오");
- }
- else
- {
- var equaldata = true;
- for(i = 0; i < ds_funtlist.rowcount; i++)
- {
- equaldata = true;
- if(ds_funtlist.getColumn(i, "check") == 1)
- {
- var funtgrupcd = ds_funtlist.getColumn(i, "funtgrupcd");
- var funtseqno = ds_funtlist.getColumn(i, "funtseqno");
- var str = funtgrupcd + funtseqno;
- for(j = 0; j < ds_ufunlist.rowcount; j++)
- {
- var funtgrupcd2 = ds_ufunlist.getColumn(j, "funtgrupcd");
- var funtseqno2 = ds_ufunlist.getColumn(j, "funtseqno");
- var str2 = funtgrupcd2 + funtseqno2;
-
- if(str == str2)
- {
- equaldata = false;
- }
- }
- if(equaldata)
- {
- var a = ds_ufunlist.addRow();
- ds_ufunlist.copyRow(a, ds_funtlist, i);
- equaldata = true;
- }
- else
- {
- var funtgrupdesc = ds_funtlist.getColumn(i, "funtgrupdesc");
- alert(funtgrupdesc + "권한은 이미 가지고 있습니다.");
- }
- }
- }
- }
- }
- //행삭제
- function fInsRowdel()
- {
- ds_ufunlist.deleteRow(ds_ufunlist.rowposition);
- }
- //저장
- function fExeEqmtSave()
- {
- var oParam = {};
- oParam.id = "TXLLF01301";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqExeUserFuntList";
- oParam.inds = "cond=ds_data1 cond2=ds_data2 user=ds_userinfo";
- oParam.async = false;
- //oParam.callback = "cf_TXLLF001301";
- tranf_submit(oParam);
- fExeInitialize();
- }
- //조회
- function fGetufunlist()
- {
- var oParam = {};
- oParam.id = "TRLLF01301";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUserFuntList";
- oParam.inds = "cond=ds_userinfo";
- oParam.outds = "ds_ufunlist=getUserFuntList";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF001301";
- tranf_submit(oParam);
- }
- //초기화
- function group4_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- //목록추가
- function group3_button102_onclick(obj:Button, e:ClickEventInfo)
- {
- fdatemove();
- }
- //행삭제
- function group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fInsRowdel();
- }
- //저장
- function group4_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeEqmtSave();
- }
- //조회
- function group3_group1_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetufunlist();
- }]]></Script>
- </Form>
- </FDL>
|