SPPIJ02401_항목별진료비조회.xfdl 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ02401" position="absolute 0 0 1070 610" titletext="" onload="SPPIJ02401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_excel" class="btn2" position="absolute 1002 5 1066 24" style="" text="엑셀저장" onclick="btn_excel_onclick"/>
  8. <Static id="caption1" text="항목별 진료비" class="tit_2" position="absolute 5 8 113 24"/>
  9. <Shape id="line1" class="line_1" position="absolute 0 28 1070 32" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="grd_clodlist" taborder="1" binddataset="ds_main_list1_clod" useinputpanel="false" oncelldblclick="grp_biz_grd_clodlist_oncelldblclick" position="absolute 0 31 1070 610">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="40"/>
  15. <Column size="50"/>
  16. <Column size="50"/>
  17. <Column size="400"/>
  18. <Column size="140"/>
  19. <Column size="140"/>
  20. <Column size="140"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell rowspan="2" taborder="undefined"/>
  29. <Cell col="1" colspan="2" text="항목" taborder="undefined"/>
  30. <Cell col="3" rowspan="2" text="명칭" taborder="undefined"/>
  31. <Cell col="4" rowspan="2" text="심사후금액" taborder="undefined"/>
  32. <Cell col="5" rowspan="2" text="심사전금액" taborder="undefined"/>
  33. <Cell col="6" rowspan="2" text="차액" taborder="undefined"/>
  34. <Cell col="7"/>
  35. <Cell col="8"/>
  36. <Cell col="9"/>
  37. <Cell col="10"/>
  38. <Cell col="11"/>
  39. <Cell row="1" col="1" text="항"/>
  40. <Cell row="1" col="2" text="목"/>
  41. <Cell row="1" col="7" text="목"/>
  42. <Cell row="1" col="8" text="명칭"/>
  43. <Cell row="1" col="9" text="심사후금액"/>
  44. <Cell row="1" col="10" text="심사전금액"/>
  45. <Cell row="1" col="11" text="차액"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head" expr="expr:currow + 1"/>
  49. <Cell col="1" style="align:center middle;" text="bind:item1"/>
  50. <Cell col="2" style="align:center middle;" text="bind:item2"/>
  51. <Cell col="3" style="align:left middle;" text="bind:hngnm"/>
  52. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:aftamt" mask="9,999"/>
  53. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:bframt" mask="9,999"/>
  54. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:difamt" mask="9,999"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. </Layout>
  60. </Layouts>
  61. <Objects>
  62. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  63. <ColumnInfo>
  64. <Column id="pid" type="STRING" size="256"/>
  65. <Column id="indd" type="STRING" size="256"/>
  66. <Column id="cretno" type="STRING" size="256"/>
  67. <Column id="fromdd" type="STRING" size="256"/>
  68. <Column id="todd" type="STRING" size="256"/>
  69. <Column id="payflag" type="STRING" size="256"/>
  70. </ColumnInfo>
  71. <Rows>
  72. <Row>
  73. <Col id="pid"/>
  74. <Col id="indd"/>
  75. <Col id="cretno"/>
  76. <Col id="fromdd"/>
  77. <Col id="todd"/>
  78. <Col id="payflag"/>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_main_list1_clod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="item1" type="STRING" size="256" sumtext="항"/>
  85. <Column id="item2" type="STRING" size="256" sumtext="목"/>
  86. <Column id="hngnm" type="STRING" size="256" sumtext="명칭"/>
  87. <Column id="aftamt" type="STRING" size="256" sumtext="(심사후)금액"/>
  88. <Column id="bframt" type="STRING" size="256" sumtext="(심사전)금액"/>
  89. <Column id="difamt" type="STRING" size="256" sumtext="항목별 차액"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. </Objects>
  93. <Bind/>
  94. <Script type="xscript4.0"><![CDATA[//=======================================================================================
  95. // Lib Include
  96. //---------------------------------------------------------------------------------------
  97. include 'com_commonxp::comm_main.xjs';
  98. var arErrorCode = new HashArray();
  99. //=======================================================================================
  100. // Local methods
  101. //---------------------------------------------------------------------------------------
  102. function fInitialize() {
  103. // 부모 폼을 가져온다.
  104. var parentForm = this.getOwnerFrame().form;
  105. // 1. opener 에서 key 데이터를 받는다.
  106. ds_send_data1.setColumn(0, "pid", parentForm.frmf_getParameter("SPPIJ02400_pid"));
  107. ds_send_data1.setColumn(0, "indd", parentForm.frmf_getParameter("SPPIJ02400_indd"));
  108. ds_send_data1.setColumn(0, "cretno", parentForm.frmf_getParameter("SPPIJ02400_cretno"));
  109. ds_send_data1.setColumn(0, "fromdd", parentForm.frmf_getParameter("SPPIJ02400_fromdd"));
  110. ds_send_data1.setColumn(0, "todd", parentForm.frmf_getParameter("SPPIJ02400_todd"));
  111. ds_send_data1.setColumn(0, "payflag", parentForm.frmf_getParameter("SPPIJ02400_payflag"));
  112. // 2. 항목별 심사전후 진료비 차액을 구한다.
  113. if (utlf_transNullToEmpty(ds_send_data1.getColumn(0, "pid")) != "") {
  114. ds_main_list1_clod.clearData();
  115. var oParam = {};
  116. oParam.id = "TRPIJ02401";
  117. oParam.service = "bfjudgapp.InJudgDifAmt";
  118. oParam.method = "reqGetInJudgItemDifAmtList";
  119. oParam.inds = "req=ds_send_data1";
  120. oParam.outds = "ds_main_list1_clod=clod";
  121. oParam.async = false;
  122. tranf_submit(oParam);
  123. }
  124. }
  125. /**
  126. * submit 후 호출 될 공통 콜백
  127. * @param {[type]} sSvcId [description]
  128. * @param {[type]} nErrorCode [description]
  129. * @param {[type]} sErrorMsg [description]
  130. * @return {Function} [description]
  131. */
  132. function callback(sSvcId, nErrorCode, sErrorMsg){
  133. arErrorCode.push(sSvcId, nErrorCode);
  134. }
  135. //=======================================================================================
  136. // Events
  137. //---------------------------------------------------------------------------------------
  138. /**
  139. * onload 이벤트 발생 시 호출
  140. * @param {[type]} obj:Form [description]
  141. * @param {[type]} e:LoadEventInfo [description]
  142. */
  143. function SPPIJ02401_onload(obj: Form, e: LoadEventInfo) {
  144. frmf_initForm(obj);
  145. //oOpener = frmf_getoOpener();
  146. }
  147. /**
  148. * 엑셀저장 버튼 클릭 이벤트
  149. * @param {[type]} obj: Button [description]
  150. * @param {[type]} e: ClickEventInfo [description]
  151. * @return {[type]} [description]
  152. */
  153. function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
  154. grdf_exportExcel(grd_clodlist, "excel", "SheetName", true, "", "user", false);
  155. sysf_messageBox("EXCEL 저장이 완료되었습니다.", "I999");
  156. }
  157. /**
  158. * 항목별 진료비 그리드 셀 더블 클릭 이벤트
  159. * 호출하려는 부모 form 에서는 fGetJudgDetlDifAmtList 메서드가 정의되어 있어야 한다
  160. * @param {[type]} obj: Grid [description]
  161. * @param {[type]} e: GridClickEventInfo [description]
  162. * @return {[type]} [description]
  163. */
  164. function grp_biz_grd_clodlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  165. var row = grd_clodlist.currentrow;
  166. var item1 = utlf_transNullToEmpty(ds_main_list1_clod.getColumn(row, "item1"));
  167. var item2 = utlf_transNullToEmpty(ds_main_list1_clod.getColumn(row, "item2"));
  168. if (item1 != "" && item2 != "") {
  169. opener.fGetJudgDetlDifAmtList(item1, item2);
  170. }
  171. }]]></Script>
  172. </Form>
  173. </FDL>