123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB01200" position="absolute 0 0 1195 780" titletext="장비코드관리" oninit="SMAEB01200_oninit" onload="SMAEB01200_onload">
- <Layouts>
- <Layout>
- <Static text="장비코드 관리" position="absolute 0 0 110 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 104 9 204 28" id="ipt_basecd" class="input_search" anchor="default" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
- <Static text="장비코드 :" position="absolute 15 9 101 26" id="caption25" class="search_name" anchor="default"/>
- </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="행추가" onclick="btn_grdadd_onclick" anchor="top right"/>
- <Button position="absolute 1142 67 1195 86" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick" anchor="top right"/>
- <Grid position="absolute 0 89 1195 756" id="grd_eqmtlist" binddataset="ds_main_eqmtlist" onrbuttondown="grd_eqmtlist_onrbuttondown" autoenter="key" cellsizingtype="col" selecttype="multirow" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="40"/>
- <Column size="241"/>
- <Column size="393"/>
- <Column size="309"/>
- <Column size="120"/>
- <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="장비구분"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </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:excuposseqcd"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:basecdflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 997 67 1083 86" id="btn_fixasetcd" class="btn2" visible="true" text="장비코드조회" onclick="btn_fixasetcd_onclick" anchor="top right"/>
- <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="저장" onsetfocus="btn_save_onsetfocus" onclick="btn_save_onclick" anchor="right bottom"/>
- </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="excuposseqcd" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- <Column id="basecdflag" 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();
- }
- /****************************************************************************************
- * Function : fPopupRpirMngtList
- * Description : 장비 검교정관리를 호출하기 위한 Function
- * Argument :
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function fPopupRpirMngtList() {
-
- var rowidx = ds_main_eqmtlist.rowposition;
-
- var objArg = new Object();
- objArg.arg_basecd = utlf_transNullToEmpty(ds_main_eqmtlist.getColumn(rowidx, "basecd"));
-
- frmf_modal("SMAEQ01200", "SMAEQ01200", objArg, null, null, null, null, null, null, null, null, null, "M");
- //modal("SMAEQ01200","","","","SMAEQ01200", "/root/main/eqmtlist/item["+rowidx+"]/basecd", "/root/send/basecd", "min:visible; max:true; resize:true;");
-
- }
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : 의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB01200
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMAEB01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB01200
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMAEB01200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(grd_eqmtlist, 0);
-
- lf_Init();
-
- lf_aezfSetSuppDeptcd();
-
- grp_sea.ipt_basecd.setFocus();
-
- frmf_createPopupMenu("pmn_popupMenu"
- ,"fPopupRpirMngtList"
- ,[{id: "1", level: "0", title: "장비검교정관리"}]
- );
-
- }
- /****************************************************************************************
- * 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);
- dsf_setFixVal(ds_send, "kbasecdflag:J");
-
- ds_main_eqmtlist.clearData();
-
- var oParam = {};
- oParam.id = "TRAEB01201";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqGetEqmtCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_eqmtlist=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB01201";
- 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", "J");
- }
- /****************************************************************************************
- * 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 : Grid
- * Components ID : grd_eqmtlist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 우클릭 이벤트
- ****************************************************************************************/
- function grd_eqmtlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1){
- grdf_setSelectedCell(obj, e);
- pmn_popupMenu.trackPopup(e.screenX,e.screenY);
- }
-
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_fixasetcd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 장비코드조회 버튼
- ****************************************************************************************/
- function btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_eqmtlist.addRow();
-
- frmf_setParameter("SPAEB00101_param_srcXpath1", "ds_main_eqmtlist");
- frmf_setParameter("SPAEB00101_param_srcXgrid1", "grd_eqmtlist");
- frmf_setParameter("SPAEB00101_param_srcXrow1", nRow);
- frmf_setParameter("SPAEB00101_param_srcXnode1", "basecd");
- frmf_setParameter("SPAEB00101_param_srcXnodenm1", "basecdflagdesc");
-
- frmf_modal("SPAEB00101", "SPAEB00101", null, null, null, null, null, null, null, null, null, null, "M");
-
- 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, "sortno", "0");
- ds_main_eqmtlist.setColumn(nRow, "basecd", "0");
- ds_main_eqmtlist.setColumn(nRow, "basecdflagdesc", "0");
- ds_main_eqmtlist.setColumn(nRow, "basesuppdeptcd", suppdeptcd);
- ds_main_eqmtlist.setColumn(nRow, "basecdflag", "J");
-
- }
- /****************************************************************************************
- * 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 = "TXAEB01201";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqExeEqmtCodeList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB01201";
- tranf_submit(oParam);
-
- }
-
- }
- grp_sea.btn_sea.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|