SPPIJ04200_MOU예상금액조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ04200" position="absolute 0 0 1205 732" titletext="MOU 예상금액 조회" oninit="SPPIJ04200_oninit" onload="SPPIJ04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="MOU 예상금액 조회" class="tit_1" position="absolute 2 1 218 24"/>
  8. <Div id="group2" taborder="1" class="div_SA" position="absolute 2 25 1196 67">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption10" text="환자번호 :" class="search_name" position="absolute 10 12 96 29" anchor="default"/>
  12. <Edit id="input4" taborder="7" class="input_s_essential" enable="false" position="absolute 100 11 220 30" anchor="default"/>
  13. <Static id="caption4" text="입원일자 :" class="search_name" position="absolute 235 12 321 29" anchor="default"/>
  14. <Edit id="input1" taborder="8" class="input_s_essential" enable="false" position="absolute 325 11 445 30" anchor="default"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Shape id="line1" class="line_10" position="absolute 3 93 1195 102" style="strokepen:3 solid #33bbbbff;"/>
  19. <Static id="caption2" text="진료 내역" class="tit_2" position="absolute 5 77 305 99"/>
  20. <Grid id="datagrid1" taborder="2" binddataset="ds_datagrid1" useinputpanel="false" autofittype="col" position="absolute 3 99 1195 721" cellsizingtype="col">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="25"/>
  25. <Column size="25"/>
  26. <Column size="80"/>
  27. <Column size="80"/>
  28. <Column size="200"/>
  29. <Column size="45"/>
  30. <Column size="30"/>
  31. <Column size="70"/>
  32. <Column size="70"/>
  33. <Column size="0"/>
  34. <Column size="70"/>
  35. <Column size="80"/>
  36. <Column size="70"/>
  37. <Column size="70"/>
  38. <Column size="0"/>
  39. <Column size="70"/>
  40. <Column size="80"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24" band="head"/>
  45. <Row size="24"/>
  46. <Row size="24" band="summ"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell rowspan="2" text="항" taborder="undefined" suppress="1"/>
  50. <Cell col="1" rowspan="2" text="목" taborder="undefined"/>
  51. <Cell col="2" rowspan="2" text="그룹수가" taborder="undefined"/>
  52. <Cell col="3" rowspan="2" text="수가코드" taborder="undefined"/>
  53. <Cell col="4" rowspan="2" text="수가명" taborder="undefined"/>
  54. <Cell col="5" rowspan="2" text="1일량" taborder="undefined"/>
  55. <Cell col="6" rowspan="2" text="일수" taborder="undefined"/>
  56. <Cell col="7" colspan="5" text="MOU 예상가" taborder="undefined"/>
  57. <Cell col="12" colspan="5" text="원 발생금액" taborder="undefined"/>
  58. <Cell row="1" col="7" text="단가"/>
  59. <Cell row="1" col="8" text="금액"/>
  60. <Cell row="1" col="9" text="종별가산"/>
  61. <Cell row="1" col="10" text="선택진료"/>
  62. <Cell row="1" col="11" text="계"/>
  63. <Cell row="1" col="12" text="단가"/>
  64. <Cell row="1" col="13" text="금액"/>
  65. <Cell row="1" col="14" text="종별가산"/>
  66. <Cell row="1" col="15" text="선택진료"/>
  67. <Cell row="1" col="16" text="계"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell text="bind:moulrg"/>
  71. <Cell col="1" text="bind:moumdl"/>
  72. <Cell col="2" style="align:left middle;" text="bind:grupcalcscorcd"/>
  73. <Cell col="3" style="align:left middle;" text="bind:snglcalcscorcd"/>
  74. <Cell col="4" style="align:left middle;" text="bind:calcnm"/>
  75. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:calcqty"/>
  76. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:calcdays"/>
  77. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:moucost"/>
  78. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:mouamt"/>
  79. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:mouhospaddamt"/>
  80. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:mouspecamt"/>
  81. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:moutotamt"/>
  82. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:appunitcost"/>
  83. <Cell col="13" displaytype="number" style="align:right middle;" text="bind:calcamt"/>
  84. <Cell col="14" displaytype="number" style="align:right middle;" text="bind:hospaddamt"/>
  85. <Cell col="15" displaytype="number" style="align:right middle;" text="bind:specamt"/>
  86. <Cell col="16" displaytype="number" style="align:right middle;" text="bind:totamt"/>
  87. </Band>
  88. <Band id="summary">
  89. <Cell/>
  90. <Cell col="1"/>
  91. <Cell col="2"/>
  92. <Cell col="3"/>
  93. <Cell col="4" style="align:left middle;" text="합계"/>
  94. <Cell col="5"/>
  95. <Cell col="6"/>
  96. <Cell col="7"/>
  97. <Cell col="8" displaytype="number" expr="expr:getSum('mouamt')" mask="#,###"/>
  98. <Cell col="9" displaytype="number" expr="expr:getSum('mouhospaddamt')"/>
  99. <Cell col="10" displaytype="number" expr="expr:getSum('mouspecamt')"/>
  100. <Cell col="11" displaytype="number" expr="expr:getSum('moutotamt')"/>
  101. <Cell col="12"/>
  102. <Cell col="13" displaytype="number" expr="expr:getSum('calcamt')"/>
  103. <Cell col="14" displaytype="number" expr="expr:getSum('hospaddamt')"/>
  104. <Cell col="15" displaytype="number" expr="expr:getSum('specamt')"/>
  105. <Cell col="16" displaytype="number" expr="expr:getSum('totamt')"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Button id="button1" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" onclick="button1_onclick"/>
  111. </Layout>
  112. </Layouts>
  113. <Objects>
  114. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="moulrg" type="STRING"/>
  117. <Column id="moumdl" type="STRING"/>
  118. <Column id="grupcalcscorcd" type="STRING"/>
  119. <Column id="snglcalcscorcd" type="STRING"/>
  120. <Column id="calcnm" type="STRING"/>
  121. <Column id="calcqty" type="STRING"/>
  122. <Column id="calcdays" type="STRING"/>
  123. <Column id="moucost" type="STRING"/>
  124. <Column id="mouamt" type="STRING"/>
  125. <Column id="mouhospaddamt" type="STRING"/>
  126. <Column id="mouspecamt" type="STRING"/>
  127. <Column id="moutotamt" type="STRING"/>
  128. <Column id="appunitcost" type="STRING"/>
  129. <Column id="calcamt" type="STRING"/>
  130. <Column id="hospaddamt" type="STRING"/>
  131. <Column id="specamt" type="STRING"/>
  132. <Column id="totamt" type="STRING"/>
  133. </ColumnInfo>
  134. </Dataset>
  135. <Dataset id="ds_chklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="dschyn" type="STRING" size="256"/>
  138. <Column id="indayyn" type="STRING" size="256"/>
  139. <Column id="drgyn" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. <Rows>
  142. <Row/>
  143. </Rows>
  144. </Dataset>
  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="pid" type="STRING" size="256"/>
  148. <Column id="indd" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row/>
  152. </Rows>
  153. </Dataset>
  154. </Objects>
  155. <Bind>
  156. <BindItem id="item0" compid="group2.input4" propid="value" datasetid="ds_send" columnid="pid"/>
  157. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="indd"/>
  158. </Bind>
  159. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  160. * System Name :
  161. * Job Name :
  162. * Creator :
  163. * Make Date : 2016-05-24
  164. * Description :
  165. *---------------------------------------------------------------------------------------
  166. * Modify Date Modifier Modify Description
  167. *---------------------------------------------------------------------------------------
  168. * 2016-05-24 Live Converter TF->XP
  169. *
  170. *---------------------------------------------------------------------------------------
  171. ****************************************************************************************/
  172. include "com_commonxp::comm_main.xjs";
  173. include "pam_pamcomnxp::PAM001.xjs";
  174. include "emr_prcpmngtxp::MMOCommon.xjs"
  175. function SPPIJ04200_oninit(obj:Form, e:InitEventInfo)
  176. {
  177. frmf_initForm(obj);
  178. }
  179. function SPPIJ04200_onload(obj:Form, e:LoadEventInfo)
  180. {
  181. ds_send.copyData(args_ds_send)
  182. var oParam = {};
  183. oParam.id = "TRPIJ04201";
  184. oParam.service = "bfjudgapp.InHospJudgDetl";
  185. oParam.method = "reqGetMouCalcChk";
  186. oParam.inds = "req=ds_send";
  187. oParam.outds = "ds_chklist=chklist";
  188. oParam.async = false;
  189. //oParam.callback = "cf_TRPIJ04201";
  190. tranf_submit(oParam);
  191. var dschyn = ds_chklist.getColumn(0, "dschyn");
  192. var indayyn = ds_chklist.getColumn(0, "indayyn");
  193. var drgyn = ds_chklist.getColumn(0, "drgyn");
  194. if (dschyn == "N") {
  195. sysf_messageBox("퇴원환자만 조회 가능합니다!", "E999");
  196. return;
  197. }
  198. if (indayyn == "N") {
  199. sysf_messageBox("재원일수 30일 초과 대상은 조회 불가능합니다!", "E999");
  200. return;
  201. }
  202. if (drgyn == "N") {
  203. sysf_messageBox("DRG 대상은 조회 불가능합니다!", "E999");
  204. return;
  205. }
  206. var oParam = {};
  207. oParam.id = "TRPIJ04200";
  208. oParam.service = "bfjudgapp.InHospJudgDetl";
  209. oParam.method = "reqGetMouCalcList";
  210. oParam.inds = "req=ds_send";
  211. oParam.outds = "ds_datagrid1=grdlist1";
  212. oParam.async = false;
  213. //oParam.callback = "cf_TRPIJ04200";
  214. tranf_submit(oParam);
  215. }
  216. function button1_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. var pid = ds_send.getColumn(0, "pid");
  219. var indd = ds_send.getColumn(0, "indd");
  220. if (ds_datagrid1.rowcount > 0)
  221. {
  222. grdf_exportExcel(datagrid1, "MOU예상금액_"+pid+"_"+indd, "see");
  223. }
  224. else
  225. {
  226. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  227. }
  228. }
  229. ]]></Script>
  230. </Form>
  231. </FDL>