123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMCPC00200" position="absolute 0 0 1199 791" titletext="캠페인응답관리" oninit="SMCPC00200_oninit" onload="SMCPC00200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 225 36 1195 96" align="align:center top;" id="group3" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="내원일자 :" position="absolute 21 10 99 27" id="caption3" class="search_name" anchor="default"/>
- <Calendar position="absolute 108 9 228 28" id="ipt_chosfromdd" class="input_search" autoselect="true" autoskip="true" anchor="default"/>
- <Static text="~" position="absolute 233 10 245 27" id="caption4" class="search_no_b" anchor="default"/>
- <Calendar position="absolute 248 9 368 28" id="ipt_chostodd" class="input_search" autoselect="true" anchor="default"/>
- <Static text="진료과 :" position="absolute 391 9 477 26" id="caption5" class="search_name" anchor="default"/>
- <Combo position="absolute 462 8 602 27" id="cmb_orddept" class="combo_search" innerdataset="@ds_init_basecdlist_orddeptlist_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default"/>
- <Static text="등록번호 :" position="absolute 631 10 709 27" id="caption6" class="search_name" anchor="default"/>
- <Edit position="absolute 717 9 837 28" id="ipt_pid" class="input_search" autoselect="true" anchor="default" onkeyup="group3_ipt_pid_onkeyup"/>
- <Button position="absolute 840 10 856 26" id="btn_pidsrch" class="icon_search" text="" anchor="default" onclick="group3_btn_pidsrch_onclick"/>
- <Static text="실행일자 :" position="absolute 21 34 99 51" id="caption7" class="search_name" anchor="default"/>
- <Calendar position="absolute 248 33 368 52" id="ipt_cmpnfromdd" class="input_search" autoselect="true" anchor="default"/>
- <Static text="~" position="absolute 233 34 245 51" id="caption8" class="search_no_b" anchor="default"/>
- <Calendar position="absolute 108 33 228 52" id="ipt_cmpntodd" class="input_search" autoselect="true" autoskip="true" anchor="default"/>
- <Static text="캠페인명 :" position="absolute 631 34 718 51" id="caption9" class="search_name" anchor="default"/>
- <Edit position="absolute 717 33 837 52" id="ipt_cmpnnm" class="input_search" autoselect="true" anchor="default" onkeyup="group3_ipt_cmpnnm_onkeyup"/>
- <Button position="absolute 840 33 856 49" id="btn_cmpnsrch" class="icon_search" text="" anchor="default" onclick="group3_btn_cmpnsrch_onclick"/>
- <Shape position="absolute 880 7 886 53" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Button position="absolute 898 19 954 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group3_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="캠페인 응답관리" class="tit_1" position="absolute 0 0 189 22"/>
- <Static id="caption10" text="캠페인실행 및 고객내원 목록" class="tit_2" position="absolute 224 102 420 124"/>
- <Grid id="grd_choslist" class="text_center" taborder="1" binddataset="ds_main_list_choslist" useinputpanel="false" position="absolute 224 123 1195 763" autoenter="select" cellsizingtype="col" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="140"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="70"/>
- <Column size="70"/>
- <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" text="등록번호"/>
- <Cell col="7" text="고객명"/>
- <Cell col="8" text="입원/외래"/>
- <Cell col="9" text="응답확인"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:cmpnnm"/>
- <Cell col="2" text="bind:rgstdeptnm"/>
- <Cell col="3" text="bind:orddeptnm"/>
- <Cell col="4" displaytype="date" text="bind:cmpnexecdd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:hngnm"/>
- <Cell col="8" displaytype="combo" text="bind:outinflag" combodataset="ds_init_comncdlist_P0001list_P0001" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="9" displaytype="combo" edittype="combo" text="bind:choscnfmyn" combodataset="ds_init_comncdlist_C0017list_C0017" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="10" text="bind:cretno"/>
- <Cell col="11" text="bind:acptseqno"/>
- <Cell col="12" text="bind:cmpncd"/>
- <Cell col="13" text="bind:cmpnrgstdt"/>
- <Cell col="14" text="bind:rgstseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_10" position="absolute 224 118 1195 124" anchor="left top right"/>
- <Button id="btn_choscnfm" taborder="2" text="응답확인" class="btn2" position="absolute 914 99 978 118" anchor="top right" onclick="btn_choscnfm_onclick"/>
- <Button id="btn_choscncl" taborder="3" text="응답제외" class="btn2" position="absolute 981 99 1045 118" anchor="top right" onclick="btn_choscncl_onclick"/>
- <Button id="btn_chosdel" taborder="4" text="선택삭제" class="btn2" position="absolute 1048 99 1112 118" anchor="top right" onclick="btn_chosdel_onclick"/>
- <Button id="btn_saveexcel" taborder="5" text="엑셀저장" class="btn7" position="absolute 1115 99 1195 118" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Static id="caption2" text="캠페인 분류" class="tit_2" position="absolute 0 29 215 50"/>
- <Div id="import1" taborder="6" url="SSCPC00300_캠페인그룹트리.xfdl" position="absolute 0 45 215 789" anchor="left top bottom"/>
- <Button id="btn_setup" taborder="7" text="응답기준설정" class="btn3" position="absolute 224 765 328 787" anchor="left bottom" onclick="btn_setup_onclick"/>
- <Button id="btn_save" taborder="8" text="저장" class="btn4" position="absolute 1067 765 1123 787" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_init" taborder="9" text="초기화" class="btn4" position="absolute 1126 765 1194 787" 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="chosfromdd" type="STRING" size="256"/>
- <Column id="chostodd" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="cmpnfromdd" type="STRING" size="256"/>
- <Column id="cmpntodd" type="STRING" size="256"/>
- <Column id="cmpnnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chosfromdd"/>
- <Col id="chostodd"/>
- <Col id="orddept"/>
- <Col id="pid"/>
- <Col id="cmpnfromdd"/>
- <Col id="cmpntodd"/>
- <Col id="cmpnnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_basecdlist_orddeptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_choslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cmpnnm" type="STRING" size="256" sumtext="캠페인명"/>
- <Column id="rgstdeptnm" type="STRING" size="256" sumtext="실행부서"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="내원진료과"/>
- <Column id="cmpnexecdd" type="STRING" size="256" sumtext="실행일자"/>
- <Column id="orddd" type="STRING" size="256" sumtext="내원일자"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="고객명"/>
- <Column id="outinflag" type="STRING" size="256" sumtext="외래입원상태"/>
- <Column id="choscnfmyn" type="STRING" size="256" sumtext="응답여부"/>
- <Column id="cretno" type="INT" size="256" sumtext="생성번호(키)"/>
- <Column id="acptseqno" type="INT" size="256" sumtext="접수번호(키)"/>
- <Column id="cmpncd" type="STRING" size="256" sumtext="캠페인코드(키)"/>
- <Column id="cmpnrgstdt" type="STRING" size="256" sumtext="등록일시(키)"/>
- <Column id="rgstseq" type="INT" size="256" sumtext="등록순서(키)"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_comncdlist_C0017list_C0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_comncdlist_P0001list_P0001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_choslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.ipt_chosfromdd" propid="value" datasetid="ds_send_srch" columnid="chosfromdd"/>
- <BindItem id="item1" compid="group3.ipt_chostodd" propid="value" datasetid="ds_send_srch" columnid="chostodd"/>
- <BindItem id="item2" compid="group3.ipt_cmpnfromdd" propid="value" datasetid="ds_send_srch" columnid="cmpntodd"/>
- <BindItem id="item3" compid="group3.ipt_cmpntodd" propid="value" datasetid="ds_send_srch" columnid="cmpnfromdd"/>
- <BindItem id="item4" compid="group3.cmb_orddept" propid="value" datasetid="ds_send_srch" columnid="orddept"/>
- <BindItem id="item5" compid="group3.ipt_pid" propid="value" datasetid="ds_send_srch" columnid="pid"/>
- <BindItem id="item6" compid="group3.ipt_cmpnnm" propid="value" datasetid="ds_send_srch" columnid="cmpnnm"/>
- </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_campainxp::CPZ001.xjs";
- function SMCPC00200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMCPC00200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_choslist);
- grdf_setRowTypeIcon(grd_choslist, 0);
-
- // P0001: 입원/외래, C0017: 캠페인응답
- var arrParam = [{dsNm: "ds_init_comncdlist_P0001list_P0001", cdGrpId: "P0001"}
- ,{dsNm: "ds_init_comncdlist_C0017list_C0017", cdGrpId: "C0017"}]
- appf_getCodeList(arrParam);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "ds_init_basecdlist_orddeptlist_dept";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref, false, "")
-
- var ord_dd = utlf_getCurrentDate();
- ds_send_srch.setColumn(0, "chosfromdd", ord_dd);
- ds_send_srch.setColumn(0, "chostodd", ord_dd);
-
- frmf_addComboItem("group3.cmb_orddept", "- 전 체 -", "", "above");
- fCheckAuth();
- fInitChosList();
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("r"))
- {
- group3.btn_search.enable = false;
- }
- if (!frmf_checkAuth("x"))
- {
- btn_save.enable = false;
- btn_choscnfm.enable = false;
- btn_chosdel.enable = false;
- }
- if (!frmf_checkAuth("p"))
- {
- btn_saveexcel.enable = false;
- }
- }
- function fInitChosList()
- {
- // 그리드 초기화
- ds_main_list_choslist.clearData();
- }
- function group3_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group3.btn_pidsrch.click();
- }
- }
- function group3_btn_pidsrch_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);
- }
- function group3_ipt_cmpnnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group3.btn_cmpnsrch.click();
- }
- }
- function group3_btn_cmpnsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- var send_cmpn_cd = "";
- var send_cmpn_nm = ds_send_srch.getColumn(0, "cmpnnm");
-
- var rtn = cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm);
- ds_send_srch.setColumn(0, "cmpnnm", rtn.cmpnnm);
- }
- function group3_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRCPC00201";
- oParam.service = "cmpnmngtapp.CmpnTrgtMngt";
- oParam.method = "reqGetCnfmList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_list_choslist=choslist";
- oParam.async = false;
- //oParam.callback = "cf_TRCPC00201";
- tranf_submit(oParam);
- }
- function btn_choscnfm_onclick(obj:Button, e:ClickEventInfo)
- {
- var grid = grdf_getSelectedRows(grd_choslist);
- for (var i = 0; i < grid.length; i++)
- {
- var sRow = grid[i];
- ds_main_list_choslist.setColumn(sRow, "choscnfmyn", "Y");
- ds_main_list_choslist.updatecontrol = false;
- ds_main_list_choslist.setRowType(i, "u");
- ds_main_list_choslist.updatecontrol = true;
- }
- }
- function btn_choscncl_onclick(obj:Button, e:ClickEventInfo)
- {
- var grid = grdf_getSelectedRows(grd_choslist);
- for (var i = 0; i < grid.length; i++)
- {
- var sRow = grid[i];
- ds_main_list_choslist.setColumn(sRow, "choscnfmyn", "N");
- ds_main_list_choslist.updatecontrol = false;
- ds_main_list_choslist.setRowType(i, "u");
- ds_main_list_choslist.updatecontrol = true;
- }
- }
- function btn_chosdel_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_choslist);
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_choslist, "excel", "SheetName", "true", "", "");
- }
- function btn_setup_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SPCPC00600", "SPCPC00600", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveChosList();
- }
- function fSaveChosList()
- {
- // 응답확인 목록 저장
- var grid = grd_choslist;
- var updt_list = grdf_getGridUpdateData(grid);
- if (updt_list.rowcount != 0)
- {
- grdf_setStatusColumn(updt_list, "m");
- ds_send_choslist.copyData(updt_list)
- }
-
- var oParam = {};
- oParam.id = "TXCFA00201";
- oParam.service = "cmpnmngtapp.CmpnTrgtMngt";
- oParam.method = "reqExeCnfmList";
- oParam.inds = "choslist=ds_send_choslist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXCFA00201";
- tranf_submit(oParam);
- }
- function cf_TXCFA00201(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- ds_main_list_choslist.applyChange();
- ds_send_choslist.clearData();
- sysf_messageBox("응답확인 저장이","I002");
-
- var oParam = {};
- oParam.id = "TRCPC00201";
- oParam.service = "cmpnmngtapp.CmpnTrgtMngt";
- oParam.method = "reqGetCnfmList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_list_choslist=choslist";
- oParam.async = false;
- //oParam.callback = "cf_TRCPC00201";
- tranf_submit(oParam);
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitChosList();
- }
- ]]></Script>
- </Form>
- </FDL>
|