123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZSU00900" classname="SPZSU00900_WZONE번호관리" inheritanceid="" position="absolute 0 0 600 440" titletext="ZONE번호관리" oninit="SPZSU00900_oninit" onload="SPZSU00900_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="ZONE번호 관리" class="tit_1" position="absolute 0 0 126 25"/>
- <Static id="caption3" text="ZONE번호조회" class="tit_2" position="absolute 0 96 114 112"/>
- <Div id="div_search" anchor="left top right" taborder="4" style="align:center top;" class="div_SA" position="absolute 0 24 600 91">
- <Layouts>
- <Layout>
- <Button id="btn_search" text="조회" onclick="div_search_btn_search_onclick" class="btn1" position="absolute 467 24 523 44" anchor="top right" taborder="3"/>
- <Static id="caption2" text="검색조건" class="search_name" position="absolute 12 10 86 30" anchor="default"/>
- <Static id="caption00" text="검 색 어" class="search_name" position="absolute 12 35 86 55" anchor="default"/>
- <Edit id="ed_ipt_data1" imemode="none" onkeydown="div_search_ed_ipt_data1_onkeydown" position="absolute 79 36 193 56" anchor="default" taborder="1" inputtype="number"/>
- <Button id="btn_save" text="저장" onclick="div_search_btn_save_onclick" class="btn4" visible="true" position="absolute 531 24 587 44" anchor="top right" enableevent="true" taborder="4"/>
- <Combo id="cmb_flag" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="div_search_cmb_flag_onitemchanged" position="absolute 79 10 191 31" anchor="default" taborder="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">사번</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">이름+생년월일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">M</Col>
- <Col id="datacolumn">휴대폰번호</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Z</Col>
- <Col id="datacolumn">ZONE번호</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ed_ipt_data2" imemode="none" onkeydown="div_search_ed_ipt_data2_onkeydown" position="absolute 199 36 313 56" anchor="default" visible="false" inputtype="number" taborder="2"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="gd_UserList" taborder="5" binddataset="ds_userList" useinputpanel="false" cellsizingtype="col" cellsizebandtype="allband" autofittype="col" position="absolute 0 117 600 440" anchor="all" visible="true">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="52"/>
- <Column size="188"/>
- <Column size="61"/>
- <Column size="70"/>
- <Column size="90"/>
- <Column size="90"/>
- </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="사용자명"/>
- <Cell col="5" text="휴대폰번호"/>
- <Cell col="6" text="ZONE"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="combo" edittype="none" style="align:center middle;" text="bind:instcd" combodataset="ds_instcd" combocodecol="value" combodatacol="label"/>
- <Cell col="2" displaytype="text" style="padding:0 2 0 10;" text="bind:deptnm"/>
- <Cell col="3" text="bind:userid" mask="@@@{@}{@}" maskchar="_"/>
- <Cell col="4" text="bind:usernm"/>
- <Cell col="5" text="bind:mpphon"/>
- <Cell col="6" displaytype="normal" edittype="normal" editfilter="number" text="bind:zone"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="Shape00" position="absolute 0 105 600 125" class="line_10"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="data" type="STRING" size="256"/>
- <Column id="data2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="flag">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_userList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seq" type="STRING" size="256" sumtext="순번"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="instnm" type="STRING" size="256" sumtext="기관명"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
- <Column id="mpphon" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="zone" type="STRING" size="256" sumtext="ZONE"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">031</Col>
- <Col id="label">본원</Col>
- </Row>
- <Row>
- <Col id="value">032</Col>
- <Col id="label">칠곡</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div_search.cmb_flag" propid="value" datasetid="ds_search" columnid="flag"/>
- <BindItem id="item1" compid="div_search.ed_ipt_data1" propid="value" datasetid="ds_search" columnid="data"/>
- <BindItem id="item2" compid="div_search.ed_ipt_data2" propid="value" datasetid="ds_search" columnid="data2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function SPZSU00900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPZSU00900_onload(obj:Form, e:LoadEventInfo)
- {
- div_search.ed_ipt_data1.setFocus();
- grdf_setRowTypeIcon(gd_UserList, 0);
- }
- function div_search_cmb_flag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var flag = obj.value;
-
- if(flag == "N") {
- div_search.ed_ipt_data1.inputtype = "normal"
- div_search.ed_ipt_data2.visible = true;
- } else {
- div_search.ed_ipt_data1.inputtype = "number"
- div_search.ed_ipt_data2.visible = false;
- }
-
- div_search.ed_ipt_data1.value = "";
- div_search.ed_ipt_data2.value = "";
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqSearchZone();
- }
- function div_search_ed_ipt_data1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- fReqSearchZone();
- }
- }
- function div_search_ed_ipt_data2_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- fReqSearchZone();
- }
- }
- function div_search_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveZoneNo();
- }
- function fReqSearchZone()
- {
- var flag = div_search.cmb_flag.value;
- var oParam = {};
- oParam.id = "TRZSU00900";
- oParam.service = "userdeptinfoapp.UserDeptInfo";
- oParam.method = "reqGetUserZoneNo";
- oParam.inds = "req=ds_search";
- oParam.outds = "ds_userList=userinfo";
- oParam.async = true;
-
- //} else if(flag == "N") {
- /*
- ds_main_cond.setColumn(0,"instcd",div_search.cmb_instcd.value);
-
- var oParam = {};
- oParam.id = "TRZSU00802";
- oParam.service = "userdeptinfoapp.UserDeptInfo";
- oParam.method = "reqGetDeptPhoneNo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_userList2=telinfo";
- oParam.async = true;
- */
- //} else if(flag == "M") {
-
- //} else if(flag == "Z") {
-
- //}
-
- tranf_submit(oParam);
- }
- function fSaveZoneNo()
- {
- var oDsUpdate = grdf_getGridUpdateData(gd_UserList);
- if( oDsUpdate.rowcount > 0 ) {
- var oParam = {};
-
- grdf_setStatusColumn(oDsUpdate, "status"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
- ds_savedata.copyData(oDsUpdate, true);
-
- oParam.id = "TXZSU00901";
- oParam.service = "userdeptinfoapp.UserDeptInfo";
- oParam.method = "reqExeSaveZoneNo";
- oParam.inds = "req=" + "ds_savedata";
- oParam.outds = "ds_userList=userinfo";
- oParam.async = false;
- tranf_submit(oParam);
- fReqSearchZone();
- //gd_UserList.rowposition = -1;
- } else {
- sysf_messageBox("입력","E013"); // 그리드에 데이터가 업데이트 되지 않으면 "입력된 데이터가 없습니다."는 메시지 출력
- }
- }]]></Script>
- </Form>
- </FDL>
|