123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMARC00200" position="absolute 0 0 1199 783" titletext="의뢰환자현황" onload="SMARC00200_onload" oninit="SMARC00200_oninit">
- <Layouts>
- <Layout>
- <Static id="caption2" text="의뢰환자현황" class="tit_1" position="absolute 0 0 158 24"/>
- <Div id="group1" taborder="1" style="align: top;" class="div_SA" position="absolute 0 24 1195 104">
- <Layouts>
- <Layout>
- <Button id="button5" taborder="31" text="조회" class="btn1" position="absolute 1126 29 1182 51" anchor="top right" onclick="group1_button5_onclick"/>
- <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1110 9 1113 73" anchor="top right"/>
- <Static id="caption9" text="등록일자 :" class="search_name" position="absolute 12 6 106 23"/>
- <Static id="caption11" text="진료과 :" class="search_name" position="absolute 334 32 428 49"/>
- <Static id="caption13" text="병원구분 :" class="search_name" position="absolute 557 6 648 23"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 201 6 213 23"/>
- <Static id="caption12" text="회신유형 :" class="search_name" position="absolute 334 57 428 74"/>
- <Static id="caption1" text="지역 :" class="search_name" position="absolute 12 57 103 74"/>
- <Static id="caption4" text="의뢰의사 :" class="search_name" position="absolute 12 32 106 49"/>
- <Static id="caption3" text="의뢰병원명 :" class="search_name" position="absolute 795 6 894 23"/>
- <CheckBox id="checkbox1" taborder="32" text="동문" truevalue="E" position="absolute 796 55 851 75" innerdataset="[object Dataset]" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" onclick="group1_checkbox1_onclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">동문</Col>
- </Row>
- </Rows>
- </Dataset>
- </CheckBox>
- <Static id="caption17" text="One-Stop :" class="search_name" position="absolute 557 57 684 74"/>
- <Calendar id="ipt_fromdd" taborder="33" autoselect="true" class="input_search" position="absolute 94 6 194 25" autoskip="true"/>
- <Calendar id="ipt_todd" taborder="34" autoselect="true" class="input_search" position="absolute 219 6 319 25"/>
- <Combo id="cmb_hospgrade" taborder="35" innerdataset="ds_init_hospgrade_A0429" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 662 5 770 24" columncount="-1" rowcount="-1"/>
- <Edit id="ipt_coophospnm" taborder="36" class="input_search" position="absolute 908 5 1072 24"/>
- <Edit id="ipt_drnm" taborder="37" class="input_search" position="absolute 94 31 194 50" autoselect="true"/>
- <Combo id="cmb_orddeptcd" taborder="38" innerdataset="ds_init_dept_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 412 30 528 49" columncount="-1" rowcount="-1" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
- <Combo id="cmb_repltype" taborder="39" innerdataset="ds_init_repltype_A0423" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 412 55 528 74" columncount="-1" rowcount="-1"/>
- <Combo id="cmb_cptype" taborder="40" innerdataset="ds_init_cptype_A0420" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 662 55 770 74" columncount="-1" rowcount="-1"/>
- <Combo id="cmb_orddrid" taborder="41" innerdataset="ds_init_doctlist_medispcl" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 662 30 770 49" columncount="-1" rowcount="-1"/>
- <Static id="caption6" text="진료의사 :" class="search_name" position="absolute 557 31 651 48"/>
- <Static id="caption7" text="진료정보공개동의여부 :" class="search_name" position="absolute 795 32 959 49"/>
- <Combo id="cmb_replflag" taborder="42" innerdataset="ds_init_replflag_A0636" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 952 30 1072 49" columncount="-1" rowcount="-1"/>
- <Combo id="cmb_areacd" taborder="43" innerdataset="@ds_init_areacd" codecolumn="sidocd" datacolumn="sidonm" class="combo_search" position="absolute 95 55 193 74" onitemchanged="group1_cmb_condareacd_onitemchanged"/>
- <Combo id="cmb_areacddelt" taborder="44" innerdataset="ds_cmb_areadetl" codecolumn="sidocddetl" datacolumn="sidonmdetl" class="combo_search" enable="false" position="absolute 199 55 289 74"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_1" position="absolute 0 142 1195 145" style="strokepen:5 solid #33bbbbff;" anchor="left top right"/>
- <Grid id="grd_list" taborder="2" binddataset="ds_main_list_reqlist" useinputpanel="false" cellsizingtype="col" position="absolute 0 146 1195 753" style="align: middle;" onaftersort="group3_group2_grd_list_onaftersort" autoenter="select" anchor="all" oncelldblclick="grd_list_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="32" band="left"/>
- <Column size="60" band="left"/>
- <Column size="57" band="left"/>
- <Column size="58" band="left"/>
- <Column size="40" band="left"/>
- <Column size="35" band="left"/>
- <Column size="80" band="left"/>
- <Column size="90"/>
- <Column size="72"/>
- <Column size="90"/>
- <Column size="81"/>
- <Column size="100"/>
- <Column size="67"/>
- <Column size="289"/>
- <Column size="64"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="150"/>
- <Column size="56"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="63"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- </Rows>
- <Band id="head">
- <Cell celltype="none"/>
- <Cell col="1" celltype="none" text="환자명"/>
- <Cell col="2" colspan="2" celltype="none" text="주민번호" taborder="undefined"/>
- <Cell col="4" celltype="none" text="성별"/>
- <Cell col="5" celltype="none" text="나이"/>
- <Cell col="6" celltype="none" 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" colspan="2" text="지역" taborder="undefined"/>
- <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="의뢰경로"/>
- <Cell col="23" text="One-Stop"/>
- <Cell col="24" text="입원여부"/>
- <Cell col="25" text="병실"/>
- <Cell col="26" text="보험유형"/>
- <Cell col="27" text="병원구분"/>
- <Cell col="28" text="초재진구분"/>
- <Cell col="29" text="caption1"/>
- <Cell col="30" text="caption2"/>
- <Cell col="31" text="caption3"/>
- <Cell col="32" text="caption4"/>
- <Cell col="33" text="caption5"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:rrgstno1"/>
- <Cell col="3" text="bind:rrgstno2" mask="#aaaaaa" maskchar="*"/>
- <Cell col="4" text="bind:sex"/>
- <Cell col="5" text="bind:age"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" displaytype="date" text="bind:rgstdd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" text="bind:reqnm"/>
- <Cell col="9" displaytype="date" text="bind:reqdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
- <Cell col="11" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="12" text="bind:orddrnm"/>
- <Cell col="13" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="14" displaytype="combo" style="align:center middle;" text="bind:sidocd" combodataset="ds_init_areacd" combocodecol="sidocd" combodatacol="sidonm"/>
- <Cell col="15" displaytype="combo" style="align:center middle;" text="bind:sidocddetl" combodataset="ds_init_areacddelt" combocodecol="sidocddetl" combodatacol="sidonmdetl"/>
- <Cell col="16" style="align:left middle;" text="bind:coophospnm"/>
- <Cell col="17" text="bind:drnm"/>
- <Cell col="18" text="bind:clsmatyn"/>
- <Cell col="19" text="bind:cc"/>
- <Cell col="20" displaytype="combo" style="align:center middle;" text="bind:replflag" combodataset="ds_init_replflag_A0636" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="21" displaytype="combo" style="align:center middle;" text="bind:repltype" combodataset="ds_init_repltype_A0423" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="22" displaytype="combo" style="align:center middle;" text="bind:reqpath" combodataset="ds_init_reqtype_A0421" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="23" text="bind:cptype"/>
- <Cell col="24" text="bind:inyn"/>
- <Cell col="25" text="bind:roomcd"/>
- <Cell col="26" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_insukind_P0008" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="27" displaytype="combo" style="align:center middle;" text="bind:hospgrade" combodataset="ds_init_hospgrade1_A0429" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="28" displaytype="combo" style="align:center middle;" text="bind:fsexamflag" combodataset="ds_init_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="29" text="bind:cretno"/>
- <Cell col="30" text="bind:acptseqno"/>
- <Cell col="31" text="bind:ordtype"/>
- <Cell col="32" text="bind:dschdd"/>
- <Cell col="33" text="bind:indschacptstat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="3" text="엑셀" class="btn7" position="absolute 1138 122 1195 141" anchor="top right" onclick="btn_excel_onclick"/>
- <Static id="caption8" text="의뢰환자 리스트" class="tit_2" position="absolute 0 125 139 147"/>
- <Button id="btn_allclear" taborder="4" text="초기화" class="btn4" position="absolute 1127 755 1195 777" 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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="hospgrade" type="STRING" size="256"/>
- <Column id="coophospnm" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="sidocd" type="STRING" size="256"/>
- <Column id="sidocddetl" type="STRING" size="256"/>
- <Column id="repltype" type="STRING" size="256"/>
- <Column id="clsmatyn" type="STRING" size="256"/>
- <Column id="cptype" type="STRING" size="256"/>
- <Column id="replflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="hospgrade"/>
- <Col id="coophospnm"/>
- <Col id="drnm"/>
- <Col id="orddeptcd"/>
- <Col id="orddrid"/>
- <Col id="sidocddetl"/>
- <Col id="repltype"/>
- <Col id="clsmatyn"/>
- <Col id="cptype"/>
- <Col id="replflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_reqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <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="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="INT" size="256" sumtext="나이"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
- <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="diagnm" type="STRING" size="256" sumtext="상병명"/>
- <Column id="areacd" type="STRING" size="256" sumtext="지역"/>
- <Column id="coophospnm" type="STRING" size="256" sumtext="의뢰병원명"/>
- <Column id="drnm" type="STRING" size="256" sumtext="의뢰의사명"/>
- <Column id="clsmatyn" type="STRING" size="256" sumtext="동문여부"/>
- <Column id="cc" type="STRING" size="256" sumtext="주호소"/>
- <Column id="replflag" type="STRING" size="256" sumtext="진료공개동의여부"/>
- <Column id="repltype" type="STRING" size="256" sumtext="회신유형"/>
- <Column id="reqpath" type="STRING" size="256" sumtext="의뢰경로"/>
- <Column id="cptype" type="STRING" size="256" sumtext="onestop"/>
- <Column id="inyn" type="STRING" size="256" sumtext="입원여부"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="hospgrade" type="STRING" size="256" sumtext="병원구분"/>
- <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
- <Column id="cretno" type="INT" size="256" sumtext="생성일자"/>
- <Column id="acptseqno" type="INT" size="256" sumtext="등록이력번호"/>
- <Column id="ordtype" type="STRING" size="256" sumtext="진료상태"/>
- <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
- <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
- <Column id="reqnm" type="STRING" size="256" sumtext="의뢰자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_areacd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sidocd" type="STRING" size="256"/>
- <Column id="sidonm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_areacddelt" 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_repltype_A0423" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_hospgrade_A0429" 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_cptype_A0420" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_replflag_A0636" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_reqtype_A0421" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_hospgrade1_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_insukind_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_cmb_areadetl" 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="fromdd"/>
- <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send_search" columnid="todd"/>
- <BindItem id="item2" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="drnm"/>
- <BindItem id="item3" compid="group1.cmb_areacd" propid="value" datasetid="ds_send_search" columnid="sidocd"/>
- <BindItem id="item4" compid="group1.cmb_areacddelt" propid="value" datasetid="ds_send_search" columnid="sidocddetl"/>
- <BindItem id="item5" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_search" columnid="orddeptcd"/>
- <BindItem id="item6" compid="group1.cmb_repltype" propid="value" datasetid="ds_send_search" columnid="repltype"/>
- <BindItem id="item7" compid="group1.cmb_cptype" propid="value" datasetid="ds_send_search" columnid="cptype"/>
- <BindItem id="item8" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_search" columnid="orddrid"/>
- <BindItem id="item9" compid="group1.cmb_hospgrade" propid="value" datasetid="ds_send_search" columnid="hospgrade"/>
- <BindItem id="item10" compid="group1.checkbox1" propid="value" datasetid="ds_send_search" columnid="clsmatyn"/>
- <BindItem id="item11" compid="group1.cmb_replflag" propid="value" datasetid="ds_send_search" columnid="replflag"/>
- <BindItem id="item12" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name : KUN2.0 Project
- * Creator : 김도형
- * Make Date : 2015-11-13
- * Description : 외래 등록 컨버젼 작업시
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- * 2016-07-20 DoHyoung.Kim_idatabank.com
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SMARC00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMARC00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_list);
-
- fInit();
- }
- function fInit()
- {
- // 오늘 날짜로 세팅
- var CurrentDate = utlf_getCurrentDate();
- ds_send_search.setColumn(0, "fromdd", CurrentDate);
- ds_send_search.setColumn(0, "todd", CurrentDate);
-
- // 진료과
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var sort_method = "depthngnm";
- sort_field = "depthngnm"
- var rslt_ref1 = "ds_init_dept_dept";
-
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, "", "", "", "", rslt_ref1, false, "");
- var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429" }
- ,{dsNm: "ds_init_hospgrade1_A0429", cdGrpId: "A0429" }
- ,{dsNm: "ds_init_repltype_A0423", cdGrpId: "A0423" }
- ,{dsNm: "ds_init_cptype_A0420", cdGrpId: "A0420" }
- ,{dsNm: "ds_init_insukind_P0008", cdGrpId: "P0008" }
- ,{dsNm: "ds_init_reqtype_A0421", cdGrpId: "A0421" }
- ,{dsNm: "ds_init_fsexamflag_P0021", cdGrpId: "P0021" }
- ,{dsNm: "ds_init_replflag_A0636", cdGrpId: "A0636" }];
- appf_getCodeList(arrParam, true);
-
- //진료협력에서 관리하는 전체 지역코드 조회
- var oParam = {};
- oParam.id = "TXARH00101";
- oParam.service = "healcarecoopapp.CoopHospMngt";
- oParam.method = "reqGetAreaList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_areacddelt=hosparea";
- oParam.async = false;
- tranf_submit(oParam);
-
- //병의원 정보 저장 시, 사용할 수 있도록 copy
- ds_cmb_areadetl.copyData(ds_init_areacddelt);
-
- //진료협력에서 관리하는 시/도 지역코드 조회
- var oParam = {};
- oParam.id = "TXARH00101";
- oParam.service = "healcarecoopapp.CoopHospMngt";
- oParam.method = "reqGetAreaSDList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_areacd=hosparea";
- oParam.async = false;
- tranf_submit(oParam);
-
- frmf_addComboItem("group1.cmb_orddeptcd", "- 전 체 -", "", "above");
-
- fDoctSerach();
-
- frmf_addComboItem("group1.cmb_hospgrade", "협력병의원", "CA", "above");
- frmf_addComboItem("group1.cmb_hospgrade", "- 전 체 -", "", "above");
-
- frmf_addComboItem("group1.cmb_repltype", "- 전 체 -", "-", "above");
- frmf_addComboItem("group1.cmb_cptype", "- 전 체 -", "-", "above");
- frmf_addComboItem("group1.cmb_areacd", "- 전 체 -", "-", "above");
- frmf_addComboItem("group1.cmb_replflag", "- 전 체 -", "-", "above");
-
- group1.cmb_hospgrade.index = 0;
- group1.cmb_orddeptcd.index = 0;
- group1.cmb_repltype.index = 0;
- group1.cmb_cptype.index = 0;
- group1.cmb_areacd.index = 0;
- group1.cmb_replflag.index = 0;
-
- ds_main_list_reqlist.clearData();
- }
- // 진료의사 조회
- function fDoctSerach()
- {
- // 진료의사
- ds_init_doctlist_medispcl.clearData();
-
- ds_send_doctor.clearData();
- ds_send_doctor.addRow();
-
- 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_cmb_condareacd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var areacd = obj.value;
-
- if(areacd != "-")
- {
- ds_init_areacddelt.filterstr = "sidocd == '"+areacd+"'";
- ds_cmb_areadetl.copyData(ds_init_areacddelt, true);
- ds_init_areacddelt.filterstr = "";
-
- group1.cmb_areacddelt.enable = true;
- frmf_addComboItem("group1.cmb_areacddelt", "- 전 체 -", "-", "above");
-
- group1.cmb_areacddelt.index = 0;
- group1.cmb_areacddelt.value = "-";
- }
- else
- {
- ds_cmb_areadetl.clearData();
- group1.cmb_areacddelt.enable = false;
- }
- }
- function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fDoctSerach();
- }
- function group1_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "E"){}
- else
- {
- ds_send_search.setColumn(0, "clsmatyn", "");
- }
- }
- function group1_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( !fCheckDate() ) return; //필수 저장여부 체크
- fSearch();
- }
- function fCheckDate()
- {
- var fromdd = ds_send_search.getColumn(0, "fromdd");
- var todd = ds_send_search.getColumn(0, "todd");
-
- if( ! utlf_isValidDateTime( fromdd, 'YYYYMMDD') || ! utlf_isValidDateTime( todd, 'YYYYMMDD') )
- {
- sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
- return false;
- }
- if( utlf_getDateInterval(fromdd, todd) < 0 )
- {
- sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
- return false;
- }
-
- if (!utlf_isNull(ds_send_search.getColumn(0, "coophospnm")) || String(ds_send_search.getColumn(0, "coophospnm")).length < 0)
- {
- sysf_messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
- group1.ipt_coophospnm.setFocus();
- return false;
- }
-
- if (!utlf_isNull(ds_send_search.getColumn(0, "drnm")) || String(ds_send_search.getColumn(0, "drnm")).length < 0)
- {
- sysf_messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
- group1.ipt_drnm.setFocus();
- return false;
- }
-
- return true;
- }
- function fSearch()
- {
- var oParam = {};
- oParam.id = "TRARC00201";
- oParam.service = "healcarecoopapp.ReqMngt";
- oParam.method = "reqGetReqPatList";
- oParam.inds = "req=ds_send_search";
- oParam.outds = "ds_main_list_reqlist=reqlist";
- oParam.async = false;
- oParam.callback = "cf_TRARC00201";
- tranf_submit(oParam);
- }
- function cf_TRARC00201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- sysf_messageBox("조회를", "E009");
- return;
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- fExcel();
- }
- function fExcel()
- {
- if (ds_main_list_reqlist.rowcount == 0) return;
-
- grdf_exportExcel(grd_list, "의뢰환자 리스트", "Sheet1", "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, "fromdd", CurrentDate);
- ds_send_search.setColumn(0, "todd", CurrentDate);
- group1.cmb_hospgrade.index = 0;
- group1.cmb_orddeptcd.index = 0;
- group1.cmb_repltype.index = 0;
- group1.cmb_cptype.index = 0;
- group1.cmb_areacd.index = 0;
-
- frmf_inputEnterKey("group1.cmb_areacd", "onitemchanged", new ItemChangeEventInfo);
- //group1.cmb_areacddelt.index = 0;
-
- group1.cmb_replflag.index = 0;
-
- ds_main_list_reqlist.clearData();
- }
- function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fOpen();
- }
- function fOpen()
- {
- if (ds_main_list_reqlist.rowcount == 0) return;
- if (ds_main_list_reqlist.rowposition < 0) return;
-
- var idxRow = ds_main_list_reqlist.rowposition; //그리드에서 해당 환자 선택
- var pid = ds_main_list_reqlist.getColumn(idxRow, "pid");
- var orddd = ds_main_list_reqlist.getColumn(idxRow, "orddd");
- var cretno = ds_main_list_reqlist.getColumn(idxRow, "cretno");
- var acptseqno = ds_main_list_reqlist.getColumn(idxRow, "acptseqno");
- var ordtype = ds_main_list_reqlist.getColumn(idxRow, "ordtype");
- var dschdd = ds_main_list_reqlist.getColumn(idxRow, "dschdd");
- var indschacptstat = ds_main_list_reqlist.getColumn(idxRow, "indschacptstat");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var curdate = utlf_getCurrentDate();
- frmf_clearParameter("pid");
-
- if (ordtype == "E")
- {
- curdate = orddd;
- }
- else if (ordtype == "I")
- {
- if (indschacptstat == "D")
- {
- curdate = dschdd;
- }
- else if (indschacptstat == "T")
- {
- if (dschdd != "99991231")
- {
- curdate = dschdd;
- }
- }
- }
- else if (ordtype == "O")
- {
- curdate = orddd;
- }
-
- if (ordtype != "O" && ordtype != "I" && ordtype !="E")
- {
-
- if(sysf_getGlobalVariable("paminfo").length > 0)
- {
- appf_delPatientInfos();
- }
- var pid = setParameter("pid", pid);
- }
- else
- {
- var condparam = ordtype + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + '▦' + curdate;
- frmf_setParameter("condparam", condparam);
-
- appf_initPatientInfo(condparam);
- }
- curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
- if (curEmrRecObj != null)
- {
- curEmrRecObj.fInit();
- }
- else
- {
- frmf_open("SPARC00100", "SPARC00100", "", "","","","","","","","","","M");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|