123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSU10103" position="absolute 0 0 867 440" titletext="사용자조회" class="frm_POP" onload="SPZSU10103_onload">
- <Layouts>
- <Layout>
- <Button id="btn_confirm" taborder="4" text="확인" class="btn4" position="absolute 801 411 857 431" onclick="btn_confirm_onclick"/>
- <Static id="stt_titleText" text="사용자조회" class="sta_POP_title" position="absolute 12 8 161 28" transparenthittest="true"/>
- <Button id="btn_close" taborder="5" class="btn_POP_cls" position="absolute 839 12 853 25" onclick="btn_close_onclick"/>
- <Div id="group2" taborder="6" style="align:center top;" class="div_SA" position="absolute 10 48 857 115">
- <Layouts>
- <Layout>
- <Static id="caption1" text="검색조건 " class="search_name" position="absolute 8 10 105 30"/>
- <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 779 10 835 30" onclick="group2_btn_search_onclick"/>
- <Edit id="ipt_search_item" taborder="8" class="input_essential" position="absolute 267 35 387 55" onkeydown="Edit_onkeydown"/>
- <Radio id="rdo_user" taborder="9" columncount="2" rowcount="0" innerdataset="@ds_init_user" codecolumn="lable" datacolumn="value" class="radio_search" position="absolute 80 35 252 55"/>
- <Edit id="ipt_dutplcecd" taborder="10" class="input_essential" position="absolute 267 10 387 30" onkeydown="Edit_onkeydown"/>
- <Radio id="rdo_dutplce" taborder="11" columncount="2" rowcount="0" innerdataset="@ds_init_dutplce" codecolumn="lable" datacolumn="value" class="radio_search" position="absolute 80 10 252 30"/>
- <CheckBox id="chk_namesearch" taborder="12" text=""명"검색" visible="false" position="absolute 8 35 81 55" onchanged="group2_chk_namesearch_onchanged" truevalue="true" falsevalue="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line12" class="line_1" position="absolute 0 131 405 131"/>
- <Grid id="grd_userlist" taborder="7" useinputpanel="false" position="absolute 10 145 410 408" binddataset="ds_Grid_userlist" cellsizingtype="col" oncelldblclick="grd_userlist_oncelldblclick" onheadclick="grdf_setGridCheckAll">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="30" band="left"/>
- <Column size="54" band="left"/>
- <Column size="54" band="left"/>
- <Column size="110"/>
- <Column size="45"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="66"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell colspan="2">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="선택"/>
- </Cell>
- <Cell col="2" text="사용자ID"/>
- <Cell col="3" text="사용자명"/>
- <Cell col="4" colspan="2" text="소속기관"/>
- <Cell col="6" colspan="2" text="소속부서"/>
- <Cell col="8" colspan="2" text="근무지기관"/>
- <Cell col="10" colspan="2" text="근무지"/>
- </Band>
- <Band id="body">
- <Cell colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:selectuser"/>
- <Cell col="2" displaytype="text" text="bind:userid"/>
- <Cell col="3" text="bind:usernm"/>
- <Cell col="4" text="bind:posinstnm"/>
- <Cell col="5" text="bind:posinstcd"/>
- <Cell col="6" text="bind:posdeptnm"/>
- <Cell col="7" text="bind:posdeptcd"/>
- <Cell col="8" text="bind:dutplceinstnm"/>
- <Cell col="9" text="bind:dutplceinstcd"/>
- <Cell col="10" text="bind:dutplcenm"/>
- <Cell col="11" text="bind:dutplcecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="img_select" taborder="8" class="icon_right" position="absolute 415 236 441 256" onclick="img_select_onclick"/>
- <Grid id="grd_selectuserlist" taborder="9" useinputpanel="false" position="absolute 446 145 857 408" binddataset="ds_Grid_selectuserlist" cellsizingtype="col" oncelldblclick="grd_selectuserlist_oncelldblclick" onheadclick="grdf_setGridCheckAll">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="30" band="left"/>
- <Column size="54" band="left"/>
- <Column size="54" band="left"/>
- <Column size="110"/>
- <Column size="45"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="66"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell colspan="2">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="선택"/>
- </Cell>
- <Cell col="2" text="사용자ID"/>
- <Cell col="3" text="사용자명"/>
- <Cell col="4" colspan="2" text="소속기관"/>
- <Cell col="6" colspan="2" text="소속부서"/>
- <Cell col="8" colspan="2" text="근무지기관"/>
- <Cell col="10" colspan="2" text="근무지"/>
- </Band>
- <Band id="body">
- <Cell colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:selectuser"/>
- <Cell col="2" displaytype="text" text="bind:userid"/>
- <Cell col="3" text="bind:usernm"/>
- <Cell col="4" text="bind:posinstnm"/>
- <Cell col="5" text="bind:posinstcd"/>
- <Cell col="6" text="bind:posdeptnm"/>
- <Cell col="7" text="bind:posdeptcd"/>
- <Cell col="8" text="bind:dutplceinstnm"/>
- <Cell col="9" text="bind:dutplceinstcd"/>
- <Cell col="10" text="bind:dutplcenm"/>
- <Cell col="11" text="bind:dutplcecd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption71" text="사용자조회" onclick="group5_caption71_onclick" class="tit_2" position="absolute 12 125 161 145"/>
- <Static id="caption01" text="선택 사용자" onclick="group5_caption71_onclick" class="tit_2" position="absolute 448 125 597 145"/>
- <Button id="img_deselect" taborder="10" class="icon_left" position="absolute 415 261 441 281" onclick="img_deselect_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_dutplce" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lable" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lable">dutplcenm</Col>
- <Col id="value">근무지명</Col>
- </Row>
- <Row>
- <Col id="lable">dutplcecd</Col>
- <Col id="value">근무지코드</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_user" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lable" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lable">usernm</Col>
- <Col id="value">사용자명</Col>
- </Row>
- <Row>
- <Col id="lable">userid</Col>
- <Col id="value">사용자ID</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_Grid_userlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="selectuser" type="STRING" size="256"/>
- <column id="deselectuser" type="STRING" size="256"/>
- <column id="userid" type="STRING" size="256"/>
- <column id="usernm" type="STRING" size="256"/>
- <column id="fromdd" type="STRING" size="256"/>
- <column id="todd" type="STRING" size="256"/>
- <column id="posinstnm" type="STRING" size="256"/>
- <column id="posinstcd" type="STRING" size="256"/>
- <column id="posdeptnm" type="STRING" size="256"/>
- <column id="posdeptcd" type="STRING" size="256"/>
- <column id="dutplceinstcd" type="STRING" size="256"/>
- <column id="dutplceinstnm" type="STRING" size="256"/>
- <column id="dutplcecd" type="STRING" size="256"/>
- <column id="dutplcenm" type="STRING" size="256"/>
- <column id="licnsno" type="STRING" size="256"/>
- <column id="specordyn" type="STRING" size="256"/>
- <column id="jobkindcd" type="STRING" size="256"/>
- <column id="jobposcd" type="STRING" size="256"/>
- <column id="jobrespcd" type="STRING" size="256"/>
- <column id="rrgstno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_Grid_selectuserlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <column id="selectuser" type="STRING" size="256"/>
- <column id="deselectuser" type="STRING" size="256"/>
- <column id="userid" type="STRING" size="256"/>
- <column id="usernm" type="STRING" size="256"/>
- <column id="fromdd" type="STRING" size="256"/>
- <column id="todd" type="STRING" size="256"/>
- <column id="posinstnm" type="STRING" size="256"/>
- <column id="posinstcd" type="STRING" size="256"/>
- <column id="posdeptnm" type="STRING" size="256"/>
- <column id="posdeptcd" type="STRING" size="256"/>
- <column id="dutplceinstcd" type="STRING" size="256"/>
- <column id="dutplceinstnm" type="STRING" size="256"/>
- <column id="dutplcecd" type="STRING" size="256"/>
- <column id="dutplcenm" type="STRING" size="256"/>
- <column id="licnsno" type="STRING" size="256"/>
- <column id="specordyn" type="STRING" size="256"/>
- <column id="jobkindcd" type="STRING" size="256"/>
- <column id="jobposcd" type="STRING" size="256"/>
- <column id="jobrespcd" type="STRING" size="256"/>
- <column id="rrgstno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_Cond_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchitem" type="STRING" size="256"/>
- <Column id="searchitem_dutplceinst" type="STRING" size="256"/>
- <Column id="searchitem_dutplce" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="flag_dutplceinst" type="STRING" size="256"/>
- <Column id="flag_dutplce" type="STRING" size="256"/>
- <Column id="prfshipflagcd" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="bindSearchitem" compid="group2.ipt_search_item" propid="value" datasetid="ds_Cond_searchitem" columnid="searchitem"/>
- <BindItem id="bindSearchitem_dutplce" compid="group2.ipt_dutplcecd" propid="value" datasetid="ds_Cond_searchitem" columnid="searchitem_dutplce"/>
- <BindItem id="bindFlag" compid="group2.rdo_user" propid="value" datasetid="ds_Cond_searchitem" columnid="flag"/>
- <BindItem id="bindFlag_dutplce" compid="group2.rdo_dutplce" propid="value" datasetid="ds_Cond_searchitem" columnid="flag_dutplce"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : HIT
- * Job Name : 부서트리검색팝업
- * File Name : SPZSU10103_사용자부서선택조회.xfdl
- * Creator :
- * Make Date : 2014-03-04
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-03-04 HIT Converting Program(TF->XP)
- * 2014-03-14 Change TF to Xp Script
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var pFlag;
- var pSearchitem;
- var pParam;
- var pPrfshipflagcd;
- var pDutplceinstcd;
- var pEnterKey = 13;
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : Boolen Type
- * Description : Dataset 초기화.
- ****************************************************************************************/
- function lf_setInitDataset(objDS, bAddrow)
- {
- var nRow;
- objDS.clearData();
- if(bAddrow){
- nRow = objDS.addRow();
- }
- return nRow;
- }
- /****************************************************************************************
- * Argument : Boolen Type
- * Description : Dataset 초기화.
- ****************************************************************************************/
- function lf_getArgumentList()
- {
- try{
- pFlag = flag;
- }catch(e){pFlag = "";}
-
- try{
- pSearchitem = searchitem;
- }catch(e){pSearchitem = "";}
-
- try{
- pParam = param;
- }catch(e){pParam = "";}
- try{
- pPrfshipflagcd = prfshipflagcd;
- }catch(e){pPrfshipflagcd = "";}
- try{
- pDutplceinstcd = dutplceinstcd;
- }catch(e){pDutplceinstcd = "";}
- }
- /****************************************************************************************
- * Argument : strSvcId - 조회 service ID
- * Description : Return Dataset 생성 후 팝업 종료.
- ****************************************************************************************/
- function lf_setSelectSubmit(strSvcId)
- {
- tranf_submit({
- id : strSvcId
- , service : "userdeptinfoapp.UserDeptInfo"
- , method : "reqGetUserDutplcePopup"
- , inds : "req=ds_Cond_searchitem"
- , outds : "ds_Grid_userlist=userlist"
- , callback: "cbf_SPZSU10103"
- , async : true
- });
- }
- /****************************************************************************************
- * Argument : objDs - 부모창에 넘겨줄 데이터셋 Object
- * Description : Return Dataset 생성 후 팝업 종료.
- ****************************************************************************************/
- function lf_setClose(objDs)
- {
- // Temp Dataset 생성.
- var sTempDSNm = "ds_TempRtn";
- var objTempDS = new Dataset;
- objTempDS.name = sTempDSNm;
- this.addChild(sTempDSNm, objTempDS);
- objTempDS.copyData(objDs);
-
- // 조건에 맞는 Dataset설정
- if(pParam=="_OneS"){
- // 복사된 데이터셋을 삭제한다.
- objTempDS.clearData();
-
- // 선택된 데이터만 부모창에 넘겨준다.
- var nRow = objDs.rowposition;
- var nAddRow = objTempDS.addRow();
- objTempDS.copyRow(nAddRow, objDs, nRow);
- }
- var objRemoveDS = this.removeChild(objTempDS.name);
- this.close(objRemoveDS);
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : tr_getCodeList의 콜백함수
- ****************************************************************************************/
- function cbf_SPZSU10103(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode!=0){
- sysf_messageBox(sErrorMsg, "E000");
- return;
- }
-
- switch(sSvcId)
- {
- case "TRZSU10104_Init":
- var nRowCnt = ds_Grid_userlist.getRowCount();
- if(nRowCnt==1){
- var objRemoveDS = this.removeChild(ds_Grid_userlist.name);
- this.close(objRemoveDS);
- }
- break;
-
- case "TRZSU10104":
-
- break;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPZSU10103
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 최초 Form이 Load될때 호출.
- ****************************************************************************************/
- function SPZSU10103_onload(obj:Form, e:LoadEventInfo)
- {
- // 조회조건 데이터셋 초기화.
- var nRow = lf_setInitDataset(ds_Cond_searchitem, true);
-
- // Grid Sorting
- grdf_setGridSort(grd_userlist);
- grdf_setGridSort(grd_selectuserlist);
-
- // Grid Dataset Init.
- lf_setInitDataset(ds_Grid_userlist, false);
- lf_setInitDataset(ds_Grid_selectuserlist, false);
- // 부모창에서 넘겨주는 Parameter
- lf_getArgumentList();
-
- // radio Value Init.
- group2.rdo_dutplce.index = 0;
- group2.rdo_user.index = 0;
-
- if(!utlf_isNull(pDutplceinstcd)){
- trace("pDutplceinstcd=["+pDutplceinstcd+"]");
- ds_Cond_searchitem.setColumn(nRow, "dutplceinstcd", pDutplceinstcd);
- }
-
- if(!utlf_isNull(pPrfshipflagcd)){
- trace("pPrfshipflagcd=["+pPrfshipflagcd+"]");
- ds_Cond_searchitem.setColumn(nRow, "prfshipflagcd", pPrfshipflagcd);
- }
-
- if (!utlf_isNull(pFlag) && !utlf_isNull(pSearchitem)){
- trace("pFlag=["+pFlag+"]");
- trace("pSearchitem=["+pSearchitem+"]");
- ds_Cond_searchitem.setColumn(nRow, "flag", pFlag);
- ds_Cond_searchitem.setColumn(nRow, "searchitem", pSearchitem);
- lf_setSelectSubmit("TRZSU10104_Init");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 유무 체크 후 조회
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(group2.ipt_dutplcecd.value)&&utlf_isNull(group2.ipt_search_item.value)){
- sysf_messageBox("검색어를 1자이상", "C001");
- return;
- }
-
- lf_setInitDataset(ds_Grid_userlist, false);
- lf_setInitDataset(ds_Grid_selectuserlist, false);
-
- var nRow = ds_Cond_searchitem.rowposition;
- ds_Cond_searchitem.setColumn(nRow, "prfshipflagcd", pPrfshipflagcd);
- ds_Cond_searchitem.setColumn(nRow, "dutplceinstcd", pDutplceinstcd);
- if(pParam == "_OneS_DD"){
- ds_Cond_searchitem.setColumn(nRow, "searchitem_dutplceinst", pParam);
- }
-
- lf_setSelectSubmit("TRZSU10104");
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_dutplcecd, ipt_search_item
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 해당 Edit Component에서 Enter값 입력시 조회버튼 클릭.
- ****************************************************************************************/
- function Edit_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- var nKeyCode = e.keycode;
- if(pEnterKey==nKeyCode){
- obj.updateToDataset();
- group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : CheckBox
- * Components ID : chk_namesearch
- * Event : onchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 명검색 선택시 조회조건 Radio에 명검색으로 셋팅.
- ****************************************************************************************/
- function group2_chk_namesearch_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var bChk = e.postvalue;
- if(bChk){
- group2.rdo_dutplce.index = 0;
- group2.rdo_user.index = 0;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_userlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Grid Cell Double Click Event.
- ****************************************************************************************/
- function grd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var nRow = e.row;
- var nCell = e.cell;
- if(nCell>0&&pParam=="_OneS"){
- lf_setClose(ds_Grid_userlist);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_selectuserlist
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 팝업에서 선택된 값을 부모창에 넘겨준 후 종료.
- ****************************************************************************************/
- function grd_selectuserlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var nRow = e.row;
- var nCell = e.cell;
- if(nCell>0&&pParam=="_OneS"){
- lf_setClose(ds_Grid_selectuserlist);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : img_select
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택된 사용자 Insert
- ****************************************************************************************/
- function img_select_onclick(obj:Button, e:ClickEventInfo)
- {
- var nFindRow = ds_Grid_userlist.findRow("selectuser", 1);
- if(nFindRow<0){
- sysf_messageBox("선택된 사용자가", "I004");
- return;
- }
-
- var nRow;
- grd_userlist.enableredraw = false;
- ds_Grid_userlist.filter("selectuser=='1'");
- var nRowCnt = ds_Grid_userlist.getRowCount();
- for(var i=0;i<nRowCnt;i++){
- nRow = ds_Grid_selectuserlist.addRow();
- ds_Grid_selectuserlist.copyRow(nRow, ds_Grid_userlist, i);
- ds_Grid_selectuserlist.setColumn(nRow, "selectuser", 0);
- }
- ds_Grid_userlist.filter("");
- grd_userlist.enableredraw = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : img_deselect
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택된 사용자 Delete
- ****************************************************************************************/
- function img_deselect_onclick(obj:Button, e:ClickEventInfo)
- {
- var nFindRow = ds_Grid_selectuserlist.findRow("selectuser", 1);
- if(nFindRow<0){
- sysf_messageBox("선택된 사용자가", "I004");
- return;
- }
-
- grd_selectuserlist.enableredraw = false;
- ds_Grid_selectuserlist.filter("selectuser=='1'");
- var nRowCnt = ds_Grid_selectuserlist.getRowCount();
- for(var i=nRowCnt;i>=0;i--){
- ds_Grid_selectuserlist.deleteRow(i);
- }
- ds_Grid_selectuserlist.filter("");
- grd_selectuserlist.enableredraw = true;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 팝업에서 선택된 값을 부모창에 넘겨준 후 종료.
- ****************************************************************************************/
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if(pParam=="_OneS"){
- lf_setClose(ds_Grid_userlist);
- }
- lf_setClose(ds_Grid_selectuserlist);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Popup Close
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|