123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNG00300" position="absolute 0 0 600 550" titletext="CSR청구부서코드 HELP" oninit="SPMNG00300_oninit" onload="SPMNG00300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 580 520" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 580 30" id="group2">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 580 29" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
- <Edit position="absolute 219 6 318 25" id="ipt_refcond" class="input_essential" onkeydown="group3_group2_ipt_refcond_onkeydown" autoselect="true"/>
- <Button position="absolute 519 4 575 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 512 0 518 29" linetype="vertical" id="line13" class="line_4"/>
- <Static text="조회조건:" position="absolute 146 6 212 23" id="caption2" class="search_name"/>
- <Radio position="absolute 3 5 137 25" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" onitemclick="group3_group2_rdo_refcond_onitemclick" style="border:1 solid #808080ff ;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="부서 리스트" position="absolute 0 35 95 51" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 51 580 57" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 55 580 520" id="grd_deptlist" binddataset="ds_main_deptcodelist" oncelldblclick="group3_grd_deptlist_oncelldblclick" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="128"/>
- <Column size="409"/>
- <Column size="100"/>
- </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" text="expr:currow + 1"/>
- <Cell col="1" style="align:left middle;" text="bind:deptcd"/>
- <Cell col="2" style="align:left middle;" text="bind:depthngnm"/>
- <Cell col="3" style="align:left middle;" text="bind:csrreqdeptcd2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 521 580 548" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 461 2 517 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 520 2 576 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="csrreqdeptcd2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="depthngnm"/>
- <Col id="csrreqdeptcd2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target_validation_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_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"/>
- </ColumnInfo>
- <Rows>
- <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"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
- <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SPMNG00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNG00300_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_deptcodelist.clearData();
-
- var flag = sysf_getModelProperty("flag"); //한글 영문 구분을 가져온다.
-
- if(flag == "1") {
- ds_send_deptref.setColumn(0, "refcond", "deptcd");
- ds_send_deptref.setColumn(0, "refcond", "deptnm");
- } else {
- ds_send_deptref.setColumn(0, "refcond", "deptnm");
- }
-
- ds_send_deptref.setColumn(0, "instcd", sysf_getModelProperty("instcd"));
-
-
- group3.group2.ipt_refcond.imemode = "hangul";
-
- group3.group2.ipt_refcond.setFocus();
-
- if( ds_target_validation_deptcodelist.rowcount == 0)
- {
- frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
- }
- }
- function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
- }
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(group3.group2.rdo_refcond.value == "deptnm") {
- ds_send_deptref.setColumn(0, "deptnm", group3.group2.ipt_refcond.text);
- }
- else {
- ds_send_deptref.setColumn(0, "deptcd", group3.group2.ipt_refcond.text);
- }
-
- var oParam = {};
- oParam.id = "TRMNG00303";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetCsrDeptList2";
- oParam.inds = "req=ds_send_deptref";
- oParam.outds = "ds_main_deptcodelist=deptcodelist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function group3_group2_rdo_refcond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
- {
- if(group3.group2.rdo_refcond.value == "deptnm") {
- group3.group2.ipt_refcond.imemode = "hangul";
- }
- else if (group3.group2.rdo_refcond.value == "deptcd") {
- group3.group2.ipt_refcond.imemode = "none";
- }
- else {
- group3.group2.ipt_refcond.imemode = "none";
- }
- group3.group2.ipt_refcond.setFocus();
- }
- function group3_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1 && e.col > -1)
- {
- frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
- }
- }
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var deptcd = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "deptcd");
- var deptnm = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "depthngnm");
- var csrreqdeptcd = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "csrreqdeptcd2");
-
- sysf_setModelProperty("deptcd",deptcd);
- sysf_setModelProperty("deptnm",deptnm);
- sysf_setModelProperty("csrreqdeptcd",csrreqdeptcd);
-
- this.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- ]]></Script>
- </Form>
- </FDL>
|