123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW10000" position="absolute 0 0 1195 249" titletext="예약정보" onload="SMMNW10000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 249" id="grp_biz" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="외래예약" position="absolute 0 23 95 39" id="caption1" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 40 594 46" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 45 594 125" id="grd_ordrsrvinfo" binddataset="ds_grd_ordrsrvinfo" anchor="default" cellsizingtype="col" tooltiptype="hover" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="102"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="21"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="진료과코드"/>
- <Cell col="9" text="센터코드"/>
- <Cell col="10" text="하위부서코드"/>
- <Cell col="11" text="진료의ID"/>
- <Cell col="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:rsrvdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext" tooltiptext="bind:rsrvdt"/>
- <Cell col="2" text="bind:rsrvday" mask="yyyy-mm-dd hh:mm"/>
- <Cell col="3" style="align:left;" text="bind:orddeptnm" tooltiptext="bind:orddeptnm"/>
- <Cell col="4" text="bind:centnm" tooltiptext="bind:centnm"/>
- <Cell col="5" style="align:left;" text="bind:orddrnm" tooltiptext="bind:orddrnm"/>
- <Cell col="6" displaytype="date" text="bind:fstrgstdt" calendardisplaynulltype="nulltext" tooltiptext="bind:fstrgstdt"/>
- <Cell col="7" text="bind:rcptamt" tooltiptext="bind:rcptamt"/>
- <Cell col="8" text="bind:orddeptcd"/>
- <Cell col="9" text="bind:centcd"/>
- <Cell col="10" text="bind:subdeptcd"/>
- <Cell col="11" text="bind:orddrid"/>
- <Cell col="12" text="bind:subdeptnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="퇴원 후 외래 처방" position="absolute 599 23 725 39" id="caption2" class="tit_2" anchor="default"/>
- <Shape position="absolute 599 40 1195 46" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
- <Grid position="absolute 599 45 1195 125" id="grd_testrsrvinfo" binddataset="ds_grd_testrsrvinfo" anchor="default" extendsizetype="row" autosizingtype="row" cellsizingtype="col" tooltiptype="hover" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="180"/>
- <Column size="100"/>
- <Column size="105"/>
- <Column size="65"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="21"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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="부서코드"/>
- <Cell col="9" text="수가코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:prcpclsnm" tooltiptext="bind:prcpclsnm"/>
- <Cell col="2" style="align:left;" text="bind:calcscorcd" tooltiptext="bind:calcscorcd"/>
- <Cell col="3" text="bind:rsrvdt" mask="yyyy-mm-dd hh:mm"/>
- <Cell col="4" style="align:left;" text="bind:testnm" tooltiptext="bind:testnm"/>
- <Cell col="5" style="align:left;padding:2 0 2 0;" text="bind:orddeptcdnm" wordwrap="word" tooltiptext="bind:orddeptcdnm"/>
- <Cell col="6" style="align:left;padding:2 0 2 0;" text="bind:testplacnm" wordwrap="word" tooltiptext="bind:testplacnm"/>
- <Cell col="7" displaytype="date" text="bind:prcphopedd" calendardisplaynulltype="nulltext" tooltiptext="bind:prcphopedd"/>
- <Cell col="8" text="bind:orddeptcd"/>
- <Cell col="9" text="bind:stat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="퇴원약 투약사항" position="absolute 0 131 128 147" id="caption3" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 148 1195 153" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
- <Grid position="absolute 0 152 1195 249" id="grd_dschdrugmedifact" binddataset="ds_grd_dschdrugmedifact" anchor="default" autofittype="col" cellsizingtype="col" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="100"/>
- <Column size="365"/>
- <Column size="60"/>
- <Column size="35"/>
- <Column size="54"/>
- <Column size="37"/>
- <Column size="50"/>
- <Column size="60"/>
- <Column size="185"/>
- <Column size="210"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="21"/>
- </Rows>
- <Band id="head">
- <Cell text="처방번호"/>
- <Cell col="1"/>
- <Cell col="2" text="약품코드"/>
- <Cell col="3" text="약품명[* : 혼동주의/고위험 약제]"/>
- <Cell col="4" colspan="2" text="1회 용량" taborder="undefined"/>
- <Cell col="6" colspan="2" text="1회 수량" taborder="undefined"/>
- <Cell col="8" text="횟수"/>
- <Cell col="9" text="일수"/>
- <Cell col="10" text="용법"/>
- <Cell col="11" text="주의사항"/>
- <Cell col="12" text="부서코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:prcpno"/>
- <Cell col="1" celltype="head" expr="expr:currow + 1"/>
- <Cell col="2" style="align:left;" text="bind:drugcd" tooltiptext="bind:drugcd"/>
- <Cell col="3" style="align:left;" text="bind:drugnm" tooltiptext="bind:drugnm"/>
- <Cell col="4" style="align:right;" text="bind:drprcpetc7" tooltiptext="bind:drprcpetc7"/>
- <Cell col="5" style="align:left;" text="bind:prcpvolunitflag" tooltiptext="bind:prcpvolunitflag"/>
- <Cell col="6" style="align:right;" text="bind:drprcpetc8" tooltiptext="bind:drprcpetc8"/>
- <Cell col="7" style="align:left;" text="bind:prcpqtyunitflag" tooltiptext="bind:prcpqtyunitflag"/>
- <Cell col="8" text="bind:prcptims" tooltiptext="bind:prcptims"/>
- <Cell col="9" text="bind:prcpdayno" tooltiptext="bind:prcpdayno"/>
- <Cell col="10" style="align:left middle;" text="bind:direc" tooltiptext="bind:direc"/>
- <Cell col="11" style="align:left;" text="bind:caucnts" tooltiptext="bind:caucnts"/>
- <Cell col="12" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="입원의뢰서 정보" position="absolute 0 2 120 22" id="caption4" class="tit_2" anchor="default"/>
- <Edit readonly="true" position="absolute 121 0 577 20" id="output1" anchor="default" class="output"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_ordrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdt" type="STRING"/>
- <Column id="rsrvday" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="centnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="rcptamt" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="centcd" type="STRING"/>
- <Column id="subdeptcd" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- <Column id="subdeptnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_testrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpclsnm" type="STRING"/>
- <Column id="calcscorcd" type="STRING"/>
- <Column id="rsrvdt" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="testplacnm" type="STRING"/>
- <Column id="prcphopedd" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="stat" type="STRING"/>
- <Column id="orddeptcdnm" type="STRING" size="0"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_dschdrugmedifact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpno" type="STRING"/>
- <Column id="drugcd" type="STRING"/>
- <Column id="drugnm" type="STRING"/>
- <Column id="drprcpetc7" type="STRING"/>
- <Column id="prcpvolunitflag" type="STRING"/>
- <Column id="drprcpetc8" type="STRING"/>
- <Column id="prcpqtyunitflag" type="STRING"/>
- <Column id="prcptims" type="STRING"/>
- <Column id="prcpdayno" type="STRING"/>
- <Column id="direc" type="STRING"/>
- <Column id="caucnts" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_inrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inreq" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_cond" 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="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="dschdclrdt" type="STRING" size="256"/>
- <Column id="dschdclrtyn" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="hngnm2" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_dschtransferinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_ordrsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdt" type="STRING"/>
- <Column id="rsrvday" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="centnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="rcptamt" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="centcd" type="STRING"/>
- <Column id="subdeptcd" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- <Column id="subdeptnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.output1" propid="value" datasetid="ds_main_inrsrvinfo" columnid="inreq"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function fGetRsrvInfo(){
- /*var pid = model.getValue("/root/temp/cond/list/pid");*/
- var pid = ds_temp_cond.getColumn(0, "pid");
-
- var _tmp = String(ds_temp_cond.getColumn(0, "dschdclrdt"));
- var _dschdclrdt = _tmp.substr(0, 8)
- ds_temp_cond.setColumn(0, "dschdclrdt", _dschdclrdt );
-
- if (pid != ""){
- /*submit("TRMNW10001");*/
- //this.grp_biz.grd_dschdrugmedifact.
- var oParam = {};
- oParam.id = "TRMNW10001";
- oParam.service = "wardcareapp.WardDschCareRec";
- oParam.method = "reqGetPamRsrvInfo";
- oParam.inds = "req=ds_temp_cond";
- oParam.outds = "ds_grd_ordrsrvinfo=ordrsrvinfo ds_grd_testrsrvinfo=testrsrvinfo ds_grd_dschdrugmedifact=dschdrugfactinfo ds_temp_dschtransferinfo=dschtransferinfo ds_main_inrsrvinfo=inrsrvinfo";
- oParam.async = false;
-
- tranf_submit(oParam);
-
- //trace("ds_grd_testrsrvinfo:" + ds_grd_testrsrvinfo.saveXML());
-
- // model.makeNode("/root/main/dschcareinfo/ordrsrvinfo"); //-> ds_grd_ordsrvinfo
- // model.makeNode("/root/main/dschcareinfo/testrsrvinfo"); //-> ds_grd_testsrvinfo
- // model.makeNode("/root/main/dschcareinfo/dschdrugfactinfo"); //-> ds_grd_dschdrugmedifact
-
- /*copyNodeType("/root/main/dschcareinfo/ordrsrvinfo", "/root/hidden/dschcareinfo/ordrsrvinfo");*/
- dsf_copyDs(ds_hidden_ordrsrvinfo, this.ds_grd_ordrsrvinfo , "replace"); //after, before, replace,
-
-
- var dschdclrtyn = ds_temp_cond.getColumn(0, "dschdclrtyn"); //퇴원예고
-
- //trace("dschdclrtyn : " + dschdclrtyn);
- if(dschdclrtyn == 'N') {
- //model.makeValue("/root/main/dschcareinfo/rsrvinfo/inrsrvinfo/inreq", "입원예정으로 발급된 입원장이 없습니다.");
- ds_main_inrsrvinfo.setColumn(0, "inreq", "입원예정으로 발급된 입원장이 없습니다.");
- }
-
- if(ds_main_inrsrvinfo.rowcount == 0)
- {
- ds_main_inrsrvinfo.addRow();
- }
-
- if(utlf_isNull(ds_main_inrsrvinfo.getColumn(0, "inreq"))){
- ds_main_inrsrvinfo.setColumn(0, "inreq", "입원예정으로 발급된 입원장이 없습니다.");
- }
-
- // var cnt = getNodesetCount("/root/main/dschcareinfo/testrsrvinfo");
- var cnt = this.ds_grd_testrsrvinfo.rowcount;
-
- if(cnt> 0){
- for(var i=0;i< ds_grd_testrsrvinfo.rowcount ;i++){
- var testplacnm = ds_grd_testrsrvinfo.getColumn( i, "testplacnm");
-
- if(testplacnm.length > 8){
- var testplacnm2 = testplacnm.substr(testplacnm.length-8,testplacnm.length-4);
-
- if(testplacnm2.isNumber() == true){
- ds_grd_testrsrvinfo.setColumn(i, "testplacnm",testplacnm.substr(0,testplacnm.length-8));
- }
- }
- }
- }
-
- // grd_ordrsrvinfo.rebuild();
- // grd_testrsrvinfo.rebuild();
- // grd_dschdrugmedifact.rebuild();
- //model.refresh();
- }
- }
- function SMMNW10000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- // grdf_initGrid(grp_biz.grd_dschdrugmedifact);
- // grdf_initGrid(grp_biz.grd_ordrsrvinfo);
- // grdf_initGrid(grp_biz.grd_testrsrvinfo);
-
- }
- ]]></Script>
- </Form>
- </FDL>
|