123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB63500" position="absolute 0 0 545 454" titletext="사용자조회" oninit="SPADB63500_oninit" onload="SPADB63500_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="1" position="absolute 0 25 545 85" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption1" text="검색조건 :" class="search_name" position="absolute 12 11 100 28" anchor="default"/>
- <Shape id="line1" linetype="vertical" position="absolute 452 8 458 51" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 470 19 526 41" onclick="group2_btn_search_onclick" anchor="default"/>
- <Edit id="ipt_search_item" taborder="2" class="input_essential" position="absolute 295 34 417 53" anchor="default" onkeydown="group2_ipt_search_item_onkeydown"/>
- <Radio id="rdo_user" taborder="3" columncount="2" rowcount="0" innerdataset="@ds_init_flag" codecolumn="value" datacolumn="lable" position="absolute 100 35 289 52" anchor="default"/>
- <Edit id="ipt_dutplcecd" taborder="4" class="input_essential" position="absolute 295 8 417 27" onkeydown="group2_ipt_dutplcecd_onkeydown" anchor="default"/>
- <Radio id="rdo_dutplce" taborder="5" columncount="2" rowcount="0" innerdataset="@ds_init_deptflag" codecolumn="value" datacolumn="lable" position="absolute 100 9 289 27" anchor="default"/>
- <CheckBox id="chk_namesearch" taborder="6" visible="false" position="absolute 15 30 115 50" text=""명" 검색" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="사용자조회" class="tit_1" position="absolute 0 0 140 25"/>
- <Static id="caption9" text="사용자조회" class="tit_2" position="absolute 0 90 120 107"/>
- <Grid id="grd_userlist" taborder="3" binddataset="ds_main_list_userlist" useinputpanel="false" oncelldblclick="group5_grd_userlist_oncelldblclick" position="absolute 0 111 545 420" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="54" band="left"/>
- <Column size="54" band="left"/>
- <Column size="106" band="left"/>
- <Column size="30" band="left"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="30"/>
- <Column size="100"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="사용자ID" taborder="undefined"/>
- <Cell col="2" text="사용자명" taborder="undefined"/>
- <Cell col="3" colspan="2" text="소속기관" taborder="undefined"/>
- <Cell col="5" colspan="2" text="소속부서" taborder="undefined"/>
- <Cell col="7" colspan="2" text="근무지기관" taborder="undefined"/>
- <Cell col="9" colspan="2" text="근무지" taborder="undefined"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow == ds_main_list_userlist.rowposition ? '▶':'';"/>
- <Cell col="1" text="bind:userid" autosizerow="limitmin"/>
- <Cell col="2" text="bind:usernm" autosizerow="limitmin"/>
- <Cell col="3" text="bind:posinstnm" autosizerow="limitmin"/>
- <Cell col="4" text="bind:posinstcd" autosizerow="limitmin"/>
- <Cell col="5" text="bind:posdeptnm" autosizerow="limitmin"/>
- <Cell col="6" text="bind:posdeptcd" autosizerow="limitmin"/>
- <Cell col="7" text="bind:dutplceinstnm" autosizerow="limitmin"/>
- <Cell col="8" text="bind:dutplceinstcd" autosizerow="limitmin"/>
- <Cell col="9" text="bind:dutplcenm" autosizerow="limitmin"/>
- <Cell col="10" text="bind:dutplcecd" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line12" linetype="horizontal" class="line_1" position="absolute 0 106 545 112"/>
- <Button id="btn_cancel" taborder="4" text="취소" onclick="group3_btn_cancel_onclick" class="btn4" position="absolute 488 426 544 448"/>
- <Button id="btn_confirm" taborder="5" text="확인" onclick="group3_btn_confirm_onclick" class="btn4" position="absolute 429 426 485 448"/>
- <Shape id="line00" class="line_1" position="absolute 0 105 545 111"/>
- <Shape id="line01" class="line_1" position="absolute 0 107 545 113"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="param" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchitem" type="STRING" size="256"/>
- <Column id="prfshipflagcd" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- <Column id="history" 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">
- <ColumnInfo>
- <Column id="searchitem" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchitem_dutplce" type="STRING" size="256"/>
- <Column id="flag_dutplce" type="STRING" size="256"/>
- <Column id="searchitem_dutplceinst" type="STRING" size="256"/>
- <Column id="prfshipflagcd" type="STRING" size="256"/>
- <Column id="dutplceinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_selectuserlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_item_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list2_selectuserlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_flag" 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">사용자명</Col>
- <Col id="value">usernm</Col>
- </Row>
- <Row>
- <Col id="lable">사용자ID</Col>
- <Col id="value">userid</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptflag" 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">근무지명</Col>
- <Col id="value">dutplcenm</Col>
- </Row>
- <Row>
- <Col id="lable">근무지코드</Col>
- <Col id="value">dutplcecd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init" 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_dutplce" type="STRING" size="256"/>
- <Column id="namesearch" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="searchitem"/>
- <Col id="searchitem_dutplce"/>
- <Col id="namesearch"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_dutplcecd" propid="value" datasetid="ds_init" columnid="searchitem_dutplce"/>
- <BindItem id="item1" compid="group2.ipt_search_item" propid="value" datasetid="ds_init" columnid="searchitem"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-05
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-05 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 화면 초기화
- ****************************************************************************************/
- function fInitialize(){
- ds_main_list_userlist.clearData();
- ds_main_list2_selectuserlist.clearData();
- group2.rdo_dutplce.index = 0;
- group2.rdo_user.index = 0;
- var iflag = ds_main_temp.getColumn(0, "flag");
- var isearchitem = ds_main_temp.getColumn(0, "searchitem");
- var prfshipflagcd = ds_main_temp.getColumn(0, "prfshipflagcd");
- var dutplceinstcd = ds_main_temp.getColumn(0, "dutplceinstcd");
-
- if( !utlf_isNull(prfshipflagcd) ){
- ds_send.setColumn(0, "prfshipflagcd", prfshipflagcd);
- }
-
- if( !utlf_isNull(dutplceinstcd) ){
- ds_send.setColumn(0, "dutplceinstcd", dutplceinstcd);
- }
-
- if( !utlf_isNull(iflag) && !utlf_isNull(isearchitem) ){
- ds_send.setColumn(0, "flag" , iflag);
- ds_send.setColumn(0, "searchitem", isearchitem);
-
- var oParam = {};
- oParam.id = "TRZSU10104";
- oParam.service = "userdeptinfoapp.UserDeptInfo";
- oParam.method = "reqGetUserDutplcePopup";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_userlist=userlist";
- oParam.async = false;
- //oParam.callback = "cf_TRZSU10104";
- tranf_submit(oParam);
-
- if(ds_main_list_userlist.rowcount == 1){
- var rCVS = dsf_getDsCSV(ds_main_list_userlist);
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SPZSU10103_", rCVS);
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
- }
- }
- }
- /****************************************************************************************
- * Argument : control - "search" 는 조회 버튼 클릭 / "init"은 신규 버튼 클릭 / "save"는 저장 버튼 클릭
- * : grid - 그리드 컨트롤을 넘겨줍니다.
- * : param - 기타 param을 넘겨줍니다.
- * Description : 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- ****************************************************************************************/
- function fClicked(control, grid, param){
- if (control == "search"){
- fSearchClick(grid, param);
- ds_send.clearData();
- ds_send.addRow();
- } else if (control = "init"){
- // model.reset();
- fInitialize();
- } else {
- sysf_messageBox("처리를 수행","E002");
- }
- }
-
- /****************************************************************************************
- * Argument : grid - 그리드 컨트롤을 넘겨줍니다.
- * : param - 기타 param을 넘겨줍니다.
- * Description : 조회버튼 클릭 타는 함수입니다.
- ****************************************************************************************/
- function fSearchClick(grid,param){
- ds_main_list_userlist.clearData();
- ds_send.clearData();
- ds_send.addRow();
-
- ds_send.setColumn(0,"searchitem" , group2.ipt_search_item.text);
- ds_send.setColumn(0,"searchitem_dutplce", group2.ipt_dutplcecd.text);
-
- var prfshipflagcd = ds_main_temp.getColumn(0,"prfshipflagcd");
- var dutplceinstcd = ds_main_temp.getColumn(0,"dutplceinstcd");
-
- ds_send.setColumn(0,"prfshipflagcd" , prfshipflagcd);
- ds_send.setColumn(0,"flag" , group2.rdo_user.value);
- ds_send.setColumn(0,"flag_dutplce" , group2.rdo_dutplce.value);
- ds_send.setColumn(0,"dutplceinstcd" , dutplceinstcd);
-
- if(ds_main_temp.getColumn(0,"param") == "_OneS_DD"){
- ds_send.setColumn(0,"searchitem_dutplceinst", ds_main_temp.getColumn(0,"param"));
- }
- var oParam = {};
- oParam.id = "TRZSU10104";
- oParam.service = "userdeptinfoapp.UserDeptInfo";
- oParam.method = "reqGetUserDutplcePopup";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_userlist=userlist";
- oParam.async = false;
- //oParam.callback = "cf_TRZSU10104";
- tranf_submit(oParam);
- }
-
- 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);
- }
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
- function fExeSelect(){
- if( frmf_checkOpener() ){
- if( ds_main_list_userlist.rowcount > 0 ){
- var cRow = ds_main_list_userlist.rowposition;
- opener.frmf_setParameter("SPADB63500_userid", ds_main_list_userlist.getColumn(cRow,"userid"))
- opener.frmf_setParameter("SPADB63500_usernm" ,ds_main_list_userlist.getColumn(cRow, "usernm"));
- opener.frmf_setParameter("SPADB63500_dutplcenm" ,ds_main_list_userlist.getColumn(cRow, "dutplcenm"));
-
- this.close();
- } else {
- sysf_messageBox("사용자를 ", "C002");
- }
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- this.close();
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB63500
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB63500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB63500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB63500_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.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(group2.ipt_search_item.text == "" && group2.ipt_dutplcecd.text == ""){
- sysf_messageBox("검색어를 1자이상 ", "C001");
- } else {
- var param = group2.ipt_search_item.text;
- fClicked("search", grd_userlist);
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.ipt_dutplcecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 부서정보 넣고 사용자조회
- ****************************************************************************************/
- function group2_ipt_dutplcecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.ipt_dutplcecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 사용자정보 넣고 사용자조회
- ****************************************************************************************/
- function group2_ipt_search_item_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_search", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_userlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 사용자조회 List 선택
- ****************************************************************************************/
- function group5_grd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fExeSelect();
- }
- /******************************************************************
- * Argument :
- * Description : 확인Button Event
- ******************************************************************/
- function group3_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeSelect();
- }
- /******************************************************************
- * Argument :
- * Description : 취소Button Event
- ******************************************************************/
- function group3_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|