123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMD01200" position="absolute 0 0 1197 744" titletext="제한항생제 의뢰내역" oninit="SMMMD01200_oninit" onload="SMMMD01200_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_limantibiotrustspeclist" taborder="18" binddataset="ds_grd_limantibiotrustspeclist" useinputpanel="false" position="absolute 0 120 1193 707" cellsizingtype="col" oncelldblclick="grd_limantibiotrustspeclist_oncelldblclick" onrbuttondown="grd_limantibiotrustspeclist_onrbuttondown" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="64"/>
- <Column size="76"/>
- <Column size="75"/>
- <Column size="56"/>
- <Column size="90"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="69"/>
- <Column size="69"/>
- <Column size="68"/>
- <Column size="207"/>
- <Column size="138"/>
- <Column size="40"/>
- <Column size="200"/>
- <Column size="65"/>
- <Column size="210"/>
- <Column size="0"/>
- <Column size="140"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="일수"/>
- <Cell col="16" text="처방사유"/>
- <Cell col="17" text="상태"/>
- <Cell col="18" text="승인/비승인 사유"/>
- <Cell col="19" text="연락처"/>
- <Cell col="20" text="비고"/>
- <Cell col="21" text="ioflag"/>
- <Cell col="22" text="pid"/>
- <Cell col="23" text="indd"/>
- <Cell col="24" text="cretno"/>
- <Cell col="25" text="seqno"/>
- <Cell col="26" text="limaprvno"/>
- <Cell col="27" text="aprvseq"/>
- <Cell col="28" text="cd"/>
- <Cell col="29" text="dschdd"/>
- <Cell col="30" text="srchdd"/>
- <Cell col="31" text="orddrid"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="expr:if(conpat == "Y") ? 1:0" enable="false"/>
- <Cell col="2" displaytype="expr:utlf_isNull(prcpdd) ? "mormal" : "date"" text="bind:prcpdd"/>
- <Cell col="3" displaytype="expr:utlf_isNull(appdd) ? "mormal" : "date"" text="bind:appdd"/>
- <Cell col="4" text="bind:roomcd"/>
- <Cell col="5" text="bind:dispnm2"/>
- <Cell col="6" text="bind:patsex"/>
- <Cell col="7" text="bind:patage"/>
- <Cell col="8" text="bind:orddeptcd"/>
- <Cell col="9" text="bind:orddeptnm"/>
- <Cell col="10" text="bind:prcpdr"/>
- <Cell col="11" text="bind:appdr"/>
- <Cell col="12" text="bind:pid"/>
- <Cell col="13" text="bind:basedis"/>
- <Cell col="14" text="bind:antibionm"/>
- <Cell col="15" text="bind:dayno"/>
- <Cell col="16" text="bind:prcpresn"/>
- <Cell col="17" text="bind:flag"/>
- <Cell col="18" text="bind:rtnreqresn"/>
- <Cell col="19" text="bind:cntctel"/>
- <Cell col="20" text="bind:remark"/>
- <Cell col="21" text="bind:ioflag"/>
- <Cell col="22" text="bind:pid"/>
- <Cell col="23" text="bind:indd"/>
- <Cell col="24" text="bind:cretno"/>
- <Cell col="25" text="bind:seqno"/>
- <Cell col="26" text="bind:limaprvno"/>
- <Cell col="27" text="bind:aprvseq"/>
- <Cell col="28" text="bind:antibiocd"/>
- <Cell col="29" text="bind:dschdd"/>
- <Cell col="30" text="bind:srchdd"/>
- <Cell col="31" text="bind:orddrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_print" taborder="7" text="출력" class="btn6" position="absolute 3 715 59 737" onclick="btn_print_onclick" anchor="left bottom"/>
- <Button id="btn_basecd" taborder="8" text="기준코드" class="btn3" position="absolute 61 715 141 737" onclick="btn_basecd_onclick" anchor="left bottom" visible="false"/>
- <Button id="btn_druginfo" taborder="9" text="약품정보" class="btn3" position="absolute 143 715 223 737" onclick="btn_druginfo_onclick" anchor="left bottom" visible="false"/>
- <Button id="btn_save" taborder="10" text="저장" class="btn4" visible="false" position="absolute 1010 715 1066 737" anchor="right bottom"/>
- <Button id="btn_del" taborder="11" text="삭제" class="btn4" visible="false" position="absolute 1068 715 1124 737" anchor="right bottom"/>
- <Button id="btn_init" taborder="12" text="초기화" class="btn4" visible="false" position="absolute 1126 715 1194 737" onclick="btn_init_onclick" anchor="right bottom"/>
- <Static id="caption10" text="제한항생제 의뢰내역" class="tit_2" position="absolute 0 99 155 123"/>
- <Button id="button106" taborder="14" text="1회 1일 응급 전체초기화" class="btn2" position="absolute 987 93 1138 115" onclick="button106_onclick" anchor="top right"/>
- <Button id="btn_excel" taborder="15" text="엑셀" class="btn7" position="absolute 1140 93 1193 115" onclick="btn_excel_onclick" anchor="top right"/>
- <Div id="group1" taborder="16" position="absolute 0 25 1194 90" class="div_SA" scrollbars="none" anchor="left top right">
- <Layouts>
- <Layout>
- <Combo id="cmb_ward" taborder="0" innerdataset="@ds_init_ward" codecolumn="deptcd" datacolumn="depthngnm" class="combo_s_essential" position="absolute 205 38 330 57" anchor="default"/>
- <Static id="caption3" text="병동 :" position="absolute 165 39 208 59" anchor="default"/>
- <Shape id="line20" linetype="vertical" class="line_4" position="absolute 1107 10 1113 33" anchor="top right"/>
- <Static id="caption8" text="~" class="search_no_b" position="absolute 592 10 605 27" anchor="default"/>
- <Static id="caption12" text="검색조건 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
- <Shape id="line16" linetype="vertical" class="line_4" position="absolute 202 10 208 33" anchor="default"/>
- <Static id="caption2" text="확인여부 :" class="search_name" position="absolute 730 9 816 26" anchor="default"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 322 10 328 33" anchor="default"/>
- <Radio id="rdo_outin" taborder="1" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 105 10 200 30" anchor="default" onitemchanged="group1_rdo_outin_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="rdo_prcpappfrm" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 210 10 320 30" anchor="default" onitemchanged="group1_rdo_prcpappfrm_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">처방</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">신청서</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="rdo_prcpappflag" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 330 10 475 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">처방일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">적용일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="rdo_appflag" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 330 10 425 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">신청일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 479 10 585 29" anchor="default" autoselect="true"/>
- <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 610 10 715 29" anchor="default" autoselect="true"/>
- <Radio id="rdo_cnfmyn" taborder="7" columncount="5" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 820 10 1100 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">미확인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">승인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">비승인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">기투여</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption1" position="absolute 828 30 928 50" anchor="default"/>
- <Button id="btn_search" taborder="10" text="조회" class="btn1" position="absolute 1126 10 1182 32" anchor="top right" onclick="group1_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line19" linetype="horizontal" class="line_1" position="absolute 0 116 1193 119" anchor="left top right"/>
- <Shape id="line15" linetype="horizontal" class="line_3" position="absolute 0 705 1194 711" anchor="left right bottom"/>
- <Static id="caption6" text="제한항생제 의뢰내역" class="tit_1" position="absolute 0 0 168 25"/>
- <Shape id="line00" class="line_1" position="absolute 0 117 1193 120" anchor="left top right"/>
- <Shape id="line01" class="line_1" position="absolute 0 118 1193 121" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_limantibiotrustspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="conpat" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="appdd" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="dispnm2" type="STRING"/>
- <Column id="patsex" type="STRING"/>
- <Column id="patage" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="prcpdr" type="STRING"/>
- <Column id="appdr" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="basedis" type="STRING"/>
- <Column id="antibionm" type="STRING"/>
- <Column id="dayno" type="STRING"/>
- <Column id="prcpresn" type="STRING"/>
- <Column id="flag" type="STRING"/>
- <Column id="rtnreqresn" type="STRING"/>
- <Column id="cntctel" type="STRING"/>
- <Column id="remark" type="STRING"/>
- <Column id="ioflag" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="seqno" type="STRING"/>
- <Column id="limaprvno" type="STRING"/>
- <Column id="aprvseq" type="STRING"/>
- <Column id="antibiocd" type="STRING"/>
- <Column id="dschdd" type="STRING"/>
- <Column id="srchdd" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="outin" type="STRING" size="256"/>
- <Column id="prcpappfrm" type="STRING" size="256"/>
- <Column id="prcpappflag" type="STRING" size="256"/>
- <Column id="appflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="cnfmyn" type="STRING" size="256"/>
- <Column id="org_prcpappfrm" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="outin">I</Col>
- <Col id="prcpappfrm">A</Col>
- <Col id="prcpappflag">P</Col>
- <Col id="appflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="cnfmyn">0</Col>
- <Col id="org_prcpappfrm"/>
- <Col id="wardcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cnts" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_curdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.rdo_outin" propid="value" datasetid="ds_main_cond" columnid="outin"/>
- <BindItem id="item1" compid="group1.rdo_prcpappfrm" propid="value" datasetid="ds_main_cond" columnid="prcpappfrm"/>
- <BindItem id="item2" compid="group1.rdo_appflag" propid="value" datasetid="ds_main_cond" columnid="appflag"/>
- <BindItem id="item3" compid="group1.rdo_prcpappflag" propid="value" datasetid="ds_main_cond" columnid="prcpappflag"/>
- <BindItem id="item4" compid="group1.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item5" compid="group1.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- <BindItem id="item6" compid="group1.rdo_cnfmyn" propid="value" datasetid="ds_main_cond" columnid="cnfmyn"/>
- <BindItem id="item7" compid="group1.cmb_ward" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- </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 SMMMD01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMMD01200_onload(obj:Form, e:LoadEventInfo)
- {
- //마우스 오른쪽버튼 설정
- frmf_createPopupMenu("pop_grd_limantibiotrustspeclist"
- ,"fPopupMenu"
- ,[{id: "fLimAntibioAprv" , level: "0", title: "제한항생제사용승인"}]
- );
- fInitialize();
- fInitialize1();
- }
- /******************************************************************
- * Argument :
- * Description : 마우스 오른쪽버튼 Event 호출
- ******************************************************************/
- function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
- if(e.id == "fLimAntibioAprv") {
- fLimAntibioAprv();
- }
- }
- /******************************************************************
- * Argument : fLimAntibioAprv()
- * Description : 사용승인 popup화면에 parameter 넘기기
- ******************************************************************/
- function fLimAntibioAprv(){
- if( fUpInfo() ) return;
-
- var cRow = ds_grd_limantibiotrustspeclist.rowposition;
- frmf_setParameter("antibiocd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "antibiocd"));
- frmf_setParameter("limaprvno", ds_grd_limantibiotrustspeclist.getColumn(cRow, "limaprvno"));
- frmf_setParameter("aprvseq", ds_grd_limantibiotrustspeclist.getColumn(cRow, "aprvseq"));
- frmf_setParameter("ioflag", ds_grd_limantibiotrustspeclist.getColumn(cRow, "ioflag"));
- frmf_setParameter("pid", ds_grd_limantibiotrustspeclist.getColumn(cRow, "pid"));
- frmf_setParameter("hngnm", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patnm"));
- frmf_setParameter("sex", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patsex"));
- frmf_setParameter("age", ds_grd_limantibiotrustspeclist.getColumn(cRow, "patage"));
- frmf_setParameter("roomcd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "roomcd"));
- frmf_setParameter("orddeptnm", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddeptnm"));
- frmf_setParameter("cretno", ds_grd_limantibiotrustspeclist.getColumn(cRow, "cretno"));
- frmf_setParameter("orddeptcd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddeptcd"));
- frmf_setParameter("prcpdd", ds_grd_limantibiotrustspeclist.getColumn(cRow, "prcpdd"));
- frmf_setParameter("orddrid", ds_grd_limantibiotrustspeclist.getColumn(cRow, "orddrid"));
-
- frmf_modal("SMMMD00200", "SMMMD00200", null, null, null, null, null, null, null, null, null, null, "M");
- }
- /******************************************************************
- * Argument : fLimAntibioAprv()
- * Description : 제한항생제사용승인 Event
- ******************************************************************/
- function fUpInfo(){
- var sessionPID = appf_getPatientId();
- if( sessionPID != ds_grd_limantibiotrustspeclist.getColumn(ds_grd_limantibiotrustspeclist.rowposition) ){
- fReqOpPatPamInfo();
- }
- }
- /******************************************************************
- * Argument : fInitialize()
- * Description : 검색조건 set
- ******************************************************************/
- function fInitialize(){
- ds_grd_limantibiotrustspeclist.clearData();
-
- fSetAprvListState();
-
- ds_init_curdt.addColumn("curdt", "string", 256);
- ds_init_curdt.setColumn(ds_init_curdt.addRow(), "curdt", utlf_getCurrentDate());
-
- var idate = new Date();
- var frDate = idate.getAddDate(-1, "D");
-
- ds_main_cond.setColumn(0, "fromdd", frDate.getDateFormat());
- ds_main_cond.setColumn(0, "todd", ds_init_curdt.getColumn(0, "curdt"));
-
- //미확인신청서건수
- fGetNoCnfmCnt();
- }
- /******************************************************************
- * Argument : fSetAprvListState()
- * Description : List Column set / 검색조건 set
- ******************************************************************/
- function fSetAprvListState(){
- var appflag = ds_main_cond.getColumn(0, "appflag");
- var prcpappfrm = ds_main_cond.getColumn(0, "prcpappfrm");
-
- if( prcpappfrm == "A" ){
- ds_main_cond.setColumn(0, "appflag", "A");
- }
-
- if( prcpappfrm == "P" ){
- //grd_tmedlist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body",""),"size",0); //관심
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdd"),"size",76); //처방일
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdd"),"size",0); //신청일
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","roomcd"),"size",56); //병실
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","dispnm2"),"size",90); //환자명
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patsex"),"size",40); //성별
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patage"),"size",40); //나이
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","orddeptnm"),"size",100); //진료과
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdr"),"size",69); //처방의
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdr"),"size",0); //신청의
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","pid"),"size",70); //환자번호
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","basedis"),"size",210); //기저질환
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","antibionm"),"size",140); //항생제명
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpresn"),"size",0); //처방사유
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","flag"),"size",65); //상태
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","rtnreqresn"),"size",210); //승인사유
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","cntctel"),"size",100); //연락처
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","remark"),"size",140); //비고
-
- group1.rdo_appflag.visible = false; //검색조건 : 신청일
- group1.rdo_prcpappflag.visible = true; //검색조건 : 처방일자 / 적용일자
- } else if( prcpappfrm == "A" || appflag == "A" ){
- //grd_tmedlist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body",""),"size",0); //관심
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdd"),"size",0); //처방일
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdd"),"size",76); //신청일
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","roomcd"),"size",56); //병실
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","dispnm2"),"size",90); //환자명
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patsex"),"size",40); //성별
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","patage"),"size",40); //나이
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","orddeptnm"),"size",100); //진료과
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpdr"),"size",0); //처방의
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","appdr"),"size",69); //신청의
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","pid"),"size",70); //환자번호
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","basedis"),"size",210); //기저질환
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","antibionm"),"size",140); //항생제명
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","prcpresn"),"size",200); //처방사유
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","flag"),"size",65); //상태
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","rtnreqresn"),"size",210); //승인사유
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","cntctel"),"size",100); //연락처
- grd_limantibiotrustspeclist.setFormatColProperty(grd_limantibiotrustspeclist.getBindCellIndex("body","remark"),"size",140); //비고
-
- group1.rdo_appflag.visible = true; //검색조건 : 신청일
- group1.rdo_prcpappflag.visible = false; //검색조건 : 처방일자 / 적용일자
- }
- }
- /******************************************************************
- * Argument : fGetNoCnfmCnt()
- * Description : 미확인신청서건수
- ******************************************************************/
- function fGetNoCnfmCnt(){
- ds_send_reqdata.clearData();
-
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMMD01202";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqGetNoCnfmCnt";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_cnts=cnts";
- oParam.async = false;
- //oParam.callback = "cf_TRMMD01202";
- tranf_submit(oParam);
-
- group1.caption1.text = "( " + ds_init_cnts.getColumn(0, "cnt") + " / " + ds_init_cnts.getColumn(0, "allcnt") + " )";
- }
- /******************************************************************
- * Argument : fInitialize1()
- * Description : 공통코드 / 진료과 / 병동 조회
- ******************************************************************/
- function fInitialize1(){
- //공통코드
- appf_getCodeList( [{dsNm: "ds_init_P0008", cdGrpId: "P0008"}], true );
-
- //진료과
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "ds_init_deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
-
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, null, "R", "replace", rslt_ref, null, null);
-
- //병동 조회
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "ds_init_ward";
- sort_field = "deptcd";
- sort_method = "asc";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, null, "R", "replace", rslt_ref, null, null);
-
- frmf_addComboItem("group1.cmb_ward", "", "", "above");
- }
- /******************************************************************
- * Argument :
- * Description : 외래 / 입원 선택 시 Event
- ******************************************************************/
- function group1_rdo_outin_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if( ds_main_cond.getColumn(0, "outin") == "O" ){
- group1.cmb_ward.visible = false;
- group1.caption3.visible = false;
- ds_main_cond.setColumn(0, "wardcd", "");
- } else {
- group1.cmb_ward.visible = true;
- group1.caption3.visible = true;
- }
- }
- /******************************************************************
- * Argument :
- * Description : 처방 / 신청서 선택 시 Event
- ******************************************************************/
- function group1_rdo_prcpappfrm_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSetAprvListState();
- }
- /******************************************************************
- * Argument :
- * Description : 조회 Button Event
- ******************************************************************/
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_main_cond.getColumn(0, "fromdd")) || utlf_isNull(ds_main_cond.getColumn(0, "todd")) ){
- sysf_messageBox("기간을", "C002");
- return;
- }
-
- ds_send_reqdata.copyData(ds_main_cond);
-
- var oParam = {};
- oParam.id = "TRMMD01201";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqGetLimAntibioTrustSpecCdList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_grd_limantibiotrustspeclist=limantibiotrustspeclist ds_init_cnts=cnts";
- oParam.async = false;
- //oParam.callback = "cf_TRMMD01201";
- tranf_submit(oParam);
-
- group1.caption1.text = "( " + ds_init_cnts.getColumn(0, "cnt") + " / " + ds_init_cnts.getColumn(0, "allcnt") + " )";
-
- }
- /******************************************************************
- * Argument :
- * Description : 1회 1일 응급 전체초기화 Button Event
- ******************************************************************/
- function button106_onclick(obj:Button, e:ClickEventInfo)
- {
- var retyn = sysf_messageBox("모든 환자에 대한 응급 초기화를", "S001");
- if( retyn == 6 ){
- var oParam = {};
- oParam.id = "TXMMD01201";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqExeAllERInit";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMMD01201";
- tranf_submit(oParam);
- } else return;
- }
- /******************************************************************
- * Argument :
- * Description : 엑셀 Button Event
- ******************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_grd_limantibiotrustspeclist.rowcount > 0 ){
- grdf_exportExcel(grd_limantibiotrustspeclist, "제한항생제의뢰내역", "제한항생제의뢰내역", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /******************************************************************
- * Argument :
- * Description : 출력 Button Event
- ******************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var pFlag = ds_main_cond.getColumn(0, "prcpappfrm");
- var objDOM = rptf_createDOM();
- if( pFlag == "A" ){
- rptf_setNodeListToDOM(objDOM, "/root/main/limantibiotrustspecinfo/limantibiotrustspeclist", ds_grd_limantibiotrustspeclist); // 데이터셋1 - 복약기준자료
- sysf_trace(objDOM.documentElement.source); // XML 내용출력
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPMMD01200"],[objParam], option);
- ds_main_patinfo.enableevent = true;
- } else if( pFlag == "P" ){
- rptf_setNodeListToDOM(objDOM, "/root/main/limantibiotrustspecinfo/limantibiotrustspeclist", ds_grd_limantibiotrustspeclist); // 데이터셋1 - 복약기준자료
- sysf_trace(objDOM.documentElement.source); // XML 내용출력
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPMMD01201"],[objParam], option);
- ds_main_patinfo.enableevent = true;
- }
- }
- /******************************************************************
- * Argument :
- * Description : 기준코드 Button Event
- ******************************************************************/
- function btn_basecd_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMMD00400", "SMMMD00400", null, null, null, null, null, null, null, null, null, null, "M");
- }
- /******************************************************************
- * Argument :
- * Description : 약품정보 Button Event
- ******************************************************************/
- function btn_druginfo_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMMD00500", "SMMMD00500", null, null, null, null, null, null, null, null, null, null, "M");
- }
- /******************************************************************
- * Argument :
- * Description : 초기화 Button Event
- ******************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grd_limantibiotrustspeclist.clearData();
- }
- /******************************************************************
- * Argument :
- * Description : 기준코드 Button Event
- ******************************************************************/
- function grd_limantibiotrustspeclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( ds_grd_limantibiotrustspeclist.rowcount > 0 ){
- fReqOpPatPamInfo();
- }
- }
- /******************************************************************
- * Argument : fReqOpPatPamInfo()
- * Description : 상단정보설정
- ******************************************************************/
- function fReqOpPatPamInfo(){
- var iRow = ds_grd_limantibiotrustspeclist.rowposition;
- var tioflag = ds_grd_limantibiotrustspeclist.getColumn(iRow, "ioflag");
- var ioflag;
- var srchdd;
- var param;
-
- //입원환자
- if( tioflag == "I" || tioflag == "E" || tioflag == "D" ){
- var row = ds_grd_limantibiotrustspeclist.rowposition;
- dsf_createDsRow("ds_req",[
- {col:"limaprvno" , val:ds_grd_limantibiotrustspeclist.getColumn(row, "limaprvno")}
- ,{col:"aprvseq" , val:ds_grd_limantibiotrustspeclist.getColumn(row, "aprvseq")}
- ,{col:"fromdd" , val:ds_main_cond.getColumn(0, "fromdd")}
- ]);
- var oParam = {};
- oParam.id = "TRMMD01203";
- oParam.service = "prcpmngtapp.LimAntibioMngt";
- oParam.method = "reqGetPatPamInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_send_savedata=savedata";
- oParam.async = false;
- oParam.callback = "cf_TRMMD01203";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMMD01203") > -1 ){
- srchdd = ds_send_savedata.getColumn(0, "srchdd");
- } else {
- srchdd = ds_main_cond.getColumn(0, "fromdd");
- }
- ioflag = tioflag;
- var pid = ds_grd_limantibiotrustspeclist.getColumn(row, "pid");
- var indd = ds_grd_limantibiotrustspeclist.getColumn(row, "indd");
- var cretno = ds_grd_limantibiotrustspeclist.getColumn(row, "cretno");
- var seqno = ds_grd_limantibiotrustspeclist.getColumn(row, "seqno");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- param = ioflag + "▦"
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd
- + "▦" + srchdd;
- } else if( tioflag == "O" ){ // 외래환자
- ioflag = tioflag;
- var pid = ds_grd_limantibiotrustspeclist.getColumn(row, "pid");
- var indd = ds_grd_limantibiotrustspeclist.getColumn(row, "indd");
- var cretno = ds_grd_limantibiotrustspeclist.getColumn(row, "cretno");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var srchdd = utlf_getCurrentDate();
- param = ioflag + "▦" //외래환자
- + pid + "▦"
- + orddd + "▦"
- + cretno + "▦"
- + instcd
- + "▦" + srchdd;
- }
- // frmf_setParameter("condparam", param);
- // frmf_modal("SPMMO08900", "SPMMO08900", null, null, null, null, null, null, null, null, null, null, "M");
- appf_initPatientInfo(param);
- }
- function cf_TRMMD01203(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /******************************************************************
- * Argument :
- * Description : 마우스 오른쪽 버튼 Event
- ******************************************************************/
- function grd_limantibiotrustspeclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
-
- if(e.row > -1){
- grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
- pop_grd_limantibiotrustspeclist.trackPopup(e.screenX,e.screenY);
- }
- return true;
- }
- ]]></Script>
- </Form>
- </FDL>
|