123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADB61400" position="absolute 0 0 518 578" titletext="효능조회" oninit="SPADB61400_oninit" onload="SPADB61400_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="1" class="div_SA2" position="absolute 0 0 518 35">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" position="absolute 426 7 432 29" anchor="default"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 445 7 501 29" anchor="default" onclick="group2_btn_sea_onclick"/>
- <Static id="caption2" text="명칭 :" class="search_name" position="absolute 168 10 228 27" anchor="default"/>
- <Static id="caption3" text="코드 :" class="search_name" position="absolute 8 10 68 27" anchor="default"/>
- <Edit id="input1" taborder="2" class="input_search" position="absolute 230 8 420 27" anchor="default" onkeyup="group2_input1_onkeyup"/>
- <Edit id="input2" taborder="3" class="input_search" position="absolute 70 8 155 27" anchor="default" onkeyup="group2_input2_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 58 518 64" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_efcylist" taborder="2" binddataset="ds_main_efcylist" useinputpanel="false" position="absolute 0 63 518 545" treeusecheckbox="false" treeuseimage="false" autofittype="col" oncelldblclick="grd_efcylist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="183"/>
- <Column size="334"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="효능코드"/>
- <Cell col="1" text="효능명칭"/>
- <Cell col="2" text="레벨"/>
- </Band>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="align:left;padding:0 3 0 3;" text="bind:efcycd" treelevel="bind:efcylevel"/>
- <Cell col="1" style="align:left;padding:0 3 0 3;" text="bind:efcynm"/>
- <Cell col="2" text="bind:efcylevel"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="효능조회" class="tit_2" position="absolute 2 42 105 59"/>
- <Button id="btn_cfm" taborder="3" text="확인" class="btn4" position="absolute 402 551 458 573" onclick="btn_cfm_onclick" visible="false"/>
- <Button id="btn_cls" taborder="4" text="닫기" class="btn4" position="absolute 461 551 517 573" onclick="btn_cls_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_efcylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="efcycd" type="STRING" size="256"/>
- <Column id="efcynm" type="STRING" size="256"/>
- <Column id="efcylevel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="efcycd"/>
- <Col id="efcynm"/>
- <Col id="efcylevel"/>
- </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="srchcomcd" type="STRING" size="256"/>
- <Column id="srchcomnm" 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"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="receiveefcy" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input2" propid="value" datasetid="ds_send" columnid="srchcomcd"/>
- <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="srchcomnm"/>
- </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"
- include "emr_prcpmngtxp::MMOCommon.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회 함수
- ****************************************************************************************/
- function call_TRADB61401() {
- var oParam = {};
- oParam.id = "TRADB61401";
- oParam.service = "pharmacybaseapp.EfficacyCode";
- oParam.method = "reqGetEfficacyList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_efcylist=item";
- oParam.async = false;
- oParam.callback = "cf_TRADB61401";
- tranf_submit(oParam);
- }
- function cf_TRADB61401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_main_efcylist, "efcylevel:INT");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB61400
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB61400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPADB61400
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPADB61400_onload(obj:Form, e:LoadEventInfo)
- {
- try{
- ds_hidden.setColumn(0,"receiveefcy",arg_ds_hidden.getColumn(0,"receiveref"));
- }catch(e){}
-
- call_TRADB61401();
- // setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.input2
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 코드입력후 엔터로 조회
- ****************************************************************************************/
- function group2_input2_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- frmf_setInputNodeCurPid(obj);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : group2.input1
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 코드명 입력후 엔터로 조회
- ****************************************************************************************/
- function group2_input1_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- frmf_setInputNodeCurPid(obj);
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- call_TRADB61401();
- // setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_efcylist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회리스트 더블클릭으로 모화면 전달
- ****************************************************************************************/
- function grd_efcylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if ( frmf_checkOpener() ) {
- if ( opener.frmf_getParameter("textval") != "Y" ) {
- astfInsertGridData(grd_efcylist,opener.group3.switch1.case1.grd_efcy, 1, "", "", "efcycd,efcycd");
- } else {
- var receiveref = ds_hidden.getColumn(0, "receiveref");
- var receiveefcycd = ds_hidden.getColumn(0, "receiveefcycd");
- if(utlf_isNull(receiveref)) receiveref = "ds_hidden";
- if(utlf_isNull(receiveefcycd)) receiveefcycd = "efcycd";
-
- dsf_makeValue(opener.objects[receiveref], receiveefcycd, "string", ds_main_efcylist.getColumn(e.row,"efcycd"));
- }
- this.close();
- } else {
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수","I004");
- }
- }
- /****************************************************************************************
- * 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_efcylist", "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>
|