123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMADC03400" position="absolute 0 0 1174 714" titletext="TDM회신내용조회" oninit="SMADC03400_oninit" onload="SMADC03400_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Static id="caption19" text="TDM회신내용조회" class="tit_1" position="absolute 0 0 151 25"/>
- <Div id="group2" taborder="2" class="div_SA" position="absolute 0 25 1172 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Radio id="rdo_ioflag" taborder="7" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 314 13 489 30" anchor="default" onitemchanged="group2_rdo_ioflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">day</Col>
- <Col id="datacolumn">일자별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">month</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">year</Col>
- <Col id="datacolumn">연별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption5" text="회신일자 :" class="search_name" position="absolute 5 12 79 29" anchor="default"/>
- <Calendar id="ipt_startreqdd" taborder="8" class="input_search" position="absolute 77 10 181 31" anchor="default" autoselect="true"/>
- <Calendar id="ipt_endreqdd" taborder="9" class="input_search" position="absolute 195 10 300 31" anchor="default" autoselect="true"/>
- <Shape id="line13" linetype="vertical" position="absolute 1081 8 1087 33" anchor="default"/>
- <Static id="caption7" text="회신상태 :" class="search_name" position="absolute 488 13 559 30" anchor="default"/>
- <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 1099 9 1155 31" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Radio id="radio1" taborder="11" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 563 13 774 30" style="textpadding:0 0 0 2;" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">all</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">z</Col>
- <Col id="datacolumn">자문회신</Col>
- </Row>
- <Row>
- <Col id="codecolumn">zr</Col>
- <Col id="datacolumn">회신제외</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="radio2" taborder="12" columncount="4" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 858 13 1048 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">all</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응급</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption1" text="의뢰경로 :" class="search_name" position="absolute 783 14 856 31" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button7" taborder="3" text="엑셀" class="btn7" position="absolute 1118 69 1172 91" onclick="button7_onclick" anchor="top right"/>
- <Grid id="grd_repllist" taborder="4" binddataset="ds_main_repllist" useinputpanel="false" position="absolute 0 93 1172 712" anchor="all" extendsizetype="row" cellsizingtype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="73"/>
- <Column size="62"/>
- <Column size="100"/>
- <Column size="77"/>
- <Column size="70"/>
- <Column size="39"/>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="92"/>
- <Column size="119"/>
- <Column size="88"/>
- <Column size="82"/>
- <Column size="110"/>
- <Column size="103"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="103"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="72"/>
- <Column size="67"/>
- </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="환자번호"/>
- <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="의뢰약물"/>
- <Cell col="12" text="회신결과"/>
- <Cell col="13" text="자문내용"/>
- <Cell col="14" text="참고사항"/>
- <Cell col="15" text="현재 Regimen"/>
- <Cell col="16" text="추천 Regimen"/>
- <Cell col="17" text="채혈시간(Trough)"/>
- <Cell col="18" text="채혈시간(Peak)"/>
- <Cell col="19" text="혈중농도(Trough)"/>
- <Cell col="20" text="혈중농도(Peak)"/>
- <Cell col="21" text="반감기(TI/2)"/>
- <Cell col="22" text="분포용적(V/d)"/>
- <Cell col="23" text="Clearancel(CL)"/>
- <Cell col="24" text="Km"/>
- <Cell col="25" text="Vmax"/>
- <Cell col="26" text="분석방법"/>
- <Cell col="27" text="키"/>
- <Cell col="28" text="체중"/>
- <Cell col="29" text="Scr"/>
- <Cell col="30" text="Ccr"/>
- <Cell col="31" text="Albumin"/>
- <Cell col="32" text="수가상태"/>
- <Cell col="33" text="자문상태"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;" text="bind:statflag" combodataset="ds_init_statflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;" text="bind:chosflag" combodataset="ds_init_chosflag" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="3" displaytype="expr:utlf_isNull(repldd)?'normal':'date'" text="bind:repldd" mask="expr:utlf_isNull(repldd)?'':'yyyy-MM-dd HH:mm'"/>
- <Cell col="4" text="bind:pid"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:age"/>
- <Cell col="7" text="bind:sex"/>
- <Cell col="8" text="bind:sikcnm"/>
- <Cell col="9" style="align:left;padding:0 2 0 2;" text="bind:reqdeptcd"/>
- <Cell col="10" style="align:left middle;padding:0 2 0 2;" text="bind:reqresn"/>
- <Cell col="11" text="bind:cnstdrugnm"/>
- <Cell col="12" text="bind:replrsltflag"/>
- <Cell col="13" text="bind:cnstcnts"/>
- <Cell col="14" text="bind:cmt"/>
- <Cell col="15" text="bind:prestregmcnts"/>
- <Cell col="16" text="bind:recmregmcnts"/>
- <Cell col="17" displaytype="expr:utlf_isNull(trghbcoldt)?'normal':'date'" text="bind:trghbcoldt" mask="expr:utlf_isNull(trghbcoldt)?'':'yyyy-MM-dd HH:mm'"/>
- <Cell col="18" displaytype="expr:utlf_isNull(peakbcoldt)?'normal':'date'" text="bind:peakbcoldt" mask="expr:utlf_isNull(peakbcoldt)?'':'yyyy-MM-dd HH:mm'"/>
- <Cell col="19" text="bind:trghblodconcen"/>
- <Cell col="20" text="bind:peakblodconcen"/>
- <Cell col="21" text="bind:t12val"/>
- <Cell col="22" text="bind:vdval"/>
- <Cell col="23" text="bind:clval"/>
- <Cell col="24" text="bind:kmval"/>
- <Cell col="25" text="bind:vmaxval"/>
- <Cell col="26" text="bind:analymthdcnts"/>
- <Cell col="27" text="bind:ht"/>
- <Cell col="28" text="bind:wt"/>
- <Cell col="29" text="bind:scrval"/>
- <Cell col="30" text="bind:ccrval"/>
- <Cell col="31" text="bind:albuminval"/>
- <Cell col="32" text="bind:sugastat"/>
- <Cell col="33" text="bind:jamonstat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_repllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="statflag" type="STRING"/>
- <Column id="chosflag" type="STRING"/>
- <Column id="repldd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="age" type="STRING"/>
- <Column id="sex" type="STRING"/>
- <Column id="sikcnm" type="STRING"/>
- <Column id="reqdeptcd" type="STRING"/>
- <Column id="reqresn" type="STRING"/>
- <Column id="cnstdrugnm" type="STRING"/>
- <Column id="replrsltflag" type="STRING"/>
- <Column id="cnstcnts" type="STRING"/>
- <Column id="cmt" type="STRING"/>
- <Column id="prestregmcnts" type="STRING"/>
- <Column id="recmregmcnts" type="STRING"/>
- <Column id="trghbcoldt" type="STRING"/>
- <Column id="peakbcoldt" type="STRING"/>
- <Column id="trghblodconcen" type="STRING"/>
- <Column id="peakblodconcen" type="STRING"/>
- <Column id="t12val" type="STRING"/>
- <Column id="vdval" type="STRING"/>
- <Column id="clval" type="STRING"/>
- <Column id="kmval" type="STRING"/>
- <Column id="vmaxval" type="STRING"/>
- <Column id="analymthdcnts" type="STRING"/>
- <Column id="ht" type="STRING"/>
- <Column id="wt" type="STRING"/>
- <Column id="scrval" type="STRING"/>
- <Column id="ccrval" type="STRING"/>
- <Column id="albuminval" type="STRING"/>
- <Column id="sugastat" type="STRING"/>
- <Column id="jamonstat" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="startrepldd" type="STRING" size="256"/>
- <Column id="endrepldd" type="STRING" size="256"/>
- <Column id="dateflag" type="STRING" size="256"/>
- <Column id="replstat" type="STRING" size="256"/>
- <Column id="chosflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="startrepldd"/>
- <Col id="endrepldd"/>
- <Col id="dateflag">day</Col>
- <Col id="replstat">all</Col>
- <Col id="chosflag">all</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_statflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">z</Col>
- <Col id="cdnm">자문회신</Col>
- </Row>
- <Row>
- <Col id="cdid">zr</Col>
- <Col id="cdnm">회신제외</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_chosflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">I</Col>
- <Col id="cdnm">입원</Col>
- </Row>
- <Row>
- <Col id="cdid">E</Col>
- <Col id="cdnm">응급</Col>
- </Row>
- <Row>
- <Col id="cdid">O</Col>
- <Col id="cdnm">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_startreqdd" propid="value" datasetid="ds_send_srchinfo" columnid="startrepldd"/>
- <BindItem id="item1" compid="group2.ipt_endreqdd" propid="value" datasetid="ds_send_srchinfo" columnid="endrepldd"/>
- <BindItem id="item2" compid="group2.rdo_ioflag" propid="value" datasetid="ds_send_srchinfo" columnid="dateflag"/>
- <BindItem id="item3" compid="group2.radio1" propid="value" datasetid="ds_send_srchinfo" columnid="replstat"/>
- <BindItem id="item4" compid="group2.radio2" propid="value" datasetid="ds_send_srchinfo" columnid="chosflag"/>
- </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";
- var arErrorCode = new HashArray();
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SMADC03400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMADC03400_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_srchinfo.setColumn(0, "startrepldd", utlf_getCurrentDate());
- ds_send_srchinfo.setColumn(0, "endrepldd", utlf_getCurrentDate());
-
- // 그리드 소트만
- grdf_setGridSort(grd_repllist);
- }
- /******************************************************************
- * Argument :
- * Description : 조회 button event
- ******************************************************************/
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRADC03401";
- oParam.service = "pharmacyconsultapp.TDMMngt";
- oParam.method = "reqGetTDMReplRsltList";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_repllist=repllist";
- oParam.async = false;
- //oParam.callback = "cf_TRADC03401";
- tranf_submit(oParam);
-
- fCnstResn(); //의뢰이유를 코드명으로 나열하기
- }
- /******************************************************************
- * Argument : fCnstResn()
- * Description :
- ******************************************************************/
- function fCnstResn() {
- for ( var k = 0; k < ds_main_repllist.rowcount; k++ ) {
- var cnstresn = utlf_transNullToEmpty(ds_main_repllist.getColumn(k, "reqresn")).split(" ");
- var temp = "";
- if( cnstresn.length > 0 ) {
- for( i = 0; i < cnstresn.length; i++ ) {
- if(cnstresn[i] == "1") temp = temp + "적정용량 확인, ";
- else if(cnstresn[i] == "2") temp = temp + "독성의심, ";
- else if(cnstresn[i] == "3") temp = temp + "기대이하의 약효, ";
- else if(cnstresn[i] == "4") temp = temp + "상호작용약물 추가/중단, ";
- else if(cnstresn[i] == "5") temp = temp + "입원시 초기 농도 확인, ";
- else if(cnstresn[i] == "6") temp = temp + "중단 후 감소된 농도확인, ";
- }
-
- ds_main_repllist.setColumn(k, "reqresn", temp.substr(0, temp.length-2));
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 일자별/월별/연별
- ******************************************************************/
- function group2_rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- ds_send_srchinfo.setColumn(0, "startrepldd", utlf_getCurrentDate());
- ds_send_srchinfo.setColumn(0, "endrepldd", utlf_getCurrentDate());
- if( ds_send_srchinfo.getColumn(0, "dateflag") == "day" ) { //일자별
- group2.ipt_startreqdd.dateformat = "yyyy-mm-dd";
- group2.ipt_endreqdd.dateformat = "yyyy-mm-dd";
- }
- if( ds_send_srchinfo.getColumn(0, "dateflag") == "month" ) { //월별
- group2.ipt_startreqdd.dateformat = "yyyy-mm";
- group2.ipt_endreqdd.dateformat = "yyyy-mm";
- }
- if( ds_send_srchinfo.getColumn(0, "dateflag") == "year" ) { //연별
- group2.ipt_startreqdd.dateformat= "yyyy";
- group2.ipt_endreqdd.dateformat = "yyyy";
- }
- }
- /******************************************************************
- * Argument :
- * Description : 일자별/월별/연별
- ******************************************************************/
- function button7_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_repllist.rowcount > 0 ){
- grdf_exportExcel(grd_repllist, "TDM회신내용조회", "TDM회신내용조회", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|