123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB03200" position="absolute 0 0 1256 805" titletext="핵종규격관리" onload="SMAEB03200_onload">
- <Layouts>
- <Layout>
- <Static id="caption19" class="tit_1" position="absolute 0 0 142 25" anchor="default" positiontype="position" text="핵종 규격 관리"/>
- <Shape id="line2" class="line_1" position="absolute 0 82 1195 82" anchor="default" positiontype="position" linetype="horizontal"/>
- <Button id="btn_grdadd" class="btn2" position="absolute 1141 74 1197 94" anchor="top right" positiontype="position" text="행추가" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" text="행삭제" onclick="btn_grddel_onclick"/>
- <Grid id="grd_speclist" position="absolute 0 96 1256 781" anchor="all" positiontype="position" autofittype="col" binddataset="ds_speclist" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="131"/>
- <Column size="233"/>
- <Column size="128"/>
- <Column size="683"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </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" edittype="expr:getRowType(currow)==2 ? 'text' : 'none'" style="align:left middle;" class="cell_nopadding" text="bind:speccd" editlimit="10" editlengthunit="utf8"/>
- <Cell col="2" edittype="text" class="cell_nopadding" text="bind:specnm" editlimit="100" editlengthunit="utf8"/>
- <Cell col="3" displaytype="number" edittype="masknumber" style="align:right middle;" class="cell_nopadding" text="bind:exchval" mask="###,##0.0000" editlimit="15" editlimitbymask="both" editlengthunit="utf8"/>
- <Cell col="4" displaytype="text" edittype="text" class="cell_nopadding" text="bind:rem" editlimit="100" editlengthunit="utf8"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="1" text="Div00" class="div_SA" anchor="left top right" position="absolute 0 26 1256 68">
- <Layouts>
- <Layout>
- <Static id="caption25" text="규격코드" class="search_name" position="absolute 8 10 94 30" anchor="default"/>
- <Edit id="edt_speccd" taborder="1" class="input_search" position="absolute 82 10 182 30" anchor="default" onkeydown="grp_sea_edt_speccd_onkeydown"/>
- <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1141 782 1197 802" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_close" taborder="3" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 1199 782 1255 802" anchor="right bottom" visible="true"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_speclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="speccd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="specnm" type="STRING" size="256"/>
- <Column id="exchval" type="STRING" size="256"/>
- <Column id="rem" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMAEB03200_핵종규격관리.xfdl
- * Creator :
- * Make Date : 2016-06-15
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- var lgv_suppdeptcd = "";
- /****************************************************************************************
- * Components :
- * Components ID : model1
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB03200_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- lf_aezfSetSuppDeptcd();
- lgv_suppdeptcd = suppdeptcd;
- grdf_setRowTypeIcon(grd_speclist, 0);
-
- // 조회 버튼 클릭 함수
- fn_Search();
- }
- /****************************************************************************************
- * 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)
- {
- fn_Search();
- }
- function fn_Search()
- {
- ds_speclist.clearData();
-
- var objColInfo = new Array();
- objColInfo.push({col: "speccd", val: "%" + utlf_transNullToEmpty(grp_sea.edt_speccd.value)});
- objColInfo.push({col: "suppdeptcd", val: lgv_suppdeptcd});
- dsf_createDsRow("ds_req", objColInfo);
-
- // trace(ds_req.saveXML());
-
- tranf_submit({
- id: "TRAEB03201"
- , service: "examcurebaseapp.GoodCode"
- , method: "reqGetSpecList"
- , inds: "req=ds_req"
- , outds: "ds_speclist=item"
- // , args: "key1='value1' key2='value2' key3="+wrapQuote("value3")
- , async: true
- , callback: "cbf_TRAEB03201"
- , progress: false
- , alert: false
- // , surrogate: "userid='ENRBC' dutplcecd='B051'"
- , typeStr: "s"
- });
- }
- function cbf_TRAEB03201(sSvcId, objErrorCode, objErrorMsg)
- {
- // trace("ds_speclist-->[" + ds_speclist.saveXML() + "]");
- }
- /****************************************************************************************
- * 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)
- {
- var nRow = ds_speclist.addRow();
- ds_speclist.setColumn(nRow, "suppdeptcd", lgv_suppdeptcd);
- }
- /****************************************************************************************
- * 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_speclist, true);
- }
- /****************************************************************************************
- * 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)
- {
- fn_Save();
- }
- function fn_Validation()
- {
- for(var i = 0; i < ds_speclist.rowcount; i++)
- {
- if(utlf_isNull(ds_speclist.getColumn(i, "speccd")) == true)
- {
- sysf_messageBox("규격코드를", "C001", "");
- return false;
- }
-
- if(utlf_isNull(ds_speclist.getColumn(i, "specnm")) == true)
- {
- sysf_messageBox("규격명을", "C001", "");
- return false;
- }
- }
-
- return true;
- }
- function fn_Save()
- {
- if(fn_Validation() == true)
- {
- var objParam = new Object();
- objParam.id = "TXAEB03301";
- objParam.service = "examcurebaseapp.GoodCode"
- objParam.method = "reqExeSpecList";
- objParam.inds = "req=ds_speclist:U"
- objParam.callback = "cbf_TXAEB03201";
- objParam.typeStr = "m";
- objParam.error = false;
-
- tranf_submit(objParam);
- }
- }
- function cbf_TXAEB03201(sSvcId, objErrorCode, objErrorMsg){
- //에러 처리
- if(objErrorCode == 0){
- fn_Search();
- }else{
- astErrorMsg(objErrorMsg);
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- // if (checkOpener()) {
- // opener.model.setValue("/root/init/updtyn","N");
- // }
- // window.close();
- }
- /****************************************************************************************
- * Components :
- * Components ID : edt_speccd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grp_sea_edt_speccd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fn_Search();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|