123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB61100" position="absolute 0 0 395 229" titletext="약품정보이력조회" oninit="SPADB61100_oninit" onload="SPADB61100_onload">
- <Layouts>
- <Layout>
- <Button id="btn_cfm" taborder="1" text="확인" class="btn4" position="absolute 280 201 336 223" onclick="btn_cfm_onclick"/>
- <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 339 201 395 223" onclick="btn_cls_onclick"/>
- <Grid id="grd_datagrid1" taborder="3" binddataset="ds_datagrid1" useinputpanel="false" position="absolute 0 26 395 196" autofittype="col" oncelldblclick="datagrid1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="165"/>
- </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="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow == ds_datagrid1.rowposition ? "▶" : """/>
- <Cell col="1" displaytype="date" text="bind:drugfromdd"/>
- <Cell col="2" displaytype="date" text="bind:drugtodd"/>
- <Cell col="3" text="bind:etccau"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="약품정보이력조회" class="tit_2" position="absolute 0 5 140 24"/>
- <Shape id="line1" class="line_1" position="absolute 0 21 395 27" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugfromdd" type="STRING"/>
- <Column id="drugtodd" type="STRING"/>
- <Column id="etccau" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <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="srchdrugcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchdrugcd">DHD</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-03 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB61100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB61100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB61100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB61100_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_send.copyData(arg_ds_send);
- } catch(e) {}
- ds_datagrid1.clearData();
- var oParam = {};
- oParam.id = "TRADB61101";
- oParam.service = "pharmacybaseapp.DrugCode";
- oParam.method = "reqGetDrugCodeHis";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_datagrid1=item";
- oParam.async = false;
- //oParam.callback = "cf_TRADB61101";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_datagrid1
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터 선택
- ****************************************************************************************/
- function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( frmf_checkOpener() ){
- opener.ds_main_baseinfo_druginfo.setColumn(0, "drugfromdd", ds_datagrid1.getColumn(ds_datagrid1.rowposition, "drugfromdd"));
- opener.ds_main_baseinfo_druginfo.setColumn(0, "drugtodd" , ds_datagrid1.getColumn(ds_datagrid1.rowposition, "drugtodd"));
- this.close();
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 없습니다.","");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터 선택
- ****************************************************************************************/
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var ev = new GridClickEventInfo;
- frmf_inputEnterKey("grd_datagrid1", "oncelldblclick", ev );
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터 선택
- ****************************************************************************************/
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|