123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADT21001_특정약집계" classname="SMADT21001_특정약집계" inheritanceid="" position="absolute 0 0 1024 768" titletext="투약X반환불가내역 조회" oninit="SMADT22001_oninit" onload="SMADT22001_onload">
- <Layouts>
- <Layout>
- <Div id="group2" anchor="left top right" taborder="0" class="div_SA" position="absolute 0 24 1024 64">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" position="absolute 901 8 907 33" anchor="top right"/>
- <Static id="caption24" text="처방일자 : " class="search_name" position="absolute 10 13 145 30" anchor="default"/>
- <Static id="caption5" text="~" position="absolute 191 11 206 31" anchor="default"/>
- <Button id="btn_sea" taborder="3" text="조회" onclick="group3_group2_btn_sea_onclick" class="btn1" position="absolute 921 9 977 31" anchor="top right"/>
- <Calendar id="ipt_fromdd" taborder="4" autoselect="true" dateformat="yyyy-MM-dd" oneditclick="group3_group2_ipt_sumdt1_oneditclick" class="input_essential" position="absolute 88 11 188 30" anchor="default"/>
- <Calendar id="ipt_todd" taborder="5" autoselect="true" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 204 11 304 30" anchor="default"/>
- <Static id="caption00" text="구분 :" class="search_name" position="absolute 333 11 382 28"/>
- <Radio id="Radio00" taborder="6" columncount="2" rowcount="0" position="absolute 386 8 520 28" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_Radio00_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">부서별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">환자별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="투약X반환불가내역 조회" class="tit_1" position="absolute 0 0 179 25"/>
- <Grid id="grd_detllist" taborder="2" useinputpanel="false" position="absolute 222 99 1012 760" binddataset="ds_main_sumdetllist">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="94"/>
- <Column size="54"/>
- <Column size="67"/>
- <Column size="64"/>
- <Column size="76"/>
- <Column size="70"/>
- <Column size="59"/>
- <Column size="82"/>
- <Column size="49"/>
- <Column size="231"/>
- <Column size="70"/>
- <Column size="59"/>
- <Column size="105"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="병동"/>
- <Cell col="1" text="병실"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="처방일자"/>
- <Cell col="5" text="적용일자"/>
- <Cell col="6" text="약번호"/>
- <Cell col="7" text="처방코드"/>
- <Cell col="8" text="DC여부"/>
- <Cell col="9" text="처방명"/>
- <Cell col="10" text="수행일자"/>
- <Cell col="11" text="수행시간"/>
- <Cell col="12" text="처방등록일시"/>
- </Band>
- <Band id="body">
- <Cell text="bind:wardnm"/>
- <Cell col="1" text="bind:roomcd"/>
- <Cell col="2" text="bind:pid"/>
- <Cell col="3" text="bind:hngnm"/>
- <Cell col="4" displaytype="date" text="bind:prcpdd"/>
- <Cell col="5" displaytype="date" text="bind:drugdd"/>
- <Cell col="6" displaytype="text" style="align:center;" text="bind:drugno"/>
- <Cell col="7" text="bind:prcpcd"/>
- <Cell col="8" style="align:center;" text="bind:dcyn"/>
- <Cell col="9" style="align:left;padding:0 0 0 5;" text="bind:prcpnm"/>
- <Cell col="10" displaytype="date" text="bind:execdd"/>
- <Cell col="11" displaytype="text" style="align:center;" text="bind:exectm" mask="99:99" maskchar="__:__"/>
- <Cell col="12" text="bind:rgstdt" mask="9999-99-99 99:99"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line01" class="line_1" position="absolute 222 92 1012 102" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="cap_detl" text="부서별 상세내역" class="search_name" position="absolute 228 77 393 94"/>
- <Static id="cap_sum" text="집계내역" class="search_name" position="absolute 7 77 172 94"/>
- <Shape id="line00" class="line_1" position="absolute 2 92 208 102" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_sumlist" taborder="4" binddataset="ds_main_sumlist" useinputpanel="false" oncellclick="Grid00_oncellclick" oncelldblclick="Grid00_oncelldblclick" position="absolute 2 99 208 760">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="130"/>
- <Column size="0"/>
- <Column size="61"/>
- <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="건수"/>
- <Cell col="3"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;padding:5 5 5 5;" text="bind:wardnm"/>
- <Cell col="1" text="bind:prcpcd"/>
- <Cell col="2" text="bind:qty"/>
- <Cell col="3" text="bind:flag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_sumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_sumdetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="qty" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="drugdd" type="STRING" size="256"/>
- <Column id="drugno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_prntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
- <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
- <BindItem id="item0" compid="group2.Radio00" propid="value" datasetid="ds_send_req" columnid="flag"/>
- </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"
- function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var flag = ds_send_req.getColumn(0, "flag");
-
- if(flag =="1") {
- var oParam = {};
- oParam.id = "TRADT21001";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugXRtnRecList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_sumlist=info";
- oParam.async = false;
-
- } else {
- var oParam = {};
- oParam.id = "TRADT21002";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugXRtnRecDetlList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_main_sumdetllist=info";
- oParam.async = false;
- }
-
- tranf_submit(oParam);
- }
- function Grid00_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
-
- var wardcd = ds_main_sumlist.getColumn(obj.currentrow, "wardcd");
- var prcpcd = ds_main_sumlist.getColumn(obj.currentrow, "prcpcd");
- var flag = ds_main_sumlist.getColumn(obj.currentrow, "flag");
-
- var fromdd = ds_send_req.getColumn(0, "fromdd");
- var todd = ds_send_req.getColumn(0, "todd");
-
-
- ds_send_detl.setColumn(0, "wardcd", wardcd);
- //ds_send_detl.setColumn(0, "prcpcd", prcpcd);
- ds_send_detl.setColumn(0, "fromdd" , fromdd);
- ds_send_detl.setColumn(0, "todd" , todd);
-
- var oParam = {};
- oParam.id = "TRADT21002";
- oParam.service = "pharmacydrugsumapp.BeforeCure";
- oParam.method = "reqGetDrugXRtnRecDetlList";
- oParam.inds = "req=ds_send_detl";
- oParam.outds = "ds_main_sumdetllist=info";
- oParam.async = false;
- //oParam.callback = "cf_TRADT10323";
- tranf_submit(oParam);
- }
- function group2_Radio00_onitemclick(obj:Radio, e:RadioMouseEventInfo)
- {
-
- }
- function group2_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- var flag = ds_send_req.getColumn(0, "flag");
-
- if(flag == "1") {
- grd_sumlist.visible = true;
- cap_sum.visible = true;
-
- ds_main_sumdetllist.clearData();
-
- grd_detllist.position.left = 222;
- grd_detllist.position.width = 790;
- cap_detl.position.left=222;
-
-
-
- } else {
- ds_main_sumlist.clearData();
- grd_detllist.position.left = 0;
- grd_detllist.position.width = 1012;
- cap_detl.position.left=0;
- grd_sumlist.visible = false;
- cap_sum.visible = false;
- }
-
- }
- function SMADT22001_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADT22001_onload(obj:Form, e:LoadEventInfo)
- {
- var fromdd = utlf_getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
- var todd = utlf_getCurrentDate();
-
- ds_send_req.setColumn(0, "fromdd", fromdd);
- ds_send_req.setColumn(0, "todd", todd);
- ds_send_req.setColumn(0, "flag", "1");
- }
- ]]></Script>
- </Form>
- </FDL>
|