123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE02200" position="absolute 0 0 1195 785" titletext="Call Visit Time 현황" oninit="SMMNE02200_oninit" onload="SMMNE02200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="Call Visit Time 현황" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="group2" taborder="1" position="absolute 0 25 1195 64" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="1194" height="39">
- <Button id="button1" taborder="3" text="조회" class="btn1" position="absolute 982 10 1038 30" onclick="group2_button1_onclick" anchor="top right"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 963 10 969 32" anchor="top right"/>
- <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 15 10 91 30" anchor="default"/>
- <Calendar id="fromdd" taborder="0" class="input_essential" position="absolute 94 10 194 30" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true" anchor="default"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 196 10 211 30" anchor="default"/>
- <Calendar id="todd" taborder="1" class="input_essential" position="absolute 210 10 310 30" ontextchanged="group2_todd_ontextchanged" dateformat="yyyy-MM-dd" value="null" onchar="group2_todd_onchar" autoselect="true" autoskip="true" onkillfocus="group2_todd_onkillfocus" anchor="default"/>
- <Button id="button2" taborder="4" text="출력" class="btn6" position="absolute 1041 10 1097 30" onclick="group2_button2_onclick" anchor="top right"/>
- <Button id="button3" taborder="5" text="엑셀저장" class="btn7" position="absolute 1100 10 1180 30" onclick="group2_button3_onclick" anchor="top right"/>
- <Static id="caption1" text="조회부서 :" class="search_name" position="absolute 364 10 440 30" anchor="default"/>
- <Combo id="srchorddept" taborder="2" innerdataset="@ds_init_cmb_srchorddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 441 10 561 30" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 86 1195 92" anchor="left top right"/>
- <Grid id="grd_callvisitlsit" class="datagrid2" taborder="2" binddataset="ds_grd_callvisitlsit" useinputpanel="false" position="absolute 0 91 1195 769" onheadclick="datagrid2_onheadclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="65" band="left"/>
- <Column size="75" band="left"/>
- <Column size="40" band="left"/>
- <Column size="40"/>
- <Column size="220"/>
- <Column size="55"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="35"/>
- <Column size="30"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="40"/>
- <Column size="50"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="40"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- </Columns>
- <Rows>
- <Row size="35" 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="타과1"/>
- <Cell col="20" text="호출1"/>
- <Cell col="21" text="도착1"/>
- <Cell col="22" text="gab"/>
- <Cell col="23" text="타과2"/>
- <Cell col="24" text="호출2"/>
- <Cell col="25" text="도착2"/>
- <Cell col="26" text="gab"/>
- <Cell col="27" text="타과3"/>
- <Cell col="28" text="호출3"/>
- <Cell col="29" text="도착3"/>
- <Cell col="30" text="gab"/>
- <Cell col="31" text="타과4"/>
- <Cell col="32" text="호출4"/>
- <Cell col="33" text="도착4"/>
- <Cell col="34" text="gab"/>
- <Cell col="35" text="타과5"/>
- <Cell col="36" text="호출5"/>
- <Cell col="37" text="도착5"/>
- <Cell col="38" style="align:center middle;" text="gab"/>
- <Cell col="39" text="최초결정시간"/>
- <Cell col="40" text="최초퇴실시간"/>
- <Cell col="41" text="1차Revisit 입실시간"/>
- <Cell col="42" text="1차Revisit 결정시간"/>
- <Cell col="43" text="1차Revisit 퇴실시간"/>
- <Cell col="44" text="2차Revisit 입실시간"/>
- <Cell col="45" text="2차Revisit 결정시간"/>
- <Cell col="46" text="2차Revisit 퇴실시간"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" text="bind:sex"/>
- <Cell col="4" text="bind:age"/>
- <Cell col="5" text="bind:diagnm" tooltiptype="bottom" tooltiptext="bind:diagnm"/>
- <Cell col="6" text="bind:mainorddept"/>
- <Cell col="7" displaytype="normal" text="bind:indt" mask="expr:utlf_isNull(indt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="8" displaytype="normal" text="bind:fstexamorddt" mask="expr:utlf_isNull(fstexamorddt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="9" displaytype="normal" text="bind:decidt" mask="expr:utlf_isNull(decidt) ? '' : '####-##-## ##:##'" maskchar=" "/>
- <Cell col="10" displaytype="normal" text="bind:outrmdt" mask="expr:utlf_isNull(outrmdt) ? '' : '####-##-## ##:##'" maskchar=" "/>
- <Cell col="11" text="bind:recovwardcd"/>
- <Cell col="12" text="bind:opyn"/>
- <Cell col="13" text="bind:outrmcd"/>
- <Cell col="14" text="bind:callmodin"/>
- <Cell col="15" text="bind:visitmodcall"/>
- <Cell col="16" text="bind:dschdclrmodin"/>
- <Cell col="17" text="bind:outmodin"/>
- <Cell col="18" text="bind:outmoddschdclr"/>
- <Cell col="19" text="bind:difnm1"/>
- <Cell col="20" displaytype="normal" text="bind:difcall1" mask="expr:utlf_isNull(difcall1) ? '' : '####-##-## ##:##'" maskchar=" "/>
- <Cell col="21" displaytype="normal" text="bind:difvisit1" mask="expr:utlf_isNull(difvisit1) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="22" text="bind:difgab1"/>
- <Cell col="23" text="bind:difnm2"/>
- <Cell col="24" displaytype="normal" text="bind:difcall2" mask="expr:utlf_isNull(difcall2) ? '' : '####-##-## ##:##'" maskchar=" "/>
- <Cell col="25" displaytype="normal" text="bind:difvisit2" mask="expr:utlf_isNull(difvisit2) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="26" text="bind:difgab2"/>
- <Cell col="27" text="bind:difnm3"/>
- <Cell col="28" displaytype="normal" text="bind:difcall3" mask="expr:utlf_isNull(difcall3) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="29" displaytype="normal" text="bind:difvisit3" mask="expr:utlf_isNull(difvisit3) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="30" text="bind:difgab3"/>
- <Cell col="31" text="bind:difnm4"/>
- <Cell col="32" displaytype="normal" text="bind:difcall4" mask="expr:utlf_isNull(difcall4) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="33" displaytype="normal" text="bind:difvisit4" mask="expr:utlf_isNull(difvisit4) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="34" text="bind:difgab4"/>
- <Cell col="35" text="bind:difnm5"/>
- <Cell col="36" displaytype="normal" text="bind:difcall5" mask="expr:utlf_isNull(difcall5) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="37" displaytype="normal" text="bind:difvisit5" mask="expr:utlf_isNull(difvisit5) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="38" text="bind:difgab5"/>
- <Cell col="39" displaytype="normal" text="bind:fstdeitdt" mask="expr: utlf_isNull(fstdeitdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="40" displaytype="normal" text="bind:fstoutrmdt" mask="expr: utlf_isNull(fstoutrmdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="41" displaytype="normal" text="bind:fstrevisitindt" mask="expr: utlf_isNull(fstrevisitindt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="42" displaytype="normal" text="bind:fstrevisitdeitdt" mask="expr: utlf_isNull(fstrevisitdeitdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="43" displaytype="normal" text="bind:fstrevisitoutdt" mask="expr: utlf_isNull(fstrevisitoutdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="44" displaytype="normal" text="bind:scndrevisitindt" mask="expr: utlf_isNull(scndrevisitindt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="45" displaytype="normal" text="bind:scndrevisitdeitdt" mask="expr: utlf_isNull(scndrevisitdeitdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- <Cell col="46" displaytype="normal" text="bind:scndrevisitoutdt" mask="expr: utlf_isNull(scndrevisitoutdt) ? '' : '####-##-## ##:##'" maskchar=" " calendardisplaynulltype="none"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption22" text="CallTime/VisitTime" class="tit_2" position="absolute 0 69 139 85"/>
- <Static id="caption3" text="[표]" position="absolute 1164 765 1194 785" style="align:right bottom;" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_srchorddept" 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_grd_callvisitlsit" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="mainorddept" type="STRING" size="256" sumtext="주진료과"/>
- <Column id="diagnm" type="STRING" size="256" sumtext="주증상및진단명"/>
- <Column id="indt" type="STRING" size="256" sumtext="입실시간"/>
- <Column id="fstexamorddt" type="STRING" size="256" sumtext="초진시간"/>
- <Column id="decidt" type="STRING" size="256" sumtext="결정시간"/>
- <Column id="outrmdt" type="STRING" size="256" sumtext="퇴실시간"/>
- <Column id="recovwardcd" type="STRING" size="256" sumtext="중증"/>
- <Column id="opyn" type="STRING" size="256" sumtext="수술여부"/>
- <Column id="outrmcd" type="STRING" size="256" sumtext="퇴실사유"/>
- <Column id="callmodin" type="STRING" size="256" sumtext="입실-호출"/>
- <Column id="visitmodcall" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="dschdclrmodin" type="STRING" size="256" sumtext="입실-결정"/>
- <Column id="outmodin" type="STRING" size="256" sumtext="퇴실-입실"/>
- <Column id="outmoddschdclr" type="STRING" size="256" sumtext="결정-퇴실"/>
- <Column id="difnm1" type="STRING" size="256" sumtext="타과1"/>
- <Column id="difcall1" type="STRING" size="256" sumtext="호출1"/>
- <Column id="difvisit1" type="STRING" size="256" sumtext="도착1"/>
- <Column id="difgab1" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="difnm2" type="STRING" size="256" sumtext="타과2"/>
- <Column id="difcall2" type="STRING" size="256" sumtext="호출2"/>
- <Column id="difvisit2" type="STRING" size="256" sumtext="도착2"/>
- <Column id="difgab2" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="difnm3" type="STRING" size="256" sumtext="타과3"/>
- <Column id="difcall3" type="STRING" size="256" sumtext="호출3"/>
- <Column id="difvisit3" type="STRING" size="256" sumtext="도착3"/>
- <Column id="difgab3" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="difnm4" type="STRING" size="256" sumtext="타과4"/>
- <Column id="difcall4" type="STRING" size="256" sumtext="호출4"/>
- <Column id="difvisit4" type="STRING" size="256" sumtext="도착4"/>
- <Column id="difgab4" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="difnm5" type="STRING" size="256" sumtext="타과5"/>
- <Column id="difcall5" type="STRING" size="256" sumtext="호출5"/>
- <Column id="difvisit5" type="STRING" size="256" sumtext="도착5"/>
- <Column id="difgab5" type="STRING" size="256" sumtext="호출-도착"/>
- <Column id="fstdeitdt" type="STRING" size="256" sumtext="최초결정시간"/>
- <Column id="fstoutrmdt" type="STRING" size="256" sumtext="최초퇴실시간"/>
- <Column id="fstrevisitindt" type="STRING" size="256" sumtext="1차Revisit입실시간"/>
- <Column id="fstrevisitdeitdt" type="STRING" size="256" sumtext="1차Revisit결정시간"/>
- <Column id="fstrevisitoutdt" type="STRING" size="256" sumtext="1차Revisit퇴실시간"/>
- <Column id="scndrevisitindt" type="STRING" size="256" sumtext="2차Revisit입실시간"/>
- <Column id="scndrevisitdeitdt" type="STRING" size="256" sumtext="2차Revisit결정시간"/>
- <Column id="scndrevisitoutdt" type="STRING" size="256" sumtext="2차Revisit퇴실시간"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_carecomxp::CareCom.xjs"
- var srchtodd = {};
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /******************************************************************
- * Argument :
- * Description : oninit 메서드
- ******************************************************************/
- function SMMNE02200_oninit(obj:Form, e:InitEventInfo){
-
- }
- /******************************************************************
- * Argument :
- * Description : onload 메서드
- ******************************************************************/
- function SMMNE02200_onload(obj:Form, e:LoadEventInfo){
- // 화면공통
- frmf_initForm(obj);
- var setDate = getDateCalc(utlf_getCurrentDate() , 1);
-
- group2.fromdd.value = setDate;
- group2.todd.value = setDate;
- srchtodd = getDateAddc(setDate, 1);
-
- appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), // 근무지 기관 기준('dutplceinstcd'), 전체기관기준('totalinstcd')
- "orduseyn", // 업무사용여부 속성명
- "D", // 진료부서구분
- "dispseq", // 정렬할 컬럼명
- "asc", // 정렬방법(asc, desc)
- "", // 기준일자
- "", // 진료분과여부(대표과: R, 분과: C)
- "", // 데이터 출력 방식 (replace:교체, after:dest ds 마지막에 추가, before:dest ds 처음에 삽입)
- "ds_init_cmb_srchorddept", // 데이터셋
- false, // 동기/비동기
- ""); // callback
-
-
- if(ds_init_cmb_srchorddept.insertRow(0) < 0){
- return;
- }
- ds_init_cmb_srchorddept.setColumn(0, "depthngnm", '-');
- group2.srchorddept.index = 0;
- }
- /******************************************************************
- * Argument :
- * Description : 조회 버튼 클릭
- ******************************************************************/
- function group2_button1_onclick(obj:Button, e:ClickEventInfo){
- // 조회조건이 "-" 인 경우 전체조회가 되어야 하므로..
- var srchorddept = utlf_isNull(group2.srchorddept.value) ? '-' : group2.srchorddept.value;
-
- // 쿼리에 사용할 데이터셋 생성
- dsf_createDsRow("ds_send",
- [
- { col:"fromdd", type:"string", size:256, val: group2.fromdd.value },
- { col:"todd", type:"string", size:256, val: group2.todd.value },
- { col:"srchtodd", type:"string", size:256, val: getDateAddc(new String(group2.todd.value), 1) },
- { col:"srchorddept", type:"string", size:256, val: srchorddept }
- ],
- true);
-
- // trace('length: ' + new String(group2.fromdd.value).length);
- // trace('length: ' + srchtodd.length);
- var oParam = {};
- oParam.id = "TRMNE02201";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetCallVisitTime";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_grd_callvisitlsit=callvisitlsit";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE02201";
- tranf_submit(oParam);
- }
- /******************************************************************
- * Argument :
- * Description : todd 의 텍스트 변화
- e.posttext 문자 입력시 화면에 보여줄 문자열을 나타내는 속성입니다.
- e.pretext 문자가 입력되기 전 화면에 보여준 문자열을 나타내는 속성입니다.
- ******************************************************************/
- function group2_todd_ontextchanged(obj:Calendar, e:TextChangedEventInfo){
- //srchtodd = getDateAddc(e.posttext, 1);
- }
- /******************************************************************
- * Argument :
- * Description : 컬럼 헤드 클릭
- ******************************************************************/
- function datagrid2_onheadclick(obj:Grid, e:GridClickEventInfo){
- // 정렬한다
- grdf_gridSort(obj, e);
- }
- /******************************************************************
- * Argument :
- * Description : 엑설 저장 클릭
- ******************************************************************/
- function group2_button3_onclick(obj:Button, e:ClickEventInfo){
- grdf_exportExcel(grd_callvisitlsit, "응급실 Call&Visit Time_" + utlf_getCurrentDate(), "Sheet1", true, "", "user", true);
- }
- /******************************************************************
- * Argument :
- * Description : 출력 버튼 클릭
- ******************************************************************/
- function group2_button2_onclick(obj:Button, e:ClickEventInfo){
- // var objDOM = rptf_createDOM(); // DOM 객체 설정
- // rptf_setNodeListToDOM(objDOM, "/root/main/list/patlist", ds_grd_nursMngt); // 데이터셋
- //
- // 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(["RPMNE03300"],[objParam], option);
- }
- function group2_todd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
- {
- // trace('obj.value: ' + obj.value);
- //srchtodd = getDateAddc(new String(obj.value), 1);
- //trace('srchtodd: ' + srchtodd);
- }
- ]]></Script>
- </Form>
- </FDL>
|