123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO50600" position="absolute 0 0 1010 800" titletext="일일환자보고" oninit="SPMMO50600_oninit" onload="SPMMO50600_onload">
- <Layouts>
- <Layout>
- <Static text="일일환자보고" position="absolute 0 0 120 25" align="align:center middle;" id="caption9" class="tit_1"/>
- <Div id="Div00" taborder="1" position="absolute 0 25 1010 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="진 료 과 :" position="absolute 197 10 279 30" align="align:center middle;" id="caption1" class="search_name"/>
- <Button position="absolute 892 10 948 30" id="btn_print" class="btn6" text="출력" onclick="Div00_btn_print_onclick" anchor="top right"/>
- <Button position="absolute 950 10 1006 30" id="btn_req" class="btn1" text="조회" onclick="Div00_btn_req_onclick" anchor="top right"/>
- <Calendar id="ipt_srchdd" taborder="1" autoselect="true" dateformat="yyyy-MM-dd" class="input" position="absolute 76 10 174 30"/>
- <Static id="caption7" text="보고일 :" class="search_name" position="absolute 10 10 84 30"/>
- <cp_comCodeChk id="cp_comCodeChk00" titletext="CheckBox Combo" taborder="2" text="cp_comCodeChk00" position="absolute 270 10 872 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_wardinlist" taborder="2" binddataset="ds_wardinlist" useinputpanel="false" position="absolute 0 128 1010 278" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="271"/>
- <Column size="40"/>
- <Column size="110"/>
- </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="S/A"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="전문의"/>
- <Cell col="8" text="담당의"/>
- <Cell col="9" text="진단명"/>
- <Cell col="10" text="질병군"/>
- <Cell col="11" text="내원일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:ordtype" combodataset="ds_ordtype" combocodecol="value" combodatacol="label"/>
- <Cell col="2" text="bind:roomcd"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:sa"/>
- <Cell col="6" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:atdoctnm"/>
- <Cell col="9" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="10" text="bind:drginfo"/>
- <Cell col="11" text="bind:indt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static01" text="병동 입원환자" class="tit_2" position="absolute 0 111 129 131"/>
- <Static id="Static00" text="병동 퇴원환자" class="tit_2" position="absolute 0 282 129 302"/>
- <Grid id="grd_wardoutlist" taborder="3" binddataset="ds_wardoutlist" useinputpanel="false" position="absolute 0 299 1010 449" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="271"/>
- <Column size="40"/>
- <Column size="110"/>
- </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="S/A"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="전문의"/>
- <Cell col="8" text="담당의"/>
- <Cell col="9" text="진단명"/>
- <Cell col="10" text="질병군"/>
- <Cell col="11" text="내원일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:ordtype" combodataset="ds_ordtype" combocodecol="value" combodatacol="label"/>
- <Cell col="2" text="bind:roomcd"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:sa"/>
- <Cell col="6" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:atdoctnm"/>
- <Cell col="9" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="10" text="bind:drginfo"/>
- <Cell col="11" text="bind:indt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static02" text="응급실 재실환자" class="tit_2" position="absolute 0 453 129 473"/>
- <Grid id="grd_erinlist" taborder="4" binddataset="ds_erinlist" useinputpanel="false" position="absolute 0 470 1010 620" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="271"/>
- <Column size="40"/>
- <Column size="110"/>
- </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="S/A"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="전문의"/>
- <Cell col="8" text="담당의"/>
- <Cell col="9" text="진단명"/>
- <Cell col="10" text="질병군"/>
- <Cell col="11" text="내원일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:ordtype" combodataset="ds_ordtype" combocodecol="value" combodatacol="label"/>
- <Cell col="2" text="bind:roomcd"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:sa"/>
- <Cell col="6" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:atdoctnm"/>
- <Cell col="9" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="10" text="bind:drginfo"/>
- <Cell col="11" text="bind:indt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_eroutlist" taborder="5" binddataset="ds_eroutlist" useinputpanel="false" position="absolute 0 641 1010 791" anchor="all" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="271"/>
- <Column size="40"/>
- <Column size="110"/>
- </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="S/A"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="전문의"/>
- <Cell col="8" text="담당의"/>
- <Cell col="9" text="진단명"/>
- <Cell col="10" text="질병군"/>
- <Cell col="11" text="내원일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:ordtype" combodataset="ds_ordtype" combocodecol="value" combodatacol="label"/>
- <Cell col="2" text="bind:roomcd"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:sa"/>
- <Cell col="6" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="7" text="bind:orddrnm"/>
- <Cell col="8" text="bind:atdoctnm"/>
- <Cell col="9" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="10" text="bind:drginfo"/>
- <Cell col="11" text="bind:indt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="Static03" text="응급실 퇴실환자" class="tit_2" position="absolute 0 624 129 644"/>
- <Static id="caption17" text="당직 전공의" class="cell_2" position="absolute 0 72 100 106" style="font:Dotum,9;"/>
- <TextArea id="textarea1" taborder="6" wordwrap="char" position="absolute 103 72 1010 106" readonly="true" enable="true"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_orddept" 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_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_ordtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">병동</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">응급</Col>
- <Col id="value">E</Col>
- </Row>
- <Row>
- <Col id="label">DSC</Col>
- <Col id="value">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_wardinlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordtype" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="atdoctnm" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="indt" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_wardoutlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordtype" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="atdoctnm" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="indt" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_erinlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordtype" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="atdoctnm" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="indt" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_eroutlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordtype" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="sa" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="atdoctnm" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="indt" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_reportinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dutdr" type="STRING" size="256"/>
- <Column id="wardincnt" type="STRING" size="256"/>
- <Column id="wardoutcnt" type="STRING" size="256"/>
- <Column id="erincnt" type="STRING" size="256"/>
- <Column id="eroutcnt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_hard" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING" size="256" sumtext="진료공통코드"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_result_hard" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.ipt_srchdd" propid="value" datasetid="ds_cond" columnid="srchdd"/>
- <BindItem id="item4" compid="textarea1" propid="value" datasetid="ds_reportinfo" columnid="dutdr"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-08-28
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-28 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMO50600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_wardinlist);
- grdf_initGrid(grd_wardoutlist);
- grdf_initGrid(grd_erinlist);
- grdf_initGrid(grd_eroutlist);
- }
- function SPMMO50600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(grd_wardinlist);
- grdf_setToolTipBind(grd_wardoutlist);
- grdf_setToolTipBind(grd_erinlist);
- grdf_setToolTipBind(grd_eroutlist);
-
- ds_cond.setColumn(0, "srchdd", utlf_getCurrentDate()); //종료일자는 현재일자
-
- lf_mmbfGetDeptCodeComboList(ds_orddept, "A"); //부서코드 콤보
- Div00.cp_comCodeChk00.setBindDataset(ds_orddept, "deptcd", "depthngnm");
-
- //20191025 이돈희 : 일일환자보고의 진료과 검색 설정 정보 관리
- ds_send_hard.setColumn(0, "hardcdno", "1900000001");
- var oParam = {};
- oParam.id = "TRMMO50602";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqGetPersonalConfigData";
- oParam.inds = "req=ds_send_hard";
- oParam.outds = "ds_result_hard=result";
- oParam.async = false;
- tranf_submit(oParam);
-
- if(ds_result_hard.rowcount > 0){
- Div00.cp_comCodeChk00.setData(ds_result_hard.getColumn(0, "trgtcdnm"));
- } else { // 설정정보가 없는 경우 현재 소속과로 조회
- Div00.cp_comCodeChk00.setData(sysf_getUserInfo("dutplcecd"));
- }
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo);
- }
- function Div00_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo);
- }
- function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(obj.value != "-") {
- setUserList(obj.value);
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo);
- }
- }
- function Div00_cmb_orddrid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo);
- }
- function Div00_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- fPrtPatList();
- }
- function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqGetPatList();
- }
- function fReqGetPatList() {
- var rtn = Div00.cp_comCodeChk00.getData();
- ds_cond.setColumn(0, "orddeptcd", rtn[0]);
- var oParam = {};
- oParam.id = "TRMMO50601";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqGetDayReportPatlist";
- oParam.inds = "req=ds_cond";
- oParam.outds = "ds_wardinlist=wardinlist ds_wardoutlist=wardoutlist ds_erinlist=erinlist ds_eroutlist=eroutlist ds_reportinfo=reportinfo";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : 일일환자 보고 출력
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fPrtPatList() {
- var rtn = Div00.cp_comCodeChk00.getData();
- ds_cond.setColumn(0, "orddeptcd", rtn[0]);
- ds_cond.setColumn(0, "orddeptnm", rtn[1]);
-
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/cond", ds_cond); // 데이터셋 1
- rptf_setNodeListToDOM(objDOM, "/root/main/patinfo/reportinfo", ds_reportinfo); // 데이터셋 2
- rptf_setNodeListToDOM(objDOM, "/root/main/patinfo/wardinlist", ds_wardinlist); // 데이터셋 3
- rptf_setNodeListToDOM(objDOM, "/root/main/patinfo/wardoutlist", ds_wardoutlist); // 데이터셋 4
- rptf_setNodeListToDOM(objDOM, "/root/main/patinfo/erinlist", ds_erinlist); // 데이터셋 5
- rptf_setNodeListToDOM(objDOM, "/root/main/patinfo/eroutlist", ds_eroutlist); // 데이터셋 6
- 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(["RPMMO50600"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|