123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB63400" position="absolute 0 0 327 380" titletext="회사검색" oninit="SPADB63400_oninit" onload="SPADB63400_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="1" position="absolute 0 19 327 59" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption3" text="회사명 :" class="search_name" position="absolute 8 13 78 30" anchor="default"/>
- <Edit id="input1" taborder="1" class="input_search" position="absolute 74 11 244 30" anchor="default" onkeydown="grp_srch_input1_onkeydown"/>
- <Shape id="line1" linetype="vertical" position="absolute 252 8 258 30" anchor="default"/>
- <Button id="btn_req" taborder="2" text="조회" class="btn1" position="absolute 264 9 320 31" anchor="default" onclick="grp_srch_btn_req_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="회사검색" position="absolute 0 1 140 18" align="align:center middle;" id="caption2" class="tit_2"/>
- <Shape position="absolute 0 58 327 67" linetype="horizontal" id="line3" class="line_1"/>
- <Button position="absolute 213 354 269 376" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
- <Button position="absolute 270 354 326 376" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
- <Grid position="absolute 0 64 327 350" id="grd_prodcmpy" binddataset="ds_main_prodcmpy" autofittype="col" cellsizingtype="col" oncelldblclick="grd_prodcmpy_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="65"/>
- <Column size="213"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="회사코드"/>
- <Cell col="1" text="회사명"/>
- </Band>
- <Band id="body">
- <Cell text="bind:prodcmpycd"/>
- <Cell col="1" text="bind:prodcmpynm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line00" class="line_1" position="absolute 0 57 327 66"/>
- <Shape id="line01" class="line_1" position="absolute 0 59 327 68"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_prodcmpy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prodcmpycd" type="STRING" size="256"/>
- <Column id="prodcmpynm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcnts" type="STRING" size="256"/>
- <Column id="srchcond" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="receiveref" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_srch.input1" propid="value" datasetid="ds_send_srchinfo" columnid="srchcnts"/>
- </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_commonxp::AST.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 모화면에 데이터 전달
- ****************************************************************************************/
- function sendData(){
- if ( frmf_checkOpener() ) {
- var receiveref = ds_hidden.getColumn(0,"receiveref");
- var receiveprodcmpy = ds_hidden.getColumn(0,"receiveprodcmpy");
- opener.objects[receiveref].setColumn(0,receiveprodcmpy,ds_main_prodcmpy.getColumn(ds_main_prodcmpy.rowposition,"prodcmpynm"));
- this.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 회사리스트 조회
- ****************************************************************************************/
- function call_TRADB63401() {
- var oParam = {};
- oParam.id = "TRADB63401";
- oParam.service = "pharmacybaseapp.DrugIdBase";
- oParam.method = "reqGetProdcmpy";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_prodcmpy=prodcmpy";
- oParam.async = false;
- //oParam.callback = "cf_TRADB63401";
- tranf_submit(oParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB63400
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB63400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB63400
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB63400_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_hidden.copyData(arg_ds_hidden);
- } catch(e){}
-
- call_TRADB63401();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_srch.btn_req
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function grp_srch_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- call_TRADB63401();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_srch.input1
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조건 입력 후 엔터로 조회
- ****************************************************************************************/
- function grp_srch_input1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_srch.btn_req", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_prodcmpy
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 회사리스트 더블클릭하여 모화면에 전달
- ****************************************************************************************/
- function grd_prodcmpy_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0) return;
- sendData();
- }
- /****************************************************************************************
- * 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)
- {
- sendData();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_can
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면닫기
- ****************************************************************************************/
- function btn_can_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|