123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMARC00700" position="absolute 0 0 1202 800" titletext="입원수술환자조회" oninit="SMARC00700_oninit" onload="SMARC00700_onload">
- <Layouts>
- <Layout>
- <Div id="group1" taborder="0" class="div_SA" position="absolute 0 24 1195 64" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1107 8 1113 31"/>
- <Static id="caption9" text="조회일자 :" class="search_name" position="absolute 11 12 110 29"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 293 13 305 30"/>
- <Button id="button19" taborder="1" class="icon_search" position="absolute 618 11 634 27" onclick="group1_button19_onclick"/>
- <Static id="caption15" text="등록번호:" class="search_name" position="absolute 438 11 517 28"/>
- <Static id="caption1" text="환자명 :" class="search_name" position="absolute 649 11 729 28"/>
- <Combo id="cmb_condflag" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 93 11 178 30" onitemchanged="group1_cmb_condflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">재원자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">퇴원일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">입원일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_fromdd" taborder="3" autoselect="true" autoskip="true" class="input_search" position="absolute 181 11 284 30"/>
- <Calendar id="ipt_todd" taborder="4" autoselect="true" class="input_search" position="absolute 309 11 412 30"/>
- <Edit id="ipt_pid" taborder="5" autoselect="true" class="input_search" position="absolute 515 10 615 29" onkeyup="group1_ipt_pid_onkeyup"/>
- <Edit id="ipt_hngnm" taborder="6" autoselect="true" class="input_search" position="absolute 722 10 822 29" onkeyup="group1_ipt_hngnm_onkeyup"/>
- <CheckBox id="chk_opyn" taborder="7" text="수술환자" truevalue="E" position="absolute 840 9 920 29" onclick="group1_chk_opyn_onclick"/>
- <CheckBox id="chk_reqyn" taborder="8" text="의뢰환자" truevalue="EP" position="absolute 920 9 1000 29" onclick="group1_chk_reqyn_onclick"/>
- <Button id="btn_search" taborder="9" text="조회" class="btn1" position="absolute 1126 10 1182 32" onclick="group1_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption22" text="입원/수술환자리스트" class="tit_2" position="absolute 0 86 147 107"/>
- <Shape id="line1" class="line_10" position="absolute 0 102 1195 108" anchor="left top right"/>
- <Grid id="grd_list" taborder="1" binddataset="ds_main_list_inpatlist" useinputpanel="false" position="absolute 0 107 1195 758" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_list_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28" band="left"/>
- <Column size="100"/>
- <Column size="66"/>
- <Column size="79"/>
- <Column size="90"/>
- <Column size="93"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="154"/>
- <Column size="67"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="200"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- </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="병원구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:wardcd"/>
- <Cell col="2" text="bind:roomcd"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" text="bind:hngnm"/>
- <Cell col="5" text="bind:rrgstno"/>
- <Cell col="6" text="bind:sex"/>
- <Cell col="7" text="bind:age"/>
- <Cell col="8" displaytype="text" text="bind:orddeptnm"/>
- <Cell col="9" text="bind:orddrnm"/>
- <Cell col="10" displaytype="date" text="bind:indd" calendardisplaynulltype="nulltext"/>
- <Cell col="11" displaytype="date" text="bind:dschdd" calendardisplaynulltype="nulltext"/>
- <Cell col="12" displaytype="date" text="bind:rgstdd" calendardisplaynulltype="nulltext"/>
- <Cell col="13" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
- <Cell col="14" displaytype="text" style="align:left middle;padding:2 2 2 2;" text="bind:coophospnm"/>
- <Cell col="15" displaytype="text" text="bind:drnm"/>
- <Cell col="16" displaytype="date" text="bind:repldd" calendardisplaynulltype="nulltext"/>
- <Cell col="17" displaytype="combo" style="align:center middle;" text="bind:hospgrade" combodataset="ds_init_cond_A0429" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="입원/수술 환자조회" class="tit_1" position="absolute 0 0 163 24"/>
- <Button id="btn_allclear" taborder="2" text="초기화" class="btn4" position="absolute 1126 763 1194 785" anchor="right bottom" onclick="btn_allclear_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="condflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="opyn" type="STRING" size="256"/>
- <Column id="reqyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="condflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="opyn"/>
- <Col id="reqyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_inpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
- <Column id="coophospnm" type="STRING" size="256" sumtext="의뢰병원명"/>
- <Column id="drnm" type="STRING" size="256" sumtext="의뢰의사명"/>
- <Column id="repldd" type="STRING" size="256" sumtext="회신일자"/>
- <Column id="hospgrade" type="STRING" size="256" sumtext="병원구분"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="seqno" type="STRING" size="256" sumtext="이력일련번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="진료상태"/>
- <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cond_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_patientinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.cmb_condflag" propid="value" datasetid="ds_main_search" columnid="condflag"/>
- <BindItem id="item1" compid="group1.ipt_fromdd" propid="value" datasetid="ds_main_search" columnid="fromdd"/>
- <BindItem id="item2" compid="group1.ipt_todd" propid="value" datasetid="ds_main_search" columnid="todd"/>
- <BindItem id="item3" compid="group1.ipt_pid" propid="value" datasetid="ds_main_search" columnid="pid"/>
- <BindItem id="item4" compid="group1.ipt_hngnm" propid="value" datasetid="ds_main_search" columnid="hngnm"/>
- <BindItem id="item5" compid="group1.chk_opyn" propid="value" datasetid="ds_main_search" columnid="opyn"/>
- <BindItem id="item6" compid="group1.chk_reqyn" propid="value" datasetid="ds_main_search" columnid="reqyn"/>
- </Bind>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- var CurrentDate = utlf_getCurrentDate();
- function SMARC00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMARC00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_list);
-
- fInit();
- }
- // 초기값 셋팅
- function fInit()
- {
- //병원구분코드(공통코드)조회
- ds_init_cond_A0429.clearData();
-
- var arrParam = [{dsNm: "ds_init_cond_A0429", cdGrpId: "A0429" }];
- appf_getCodeList(arrParam, true);
- //조회조건 세팅
- fSetCondition();
- }
- function fSetCondition(condflag)
- {
- if(utlf_isNull(condflag) || condflag == '' )
- {
- condflag = '1';
- }
- //condflag : 1 (내원자) , 2(퇴원일자)
- //내원자 조회는 잘짜입력안함.. 퇴원일자는 조회조건에 날짜선택가능하고 default는 오늘날짜만 ..
- if(condflag == '1')
- {
- ds_main_search.setColumn(0, "fromdd", "");
- ds_main_search.setColumn(0, "todd", "");
-
- group1.ipt_fromdd.enable = false;
- group1.ipt_todd.enable = false;
-
- ds_main_search.setColumn(0, "reqyn", "CP");
- }
- else if(condflag == '2' || condflag == '3')
- {
- ds_main_search.setColumn(0, "fromdd", CurrentDate);
- ds_main_search.setColumn(0, "todd", CurrentDate);
-
- group1.ipt_fromdd.enable = true;
- group1.ipt_todd.enable = true;
- }
-
- ds_main_search.setColumn(0, "condflag", condflag);
- }
- function group1_cmb_condflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSetCondition(obj.value);
- }
- function group1_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group1.btn_search.setFocus();
- fGetPatientInfo('1', obj.value);
- }
- }
- function fGetPatientInfo(srchcond, keyword)
- {
- ds_send_reqdata.clearData();
- ds_temp_patientinfo.clearData();
-
- dsf_makeValue(ds_send_reqdata, "srchcond", "String", srchcond);//1:환자번호조회, 2:환자명조회
- if(srchcond == '1')
- {
- dsf_makeValue(ds_send_reqdata, "pid", "String", keyword);
- }
- else if(srchcond == '2')
- {
- dsf_makeValue(ds_send_reqdata, "hngnm", "String", keyword);
- }
-
- var oParam = {};
- oParam.id = "TRARC00701";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_temp_patientinfo=patinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRARC00701";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRARC00701") > -1)
- {
- if(ds_temp_patientinfo.rowcount != 1)
- {
- fPopupWindowPatient(srchcond, keyword);
- }
- else if(ds_temp_patientinfo.rowcount == 1)
- {
- ds_main_search.setColumn(0, "pid", ds_temp_patientinfo.getColumn(0, "pid"));
- ds_main_search.setColumn(0, "hngnm", ds_temp_patientinfo.getColumn(0, "hngnm"));
- }
- }
-
- }
- function cf_TRARC00701(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fPopupWindowPatient(srchcond, keyword){
-
- //parameter값 세팅
- ds_temp_patientinfo.clearData();
- dsf_makeValue(ds_temp_patientinfo, "pid", "String", keyword == ''? group1.ipt_pid.text : keyword);
- dsf_makeValue(ds_temp_patientinfo, "hngnm", "String", keyword == ''? group1.ipt_hngnm.text : keyword);
-
- dsf_makeValue(ds_temp_patientinfo, "srchcond", "String", srchcond);
-
- //원무팀의 환자명을 받아오는 팝업창을 띄운다.
- var objArg = new Object();
- objArg.arg_ds_send = ds_temp_patientinfo;
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, "","","","","","","","","","M");
-
- //팝업의 result는 /root/main/patinfo/patinfolist 에 들어온다.
- ds_main_search.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_main_search.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
- }
- function group1_button19_onclick(obj:Button, e:ClickEventInfo)
- {
- fPopupWindowPatient();
- }
- function group1_ipt_hngnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- fSearch();
- }
- }
- function group1_chk_opyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "E")
- {
- }
- else
- {
- ds_main_search.setColumn(0, "opyn", "");
- }
- }
- function group1_chk_reqyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "CP")
- {
- }
- else
- {
- ds_main_search.setColumn(0, "reqyn", "");
- }
- }
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function fSearch()
- {
- var reqyn = ds_main_search.getColumn(0, "reqyn"); //조회조건의 의뢰환자 chk true일때의 값:CP
- var opyn = ds_main_search.getColumn(0, "opyn"); //조회조건의 수술환자 chk true일때의 값:E
- var pid = group1.ipt_pid.text; //환자등록번호
- var hngnm = group1.ipt_hngnm.text; //환자명
- var condflag = ds_main_search.getColumn(0, "condflag"); //조회조건
- var fromdd = ds_main_search.getColumn(0, "fromdd");
- var todd = ds_main_search.getColumn(0, "todd");
- if (condflag == "1")
- {
- }
- else
- {
- if( ! utlf_isValidDateTime( fromdd, 'YYYYMMDD') || ! utlf_isValidDateTime( todd, 'YYYYMMDD') )
- {
- sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return;
- }
-
- if( utlf_getDateInterval(fromdd, todd) > 31 )
- {
- sysf_messageBox("조회가능한 최대 기간은 1달입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return;
- }
-
- if( utlf_getDateInterval(fromdd, todd) < 0 )
- {
- sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return;
- }
-
- if (String(hngnm).length > 0 && String(hngnm).length < 2)
- {
- sysf_messageBox( '환자명을 2자리 이상', 'C001' );
- return;
- }
- }
-
- var oParam = {};
- oParam.id = "TRARC00701";
- oParam.service = "healcarecoopapp.ReqMngt";
- oParam.method = "reqGetInOpPatList";
- oParam.inds = "req=ds_main_search";
- oParam.outds = "ds_main_list_inpatlist=inpatlist";
- oParam.async = false;
- oParam.callback = "cf_TRARC00701";
- tranf_submit(oParam);
-
-
- if(arErrorCode.pop("TRARC00701") < 0)
- {
- sysf_messageBox('조회를', 'E009');
- return ;
- }
- }
- function cf_TRARC00701(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fOpen();
- }
- function fOpen()
- {
- var mainObj = frmf_getMainViewer();
- var curRow = ds_main_list_inpatlist.rowposition; //그리드에서 해당 환자 선택
- if (curRow < 0) return;
- var pid = ds_main_list_inpatlist.getColumn(curRow, "pid");
- var orddd = ds_main_list_inpatlist.getColumn(curRow, "indd");
- var cretno = ds_main_list_inpatlist.getColumn(curRow, "cretno");
- var instcd = ds_main_list_inpatlist.getColumn(curRow, "instcd");
- var acptseqno = ds_main_list_inpatlist.getColumn(curRow, "seqno");
- var dschdd = ds_main_list_inpatlist.getColumn(curRow, "dschdd");
- var indschacptstat = ds_main_list_inpatlist.getColumn(curRow, "indschacptstat");
- var ordtype = ds_main_list_inpatlist.getColumn(curRow, "ordtype");
- var curdate = utlf_getCurrentDate();
- if (ordtype == "E")
- {
- curdate = orddd;
- }
- else if (ordtype == "I")
- {
- if (indschacptstat == "D")
- {
- curdate = dschdd;
- }
- else if (indschacptstat == "T")
- {
- if (dschdd != "99991231")
- {
- curdate = dschdd;
- }
- }
- }
- else
- {
- ordtype = "I";
- if (indschacptstat == "D")
- {
- curdate = dschdd;
- }
- }
- var condparam = ordtype + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + '▦' + curdate;
- frmf_setParameter('condparam', condparam);
-
- appf_initPatientInfo(condparam);
- var curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
-
- if (curEmrRecObj != null)
- {
- curEmrRecObj.fInit();
- }
- else
- {
- frmf_open("SPARC00100", "SPARC00100", "", "","","","","","","","","","M");
- }
- }
- function btn_allclear_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit();
- }
- ]]></Script>
- </Form>
- </FDL>
|