123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRSD00130" position="absolute 0 0 902 532" titletext="대분류코드 검색화면" onload="SPRSD00130_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 900 501" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 900 40" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Edit position="absolute 599 10 719 29" id="ipt_refcond" class="input_essential" anchor="default" onkeydown="group3_group2_ipt_refcond_onkeydown"/>
- <Button position="absolute 829 9 885 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
- <Shape position="absolute 811 8 817 31" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="조회조건:" position="absolute 515 12 601 29" id="caption2" class="search_name" anchor="default"/>
- <Radio position="absolute 342 10 505 30" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="ds_init_refcond" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="group3_group2_rdo_refcond_onitemchanged"/>
- <Static text="조회구분:" position="absolute 258 12 344 29" id="caption3" class="search_name" anchor="default"/>
- <Static text="물품구분:" position="absolute 15 12 101 29" id="caption4" class="search_name" anchor="default"/>
- <Combo position="absolute 100 10 232 29" id="cmb_goodflag" taborder="1" class="combo_essential" innerdataset="ds_init_goodflag" datacolumn="cdnm" codecolumn="cdid" anchor="default" onitemchanged="group3_group2_cmb_goodflag_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="대분류리스트" position="absolute 0 51 145 72" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 67 900 73" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 72 900 500" id="grd_lrgllist" binddataset="ds_main_lrglist" anchor="default" oncelldblclick="group3_grd_lrgllist_oncelldblclick" selecttype="multirow" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="130"/>
- <Column size="170"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="130"/>
- <Column size="120"/>
- <Column size="115"/>
- </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="물품구분"/>
- <Cell col="4" text="주관리부서코드"/>
- <Cell col="5" text="주관리부서명"/>
- <Cell col="6" text="계정코드"/>
- <Cell col="7" text="비용계정"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" text="bind:lrgcd"/>
- <Cell col="2" displaytype="text" text="bind:lrgnm"/>
- <Cell col="3" displaytype="text" text="bind:goodflag"/>
- <Cell col="4" displaytype="text" text="bind:mainmngtdeptcd"/>
- <Cell col="5" displaytype="text" text="bind:mainmngtdeptnm"/>
- <Cell col="6" displaytype="text" text="bind:winacnt"/>
- <Cell col="7" displaytype="text" text="bind:amtacnt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 500 900 527" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 787 5 843 27" id="btn_confirm" class="btn4" text="확인" anchor="default" onclick="group1_btn_confirm_onclick"/>
- <Button position="absolute 844 5 900 27" id="btn_cancel" class="btn4" text="취소" anchor="default" onclick="group1_btn_cancel_onclick"/>
- <Shape position="absolute 0 0 900 6" id="line32" class="line_6" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_lrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="refcond" type="STRING" size="256"/>
- <Column id="lrgnm" type="STRING" size="256"/>
- <Column id="lrgcd" type="STRING" size="256"/>
- <Column id="goodflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="refcond"/>
- <Col id="lrgnm"/>
- <Col id="lrgcd"/>
- <Col id="goodflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="goodflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodflag">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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">lrgcd</Col>
- </Row>
- <Row>
- <Col id="label">대분류명</Col>
- <Col id="value">lrgnm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_target_recvitem" 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" columnid="lrgnm"/>
- <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
- <BindItem id="item2" compid="group3.group2.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPRSD00130_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_lrgllist);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- ds_send.updatecontrol = false;
- try{
- ds_target.copyData(arg_ds_target);
- ds_target_recvitem.copyData(arg_ds_target_recvitem);
- ds_target_defaultvalue.copyData(arg_ds_target_defaultvalue)
- }catch(e){}
- misfComboComCdList("R0025", group3.group2.cmb_goodflag); //물품구분
- ds_send.setColumn(0, "goodflag", eval(PURTARGET_NODE).getColumn(0,"goodflag"));
- group3.group2.rdo_refcond.index = 1;
- group3.group2.btn_search.click();
- group3.group2.ipt_refcond.setFocus();
- ds_send.updatecontrol = true;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- if(group3.group2.rdo_refcond.value == "lrgnm") {
- ds_send.setColumn( 0, "lrgnm",group3.group2.ipt_refcond.text);
- }
- else {
- ds_send.setColumn( 0, "lrgcd",group3.group2.ipt_refcond.text);
- }
-
- var oParam = {};
- oParam.id = "TRRSD00131";
- oParam.service = "purccommonapp.PurcCommon";
- oParam.method = "reqGetLrgCdListByCond";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_lrglist=lrglist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSD00131";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 물품구분 변경
- ****************************************************************************************/
- function group3_group2_cmb_goodflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- group3.group2.btn_search.click();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 대분류리스트 선택
- ****************************************************************************************/
- function group3_grd_lrgllist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if( e.row > -1 ) {
- group1.btn_confirm.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
- misfPopUpListReturn(group3.grd_lrgllist);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 취소
- ****************************************************************************************/
- function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 조회구분
- ****************************************************************************************/
- function group3_group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(group3.group2.rdo_refcond.value == "lrgnm") {
- group3.group2.ipt_refcond.imemode = "hangul";
- }
- else if (group3.group2.rdo_refcond.value == "lrgcd") {
- group3.group2.ipt_refcond.imemode = "none";
- }
- else {
- group3.group2.ipt_refcond.imemode = "none";
- }
- group3.group2.ipt_refcond.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|