123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEA03205" position="absolute 0 0 589 464" titletext="대분류코드 상세관리" oninit="SPAEA03205_oninit" onload="SPAEA03205_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 5 587 462" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="코드관리" position="absolute 0 44 125 60" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 59 587 65" linetype="horizontal" id="line1" class="line_1" anchor="default"/>
- <Grid position="absolute 0 65 587 425" id="grd_bodypart" binddataset="ds_main_bodypartlist_list" anchor="default" cellsizingtype="both" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="118"/>
- <Column size="388"/>
- <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="basecdflag"/>
- <Cell col="5" 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" text="bind:basecd" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
- <Cell col="4" text="bind:basecdcnts"/>
- <Cell col="5" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 534 41 587 60" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
- <Button position="absolute 478 41 531 60" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
- <Button position="absolute 460 430 516 452" id="btn_save" class="btn4" text="저장" anchor="default" onclick="grp_biz_btn_save_onclick"/>
- <Button position="absolute 519 430 587 452" id="btn_clear" class="btn4" text="초기화" anchor="default" onclick="grp_biz_btn_clear_onclick"/>
- <Shape id="line00" class="line_1" position="absolute 0 60 587 66" anchor="default"/>
- <Shape id="line02" class="line_1" position="absolute 0 61 587 67" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_sea" taborder="1" position="absolute 0 0 587 40" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" text="구분:" class="search_name" position="absolute 15 12 80 29"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 497 8 503 31"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 515 9 571 31" onclick="grp_sea_btn_sea_onclick"/>
- <Combo id="cmb_codelist" taborder="2" innerdataset="@ds_init_codelist" codecolumn="basecd" datacolumn="basecdflagdesc" position="absolute 85 10 320 29" onitemchanged="grp_sea_cmb_codelist_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_bodypartlist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <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"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sortno"/>
- <Col id="basecd"/>
- <Col id="basecdflagdesc"/>
- <Col id="basecdcnts">C001</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="req" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdnm" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="basecdcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="req"/>
- <Col id="basecd"/>
- <Col id="basecdnm"/>
- <Col id="basecdflag">G</Col>
- <Col id="basecdcnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_codelist" 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="basecdflagdesc" type="STRING" size="256"/>
- <Column id="length" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="basecdflagdesc"/>
- <Col id="length"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_codelist" propid="value" datasetid="ds_send" columnid="basecd"/>
- </Bind>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAEA03205
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEA03205_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPAEA03205
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEA03205_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- grdf_setRowTypeIcon(grp_biz.grd_bodypart, 0); // 그리드 상태 표시
-
- ds_init_codelist.clearData();
- ds_main_bodypartlist_list.clearData();
- ds_send.setColumn(0,"basecdcnts","000"); //마스터 코드 셋팅
- dsf_createDsRow("ds_req", [
- {col:"basecd", type:"STRING", size:256, val:ds_send.getColumn(0,"basecd")}
- , {col:"basecdcnts", type:"STRING", size:256, val:ds_send.getColumn(0,"basecdcnts")}
- , {col:"basecdflag", type:"STRING", size:256, val:"G"}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- ]);
- var oParam = {};
- oParam.id = "TXAEA03210";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqGetCKCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_codelist=codelist";
- oParam.async = false;
- oParam.callback = "cf_TXAEA03210";
- tranf_submit(oParam);
- }
- function cf_TXAEA03210(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_init_codelist.updateColID("basecnt","basecdcnt");
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_sea.cmb_codelist
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 구분 변경
- ****************************************************************************************/
- function grp_sea_cmb_codelist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- ds_main_bodypartlist_list.clearData();
- }
- /****************************************************************************************
- * 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)
- {
- dsf_createDsRow("ds_req", [
- {col:"basecdcnts", type:"STRING", size:256, val:ds_send.getColumn(0,"basecd")}
- , {col:"basecdflag", type:"STRING", size:256, val:"G"}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- ]);
- var oParam = {};
- oParam.id = "TRAEA03212";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqGetCKCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_bodypartlist_list=codelist";
- oParam.async = true;
- //oParam.callback = "cf_TRAEA03212";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가
- ****************************************************************************************/
- function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var mastercode = ds_send.getColumn(0,"basecd");
- var suppdeptcd = gSuppdeptcd;
-
- var nRow = ds_main_bodypartlist_list.addRow();
-
- ds_main_bodypartlist_list.setColumn(nRow,"basecdcnts" ,mastercode);
- ds_main_bodypartlist_list.setColumn(nRow,"basesuppdeptcd",suppdeptcd);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제
- ****************************************************************************************/
- function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_bodypartlist_list.getRowType(ds_main_bodypartlist_list.rowposition)==2) {
- ds_main_bodypartlist_list.deleteRow(ds_main_bodypartlist_list.rowposition);
- } else {
- grdf_setStatus(grp_biz.grd_bodypart, "D", [ds_main_bodypartlist_list.rowposition]);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장
- ****************************************************************************************/
- function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("", "Q002") == 6 ) {
- var update = grdf_getGridUpdateData(grp_biz.grd_bodypart, "all");
- if(update.rowcount < 1) {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- grdf_setStatusColumn(update, "m");
- ds_send_req.copyData(update,true);
-
- dsf_setFixVal(ds_send_req, "basecdflag:G");
- var oParam = {};
- oParam.id = "TXAEA03211";
- oParam.service = "examcurebaseapp.GoodCode";
- oParam.method = "reqExeNuclCodeList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_hidden_item=count";
- oParam.async = false;
- //oParam.callback = "cf_TXAEA03211";
- tranf_submit(oParam);
- }
-
- ds_send.setColumn(0,"basecd", "");
- ds_send.setColumn(0,"basecdnm", "");
- }
-
- this.reload();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_biz.btn_clear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화
- ****************************************************************************************/
- function grp_biz_btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
- this.reload();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|