123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMC02100_방문객용재원환자조회" classname="SMPMC02100_방문객용재원환자조회" inheritanceid="" position="absolute 0 0 1196 682" titletext="방문객용 재원환자조회" oninit="SMPMC02100_oninit" onload="SMPMC02100_onload" onkeydown="SMPMC02100_방문객용재원환자조회_onkeydown">
- <Layouts>
- <Layout>
- <Static id="stt_titleText2" text="방문객용 재원환자 조회" onclick="caption00_onclick" position="absolute 0 0 180 25" class="tit_1"/>
- <Div id="div_search" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="14" text="조회" onclick="div_search_btn_search_onclick" class="btn1" position="absolute 1126 10 1182 30" anchor="top right"/>
- <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 11 82 31" anchor="default"/>
- <Static id="caption01" text="초기화시 F9버튼을 눌러 주세요!" visible="true" position="absolute 333 10 606 30" anchor="default" style="color:#0000ffff;font:Dotum,9,bold;"/>
- <Combo id="cmb_flag" taborder="18" value="1" text="환자 이름" codecolumn="codecolumn" datacolumn="datacolumn" index="0" onitemchanged="div_search_cmb_flag_onitemchanged" position="absolute 75 10 177 31" anchor="default" class="combo_essential">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">환자 이름</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">피보험자 이름</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="search_data" taborder="19" imemode="hangul" onkeydown="div_search_ed_ipt_data_onkeydown" position="absolute 187 10 325 30" class="input_essential" anchor="default" autoselect="true"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 10 1110 32" style="border: solid #ffe4bb #ffe4bb;" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption3" text="재원환자 리스트" class="tit_2" position="absolute 0 73 154 89"/>
- <Grid id="gd_PatientInfo" taborder="3" binddataset="ds_result_data" useinputpanel="false" position="absolute 0 94 1195 652" tabstop="true" tooltiptype="default" autosizingtype="none" anchor="all" cellsizingtype="col" scrollpixel="all" cellsizebandtype="allband" oncelldblclick="gd_PatientInfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="61"/>
- <Column size="0"/>
- <Column size="65"/>
- <Column size="34"/>
- <Column size="109"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="102"/>
- <Column size="66"/>
- <Column size="110"/>
- <Column size="169"/>
- <Column size="70"/>
- <Column size="120"/>
- <Column size="120"/>
- <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="환자번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="normal" style="align:center;background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:inhospstatus" tooltiptype="none"/>
- <Cell col="2" style="color:EXPR(EXPR(privacyyn=='Y'?'#FF99CC':'#000000'));color2:EXPR(EXPR(privacyyn=='Y'?'#FF99CC':'#000000'));" text="bind:instcd"/>
- <Cell col="3" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:hngnm"/>
- <Cell col="4" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:age"/>
- <Cell col="5" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:rrgstno"/>
- <Cell col="6" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyyn"/>
- <Cell col="7" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyrequest"/>
- <Cell col="8" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacytarget" tooltiptype="bottom"/>
- <Cell col="9" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacytype"/>
- <Cell col="10" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:privacyrmk"/>
- <Cell col="11" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:wardnm"/>
- <Cell col="12" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:roomnm"/>
- <Cell col="13" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:posinfonm"/>
- <Cell col="14" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:roomtel"/>
- <Cell col="15" style="align:left;background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:orddeptnm"/>
- <Cell col="16" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:sexnm"/>
- <Cell col="17" displaytype="date" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:indd" calendardisplaynulltype="none"/>
- <Cell col="18" displaytype="date" style="background:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');background2:EXPR(privacyyn=='Y'?'#FF99CC':'#ffffff');" text="bind:dschdd" calendardisplaynulltype="none"/>
- <Cell col="19" text="bind:pid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_init" taborder="4" text="초기화" onclick="grp_btn_btn_init_onclick" class="btn4" position="absolute 1127 656 1195 678" anchor="right bottom" hotkey="F9"/>
- <ImageViewer id="ImageViewer00" taborder="5" position="absolute 125 70 144 89" style="background:#ff99ccff;border:1 solid black ;"/>
- <Static id="caption00" text="사생활 보호 요청환자입니다. 안내시 주의하시기 바랍니다!!!" visible="true" position="absolute 148 71 526 91" style="color:red;font:Dotum,9;"/>
- <Button id="btn_print" taborder="6" text="출력" class="btn6" position="absolute 1139 67 1195 89" onclick="btn_print_onclick" anchor="top right"/>
- <Button id="Button00" taborder="7" text="병문안객 기록" position="absolute 1037 67 1137 89" onclick="Button00_onclick" class="btn2" anchor="top right"/>
- <Shape id="line18" class="line_1" position="absolute 0 89 1195 95" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item0" compid="div_search.cmb_flag" propid="value" datasetid="ds_req_data" columnid="srchcondflag"/>
- <BindItem id="item1" compid="div_search.search_data" propid="value" datasetid="ds_req_data" columnid="srchcond"/>
- </Bind>
- <Objects>
- <Dataset id="ds_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcondflag" type="STRING" size="1"/>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcondflag">1</Col>
- <Col id="srchcond"/>
- <Col id="instcd"> 3333</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_result_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inhospstatus" type="STRING" size="256" sumtext="입퇴원접수상태"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
- <Column id="roomnm" type="STRING" size="256" sumtext="병실명"/>
- <Column id="posinfonm" type="STRING" size="256" sumtext="위치정보"/>
- <Column id="roomtel" type="STRING" size="256" sumtext="병실전화번호"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="sexnm" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자(퇴원미수금일경우)"/>
- <Column id="pid" type="STRING" size="256" sumtext="환자의 고유ID"/>
- <Column id="privacyyn" type="STRING" size="256"/>
- <Column id="privacyrequest" type="STRING" size="256"/>
- <Column id="privacytarget" type="STRING" size="256"/>
- <Column id="privacytype" type="STRING" size="256"/>
- <Column id="privacyrmk" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_paper" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- <Column id="roomnm" type="STRING" size="256"/>
- <Column id="posinfonm" type="STRING" size="256"/>
- <Column id="roomtel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function SMPMC02100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPMC02100_onload(obj:Form, e:LoadEventInfo)
- {
- // Grid 툴팁 세팅
- grdf_setToolTipBind(gd_PatientInfo);
-
- // 에디트박스에 포커스
- div_search.search_data.setFocus();
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch()
- {
- //검색조건 콤보가 미선택 된 경우 알림
- var vaSrchCondFlag = ds_req_data.getColumn(0, "srchcondflag");
- if(vaSrchCondFlag < 1)
- {
- sysf_messageBox("검색조건을 정확히 ", "C001");
- return;
- }
-
-
- //이름을 입력안한 경우 알림
- var vaSearchDataLength = div_search.search_data.getLength();
- if(vaSearchDataLength < 1)
- {
- sysf_messageBox("이름을 ", "C001");
- div_search.search_data.setFocus();
- return;
- }
- //환자나 피보험자 성명이 1자인 경우 알림
- else if(vaSearchDataLength == 1)
- {
- if(vaSrchCondFlag == 1)
- {
- sysf_messageBox("환자성명 2자 이상", "C001");
- }
- else
- {
- sysf_messageBox("피보험자 성명을 2자 이상", "C001");
- }
- div_search.search_data.setFocus();
- return;
- }
- else
- {
- //do Nothing
- }
-
- var oParam = {};
- oParam.id = "SMPMC02101";
- oParam.service = "patinfomngtapp.VisitUsePatRef";
- oParam.method = "reqGetVisitUsePatRef";
- oParam.inds = "req=ds_req_data";
- oParam.outds = "ds_result_data=inhosppatlist";
- oParam.async = "false";
- oParam.callback = "cf_SMPMC02101";
-
- tranf_submit(oParam);
-
- ds_result_data.rowposition = -1;
-
- if( arErrorCode.pop("SMPMC02101") > -1 )
- {
- //조회 결과가 없는 경우 알림
- var vaRowCount = ds_result_data.getRowCount();
- if(vaRowCount <1)
- {
- sysf_messageBox("조회된 결과가", "I004");
- }
- }
- }
- function cf_SMPMC02101(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function div_search_ed_ipt_data_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- //엔터키 누른 경우 조회 기능
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- fSearch();
- obj.setSelect();
- }
- }
- function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- //초기화로 에디트 박스 및 그리드 내용 삭제
- obj.setFocus();
- div_search.search_data.value = "";
- ds_result_data.clearData();
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- //조회 결과가 없는 경우 알림
- var vaRowCount = ds_result_data.getRowCount();
- if(vaRowCount <1)
- {
- sysf_messageBox("조회된 결과가", "I004");
- }
- else
- {
- fPrint();
- }
- }
- function fPrint()
- {
- //프린트 기능
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main/visitinpatlist", ds_result_data); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPPMC02100"],[objParam], option);
- }
- function SMPMC02100_방문객용재원환자조회_onkeydown(obj:Form, e:KeyEventInfo)
- {
- //초기화로 에디트 박스 및 그리드 내용 삭제
- if(e.keycode == '120')// f9누를 경우 초기화
- {
- div_search.search_data.value = "";
- ds_result_data.clearData();
- }
- }
- function gd_PatientInfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var row = gd_PatientInfo.currentrow;
- var sInstcd = ds_result_data.getColumn(row, "instcd");
- var sHngnm = ds_result_data.getColumn(row, "hngnm");
- var sWardnm = ds_result_data.getColumn(row, "wardnm");
- var sRoomnm = ds_result_data.getColumn(row, "roomnm");
- var sPosinfonm = ds_result_data.getColumn(row, "posinfonm");
- var sRoomtel = ds_result_data.getColumn(row, "roomtel");
-
- var oParam = {};
- oParam.id = "TRPMC02100";
- oParam.service = "patinfomngtapp.VisitUsePatRef";
- oParam.method = "reqGetVisitUsePatRef";
- oParam.inds = "req=ds_req_data";
- oParam.outds = "ds_result_data=inhosppatlist";
- oParam.async = false;
- //oParam.callback = "cf_TRPMC02100";
- tranf_submit(oParam);
-
- ds_main_paper.setColumn(0, "instcd" , sInstcd);
- ds_main_paper.setColumn(0, "hngnm" , sHngnm);
- ds_main_paper.setColumn(0, "wardnm" , sWardnm);
- ds_main_paper.setColumn(0, "roomnm" , sRoomnm);
- ds_main_paper.setColumn(0, "posinfonm" , sPosinfonm);
- ds_main_paper.setColumn(0, "roomtel" , sRoomtel);
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main/paper", ds_main_paper); // 데이터셋 1
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
- rptf_exeReportPreview30(["RPPMC02200"],[objParam], option);
- //exeReportPreview("RPPMC02200", "XMLSTR", "","", "true","","","","","true");
- }
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- var row = gd_PatientInfo.currentrow;
- var sPid = ds_result_data.getColumn(row, "pid");
-
- if (utlf_isNull(sPid)) {
- sysf_messageBox("환자가 선택되지 않았습니다.", "C000");
- return;
- }
-
- frmf_setParameter("SMPMC02101_PID", sPid);
- frmf_setParameter("SMPMC02101_HNGNM", ds_result_data.getColumn(row, "hngnm"));
- frmf_setParameter("SMPMC02101_INDD", ds_result_data.getColumn(row, "indd"));
- frmf_setParameter("SMPMC02101_CRETNO", ds_result_data.getColumn(row, "cretno"));
- frmf_setParameter("SMPMC02101_ROOMCD", ds_result_data.getColumn(row, "roomcd"));
- frmf_setParameter("SMPMC02101_TYPE", "I");
-
- // 병문안객기록화면
- frmf_modal("SMPMC02101", "SMPMC02101", '', "", '', '', '', "", "", "", "", "", "M");
- }
- ]]></Script>
- </Form>
- </FDL>
|