123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPRPZ00200_부서코드HELP" classname="SPRPZ00200_부서코드HELP" inheritanceid="" position="absolute 0 0 600 550" titletext="부서코드 HELP" oninit="SPRPZ00200_oninit" onload="SPRPZ00200_onload">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="0" position="absolute 0 0 600 38" class="div_SA2">
- <Layouts>
- <Layout>
- <Radio id="rdo_refcond" taborder="0" columncount="-1" rowcount="-1" position="absolute 15 9 149 29" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="deptnm" anchor="default" onitemchanged="Div00_rdo_refcond_onitemchanged" style="itempadding:0 3 0 0;border:1 solid black ;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">deptcd</Col>
- <Col id="datacolumn">부서코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">deptnm</Col>
- <Col id="datacolumn">부서명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="Static00" text="조회조건" position="absolute 181 9 249 29" class="search_name" anchor="default"/>
- <Edit id="ipt_refcond" taborder="1" position="absolute 256 9 436 29" onkeydown="Div00_ipt_refcond_onkeydown" imemode="hangul" class="input_essential" autoselect="true" autoskip="true"/>
- <Button id="btn_search" taborder="2" text="조회" position="absolute 522 9 582 29" class="btn1" anchor="default" onclick="Div00_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="Static00" text="부서리스트" position="absolute 0 42 100 62" class="tit_2"/>
- <Grid id="grd_deptcode" taborder="1" useinputpanel="false" position="absolute 0 63 600 523" autofittype="col" binddataset="ds_deptcodelist" oncelldblclick="grd_deptcode_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="130"/>
- <Column size="440"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="text" text="bind:deptcd"/>
- <Cell col="2" displaytype="text" text="bind:depthngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_confirm" taborder="2" text="확인" position="absolute 488 530 540 550" class="btn4" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="3" text="취소" class="btn3" position="absolute 548 530 600 550" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_deptref" 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="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관"/>
- <Column id="all" type="STRING" size="256" sumtext="전체"/>
- <Column id="orddeptflag" type="STRING" size="256" sumtext="입원 진료과"/>
- <Column id="basedd" type="STRING" size="256" sumtext="기준일"/>
- <!-- 2011.05.25 구매사용여부 추가 -->
- <Column id="purcuseyn" type="STRING" size="256" sumtext="구매사용여부"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkyn" type="STRING" size="256" sumtext="체크여부"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="instnm" type="STRING" size="256" sumtext="기관명"/>
- <Column id="instsnm" type="STRING" size="256" sumtext="기관약어명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
- <BindItem id="item1" compid="Div00.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SPRPZ00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPRPZ00200_onload(obj:Form, e:LoadEventInfo)
- {
- // misfGridInit(grd_deptlist);
-
- // model.copyNode("root/main","/root/target/validation");
- dsf_createDs("ds_target_recvitem");
- try {
- ds_send_deptref.setColumn(0, "instcd", arg_ds_target_defaultvalue.getColumn(0, "instcd"));
- } catch (e) {}
- try {
- ds_target_validation.copyData(arg_ds_target_validation);
- } catch (e) {}
- try {
- ds_target.copyData(arg_ds_target);
- } catch (e) {}
- try {
- ds_target_recvitem.copyData(arg_ds_target_recvitem);
- } catch (e) {}
- // ds_send_deptref.setColumn(0, "instcd", model.getValue("/root/target/defaultvalue/instcd"));
- // ds_send_deptref.setColumn(0, "basedd",model.getValue("/root/target/defaultvalue/basedd"));
- ds_send_deptref.setColumn(0, "refcond", "deptnm");
- Div00.ipt_refcond.imemode = "hangul";
- //Div00.ipt_refcond.setFocus();
- if(ds_target_validation.rowcount == 0)
- {
- Div00.btn_search.click();
- }
- else
- {
- ds_deptcodelist.copyData(ds_target_validation);
- }
- Div00.ipt_refcond.setFocus();
- }
- function Div00_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(obj.value == "deptnm") {
- Div00.ipt_refcond.imemode = "hangul";//attribute("imemode") = "hangul";
- }
- // else if (obj.value == "deptcd") {
- // Div00.ipt_refcond.imemode = "alpha";
- // }
- else {
- Div00.ipt_refcond.imemode = "alpha";
- }
-
- Div00.ipt_refcond.setFocus();
- }
- function Div00_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- Div00.btn_search.click();
- }
- function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_deptref.setColumn(0, Div00.rdo_refcond.value, Div00.ipt_refcond.text);
-
- var oParam = {};
- oParam.id = "TRRPZ00201";
- oParam.service = "miscommoncdrefapp.CommonCdRef";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send_deptref";
- oParam.outds = "ds_deptcodelist=deptcodelist";
- oParam.async = true;
- // oParam.callback = "cf_TRRPZ00201";
- tranf_submit(oParam);
- }
- function grd_deptcode_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- btn_confirm.click();
- }
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListReturn(grd_deptcode);
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfPopUpListCancel();
- }
- ]]></Script>
- </Form>
- </FDL>
|