123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRPZ00500" position="absolute 0 0 584 545" titletext="Untitle" oninit="SPRPZ00500_oninit" onload="SPRPZ00500_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="0" class="div_SA2" position="absolute 0 0 580 40">
- <Layouts>
- <Layout>
- <Edit id="ipt_refcond" taborder="1" class="input_s_essential" position="absolute 252 10 351 29" onkeydown="group2_ipt_refcond_onkeydown"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 509 9 565 31" onclick="group2_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 491 6 497 33"/>
- <Static id="caption2" text="조회조건 :" class="search_name" position="absolute 166 11 252 28"/>
- <Radio id="rdo_refcond" taborder="3" columncount="-1" rowcount="-1" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" class="radio_search" position="absolute 15 10 140 30" style="border:1 solid black ;" onitemchanged="group2_rdo_refcond_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="부서 리스트" class="tit_2" position="absolute 0 43 95 64"/>
- <Shape id="line1" class="line_10" position="absolute 0 59 580 65"/>
- <Grid id="grd_deptlist" taborder="1" binddataset="ds_main_deptcodelist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 64 580 512" oncelldblclick="grd_deptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="50"/>
- <Column size="148"/>
- <Column size="324"/>
- </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="부서명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' ? 1 : 0"/>
- <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:deptcd"/>
- <Cell col="3" style="align:left middle;padding:2 2 2 2;" text="bind:depthngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line32" class="line_6" position="absolute 0 512 580 518"/>
- <Button id="btn_confirm" taborder="2" text="확인" class="btn4" position="absolute 466 517 522 539" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 524 517 580 539" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="refcond" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond"/>
- <Col id="deptnm"/>
- <Col id="instcd"/>
- <Col id="deptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">부서코드</Col>
- <Col id="value">deptcd</Col>
- </Row>
- <Row>
- <Col id="label">부서명</Col>
- <Col id="value">deptnm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deptcodelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
- <BindItem id="item1" compid="group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- function SPRPZ00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPRPZ00500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_deptlist);
-
- try
- {
- ds_target_defaultvalue.copyData(arg_ds_target_defaultvalue);
- }
- catch (e)
- {}
- try
- {
- ds_target_validation.copyData(arg_ds_target_validation);
- }
- catch (e)
- {}
- try
- {
- ds_target.copyData(arg_ds_target);
- }
- catch (e)
- {}
-
- ds_send_deptref.setColumn(0, "instcd", ds_target_defaultvalue.getColumn(0, "instcd"));
-
- group2.rdo_refcond.value = "deptnm";
- group2.ipt_refcond.setFocus();
- }
- function group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(obj.value == "deptnm")
- {
- group2.ipt_refcond.imemode = "hangul";
- }
- else if (obj.value == "deptcd")
- {
- group2.ipt_refcond.imemode = "none";
- }
- else
- {
- group2.ipt_refcond.imemode = "none";
- }
-
- model.setFocus("ipt_refcond");
- }
- function group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group2.btn_search.click();
- }
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(group2.rdo_refcond.value == "deptnm")
- {
- ds_send_deptref.setColumn(0, "deptnm", group2.ipt_refcond.text);
- }
- else
- {
- ds_send_deptref.setColumn(0, "deptcd", group2.ipt_refcond.text);
- }
-
- var oParam = {};
- oParam.id = "TRRPZ00501";
- oParam.service = "miscommoncdrefapp.CommonCdRef";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send_deptref";
- oParam.outds = "ds_main_deptcodelist=deptcodelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPZ00501";
- tranf_submit(oParam);
- }
- function ds_main_deptcodelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_main_deptcodelist.setColumn(ds_main_deptcodelist.rowposition, "check", "Y");
- btn_confirm.click();
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpCheckedListReturn(grd_deptlist, "check");
- }
- ]]></Script>
- </Form>
- </FDL>
|