123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO32100" position="absolute 0 0 1000 800" titletext="응급실-visit등록" oninit="SPMMO32100_oninit" onload="SPMMO32100_onload">
- <Layouts>
- <Layout>
- <Static text="응급실 - Visit 등록" position="absolute 0 0 185 20" id="caption6" class="tit_1"/>
- <Grid position="absolute 0 20 985 789" id="grd_calledpatlist" binddataset="ds_main_calledpatlist" oncelldblclick="grd_calledpatlist_oncelldblclick" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="120"/>
- <Column size="115"/>
- <Column size="146"/>
- <Column size="0"/>
- <Column size="109"/>
- <Column size="221"/>
- <Column size="260"/>
- <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 text="환자명"/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="입원일"/>
- <Cell col="3" text="Call Type"/>
- <Cell col="4" text="호출구분"/>
- <Cell col="5" text="호출시간"/>
- <Cell col="6" text="호출과"/>
- <Cell col="7" text="instcd"/>
- <Cell col="8" text="cretno"/>
- <Cell col="9" text="visitno"/>
- <Cell col="10" text="erorddeptcd"/>
- <Cell col="11" text="grtype"/>
- </Band>
- <Band id="body">
- <Cell text="bind:hngnm"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" displaytype="date" text="bind:indd" mask="yyyy-MM-dd"/>
- <Cell col="3" text="bind:grtypenm"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:center;" text="bind:callgbn" combodataset="ds_callgbn" combocodecol="value" combodatacol="label"/>
- <Cell col="5" displaytype="date" text="bind:calldt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="6" style="align:left;" text="bind:disorddeptnm"/>
- <Cell col="7" text="bind:instcd"/>
- <Cell col="8" text="bind:cretno"/>
- <Cell col="9" text="bind:visitno"/>
- <Cell col="10" text="bind:erorddeptcd"/>
- <Cell col="11" text="bind:grtype"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_calledpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hngnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="grtypenm" type="STRING"/>
- <Column id="callgbn" type="STRING"/>
- <Column id="calldt" type="STRING"/>
- <Column id="disorddeptnm" type="STRING"/>
- <Column id="erorddeptnm" type="STRING"/>
- <Column id="erorddoctnm" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="visitno" type="STRING"/>
- <Column id="erorddeptcd" type="STRING"/>
- <Column id="erorddoctcd" type="STRING"/>
- <Column id="jobposcd" type="STRING"/>
- <Column id="grtype" type="STRING"/>
- </ColumnInfo>
- </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_main_calledpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hngnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="grtypenm" type="STRING"/>
- <Column id="callgbn" type="STRING"/>
- <Column id="calldt" type="STRING"/>
- <Column id="disorddeptnm" type="STRING"/>
- <Column id="erorddeptnm" type="STRING"/>
- <Column id="erorddoctnm" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="visitno" type="STRING"/>
- <Column id="erorddeptcd" type="STRING"/>
- <Column id="erorddoctcd" type="STRING"/>
- <Column id="jobposcd" type="STRING"/>
- <Column id="grtype" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_callgbn" 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">EE</Col>
- </Row>
- <Row>
- <Col id="label">외상</Col>
- <Col id="value">ET</Col>
- </Row>
- <Row>
- <Col id="label">권역외상</Col>
- <Col id="value">TT</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="Dataset03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="Dataset04" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var getErCalledPatListInterval = "";
- function SPMMO32100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMO32100_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
-
- // 초기화
- function fInitialize(){
- //model.removeNodeset("/root/main/calledpatinfo/calledpatlist");
- fGetErCalledPatList();
- // getErCalledPatListInterval = window.setInterval("fGetErCalledPatList()", "10000" ); //5초
- // model.refresh();
- }
- function fGetErCalledPatList(){
- dsf_makeValue(ds_send_reqdata, "instcd", "string", sysf_getUserInfo("duteplceinstcd")); //model.makeValue("/root/send/reqdata/instcd", getUserInfo("duteplceinstcd"));
-
- var oParam = {};
- oParam.id = "TRMMO32101";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqGetErCalledPatList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_calledpatlist=calledpatlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMO32101";
- tranf_submit(oParam);
- }
- function cf_TRMMO32101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- return;
- } else {
- grd_calledpatlist.setCellProperty("Body", -1, "size", 30); //grd_calledpatlist.rowHeight(0) = 30;
- for (i = 0; i < ds_main_calledpatlist.rowcount ; i++) {
- grd_calledpatlist.setCellProperty("Body", i, "size", 40); //grd_calledpatlist.rowHeight(i) = 40;
- }
- }
- }
- function grd_calledpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //if(isDataCell() == true) {
- //window.clearInterval(getErCalledPatListInterval);
- var hngnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "hngnm");
- var pid = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "pid");
- var indd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "indd");
- var grtypenm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "grtypenm");
- var erorddeptnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddeptnm");
- var erorddoctnm = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddoctnm");
- var instcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "instcd");
- var cretno = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "cretno");
- var visitno = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "visitno");
- var erorddeptcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddeptcd");
- var erorddoctcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "erorddoctcd");
- var jobposcd = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "jobposcd");
- var grtype = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "grtype");
- var callgbn = ds_main_calledpatlist.getColumn(ds_main_calledpatlist.rowposition, "callgbn");
-
- var param = hngnm + "/" + pid + "/" + indd + "/" + grtypenm + "/" + erorddeptnm + "/" + instcd + "/" + cretno + "/" + visitno + "/" +erorddeptcd + "/" +grtype + "/" +callgbn + "/" +erorddoctnm + "/" +erorddoctcd + "/" +jobposcd;
-
- frmf_setParameter("SPMMO032100_param", param);
-
- frmf_modal("SPMMO32200", "SPMMO32200", null, false, null, null, null, null, null, null, null, null, "M"); //modal("SPMMO32200");
- fGetErCalledPatList();
- //getErCalledPatListInterval = window.setInterval("fGetErCalledPatList()", "10000" ); //5초
- //}
- }
- ]]></Script>
- </Form>
- </FDL>
|