123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMCND00100" position="absolute 0 0 1199 778" titletext="DM 발송관리" oninit="SMCND00100_oninit" onload="SMCND00100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 23 1195 63" align="align:center top;" id="grp_johe" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="출력요청일 :" position="absolute 15 11 119 28" id="caption2" class="search_name"/>
- <Calendar position="absolute 118 10 238 29" id="ipt_rgstfromdd" class="input_search" autoskip="true" autoselect="true" onkillfocus="grp_johe_ipt_rgstfromdd_onkillfocus"/>
- <Static text="~" position="absolute 243 11 255 28" id="caption3" class="search_no_b"/>
- <Calendar position="absolute 258 10 378 29" id="ipt_rgsttodd" class="input_search" autoselect="true" onkillfocus="grp_johe_ipt_rgsttodd_onkillfocus"/>
- <Static text="수 신 자 명 :" position="absolute 400 11 497 28" id="caption4" class="search_name"/>
- <Edit position="absolute 502 10 632 29" id="ipt_s_recvrtelno" class="input_search" autoselect="true"/>
- <Shape position="absolute 1102 9 1108 31" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
- <Button position="absolute 1115 9 1171 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_johe_btn_search_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="DM 출력관리" class="tit_1" position="absolute 0 0 145 24"/>
- <Static id="caption9" text="DM 출력내역" class="tit_2" position="absolute 0 73 150 95"/>
- <Button id="btn_dm" taborder="1" text="DM 출력" class="btn3" position="absolute 0 90 83 112" onclick="btn_dm_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 0 112 1195 118" anchor="left top right"/>
- <Grid id="grd_dmtrsmrsltlist" taborder="2" binddataset="ds_main_list_dmtrsmrsltlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 117 1195 754" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28" band="left"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="300"/>
- <Column size="90"/>
- <Column size="318"/>
- <Column size="130"/>
- <Column size="80"/>
- </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="등록번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:bizflag" combodataset="ds_init_C0028list_C0028" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:replnm"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:recvrzipcd"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:recvraddr"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:recvrnm"/>
- <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:delivetitl"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
- <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:recvrpid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption35" text="전체 :" position="absolute 1014 96 1054 113" anchor="top right"/>
- <Edit id="output1" taborder="3" readonly="true" position="absolute 1062 95 1084 112" anchor="top right" autoselect="true" style="background:transparent stretch 5,5;align:right middle;"/>
- <Static id="caption7" text="건" position="absolute 1087 96 1117 113" anchor="top right"/>
- <Button id="btn_saveexcel" taborder="4" text="엑셀저장" class="btn7" position="absolute 1115 93 1195 112" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Button id="btn_select" taborder="5" text="전체선택" class="btn2" position="absolute 0 755 64 774" anchor="left bottom" onclick="btn_select_onclick"/>
- <Button id="btn_release" taborder="6" text="전체해제" class="btn2" position="absolute 67 755 131 774" anchor="left bottom" onclick="btn_release_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rgstfromdd" type="STRING" size="256"/>
- <Column id="rgsttodd" type="STRING" size="256"/>
- <Column id="recvrnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rgstfromdd"/>
- <Col id="rgsttodd"/>
- <Col id="recvrnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_dmtrsmrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bizflag" type="STRING" size="256" sumtext="업무구분"/>
- <Column id="replnm" type="STRING" size="256" sumtext="회신자명"/>
- <Column id="recvrzipcd" type="STRING" size="256" sumtext="수신우편번호"/>
- <Column id="recvraddr" type="STRING" size="256" sumtext="회신주소"/>
- <Column id="recvrnm" type="STRING" size="256" sumtext="수신자명"/>
- <Column id="delivetitl" type="STRING" size="256" sumtext="제목"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="recvrpid" type="STRING" size="256" sumtext="등록번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_C0028list_C0028" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="countnode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_johe.ipt_rgstfromdd" propid="value" datasetid="ds_send_data" columnid="rgstfromdd"/>
- <BindItem id="item1" compid="grp_johe.ipt_rgsttodd" propid="value" datasetid="ds_send_data" columnid="rgsttodd"/>
- <BindItem id="item2" compid="grp_johe.ipt_s_recvrtelno" propid="value" datasetid="ds_send_data" columnid="recvrnm"/>
- <BindItem id="item3" compid="output1" propid="value" datasetid="ds_main" columnid="countnode"/>
- </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";
- function SMCND00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMCND00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_dmtrsmrsltlist);
- grdf_setToolTipBind(grd_dmtrsmrsltlist);
-
- // 전송결과 그리드를 초기화한다.
- ds_main_list_dmtrsmrsltlist.clearData();
- // 공통코드를 호출하여 자료(업무구분)를 가져온다
- var arrParam = [{dsNm: "ds_init_C0028list_C0028", cdGrpId: "C0028"}]
- appf_getCodeList(arrParam);
- // 등록일의 값이 없으면 최근한달로 셋팅한다.
- var rgstfromdd = ds_send_data.getColumn(0, "rgstfromdd");
- var rgsttodd = ds_send_data.getColumn(0, "rgsttodd");
- if (utlf_isNull(rgstfromdd))
- {
- ds_send_data.setColumn(0, "rgstfromdd",utlf_getCurrentDate());
- }
- if (utlf_isNull(rgsttodd))
- {
- ds_send_data.setColumn(0, "rgsttodd",utlf_getCurrentDate());
- }
-
- fCheckAuth();
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("r"))
- {
- grp_johe.btn_search.enable = false;
- }
- if (!frmf_checkAuth("x"))
- {
- btn_dm.enable = false;
- }
- if (!frmf_checkAuth("p"))
- {
- btn_saveexcel.enable = false;
- }
- }
- function grp_johe_ipt_rgstfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
- {
- var rgstfromdd = String(obj.value);
- if (!utlf_isNull(rgstfromdd) && !utlf_isValidDateTime(rgstfromdd,"YYYYMMDD"))
- {
- sysf_messageBox("날짜가 바르게 입력되지","E007");
- obj.setFocus();
- }
- }
- function grp_johe_ipt_rgsttodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
- {
- var rgsttodd = String(obj.value);
- if (!utlf_isNull(rgsttodd) && !utlf_isValidDateTime(rgsttodd,"YYYYMMDD"))
- {
- sysf_messageBox("날짜가 바르게 입력되지","E007");
- obj.setFocus();
- }
- }
- function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDMList();
- }
- function fGetDMList()
- {
- ds_main_list_dmtrsmrsltlist.clearData();
- var oParam = {};
- oParam.id = "TRCND00101";
- oParam.service = "chnlmngtapp.ChnlMngt";
- oParam.method = "reqGetDMList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_list_dmtrsmrsltlist=dmtrsmrsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCND00101";
- tranf_submit(oParam);
- grd_dmtrsmrsltlist.setFocus();
- var grid_rows = ds_main_list_dmtrsmrsltlist.rowcount;
- ds_main.setColumn(0, "countnode" , grid_rows);
- }
- function btn_dm_onclick(obj:Button, e:ClickEventInfo)
- {
- cczfDMTrsmOpen(grd_dmtrsmrsltlist,"recvrnm","recvrzipcd","recvraddr","recvrpid");
- }
- function btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_dmtrsmrsltlist.selectAll();
- }
- function btn_release_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_list_dmtrsmrsltlist.clearSelect();
- }
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_dmtrsmrsltlist, "excel", "SheetName", "true", "", "");
- }
- ]]></Script>
- </Form>
- </FDL>
|