SMSDT15000_진료의뢰회송 실적통계.xfdl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT15000" position="absolute 0 0 1199 793" titletext="진료의뢰회송 실적 통계" oninit="SMSDT15000_oninit" onload="SMSDT15000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="진료의뢰회송 실적통계" class="tit_1" position="absolute 0 0 200 24"/>
  8. <Div id="div_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 24 1195 64">
  9. <Layouts>
  10. <Layout>
  11. <cp_monthCal id="ipt_searchym" titletext="monthCalendar" taborder="19" text="cp_monthCal" scrollbars="none" position="absolute 80 10 160 30" anchor="default"/>
  12. <Button id="btn_search" taborder="20" text="조회" class="btn1" position="absolute 1125 9 1181 31" anchor="top right" onclick="div_search_btn_search_onclick"/>
  13. <Shape id="line2" linetype="vertical" position="absolute 1112 9 1118 31" anchor="top right"/>
  14. <Static id="caption2" text="조회년월" class="search_name" position="absolute 9 5 77 35" anchor="default"/>
  15. <Combo id="cmb_instcd" taborder="21" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 271 11 371 30" index="0" value="999" text="- 전체 -">
  16. <Dataset id="innerdataset">
  17. <ColumnInfo>
  18. <Column id="codecolumn" size="256"/>
  19. <Column id="datacolumn" size="256"/>
  20. </ColumnInfo>
  21. <Rows>
  22. <Row>
  23. <Col id="codecolumn">999</Col>
  24. <Col id="datacolumn">- 전체 -</Col>
  25. </Row>
  26. <Row>
  27. <Col id="codecolumn">031</Col>
  28. <Col id="datacolumn">본원</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">032</Col>
  32. <Col id="datacolumn">칠곡</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Combo>
  37. <Static id="caption02" text="병원구분 :" class="search_name" position="absolute 184 12 263 29"/>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Shape id="line00" class="line_10" position="absolute 0 88 1195 97" anchor="left top right"/>
  42. <Grid id="grd_list" class="datagrid2" taborder="2" binddataset="ds_result" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 94 1195 750" anchor="all">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="0"/>
  47. <Column size="25"/>
  48. <Column size="100"/>
  49. <Column size="80"/>
  50. <Column size="130"/>
  51. <Column size="85"/>
  52. <Column size="90"/>
  53. <Column size="90"/>
  54. <Column size="90"/>
  55. <Column size="90"/>
  56. <Column size="90"/>
  57. <Column size="90"/>
  58. <Column size="100"/>
  59. <Column size="100"/>
  60. <Column size="100"/>
  61. </Columns>
  62. <Rows>
  63. <Row size="40" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell text="caption1"/>
  68. <Cell col="1" celltype="head" text="No."/>
  69. <Cell col="2" text="병원구분" taborder="undefined"/>
  70. <Cell col="3" text="진료년월"/>
  71. <Cell col="4" text="진료과"/>
  72. <Cell col="5" text="처방 의사사번"/>
  73. <Cell col="6" text="처방 의사명"/>
  74. <Cell col="7" text="총건수&#13;&#10;(A) = (B) + (C)"/>
  75. <Cell col="8" text="입원건수&#13;&#10;IA220 (B)"/>
  76. <Cell col="9" text="외래건수&#13;&#10;IA230 (C)"/>
  77. <Cell col="10" text="입원단가&#13;&#10;IA220 (D)"/>
  78. <Cell col="11" text="외래단가&#13;&#10;IA230 (E)"/>
  79. <Cell col="12" text="입원수익&#13;&#10;(F) = (B) * (D)"/>
  80. <Cell col="13" text="외래수익&#13;&#10;(G) = (C) * (E)"/>
  81. <Cell col="14" text="총수익&#13;&#10;(H) = (F) + (G)"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell text="bind:coophospcd"/>
  85. <Cell col="1" celltype="head" expr="currow + 1"/>
  86. <Cell col="2" style="align:center middle;padding:5 2 3 2;" text="bind:instnm" wordwrap="word"/>
  87. <Cell col="3" text="bind:yyyymmdd" mask="####.##"/>
  88. <Cell col="4" style="align:left middle;padding:0 0 0 10;" text="bind:deptnm" suppressalign="first"/>
  89. <Cell col="5" displaytype="text" style="align:center middle;" text="bind:orddrid"/>
  90. <Cell col="6" text="bind:orddrnm"/>
  91. <Cell col="7" displaytype="number" text="bind:totcnt"/>
  92. <Cell col="8" displaytype="number" text="bind:ia220cnt"/>
  93. <Cell col="9" displaytype="number" text="bind:ia230cnt"/>
  94. <Cell col="10" displaytype="number" text="bind:ia220price"/>
  95. <Cell col="11" displaytype="number" text="bind:ia230price"/>
  96. <Cell col="12" displaytype="number" text="bind:ia220amt"/>
  97. <Cell col="13" displaytype="number" text="bind:ia230amt"/>
  98. <Cell col="14" displaytype="number" text="bind:totamt"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Static id="caption00" text="진료의뢰회송 실적" class="tit_2" position="absolute 0 73 232 95"/>
  104. <Button id="btn_excel" taborder="3" text="엑셀저장" onclick="btn_excel_onclick" class="btn7" position="absolute 1115 68 1195 87" anchor="top right"/>
  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="endym" type="STRING" size="256"/>
  111. <Column id="instcd" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row/>
  115. </Rows>
  116. </Dataset>
  117. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  118. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  119. </Objects>
  120. <Bind>
  121. <BindItem id="item161" compid="div_search.cmb_instcd" propid="value" datasetid="ds_main_search" columnid="instcd"/>
  122. </Bind>
  123. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  124. * System Name :
  125. * Job Name :
  126. * Creator :
  127. * Make Date : 2020.02.03
  128. * Description :
  129. *---------------------------------------------------------------------------------------
  130. * Modify Date Modifier Modify Description
  131. *---------------------------------------------------------------------------------------
  132. *
  133. *---------------------------------------------------------------------------------------
  134. ****************************************************************************************/
  135. include "com_commonxp::comm_main.xjs";
  136. function SMSDT15000_oninit(obj:Form, e:InitEventInfo)
  137. {
  138. frmf_initForm(obj);
  139. }
  140. function SMSDT15000_onload(obj:Form, e:LoadEventInfo)
  141. {
  142. grdf_initGrid(grd_list);
  143. fInit();
  144. }
  145. function fn_Cal_endym()
  146. {
  147. var endym = div_search.ipt_searchym.getData();
  148. ds_main_search.setColumn(0, "endym", endym);
  149. }
  150. function fInit()
  151. {
  152. div_search.ipt_searchym.setCallEvent("fn_Cal_endym");
  153. div_search.cmb_instcd.index = 0;
  154. var CurrentDate = utlf_getCurrentDate();
  155. var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  156. var LastDateYM = LastDate.substr(0,6);
  157. div_search.ipt_searchym.setData(LastDateYM);
  158. ds_main_search.setColumn(0, "endym", LastDateYM);
  159. }
  160. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  161. {
  162. fSearch();
  163. }
  164. function fSearch()
  165. {
  166. ds_send_reqdata.clearData();
  167. dsf_makeValue(ds_send_reqdata, "endym", "string", ds_main_search.getColumn(0, "endym"));
  168. dsf_makeValue(ds_send_reqdata, "instcd", "string", ds_main_search.getColumn(0, "instcd"));
  169. var oParam = {};
  170. oParam.id = "TRSDT15001";
  171. oParam.service = "stscmcnwapp.CoopEndStats";
  172. oParam.method = "reqGetHealCareReqRtnPay";
  173. oParam.inds = "req=ds_send_reqdata";
  174. oParam.outds = "ds_result=result";
  175. oParam.async = false;
  176. oParam.callback = "cf_TRSDT15001";
  177. tranf_submit(oParam);
  178. }
  179. function cf_TRSDT15001(sSvcId, nErrorCode, sErrorMsg)
  180. {
  181. if(nErrorCode < 0)
  182. {
  183. return;
  184. }
  185. else
  186. {
  187. }
  188. }
  189. // 엑셀저장
  190. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  191. {
  192. fExcel();
  193. }
  194. function fExcel()
  195. {
  196. if (ds_result.rowcount == 0)
  197. {
  198. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  199. return;
  200. }
  201. var title = "진료의뢰회송 실적";
  202. var sheetNm = "진료의뢰회송 실적" + ds_main_search.getColumn(0, "endym");
  203. grdf_exportExcel(grd_list, title, sheetNm);
  204. }
  205. ]]></Script>
  206. </Form>
  207. </FDL>