123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO06800" position="absolute 0 0 1086 713" titletext="응급실의사 호출내역" oninit="SPMMO06800_oninit" onload="SPMMO06800_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 70 1086 713" id="grd_erdrcalllist" taborder="5" binddataset="ds_grd_erdrcalllist" cellsizingtype="col" treeinitstatus="expand,null" treeusecheckbox="false" treeuseexpandkey="true" treeuseimage="false" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="43"/>
- <Column size="0"/>
- <Column size="75"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="85"/>
- <Column size="99"/>
- <Column size="80"/>
- <Column size="29"/>
- <Column size="93"/>
- <Column size="107"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="107"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="190"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="levl"/>
- <Cell col="2" text="환자번호"/>
- <Cell col="3" text="indd"/>
- <Cell col="4" text="cretno"/>
- <Cell col="5" text="visitno"/>
- <Cell col="6" text="erorddoctcd"/>
- <Cell col="7" text="호출순서"/>
- <Cell col="8" text="callcntcno"/>
- <Cell col="9" text="callcnts"/>
- <Cell col="10" text="이름"/>
- <Cell col="11" text="진료과"/>
- <Cell col="12" text="담당의"/>
- <Cell col="13"/>
- <Cell col="14" text="호출번호"/>
- <Cell col="15" text="호출일시"/>
- <Cell col="16" text="callnm"/>
- <Cell col="17" text="callpsnid"/>
- <Cell col="18" text="호출자"/>
- <Cell col="19" text="도착일시"/>
- <Cell col="20" text="visitrgstrid"/>
- <Cell col="21" text="등록자"/>
- <Cell col="22" text="호출내용"/>
- </Band>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="align:left middle;" text="bind:outline" treestartlevel="1" treelevel="bind:lvl"/>
- <Cell col="1" text="bind:lvl"/>
- <Cell col="2" style="align:left middle;" text="bind:pid"/>
- <Cell col="3" style="align:left middle;" text="bind:indd"/>
- <Cell col="4" style="align:left middle;" text="bind:cretno"/>
- <Cell col="5" style="align:left middle;" text="bind:visitno"/>
- <Cell col="6" style="align:left middle;" text="bind:erorddoctcd"/>
- <Cell col="7" style="align:left middle;" text="bind:callno"/>
- <Cell col="8" style="align:left middle;" text="bind:callcntcno"/>
- <Cell col="9" style="align:left middle;" text="bind:callcnts"/>
- <Cell col="10" style="align:left middle;" text="bind:pname"/>
- <Cell col="11" displaytype="combo" edittype="combo" text="bind:erorddeptcd" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
- <Cell col="12" style="align:left middle;" text="bind:erorddoctnm"/>
- <Cell col="13" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:mainyn" combodataset="ds_mainyn" combocodecol="value" combodatacol="label"/>
- <Cell col="14" text="bind:dispcallcntcno"/>
- <Cell col="15" text="bind:calldt" mask="####-##-## ##:##"/>
- <Cell col="16" text="bind:callnm"/>
- <Cell col="17" text="bind:callpsnid"/>
- <Cell col="18" style="align:left middle;" text="bind:callpsnnm"/>
- <Cell col="19" text="bind:arrivdt" mask="expr:(!utlf_isNull(arrivdt) && arrivdt != "--------------") ? "####-##-## ##:##" : """/>
- <Cell col="20" text="bind:visitrgstrid"/>
- <Cell col="21" style="align:left middle;" text="bind:visitrgstnm"/>
- <Cell col="22" style="align:left middle;" text="bind:callcnts"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="응급실의사 호출내역" position="absolute 0 49 161 69" align="align:center middle;" id="caption2" class="tit_2"/>
- <Shape position="absolute 987 7 993 39" linetype="vertical" id="line3"/>
- <Div id="Div00" taborder="6" position="absolute 0 0 1086 46" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption11" text="호출일자" class="search_name" position="absolute 11 14 87 34" anchor="default"/>
- <Calendar id="input11" taborder="1" position="absolute 96 14 196 33" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static id="caption1" text="진료과 / 담당의" class="search_name" position="absolute 285 14 403 34" anchor="default"/>
- <Combo id="combo2" taborder="3" innerdataset="ds_userlist" codecolumn="userid" datacolumn="usernm" position="absolute 519 14 619 34" anchor="default"/>
- <Static id="caption3" text="등록번호" class="search_name" position="absolute 681 14 750 34" anchor="default"/>
- <Edit id="input1" taborder="4" position="absolute 762 14 846 34" anchor="default" onkeydown="Div00_input1_onkeydown" autoselect="true"/>
- <Edit id="input2" taborder="5" enable="false" position="absolute 849 14 937 34" anchor="default"/>
- <Combo id="cmb_orddept" taborder="6" innerdataset="ds_orddept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 416 14 516 34" anchor="default" onitemchanged="Div00_cmb_orddept_onitemchanged"/>
- <Button id="btn_req" taborder="2" text="조회" class="btn1" position="absolute 1017 14 1073 34" anchor="top right" onclick="Div00_btn_req_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_erdrcalllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="outline" type="STRING"/>
- <Column id="lvl" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="visitno" type="STRING"/>
- <Column id="erorddoctcd" type="STRING"/>
- <Column id="callno" type="STRING"/>
- <Column id="callcntcno" type="STRING"/>
- <Column id="callcnts" type="STRING"/>
- <Column id="pname" type="STRING"/>
- <Column id="erorddeptcd" type="STRING"/>
- <Column id="erorddoctnm" type="STRING"/>
- <Column id="mainyn" type="STRING"/>
- <Column id="dispcallcntcno" type="STRING"/>
- <Column id="calldt" type="STRING"/>
- <Column id="callnm" type="STRING"/>
- <Column id="callpsnid" type="STRING"/>
- <Column id="callpsnnm" type="STRING"/>
- <Column id="arrivdt" type="STRING"/>
- <Column id="visitrgstrid" type="STRING"/>
- <Column id="visitrgstnm" type="STRING"/>
- <Column id="callcnts" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING"/>
- <Column id="userid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <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="calldd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_mainyn" 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">M</Col>
- </Row>
- <Row>
- <Col id="label">부</Col>
- <Col id="value">S</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="Div00.input11" propid="value" datasetid="ds_cond" columnid="calldd"/>
- <BindItem id="item1" compid="Div00.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item2" compid="Div00.combo2" propid="value" datasetid="ds_cond" columnid="orddrid"/>
- <BindItem id="item3" compid="Div00.input1" propid="value" datasetid="ds_cond" columnid="pid"/>
- <BindItem id="item4" compid="Div00.input2" propid="value" datasetid="ds_cond" columnid="hngnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-08-29
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-08-29 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SPMMO06800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMO06800_onload(obj:Form, e:LoadEventInfo)
- {
- var currentDate = utlf_getCurrentDate();
- ds_cond.setColumn(0, "calldd", currentDate);
- lf_mmbfGetDeptCodeComboList(ds_orddept, "D", currentDate);
- frmf_addComboItem("Div00.cmb_orddept"); //진료과 전체항목 추가
- frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
-
- if(frmf_checkOpener()){
- var pid = opener.frmf_getParameter("SPMMO06800_pid");
- var hngnm = opener.frmf_getParameter("SPMMO06800_hngnm");
- }
-
- if(utlf_isNull(pid)){
- pid = appf_getPatientInfo("pid");
- hngnm = appf_getPatientInfo("pname");
- }
-
- ds_cond.setColumn(0, "pid" , pid);
- ds_cond.setColumn(0, "hngnm" , hngnm);
- ds_cond.setColumn(0, "orddeptcd", "-");
- ds_cond.setColumn(0, "orddrid" , "-");
-
- fReqERDrCallHistList();
- }
- function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqERDrCallHistList();
- }
- function Div00_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330"); //전체로 변경이 아닌 경우, 해당부서 의사조회
- frmf_addComboItem("Div00.combo2"); //의사콤보 전체항목 추가
- ds_cond.setColumn(0, "orddrid", "-");
- }
- function Div00_input1_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- if(utlf_isNull(obj.value)){
- return;
- }
-
- if(lf_reqPatInfo(ds_patnm, "pid", "ptbs", obj.value)) {
- ds_cond.setColumn(0, "hngnm", ds_patnm.getColumn(0, "hngnm"));
-
- fReqERDrCallHistList();
- }
- }
- }
- function fReConcPhone(){
- var totrow = ds_grd_erdrcalllist.rowcount;
- for(var currow = 0; currow < totrow; currow++){
- var callcntcno = ds_grd_erdrcalllist.getColumn(currow, "callcntcno");
- if(callcntcno.length == 11){
- var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 4) + "-" + callcntcno.substr(7, 4);
- }else if(callcntcno.length == 10){
- var dispcallcntcno = callcntcno.substr(0, 3) + "-" + callcntcno.substr(3, 3) + "-" + callcntcno.substr(6, 4);
- }
- ds_grd_erdrcalllist.setColumn(currow, "dispcallcntcno", dispcallcntcno);
- }
- }
- /**
- * @desc 응급실의사 호출내역 조회
- */
- function fReqERDrCallHistList(){
- ds_reqdata.copyData(ds_cond);
-
- var oParam = {};
- oParam.id = "TRMMO06801";
- oParam.service = "prcpmngtapp.ErMngt";
- oParam.method = "reqGetEROrdDrCallHist";
- oParam.inds = "req=ds_reqdata";
- oParam.outds = "ds_grd_erdrcalllist=erorddrcallhist";
- oParam.async = true;
- oParam.callback = "cf_TRMMO06801";
- tranf_submit(oParam);
- }
- function cf_TRMMO06801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- fReConcPhone();
- }
- ]]></Script>
- </Form>
- </FDL>
|