123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRE00300" position="absolute 0 0 580 800" titletext="참조값 등록" onload="SMMRE00300_onload">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 84 580 90" linetype="horizontal" id="line1" class="line_1"/>
- <Static text="참조값" position="absolute 0 68 66 84" align="align:center middle;" id="caption2" class="tit_2"/>
- <Grid position="absolute 0 88 580 800" id="grd_reflist" binddataset="ds_grd_reflist" onenteredit="ds_edit_onclick" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="323"/>
- <Column size="60"/>
- <Column size="40"/>
- <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="사용"/>
- <Cell col="6"/>
- <Cell col="7"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:gubun"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:code"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:codename" wordwrap="char"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:seq"/>
- <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:useyn"/>
- <Cell col="6" text="bind:instcd"/>
- <Cell col="7" text="bind:status"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="참조값 등록" position="absolute 0 0 173 25" id="caption6" class="tit_1"/>
- <Button position="absolute 537 67 579 86" id="btn_save" class="btn5" taborder="11" text="저장" onclick="btn_save_onclick"/>
- <Button position="absolute 449 67 491 86" id="btn_insert" class="btn2_letter2" taborder="9" text="추가" onclick="btn_insert_onclick"/>
- <Button position="absolute 493 67 535 86" id="btn_del" class="btn2_letter2" taborder="10" text="삭제" onclick="btn_del_onclick"/>
- <Div id="Div00" taborder="12" position="absolute 0 24 580 63" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_req" taborder="0" text="조회" onclick="btn_req_onclick" class="btn1" position="absolute 512 9 568 31"/>
- <CheckBox id="onlyuseyn" taborder="1" value="N" truevalue="Y" falsevalue="N" onclick="onlyuseyn_onclick" position="absolute 125 9 142 31"/>
- <Static id="caption14" text="사용하는 것만" class="search_name" position="absolute 19 14 114 29"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_reflist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING"/>
- <Column id="code" type="STRING"/>
- <Column id="codename" type="STRING"/>
- <Column id="seq" type="STRING"/>
- <Column id="useyn" type="STRING"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_modlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="codename" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_dellist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="code" type="STRING" size="256"/>
- <Column id="codename" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_reqcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="onlyuseyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="onlyuseyn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.onlyuseyn" propid="value" datasetid="ds_reqcond" columnid="onlyuseyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name : SMMRE00300_참조값등록_knuh.xfdl
- * Creator :
- * Make Date : 2014-10-14
- * Description : 참조값등록
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-09-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 술식어 참조리스트를 조회한다.
- ****************************************************************************************/
- function btn_req_onclick(obj:Button, e:ClickEventInfo) //조회
- {
-
- var oParam = {};
- oParam.id = "TRMRE00301";
- oParam.service = "dentirecapp.DentiWord";
- oParam.method = "reqGetRefList";
- oParam.inds = "reqcond=" + "ds_reqcond";
- oParam.outds = "ds_grd_reflist=reflist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 술식어 참조리스트를 저장한다.
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)//저장
- {
- ds_modlist.copyData(ds_grd_reflist);
-
- var oParam = {};
- oParam.id = "TXMRE00301";
- oParam.service = "dentirecapp.DentiWord";
- oParam.method = "reqExeSaveGetRefList";
- oParam.inds = "modlist=ds_modlist"+" dellist=ds_dellist"+" reqcond=ds_reqcond";
- oParam.outds = "ds_grd_reflist=reflist";
- oParam.async = false;
- oParam.callback = "cf_TXMRE00301";
-
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 저장실패시 에러메세지 띄워준다.
- ****************************************************************************************/
- function cf_TXMRE00301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- sysf_messageBox("저장을 실패하였습니다.", "E999");
- return;
- }
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo);
- }
- /****************************************************************************************
- * Argument : 01.sKey : 코드아이디
- * : 02.sValue : 코드명
- * Description : 술식어 참조리스트에 수정시 기능
- ****************************************************************************************/
- function ds_edit_onclick(obj:Button, e:ClickEventInfo){
- var currow = ds_grd_reflist.rowposition;
- ds_grd_reflist.setColumn(currow,"status", "u");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMRE00300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 최초 OnLoad Event
- ****************************************************************************************/
- function SMMRE00300_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- var e = new ClickEventInfo;
- frmf_inputEnterKey("Div00.btn_req", "onclick", e);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : SMMRE00300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 참조값 리스트에 한 줄 추가 EVENT
- ****************************************************************************************/
- function btn_insert_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_reflist.addRow();
-
- var currow = ds_grd_reflist.rowposition;
- ds_grd_reflist.setColumn(currow,"status", "i");
- ds_grd_reflist.setColumn(currow,"useyn", "Y");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : SMMRE00300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 참조값 리스트에 한 줄 삭제 EVENT
- ****************************************************************************************/
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
-
- ds_modlist.clearData();
- ds_dellist.clearData();
- var nRow = ds_dellist.addRow();
-
- var currow = ds_grd_reflist.rowposition;
- ds_dellist.copyRow(nRow, ds_grd_reflist, currow);
- //sysf_trace(ds_dellist.saveXML());
- var oParam = {};
- oParam.id = "TXMRE00301";
- oParam.service = "dentirecapp.DentiWord";
- oParam.method = "reqExeSaveGetRefList";
- oParam.inds = "modlist=ds_modlist"+" dellist=ds_dellist"+" reqcond=ds_reqcond";
- oParam.outds = "ds_grd_reflist=reflist";
- oParam.async = false;
- oParam.callback = "cf_TXMRE00301";
-
- tranf_submit(oParam);
-
- }]]></Script>
- </Form>
- </FDL>
|