SPPID21301_항목별진료비조회.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPID21301" position="absolute 0 0 920 610" titletext="" onload="SPPID21301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 0 920 610" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_2" position="absolute 5 10 105 23" style="" text="항목별 진료비" />
  11. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 25 920 28" style="" anchor="default" />
  12. <Grid id="grd_clodlist" binddataset="ds_main_list1_clod" position="absolute 0 31 920 610" style="" oncelldblclick="grp_biz_grd_clodlist_oncelldblclick">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="50" />
  17. <Column size="50" />
  18. <Column size="350" />
  19. <Column size="80" />
  20. <Column size="80" />
  21. <Column size="80" />
  22. <Column size="80" />
  23. <Column size="100" />
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head" />
  27. <Row size="24" />
  28. </Rows>
  29. <Band id="head">
  30. <Cell text="항목" />
  31. <Cell col="1" text="항목" />
  32. <Cell col="2" text="명칭" />
  33. <Cell col="3" text="심사후" />
  34. <Cell col="4" text="심사후" />
  35. <Cell col="5" text="심사전" />
  36. <Cell col="6" text="심사전" />
  37. <Cell col="7" text="차액|항" />
  38. <Cell col="8" text="목" />
  39. <Cell col="9" text="명칭" />
  40. <Cell col="10" text="I항" />
  41. <Cell col="11" text="II항" />
  42. <Cell col="12" text="I항" />
  43. <Cell col="13" text="II항" />
  44. <Cell col="14" text="차액" />
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:item1" />
  48. <Cell col="1" text="bind:item2" />
  49. <Cell col="2" text="bind:hngnm" />
  50. <Cell col="3" text="bind:aftamt1" />
  51. <Cell col="4" text="bind:aftamt2" />
  52. <Cell col="5" text="bind:bframt1" />
  53. <Cell col="6" text="bind:bframt2" />
  54. <Cell col="7" text="bind:difamt" />
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. <Button id="btn_excel" class="btn2_letter4" position="absolute 852 3 916 22" style="" text="엑셀저장" onclick="btn_excel_onclick" />
  63. </Layout>
  64. </Layouts>
  65. <Objects>
  66. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  67. <ColumnInfo />
  68. </Dataset>
  69. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  70. <ColumnInfo>
  71. <Column id="list1" type="STRING" size="256" />
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="list1"></Col>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  80. <ColumnInfo>
  81. <Column id="hidden" type="STRING" size="256" />
  82. </ColumnInfo>
  83. </Dataset>
  84. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  85. <ColumnInfo>
  86. <Column id="clamym" type="STRING" size="256" />
  87. <Column id="clamdg" type="STRING" size="256" />
  88. <Column id="pid" type="STRING" size="256" />
  89. <Column id="pidsn" type="STRING" size="256" />
  90. <Column id="insukind" type="STRING" size="256" />
  91. <Column id="suppkind" type="STRING" size="256" />
  92. <Column id="ordfromdd" type="STRING" size="256" />
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="clamym"></Col>
  97. <Col id="clamdg"></Col>
  98. <Col id="pid"></Col>
  99. <Col id="pidsn"></Col>
  100. <Col id="insukind"></Col>
  101. <Col id="suppkind"></Col>
  102. <Col id="ordfromdd"></Col>
  103. </Row>
  104. </Rows>
  105. </Dataset>
  106. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  107. <ColumnInfo>
  108. <Column id="init" type="STRING" size="256" />
  109. </ColumnInfo>
  110. <Rows>
  111. <Row>
  112. <Col id="init"></Col>
  113. </Row>
  114. </Rows>
  115. </Dataset>
  116. </Objects>
  117. <Bind />
  118. <Script type="xscript4.0"><![CDATA[function SPPID21301_onload(obj:Form, e:LoadEventInfo) {
  119. frmf_initForm(obj);
  120. //grdf_initGrid(grd_XXX);
  121. //grdf_setGridSort(grd_XXX);
  122. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  123. }
  124. include '../../.._com_commonweb_js_common.js'
  125. include '../../.._com_commonweb_js_stringHelper.js'
  126. // 화면을 초기화한다.
  127. function fInitialize() {
  128. // 1. opener 에서 key 데이터를 받는다.
  129. ds_send_data1.setColumn( 0, "clamym", opener.window.javaScript.frmf_getParameter("SPPID21301_clamym"));
  130. ds_send_data1.setColumn( 0, "clamdg", opener.window.javaScript.frmf_getParameter("SPPID21301_clamdg"));
  131. ds_send_data1.setColumn( 0, "pid", opener.window.javaScript.frmf_getParameter("SPPID21301_pid"));
  132. ds_send_data1.setColumn( 0, "pidsn", opener.window.javaScript.frmf_getParameter("SPPID21301_pidsn"));
  133. ds_send_data1.setColumn( 0, "insukind", opener.window.javaScript.frmf_getParameter("SPPID21301_insukind"));
  134. ds_send_data1.setColumn( 0, "suppkind", opener.window.javaScript.frmf_getParameter("SPPID21301_suppkind"));
  135. ds_send_data1.setColumn( 0, "ordfromdd", opener.window.javaScript.frmf_getParameter("SPPID21301_ordfromdd"));
  136. /*
  137. grd_itemlist.mergecol(grd_itemlist.colRef("mdl")) = false;
  138. grd_itemlist.mergecol(grd_itemlist.colRef("hngnm")) = false;
  139. grd_itemlist.mergecol(grd_itemlist.colRef("bfmatramt")) = false;
  140. grd_itemlist.mergecol(grd_itemlist.colRef("bfactamt")) = false;
  141. grd_itemlist.mergecol(grd_itemlist.colRef("aftmatramt")) = false;
  142. grd_itemlist.mergecol(grd_itemlist.colRef("aftactamt")) = false;
  143. grd_itemlist.mergecol(grd_itemlist.colRef("itemdifamt")) = false;
  144. ds_main_list1_item.clearData();
  145. ds_main_list2_clbt.clearData();
  146. ds_main_list3_mech.clearData();
  147. */
  148. if (ds_send_data1.getColumn(0, "clamym") != "") {
  149. // submit("TRPID21301");
  150. var oParam = {};
  151. oParam.id = "TRPID21301";
  152. oParam.service = "aftjudgapp.AftJudgDifAmt";
  153. oParam.method = "reqGetAftJudgItemDifAmtList";
  154. oParam.inds = "req=ds_";
  155. oParam.outds = "ds_=clod";
  156. oParam.async = false;
  157. oParam.callback = "cf_TRPID21301";
  158. tranf_submit(oParam);
  159. /*
  160. function cf_TRPID21301(sSvcId, nErrorCode, sErrorMsg) {
  161. if(nErrorCode < 0) return;
  162. }
  163. function cf_TRPID21301(sSvcId, nErrorCode, sErrorMsg) {
  164. arErrorCode.push(sSvcId, nErrorCode);
  165. }
  166. arErrorCode.pop("TRPID21301") > -1
  167. arErrorCode.pop("TRPID21301") < 0
  168. */
  169. //grp_biz.grd_clodlist.refresh();
  170. // 항목별 진료비의 동일한 항을 병합한다.
  171. //grd_itemlist.mergecells = "bycol";
  172. }
  173. /*
  174. // 항목별 진료비 - 소계 Row
  175. grd_itemlist.setCellProprty("body", 1, "background", "#4d4d4d"); grd_itemlist.setCellProperty("body", 1, "background2", "#4d4d4d");
  176. grd_itemlist.rowStyle(1, "data", "background-image") = "../../.._com_commonweb_images_grid_bg.gif";
  177. grd_itemlist.rowStyle(1, "data", "background-repeat") = "repeat-x";
  178. // 항목별 진료비 - 가산율 Row
  179. grd_itemlist.setCellProprty("body", 2, "background", "#4d4d4d"); grd_itemlist.setCellProperty("body", 2, "background2", "#4d4d4d");
  180. grd_itemlist.rowStyle(2, "data", "background-image") = "../../.._com_commonweb_images_grid_bg.gif";
  181. grd_itemlist.rowStyle(2, "data", "background-repeat") = "repeat-x";
  182. //grd_itemlist.fixedRows = 2;
  183. // 청구심사차액 - 총진료비 Row
  184. //grd_clbtmast.fixedrows = 2; 로 타이틀을 적용시키면 금액 format="#,###" 이 적용되지 않는다.
  185. grd_clbtmast.setCellProprty("body", 1, "background", "#4d4d4d"); grd_clbtmast.setCellProperty("body", 1, "background2", "#4d4d4d");
  186. grd_clbtmast.rowStyle(1, "data", "background-image") = "../../.._com_commonweb_images_grid_bg.gif";
  187. grd_clbtmast.rowStyle(1, "data", "background-repeat") = "repeat-x";
  188. */
  189. }
  190. function grp_biz_grd_clodlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  191. if (grp_biz.grd_clodlist.isCell(event.target) && grp_biz.grd_clodlist.mouseRow >= grp_biz.grd_clodlist.fixedRows) {
  192. var row = grp_biz.grd_clodlist.row - 1;
  193. var item1 = ds_main_list1_clod.getColumn(row, "item1"));
  194. var item2 = ds_main_list1_clod.getColumn(row, "item2"));
  195. if (item1 != "" && item2 != "") {
  196. opener.window.javaScript.fGetJudgDetlDifAmtList(item1, item2);
  197. }
  198. }
  199. }
  200. function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  201. if (grp_biz.grd_clodlist.rows == 2) {
  202. return;
  203. }
  204. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  205. if (fileName != "")
  206. {
  207. grdf_exportExcel(grp_biz.grd_clodlist, "Sheet1", fileName, false, "" , 'user' , true);
  208. sysf_messageBox("EXCEL 저장이 완료되었습니다.","I999");
  209. }
  210. }
  211. ]]></Script>
  212. </Form>
  213. </FDL>