123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB02300" position="absolute 0 0 1256 805" titletext="오염측정지점코드관리" oninit="model1_oninit" onload="SMAEB02300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="오염측정지점코드관리" class="tit_1" position="absolute 0 0 192 25" positiontype="position"/>
- <Static id="caption14" text="오염측정지점코드" class="tit_2" position="absolute 0 77 147 97" positiontype="position"/>
- <Grid id="grd_list" taborder="2" useinputpanel="false" position="absolute 0 97 1256 783" autofittype="col" anchor="all" binddataset="ds_grid_grd_list" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="67"/>
- <Column size="111"/>
- <Column size="345"/>
- <Column size="627"/>
- <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="caption1"/>
- <Cell col="6" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editlimit="4" editlengthunit="utf8"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editlimit="12" editlengthunit="utf8"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editlimit="100" editlengthunit="utf8"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:basecdflag"/>
- <Cell col="6" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_grdadd" taborder="3" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 1140 74 1196 94" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="4" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" onclick="btn_grddel_onclick"/>
- <Button id="btn_save" taborder="6" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1200 786 1256 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick" onmouseenter="btn_save_onmouseenter"/>
- <Div id="Div00" taborder="7" text="Div00" class="div_SA" anchor="left top right" position="absolute 0 26 1256 68">
- <Layouts>
- <Layout>
- <Static id="caption3" text="코드" class="search_name" position="absolute 8 10 94 30" anchor="default" positiontype="position"/>
- <Edit id="input1" taborder="1" class="input_search" position="absolute 57 10 157 30" anchor="default" imemode="hangul" positiontype="position"/>
- <Button id="btn_sea" taborder="2" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno"/>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- <Column id="basecdcnts"/>
- <Column id="basesuppdeptcd"/>
- <Column id="basecdflag"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMAEB02300_오염측정지점코드.xfdl
- * Creator :
- * Make Date : 2016.06.15
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- /****************************************************************************************
- * Components :
- * Components ID : SMAEB02300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB02300_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- lf_aezfSetSuppDeptcd();
- grdf_setRowTypeIcon(grd_list,0);
- Div00.btn_sea.click();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDsRow("ds_cond_req",
- [{col:"basecd", val:Div00.input1.value},
- {col:"basecdflag", val:"Q"},
- {col:"basesuppdeptcd", val:suppdeptcd}]);
-
- var objParam = new Object();
- objParam.id = "TRAEB02301";
- objParam.service = "examcurebaseapp.ExamCureCode";
- objParam.method = "reqGetCntmInspCdMngt";
- objParam.inds = "req=ds_cond_req";
- objParam.outds ="ds_grid_grd_list=item";
- tranf_submit(objParam);
- }
- /****************************************************************************************
- * Components :
- * 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_list, false); //현재row 데이터 삭제설정(true:실제데이터 삭제, false:상태만변경)
-
- }
- /****************************************************************************************
- * Components :
- * 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)
- {
- ds_grid_grd_list.addRow();
- ds_grid_grd_list.setColumn(grd_list.currentrow,"basecdflag","Q");
- ds_grid_grd_list.setColumn(grd_list.currentrow,"basesuppdeptcd",suppdeptcd);
- }
- /****************************************************************************************
- * Components :
- * 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)
- {
- for(var i=0; i<ds_grid_grd_list.rowcount; i++){
- if(utlf_isNull(ds_grid_grd_list.getColumn(i,"basecd"))){
- sysf_messageBox("코드값이 입력되지 않았습니다.","E999");
- return;
- }
- }
- if ( sysf_messageBox("","Q002")==6 ) {
- var objParam = new Object();
- objParam.id = "TXAEB02301";
- objParam.service = "examcurebaseapp.ExamCureCode";
- objParam.method = "reqExeCntmInspGoodMngt";
- objParam.inds = "req=ds_grid_grd_list:U";
- objParam.callback = "cbf_TXAEB02301";
- objParam.typeStr = "m"
- tranf_submit(objParam);
-
- }
- }
- function cbf_TXAEB02301(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- ds_grid_grd_list.clear();
- Div00.btn_sea.click();
- }else{
-
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|