123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRPZ00300" classname="SPRPZ00300_공통코드HELP" inheritanceid="" position="absolute 0 0 580 560" titletext="SPRPZ00300_공통코드HELP" oninit="SPRPZ00300_oninit" onload="SPRPZ00300_onload">
- <Layouts>
- <Layout>
- <Div id="div_search" taborder="0" position="absolute 0 0 580 35" class="div_SA">
- <Layouts>
- <Layout>
- <Radio id="rdo_refcond" taborder="0" position="absolute 15 8 125 28" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" style="itempadding:0 3 0 0;border:1 solid black ;" rowcount="-1" columncount="-1" onitemchanged="div_search_rdo_refcond_onitemchanged"/>
- <Static id="Static00" text="조회조건 :" position="absolute 207 8 283 28" class="search_name"/>
- <Edit id="edt_refcond" taborder="1" position="absolute 287 8 386 28" imemode="hangul" onkeydown="div_search_edt_refcond_onkeydown"/>
- <Shape id="Shape00" position="absolute 491 8 495 28" linetype="vertical"/>
- <Button id="btn_search" taborder="2" text="조회" position="absolute 512 8 568 28" class="btn1" onclick="div_search_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="Static00" text="공통 코드 리스트" position="absolute 0 44 132 64" class="tit_2"/>
- <Shape id="Shape00" position="absolute 0 58 580 70" class="line_10"/>
- <Grid id="grd_comcdlist" taborder="1" useinputpanel="false" position="absolute 0 66 580 533" autofittype="col" binddataset="ds_main_comcodelist" oncelldblclick="grd_comcdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="128"/>
- <Column size="411"/>
- </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" text="expr:currow + 1"/>
- <Cell col="1" displaytype="text" text="bind:cdid"/>
- <Cell col="2" displaytype="text" text="bind:cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_confirm" taborder="2" text="확인" position="absolute 465 540 521 560" class="btn4" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="취소" class="btn3" position="absolute 524 540 580 560" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <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">cdid</Col>
- </Row>
- <Row>
- <Col id="label">코드명</Col>
- <Col id="value">cdnm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_comcdref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="refcond" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdgrupid"/>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- <Col id="refcond"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_comcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SPRPZ00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPRPZ00300_onload(obj:Form, e:LoadEventInfo)
- {
- misfGridInit(grd_comcdlist);
-
- ds_send_comcdref.setColumn(0, "cdgrupid", arg_ds_target.getColumn(0, "cdgrupid"));
- //
- // model.copyNode("root/main/comcd","/root/target/validation");
- //
- div_search.rdo_refcond.value = "cdnm";
- div_search.edt_refcond.setFocus();
- div_search.btn_search.click();
- }
- function div_search_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(e.postvalue == "cdnm") {
- div_search.edt_refcond.imemode = "hangul";
- } else {
- div_search.edt_refcond.imemode = "none";
- }
-
- div_search.edt_refcond.setFocus();
- }
- function div_search_edt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- div_search.btn_search.click();
- }
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(div_search.rdo_refcond.value == "cdnm") {
- ds_send_comcdref.setColumn(0, "cdnm", div_search.edt_refcond.text);
- ds_send_comcdref.setColumn(0, "cdid", "");
- }
- else {
- ds_send_comcdref.setColumn(0, "cdid", div_search.edt_refcond.text);
- ds_send_comcdref.setColumn(0, "cdnm", "");
- }
-
- var oParam = {};
- oParam.id = "TRRPZ00301";
- oParam.service = "miscommoncdrefapp.CommonCdRef";
- oParam.method = "reqGetComCdList";
- oParam.inds = "req=ds_send_comcdref";
- oParam.outds = "ds_main_comcodelist=comcodelist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function grd_comcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- btn_confirm.click();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListReturn(grd_comcdlist);
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- ]]></Script>
- </Form>
- </FDL>
|