SMAHS02500_패키지별건진현황.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS02500" position="absolute 0 0 1211 784" titletext="패키지별검진현황" oninit="SMAHS02500_oninit" onload="SMAHS02500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 1209 61" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="건진일자 :" position="absolute 5 9 82 26" id="caption2" class="search_name" anchor="left top"/>
  11. <Shape position="absolute 1129 7 1135 29" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  12. <Button position="absolute 1139 7 1195 29" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  13. <Combo position="absolute 435 8 585 27" id="cmb_healexamdetlflag" class="combo_search" innerdataset="@ds_init_base_healexamdetlflag_item" datacolumn="cdnm" codecolumn="cdid" anchor="left top" index="-1" autoselect="true" autoskip="true"/>
  14. <Static text="건진구분 :" position="absolute 354 9 427 26" id="caption3" class="search_name" anchor="left top"/>
  15. <Calendar position="absolute 219 8 340 27" id="ipt_todd" class="input_search" taborder="7" anchor="left top" autoselect="true" autoskip="true"/>
  16. <Calendar position="absolute 81 8 202 27" id="ipt_fromdd" class="input_search" taborder="7" anchor="left top" autoselect="true" autoskip="true"/>
  17. <Static id="caption1" position="absolute 207 11 220 28" text="~" anchor="left top"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Grid position="absolute 1 88 527 779" id="grd_pkgspeclst" binddataset="ds_main_pkgspeclst_item" anchor="left top bottom" autofittype="col" cellsizingtype="col" oncelldblclick="grd_pkgspeclst_oncelldblclick">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="100"/>
  26. <Column size="260"/>
  27. <Column size="50"/>
  28. <Column size="100"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell text="건진구분"/>
  41. <Cell col="1" text="검진명"/>
  42. <Cell col="2" text="건수"/>
  43. <Cell col="3" text="금액"/>
  44. <Cell col="4" text="pkgcd"/>
  45. <Cell col="5" text="healexamflag"/>
  46. <Cell col="6" text="healexamdetlflag"/>
  47. <Cell col="7" text="fromdd"/>
  48. <Cell col="8" text="todd"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell style="align:left middle;" text="bind:healexamflagnm"/>
  52. <Cell col="1" style="align:left middle;" text="bind:pkgnm"/>
  53. <Cell col="2" style="align:left middle;" text="bind:pkgcnt"/>
  54. <Cell col="3" style="align:left middle;" text="bind:pkgamt"/>
  55. <Cell col="4" text="bind:pkgcd"/>
  56. <Cell col="5" text="bind:healexamflag"/>
  57. <Cell col="6" text="bind:healexamdetlflag"/>
  58. <Cell col="7" text="bind:fromdd"/>
  59. <Cell col="8" text="bind:todd"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Grid position="absolute 534 88 1207 779" id="grd_pkgdetllst" binddataset="ds_main_pkgdetllst_item" anchor="all" autofittype="col" cellsizingtype="col">
  65. <Formats>
  66. <Format id="default">
  67. <Columns>
  68. <Column size="25"/>
  69. <Column size="100"/>
  70. <Column size="100"/>
  71. <Column size="60"/>
  72. <Column size="270"/>
  73. <Column size="100"/>
  74. </Columns>
  75. <Rows>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell/>
  81. <Cell col="1" text="등록번호"/>
  82. <Cell col="2" text="성명"/>
  83. <Cell col="3" text="성별"/>
  84. <Cell col="4" text="거래처명"/>
  85. <Cell col="5" text="건진일"/>
  86. </Band>
  87. <Band id="body">
  88. <Cell celltype="head" text="expr:currow + 1"/>
  89. <Cell col="1" style="align:left middle;" text="bind:pid"/>
  90. <Cell col="2" style="align:left middle;" text="bind:hngnm"/>
  91. <Cell col="3" text="bind:sex"/>
  92. <Cell col="4" style="align:left middle;" text="bind:pkgnm"/>
  93. <Cell col="5" displaytype="date" edittype="date" text="bind:hopedd" mask="yyyy-MM-dd"/>
  94. </Band>
  95. </Format>
  96. </Formats>
  97. </Grid>
  98. <Button position="absolute 450 63 527 82" id="btn_excsave" class="btn7" text="엑셀저장" anchor="left top" onclick="btn_excsave_onclick"/>
  99. <Shape position="absolute 0 83 527 89" linetype="horizontal" id="line1" class="line_10" anchor="left top"/>
  100. <Button position="absolute 1130 63 1207 82" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="button1_onclick"/>
  101. <Shape position="absolute 534 83 1207 89" linetype="horizontal" id="line3" class="line_10" anchor="left top right"/>
  102. <Static id="caption60" text="패키지별검진현황" class="tit_1" position="absolute 0 0 151 25" anchor="left top"/>
  103. </Layout>
  104. </Layouts>
  105. <Objects>
  106. <Dataset id="ds_init_base_healexamdetlflag_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="cdnm" type="STRING"/>
  109. <Column id="cdid" type="STRING"/>
  110. </ColumnInfo>
  111. </Dataset>
  112. <Dataset id="ds_main_pkgspeclst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="healexamflagnm" type="STRING"/>
  115. <Column id="pkgnm" type="STRING"/>
  116. <Column id="pkgcnt" type="STRING"/>
  117. <Column id="pkgamt" type="STRING"/>
  118. <Column id="pkgcd" type="STRING"/>
  119. <Column id="healexamflag" type="STRING"/>
  120. <Column id="healexamdetlflag" type="STRING"/>
  121. <Column id="fromdd" type="STRING"/>
  122. <Column id="todd" type="STRING"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. <Dataset id="ds_main_pkgdetllst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="pid" type="STRING"/>
  128. <Column id="hngnm" type="STRING"/>
  129. <Column id="sex" type="STRING"/>
  130. <Column id="pkgnm" type="STRING"/>
  131. <Column id="hopedd" type="STRING"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="srchfromdd" type="STRING" size="256"/>
  137. <Column id="srchtodd" type="STRING" size="256"/>
  138. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row/>
  142. </Rows>
  143. </Dataset>
  144. <Dataset id="ds_init_codeinfo_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="cdid" type="STRING" size="256"/>
  147. <Column id="cdnm" type="STRING" size="256"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row/>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_init_codeinfo_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="cdid" type="STRING" size="256"/>
  156. <Column id="cdnm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row/>
  160. </Rows>
  161. </Dataset>
  162. <Dataset id="ds_init_codeinfo_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="cdid" type="STRING" size="256"/>
  165. <Column id="cdnm" type="STRING" size="256"/>
  166. </ColumnInfo>
  167. <Rows>
  168. <Row/>
  169. </Rows>
  170. </Dataset>
  171. <Dataset id="ds_send_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  174. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  175. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  176. <Column id="fromdd" type="STRING" size="256" sumtext="조회시작일자"/>
  177. <Column id="todd" type="STRING" size="256" sumtext="조회종료일자"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row/>
  181. </Rows>
  182. </Dataset>
  183. </Objects>
  184. <Bind>
  185. <BindItem id="item0" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  186. <BindItem id="item1" compid="group2.ipt_todd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  187. <BindItem id="item2" compid="group2.cmb_healexamdetlflag" propid="value" datasetid="ds_send" columnid="srchhealexamdetlflag"/>
  188. </Bind>
  189. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  190. * System Name :
  191. * Job Name :
  192. * Creator :
  193. * Make Date : 2015-11-13
  194. * Description :
  195. *---------------------------------------------------------------------------------------
  196. * Modify Date Modifier Modify Description
  197. *---------------------------------------------------------------------------------------
  198. * 2015-11-13 Live Converter TF->XP
  199. *
  200. *---------------------------------------------------------------------------------------
  201. ****************************************************************************************/
  202. include "com_commonxp::comm_main.xjs";
  203. include "com_basiccodexp::ZBC001.xjs";
  204. include "com_zipcodexp::ZBP001.xjs";
  205. function SMAHS02500_oninit(obj:Form, e:InitEventInfo)
  206. {
  207. frmf_initForm(obj);
  208. }
  209. function SMAHS02500_onload(obj:Form, e:LoadEventInfo)
  210. {
  211. ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
  212. ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate());
  213. // 공통코드 조회
  214. var arrParam = [ {dsNm: "ds_init_codeinfo_A0068", cdGrpId: "A0068"}
  215. ,{dsNm: "ds_init_codeinfo_A0069", cdGrpId: "A0069"}
  216. ,{dsNm: "ds_init_codeinfo_A0070", cdGrpId: "A0070"}];
  217. zbcfGetCodeList(arrParam);
  218. ds_init_base_healexamdetlflag_item.copyData(ds_init_codeinfo_A0070);
  219. ds_init_base_healexamdetlflag_item.insertRow(0);
  220. ds_init_base_healexamdetlflag_item.setColumn(0, "cdid", "");
  221. ds_init_base_healexamdetlflag_item.setColumn(0, "cdnm", "-전 체-");
  222. ds_send.setColumn(0, "srchhealexamdetlflag", "");
  223. }
  224. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. var oParam = {};
  227. oParam.id = "TRAHS02501";
  228. oParam.service = "healexamstatapp.StatRef";
  229. oParam.method = "reqGetPkgSpecList";
  230. oParam.inds = "req=ds_send";
  231. oParam.outds = "ds_main_pkgspeclst_item=item";
  232. oParam.async = false;
  233. //oParam.callback = "cf_TRAHS02501";
  234. tranf_submit(oParam);
  235. }
  236. function grd_pkgspeclst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  237. {
  238. if(ds_main_pkgspeclst_item.rowposition > 0)
  239. {
  240. ds_send_detl.setColumn(0, "healexamflag", ds_main_pkgspeclst_item.getColumn(ds_main_pkgspeclst_item.rowposition, "healexamflag"));
  241. ds_send_detl.setColumn(0, "healexamdetlflag", ds_main_pkgspeclst_item.getColumn(ds_main_pkgspeclst_item.rowposition, "healexamdetlflag"));
  242. ds_send_detl.setColumn(0, "pkgcd", ds_main_pkgspeclst_item.getColumn(ds_main_pkgspeclst_item.rowposition, "pkgcd"));
  243. ds_send_detl.setColumn(0, "fromdd", ds_main_pkgspeclst_item.getColumn(ds_main_pkgspeclst_item.rowposition, "fromdd"));
  244. ds_send_detl.setColumn(0, "todd", ds_main_pkgspeclst_item.getColumn(ds_main_pkgspeclst_item.rowposition, "todd"));
  245. var oParam = {};
  246. oParam.id = "TRAHS02502";
  247. oParam.service = "healexamstatapp.StatRef";
  248. oParam.method = "reqGetPkgSpecDetlList";
  249. oParam.inds = "req=ds_send_detl";
  250. oParam.outds = "ds_main_pkgdetllst_item=item";
  251. oParam.async = false;
  252. //oParam.callback = "cf_TRAHS02502";
  253. tranf_submit(oParam);
  254. }
  255. }
  256. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  257. {
  258. grdf_exportExcel(grd_pkgspeclst, "Excel", "sheet1", false);
  259. }
  260. function button1_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. grdf_exportExcel(grd_pkgdetllst, "Excel", "sheet1", false);
  263. }
  264. ]]></Script>
  265. </Form>
  266. </FDL>