123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB04400" position="absolute 0 0 1202 805" titletext="통계대분류코드관리" oninit="SMAEB04400_oninit" onload="SMAEB04400_onload">
- <Layouts>
- <Layout>
- <Static id="caption19" text="통계대분류코드관리" class="tit_1" position="absolute 0 0 258 24"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 1195 99"/>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 24 1195 64">
- <Layouts>
- <Layout>
- <Static id="caption2" text="통계대분류코드 :" class="search_name" position="absolute 15 12 140 29"/>
- <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 145 11 280 30" autoselect="true" onkeyup="grp_sea_ipt_basecd_onkeyup"/>
- <Button id="button61" taborder="2" class="icon_search" position="absolute 285 12 301 28" onclick="grp_sea_button61_onclick"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_grdadd" taborder="2" text="행추가" class="btn2" position="absolute 1086 74 1139 93" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 74 1195 93" anchor="top right" onclick="btn_grddel_onclick"/>
- <Static id="caption1" text="통계대분류코드관리" class="tit_2" position="absolute 0 77 145 98"/>
- <Grid id="grd_bodypart" taborder="4" binddataset="ds_main_bodypartlist_bodypart" useinputpanel="false" position="absolute 0 98 1195 768" cellsizingtype="col" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24" band="left"/>
- <Column size="79"/>
- <Column size="113"/>
- <Column size="762"/>
- <Column size="209"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="basecdflag"/>
- <Cell col="6" text="basesuppdeptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editautoselect="true"/>
- <Cell col="2" displaytype="text" edittype="text" editfilter="upper" text="bind:basecd" editimemode="alpha" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
- <Cell col="5" text="bind:basecdflag"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line32" class="line_6" position="absolute 0 769 1195 775" anchor="left right bottom"/>
- <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1139 774 1195 796" anchor="right bottom" onclick="btn_save_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="bbasecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bodypartlist_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basecd" type="STRING" size="256" sumtext="기본코드구분"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="basecdflag" type="STRING" size="256" sumtext="부서코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
- </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 "ast_examcurexp::AEZ0001.xjs";
- var vSuppdeptcd ;
- function SMAEB04400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAEB04400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_bodypart);
- grdf_setRowTypeIcon(grd_bodypart, 0);
-
- lf_aezfSetSuppDeptcd();
- vSuppdeptcd = frmf_getPrestDeptCd();
-
- ds_send.setColumn(0, "basesuppdeptcd", vSuppdeptcd);
-
- ds_main_bodypartlist_bodypart.clearData();
-
- grp_sea.ipt_basecd.setFocus();
- }
- function grp_sea_ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_sea.click();
- }
- }
- function grp_sea_button61_onclick(obj:Button, e:ClickEventInfo)
- {
- //이벤트없음
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_setFixVal(ds_send, "bbasecdflag:H");
- var oParam = {};
- oParam.id = "TRAEB04401";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqGetBodyPartList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bodypartlist_bodypart=bodypart ds_=bodypartgrp";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04401";
- tranf_submit(oParam);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var irow = ds_main_bodypartlist_bodypart.addRow();
- ds_main_bodypartlist_bodypart.setColumn(irow, "basesuppdeptcd",ds_send.getColumn(0, "basesuppdeptcd"));
- ds_main_bodypartlist_bodypart.clearSelect();
- ds_main_bodypartlist_bodypart.selectRow(irow);
- ds_main_bodypartlist_bodypart.rowposition = irow;
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var rows = grdf_getSelectedRows(grd_bodypart);
- for(var i = rows.length-1; i >= 0; i--)
- {
- var m_row = rows[i];
- if(ds_main_bodypartlist_bodypart.getRowType(m_row) == 2)
- {
- ds_main_bodypartlist_bodypart.deleteRow(m_row);
- }
- else
- {
- ds_main_bodypartlist_bodypart.updatecontrol = false;
- ds_main_bodypartlist_bodypart.setRowType(m_row, "d");
- ds_main_bodypartlist_bodypart.updatecontrol = true;
- }
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 )
- {
- var update = grdf_getGridUpdateData(grd_bodypart);
- grdf_setStatusColumn(update, "m");
- ds_send_req_data.copyData(update, true);
- if(ds_send_req_data.rowcount == 0)
- {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- }
- else
- {
- dsf_setFixVal(ds_send_req_data, "bbasecdflag:H");
- var oParam = {};
- oParam.id = "TXAEB00601";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqExeBodyPartList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB00601";
- tranf_submit(oParam);
- }
- }
- dsf_setFixVal(ds_send, "bbasecdflag:H");
- var oParam = {};
- oParam.id = "TRAEB04401";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqGetBodyPartList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_bodypartlist_bodypart=bodypart ds_=bodypartgrp";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04401";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|