SMAHS02200_평생고객관리코드.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS02200" position="absolute 0 0 1211 750" titletext="기간별 평생건강관리 현황" oninit="SMAHS02200_oninit" onload="SMAHS02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1211 23" id="group3">
  8. <Layouts>
  9. <Layout>
  10. <Static text="기간별 평생건강관리 현황" position="absolute 0 0 188 23" align="align:center middle;" id="caption60" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 4 23 1207 58" id="group2" class="div_SA">
  15. <Layouts>
  16. <Layout>
  17. <Static text="기간 ~" position="absolute 15 9 213 26" id="caption2" class="search_name"/>
  18. <Shape position="absolute 1129 7 1135 29" linetype="vertical" id="line2" class="line_4"/>
  19. <Button position="absolute 1139 7 1195 29" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
  20. <Calendar position="absolute 60 8 180 27" id="ipt_fromdd" class="input_default" taborder="7"/>
  21. <Calendar position="absolute 200 8 320 27" id="ipt_todd" class="input_default" taborder="7"/>
  22. <Button position="absolute 1045 8 1125 30" id="btn_excelsave" class="btn7" text="액셀저장" onclick="group2_btn_excelsave_onclick"/>
  23. <Button position="absolute 975 8 1031 30" id="btn_prt" class="btn6" visible="true" text="출력" onclick="group2_btn_prt_onclick"/>
  24. <Shape position="absolute 1035 7 1041 29" linetype="vertical" id="line3" class="line_4" visible="false"/>
  25. <Static text="검사코드 :" position="absolute 360 10 446 27" id="caption3" class="search_name"/>
  26. <Combo position="absolute 438 8 548 27" id="cmb_srchhealexamflag" class="combo_search" innerdataset="@ds_init_baseinfo_healexamtestcdlist_S200" datacolumn="cdnm" codecolumn="cdid"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Grid position="absolute 5 90 395 405" id="grd_earnlst" binddataset="ds_main_item2">
  31. <Formats>
  32. <Format id="default">
  33. <Columns>
  34. <Column size="80"/>
  35. <Column size="70"/>
  36. <Column size="80"/>
  37. <Column size="80"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. <Row size="24" band="summ"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell text="평생고객코드"/>
  46. <Cell col="1" text="고객수"/>
  47. <Cell col="2" text="코드별단가"/>
  48. <Cell col="3" text="총비용"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell text="bind:testcd"/>
  52. <Cell col="1" text="bind:cnt"/>
  53. <Cell col="2" displaytype="number" text="bind:amt" mask="#,###"/>
  54. <Cell col="3" displaytype="number" text="bind:sumamt" mask="#,###"/>
  55. </Band>
  56. <Band id="summary">
  57. <Cell style="align:left;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  58. <Cell col="1" displaytype="number" style="align:left;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" expr="expr:getSum('cnt')" mask="#,##9"/>
  59. <Cell col="2" displaytype="number" style="align:left;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" mask="#,##9"/>
  60. <Cell col="3" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" expr="expr:getSum('sumamt')" mask="#,##9"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Grid position="absolute 5 437 395 740" id="datagrid1" binddataset="ds_main_item3">
  66. <Formats>
  67. <Format id="default">
  68. <Columns>
  69. <Column size="80"/>
  70. <Column size="59"/>
  71. <Column size="80"/>
  72. <Column size="80"/>
  73. <Column size="80"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. <Row size="24" band="summ"/>
  79. </Rows>
  80. <Band id="head">
  81. <Cell text="금액"/>
  82. <Cell col="1" text="고객수"/>
  83. <Cell col="2" text="금액별단가"/>
  84. <Cell col="3" text="총비용"/>
  85. <Cell col="4" text="비적용고객수"/>
  86. </Band>
  87. <Band id="body">
  88. <Cell text="bind:testnm"/>
  89. <Cell col="1" text="bind:cnt"/>
  90. <Cell col="2" displaytype="number" text="bind:testamt" mask="#,###"/>
  91. <Cell col="3" displaytype="number" text="bind:sumamt" mask="#,###"/>
  92. <Cell col="4" displaytype="number" text="bind:nullcnt" mask="#,###"/>
  93. </Band>
  94. <Band id="summary">
  95. <Cell style="align:left;background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" text="총계"/>
  96. <Cell col="1" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" expr="expr:getSum('cnt')" mask="#,##9"/>
  97. <Cell col="2" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" mask="#,##9"/>
  98. <Cell col="3" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" expr="expr:getSum('sumamt')" mask="#,##9"/>
  99. <Cell col="4" displaytype="number" style="background:#808080ff;background2:#808080ff;color:#ffffffff;color2:#ffffffff;font:arial,9,bold;" expr="expr:getSum('nullcnt')" mask="#,##9"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Grid position="absolute 400 90 1206 740" id="datagrid2" binddataset="ds_main_item1">
  105. <Formats>
  106. <Format id="default">
  107. <Columns>
  108. <Column size="80"/>
  109. <Column size="70"/>
  110. <Column size="80"/>
  111. <Column size="80"/>
  112. <Column size="80"/>
  113. <Column size="80"/>
  114. <Column size="80"/>
  115. <Column size="80"/>
  116. <Column size="80"/>
  117. <Column size="80"/>
  118. </Columns>
  119. <Rows>
  120. <Row size="24" band="head"/>
  121. <Row size="24"/>
  122. </Rows>
  123. <Band id="head">
  124. <Cell text="등록번호"/>
  125. <Cell col="1" text="고객명"/>
  126. <Cell col="2" text="건진일"/>
  127. <Cell col="3" text="코드"/>
  128. <Cell col="4" text="패키지코드"/>
  129. <Cell col="5" text="패키지명"/>
  130. <Cell col="6" text="단체여부"/>
  131. <Cell col="7" text="단체명"/>
  132. <Cell col="8" text="본인부담금"/>
  133. <Cell col="9" text="단체부담금"/>
  134. </Band>
  135. <Band id="body">
  136. <Cell text="bind:pid"/>
  137. <Cell col="1" text="bind:hngnm"/>
  138. <Cell col="2" text="bind:hopedd"/>
  139. <Cell col="3" text="bind:testcd"/>
  140. <Cell col="4" text="bind:pkgcd"/>
  141. <Cell col="5" text="bind:pkgnm"/>
  142. <Cell col="6" text="bind:cmpyflag"/>
  143. <Cell col="7" text="bind:cmpynm"/>
  144. <Cell col="8" displaytype="number" text="bind:ownbamt" mask="#,###"/>
  145. <Cell col="9" displaytype="number" text="bind:cmpyamt" mask="#,###"/>
  146. </Band>
  147. </Format>
  148. </Formats>
  149. </Grid>
  150. <Static text="코드별 통계" position="absolute 5 65 107 81" id="caption1" class="tit_2"/>
  151. <Shape position="absolute 5 82 395 88" linetype="horizontal" id="line1" class="line_10"/>
  152. <Static text="건진자 현황" position="absolute 400 65 502 81" id="caption4" class="tit_2"/>
  153. <Shape position="absolute 400 82 1206 88" linetype="horizontal" id="line4" class="line_10"/>
  154. <Static text="금액별 고객" position="absolute 5 415 107 431" id="caption5" class="tit_2"/>
  155. <Shape position="absolute 5 432 395 438" linetype="horizontal" id="line5" class="line_10"/>
  156. </Layout>
  157. </Layouts>
  158. <Objects>
  159. <Dataset id="ds_init_baseinfo_healexamtestcdlist_S200" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="cdnm" type="STRING"/>
  162. <Column id="cdid" type="STRING"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="srchfromdd" type="STRING" size="256" sumtext="시작일자"/>
  168. <Column id="srchtodd" type="STRING" size="256" sumtext="종료일자"/>
  169. <Column id="srchtestcd" type="STRING" size="256" sumtext="검사코드"/>
  170. </ColumnInfo>
  171. <Rows>
  172. <Row/>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_main_item1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  178. <Column id="hngnm" type="STRING" size="256" sumtext="고객명"/>
  179. <Column id="hopedd" type="STRING" size="256" sumtext="건진일"/>
  180. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  181. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  182. <Column id="pkgnm" type="STRING" size="256" sumtext="패키지명"/>
  183. <Column id="cmpyflag" type="STRING" size="256" sumtext="단체여부"/>
  184. <Column id="cmpynm" type="STRING" size="256" sumtext="단체명"/>
  185. <Column id="ownbamt" type="STRING" size="256" sumtext="본인부담금"/>
  186. <Column id="cmpyamt" type="STRING" size="256" sumtext="단체부담금"/>
  187. </ColumnInfo>
  188. </Dataset>
  189. <Dataset id="ds_main_item2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="testcd" type="STRING" size="256" sumtext="평생고객코드"/>
  192. <Column id="codenm" type="STRING" size="256" sumtext="코드명"/>
  193. <Column id="cnt" type="STRING" size="256" sumtext="고객수"/>
  194. <Column id="amt" type="STRING" size="256" sumtext="관리단가"/>
  195. <Column id="sumamt" type="STRING" size="256" sumtext="총금액"/>
  196. <Column id="sortseq" type="STRING" size="256" sumtext="정렬"/>
  197. </ColumnInfo>
  198. </Dataset>
  199. <Dataset id="ds_main_item3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="testnm" type="STRING" size="256" sumtext="테스트명"/>
  202. <Column id="cnt" type="STRING" size="256" sumtext="고객수"/>
  203. <Column id="nullcnt" type="STRING" size="256" sumtext="비적용고객수"/>
  204. <Column id="testamt" type="STRING" size="256" sumtext="관리단가"/>
  205. <Column id="sumamt" type="STRING" size="256" sumtext="총금액"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_main_export" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="srchfromdd" type="STRING" size="256"/>
  211. <Column id="srchtodd" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row/>
  215. </Rows>
  216. </Dataset>
  217. </Objects>
  218. <Bind>
  219. <BindItem id="item0" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  220. <BindItem id="item1" compid="group2.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  221. <BindItem id="item2" compid="group2.cmb_srchhealexamflag" propid="value" datasetid="ds_send" columnid="srchtestcd"/>
  222. </Bind>
  223. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  224. * System Name : 경대 의료정보시스템
  225. * Job Name : ast_healexamstatxp -> SMAHS02200
  226. * Creator : yjh
  227. * Make Date : 2018-02-27
  228. * Description :
  229. *---------------------------------------------------------------------------------------
  230. * Modify Date Modifier Modify Description
  231. *---------------------------------------------------------------------------------------
  232. * 2018-02-27 yjh TF->XP
  233. *
  234. *---------------------------------------------------------------------------------------
  235. ****************************************************************************************/
  236. //=======================================================================================
  237. // Lib Include
  238. //---------------------------------------------------------------------------------------
  239. include "com_commonxp::comm_main.xjs";
  240. include "ast_healthexambasexp::healcombolist.xjs";
  241. //=======================================================================================
  242. // Global Form Variable
  243. //---------------------------------------------------------------------------------------
  244. //=======================================================================================
  245. // Function
  246. //---------------------------------------------------------------------------------------
  247. //=======================================================================================
  248. // Event
  249. //---------------------------------------------------------------------------------------
  250. /****************************************************************************************
  251. * Components : Form
  252. * Components ID : SMAHS02200
  253. * Event : oninit
  254. * Argument : 01.obj : Object Event has occurred
  255. * : 02.e : Event Object
  256. * Description : 화면 처음 초기화시
  257. ****************************************************************************************/
  258. function SMAHS02200_oninit(obj:Form, e:InitEventInfo)
  259. {
  260. frmf_initForm(obj); //폼 초기화
  261. }
  262. /****************************************************************************************
  263. * Components : Form
  264. * Components ID : SMAHS02200
  265. * Event : onload
  266. * Argument : 01.obj : Object Event has occurred
  267. * : 02.e : Event Object
  268. * Description : 화면 로딩 완료시
  269. ****************************************************************************************/
  270. function SMAHS02200_onload(obj:Form, e:LoadEventInfo)
  271. {
  272. var cur_date = new Date();
  273. var from_date = (cur_date.getAddDate(-1, 'M')).getDateFormat();
  274. group2.ipt_fromdd.value = from_date;
  275. group2.ipt_todd.value = utlf_getCurrentDate();
  276. var arrParam = [{dsNm: "ds_init_baseinfo_healexamtestcdlist_S200", cdGrpId: "S200"}]
  277. healGetCodeList(arrParam);
  278. dsf_setDefaultVal(ds_init_baseinfo_healexamtestcdlist_S200, "all");
  279. group2.cmb_srchhealexamflag.index = 0;
  280. }
  281. /****************************************************************************************
  282. * Components : Button
  283. * Components ID : btn_search
  284. * Event : onclick
  285. * Argument : 01.obj : Object Event has occurred
  286. * : 02.e : Event Object
  287. * Description : 조회버튼 클릭시
  288. ****************************************************************************************/
  289. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. var oParam = {};
  292. oParam.id = "TRAHS00201";
  293. oParam.service = "healexamstatapp.StatRef";
  294. oParam.method = "reqGetPyungSangStats";
  295. oParam.inds = "req=ds_send";
  296. oParam.outds = "ds_main_item1=item1 ds_main_item2=item2 ds_main_item3=item3";
  297. oParam.async = false;
  298. //oParam.callback = "cf_TRAHS00201";
  299. tranf_submit(oParam);
  300. // grd_earnlst.subtotalPosition = "below";
  301. // grd_earnlst.multiTotals = true;
  302. // grd_earnlst.subtotal("clear", 0, 12);
  303. // grd_earnlst.subtotal("sum", -1 , 1 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_earnlst.colRef("testcd") , "총계" );
  304. // grd_earnlst.subtotal("sum", -1 , 3 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_earnlst.colRef("testcd") , "총계" );
  305. //
  306. // datagrid1.subtotalPosition = "below";
  307. // datagrid1.multiTotals = true;
  308. // datagrid1.subtotal("clear", 0, 12);
  309. // datagrid1.subtotal("sum", -1 , 1 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  310. // datagrid1.subtotal("sum", -1 , 3 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  311. // datagrid1.subtotal("sum", -1 , 4 ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", datagrid1.colRef("testnm") , "총계" );
  312. }
  313. /****************************************************************************************
  314. * Components : Button
  315. * Components ID : btn_excelsave
  316. * Event : onclick
  317. * Argument : 01.obj : Object Event has occurred
  318. * : 02.e : Event Object
  319. * Description : 엑셀저장버튼 클릭시
  320. ****************************************************************************************/
  321. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  322. {
  323. grdf_exportExcel(datagrid2, "excel", "SheetName", false, "", "user", false);
  324. }
  325. /****************************************************************************************
  326. * Components : Button
  327. * Components ID : btn_prt
  328. * Event : onclick
  329. * Argument : 01.obj : Object Event has occurred
  330. * : 02.e : Event Object
  331. * Description : 출력버튼 클릭시
  332. ****************************************************************************************/
  333. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  334. {
  335. ds_main_export.setColumn(0, "srchfromdd" , ds_send.getColumn(0, "srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  336. ds_main_export.setColumn(0, "srchtodd" , ds_send.getColumn(0, "srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  337. var objDOM = rptf_createDOM(); // DOM 객체 설정
  338. rptf_setNodeListToDOM(objDOM, "/root/main/item2", ds_main_item2); // 데이터셋 1
  339. rptf_setNodeListToDOM(objDOM, "/root/main/item3", ds_main_item3); // 데이터셋 1
  340. var objParam = new Object();
  341. objParam.srchfromdd = ds_main_export.getColumn(0, "srchfromdd"); // 최상의노드 XML 스트링 추출
  342. objParam.srchtodd = ds_main_export.getColumn(0, "srchtodd"); // 최상의노드 XML 스트링 추출
  343. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  344. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  345. rptf_exeReportPreview30(["RPAHS02201"],[objParam], option);
  346. }
  347. ]]></Script>
  348. </Form>
  349. </FDL>