123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNG00402" position="absolute 0 0 600 550" titletext="린넨청구부서코드 HELP" oninit="SPMNG00402_oninit" onload="SPMNG00402_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 5 318 24" 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 7 212 24" id="caption2" class="search_name"/>
- <Radio position="absolute 3 4 138 24" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" style="border:1 solid #808080ff ;" onitemclick="group3_group2_rdo_refcond_onitemclick"/>
- </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="23"/>
- <Column size="128"/>
- <Column size="388"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="부서코드"/>
- <Cell col="3" text="부서명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == "Y" || chkyn == 1) ? 1 : 0"/>
- <Cell col="2" style="align:left middle;" text="bind:deptcd"/>
- <Cell col="3" style="align:left middle;" text="bind:depthngnm"/>
- </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" oncolumnchanged="ds_main_deptcodelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256"/>
- <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="chkyn"/>
- <Col id="deptcd"/>
- <Col id="depthngnm"/>
- <Col id="csrreqdeptcd2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target" 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>
- <Col id="refcond"/>
- <Col id="deptnm"/>
- <Col id="deptcd"/>
- <Col id="instcd"/>
- </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>
- <Col id="cdgrupid"/>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </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_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </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 SPMNG00402_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNG00402_onload(obj:Form, e:LoadEventInfo)
- {
- misfGridInit(group3.grd_deptlist);
-
- ds_main_deptcodelist.copyData(ds_target_validation_deptcodelist);
-
- ds_send_deptref.setColumn(0, "instcd", ds_target_defaultvalue.getColumn(0, "instcd"));
-
- ds_send_deptref.setColumn(0, "refcond", "deptnm");
-
- 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") {
- dsf_makeValue(ds_send_deptref,"deptnm", "string", group3.group2.ipt_refcond.text);
- dsf_makeValue(ds_send_deptref,"deptcd", "string", "");
- }
- else {
- dsf_makeValue(ds_send_deptref,"deptcd", "string", group3.group2.ipt_refcond.text);
- dsf_makeValue(ds_send_deptref,"deptnm", "string", "");
- }
- var oParam = {};
- oParam.id = "TRMNG00403";
- oParam.service = "csrapp.CsrMngt";
- oParam.method = "reqGetLnDeptList";
- oParam.inds = "req=ds_send_deptref";
- oParam.outds = "ds_main_deptcodelist=deptcodelist";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- dsf_setFixVal(ds_main_deptcodelist, "chkyn:N");
- }
- 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 ds_main_deptcodelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "chkyn" ){
- obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- 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)
- {
- if(ds_main_deptcodelist.rowcount == 0)
- {
- sysf_messageBox("적용할 내역이","I004");
- this.close();
- return;
- }
- //var iParam = model.getValue(grd_deptlist.nodeset);
-
- ds_main_deptcodelist.filter("chkyn=='Y'");
- var rCVS = dsf_getDsCSV(ds_main_deptcodelist);
-
- ds_main_deptcodelist.filter("");
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SPMNG00402_", rCVS);
-
- } else {
- var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
- }
- this.close();
- }
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- ]]></Script>
- </Form>
- </FDL>
|