SMCND00100_DM발송관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCND00100" position="absolute 0 0 1199 778" titletext="DM 발송관리" oninit="SMCND00100_oninit" onload="SMCND00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 23 1195 63" align="align:center top;" id="grp_johe" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="출력요청일 :" position="absolute 15 11 119 28" id="caption2" class="search_name"/>
  11. <Calendar position="absolute 118 10 238 29" id="ipt_rgstfromdd" class="input_search" autoskip="true" autoselect="true" onkillfocus="grp_johe_ipt_rgstfromdd_onkillfocus"/>
  12. <Static text="~" position="absolute 243 11 255 28" id="caption3" class="search_no_b"/>
  13. <Calendar position="absolute 258 10 378 29" id="ipt_rgsttodd" class="input_search" autoselect="true" onkillfocus="grp_johe_ipt_rgsttodd_onkillfocus"/>
  14. <Static text="수 신 자 명 :" position="absolute 400 11 497 28" id="caption4" class="search_name"/>
  15. <Edit position="absolute 502 10 632 29" id="ipt_s_recvrtelno" class="input_search" autoselect="true"/>
  16. <Shape position="absolute 1102 9 1108 31" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  17. <Button position="absolute 1115 9 1171 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_johe_btn_search_onclick"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static id="caption1" text="DM 출력관리" class="tit_1" position="absolute 0 0 145 24"/>
  22. <Static id="caption9" text="DM 출력내역" class="tit_2" position="absolute 0 73 150 95"/>
  23. <Button id="btn_dm" taborder="1" text="DM 출력" class="btn3" position="absolute 0 90 83 112" onclick="btn_dm_onclick"/>
  24. <Shape id="line2" class="line_10" position="absolute 0 112 1195 118" anchor="left top right"/>
  25. <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">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="28" band="left"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="300"/>
  34. <Column size="90"/>
  35. <Column size="318"/>
  36. <Column size="130"/>
  37. <Column size="80"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="업무구분"/>
  46. <Cell col="2" text="회신자명"/>
  47. <Cell col="3" text="수신우편번호"/>
  48. <Cell col="4" text="수신주소"/>
  49. <Cell col="5" text="수신자명"/>
  50. <Cell col="6" text="제목"/>
  51. <Cell col="7" text="부서명"/>
  52. <Cell col="8" text="등록번호"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head" expr="currow+1"/>
  56. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:bizflag" combodataset="ds_init_C0028list_C0028" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  57. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:replnm"/>
  58. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:recvrzipcd"/>
  59. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:recvraddr"/>
  60. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:recvrnm"/>
  61. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:delivetitl"/>
  62. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:deptnm"/>
  63. <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:recvrpid"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Static id="caption35" text="전체 :" position="absolute 1014 96 1054 113" anchor="top right"/>
  69. <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;"/>
  70. <Static id="caption7" text="건" position="absolute 1087 96 1117 113" anchor="top right"/>
  71. <Button id="btn_saveexcel" taborder="4" text="엑셀저장" class="btn7" position="absolute 1115 93 1195 112" anchor="top right" onclick="btn_saveexcel_onclick"/>
  72. <Button id="btn_select" taborder="5" text="전체선택" class="btn2" position="absolute 0 755 64 774" anchor="left bottom" onclick="btn_select_onclick"/>
  73. <Button id="btn_release" taborder="6" text="전체해제" class="btn2" position="absolute 67 755 131 774" anchor="left bottom" onclick="btn_release_onclick"/>
  74. </Layout>
  75. </Layouts>
  76. <Objects>
  77. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  78. <ColumnInfo>
  79. <Column id="rgstfromdd" type="STRING" size="256"/>
  80. <Column id="rgsttodd" type="STRING" size="256"/>
  81. <Column id="recvrnm" type="STRING" size="256"/>
  82. </ColumnInfo>
  83. <Rows>
  84. <Row>
  85. <Col id="rgstfromdd"/>
  86. <Col id="rgsttodd"/>
  87. <Col id="recvrnm"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_main_list_dmtrsmrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="bizflag" type="STRING" size="256" sumtext="업무구분"/>
  94. <Column id="replnm" type="STRING" size="256" sumtext="회신자명"/>
  95. <Column id="recvrzipcd" type="STRING" size="256" sumtext="수신우편번호"/>
  96. <Column id="recvraddr" type="STRING" size="256" sumtext="회신주소"/>
  97. <Column id="recvrnm" type="STRING" size="256" sumtext="수신자명"/>
  98. <Column id="delivetitl" type="STRING" size="256" sumtext="제목"/>
  99. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  100. <Column id="recvrpid" type="STRING" size="256" sumtext="등록번호"/>
  101. </ColumnInfo>
  102. </Dataset>
  103. <Dataset id="ds_init_C0028list_C0028" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  104. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="countnode" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row/>
  110. </Rows>
  111. </Dataset>
  112. </Objects>
  113. <Bind>
  114. <BindItem id="item0" compid="grp_johe.ipt_rgstfromdd" propid="value" datasetid="ds_send_data" columnid="rgstfromdd"/>
  115. <BindItem id="item1" compid="grp_johe.ipt_rgsttodd" propid="value" datasetid="ds_send_data" columnid="rgsttodd"/>
  116. <BindItem id="item2" compid="grp_johe.ipt_s_recvrtelno" propid="value" datasetid="ds_send_data" columnid="recvrnm"/>
  117. <BindItem id="item3" compid="output1" propid="value" datasetid="ds_main" columnid="countnode"/>
  118. </Bind>
  119. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  120. * System Name :
  121. * Job Name :
  122. * Creator :
  123. * Make Date : 2016-05-24
  124. * Description :
  125. *---------------------------------------------------------------------------------------
  126. * Modify Date Modifier Modify Description
  127. *---------------------------------------------------------------------------------------
  128. * 2016-05-24 Live Converter TF->XP
  129. *
  130. *---------------------------------------------------------------------------------------
  131. ****************************************************************************************/
  132. include "com_commonxp::comm_main.xjs";
  133. include "crm_crmxp::CCZ001.xjs";
  134. function SMCND00100_oninit(obj:Form, e:InitEventInfo)
  135. {
  136. frmf_initForm(obj);
  137. }
  138. function SMCND00100_onload(obj:Form, e:LoadEventInfo)
  139. {
  140. grdf_initGrid(grd_dmtrsmrsltlist);
  141. grdf_setToolTipBind(grd_dmtrsmrsltlist);
  142. // 전송결과 그리드를 초기화한다.
  143. ds_main_list_dmtrsmrsltlist.clearData();
  144. // 공통코드를 호출하여 자료(업무구분)를 가져온다
  145. var arrParam = [{dsNm: "ds_init_C0028list_C0028", cdGrpId: "C0028"}]
  146. appf_getCodeList(arrParam);
  147. // 등록일의 값이 없으면 최근한달로 셋팅한다.
  148. var rgstfromdd = ds_send_data.getColumn(0, "rgstfromdd");
  149. var rgsttodd = ds_send_data.getColumn(0, "rgsttodd");
  150. if (utlf_isNull(rgstfromdd))
  151. {
  152. ds_send_data.setColumn(0, "rgstfromdd",utlf_getCurrentDate());
  153. }
  154. if (utlf_isNull(rgsttodd))
  155. {
  156. ds_send_data.setColumn(0, "rgsttodd",utlf_getCurrentDate());
  157. }
  158. fCheckAuth();
  159. }
  160. function fCheckAuth()
  161. {
  162. // 권한체크
  163. if (!frmf_checkAuth("r"))
  164. {
  165. grp_johe.btn_search.enable = false;
  166. }
  167. if (!frmf_checkAuth("x"))
  168. {
  169. btn_dm.enable = false;
  170. }
  171. if (!frmf_checkAuth("p"))
  172. {
  173. btn_saveexcel.enable = false;
  174. }
  175. }
  176. function grp_johe_ipt_rgstfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  177. {
  178. var rgstfromdd = String(obj.value);
  179. if (!utlf_isNull(rgstfromdd) && !utlf_isValidDateTime(rgstfromdd,"YYYYMMDD"))
  180. {
  181. sysf_messageBox("날짜가 바르게 입력되지","E007");
  182. obj.setFocus();
  183. }
  184. }
  185. function grp_johe_ipt_rgsttodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo)
  186. {
  187. var rgsttodd = String(obj.value);
  188. if (!utlf_isNull(rgsttodd) && !utlf_isValidDateTime(rgsttodd,"YYYYMMDD"))
  189. {
  190. sysf_messageBox("날짜가 바르게 입력되지","E007");
  191. obj.setFocus();
  192. }
  193. }
  194. function grp_johe_btn_search_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. fGetDMList();
  197. }
  198. function fGetDMList()
  199. {
  200. ds_main_list_dmtrsmrsltlist.clearData();
  201. var oParam = {};
  202. oParam.id = "TRCND00101";
  203. oParam.service = "chnlmngtapp.ChnlMngt";
  204. oParam.method = "reqGetDMList";
  205. oParam.inds = "req=ds_send_data";
  206. oParam.outds = "ds_main_list_dmtrsmrsltlist=dmtrsmrsltlist";
  207. oParam.async = false;
  208. //oParam.callback = "cf_TRCND00101";
  209. tranf_submit(oParam);
  210. grd_dmtrsmrsltlist.setFocus();
  211. var grid_rows = ds_main_list_dmtrsmrsltlist.rowcount;
  212. ds_main.setColumn(0, "countnode" , grid_rows);
  213. }
  214. function btn_dm_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. cczfDMTrsmOpen(grd_dmtrsmrsltlist,"recvrnm","recvrzipcd","recvraddr","recvrpid");
  217. }
  218. function btn_select_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. grd_dmtrsmrsltlist.selectAll();
  221. }
  222. function btn_release_onclick(obj:Button, e:ClickEventInfo)
  223. {
  224. ds_main_list_dmtrsmrsltlist.clearSelect();
  225. }
  226. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  227. {
  228. grdf_exportExcel(grd_dmtrsmrsltlist, "excel", "SheetName", "true", "", "");
  229. }
  230. ]]></Script>
  231. </Form>
  232. </FDL>