123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB01600" position="absolute 0 0 1256 805" titletext="취소코드관리" oninit="model1_oninit" scrollbars="autoboth" onload="SMAEB01600_onload">
- <Layouts>
- <Layout>
- <Button id="btn_grdadd" class="btn2" position="absolute 1140 74 1196 94" positiontype="position" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" onclick="btn_grdadd_onclick" anchor="top right"/>
- <Button id="btn_grddel" class="btn2" position="absolute 1199 74 1255 94" positiontype="position" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" onclick="btn_grddel_onclick" anchor="top right"/>
- <Button id="btn_save" class="btn4" position="absolute 1200 785 1256 805" positiontype="position" text="저장" onlbuttonup="btn_save_onlbuttonup" style="align:center middle;" onclick="btn_save_onclick" onmouseenter="btn_save_onmouseenter" anchor="right bottom"/>
- <Grid id="grd_cnclcode" position="absolute 0 97 1256 782" positiontype="position" binddataset="ds_grid_grd_cnclcode" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="180"/>
- <Column size="465"/>
- <Column size="319"/>
- <Column size="124"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </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="취소구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="align:center middle;"/>
- <Cell col="1" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:sortno"/>
- <Cell col="2" displaytype="text" edittype="text" editfilter="upper,number,char" style="padding:0 5 0 5;" text="bind:basecd" editimemode="alpha"/>
- <Cell col="3" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdflagdesc"/>
- <Cell col="4" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdcnts"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="padding:0 5 0 5;" text="bind:basecdflag" combodataset="ds_init_cancelgb" combocodecol="value" combodatacol="label"/>
- <Cell col="6"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 28 1256 70" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption1" text="취소코드" class="search_name" position="absolute 8 9 82 29" anchor="default" positiontype="position"/>
- <Edit id="ipt_basecd" taborder="18" class="input_search" position="absolute 82 9 197 29" anchor="default" imemode="hangul" oneditclick="grp_sea_ipt_basecd_oneditclick" onkeydown="grp_sea_ipt_basecd_onkeydown" positiontype="position"/>
- <Button id="btn_sea" taborder="19" text="조회" onclick="btn_sea_onclick" class="btn1" position="absolute 1188 9 1244 29" style="align:left middle;" anchor="top right" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="취소코드관리" onclick="caption19_onclick" class="tit_1" position="absolute 0 3 106 28" anchor="default" positiontype="position"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_cnclcode" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="INT"/>
- <Column id="basecd" type="STRING"/>
- <Column id="basecdflagdesc" type="STRING"/>
- <Column id="basecdcnts" type="STRING"/>
- <Column id="basecdflag" type="STRING"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- </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="suppdeptcd" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cancelgb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">예약취소</Col>
- <Col id="value">A</Col>
- </Row>
- <Row>
- <Col id="label">접수취소</Col>
- <Col id="value">C</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name :
- * Creator :
- * Make Date : 2016-04-04
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //조회
- function submit_TRAEB01601(){
- ds_grid_grd_cnclcode.clearData();
-
- ds_send.setColumn(0,"suppdeptcd",suppdeptcd);
- ds_send.setColumn(0,"basecd",grp_sea.ipt_basecd.value);
-
- var oParam = {};
- oParam.id = "TRAEB01601";
- oParam.service = "examcurebaseapp.CnclCode";
- oParam.method = "reqGetCnclCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grid_grd_cnclcode=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB01601";
- tranf_submit(oParam);
-
- }
- function cf_TRAEB01601(){
- for(var i = 0 ; i< ds_grid_grd_cnclcode.rowcount ;i++){
-
- ds_grid_grd_cnclcode.setColumn(i,"suppdeptcd",suppdeptcd);
- }
-
- }
- //저장
- function submit_TXAEB01601(){
- var oParam = new Object();
- oParam.id = "TXAEB01601";
- oParam.service = "examcurebaseapp.CnclCode";
- oParam.method = "reqExeCnclCodeList";
- oParam.inds = "req=ds_grid_grd_cnclcode:U";
- oParam.async = false;
- oParam.typeStr = "m";
-
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMAEB01600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB01600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- grdf_setRowTypeIcon(grd_cnclcode,0);
-
- //부서정보 가져오기
- //간호
- suppdeptcd = frmf_getMenuParam();
-
- if(utlf_isNull(suppdeptcd)){
- //기능/과내
- lf_aezfSetSuppDeptcd();
-
- }
-
- grp_sea.ipt_basecd.setFocus();
- btn_sea_onclick();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- submit_TRAEB01601();
- }
- /****************************************************************************************
- * Components :
- * 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)
- {
- ds_grid_grd_cnclcode.addRow();
- ds_grid_grd_cnclcode.setColumn(ds_grid_grd_cnclcode.rowposition,"suppdeptcd",suppdeptcd);
- ds_grid_grd_cnclcode.setColumn(ds_grid_grd_cnclcode.rowposition,"sortno", ds_grid_grd_cnclcode.getColumn(ds_grid_grd_cnclcode.rowcount-2, "sortno") + 1);
- }
- /****************************************************************************************
- * Components :
- * 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_cnclcode, true);
- }
- /****************************************************************************************
- * Components :
- * 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 ) {
- var update = grdf_getGridUpdateData(grd_cnclcode,"all");
- if (update.rowcount ==0) {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- }
- else {
- submit_TXAEB01601();
- }
- submit_TRAEB01601();
- }
- }
- //엔터 누를시 조회
- function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
-
- submit_TRAEB01601();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|