123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEB00010" position="absolute 0 0 712 555" titletext="공통코드관리" oninit="SPAEB00010_oninit" onload="SPAEB00010_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="1" position="absolute 0 25 710 65" class="div_SA"/>
- <Static text="공통코드관리" position="absolute 0 0 120 25" id="caption1" class="tit_1"/>
- <Shape position="absolute 0 89 710 95" id="line1" class="line_10"/>
- <Div position="absolute 0 522 710 553" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 526 5 582 27" id="btn_confirm" class="btn4" text="저장" onclick="group1_btn_confirm_onclick" anchor="default"/>
- <Button position="absolute 584 5 640 27" id="btn_cancel" class="btn4" text="닫기" onclick="group1_btn_cancel_onclick" anchor="default"/>
- <Shape position="absolute 0 -2 710 4" id="line32" class="line_6" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="그룹코드 :" position="absolute 17 38 116 55" id="caption2" class="search_name"/>
- <Button position="absolute 641 35 697 57" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick"/>
- <Grid position="absolute 0 94 710 521" id="grd_codelist" binddataset="ds_grd_codelist" autosizingtype="row" extendsizetype="row" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="71"/>
- <Column size="143"/>
- <Column size="183"/>
- <Column size="58"/>
- <Column size="35"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="59"/>
- <Column size="5"/>
- </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="설명"/>
- <Cell col="4" text="사용여부"/>
- <Cell col="5" text="순번"/>
- <Cell col="6" text="제어여부1"/>
- <Cell col="7" text="제어코드1"/>
- <Cell col="8" text="제어코드2"/>
- <Cell col="9" text="제어코드3"/>
- <Cell col="10" text="그룹코드"/>
- <Cell col="11" text="부서코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:cdid"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:cdnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:detldesc" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:useyn"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:dispseq"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:cntlyn1"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:cntlcd1"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:cntlcd2"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:cntlcd3"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:grupcdid"/>
- <Cell col="11" text="bind:suppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo position="absolute 110 37 210 56" id="cmb_grup" innerdataset="@ds_init_cmb_grup" datacolumn="grupcdnm" codecolumn="grupcdid" onitemchanged="cmb_grup_onitemchanged"/>
- <Button position="absolute 657 67 710 89" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
- <Button position="absolute 602 67 655 89" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 642 527 710 549" id="button1" class="btn4" text="초기화" onclick="button1_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="detldesc" type="STRING"/>
- <Column id="useyn" type="STRING"/>
- <Column id="dispseq" type="STRING"/>
- <Column id="cntlyn1" type="STRING"/>
- <Column id="cntlcd1" type="STRING"/>
- <Column id="cntlcd2" type="STRING" size="256"/>
- <Column id="cntlcd3" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING"/>
- <Column id="suppdeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_grup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grupcdnm" type="STRING"/>
- <Column id="grupcdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="grupcdid" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_E0002" 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_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="checkseq" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="cmb_grup" propid="value" datasetid="ds_send" columnid="grupcdid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- include "ast_examcurexp::combolist.xjs"
- include "ast_commonxp::AST.xjs"
- function fn_TRAEB00010(){
- ds_send.setColumn(0,"suppdeptcd",frmf_getParameter("AST_DEPTCD"));
- var oParam = {};
- oParam.id = "TRAEB00010";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetComCodeDetailList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_codelist=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00010";
- tranf_submit(oParam);
- }
- function cf_TRAEB00010(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fn_TXAEB00010(){
- var oParam = {};
- oParam.id = "TXAEB00010";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqExeComCodeDetailList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_hidden=count";
- oParam.async = false;
- oParam.callback = "cf_TXAEB00010";
-
- tranf_submit(oParam);
- }
- function cf_TXAEB00010(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function fn_TRAEB00011(){
- ds_send_globalinstance.updateColID("instance1","suppdeptcd");
- var oParam = {};
- oParam.id = "TRAEB00011";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetComCodeGroupList";
- oParam.inds = "req=ds_send_globalinstance";
- oParam.outds = "ds_init_cmb_grup=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00011";
- tranf_submit(oParam);
- }
- function cf_TRAEB00011(sSvcId, nErrorCode, sErrorMsg) {
- ds_send_globalinstance.updateColID("suppdeptcd","instance1");
-
- if(nErrorCode < 0) return;
-
- }
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_TRAEB00010();
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_grd_codelist.addRow();
- // 행추가 시 bottomRow 사용하지 마세요!! 꼭
- grd_codelist.setCellPos(nRow);
- ds_grd_codelist.setColumn(nRow,"suppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
- ds_grd_codelist.setColumn(nRow,"grupcdid", cmb_grup.value);
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var arrRow = new Array();
- arrRow[0] = ds_grd_codelist.rowposition;
- grdf_setStatus(grd_codelist, "D", arrRow);
- }
- function SPAEB00010_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPAEB00010_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
-
- //sysf_trace("suppdeptcd = " + frmf_getParameter("AST_DEPTCD"));
-
- // 2011.06.21 권한 공통코드(E0002)로 관리
- lf_getAstCodeList([{dsNm: "ds_init_E0002", cdGrpId:"E0002"}], true);
-
-
- grdf_setToolTipBind(grd_codelist);
- //그룹코드조회
- fn_TRAEB00011();
-
- grdf_setRowTypeIcon(grd_codelist, 0); //status 표시 : 입력, 삭제, 갱신
- }
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var auth_id = sysf_getUserInfo("userid");
- sysf_trace("auth_id =" + auth_id);
- //var dev_id = auth_id.substr(0,3);
-
- var idx_cncl = 0;
- var cnclidCnt = ds_init_E0002.rowcount;
- for( var i = 0 ; i< cnclidCnt ; i++){
- if(ds_init_E0002.getColumn(i,"cdid") == auth_id ){
- idx_cncl++;
- }
- }
-
- if ( idx_cncl != 0 || auth_id == "DEV" || auth_id == "AST" ) {
- }else {
- sysf_messageBox("저장/수정/삭제권한은 전산실 관리자에게만 부여합니다.","I999");
- return;
- }
-
- if ( sysf_messageBox("", "Q002") == 6 ) {
-
- var dsUpdate = grdf_getGridUpdateData(grd_codelist, "all");
- grdf_setStatusColumn(dsUpdate, "m");
-
- if(dsUpdate.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- }
- else {
- ds_send_reqdata.clear();
- ds_send_reqdata.copyData(dsUpdate, true);
-
- dsf_setDefaultVal(ds_send_reqdata, "ubasecdflag:U");
-
- fn_TXAEB00010();
- }
- }
-
- //fn_TRAEB00011");
- fn_TRAEB00010();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
- ds_grd_codelist.clearData();
- }
- }
- function cmb_grup_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- // 2011.05.09 코드가 E0001일 경우 섦
- if( obj.value == "E0001" ){
- //grd_codelist.colType(3) = "inputbutton";
- }else{
- //grd_codelist.colType(3) = "input";
- }
- fn_TRAEB00010();
- }
- ]]></Script>
- </Form>
- </FDL>
|