SMAHS00600_신용카드사별수익실적.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS00600" position="absolute 0 0 1211 784" titletext="건진일평균인원현황" oninit="SMAHS00600_oninit" onload="SMAHS00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 1118 9 1124 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  11. <Button position="absolute 1128 9 1184 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  12. <Calendar position="absolute 82 11 187 30" id="ipt_fromdd" class="input_search" taborder="7" anchor="default" autoskip="true" autoselect="true"/>
  13. <Button position="absolute 965 9 1045 31" id="btn_excelsave" class="btn7" visible="true" text="엑셀저장" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
  14. <Button position="absolute 1059 9 1115 31" id="btn_prt" class="btn6" text="출력" anchor="top right" onclick="group2_btn_prt_onclick"/>
  15. <Shape position="absolute 1049 9 1055 31" linetype="vertical" id="line3" class="line_4" visible="false" anchor="top right"/>
  16. <Static text="~" position="absolute 193 13 205 30" id="caption93" class="search_n_b" anchor="default"/>
  17. <Calendar position="absolute 210 11 315 30" id="input1" class="input_search" taborder="7" anchor="default" autoskip="true" autoselect="true"/>
  18. <Static text="기간 :" position="absolute 15 12 88 29" id="caption2" class="search_name" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Tab position="absolute 0 73 1195 764" id="swt_card" anchor="all">
  23. <Tabpages>
  24. <Tabpage text="카드사별수입" id="case_card">
  25. <Layouts>
  26. <Layout>
  27. <Grid position="absolute 0 3 1195 658" id="grd_cardlst" binddataset="ds_main_cardlst_card" autoenter="select" cellsizingtype="col" anchor="all">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="120"/>
  32. <Column size="60"/>
  33. <Column size="130"/>
  34. <Column size="130"/>
  35. <Column size="130"/>
  36. <Column size="0"/>
  37. <Column size="130"/>
  38. <Column size="200"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. <Row size="24" band="summ"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell text="카드사"/>
  47. <Cell col="1" text="건수"/>
  48. <Cell col="2" text="발생액"/>
  49. <Cell col="3" text="수수료"/>
  50. <Cell col="4" text="입금액"/>
  51. <Cell col="5" text="미수액"/>
  52. <Cell col="6" text="입금일"/>
  53. <Cell col="7" text="비고"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell style="align:left middle;padding:0 0 0 5;" text="bind:cardcmpynm"/>
  57. <Cell col="1" style="align:right middle;padding:0 5 0 0;" text="bind:cardcnt"/>
  58. <Cell col="2" displaytype="number" style="padding:0 5 0 0;" text="bind:crtcardamt"/>
  59. <Cell col="3" displaytype="number" style="padding:0 5 0 0;" text="bind:comsamt"/>
  60. <Cell col="4" displaytype="number" style="padding:0 5 0 0;" text="bind:depoamt"/>
  61. <Cell col="5" text="bind:uncoamt" mask="(-,+)#,###"/>
  62. <Cell col="6" displaytype="date" text="bind:depodd" calendardisplaynulltype="nulltext"/>
  63. <Cell col="7" displaytype="text" edittype="text" style="padding:0 0 0 5;" text="bind:remfact"/>
  64. </Band>
  65. <Band id="summary">
  66. <Cell style="align:left middle;padding:0 0 0 5;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  67. <Cell col="1" displaytype="number" style="align:right middle;padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('cardcnt')"/>
  68. <Cell col="2" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('crtcardamt')"/>
  69. <Cell col="3" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('comsamt')"/>
  70. <Cell col="4" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('depoamt')"/>
  71. <Cell col="5" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('uncoamt')"/>
  72. <Cell col="6" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;"/>
  73. <Cell col="7" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. </Layout>
  79. </Layouts>
  80. </Tabpage>
  81. <Tabpage text="카드사별수입내역" id="case_carddetl">
  82. <Layouts>
  83. <Layout>
  84. <Grid position="absolute 0 3 1195 658" id="grd_carddetllst" binddataset="ds_main_cardlst_carddetl" anchor="all" autoenter="select" cellsizingtype="col">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="120"/>
  89. <Column size="100"/>
  90. <Column size="100"/>
  91. <Column size="100"/>
  92. <Column size="130"/>
  93. <Column size="130"/>
  94. <Column size="130"/>
  95. <Column size="200"/>
  96. <Column size="100"/>
  97. </Columns>
  98. <Rows>
  99. <Row size="24" band="head"/>
  100. <Row size="24"/>
  101. <Row size="24" band="summ"/>
  102. </Rows>
  103. <Band id="head">
  104. <Cell text="카드사"/>
  105. <Cell col="1" text="수납일자"/>
  106. <Cell col="2" text="등록번호"/>
  107. <Cell col="3" text="성명"/>
  108. <Cell col="4" text="카드발생금액"/>
  109. <Cell col="5" text="지금수수료"/>
  110. <Cell col="6" text="카드입금액"/>
  111. <Cell col="7" text="카드번호"/>
  112. <Cell col="8" text="승인번호"/>
  113. </Band>
  114. <Band id="body">
  115. <Cell style="align:left middle;padding:0 0 0 3;background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:cardcmpynm" suppress="1" suppressalign="middle,over"/>
  116. <Cell col="1" displaytype="date" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:rcptexecdd" calendardisplaynulltype="nulltext"/>
  117. <Cell col="2" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:rcptid"/>
  118. <Cell col="3" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:rcptnm"/>
  119. <Cell col="4" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:crtcardamt"/>
  120. <Cell col="5" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:comsamt"/>
  121. <Cell col="6" displaytype="number" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:depoamt"/>
  122. <Cell col="7" style="align:right middle;padding:0 5 0 0;background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:cardno"/>
  123. <Cell col="8" style="align:right middle;padding:0 5 0 0;background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:aprvno"/>
  124. </Band>
  125. <Band id="summary">
  126. <Cell style="align:left middle;padding:0 0 0 5;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  127. <Cell col="1" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  128. <Cell col="2" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  129. <Cell col="3" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  130. <Cell col="4" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('crtcardamt')"/>
  131. <Cell col="5" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('comsamt')"/>
  132. <Cell col="6" displaytype="number" style="padding:0 5 0 0;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="expr:getSum('depoamt')"/>
  133. <Cell col="7" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  134. <Cell col="8" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;"/>
  135. </Band>
  136. </Format>
  137. </Formats>
  138. </Grid>
  139. </Layout>
  140. </Layouts>
  141. </Tabpage>
  142. </Tabpages>
  143. </Tab>
  144. <Static id="caption60" text="신용카드사별 수입실적" class="tit_1" position="absolute 0 0 183 25"/>
  145. </Layout>
  146. </Layouts>
  147. <Objects>
  148. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="srchfromdd" type="STRING" size="256"/>
  151. <Column id="srchtodd" type="STRING" size="256"/>
  152. <Column id="srchinstcd" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. <Rows>
  155. <Row>
  156. <Col id="srchfromdd"/>
  157. <Col id="srchtodd"/>
  158. <Col id="srchinstcd"/>
  159. </Row>
  160. </Rows>
  161. </Dataset>
  162. <Dataset id="ds_main_cardlst_card" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="cardcmpynm" type="STRING" size="256" sumtext="카드사명"/>
  165. <Column id="cardcnt" type="INT" size="256" sumtext="건수"/>
  166. <Column id="crtcardamt" type="INT" size="256" sumtext="발생금액"/>
  167. <Column id="comsamt" type="INT" size="256" sumtext="수수료"/>
  168. <Column id="depodd" type="STRING" size="256" sumtext="입금일"/>
  169. <Column id="depoamt" type="INT" size="256" sumtext="입금액"/>
  170. <Column id="uncoamt" type="INT" size="256" sumtext="미수액"/>
  171. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  172. </ColumnInfo>
  173. </Dataset>
  174. <Dataset id="ds_main_cardlst_carddetl" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="cardcmpynm" type="STRING" size="256" sumtext="소계" prop="TEXT"/>
  177. <Column id="rcptexecdd" type="STRING" size="256" sumtext="입금일자"/>
  178. <Column id="rcptid" type="STRING" size="256" sumtext="등록번호"/>
  179. <Column id="rcptnm" type="STRING" size="256" sumtext="성명" prop="COUNT"/>
  180. <Column id="crtcardamt" type="BIGDECIMAL" size="256" sumtext="발생금액"/>
  181. <Column id="comsamt" type="BIGDECIMAL" size="256" sumtext="수수료"/>
  182. <Column id="depoamt" type="BIGDECIMAL" size="256" sumtext="입금액"/>
  183. <Column id="cardno" type="STRING" size="256" sumtext="카드번호"/>
  184. <Column id="aprvno" type="STRING" size="256" sumtext="승인번호"/>
  185. </ColumnInfo>
  186. </Dataset>
  187. <Dataset id="ds_init_baseinfo_healexamflaglist_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  188. <Dataset id="ds_init_baseinfo_healexamdetlflaglist_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  189. <Dataset id="ds_init_baseinfo_healexamdetlflaglist2_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  190. <Dataset id="ds_temp_cardlst_carddetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  191. </Objects>
  192. <Bind>
  193. <BindItem id="item0" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  194. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  195. </Bind>
  196. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  197. * System Name :
  198. * Job Name :
  199. * Creator :
  200. * Make Date : 2015-11-13
  201. * Description :
  202. *---------------------------------------------------------------------------------------
  203. * Modify Date Modifier Modify Description
  204. *---------------------------------------------------------------------------------------
  205. * 2015-11-13 Live Converter TF->XP
  206. *
  207. *---------------------------------------------------------------------------------------
  208. ****************************************************************************************/
  209. include "com_commonxp::comm_main.xjs";
  210. function SMAHS00600_oninit(obj:Form, e:InitEventInfo)
  211. {
  212. frmf_initForm(obj);
  213. }
  214. function SMAHS00600_onload(obj:Form, e:LoadEventInfo)
  215. {
  216. grdf_initGrid(swt_card.case_card.grd_cardlst);
  217. grdf_initGrid(swt_card.case_carddetl.grd_carddetllst);
  218. ds_send.setColumn(0, "srchfromdd" , utlf_getCurrentDate());
  219. ds_send.setColumn(0, "srchtodd" , utlf_getCurrentDate());
  220. ds_send.setColumn(0, "srchinstcd" , sysf_getUserInfo("posinstcd"));
  221. var arrParam = [{dsNm: "ds_init_baseinfo_healexamflaglist_A0068", cdGrpId: "A0068"}
  222. ,{dsNm: "ds_init_baseinfo_healexamdetlflaglist_A0069", cdGrpId: "A0069"}
  223. ,{dsNm: "ds_init_baseinfo_healexamdetlflaglist2_A0070", cdGrpId: "A0070"}]
  224. appf_getCodeList(arrParam);
  225. }
  226. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  227. {
  228. var oParam = {};
  229. oParam.id = "TRAHS00601";
  230. oParam.service = "healexamstatapp.StatRef";
  231. oParam.method = "reqGetCardList";
  232. oParam.inds = "req=ds_send";
  233. oParam.outds = "ds_main_cardlst_card=card ds_main_cardlst_carddetl=carddetl";
  234. oParam.async = false;
  235. //oParam.callback = "cf_TRAHS00601";
  236. tranf_submit(oParam);
  237. ds_temp_cardlst_carddetl.copyData(ds_main_cardlst_carddetl);
  238. ds_main_cardlst_carddetl.keystring = "G:cardcmpynm";
  239. }
  240. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. grdf_exportExcel(swt_card.case_card.grd_cardlst, "excel", "SheetName", "true", "", "");
  243. }
  244. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. var idx = swt_card.tabindex;
  247. // model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  248. // model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  249. if(idx == 0)
  250. {
  251. var objDOM = rptf_createDOM();
  252. rptf_setNodeListToDOM(objDOM, "/root/main/cardlst/card", ds_main_cardlst_card);
  253. var objParam = new Object();
  254. objParam.xml_data_XML1 = objDOM.documentElement.source;
  255. objParam.srchfromdd = ds_send.getColumn(0, "srchfromdd").toDate().getDateFormat("YYYY/MM/DD");
  256. objParam.srchtodd = ds_send.getColumn(0, "srchtodd").toDate().getDateFormat("YYYY/MM/DD")
  257. var option = "";
  258. rptf_exeReportPreview30(["RPAHS00601"],[objParam], option);
  259. }
  260. else if(idx == 1)
  261. {
  262. var objDOM = rptf_createDOM();
  263. rptf_setNodeListToDOM(objDOM, "/root/main/cardlst/carddetl", ds_temp_cardlst_carddetl);
  264. var objParam = new Object();
  265. objParam.xml_data_XML1 = objDOM.documentElement.source;
  266. objParam.srchfromdd = ds_send.getColumn(0, "srchfromdd").toDate().getDateFormat("YYYY/MM/DD");
  267. objParam.srchtodd = ds_send.getColumn(0, "srchtodd").toDate().getDateFormat("YYYY/MM/DD")
  268. var option = "";
  269. rptf_exeReportPreview30(["RPAHS00602"],[objParam], option);
  270. }
  271. }
  272. ]]></Script>
  273. </Form>
  274. </FDL>