123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRSD00160" position="absolute 0 0 702 555" titletext="제조회사 검색화면" oninit="SPRSD00160_oninit" onload="SPRSD00160_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 700 550" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 700 40" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Edit position="absolute 286 11 421 30" id="ipt_refcond" class="input_s_essential" onkeyup="group3_group2_ipt_refcond_onkeyup" anchor="default"/>
- <Button position="absolute 629 9 685 31" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
- <Shape position="absolute 611 8 617 32" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Static text="조회조건 :" position="absolute 211 12 287 29" id="caption2" class="search_name" anchor="default"/>
- <Radio position="absolute 15 10 170 30" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" onitemchanged="group3_group2_rdo_refcond_onitemchanged" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="제조회사리스트" position="absolute 0 49 145 65" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 65 700 71" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 70 700 520" id="grd_prodcmpylist" class="grd_prodcmpylist" binddataset="ds_main_prodcmpylist" autofittype="col" oncelldblclick="group3_grd_prodcmpylist_oncelldblclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- </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="제조회사 주소"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:prodcmpycd"/>
- <Cell col="2" style="align:left;" text="bind:prodcmpynm"/>
- <Cell col="3" style="align:left;" text="bind:prodcmpytel"/>
- <Cell col="4" style="align:left;" text="bind:prodcmpyaddr"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 521 700 548" id="group1" scrollbars="autoboth" anchor="default">
- <Layouts>
- <Layout>
- <Button position="absolute 587 5 643 27" id="btn_confirm" class="btn4" text="확인" onclick="group3_group1_btn_confirm_onclick" anchor="default"/>
- <Button position="absolute 644 5 700 27" id="btn_cancel" class="btn4" text="취소" onclick="group3_group1_btn_cancel_onclick" anchor="default"/>
- <Shape position="absolute 0 -2 700 4" linetype="horizontal" id="line32" class="line_6" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">제조회사</Col>
- <Col id="value">prodcmpycd</Col>
- </Row>
- <Row>
- <Col id="label">제조회사명</Col>
- <Col id="value">prodcmpynm</Col>
- </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="refcond" type="STRING" size="256" sumtext="조회조건"/>
- <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_prodcmpylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드"/>
- <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
- <Column id="prodcmpytel" type="STRING" size="256" sumtext="제조회사 전화번호"/>
- <Column id="prodcmpyaddr" type="STRING" size="256" sumtext="제조회사 주소"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
- <BindItem id="item1" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send" columnid="prodcmpynm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : mis_purccommonxp -> SPRSD00160
- * Creator : yjh
- * Make Date : 2017-07-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-07-04 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPRSD00160
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPRSD00160_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPRSD00160
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPRSD00160_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setGridSort(group3.grd_prodcmpylist);
-
- // arg_ds_target.setColumn(0, "recvref", "ds_send");
- // arg_ds_target_recvitem.setColumn(0, "recvitem", "prodcmpycd");
- // arg_ds_target_recvitem.setColumn(1, "recvitem", "prodcmpynm");
-
- dsf_createDs("ds_target");
- dsf_createDs("ds_target_recvitem");
- dsf_createDs("ds_target_defaultvalue");
- try{
- ds_target.copyData(arg_ds_target);
- ds_target_recvitem.copyData(arg_ds_target_recvitem);
- ds_target_defaultvalue.copyData(arg_ds_target_defaultvalue);
- }catch(e){}
-
-
- group3.group2.rdo_refcond.index = 1;
- group3.group2.btn_search.click();
- group3.group2.ipt_refcond.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_refcond
- * Event : onkeyup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function group3_group2_ipt_refcond_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- group3.group2.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( group3.group2.rdo_refcond.value == "prodcmpynm" ){
- ds_send.setColumn(0, "prodcmpynm", group3.group2.ipt_refcond.text);
- }
- else {
- ds_send.setColumn(0, "prodcmpycd", group3.group2.ipt_refcond.text);
- }
-
- var oParam = {};
- oParam.id = "TRRSD00161";
- oParam.service = "purccommonapp.PurcCommon";
- oParam.method = "reqGetProdCmpyByCond";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_prodcmpylist=prodcmpylist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSD00161";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_refcond
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 라디오 값 변경시
- ****************************************************************************************/
- function group3_group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if( group3.group2.rdo_refcond.value == "prodcmpynm" ){
- group3.group2.ipt_refcond.imemode = "alpha";
- }
- else if( group3.group2.rdo_refcond.value == "prodcmpycd" ){
- group3.group2.ipt_refcond.imemode = "none";
- }
- else {
- group3.group2.ipt_refcond.imemode = "none";
- }
-
- group3.group2.ipt_refcond.setFocus();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_prodcmpylist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group3_grd_prodcmpylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- group3.group1.btn_confirm.click();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_confirm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 확인버튼 클릭시
- ****************************************************************************************/
- function group3_group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListReturn(group3.grd_prodcmpylist, ds_target_defaultvalue.getColumn(0,"nodebigo"));
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_cancel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 취소버튼 클릭시
- ****************************************************************************************/
- function group3_group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|