123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB04200" position="absolute 0 0 1196 765" titletext="그룹코드관리" onload="SMAEB04200_onload">
- <Layouts>
- <Layout>
- <Static id="caption19" text="그룹코드관리" class="tit_1" position="absolute 0 0 120 25"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 1195 65" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="0" text="조회" class="btn1" position="absolute 1127 10 1183 32" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption2" text="그룹코드 :" class="search_name" position="absolute 7 12 103 29" anchor="default"/>
- <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 89 11 224 30" anchor="default" autoselect="true" onkeyup="grp_sea_ipt_basecd_onkeyup"/>
- <Button id="button61" taborder="2" class="icon_search" position="absolute 229 12 245 28" anchor="default" onclick="grp_sea_button61_onclick" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_10" position="absolute 0 89 1196 95"/>
- <Static id="caption1" text="그룹코드관리" class="tit_2" position="absolute 0 73 120 90"/>
- <Button id="btn_grdadd" taborder="2" text="행추가" class="btn2" position="absolute 1086 67 1139 89" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 67 1195 89" onclick="btn_grddel_onclick"/>
- <Grid id="grd_bodypart" taborder="4" binddataset="ds_main_bodypartlist_bodypart" useinputpanel="false" position="absolute 0 94 1195 735">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="79"/>
- <Column size="124"/>
- <Column size="385"/>
- <Column size="563"/>
- <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="basecdflag"/>
- <Cell col="6" text="basesuppdeptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:sortno"/>
- <Cell col="2" displaytype="text" edittype="text" editfilter="upper" text="bind:basecd" editlimit="12"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
- <Cell col="5" text="bind:basecdflag"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1138 739 1194 761" onclick="btn_save_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_bodypartlist_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sortno" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basecdcnts" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sortno"/>
- <Col id="basecd"/>
- <Col id="basecdflagdesc"/>
- <Col id="basecdcnts"/>
- <Col id="basecdflag"/>
- <Col id="basesuppdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instance1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="item" type="STRING" size="256"/>
- </ColumnInfo>
- </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 : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 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
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function fn_TRAEB04201() {
- ds_main_bodypartlist_bodypart.clearData();
- dsf_createDsRow("ds_req", [
- {col:"basecd", type:"STRING", size:256, val:ds_send.getColumn(0, "basecd")}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
- , {col:"bbasecdflag", type:"STRING", size:256, val:"G"}
- ]);
- var oParam = {};
- oParam.id = "TRAEB04201";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqGetBodyPartList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_bodypartlist_bodypart=bodypart";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04201";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB04200_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grd_bodypart, 0);
- lf_aezfSetSuppDeptcd();
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
- ds_main_bodypartlist_bodypart.clearData();
- grp_sea.ipt_basecd.setFocus();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
- fn_TRAEB04201();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- var irow = ds_main_bodypartlist_bodypart.addRow();
- ds_main_bodypartlist_bodypart.setColumn( irow , "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
- grd_bodypart.vscrollbar.pos = irow;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var objGrd = grd_bodypart;
- var selectedRows = grdf_getSelectedRows(objGrd);
- for (var i = selectedRows.length-1; i >= 0; i--){
- if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
- objects[objGrd.binddataset].deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(objGrd, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if ( sysf_messageBox("","Q002")==6 ) {
- var update = grdf_getGridUpdateData(grd_bodypart, "all");
- grdf_setStatusColumn(update, "m");
- if(utlf_isNull(update) || update.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- ds_send_req_data.copyData(update, true);
- dsf_setFixVal(ds_send_req_data, "bbasecdflag:G");
- var oParam = {};
- oParam.id = "TXAEB04201";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqExeBodyPartList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAEB04201";
- tranf_submit(oParam);
- }
- }
-
- fn_TRAEB04201();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 조회조건 입력 후 조회
- ****************************************************************************************/
- function grp_sea_ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_sea.btn_sea.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|