SPSTP02400_외국인예수금통계.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPSTP02400" position="absolute 0 0 1196 750" titletext="외국인예수금 조" onload="SPSTP02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 1093 67 1143 89" id="btn_print1" class="btn6" taborder="26" visible="false" text="출력" onclick="btn_print1_onclick" anchor="top right"/>
  8. <Button position="absolute 1145 67 1195 89" id="btn_excel" class="btn7" taborder="30" text="엑셀" anchor="top right" onclick="btn_excel_onclick"/>
  9. <Static text="외국인예수금 조회" position="absolute 0 0 160 25" align="align:center middle;" id="caption60" class="tit_1"/>
  10. <Static text="수익 내역" position="absolute 0 73 90 89" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 0 90 1195 94" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  12. <Grid position="absolute 0 94 1195 749" id="grd_holdlist" binddataset="ds_main_holdlist" oncelldblclick="grd_ordearn_oncelldblclick" cellsizingtype="both" cellsizebandtype="allband" anchor="all">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25" band="left"/>
  17. <Column size="0"/>
  18. <Column size="100"/>
  19. <Column size="80"/>
  20. <Column size="100"/>
  21. <Column size="0"/>
  22. <Column size="150"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="150"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. <Row size="24" band="summ"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell/>
  34. <Cell col="1" text="기관"/>
  35. <Cell col="2" text="수익일자"/>
  36. <Cell col="3" text="등록번호"/>
  37. <Cell col="4" text="성명"/>
  38. <Cell col="5"/>
  39. <Cell col="6" text="진료과"/>
  40. <Cell col="7" text="보조유형"/>
  41. <Cell col="8" text="입원/외래 구분"/>
  42. <Cell col="9" text="예수금"/>
  43. </Band>
  44. <Band id="body">
  45. <Cell celltype="head" text="expr:currow+1"/>
  46. <Cell col="1" displaytype="combo" text="bind:instcd" combodataset="ds_cmb_instcd" combocodecol="cdid" combodatacol="cdnm"/>
  47. <Cell col="2" displaytype="date" text="bind:earnenddd"/>
  48. <Cell col="3" text="bind:pid"/>
  49. <Cell col="4" displaytype="text" text="bind:hngnm" treestartlevel="1"/>
  50. <Cell col="5"/>
  51. <Cell col="6" displaytype="text" text="bind:deptname"/>
  52. <Cell col="7" displaytype="text" text="bind:suppkindnm"/>
  53. <Cell col="8" displaytype="combo" text="bind:brateflag" combodataset="ds_cmb_brateflag" combocodecol="cdid" combodatacol="cdnm"/>
  54. <Cell col="9" displaytype="number" text="bind:payamt"/>
  55. </Band>
  56. <Band id="summary">
  57. <Cell/>
  58. <Cell col="1" style="font:Dotum,9,bold;" text="합계"/>
  59. <Cell col="2"/>
  60. <Cell col="3"/>
  61. <Cell col="4"/>
  62. <Cell col="5"/>
  63. <Cell col="6"/>
  64. <Cell col="7"/>
  65. <Cell col="8"/>
  66. <Cell col="9" displaytype="number" style="font:Dotum,9,bold;" text="expr:getSum('payamt')"/>
  67. </Band>
  68. </Format>
  69. <Format id="default2">
  70. <Columns>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="100"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="100"/>
  78. <Column size="100"/>
  79. <Column size="100"/>
  80. <Column size="100"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. <Column size="100"/>
  84. </Columns>
  85. <Rows>
  86. <Row size="24" band="head"/>
  87. <Row size="24" band="head"/>
  88. <Row size="24"/>
  89. </Rows>
  90. <Band id="head">
  91. <Cell text="lvl"/>
  92. <Cell col="1" text="cdid"/>
  93. <Cell col="2" text="gubunnm"/>
  94. <Cell col="3" rowspan="2" text="계정명" taborder="undefined"/>
  95. <Cell col="4" text="deptcd"/>
  96. <Cell col="5" text="deptnm"/>
  97. <Cell col="6" colspan="3" text="본인부담금" taborder="undefined"/>
  98. <Cell col="9" colspan="3" text="공단부담금" taborder="undefined"/>
  99. <Cell col="12" rowspan="2" text="계정합계" taborder="undefined"/>
  100. <Cell row="1" text="lvl"/>
  101. <Cell row="1" col="1" text="cdid"/>
  102. <Cell row="1" col="2" text="gubunnm"/>
  103. <Cell row="1" col="4" text="deptcd"/>
  104. <Cell row="1" col="5" text="deptnm"/>
  105. <Cell row="1" col="6" text="입원"/>
  106. <Cell row="1" col="7" text="외래"/>
  107. <Cell row="1" col="8" text="합계"/>
  108. <Cell row="1" col="9" text="입원"/>
  109. <Cell row="1" col="10" text="외래"/>
  110. <Cell row="1" col="11" text="합계"/>
  111. </Band>
  112. <Band id="body">
  113. <Cell text="bind:lvl"/>
  114. <Cell col="1" text="bind:cdid"/>
  115. <Cell col="2" text="bind:gubunnm"/>
  116. <Cell col="3" displaytype="tree" edittype="tree" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:cdnm" treestartlevel="1" treelevel="bind:lvl"/>
  117. <Cell col="4" style="background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:deptcd"/>
  118. <Cell col="5" style="background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:deptnm"/>
  119. <Cell col="6" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:own_inamt"/>
  120. <Cell col="7" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:own_outamt"/>
  121. <Cell col="8" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:own_totamt"/>
  122. <Cell col="9" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:insu_inamt"/>
  123. <Cell col="10" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:insu_outamt"/>
  124. <Cell col="11" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:BIND(font);" text="bind:insu_totamt"/>
  125. <Cell col="12" style="align:right middle;background:BIND(bgColor);background2:BIND(bgColor);font:Dotum,9,bold;" text="bind:totamtall"/>
  126. </Band>
  127. </Format>
  128. </Formats>
  129. </Grid>
  130. <Div id="grp_srch" taborder="31" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
  131. <Layouts>
  132. <Layout width="1195" height="41">
  133. <Shape id="line13" linetype="vertical" position="absolute 1108 7 1114 34" anchor="top right"/>
  134. <Static id="caption21" text="조회기간" class="search_name" position="absolute 15 12 85 29" anchor="default"/>
  135. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1125 10 1181 32" anchor="top right" onclick="grp_srch_btn_search_onclick"/>
  136. <Static id="caption6" text="~" position="absolute 194 13 204 28" anchor="default"/>
  137. <Calendar id="ipt_fromdd" taborder="2" class="input_search" position="absolute 92 11 187 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  138. <Calendar id="ipt_todd" taborder="3" class="input_search" position="absolute 211 11 306 30" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  139. </Layout>
  140. </Layouts>
  141. </Div>
  142. </Layout>
  143. </Layouts>
  144. <Objects>
  145. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="fromdd" type="STRING" size="256"/>
  148. <Column id="todd" type="STRING" size="256"/>
  149. <Column id="srchflag" type="STRING" size="256"/>
  150. <Column id="deptyn" type="STRING" size="256"/>
  151. <Column id="gubun" type="STRING" size="256"/>
  152. <Column id="deptcd" type="STRING" size="256"/>
  153. <Column id="dayflag" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="fromdd"/>
  158. <Col id="todd"/>
  159. <Col id="srchflag"/>
  160. <Col id="deptyn"/>
  161. <Col id="gubun"/>
  162. <Col id="deptcd"/>
  163. <Col id="dayflag"/>
  164. </Row>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_main_holdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="instcd" type="STRING" size="256"/>
  170. <Column id="earnenddd" type="STRING" size="256"/>
  171. <Column id="pid" type="STRING" size="256"/>
  172. <Column id="hngnm" type="STRING" size="256"/>
  173. <Column id="deptname" type="STRING" size="256"/>
  174. <Column id="suppkindnm" type="STRING" size="256"/>
  175. <Column id="brateflag" type="STRING" size="256"/>
  176. <Column id="payamt" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. <Dataset id="ds_cmb_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="cdid" type="STRING" size="256"/>
  182. <Column id="cdnm" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="cdid">031</Col>
  187. <Col id="cdnm">경북대학교병원</Col>
  188. </Row>
  189. <Row>
  190. <Col id="cdid">032</Col>
  191. <Col id="cdnm">칠곡 경북대학교병원</Col>
  192. </Row>
  193. <Row>
  194. <Col id="cdid">033</Col>
  195. <Col id="cdnm">경북대학교 치과병원</Col>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_cmb_brateflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="cdid" type="STRING" size="256"/>
  202. <Column id="cdnm" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="cdid">I</Col>
  207. <Col id="cdnm">입원</Col>
  208. </Row>
  209. <Row>
  210. <Col id="cdid">O</Col>
  211. <Col id="cdnm">외래</Col>
  212. </Row>
  213. </Rows>
  214. </Dataset>
  215. </Objects>
  216. <Bind>
  217. <BindItem id="item0" compid="grp_srch.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  218. <BindItem id="item1" compid="grp_srch.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  219. </Bind>
  220. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  221. * System Name :
  222. * Job Name :
  223. * Creator :
  224. * Make Date : 2018-10-24
  225. * Description :
  226. *---------------------------------------------------------------------------------------
  227. * Modify Date Modifier Modify Description
  228. *---------------------------------------------------------------------------------------
  229. ****************************************************************************************/
  230. //=======================================================================================
  231. // Lib Include
  232. //---------------------------------------------------------------------------------------
  233. include "com_commonxp::comm_main.xjs";
  234. //=======================================================================================
  235. // Global Form Variable
  236. //---------------------------------------------------------------------------------------
  237. var arErrorCode = new HashArray();
  238. //=======================================================================================
  239. // Function
  240. //---------------------------------------------------------------------------------------
  241. /*-**************************************************************************************
  242. * Argument : N/A
  243. * Description : 화면 로드시 초기화 함수
  244. ****************************************************************************************/
  245. //=======================================================================================
  246. // Event
  247. //---------------------------------------------------------------------------------------
  248. /****************************************************************************************
  249. * Components : Form
  250. * Description : 화면 처음 초기화시 폼초기화
  251. ****************************************************************************************/
  252. function SPSTP02400_onload(obj:Form, e:LoadEventInfo)
  253. {
  254. // 폼 초기화
  255. frmf_initForm(obj);
  256. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  257. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  258. }
  259. /****************************************************************************************
  260. * Components : Button
  261. * Description : 조회
  262. ****************************************************************************************/
  263. function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. if(utlf_diffMonth(ds_send.getColumn(0, "fromdd"), ds_send.getColumn(0, "todd")) > 2) {
  266. sysf_messageBox("최대 3개월까지만 조회가능합니다.","I");
  267. grp_srch.ipt_fromdd.setFocus();
  268. return;
  269. }
  270. ds_main_holdlist.clearData();
  271. var oParam = {};
  272. oParam.id = "TRSTP02400";
  273. oParam.service = "stspamapp.StsPam";
  274. oParam.method = "reqGetForignHoldList";
  275. oParam.inds = "req=ds_send";
  276. oParam.outds = "ds_main_holdlist=list";
  277. oParam.async = false;
  278. //oParam.callback = "cf_TRSTP02400";
  279. tranf_submit(oParam);
  280. }
  281. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  282. {
  283. if( ds_main_holdlist.rowcount > 0 ){
  284. grdf_exportExcel(grd_holdlist, "Excel", "Sheet1", false, "", "user", false);
  285. } else {
  286. sysf_messageBox("조회된 데이터가 ", "I004");
  287. }
  288. }
  289. ]]></Script>
  290. </Form>
  291. </FDL>