123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00800" position="absolute 0 0 1192 787" titletext="근무자/실시자 관리" onload="SMAEB00800_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="1" position="absolute 0 25 1191 65" class="div_SA"/>
- <Shape position="absolute 1104 35 1110 57" linetype="vertical" id="line13" class="line_4"/>
- <Button position="absolute 1123 35 1179 57" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick"/>
- <Static text="실시자코드 :" position="absolute 15 38 127 55" id="caption2" class="search_name"/>
- <Button position="absolute 270 37 286 53" id="button61" class="icon_search" text="" onclick="button61_onclick" visible="false"/>
- <Edit position="absolute 130 36 265 55" id="ipt_basecd" class="input_search" onkeydown="ipt_basecd_onkeydown"/>
- <Button position="absolute 1082 70 1135 92" id="btn_gedadd" class="btn2" text="행추가" onclick="btn_gedadd_onclick"/>
- <Button position="absolute 1138 70 1191 92" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
- <Static text="실시자관리" position="absolute 0 76 120 93" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 93 1191 97" id="line1" class="line_10"/>
- <Grid position="absolute 0 97 1191 751" id="grd_execrcode" binddataset="ds_grd_execrcode" oncellclick="grd_execrcode_oncellclick" onchar="grd_execrcode_onchar">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="25"/>
- <Column size="71"/>
- <Column size="97"/>
- <Column size="139"/>
- <Column size="808"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="순번"/>
- <Cell col="3" text="사번"/>
- <Cell col="4" text="성명"/>
- <Cell col="5" text="비고"/>
- <Cell col="6" text="basecdflag"/>
- <Cell col="7" text="basesuppdeptcd"/>
- <Cell col="8" text="seq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="image"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:right middle;padding:0 3 0 3;" text="bind:sortno"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:basecd"/>
- <Cell col="4" displaytype="text" edittype="text" style="padding:0 3 0 3;" text="bind:basecdflagdesc"/>
- <Cell col="5" displaytype="text" edittype="text" style="padding:0 3 0 3;" text="bind:basecdcnts"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basecdflag"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- <Cell col="8" text="bind:seq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 753 1191 780" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 1135 5 1191 27" id="btn_save" class="btn4" text="저장" onclick="grp_btn_btn_save_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="근무자/실시자 관리" position="absolute 0 0 160 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_execrcode" 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"/>
- <Column id="seq" 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="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="ebasecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="m" type="STRING" size="256" sumtext="실행구분"/>
- <Column id="sortno" type="INT" size="256" sumtext="순번"/>
- <Column id="basecd" type="STRING" size="256" sumtext="사번"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="성명"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="비고"/>
- <Column id="ebasecdflag" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="seq" type="INT" size="256" sumtext="순번"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="comprod" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="comprod">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- function fn_TRAEB00801() {
- if (ds_send.rowcount < 1 ) {
- ds_send.addRow();
- }
- ds_send.setColumn(0,'basecd', ipt_basecd.value); //검사실코드
- ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //지원부서코드
- ds_send.setColumn(0,'ebasecdflag', 'E'); //부서코드
-
- var oParam = {};
- oParam.id = "TRAEB00801";
- oParam.service = "examcurebaseapp.ExecrCode";
- oParam.method = "reqGetExecrCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_execrcode=execrcode";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00801";
- tranf_submit(oParam);
- }
- function cf_TRAEB00801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- //check칼럼추가
- if ( utlf_isNull(ds_grd_execrcode.getColumnInfo("ebasecdflag"))) {
- ds_grd_execrcode.addColumn("ebasecdflag","string");
- }
-
- }
- function fn_TXAEB00801() {
- if (ds_send.rowcount < 1 ) {
- ds_send.addRow();
- }
- ds_send.setColumn(0,'basecd', ipt_basecd.value); //검사실코드
- ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //지원부서코드
- ds_send.setColumn(0,'ebasecdflag', 'E'); //부서코드
-
- var oParam = {};
- oParam.id = "TXAEB00801";
- oParam.service = "examcurebaseapp.ExecrCode";
- oParam.method = "reqExeExecrCodeList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB00801";
- tranf_submit(oParam);
- }
- function cf_TXAEB00801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function SMAEB00800_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
-
- sysf_trace("suppdeptcd = " + frmf_getParameter("AST_DEPTCD"));
-
- ds_grd_execrcode.clearData();
- grdf_setRowTypeIcon(grd_execrcode, 1); //status 표시 : 입력, 삭제, 갱신
- ipt_basecd.setFocus();
-
- }
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_TRAEB00801();
- }
- function btn_gedadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_grd_execrcode.addRow();
-
- grd_execrcode.setCellPos(nRow);
- ds_grd_execrcode.setColumn(nRow, "basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
- ds_grd_execrcode.setColumn(nRow, "ebasecdflag","E");
- sysf_trace("nRow = " + nRow);
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var arrRow = new Array();
- arrRow[0] = ds_grd_execrcode.rowposition;
- grdf_setStatus(grd_execrcode, "D", arrRow);
- ds_grd_execrcode.setColumn(arrRow, "ebasecdflag","E");
- }
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 ) {
-
-
- var dsUpdate = grdf_getGridUpdateData(grd_execrcode, "all");
- grdf_setStatusColumn(dsUpdate, "m");
-
- if(dsUpdate.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- ds_send_data.clear();
- ds_send_data.copyData(dsUpdate, true);
-
- dsf_setDefaultVal(ds_send_data, "ubasecdflag:U");
- fn_TXAEB00801();
- }
- }
-
- fn_TRAEB00801();
- }
- function grd_execrcode_onchar(obj:Grid, e:GridEditCharEventInfo)
- {
- ds_grd_execrcode.setColumn(e.row, "ebasecdflag","E");
- }
- function ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- fn_TRAEB00801();
- }
- }
- function button61_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|