123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMCFA00700" position="absolute 0 0 1201 779" titletext="건진결과상담 예약 현황" oninit="SMCFA00700_oninit" onload="SMCFA00700_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 23 1195 83" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="예약일자 :" position="absolute 16 10 102 27" id="caption3" class="search_name"/>
- <Calendar position="absolute 108 9 228 28" id="ipt_ordfromdd" class="input_search" autoskip="true" autoselect="true"/>
- <Static text="~" position="absolute 233 10 245 27" id="caption4" class="search_no_b"/>
- <Calendar position="absolute 248 9 368 28" id="ipt_ordtodd" class="input_search" autoselect="true"/>
- <Static text="예약상태 :" position="absolute 875 11 961 28" id="caption7" class="search_name"/>
- <Combo position="absolute 965 9 1075 28" id="cmb_rsrvflag" class="combo_search" innerdataset="@ds_init_comncdlist_P0017list_P0017" datacolumn="cdnm" codecolumn="cdid"/>
- <Static text="등록번호 :" position="absolute 16 34 102 51" id="caption8" class="search_name"/>
- <Edit position="absolute 108 33 228 52" id="ipt_pid" class="input_search"/>
- <Button position="absolute 233 34 249 50" id="btn_pid_srch" class="icon_search" text="" onclick="group2_btn_pid_srch_onclick"/>
- <Static text="환자명 :" position="absolute 501 11 587 28" id="caption9" class="search_name"/>
- <Edit position="absolute 580 9 700 28" id="ipt_patnm" class="input_search" autoselect="true"/>
- <Button position="absolute 705 11 721 27" id="btn_patnm_srch" class="icon_search" text="" onclick="group2_btn_patnm_srch_onclick"/>
- <Static text="전송상태 :" position="absolute 875 34 961 51" id="caption11" class="search_name"/>
- <Combo position="absolute 965 33 1075 52" id="cmb_trsmstat" class="combo_search" innerdataset="@ds_init_comncdlist_C0019list_C0019" datacolumn="cdnm" codecolumn="cdid"/>
- <Shape position="absolute 1103 8 1109 54" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Button position="absolute 1122 20 1178 42" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="건진결과상담예약 전송관리" class="tit_1" position="absolute 0 0 196 24"/>
- <Grid id="grd_rsrvlist" class="text_center" taborder="1" binddataset="ds_main_list_rsrvlist" useinputpanel="false" position="absolute 0 117 1195 747" autoenter="select" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- <Column size="20"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="56"/>
- <Column size="90"/>
- <Column size="120"/>
- <Column size="110"/>
- <Column size="100"/>
- <Column size="450"/>
- <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"/>
- <Cell col="2" text="전송상태"/>
- <Cell col="3" text="예약일자"/>
- <Cell col="4" text="시간"/>
- <Cell col="5" text="등록번호"/>
- <Cell col="6" text="환자명"/>
- <Cell col="7" text="휴대전화번호"/>
- <Cell col="8" text="결과상담의"/>
- <Cell col="9" text="예약 메시지"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" class="update_n" text="bind:update"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:trsmstat" combodataset="ds_init_comncdlist_C0019list_C0019" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="3" displaytype="date" style="align:center middle;" text="bind:rsltcnstrsrvdd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" style="align:center middle;" text="bind:rsltcnstrsrvtm" mask="##:##" maskchar=" "/>
- <Cell col="5" style="align:center middle;" text="bind:pid"/>
- <Cell col="6" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="7" style="align:center middle;" text="bind:mpphontel"/>
- <Cell col="8" style="align:center middle;" text="bind:orddrnm"/>
- <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:smsmsg"/>
- <Cell col="10" text="bind:rsrvdd"/>
- <Cell col="11" text="bind:rsrvno"/>
- <Cell col="12" text="bind:healexamflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption2" text="예약 전송 목록" class="tit_2" position="absolute 0 96 136 118"/>
- <Button id="btn_trsmstat" taborder="2" text="전송제외" class="btn2" position="absolute 1050 93 1114 112" anchor="top right" onclick="btn_trsmstat_onclick"/>
- <Button id="btn_saveexcel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 93 1195 112" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 0 112 1195 118" anchor="left top right"/>
- <Button id="btn_email" taborder="4" text="이메일발송" class="btn3" position="absolute 86 752 178 774" anchor="left bottom" onclick="btn_email_onclick"/>
- <Button id="btn_sms" taborder="5" text="SMS전송" class="btn3" position="absolute 0 752 84 774" anchor="left bottom" onclick="btn_sms_onclick"/>
- <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1068 752 1124 774" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_init" taborder="7" text="초기화" class="btn4" position="absolute 1127 752 1195 774" anchor="right bottom" onclick="btn_init_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="infromdd" type="STRING" size="256"/>
- <Column id="intodd" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- <Column id="orddr" type="STRING" size="256"/>
- <Column id="rsltcnstflag" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="assgward" type="STRING" size="256"/>
- <Column id="trsmstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="infromdd"/>
- <Col id="intodd"/>
- <Col id="orddept"/>
- <Col id="orddr"/>
- <Col id="rsltcnstflag"/>
- <Col id="pid"/>
- <Col id="patnm"/>
- <Col id="assgward"/>
- <Col id="trsmstat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_comncdlist_P0039list_P0039" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_comncdlist_C0019list_C0019" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_basecdlist_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_basecdlist_wardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_rsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsltcnstrsrvdd" type="STRING" size="256" sumtext="결과상담예약일자"/>
- <Column id="rsltcnstrsrvtm" type="STRING" size="256" sumtext="결과상담예약시간"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="trsmstat" type="STRING" size="256" sumtext="전송여부"/>
- <Column id="smsmsg" type="STRING" size="256" sumtext="문자메시지"/>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="rsrvno" type="STRING" size="256" sumtext="예약번호"/>
- <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_rsrvrule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="itemflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rsrvflag">4</Col>
- <Col id="itemflag">S</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_rsrvrule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_comncdlist_P0017list_P0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_rsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_ordfromdd" propid="value" datasetid="ds_send_srch" columnid="infromdd"/>
- <BindItem id="item1" compid="group2.ipt_ordtodd" propid="value" datasetid="ds_send_srch" columnid="intodd"/>
- <BindItem id="item2" compid="group2.ipt_patnm" propid="value" datasetid="ds_send_srch" columnid="patnm"/>
- <BindItem id="item3" compid="group2.ipt_pid" propid="value" datasetid="ds_send_srch" columnid="pid"/>
- <BindItem id="item4" compid="group2.cmb_rsrvflag" propid="value" datasetid="ds_send_srch" columnid="rsltcnstflag"/>
- <BindItem id="item5" compid="group2.cmb_trsmstat" propid="value" datasetid="ds_send_srch" columnid="trsmstat"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "crm_crmxp::CCZ001.xjs";
- include "crm_reservexp::CFZ001.xjs";
- function SMCFA00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMCFA00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_rsrvlist);
- grdf_setRowTypeIcon(grd_rsrvlist, 1);
-
- // P0017: 입원예약상태, P0039: 입원구분, C0019: 전송상태
- var arrParam = [{dsNm: "ds_init_comncdlist_P0017list_P0017", cdGrpId: "P0017"}
- ,{dsNm: "ds_init_comncdlist_P0039list_P0039", cdGrpId: "P0039"}
- ,{dsNm: "ds_init_comncdlist_C0019list_C0019", cdGrpId: "C0019"}]
- appf_getCodeList(arrParam);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "ds_init_basecdlist_orddeptlist";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref, false, "")
-
- var ord_deptflag = "W"; // 병동
- var rslt_ref = "ds_init_basecdlist_wardlist";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref, false, "")
-
- var oParam = {};
- oParam.id = "TRCFA00102";
- oParam.service = "rsrvinfoapp.RsrvInfo";
- oParam.method = "reqGetRsrvRule";
- oParam.inds = "req=ds_send_rsrvrule";
- oParam.outds = "ds_init_rsrvrule=rsrvrule";
- oParam.async = false;
- //oParam.callback = "cf_TRCFA00102";
- tranf_submit(oParam);// 예약주기관리(발송일, 발송 메시지)
- var delive_dd = ds_init_rsrvrule.getColumn(0, "delivedd");
- var rsrv_dd = utlf_getCurrentDate().toDate().getAddDate(parseInt(delive_dd), "D").getDateFormat("YYYYMMDD");
- ds_send_srch.setColumn(0, "infromdd", rsrv_dd);
- ds_send_srch.setColumn(0, "intodd", rsrv_dd);
-
- var comboIDs = "group2.cmb_rsrvflag|group2.cmb_trsmstat";
- frmf_addComboItemAll( comboIDs, "- 전 체 -", "all");
-
- group2.cmb_rsrvflag.index = 0;
- group2.cmb_trsmstat.index = 0;
-
- fCheckAuth();
- fInitRsrvList();
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("r"))
- {
- group2.btn_search.enable = false;
- }
- if (!frmf_checkAuth("x"))
- {
- btn_save.enable = false;
- btn_trsmstat.enable = false;
- btn_sms.enable = false;
- btn_email.enable = false;
- }
- if (!frmf_checkAuth("p"))
- {
- btn_saveexcel.enable = false;
- }
- }
- function fInitRsrvList()
- {
- // 그리드 초기화
- ds_main_list_rsrvlist.clearData();
- }
- function group2_btn_patnm_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- var search_condition = "patnm";
- var search_term = ds_send_srch.getColumn(0, "patnm");
-
- var rtn = cczfOpenSelectClnt2(search_condition, search_term);
- ds_send_srch.setColumn(0, "pid", rtn.pid);
- ds_send_srch.setColumn(0, "patnm", rtn.hngnm);
- }
- function group2_btn_pid_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- var search_condition = "pid";
- var search_term = ds_send_srch.getColumn(0, "pid");
-
- var rtn = cczfOpenSelectClnt2(search_condition, search_term);
- ds_send_srch.setColumn(0, "pid", rtn.pid);
- ds_send_srch.setColumn(0, "patnm", rtn.hngnm);
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRCFA00701";
- oParam.service = "rsrvinfoapp.RsrvInfo";
- oParam.method = "reqGetCnstRsrvList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_list_rsrvlist=rsrvlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCFA00701";
- tranf_submit(oParam);
- }
- function btn_trsmstat_onclick(obj:Button, e:ClickEventInfo)
- {
- // 전송상태(trsmstat)를 '전송대기(0)'인 데이터만 '전송제외(2)'로 변경
- var grid = grd_rsrvlist;
- var trsmstat_col = "trsmstat";
- cfzfChangeTrsmStat(grid, trsmstat_col);
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_rsrvlist, "excel", "SheetName", "true", "", "");
- }
- function btn_sms_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfSMSTrsmOpen("grid",grd_rsrvlist,"hngnm","mpphontel","","");
- }
- function btn_email_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfEmailTrsmOpen("grid",grd_rsrvlist,"email","");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveRsrvList();
- }
- function fSaveRsrvList()
- {
- // 예약메시지 전송에서 제외한 목록 저장
- var grid = grd_rsrvlist;
- var updt_list = grdf_getGridUpdateData(grid);
- if (updt_list.rowcount != 0)
- {
- grdf_setStatusColumn(updt_list, "status");
- ds_send_rsrvlist.copyData(updt_list, true);
- }
-
- var oParam = {};
- oParam.id = "TXCFA00701";
- oParam.service = "rsrvinfoapp.RsrvInfo";
- oParam.method = "reqExeCnstRsrv";
- oParam.inds = "rsrvlist=ds_send_rsrvlist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXCFA00701";
- tranf_submit(oParam);
- }
- function cf_TXCFA00701(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- ds_main_list_rsrvlist.applyChange();
- sysf_messageBox("전송상태 저장이","I002");
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitRsrvList();
- }
- ]]></Script>
- </Form>
- </FDL>
|