123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB01100" position="absolute 0 0 1256 805" titletext="선량율 측정 항목관리" oninit="model1_oninit" onload="SMAEB01100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="선량율 측정 항목관리" class="tit_1" position="absolute 0 0 170 25" positiontype="position"/>
- <Static id="caption14" text="선량율측정항목" class="tit_2" position="absolute 0 77 147 97" positiontype="position"/>
- <Grid id="grd_cntmlist" taborder="3" useinputpanel="false" position="absolute 0 97 1256 782" anchor="all" binddataset="ds_grid_item" positiontype="position" cellsizingtype="col" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="67"/>
- <Column size="111"/>
- <Column size="345"/>
- <Column size="693"/>
- </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="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="number" edittype="text" editfilter="number" style="align:left middle;" 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"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Button id="btn_grdadd" taborder="4" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 1141 74 1197 94" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="5" 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="7" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1200 785 1256 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick" onmouseenter="btn_save_onmouseenter"/>
- <Div id="Div00" taborder="8" text="Div00" class="div_SA" anchor="left top right" position="absolute 0 26 1256 68" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption25" text="코드" class="search_name" position="absolute 8 10 94 30" anchor="default" positiontype="position"/>
- <Edit id="input8" taborder="1" class="input_search" position="absolute 56 10 156 30" anchor="default" imemode="hangul" positiontype="position"/>
- <Button id="btn_sea" taborder="3" 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_item" 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"/>
- <Column id="basecdold" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMAEB01100_선량율측정항목관리.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 : SMAEB01100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB01100_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- lf_aezfSetSuppDeptcd();
- grdf_setRowTypeIcon(grd_cntmlist,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.input8.value}
- ,{col:"basesuppdeptcd", val:suppdeptcd}
- ,{col:"basecdflag", val:"M"}]);
-
- var objParam = new Object();
- objParam.id = "TRAEB01101";
- objParam.service = "examcurebaseapp.ExamCureCode";
- objParam.method = "reqGetCntmInspGoodMngt";
- objParam.inds = "req=ds_cond_req";
- objParam.outds ="ds_grid_item=item";
- tranf_submit(objParam);
- }
- /****************************************************************************************
- * 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_item.addRow();
- ds_grid_item.setColumn(grd_cntmlist.currentrow,"sortno",grd_cntmlist.currentrow+1);
- ds_grid_item.setColumn(grd_cntmlist.currentrow,"basesuppdeptcd",suppdeptcd);
- ds_grid_item.setColumn(grd_cntmlist.currentrow,"basecdflag","M");
-
- }
- /****************************************************************************************
- * 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_cntmlist, true); //현재row 데이터 삭제설정(true:실제데이터 삭제, false:상태만변경)
- }
- /****************************************************************************************
- * 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)
- {
- var tmpbasecd = "";
- for(var i=0; i<ds_grid_item.rowcount; i++){
- if(utlf_isNull(ds_grid_item.getColumn(i,"basecd"))){
- sysf_messageBox("코드값이 입력되지 않았습니다.","E999");
- return;
- }else{
- tmpbasecd = ds_grid_item.getColumn(i,"basecd");
- }
-
- for(var j=0; j<ds_grid_item.rowcount; j++){
- if(tmpbasecd == ds_grid_item.getColumn(j,"basecd") && i!=j){
- sysf_messageBox("중복된 코드값이 존재합니다.","E999");
- return;
- }
- }
- }
-
- if ( sysf_messageBox("","Q002")==6 ) {
- var objParam = new Object();
- objParam.id = "TXAEB01101";
- objParam.service = "examcurebaseapp.ExamCureCode";
- objParam.method = "reqExeCntmInspGoodMngt";
- objParam.inds = "req=ds_grid_item:U";
- objParam.typeStr="m";
- objParam.callback="cbf_TXAEB01101";;
- tranf_submit(objParam);
- }
- }
- function cbf_TXAEB01101(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- Div00.btn_sea.click();
- }else{
-
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|