123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPS90500" position="absolute 0 0 588 550" titletext="부서코드 HELP" oninit="SMRPS90500_oninit" onload="SMRPS90500_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="0" class="div_SA" position="absolute 0 0 580 30">
- <Layouts>
- <Layout>
- <Edit id="ipt_refcond" taborder="1" class="input_s_essential" position="absolute 269 6 368 25" autoselect="true" autoskip="true" imemode="hangul" onkeyup="group2_ipt_refcond_onkeyup"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 519 4 575 26" onclick="group2_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 512 0 518 29"/>
- <Static id="caption2" text="조회조건:" class="search_name" position="absolute 185 7 271 24"/>
- <Radio id="rdo_refcond" taborder="3" columncount="2" rowcount="0" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" class="radio_search" position="absolute 13 5 165 25" onitemchanged="group2_rdo_refcond_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="부(실) 리스트" class="tit_2" position="absolute 0 34 107 56"/>
- <Grid id="grd_deptlist" taborder="1" binddataset="ds_main_deptcodelist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 55 580 520" oncelldblclick="grd_deptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="128"/>
- <Column size="409"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="부(실)코드"/>
- <Cell col="2" text="부(실)명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:deptcd"/>
- <Cell col="2" style="align:left middle;" text="bind:deptnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 50 580 56"/>
- <Shape id="line32" class="line_6" position="absolute 1 519 581 525"/>
- <Button id="btn_confirm" taborder="2" text="확인" class="btn4" position="absolute 465 523 521 545" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 524 523 580 545" 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="deptcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond"/>
- <Col id="deptnm"/>
- <Col id="deptcd"/>
- <Col id="instcd"/>
- <Col id="basedd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="체크여부"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </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_target_defaultvalue" 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"/>
- <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
- <BindItem id="item1" compid="group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
- </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";
- function SMRPS90500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPS90500_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_deptlist);
-
- misfGridInit(grd_deptlist);
-
- try
- {
- ds_send_deptref.setColumn(0, "instcd", arg_ds_target_defaultvalue.getColumn(0, "instcd"));
- }
- 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, "basedd", ds_target_defaultvalue.getColumn(0, "basedd"));
- ds_send_deptref.setColumn(0, "refcond", "deptnm");
-
- group2.ipt_refcond.setFocus();
-
- if(ds_target_validation.rowcount == 0)
- {
- group2_btn_search_onclick();
- }
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(group2.rdo_refcond.value == "deptnm")
- {
- ds_send_deptref.setColumn(0, "deptnm", group2.ipt_refcond.value);
- }
- else
- {
- ds_send_deptref.setColumn(0, "deptcd", group2.ipt_refcond.value);
- }
- var oParam = {};
- oParam.id = "TRRPS90501";
- oParam.service = "educationmngtapp.EduCationMngt";
- oParam.method = "reqGetBaseDeptCDList";
- oParam.inds = "req=ds_send_deptref";
- oParam.outds = "ds_main_deptcodelist=deptcodelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPS90501";
- tranf_submit(oParam);
-
- dsf_setFixVal(ds_main_deptcodelist, "chkyn:N");
- }
- 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";
- }
-
- group2.ipt_refcond.setFocus();
- }
- function group2_ipt_refcond_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group2_btn_search_onclick();
- }
- }
- function grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- btn_confirm_onclick();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListReturn(grd_deptlist);
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- ]]></Script>
- </Form>
- </FDL>
|