123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00300" position="absolute 0 0 1196 792" titletext="결과예문관리" oninit="SMAEB00300_oninit" onload="SMAEB00300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 17 1195 761" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 67 1194 73" linetype="horizontal" id="line1" class="line_1" anchor="default"/>
- <Static text="결과예문 현황" position="absolute 2 51 148 68" id="caption1" class="tit_2" anchor="default"/>
- <Button position="absolute 1087 48 1140 67" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
- <Button position="absolute 1142 48 1195 67" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
- <Grid position="absolute 0 72 1194 742" id="grd_exmptmpl" binddataset="ds_main_exmptmpllist" anchor="default" autofittype="col" onkeydown="grp_biz_grd_exmptmpl_onkeydown" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="123"/>
- <Column size="132"/>
- <Column size="813"/>
- <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="caption1"/>
- <Cell col="7" text="caption2"/>
- <Cell col="8" text="caption3"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="image"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:sortno"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:basecdflag"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:seq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 760 1195 790" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 1079 5 1135 27" id="btn_save" class="btn4" text="저장" anchor="default" onclick="grp_btn_btn_save_onclick"/>
- <Edit position="absolute 610 6 1010 25" id="input1" anchor="default"/>
- <Button id="button3" taborder="1" text="복사" class="btn4" position="absolute 1022 5 1078 27" anchor="default" onclick="grp_btn_button3_onclick"/>
- <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 1136 5 1192 27" anchor="default" onclick="grp_btn_btn_cls_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="결과예문관리" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1195 60">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1109 7 1115 29" anchor="default"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 1128 7 1184 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption2" text="결과예문코드 :" class="search_name" position="absolute 15 10 127 27" anchor="default"/>
- <Button id="button61" taborder="2" class="icon_search" position="absolute 270 9 286 25" anchor="default" visible="false"/>
- <Edit id="ipt_basecd" taborder="3" class="input_search" position="absolute 130 8 265 27" anchor="default" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <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>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="copyrslt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="copyrslt">복사버튼 클릭 -> 서식항목을 선택 -> Ctrl+V를 키보드 선택입력합니다.</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_exmptmpllist" 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"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sortno"/>
- <Col id="basecd"/>
- <Col id="basecdflagdesc"/>
- <Col id="basecdcnts"/>
- <Col id="basesuppdeptcd"/>
- <Col id="basecdflag"/>
- </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="basecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_btn.input1" propid="value" datasetid="ds_init" columnid="copyrslt"/>
- <BindItem id="item1" 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 : 2015-11-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- include "ast_commonxp::AST.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문 복사
- ****************************************************************************************/
- function fSendContents() {
- var bufCnts = "";
- var rowidx;
- // var colref_viewcnts = grp_biz.grd_exmptmpl.getBindCellIndex("body","basecdcnts");
-
- if(frmf_checkOpener()) //opener 검사
- {
- var i = ds_main_exmptmpllist.rowposition;
- bufCnts += ds_main_exmptmpllist.getColumn(i,"basecdcnts");
- // window.clipBoardData = bufCnts;
- system.setClipboard("CF_TEXT",bufCnts);
- }else {
- sysf_messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
- return;
- }
- this.close();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문 조회
- ****************************************************************************************/
- function call_TRAEB00301() {
- dsf_createDsRow("ds_send_reqdata",[{col:"basecd" , val:ds_send.getColumn(0,"basecd")}
- ,{col:"basesuppdeptcd", val:ds_send_globalinstance.getColumn(0,"instance1")}
- ,{col:"ubasecdflag" , val:"U"}
- ]);
-
- var oParam = {};
- oParam.id = "TRAEB00301";
- oParam.service = "examcurebaseapp.ExmpTmpl";
- oParam.method = "reqGetExmpTmplList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_exmptmpllist=exmptmpl";
- oParam.async = true;
- //oParam.callback = "cf_TRAEB00301";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB00300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB00300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB00300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB00300_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
- ds_main_exmptmpllist.clearData();
-
- grdf_setRowTypeIcon(grp_biz.grd_exmptmpl, 1);
- grp_sea.ipt_basecd.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.ipt_basecd
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 결과예문코드 입력후 엔터로 조회
- ****************************************************************************************/
- function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_sea.btn_sea", "onclick", ev );
- }
- }
- /****************************************************************************************
- * 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)
- {
- call_TRAEB00301();
- }
- /****************************************************************************************
- * 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 nRow = ds_main_exmptmpllist.addRow();
- // 행추가 시 bottomRow 사용하지 마세요!! 꼭
- // grd_exmptmpl.topRow = grd_exmptmpl.row;
- grp_biz.grd_exmptmpl.setCellPos(nRow);
- ds_main_exmptmpllist.setColumn(nRow,"basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
- }
- /****************************************************************************************
- * 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)
- {
- // deleteSelectedRows(grd_exmptmpl, true);
- var arrRow = new Array();
- arrRow[0] = ds_main_exmptmpllist.rowposition;
- grdf_setStatus(grp_biz.grd_exmptmpl, "D", arrRow);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 복사 버튼
- ****************************************************************************************/
- function grp_btn_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_main_exmptmpllist.rowposition < 0 ) return;
- fSendContents();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장 버튼
- ****************************************************************************************/
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q002")==6 ) {
- var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_exmptmpl, "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");
-
- var oParam = {};
- oParam.id = "TXAEB00301";
- oParam.service = "examcurebaseapp.ExmpTmpl";
- oParam.method = "reqExeExmpTmplList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- // oParam.callback = "cf_TXAEB00301";
- tranf_submit(oParam);
- }
- }
-
- call_TRAEB00301();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기 버튼
- ****************************************************************************************/
- function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grp_biz.grd_exmptmpl
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 입력 후 엔터시 다음 편집으로
- ****************************************************************************************/
- function grp_biz_grd_exmptmpl_onkeydown(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- //grdObj.setFocus();
- obj.setCellPos(obj.getCellPos()+1);
- obj.showEditor(true);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|