123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNO03100" position="absolute 0 0 1206 763" titletext="외래 초진 예약 조회" oninit="SMMNO03100_oninit" onload="SMMNO03100_onload" scrollbars="none">
- <Layouts>
- <Layout>
- <Div position="absolute 0 4 1195 29" id="group1" scrollbars="none">
- <Layouts>
- <Layout>
- <Static text="외래 초진 예약 조회" position="absolute 0 0 154 25" id="caption6" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 757 1195 784" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Edit readonly="true" position="absolute 5 4 40 23" align="align:right middle;" id="opt_cnt"/>
- <Static text="건이 조회되었습니다" position="absolute 45 4 175 24" align="align:center middle;" id="caption10"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 755" id="group5" class="datagrid2" scrollbars="none">
- <Layouts>
- <Layout>
- <Shape position="absolute 1 52 1195 58" linetype="vertical" id="line1" class="line_1"/>
- <Grid position="absolute 1 85 1195 740" id="grd_OutRsrvPatList" class="datagrid2" binddataset="ds_grd_OutRsrvPatList">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="79"/>
- <Column size="53"/>
- <Column size="77"/>
- <Column size="78"/>
- <Column size="41"/>
- <Column size="107"/>
- <Column size="53"/>
- <Column size="109"/>
- <Column size="100"/>
- <Column size="59"/>
- <Column size="52"/>
- <Column size="70"/>
- <Column size="32"/>
- <Column size="82"/>
- <Column size="100"/>
- <Column size="105"/>
- <Column size="106"/>
- <Column size="340"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="36" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="진료일"/>
- <Cell col="1" text="예약 시간"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="S/A"/>
- <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="Remark"/>
- <Cell col="15" text="전화번호1"/>
- <Cell col="16" text="전화번호2"/>
- <Cell col="17" text="주소"/>
- <Cell col="18" text="remfact"/>
- <Cell col="19" text="orddeptcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
- <Cell col="1" text="bind:ordtm" mask="@@:@@"/>
- <Cell col="2" style="align:left;" text="bind:pid"/>
- <Cell col="3" style="align:left;" text="bind:patnm"/>
- <Cell col="4" text="bind:sexage"/>
- <Cell col="5" text="bind:rrgstno"/>
- <Cell col="6" text="bind:centcdnm"/>
- <Cell col="7" style="align:left;" text="bind:orddeptnm"/>
- <Cell col="8" text="bind:subdeptcdnm"/>
- <Cell col="9" text="bind:usernm"/>
- <Cell col="10" text="bind:fsexamflag"/>
- <Cell col="11" text="bind:rsrvflag"/>
- <Cell col="12" text="bind:calcyn"/>
- <Cell col="13" style="align:left;" text="bind:insukind"/>
- <Cell col="14" style="align:left;" text="bind:remfact"/>
- <Cell col="15" text="bind:hometel"/>
- <Cell col="16" text="bind:mpphontel"/>
- <Cell col="17" style="align:left;" text="bind:addr"/>
- <Cell col="18" text="bind:remfact"/>
- <Cell col="19" text="bind:orddeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 16 1195 76" align="align:center top;" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="진료일자 :" position="absolute 16 10 92 27" id="caption3" class="search_name" anchor="default"/>
- <Static text="진료과 :" position="absolute 396 10 455 27" id="caption2" class="search_name" anchor="default"/>
- <Static text="진료의 :" position="absolute 661 10 720 27" id="caption4" class="search_name" anchor="default"/>
- <Combo position="absolute 725 9 890 28" id="cmb_orddr" class="combo_s_essential" enable="false" taborder="4" innerdataset="ds_init_cmb_orddr" datacolumn="userdepthngnm" codecolumn="userid" anchor="default" onitemchanged="group5_grp_sea_cmb_orddr_onitemchanged" index="-1"/>
- <Combo position="absolute 460 9 615 28" id="cmb_orddept" class="combo_s_essential" taborder="3" innerdataset="ds_init_cmb_orddept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group5_grp_sea_cmb_orddept_onitemchanged"/>
- <Button position="absolute 1129 19 1185 41" id="btn_ref" class="btn1" taborder="8" text="조회" anchor="default" onclick="group5_grp_sea_btn_ref_onclick"/>
- <Shape position="absolute 1117 9 1123 51" linetype="vertical" id="line11" class="line_4" anchor="default"/>
- <Button position="absolute 98 11 111 26" id="button1" class="icon_pre" text="" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
- <Calendar position="absolute 113 9 213 28" id="ipt_ordfromdd" class="input_s_essential" taborder="1" anchor="default" onchanged="group5_grp_sea_ipt_ordfromdd_onchanged"/>
- <Static text="~" position="absolute 215 10 230 30" id="caption1" anchor="default"/>
- <Calendar position="absolute 229 9 329 28" id="ipt_ordtodd" class="input_s_essential" taborder="2" anchor="default"/>
- <Button position="absolute 332 11 345 26" id="button10" class="icon_next" text="" anchor="default" onclick="group5_grp_sea_button10_onclick"/>
- <Static text="예약경로 :" position="absolute 730 36 810 53" id="caption5" class="search_name" anchor="default"/>
- <Static text="환자명 :" position="absolute 237 36 296 53" id="caption7" class="search_name" anchor="default"/>
- <Edit position="absolute 302 35 402 54" id="input1" class="input_search" taborder="5" anchor="default" onkeyup="group5_grp_sea_input1_onkeyup"/>
- <Static text="주민번호 :" position="absolute 418 36 489 53" id="caption8" class="search_name" anchor="default"/>
- <Edit position="absolute 495 35 595 54" id="input2" class="input_search" taborder="6" anchor="default"/>
- <Edit position="absolute 600 35 700 54" id="input3" class="input_search" taborder="7" anchor="default"/>
- <Combo position="absolute 810 35 930 54" id="cbo_rsrvflag" class="combo_s_essential" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" value="0" text="전체" index="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">전화예약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">협력예약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">9</Col>
- <Col id="datacolumn">과예약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">인터넷예약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">K</Col>
- <Col id="datacolumn">병동예약</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">의뢰</Col>
- </Row>
- <Row>
- <Col id="codecolumn">-</Col>
- <Col id="datacolumn">당일접수</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit position="absolute 96 35 196 54" id="input4" class="input_search" taborder="5" anchor="default" onkeyup="group5_grp_sea_input4_onkeyup"/>
- <Static text="등록번호 :" position="absolute 16 36 87 53" id="caption9" class="search_name" anchor="default"/>
- <Button position="absolute 200 37 216 53" id="btn_pid" class="icon_search" text="" anchor="default" onclick="group5_grp_sea_btn_pid_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 945 44 998 63" id="button4" class="btn2" text="초기화" onclick="group5_button4_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_OutRsrvPatList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddd" type="STRING"/>
- <Column id="ordtm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="sexage" type="STRING"/>
- <Column id="rrgstno" type="STRING"/>
- <Column id="centcdnm" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="subdeptcdnm" type="STRING"/>
- <Column id="usernm" type="STRING"/>
- <Column id="fsexamflag" type="STRING"/>
- <Column id="rsrvflag" type="STRING"/>
- <Column id="calcyn" type="STRING"/>
- <Column id="insukind" type="STRING"/>
- <Column id="remfact" type="STRING"/>
- <Column id="hometel" type="STRING"/>
- <Column id="mpphontel" type="STRING"/>
- <Column id="addr" type="STRING"/>
- <Column id="remfact" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userdepthngnm" type="STRING"/>
- <Column id="userid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ordfromdd" type="STRING" size="256"/>
- <Column id="ordtodd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddr" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="prntusge" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="cnt" type="STRING" size="256"/>
- <Column id="ordclsdeptflag" type="STRING" size="256"/>
- <Column id="supdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ordfromdd"/>
- <Col id="ordtodd"/>
- <Col id="orddeptcd"/>
- <Col id="orddr"/>
- <Col id="pid"/>
- <Col id="patnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="rsrvflag"/>
- <Col id="prntusge"/>
- <Col id="orddeptnm"/>
- <Col id="orddrnm"/>
- <Col id="cnt">0</Col>
- <Col id="ordclsdeptflag"/>
- <Col id="supdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.grp_sea.ipt_ordfromdd" propid="value" datasetid="ds_cond" columnid="ordfromdd"/>
- <BindItem id="item1" compid="group5.grp_sea.ipt_ordtodd" propid="value" datasetid="ds_cond" columnid="ordtodd"/>
- <BindItem id="item2" compid="group5.grp_sea.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
- <BindItem id="item3" compid="group5.grp_sea.cmb_orddr" propid="value" datasetid="ds_cond" columnid="orddr"/>
- <BindItem id="item4" compid="group5.grp_sea.input4" propid="value" datasetid="ds_cond" columnid="pid"/>
- <BindItem id="item5" compid="group5.grp_sea.input1" propid="value" datasetid="ds_cond" columnid="patnm"/>
- <BindItem id="item6" compid="group5.grp_sea.input2" propid="value" datasetid="ds_cond" columnid="rrgstno1"/>
- <BindItem id="item7" compid="group5.grp_sea.input3" propid="value" datasetid="ds_cond" columnid="rrgstno2"/>
- <BindItem id="item8" compid="group5.grp_sea.cbo_rsrvflag" propid="value" datasetid="ds_cond" columnid="rsrvflag"/>
- </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";
- include "emr_carecomxp::CareCom.xjs";
- include "com_departmentcodexp::ZSD001.xjs";
- var MDdeptcd = "";
- function lf_BtnRefClicked(){
- ds_grd_OutRsrvPatList.clearData();
-
- var sorddept = ds_cond.getColumn(0,"orddeptcd");
- var sorddr = ds_cond.getColumn(0,"orddr");
-
- var sRsrvFlag = ds_cond.getColumn(0,"rsrvflag");
- var sRrgstno2 = ds_cond.getColumn(0,"rrgstno2");
- var sTempRsrvYn = "";
- if(sRsrvFlag == "0" || sRsrvFlag == "2" || sRsrvFlag == "5"){ //예약구분이 전체, 전화예약, 인터넷예약일경우 temp테이블도 조회
- sTempRsrvYn = "Y";
- }else{
- sTempRsrvYn = "N";
- }
- //var sOrdfromDD = model.getValue("/root/main/cond/ordfromdd");
- //var sOrdtoDD = model.getValue("/root/main/cond/ordtodd");
- if(utlf_isNull(group5.grp_sea.cmb_orddept.value)) {
- sysf_messageBox("진료과를 선택하지 ","E007");
- return;
- }
- //진료의 확인추가(진료의선택하지않아도 전체의사조회됨)-20090910-kys
- if(utlf_isNull(group5.grp_sea.cmb_orddr.value)) {
- sysf_messageBox("진료의를 선택하지 ","E007");
- return;
- }
- if(utlf_isNull(ds_cond.getColumn(0,"rsrvflag"))) {
- sysf_messageBox("예약경로를 선택하지 ","E007");
- return;
- }
-
- dsf_createDs("ds_send_req");
- dsf_copyDs(ds_send_req,ds_cond,"replace");
-
- if(utlf_transNullToEmpty(sRrgstno2).substr(1,1) == "*"){ //2번째주민번호2번째자리가 *일경우(조회창으로 환자검색한경우) 2번째주민번호 제외
- dsf_makeValue(ds_send_req,"rrgstno2", "string","");
- }
- dsf_makeValue(ds_send_req,"temprsrvyn","string", sTempRsrvYn);
- //model.makeValue("/root/send/req/ordtodd", sOrdtoDD);
-
- var oParam = {};
- oParam.id = "TRMNO03101";
- oParam.service = "outcareapp.OutCareMngt";
- oParam.method = "reqGetOutFstRsrvPatList";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_grd_OutRsrvPatList=outrsrvpatinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNO03101";
- tranf_submit(oParam);
-
- ds_cond.setColumn(0,"orddrnm", group5.grp_sea.cmb_orddr.text);
-
-
- }
- function cf_TRMNO03101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_cond.setColumn(0,"cnt", ds_grd_OutRsrvPatList.rowcount-1);
- }
- function lf_DeptDoctSearch(typegubn){
- group5.grp_sea.cmb_orddr.enable = true;
-
- ds_grd_OutRsrvPatList.clearData();
-
-
- var sordclsdeptflag = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"ordclsdeptflag"); // 센터/대표/분과/서브 구분
- var ssupdeptcd = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"supdeptcd"); // 상위부서코드
- var sorddeptkind = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"orddeptkind"); // 센터/대표 구분
-
- var sorddeptflag = "";
-
- if (sorddeptkind == "C") { // 센터이면
- sorddeptflag = "C";
- //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
- // sorddeptflag = "A";
- } else { // 그외에 기타과
- sorddeptflag = "etc";
- }
-
- ds_cond.setColumn(0,"ordclsdeptflag",sorddeptflag);
- ds_cond.setColumn(0,"supdeptcd",ssupdeptcd);
-
-
-
- dsf_createDsRow("ds_send_reqdata" , [
- {col: "orddd", val:ds_cond.getColumn(0,"ordfromdd")}
- ,{col: "orddeptcd", val:ds_cond.getColumn(0,"orddeptcd")}
- ,{col: "prcpspecflag", val:""}
- ,{col: "ordclsdeptflag", val:sorddeptflag}
- ,{col: "supdeptcd", val:ssupdeptcd}
- ,{col: "MDdeptcd", val:MDdeptcd}
- ]);
-
- var oParam = {};
- oParam.id = "TRMNO00104";
- oParam.service = "outcareapp.OutCareMngt";
- oParam.method = "reqGetDrId";
- oParam.inds = "reqdrid=ds_send_reqdata";
- oParam.outds = "ds_init_cmb_orddr=orddr";
- oParam.async = false;
- //oParam.callback = "cf_TRMNO00104";
- tranf_submit(oParam); // 의사리스트 조회
-
-
- if(ds_init_cmb_orddr.rowcount > 0){
- // for(var i = 0; i < grd_OutRsrvPatList.cols;i++) {
- // grd_OutRsrvPatList.colsort(i) = "asc";
- // }
-
- dsf_addDsItem( ds_init_cmb_orddr, "userid","userdepthngnm", "전체의사", "00000000", "above");
-
- group5.grp_sea.cmb_orddr.index = 1;
- } else {
-
- dsf_addDsItem( ds_init_cmb_orddr, "userid","userdepthngnm", "전체의사", "00000000", "above");
- //cmb_orddr.select(0);
-
- }
- ds_cond.setColumn(0,"orddeptnm", group5.grp_sea.cmb_orddept.text);
-
- }
- function SMMNO03100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNO03100_onload(obj:Form, e:LoadEventInfo)
- {
-
- ds_grd_OutRsrvPatList.clearData();
- grdf_initGrid(group5.grd_OutRsrvPatList);
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'X';
- //var rslt_ref = "/root/init/orddept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = utlf_getCurrentDate();
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- ds_cond.setColumn(0,"ordfromdd", dt);
- ds_cond.setColumn(0,"ordtodd", dt);
-
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, "ds_init_cmb_orddept", dt);
- dsf_addDsItem( ds_init_cmb_orddept, "deptcd","depthngnm", "전체진료과", "0000000000", "above");
- ds_cond.setColumn(0,"orddeptcd","");
-
- // 공통코드 스크립트 호출
- //zbcfGetCodeList( new Array("Z0008"), new Array("/root/init/comcd"));
- var dutplcecd = sysf_getUserInfo("dutplcecd"); // 근무지부서코드
- var suporddeptcd = sysf_getUserInfo("ordsupdeptcd");
-
- if (!utlf_isNull(dutplcecd)) {
- ds_cond.setColumn(0,"orddeptcd", dutplcecd); // 근무지부서코드
- lf_DeptDoctSearch(); // 의사리스트조회
- }
-
- group5.grp_sea.cbo_rsrvflag.index = 0; //라디오버튼 선택
- }
- function group5_grp_sea_cmb_orddr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_BtnRefClicked();
- }
- function group5_grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_DeptDoctSearch();
- }
- function group5_grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_BtnRefClicked();
- }
- function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var oraDate = group5.grp_sea.ipt_ordfromdd.value.toDate().getAddDate(-1,"D");
- group5.grp_sea.ipt_ordfromdd.value = oraDate.getDateFormat();
- group5.grp_sea.ipt_ordtodd.value = oraDate.getDateFormat();
- lf_DeptDoctSearch(); //진료일자 변경시 진료의 재조회
- }
- function group5_grp_sea_ipt_ordfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- lf_DeptDoctSearch();
- }
- function group5_grp_sea_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- var oraDate = group5.grp_sea.ipt_ordfromdd.value.toDate().getAddDate(1,"D");
- group5.grp_sea.ipt_ordfromdd.value = oraDate.getDateFormat();
- group5.grp_sea.ipt_ordtodd.value = oraDate.getDateFormat();
- lf_DeptDoctSearch(); //진료일자 변경시 진료의 재조회
- }
- function group5_grp_sea_input1_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- lf_BtnRefClicked();
- }
- }
- function group5_grp_sea_input4_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- lf_BtnRefClicked();
- }
- }
- function group5_grp_sea_btn_pid_onclick(obj:Button, e:ClickEventInfo)
- {
- // 원본 modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/main/cond");
- // 외래간호환자조회로 변경_20090218(ByJA)
- var objArg = new Object();
-
- objArg.arg_ds_cond = ds_cond;
- frmf_modal("SPMNO02400","SPMNO02400",objArg, "","1", "150", "150", "", "", "", "", "", "M");
-
- //환자번호 copy
- var popupendflag = ds_main.getColumn(0,"popupendflag");
- if (popupendflag == "ok"){
- ds_cond.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
- ds_cond.setColumn(0,"patnm", ds_patinfolist.getColumn(0,"hngnm"));
- ds_cond.setColumn(0,"rrgstno1", ds_patinfolist.getColumn(0,"rrgstno1"));
- ds_cond.setColumn(0,"rrgstno2", ds_patinfolist.getColumn(0,"rrgstno2"));
- }
- }
- function group5_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- group5.grp_sea.input4.value = ""; //등록번호
- group5.grp_sea.input1.value = ""; //환자명
- group5.grp_sea.input2.value = ""; //주민번호1
- group5.grp_sea.input3.value = ""; //주민번호2
- }
- ]]></Script>
- </Form>
- </FDL>
|