123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB03600" position="absolute 0 0 1195 780" titletext="통계대분류코드관리" oninit="SMAEB03600_oninit" onload="SMAEB03600_onload">
- <Layouts>
- <Layout>
- <Static text="통계대분류 코드 관리" position="absolute 0 0 160 26" id="caption6" class="tit_1"/>
- <Div position="absolute 0 25 1195 60" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 1113 7 1119 29" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
- <Button position="absolute 1125 7 1181 29" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- <Edit position="absolute 130 8 230 27" id="ipt_basecd" class="input_search" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
- <Static text="통계대분류코드 :" position="absolute 15 9 140 26" id="caption25" class="search_name"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 87 1195 91" linetype="horizontal" id="line2" class="line_1" anchor="left top right"/>
- <Button position="absolute 1085 67 1138 86" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 1142 67 1195 86" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
- <Grid position="absolute 0 89 1195 756" id="grd_eqmtlist" binddataset="ds_main_eqmtlist" anchor="all" autoenter="key" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="161"/>
- <Column size="409"/>
- <Column size="470"/>
- <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"/>
- <Cell col="6"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:basecdflag"/>
- <Cell col="6" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 590 62 690 82" id="button1" visible="false" text="button1" onclick="button1_onclick"/>
- <Button position="absolute 1139 758 1195 780" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="btn_save_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_eqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING"/>
- <Column id="basecd" type="STRING"/>
- <Column id="basecdflagdesc" type="STRING"/>
- <Column id="basecdcnts" type="STRING"/>
- <Column id="basecdflag" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <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="kbasecdflag" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="basesuppdeptcd"/>
- <Col id="kbasecdflag"/>
- </Row>
- </Rows>
- </Dataset>
- </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 : 2016-03-29
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-03-29 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : lf_Init
- * Description : 초기화
- * Argument :
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function lf_Init(){
- ds_main_eqmtlist.clearData();
- }
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : 의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB03600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMAEB03600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB03600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMAEB03600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_eqmtlist, 0);
- grdf_setGridSort(grd_eqmtlist);
-
- lf_Init();
-
- lf_aezfSetSuppDeptcd();
-
- ds_send.setColumn(0, "kbasecdflag", "H");
-
- grp_sea.ipt_basecd.setFocus();
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회 버튼 클릭
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
-
- ds_send.setColumn(0, "basesuppdeptcd", suppdeptcd);
-
- ds_main_eqmtlist.clearData();
-
- var oParam = {};
- oParam.id = "TRAEB03601";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqGetEqmtCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_eqmtlist=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB03601";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.ipt_basecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 장비코드 Enter Event
- ****************************************************************************************/
- function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if ( e.keycode == 13 ) {
- obj.updateToDataset();
- grp_sea.btn_sea.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가 버튼
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_eqmtlist.addRow();
-
- if( ds_main_eqmtlist.getColumnInfo("basesuppdeptcd") == null )
- ds_main_eqmtlist.addColumn("basesuppdeptcd", "STRING");
- if( ds_main_eqmtlist.getColumnInfo("basecdflag") == null )
- ds_main_eqmtlist.addColumn("basecdflag", "STRING");
-
- ds_main_eqmtlist.setColumn(nRow, "basesuppdeptcd", suppdeptcd);
- ds_main_eqmtlist.setColumn(nRow, "basecdflag", "H");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제 버튼
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_eqmtlist, true);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : ??
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- alert(ds_main_eqmtlist.getRowType(ds_main_eqmtlist.rowposition));
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onsetfocus
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장 버튼
- ****************************************************************************************/
- function btn_save_onsetfocus(obj:Button, e:SetFocusEventInfo)
- {
- //checkKeyColumn("grd_eqmtlist");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장 버튼
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 ) {
- dsf_createDs("ds_send_req");
- var oDsUpdate = grdf_getGridUpdateData(grd_eqmtlist);
- grdf_setStatusColumn(oDsUpdate, "m");
- ds_send_req.copyData(oDsUpdate, true);
-
- if(ds_send_req.getRowCount() < 1 ){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
-
- dsf_createDs("ds_hidden", [{col:"count", type:"STRING", size:256}]);
- if( !utlf_isNull(ds_send_req.getColumnInfo("basecdflag")))
- ds_send_req.updateColID("basecdflag", "kbasecdflag");
-
- dsf_setTypeFormat(ds_send_req, "sortno:BICDECIMAL");
-
- var oParam = {};
- oParam.id = "TXAEB03601";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqExeEqmtCodeList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB03601";
- tranf_submit(oParam);
-
- }
-
- }
- grp_sea.btn_sea.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|