123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMARC00101" position="absolute 0 0 1201 784" titletext="당일접수환자조회" oninit="SMARC00101_oninit" onload="SMARC00101_onload" ontimer="SMARC00101_ontimer">
- <Layouts>
- <Layout>
- <Div id="group1" anchor="left top right" taborder="0" class="div_SA" position="absolute 0 24 1195 104">
- <Layouts>
- <Layout>
- <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1097 9 1103 73" anchor="top right"/>
- <Static id="caption9" text="조회일자 :" class="search_name" position="absolute 10 8 104 25"/>
- <Static id="caption11" text="진료과 :" class="search_name" position="absolute 358 7 452 24"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 211 8 223 25"/>
- <Static id="caption4" text="진료의사 :" class="search_name" position="absolute 593 7 687 24"/>
- <Static id="caption1" text="환자명 :" class="search_name" position="absolute 358 33 452 50"/>
- <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 10 33 104 50"/>
- <Button id="btn_pat" taborder="1" class="icon_search" position="absolute 208 32 224 48" onclick="group1_btn_pat_onclick"/>
- <Calendar id="ipt_fromdd" taborder="2" autoselect="true" autoskip="true" class="input_search" position="absolute 100 6 203 25"/>
- <Calendar id="ipt_todd" taborder="3" autoselect="true" class="input_search" position="absolute 228 6 331 25"/>
- <Combo id="cmb_orddeptcd" taborder="4" innerdataset="@ds_init_dept_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 438 6 538 25" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
- <Edit id="ipt_pid" taborder="5" autoselect="true" position="absolute 100 31 203 50"/>
- <Edit id="ipt_hngnm" taborder="6" autoselect="true" position="absolute 438 31 538 50"/>
- <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1121 31 1177 53" anchor="top right" onclick="group1_btn_search_onclick"/>
- <Static id="caption6" text="의뢰등록여부 :" class="search_name" position="absolute 593 32 705 49"/>
- <CheckBox id="checkbox2" taborder="8" text="접수변경/취소" truevalue="Y" position="absolute 845 29 960 49" onclick="group1_checkbox2_onclick"/>
- <Combo id="cmb_reqrgstyn" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 700 31 800 50">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">- 전 체 -</Col>
- </Row>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">등록</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">미등록</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption7" text="의뢰서여부 :" class="search_name" position="absolute 845 7 957 24"/>
- <Combo id="cmb_rqstflag" taborder="10" innerdataset="@ds_init_rqstflag_P0329" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 950 6 1050 25"/>
- <Combo id="cmb_orddrid" taborder="11" innerdataset="@ds_init_doctlist_medispcl" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 700 6 800 25"/>
- <Static id="caption10" text="초재진구분 :" class="search_name" position="absolute 10 58 122 75"/>
- <Static id="caption12" text="Consult의뢰 :" class="search_name" position="absolute 359 57 534 74"/>
- <Combo id="cmb_fsexamflag" taborder="12" innerdataset="@ds_init_fsexamflag_P0021" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 115 56 215 75"/>
- <Combo id="cmb_rsrvflag" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 474 56 574 75">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">- 전 체 -</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="pat_list" taborder="1" binddataset="ds_main_list_pat_list" useinputpanel="false" position="absolute 0 146 1195 747" anchor="all" autoenter="select" cellsizingtype="col" oncelldblclick="pat_list_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29" band="left"/>
- <Column size="88"/>
- <Column size="86"/>
- <Column size="90"/>
- <Column size="60"/>
- <Column size="118"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="122"/>
- <Column size="100"/>
- <Column size="122"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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" colspan="2" text="주민번호" taborder="undefined"/>
- <Cell col="8" text="진료과"/>
- <Cell col="9" text="진료의사"/>
- <Cell col="10" text="접수상태"/>
- <Cell col="11" text="의뢰서여부"/>
- <Cell col="12" text="초재진여부"/>
- <Cell col="13" text="Consult의뢰"/>
- <Cell col="14" text="최초등록자"/>
- <Cell col="15" text="최초등록일"/>
- <Cell col="16" text="최종수정자"/>
- <Cell col="17" text="최종수정일"/>
- <Cell col="18" text="caption1"/>
- <Cell col="19" text="caption2"/>
- <Cell col="20" text="caption3"/>
- <Cell col="21" text="caption4"/>
- <Cell col="22" text="caption5"/>
- <Cell col="23" text="caption6"/>
- <Cell col="24" text="caption7"/>
- <Cell col="25" text="caption8"/>
- <Cell col="26" text="caption9"/>
- <Cell col="27" text="caption10"/>
- <Cell col="28" text="caption11"/>
- <Cell col="29" text="caption12"/>
- <Cell col="30" text="caption13"/>
- <Cell col="31" text="caption14"/>
- <Cell col="32" text="caption15"/>
- <Cell col="33" text="caption16"/>
- <Cell col="34" text="caption17"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:reqrgstyn"/>
- <Cell col="2" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
- <Cell col="3" text="bind:pid"/>
- <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_cmb_sex" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:rrgstno1"/>
- <Cell col="7" text="bind:rrgstno2" mask="#aaaaaa" maskchar="*"/>
- <Cell col="8" text="bind:depthngnm"/>
- <Cell col="9" text="bind:orddrnm"/>
- <Cell col="10" text="bind:histstatnm"/>
- <Cell col="11" text="bind:rqstflagnm"/>
- <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:fsexamflag" combodataset="ds_init_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="13" displaytype="combo" style="align:center middle;" text="bind:rsrvflag" combodataset="ds_cmb_rsrvflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="14" text="bind:fstrgstrnm"/>
- <Cell col="15" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="16" text="bind:lastupdtrnm"/>
- <Cell col="17" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="18" text="bind:cretno"/>
- <Cell col="19" text="bind:acptseqno"/>
- <Cell col="20" text="bind:engnm"/>
- <Cell col="21" text="bind:brthdd"/>
- <Cell col="22" text="bind:hometel"/>
- <Cell col="23" text="bind:mpphontel"/>
- <Cell col="24" text="bind:zipcd1"/>
- <Cell col="25" text="bind:zipcd2"/>
- <Cell col="26" text="bind:detladdr"/>
- <Cell col="27" text="bind:forgeryn"/>
- <Cell col="28" text="bind:nati"/>
- <Cell col="29" text="bind:psptno"/>
- <Cell col="30" text="bind:ordtm"/>
- <Cell col="31" text="bind:religncd"/>
- <Cell col="32" text="bind:orddrid"/>
- <Cell col="33" text="bind:orddeptcd"/>
- <Cell col="34" text="bind:zipcdseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 0 141 1195 147" anchor="left top right"/>
- <Button id="btn_excel" taborder="2" text="엑셀" class="btn7" position="absolute 1137 119 1195 141" anchor="top right" onclick="btn_excel_onclick"/>
- <Static id="caption8" text="당일접수환자 리스트" class="tit_2" position="absolute 0 125 187 141"/>
- <Static id="caption2" text="당일접수환자조회" class="tit_1" position="absolute 0 0 163 24"/>
- <Button id="btn_allclear" taborder="3" text="초기화" class="btn4" position="absolute 1126 752 1194 774" anchor="right bottom" onclick="btn_allclear_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="f_date" type="STRING" size="256"/>
- <Column id="t_date" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="histstat" type="STRING" size="256"/>
- <Column id="reqrgstyn" type="STRING" size="256"/>
- <Column id="rqstflag" type="STRING" size="256"/>
- <Column id="fsexamflag" type="STRING" size="256"/>
- <Column id="rsrvflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="f_date"/>
- <Col id="t_date"/>
- <Col id="orddeptcd"/>
- <Col id="orddrid"/>
- <Col id="hngnm"/>
- <Col id="pid"/>
- <Col id="histstat"/>
- <Col id="reqrgstyn"/>
- <Col id="rqstflag"/>
- <Col id="fsexamflag"/>
- <Col id="rsrvflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_fsexamflag_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_doctlist_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_rqstflag_P0329" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">M</Col>
- <Col id="label">남</Col>
- </Row>
- <Row>
- <Col id="value">F</Col>
- <Col id="label">여</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_rsrvflag" 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">Y</Col>
- <Col id="value">C</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_pat_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqrgstyn" type="STRING" size="256" sumtext="등록상태"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
- <Column id="engnm" 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="brthdd" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="forignyn" type="STRING" size="256" sumtext="외국인여부"/>
- <Column id="nati" type="STRING" size="256" sumtext="국가"/>
- <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
- <Column id="ordtm" type="STRING" size="256" sumtext="진료시간"/>
- <Column id="zipcdseq" type="INT" size="256" sumtext="우편번호순서"/>
- <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
- <Column id="acptseqno" type="INT" size="256" sumtext="등록일련번호"/>
- <Column id="depthngnm" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사"/>
- <Column id="histstat" type="STRING" size="256" sumtext="접수상태"/>
- <Column id="histstatnm" type="STRING" size="256" sumtext="접수상태명"/>
- <Column id="rqstflagnm" type="STRING" size="256" sumtext="의뢰서여부"/>
- <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="consult의뢰"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최최등록일"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최초수령자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최초수정일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_doctor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="f_date"/>
- <BindItem id="item1" compid="group1.cmb_fsexamflag" propid="value" datasetid="ds_send_search" columnid="fsexamflag"/>
- <BindItem id="item2" compid="group1.ipt_pid" propid="value" datasetid="ds_send_search" columnid="pid"/>
- <BindItem id="item3" compid="group1.ipt_todd" propid="value" datasetid="ds_send_search" columnid="t_date"/>
- <BindItem id="item4" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_search" columnid="orddeptcd"/>
- <BindItem id="item5" compid="group1.ipt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
- <BindItem id="item6" compid="group1.cmb_rsrvflag" propid="value" datasetid="ds_send_search" columnid="rsrvflag"/>
- <BindItem id="item7" compid="group1.cmb_reqrgstyn" propid="value" datasetid="ds_send_search" columnid="reqrgstyn"/>
- <BindItem id="item8" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_search" columnid="orddrid"/>
- <BindItem id="item9" compid="group1.checkbox2" propid="value" datasetid="ds_send_search" columnid="histstat"/>
- <BindItem id="item10" compid="group1.cmb_rqstflag" propid="value" datasetid="ds_send_search" columnid="rqstflag"/>
- </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();
- function SMARC00101_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMARC00101_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(pat_list);
-
- fInit();
- }
- function fInit()
- {
- // 오늘 날짜로 세팅
- var CurrentDate = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "f_date", CurrentDate);
- ds_send_search.setColumn(0, "t_date", CurrentDate);
-
- // 공통코드 목록 가져오기
- var arrParam = [{dsNm: "ds_init_rqstflag_P0329", cdGrpId: "P0329" }
- ,{dsNm: "ds_init_fsexamflag_P0021", cdGrpId: "P0021"}];
- appf_getCodeList(arrParam, true);
-
- // 진료과
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "ds_init_dept_dept";
- var sort_method = "depthngnm";
- sort_field = "depthngnm"
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, "", "", "", "", rslt_ref, false, "");
-
- // 진료과
- frmf_addComboItem("group1.cmb_orddeptcd", "- 전 체 -", "", "above");
-
- fDoctSerach();
-
- // 의뢰서여부cmb_rqstflag
- frmf_addComboItem("group1.cmb_rqstflag", "", "", "above");
-
- // 초재진 여부
- frmf_addComboItem("group1.cmb_fsexamflag", "- 전 체 -", "", "above");
-
- ds_send_search.setColumn(0, "rqstflag", "1");
-
- group1.cmb_reqrgstyn.index = 0;
- group1.cmb_fsexamflag.index = 0;
- ds_main_list_pat_list.clearData();
- }
- // 진료의사 조회
- function fDoctSerach()
- {
- // 진료의사
- ds_init_doctlist_medispcl.clearData();
- ds_send_doctor.clearData();
- ds_send_doctor.addRow();
- ds_send_doctor.setColumn(0, "orddd", ds_send_search.getColumn(0, "f_date"));
- ds_send_doctor.setColumn(0, "orddeptcd", ds_send_search.getColumn(0, "orddeptcd"));
-
- dsf_setDefaultVal(ds_send_doctor, "alllyn:Y");
-
- var oParam = {};
- oParam.id = "TRARC01302";
- oParam.service = "healcarecoopapp.ReqAgnMngt";
- oParam.method = "reqGetDoctList";
- oParam.inds = "req=ds_send_doctor";
- oParam.outds = "ds_init_doctlist_medispcl=medispcl";
- oParam.async = false;
- //oParam.callback = "cf_TRARC01302";
- tranf_submit(oParam);
-
- group1.cmb_orddrid.index = 0;
- }
- function group1_btn_pat_onclick(obj:Button, e:ClickEventInfo)
- {
- fPatPopUp();
- }
- function fPatPopUp()
- {
- var objArg = new Object();
- if (!utlf_isNull(group1.ipt_pid.text) && String(group1.ipt_pid.text).length> 0)
- {
- objArg.srchcond = "1";
- objArg.autoflag = "Y";
- objArg.pid = ds_send_search.getColumn(0, "pid");
- }
-
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, "","","","","","","","","","M");
-
- if(ds_patinfolist.rowcount > 0){
- ds_send_search.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_search.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
- }
- }
- function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fDoctSerach();
- }
- function group1_checkbox2_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y"){}
- else
- {
- ds_send_search.setColumn(0, "histstat", "");
- }
- }
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( !fCheckDate() ) return; //필수 저장여부 체크
- fSearch();
- }
- function fCheckDate()
- {
- var fromdd = ds_send_search.getColumn(0, "f_date");
- var todd = ds_send_search.getColumn(0, "t_date");
- var pid = ds_send_search.getColumn(0, "pid");
-
- if (utlf_isNull(pid))
- {
- if( !utlf_isValidDateTime( fromdd, 'YYYYMMDD') || !utlf_isValidDateTime( todd, 'YYYYMMDD') )
- {
- sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
- }
-
- if( utlf_getDateInterval(fromdd, todd) > 6 )
- {
- sysf_messageBox("조회가능한 최대 기간은 1주일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
- return false;
- }
-
- if( utlf_getDateInterval(fromdd, todd) < 0 )
- {
- sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- // 날짜 계산
- var daycnt = utlf_getDateInterval(fromdd, todd);
-
- // 1일이 아닌 경우는 조건을 타야 함
- if (daycnt != 0)
- {
- if (String(group1.ipt_hngnm.text).length > 0 && String(group1.ipt_hngnm.text).length < 2)
- {
- sysf_messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
- return false;
- }
-
- // 진료과 체크
- if (utlf_isNull(ds_send_search.getColumn(0, "orddeptcd")))
- {
- sysf_messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
- return false;
- }
-
- }
- }
- return true;
- }
- function fSearch()
- {
- var oParam = {};
- oParam.id = "TRARC00101";
- oParam.service = "healcarecoopapp.ReqMngt";
- oParam.method = "reqGetPatientList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_list_pat_list=pat_list";
- oParam.async = false;
- //oParam.callback = "cf_TRARC00101";
- tranf_submit(oParam);
- }
- function pat_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fReqRgst();
- }
- function fReqRgst()
- {
- var mainObj = frmf_getMainViewer();
-
- if (ds_main_list_pat_list.rowcount == 0) return;
- if (ds_main_list_pat_list.rowposition < 0) return;
- var idxRow = ds_main_list_pat_list.rowposition; //그리드에서 해당 환자 선택
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
-
- var pid = ds_main_list_pat_list.getColumn(idxRow, "pid");
- var orddd = ds_main_list_pat_list.getColumn(idxRow, "orddd");
- var cretno = ds_main_list_pat_list.getColumn(idxRow, "cretno");
- var acptseqno = ds_main_list_pat_list.getColumn(idxRow, "acptseqno");
- var histstat = ds_main_list_pat_list.getColumn(idxRow, "histstat");
-
- frmf_clearParameter("pid");
- if (histstat == "R")
- {
- var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + orddd;
- frmf_setParameter("condparam", condparam);
- appf_initPatientInfo(condparam);
- }
- else
- {
- if(sysf_getGlobalVariable("paminfo").length > 0)
- {
- appf_delPatientInfos();
- }
- var pid = frmf_setParameter("pid", pid);
- }
-
- var curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
-
- if (curEmrRecObj != null)
- {
- curEmrRecObj.fInit();
- }
- else
- {
- frmf_open("SPARC00100", "SPARC00100", "", "","","","","","","","","","M");
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if (ds_main_list_pat_list.rowcount == 0) return;
-
- grdf_exportExcel(pat_list, "당일접수환자 리스트", "SheetName", "true", "", "");
- }
- function btn_allclear_onclick(obj:Button, e:ClickEventInfo)
- {
- fAllClear();
- }
- function fAllClear()
- {
- ds_send_search.clearData();
- ds_send_search.addRow();
-
- // 오늘 날짜로 세팅
- var CurrentDate = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "f_date", CurrentDate);
- ds_send_search.setColumn(0, "t_date", CurrentDate);
-
- group1.cmb_reqrgstyn.index = 0;
- ds_send_search.setColumn(0, "rqstflag", "1");
-
- fDoctSerach();
-
- ds_main_list_pat_list.clearData();
- }
- ]]></Script>
- </Form>
- </FDL>
|