123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW19100" position="absolute 0 0 1200 775" titletext="검사예약환자리스트조회" oninit="SMMNW19100_oninit" onload="SMMNW19100_onload" ontimer="SMMNW19100_ontimer">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="검사예약환자리스트조회" position="absolute 0 0 178 25" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 770" id="grp_biz">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 1194 65" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 990 17 1046 39" id="button3" class="btn1" text="조회" onclick="grp_biz_grp_sea_button3_onclick"/>
- <Shape position="absolute 962 17 968 39" linetype="vertical" id="line13" class="line_4"/>
- <Static text="병동 :" position="absolute 19 21 69 38" id="caption2" class="search_name"/>
- <Static text="~" position="absolute 477 19 492 39" id="caption1"/>
- <Static text="내환자 :" position="absolute 645 20 709 37" id="caption4" class="search_name"/>
- <Calendar position="absolute 384 19 472 38" id="ipt_fromdd" class="input_default" autoselect="true"/>
- <Calendar position="absolute 493 19 581 38" id="ipt_todd" class="input_default" autoselect="true"/>
- <Combo position="absolute 71 19 238 38" id="cmb_wardcd" class="combo_s_essential" innerdataset="@ds_init_ward" datacolumn="wardnm" codecolumn="wardcd"/>
- <Combo position="absolute 711 19 825 38" id="cmb_settingrnid" class="combo_search" innerdataset="@ds_init_settingrn" datacolumn="settingrnnm" codecolumn="settingrnid"/>
- <Static text="처방일자 :" position="absolute 303 20 380 37" id="caption9" class="search_name"/>
- <Button position="absolute 1059 17 1139 39" id="button1" class="btn7" text="엑셀저장" onclick="grp_biz_grp_sea_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 88 1190 94" linetype="horizontal" id="line16" class="line_10"/>
- <Static text="검사예약환자리스트" position="absolute 0 72 150 88" align="align:center middle;" id="caption26" class="tit_2"/>
- <Static text="[표]" position="absolute 1090 730 1190 750" align="align:right middle;" id="caption8" style="align:right middle;"/>
- <Grid position="absolute 0 93 1190 727" id="grd_rsrv" binddataset="ds_main_rsrvlist_rsrvinfo" oncelldblclick="grp_biz_grd_rsrv_oncelldblclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="45"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="360"/>
- <Column size="0"/>
- <Column size="110"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="160"/>
- <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="S/A"/>
- <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="진료의ID"/>
- <Cell col="15" text="진료의"/>
- <Cell col="16" text="처방일자"/>
- <Cell col="17" text="처방상태코드"/>
- <Cell col="18" text="처방상태"/>
- <Cell col="19" text="검사실코드"/>
- <Cell col="20" text="검사실명"/>
- <Cell col="21" text="생성번호"/>
- <Cell col="22" text="기관코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:roomcd" suppress="1" suppressalign="middle,over"/>
- <Cell col="1" text="bind:pid" suppress="2" suppressalign="middle,over"/>
- <Cell col="2" text="bind:hngnm" suppress="3" suppressalign="middle,over"/>
- <Cell col="3" text="bind:sexage"/>
- <Cell col="4" text="bind:prcpgenrflag"/>
- <Cell col="5" text="bind:prcpgenrflagnm"/>
- <Cell col="6" text="bind:indd"/>
- <Cell col="7" text="bind:rsrvflag"/>
- <Cell col="8" text="bind:rsrvflagnm"/>
- <Cell col="9" text="bind:rsrvdt" mask="expr:utlf_isNull(rsrvdt) == false ? '####-##-## ##:##' : ''"/>
- <Cell col="10" text="bind:prcpcd"/>
- <Cell col="11" text="bind:prcpnm"/>
- <Cell col="12" text="bind:orddeptcd"/>
- <Cell col="13" text="bind:orddeptnm"/>
- <Cell col="14" text="bind:orddrid"/>
- <Cell col="15" text="bind:orddrnm"/>
- <Cell col="16" displaytype="date" text="bind:iprcprcpdd" calendardisplaynulltype="none"/>
- <Cell col="17" text="bind:execprcpstatcd"/>
- <Cell col="18" text="bind:execprcpstatnm"/>
- <Cell col="19" text="bind:excuroomcd"/>
- <Cell col="20" text="bind:excuroomnm"/>
- <Cell col="21" text="bind:cretno"/>
- <Cell col="22" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 1 742 343 766" id="roundrect4" class="roundrect_example" type="roundrectangle" style="fillbrush:solid #fffbf2ff true;background:#fffbf2ff;"/>
- <Static text="※ 환자 더블클릭 시 검사예약 프로그램으로 연계됩니다." position="absolute 13 747 328 762" id="caption63"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardlistopt" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="검색시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="검색끝일자"/>
- <Column id="orddd" type="STRING" size="256" sumtext="기준일자"/>
- <Column id="settingrnid" type="STRING" size="256" sumtext="내환자SettingID"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_settingrn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="settingrnid" type="STRING" size="256" sumtext="세팅간호사ID"/>
- <Column id="settingrnnm" type="STRING" size="256" sumtext="세팅간호사명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_ward" 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="wardnm" type="STRING" size="256" sumtext="병동명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rsrvlist_rsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sexage" type="STRING" size="256" sumtext="성별나이"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실번호"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="prcpgenrflag" type="STRING" size="256" sumtext="진료형태"/>
- <Column id="prcpgenrflagnm" type="STRING" size="256" sumtext="진료형태명"/>
- <Column id="indd" type="STRING" size="256" sumtext="입실일자"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
- <Column id="rsrvflagnm" type="STRING" size="256" sumtext="예약구분명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의이름"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="excuroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="excuroomnm" type="STRING" size="256" sumtext="검사실명"/>
- <Column id="rsrvdt" type="STRING" size="256" sumtext="예약일시"/>
- <Column id="execprcpstatcd" type="STRING" size="256" sumtext="처방상태코드"/>
- <Column id="execprcpstatnm" type="STRING" size="256" sumtext="처방상태명"/>
- <Column id="iprcprcpdd" type="STRING" size="256" sumtext="처방일자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpddfrom" type="STRING" size="256"/>
- <Column id="prcdddto" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="settingrnid" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="orddd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="prcpddfrom"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="prcdddto"/>
- <BindItem id="item3" compid="grp_biz.grp_sea.cmb_settingrnid" propid="value" datasetid="ds_main_cond" columnid="settingrnid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SMMNW19100
- * Creator : yjh
- * Make Date : 2016-05-02
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-02 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fInit(){
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- ds_main_cond.setColumn(0, "settingrnid", "");
- ds_main_cond.setColumn(0, "userid", sysf_getUserId());
- ds_main_cond.setColumn(0, "usernm", sysf_getUserName());
- ds_main_cond.setColumn(0, "orddd", utlf_getCurrentDate());
- ds_main_cond.setColumn(0, "wardcd", sysf_getUserInfo("dutplcecd"));
-
- ds_send_reqdata.setColumn(0, "wardcd", ds_main_cond.getColumn(0, "wardcd"));
-
- var oParam = {};
- oParam.id = "TRMNW00101";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetWMInitData";
- oParam.inds = "reqcond=ds_send_reqdata";
- oParam.outds = "ds_init_ward=ward ds_init_dept=dept ds_init_settingrn=settingrn";
- oParam.async = false;
- //oParam.callback = "cf_TRMNW00101";
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_init_settingrn, "all");
-
- ds_main_cond.setColumn(0, "settingrnid", "");
-
- for( var i=0 ; i <ds_init_settingrn.rowcount ; i++ ){
- if( ds_main_cond.getColumn(0, "userid") == ds_init_settingrn.getColumn(i, "settingrnid") ){
- ds_main_cond.setColumn(0, "settingrnid", ds_main_cond.getColumn(0, "userid"));
- }
- }
-
- fGetRsrvPatientList();
- }
- function fGetRsrvPatientList(){
- var orddd = ds_main_cond.getColumn(0, "orddd");
- var wardcd = ds_main_cond.getColumn(0, "wardcd");
- var fromdd = ds_main_cond.getColumn(0, "prcpddfrom");
- var todd = ds_main_cond.getColumn(0, "prcdddto");
- var diff = utlf_getDateInterval(fromdd, todd, "dd") + 1;
-
- //alert("orddd : " + orddd + " wardcd : " + wardcd + " fromdd : " + fromdd + " todd : " + todd + " diff : " + diff);
-
- if( utlf_isNull(wardcd) ){
- sysf_messageBox("병동을 다시 설정 후 조회하십시오.", "E999");
- return;
- }
-
- if( utlf_isNull(fromdd) || utlf_isNull(todd) ){
- sysf_messageBox("처방일자를 다시 설정 후 조회하십시오 .", "E999");
- return;
- }
-
- if (fromdd > todd) {
- sysf_messageBox("처방 조회 일자를 다시 설정 후 조회하십시오.", "E999");
- return;
- }
-
- if (diff > 30) {
- sysf_messageBox("처방 조회 기간을 30일 이하로 수정 후 조회하십시오.", "E999");
- return;
- }
-
- ds_send_reqdata.setColumn(0, "wardcd", ds_main_cond.getColumn(0, "wardcd"));
- ds_send_reqdata.setColumn(0, "orddd", ds_main_cond.getColumn(0, "orddd"));
-
- ds_send_reqdata.setColumn(0, "fromdd", fromdd);
- ds_send_reqdata.setColumn(0, "todd", todd);
-
- ds_send_reqdata.setColumn(0, "settingrnid", ds_main_cond.getColumn(0, "settingrnid"));
-
- // 예약내역 초기화
- ds_main_rsrvlist_rsrvinfo.clearData();
-
- var oParam = {};
- oParam.id = "TRMNW19100";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetRsrvPatientList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_rsrvlist_rsrvinfo=rsrvinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNW19100";
- tranf_submit(oParam);
-
- if( arErrorCode.pop("TRMNW19100") > -1 ){
- //if (getNodesetCount("/root/main_om/testrsltinfo/rsltlist") == 0) {
- if( ds_main_rsrvlist_rsrvinfo.rowcount == 0 ){
- sysf_messageBox("출력할 데이터가 존재하지 않습니다.", "I");
- return;
- }
- }
- }
- function cf_TRMNW19100(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
-
- ds_main_rsrvlist_rsrvinfo.rowposition = -1;
- }
- function fSaveExcel(){
- if( grp_biz.grd_rsrv.rowcount > 0 ){
- grdf_exportExcel(grp_biz.grd_rsrv, "검사예약환자리스트", "검사예약환자리스트", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW19100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNW19100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNW19100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNW19100_onload(obj:Form, e:LoadEventInfo)
- {
- grp_biz.grp_sea.ipt_fromdd.value = utlf_getCurrentDate() ;// 기준일에 현재날짜(디폴트)
- var addDy = ds_main_cond.getColumn(0, "prcpddfrom");
- addDy = addDy.toDate().getAddDate(-3,"D");
- addDy = addDy.getDateFormat();
- grp_biz.grp_sea.ipt_fromdd.value = addDy;
- grp_biz.grp_sea.ipt_todd.value = utlf_getCurrentDate();// 기준일에 현재날짜(디폴트)
-
- //fInit();
- this.setTimer(0, 100);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRsrvPatientList();// 검사예약환자 리스트 조회버튼
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장버튼 클릭시
- ****************************************************************************************/
- function grp_biz_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveExcel();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_rsrv
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function grp_biz_grd_rsrv_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( utlf_isNull(ds_main_rsrvlist_rsrvinfo.getColumn(e.row, "pid")) ){
- sysf_messageBox("해당 환자의 등록번호 정보가 없습니다.","I");
- return;
- }
-
- // 환자 정보 상단으로 올리기
- // if( grd_rsrv.row != 0){
- // var condparam = model.getValue("/root/main/rsrvlist/rsrvinfo["+grd_rsrv.row+"]/prcpgenrflag")
- // + "▦" + model.getValue("/root/main/rsrvlist/rsrvinfo["+grd_rsrv.row+"]/pid")
- // + "▦" + model.getValue("/root/main/rsrvlist/rsrvinfo["+grd_rsrv.row+"]/indd")
- // + "▦" + model.getValue("/root/main/rsrvlist/rsrvinfo["+grd_rsrv.row+"]/cretno")
- // + "▦" + model.getValue("/root/main/rsrvlist/rsrvinfo["+grd_rsrv.row+"]/instcd");
- //
- // setParameter("condparam", condparam);
- // modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- // }
-
- var spid = ds_main_rsrvlist_rsrvinfo.getColumn(e.row, "pid");
- //alert("Spid : " + spid);
-
- frmf_clearParameter("opener_parameter_id");
- //setGlobalVariable("menuparam", "I");
- frmf_setParameter("opener_parameter_id", spid + "▦I");
- //setParameter("opener_parameter_id", spid);
-
- frmf_modal("SMPEA00100","SMPEA00100","","",1,400,400,"","","","","","M");
- }
- function SMMNW19100_ontimer(obj:Form, e:TimerEventInfo)
- {
- if( e.timerid == 0 ){
- this.killTimer(0);
-
- fInit();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|