SMSDT06400_사회사업자선진료대장.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT06400" position="absolute 0 0 1199 800" titletext="사회사업 자선진료대장" oninit="SMSDT06400_oninit" onload="SMSDT06400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사회사업 자선진료대장" class="tit_1" position="absolute 0 0 224 25"/>
  8. <Static id="caption21" text="사회사업 자선진료대장" class="tit_2" position="absolute 0 84 195 106"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 98 1195 109" anchor="left top right"/>
  10. <Div id="group4" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 240 12 340 29"/>
  14. <Calendar id="ipt_todd" taborder="3" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_search" visible="false" position="absolute 446 10 519 29" mask="yyyy-mm" onchanged="group4_ipt_todd_onchanged"/>
  15. <Calendar id="ipt_fromdd" taborder="4" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_search" position="absolute 332 10 405 29" mask="yyyy-mm" onchanged="group4_ipt_fromdd_onchanged"/>
  16. <Static id="caption2" text="조회년도:" class="search_name" visible="false" position="absolute 239 12 339 29"/>
  17. <Calendar id="ipt_toentryy" taborder="5" dateformat="yyyy" editformat="yyyy" class="input_search" visible="false" position="absolute 446 10 504 29" mask="yyyy" autoselect="true" onchanged="group4_ipt_toentryy_onchanged"/>
  18. <Calendar id="ipt_fromentryy" taborder="6" dateformat="yyyy" editformat="yyyy" class="input_search" visible="false" position="absolute 332 10 390 29" mask="yyyy" autoselect="true" onchanged="group4_ipt_fromentryy_onchanged"/>
  19. <Button id="button2" taborder="7" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="group4_button2_onclick"/>
  20. <Shape id="line2" linetype="vertical" position="absolute 1110 10 1116 32" anchor="top right"/>
  21. <Static id="cap1" text="~" visible="false" position="absolute 415 10 440 30"/>
  22. <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 11 101 28"/>
  23. <Combo id="cmb_sumflag" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 10 195 29" onitemchanged="group4_cmb_sumflag_onitemchanged">
  24. <Dataset id="innerdataset">
  25. <ColumnInfo>
  26. <Column id="codecolumn"/>
  27. <Column id="datacolumn"/>
  28. </ColumnInfo>
  29. <Rows>
  30. <Row>
  31. <Col id="codecolumn">1</Col>
  32. <Col id="datacolumn">월별</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">2</Col>
  36. <Col id="datacolumn">년도별</Col>
  37. </Row>
  38. </Rows>
  39. </Dataset>
  40. </Combo>
  41. </Layout>
  42. </Layouts>
  43. </Div>
  44. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 81 1195 100" anchor="top right" onclick="btn_excel_onclick"/>
  45. <Grid id="grd_list" class="datagrid1" taborder="4" binddataset="ds_main_chacinfo_chaclist" useinputpanel="false" position="absolute 0 105 1195 769" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="44"/>
  50. <Column size="195"/>
  51. <Column size="80"/>
  52. <Column size="80"/>
  53. <Column size="100"/>
  54. <Column size="100"/>
  55. <Column size="80"/>
  56. <Column size="80"/>
  57. <Column size="80"/>
  58. <Column size="89"/>
  59. <Column size="88"/>
  60. <Column size="80"/>
  61. <Column size="80"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="24" band="head"/>
  65. <Row size="24" band="head"/>
  66. <Row size="24" band="head"/>
  67. <Row size="58"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell rowspan="3" colspan="2" text="구분" taborder="undefined"/>
  71. <Cell col="2" colspan="2" text="사회사업 자선환자" taborder="undefined"/>
  72. <Cell col="4" colspan="7" text="사회사업 자선진료비" taborder="undefined"/>
  73. <Cell col="11" rowspan="3" text="총액대비&#10;보조액" taborder="undefined"/>
  74. <Cell col="12" rowspan="3" text="환자부담액&#10;대비보조율" taborder="undefined"/>
  75. <Cell row="1" col="2" rowspan="2" text="실인원" taborder="undefined"/>
  76. <Cell row="1" col="3" rowspan="2" text="연인원" taborder="undefined"/>
  77. <Cell row="1" col="4" rowspan="2" text="총액" taborder="undefined"/>
  78. <Cell row="1" col="5" colspan="4" text="납부액" taborder="undefined"/>
  79. <Cell row="1" col="9" rowspan="2" text="보조액" taborder="undefined"/>
  80. <Cell row="1" col="10" rowspan="2" text="감면액" taborder="undefined"/>
  81. <Cell row="2" col="5" text="공단청구액"/>
  82. <Cell row="2" col="6" text="외부후원액"/>
  83. <Cell row="2" col="7" text="본인납부액"/>
  84. <Cell row="2" col="8" text="총납부액"/>
  85. </Band>
  86. <Band id="body">
  87. <Cell colspan="2" text="bind:ordflagnm" taborder="undefined"/>
  88. <Cell col="2" displaytype="number" style="align:center middle;" text="bind:orgpatcnt"/>
  89. <Cell col="3" displaytype="number" style="align:center middle;" text="bind:yearpatcnt"/>
  90. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:totamt"/>
  91. <Cell col="5" displaytype="number" style="align:center middle;" text="bind:totinsubamt"/>
  92. <Cell col="6" displaytype="number" style="align:center middle;" text="bind:outeraidamt"/>
  93. <Cell col="7" displaytype="number" style="align:center middle;" text="bind:rcptamt"/>
  94. <Cell col="8" displaytype="number" style="align:center middle;" text="bind:totownbamt"/>
  95. <Cell col="9" displaytype="number" style="align:center middle;" text="bind:suppamt"/>
  96. <Cell col="10" displaytype="number" style="align:center middle;" text="bind:aidsuppamt"/>
  97. <Cell col="11" style="align:center middle;" text="bind:supprate"/>
  98. <Cell col="12" displaytype="number" style="align:center middle;" text="bind:ownsupprate"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 774 1195 796" anchor="right bottom" onclick="btn_search0_onclick"/>
  104. <Shape id="line37" class="line_6" position="absolute 0 769 1195 775" anchor="left right bottom"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="fromdd" type="STRING" size="256"/>
  111. <Column id="todd" type="STRING" size="256"/>
  112. <Column id="fromentryy" type="STRING" size="256"/>
  113. <Column id="fromendyy" type="STRING" size="256"/>
  114. <Column id="toendyy" type="STRING" size="256"/>
  115. <Column id="toentryy" type="STRING" size="256"/>
  116. <Column id="flag" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="fromdd"/>
  121. <Col id="todd"/>
  122. <Col id="fromentryy"/>
  123. <Col id="fromendyy"/>
  124. <Col id="toendyy"/>
  125. <Col id="toentryy"/>
  126. <Col id="flag">2</Col>
  127. </Row>
  128. </Rows>
  129. </Dataset>
  130. <Dataset id="ds_main_chacinfo_chaclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="ordflagnm" type="STRING" size="256" sumtext="입원외래"/>
  133. <Column id="discunconm" type="STRING" size="256" sumtext="자선진료코드명"/>
  134. <Column id="orgpatcnt" type="INT" size="256" sumtext="실인원수"/>
  135. <Column id="yearpatcnt" type="INT" size="256" sumtext="연인원수"/>
  136. <Column id="totamt" type="LOGN" size="256" sumtext="총액"/>
  137. <Column id="totinsubamt" type="LOGN" size="256" sumtext="공단청구액"/>
  138. <Column id="outeraidamt" type="LOGN" size="256" sumtext="외부후원액"/>
  139. <Column id="rcptamt" type="LOGN" size="256" sumtext="본인납부액"/>
  140. <Column id="totownbamt" type="LOGN" size="256" sumtext="총납부액"/>
  141. <Column id="suppamt" type="LOGN" size="256" sumtext="보조액"/>
  142. <Column id="aidsuppamt" type="LOGN" size="256" sumtext="후원보조액"/>
  143. <Column id="supprate" type="BIGDECIMAL" size="256" sumtext="총액대비보조율"/>
  144. <Column id="ownsupprate" type="BIGDECIMAL" size="256" sumtext="환자부담액대비보조율"/>
  145. </ColumnInfo>
  146. </Dataset>
  147. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  148. </Objects>
  149. <Bind>
  150. <BindItem id="item0" compid="group4.cmb_sumflag" propid="value" datasetid="ds_main_search" columnid="flag"/>
  151. <BindItem id="item1" compid="group4.ipt_fromentryy" propid="value" datasetid="ds_main_search" columnid="fromentryy"/>
  152. <BindItem id="item2" compid="group4.ipt_toentryy" propid="value" datasetid="ds_main_search" columnid=""/>
  153. <BindItem id="item3" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_search" columnid="fromdd"/>
  154. <BindItem id="item4" compid="group4.ipt_todd" propid="value" datasetid="ds_main_search" columnid="todd"/>
  155. </Bind>
  156. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  157. * System Name :
  158. * Job Name :
  159. * Creator :
  160. * Make Date : 2016-05-24
  161. * Description :
  162. *---------------------------------------------------------------------------------------
  163. * Modify Date Modifier Modify Description
  164. *---------------------------------------------------------------------------------------
  165. * 2016-05-24 Live Converter TF->XP
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. include "com_commonxp::comm_main.xjs";
  170. function SMSDT06400_oninit(obj:Form, e:InitEventInfo)
  171. {
  172. frmf_initForm(obj);
  173. }
  174. function SMSDT06400_onload(obj:Form, e:LoadEventInfo)
  175. {
  176. grdf_initGrid(grd_list);
  177. fInit();
  178. }
  179. function fInit()
  180. {
  181. ds_main_chacinfo_chaclist.clearData();
  182. group4.cmb_sumflag.index = 0;
  183. var currentDate = utlf_getCurrentDate();
  184. var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
  185. var LastDateYM = String(LastDate).substr(0,6);
  186. var CurrentDateYY = String(currentDate).substring(0,4);
  187. ds_main_search.setColumn(0, "fromdd" ,LastDateYM );
  188. ds_main_search.setColumn(0, "fromentryy" ,CurrentDateYY );
  189. }
  190. function group4_cmb_sumflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  191. {
  192. if(obj.value == "1")
  193. {
  194. group4.ipt_fromdd.visible = true;
  195. group4.ipt_fromentryy.visible = false;
  196. group4.caption1.visible = true;
  197. group4.caption2.visible = false;
  198. }
  199. else
  200. {
  201. group4.ipt_fromdd.visible = false;
  202. group4.ipt_fromentryy.visible = true;
  203. group4.caption1.visible = false;
  204. group4.caption2.visible = true;
  205. }
  206. }
  207. function group4_ipt_fromentryy_onchanged(obj:Calendar, e:ChangeEventInfo)
  208. {
  209. ds_main_search.setColumn(0, "fromentryy", String(obj.value).substr(0,4));
  210. }
  211. function group4_ipt_toentryy_onchanged(obj:Calendar, e:ChangeEventInfo)
  212. {
  213. ds_main_search.setColumn(0, "toentryy", String(obj.value).substr(0,4));
  214. }
  215. function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  216. {
  217. ds_main_search.setColumn(0, "fromdd", String(obj.value).substr(0,6));
  218. }
  219. function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  220. {
  221. ds_main_search.setColumn(0, "todd", String(obj.value).substr(0,6));
  222. }
  223. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. fSearch();
  226. }
  227. function fSearch()
  228. {
  229. if (group4.cmb_sumflag.value == "1")
  230. {
  231. var fromdd = ds_main_search.getColumn(0, "fromdd");
  232. if(utlf_isNull(fromdd))
  233. {
  234. sysf_messageBox("조회기간은","I003");
  235. group4.ipt_fromdd.setFocus();
  236. return;
  237. }
  238. }
  239. else
  240. {
  241. var fromdd = ds_main_search.getColumn(0, "fromentryy");
  242. if(utlf_isNull(fromdd))
  243. {
  244. sysf_messageBox("조회년도는","I003");
  245. group4.ipt_fromentryy.setFocus();
  246. return;
  247. }
  248. }
  249. var flag = ds_main_search.getColumn(0, "flag");
  250. ds_send_search.clearData();
  251. dsf_makeValue(ds_send_search, "fromdd", "string", fromdd);
  252. dsf_makeValue(ds_send_search, "todd", "string", "");
  253. dsf_makeValue(ds_send_search, "flag", "string", flag);
  254. var oParam = {};
  255. oParam.id = "TRSDT06401";
  256. oParam.service = "stscmcnwapp.SoclEndStats";
  257. oParam.method = "reqGetCharityRegister";
  258. oParam.inds = "req=ds_send_search";
  259. oParam.outds = "ds_main_chacinfo_chaclist=chaclist";
  260. oParam.async = false;
  261. //oParam.callback = "cf_TRSDT06401";
  262. tranf_submit(oParam);
  263. }
  264. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  265. {
  266. fExcel();
  267. }
  268. function fExcel()
  269. {
  270. if (ds_main_chacinfo_chaclist.rowcount == 0)
  271. {
  272. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  273. return;
  274. }
  275. grdf_exportExcel(grd_list, "사회사업 자선진료대장", "SheetName", "true", "", "");
  276. }
  277. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  278. {
  279. fInit();
  280. }
  281. ]]></Script>
  282. </Form>
  283. </FDL>