SMPAS01440_본인부담의료미수금현황.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS01440" position="absolute 0 0 1241 819" titletext="Untitle" onload="SMPAS01440_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1203 60" id="grp" class="div_SA">
  8. <Layouts>
  9. <Layout width="1203" height="35">
  10. <Button position="absolute 988 7 1044 29" id="btn_search" class="btn1" text="조회" onclick="grp_btn_search_onclick"/>
  11. <Calendar position="absolute 90 8 180 28" id="ipt_enddd" class="input_default" taborder="7" visible="true" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
  12. <Button position="absolute 1054 7 1134 29" id="btn_excel" class="btn7" visible="true" text="EXCEL" onclick="grp_btn_excel_onclick"/>
  13. <Static text="조회기준" position="absolute 10 9 108 26" id="caption2" class="search_name"/>
  14. <Shape position="absolute 1046 6 1052 30" linetype="vertical" id="line2" class="line_4"/>
  15. <Button position="absolute 1137 7 1193 29" id="button1" class="btn6" text="출력" onclick="grp_button1_onclick"/>
  16. <Calendar position="absolute 205 8 255 28" id="ipt_year" mask="yyyy" autoselect="true" autoskip="true" dateformat="yyyy" value="null" editformat="yyyy"/>
  17. <Radio position="absolute 840 8 980 28" id="cmb_gijun" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" style="textpadding:0 3 0 3;" rowcount="-1">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">orddd</Col>
  26. <Col id="datacolumn">진료일자</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">rcptexecdd</Col>
  30. <Col id="datacolumn">수납일자</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </Radio>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Tab position="absolute 0 66 1206 792" id="switch1" onchanged="switch1_onchanged">
  39. <Tabpages>
  40. <Tabpage text="급종별" id="case1">
  41. <Layouts>
  42. <Layout>
  43. <Grid position="absolute 0 5 1206 660" id="grd_statlist" class="datagrid2" binddataset="ds_main_statinfo" oncelldblclick="switch1_case1_grd_statlist_oncelldblclick">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="98"/>
  48. <Column size="100"/>
  49. <Column size="75"/>
  50. <Column size="175"/>
  51. <Column size="75"/>
  52. <Column size="175"/>
  53. <Column size="75"/>
  54. <Column size="175"/>
  55. <Column size="75"/>
  56. <Column size="175"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell rowspan="2" text="구분" taborder="undefined"/>
  65. <Cell col="1" rowspan="2" text="급종" taborder="undefined"/>
  66. <Cell col="2" colspan="2" text="전월말" taborder="undefined"/>
  67. <Cell col="4" colspan="2" text="당월증가" taborder="undefined"/>
  68. <Cell col="6" colspan="2" text="당월감소" taborder="undefined"/>
  69. <Cell col="8" colspan="2" text="당월말" taborder="undefined"/>
  70. <Cell row="1" col="2" text="건"/>
  71. <Cell row="1" col="3" text="금액"/>
  72. <Cell row="1" col="4" text="건"/>
  73. <Cell row="1" col="5" text="금액"/>
  74. <Cell row="1" col="6" text="건"/>
  75. <Cell row="1" col="7" text="금액"/>
  76. <Cell row="1" col="8" text="건"/>
  77. <Cell row="1" col="9" text="금액"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell text="bind:endflag" suppress="1" suppressalign="middle,over"/>
  81. <Cell col="1" text="bind:insukind"/>
  82. <Cell col="2" style="align:right middle;" text="bind:yesacccnt"/>
  83. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:yesaccamt" mask="9,999"/>
  84. <Cell col="4" style="align:right middle;" text="bind:todaddcnt"/>
  85. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:todaddamt" mask="9,999"/>
  86. <Cell col="6" style="align:right middle;" text="bind:todsubcnt"/>
  87. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:todsubamt" mask="9,999"/>
  88. <Cell col="8" style="align:right middle;" text="bind:todacccnt"/>
  89. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:todaccamt" mask="9,999"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. </Layout>
  95. </Layouts>
  96. </Tabpage>
  97. <Tabpage text="발생년도별" id="case2">
  98. <Layouts>
  99. <Layout>
  100. <Grid position="absolute 0 5 1201 655" id="grd_year" class="datagrid2" binddataset="ds_main_h_year">
  101. <Formats>
  102. <Format id="default">
  103. <Columns>
  104. <Column size="60"/>
  105. <Column size="60"/>
  106. <Column size="75"/>
  107. <Column size="125"/>
  108. <Column size="75"/>
  109. <Column size="125"/>
  110. <Column size="75"/>
  111. <Column size="125"/>
  112. <Column size="75"/>
  113. <Column size="125"/>
  114. <Column size="75"/>
  115. <Column size="125"/>
  116. </Columns>
  117. <Rows>
  118. <Row size="24" band="head"/>
  119. <Row size="24" band="head"/>
  120. <Row size="24"/>
  121. </Rows>
  122. <Band id="head">
  123. <Cell rowspan="2" text="구분" taborder="undefined"/>
  124. <Cell col="1" rowspan="2" text="급종" taborder="undefined"/>
  125. <Cell col="2" colspan="2" text="-" taborder="undefined"/>
  126. <Cell col="4" colspan="2" text="-" taborder="undefined"/>
  127. <Cell col="6" colspan="2" text="-" taborder="undefined"/>
  128. <Cell col="8" colspan="2" text="-" taborder="undefined"/>
  129. <Cell col="10" colspan="2" text="계" taborder="undefined"/>
  130. <Cell row="1" col="2" text="건"/>
  131. <Cell row="1" col="3" text="금액"/>
  132. <Cell row="1" col="4" text="건"/>
  133. <Cell row="1" col="5" text="금액"/>
  134. <Cell row="1" col="6" text="건"/>
  135. <Cell row="1" col="7" text="금액"/>
  136. <Cell row="1" col="8" text="건"/>
  137. <Cell row="1" col="9" text="금액"/>
  138. <Cell row="1" col="10" text="건"/>
  139. <Cell row="1" col="11" text="금액"/>
  140. </Band>
  141. <Band id="body">
  142. <Cell text="bind:endflag" suppress="1" suppressalign="middle,over"/>
  143. <Cell col="1" text="bind:insukind"/>
  144. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:cnt_3" mask="9,999"/>
  145. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:totamt_3" mask="9,999"/>
  146. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:cnt_2" mask="9,999"/>
  147. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:totamt_2" mask="9,999"/>
  148. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:cnt_1" mask="9,999"/>
  149. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:totamt_1" mask="9,999"/>
  150. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:cnt_org" mask="9,999"/>
  151. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:totamt_org" mask="9,999"/>
  152. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:cnt_all" mask="9,999"/>
  153. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:totamt_all" mask="9,999"/>
  154. </Band>
  155. </Format>
  156. </Formats>
  157. </Grid>
  158. </Layout>
  159. </Layouts>
  160. </Tabpage>
  161. </Tabpages>
  162. </Tab>
  163. <Static text="(단위 : 원)" position="absolute 1101 68 1201 88" align="align:right middle;" id="caption4" style="align:right middle;font:Dotum,9,bold;"/>
  164. <Static text="주) 응급실 : 6시간 이상(입원), 6시간 미만(외래)" position="absolute 0 759 263 779" id="caption5"/>
  165. <Static id="caption60" text="본인부담 의료미수금현황." class="tit_1" position="absolute 0 0 200 25"/>
  166. </Layout>
  167. </Layouts>
  168. <Objects>
  169. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="enddd" type="STRING" size="256"/>
  172. <Column id="lastmondd" type="STRING" size="256"/>
  173. <Column id="thismondd" type="STRING" size="256"/>
  174. <Column id="year" type="STRING" size="256"/>
  175. <Column id="year_org" type="STRING" size="256"/>
  176. <Column id="year_1" type="STRING" size="256"/>
  177. <Column id="year_2" type="STRING" size="256"/>
  178. <Column id="year_3" type="STRING" size="256"/>
  179. <Column id="gijun" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="enddd"/>
  184. <Col id="lastmondd"/>
  185. <Col id="thismondd"/>
  186. <Col id="year"/>
  187. <Col id="year_org"/>
  188. <Col id="year_1"/>
  189. <Col id="year_2"/>
  190. <Col id="year_3"/>
  191. <Col id="gijun"/>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. <Dataset id="ds_main_h_year" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="endflag" type="STRING" size="256" sumtext="구분"/>
  198. <Column id="insukind" type="STRING" size="256" sumtext="급종"/>
  199. <Column id="cnt_3" type="STRING" size="256" sumtext="기준년건수_3"/>
  200. <Column id="totamt_3" type="STRING" size="256" sumtext="기준년금액_3"/>
  201. <Column id="cnt_2" type="STRING" size="256" sumtext="기준년건수_2"/>
  202. <Column id="totamt_2" type="STRING" size="256" sumtext="기준년금액_2"/>
  203. <Column id="cnt_1" type="STRING" size="256" sumtext="기준년건수_1"/>
  204. <Column id="totamt_1" type="STRING" size="256" sumtext="기준년금액_1"/>
  205. <Column id="cnt_org" type="STRING" size="256" sumtext="기준년건수"/>
  206. <Column id="totamt_org" type="STRING" size="256" sumtext="기준년금액"/>
  207. <Column id="cnt_all" type="STRING" size="256" sumtext="기준년건수_계"/>
  208. <Column id="totamt_all" type="STRING" size="256" sumtext="기준년금액_계"/>
  209. </ColumnInfo>
  210. </Dataset>
  211. <Dataset id="ds_main_statinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="endflag" type="STRING" size="256" sumtext="구분"/>
  214. <Column id="insukind" type="STRING" size="256" sumtext="급종"/>
  215. <Column id="yesacccnt" type="STRING" size="256" sumtext="전월말건"/>
  216. <Column id="yesaccamt" type="STRING" size="256" sumtext="전월말금액"/>
  217. <Column id="todaddcnt" type="STRING" size="256" sumtext="당월증가건"/>
  218. <Column id="todaddamt" type="STRING" size="256" sumtext="당월증가금액 "/>
  219. <Column id="todsubcnt" type="STRING" size="256" sumtext="당월감소건"/>
  220. <Column id="todsubamt" type="STRING" size="256" sumtext="당월감소금액"/>
  221. <Column id="todacccnt" type="STRING" size="256" sumtext="당월말건"/>
  222. <Column id="todaccamt" type="STRING" size="256" sumtext="당월말금액"/>
  223. </ColumnInfo>
  224. </Dataset>
  225. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  226. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  227. <ColumnInfo>
  228. <Column id="monthdd" type="STRING" size="256"/>
  229. <Column id="insukind" type="STRING" size="256"/>
  230. <Column id="ordtype" type="STRING" size="256"/>
  231. <Column id="monthgubun" type="STRING" size="256"/>
  232. </ColumnInfo>
  233. <Rows>
  234. <Row>
  235. <Col id="monthdd"/>
  236. <Col id="insukind"/>
  237. <Col id="ordtype"/>
  238. <Col id="monthgubun"/>
  239. </Row>
  240. </Rows>
  241. </Dataset>
  242. </Objects>
  243. <Bind>
  244. <BindItem id="item0" compid="grp.ipt_enddd" propid="value" datasetid="ds_send" columnid="enddd"/>
  245. <BindItem id="item1" compid="grp.cmb_gijun" propid="value" datasetid="ds_send" columnid="gijun"/>
  246. <BindItem id="item2" compid="grp.ipt_year" propid="value" datasetid="ds_send" columnid="year"/>
  247. </Bind>
  248. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  249. * System Name :
  250. * Job Name :
  251. * Creator :
  252. * Make Date : 2016-05-24
  253. * Description :
  254. *---------------------------------------------------------------------------------------
  255. * Modify Date Modifier Modify Description
  256. *---------------------------------------------------------------------------------------
  257. * 2016-05-24 Live Converter TF->XP
  258. *
  259. *---------------------------------------------------------------------------------------
  260. ****************************************************************************************/
  261. //=======================================================================================
  262. // Lib Include
  263. //---------------------------------------------------------------------------------------
  264. include 'com_commonxp::comm_main.xjs';
  265. var arErrorCode = new HashArray();
  266. //=======================================================================================
  267. // Local methods
  268. //---------------------------------------------------------------------------------------
  269. /**
  270. * 로그인한 사용자 정보조회
  271. * @return {[type]} [description]
  272. */
  273. function fGetUserInfo2() {
  274. var sUserInfosS = sysf_getUserInfos();
  275. sUserInfosS = sUserInfosS + "|";
  276. var UserInfosS_Array = sUserInfosS.split("|");
  277. var userid = UserInfosS_Array[0]; //사용자번호
  278. var usernm = UserInfosS_Array[1]; //사용자이름
  279. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  280. var posinstnm = UserInfosS_Array[3]; //소속기관명
  281. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  282. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  283. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  284. dsf_makeValue(ds_hidden_session, "userid", 'string', userid);
  285. dsf_makeValue(ds_hidden_session, "usernm", 'string', usernm);
  286. dsf_makeValue(ds_hidden_session, "posinstcd", 'string', posinstcd);
  287. dsf_makeValue(ds_hidden_session, "posinstnm", 'string', posinstnm);
  288. dsf_makeValue(ds_hidden_session, "dutplcecd", 'string', dutplcecd);
  289. dsf_makeValue(ds_hidden_session, "dutplcenm", 'string', dutplcenm);
  290. dsf_makeValue(ds_hidden_session, "dutinstnm", 'string', dutinstnm);
  291. }
  292. /**
  293. * [fSearchPopup description]
  294. * @param {[type]} col [description]
  295. * @param {[type]} row [description]
  296. * @return {[type]} [description]
  297. */
  298. function fSearchPopup(col, row) {
  299. var ordtype = "";
  300. var insukind = "";
  301. var monthdd = "";
  302. var strmonthgubun = "";
  303. ds_temp.clearData();
  304. ds_temp.addRow();
  305. //전월말
  306. if ((col == 2) || (col == 3)) {
  307. monthdd = ds_send.getColumn(0, "lastmondd");
  308. strmonthgubun = "P";
  309. }
  310. //당월증가
  311. if ((col == 4) || (col == 5)) {
  312. monthdd = ds_send.getColumn(0, "thismondd");
  313. strmonthgubun = "T";
  314. }
  315. //당월감소
  316. if ((col == 6) || (col == 7)) {
  317. monthdd = ds_send.getColumn(0, "thismondd");
  318. strmonthgubun = "T";
  319. }
  320. //당월말
  321. if ((col == 8) || (col == 9)) {
  322. monthdd = ds_send.getColumn(0, "thismondd");
  323. strmonthgubun = "K";
  324. }
  325. //보험
  326. if ((row == 0) || (row == 6) || (row == 12)) {
  327. insukind = "11";
  328. }
  329. //급여
  330. if ((row == 1) || (row == 7) || (row == 13)) {
  331. insukind = "2%";
  332. }
  333. //산재
  334. if ((row == 2) || (row == 8) || (row == 14)) {
  335. insukind = "41";
  336. }
  337. //자보
  338. if ((row == 3) || (row == 9) || (row == 15)) {
  339. insukind = "31";
  340. }
  341. //일반
  342. if ((row == 4) || (row == 10) || (row == 16)) {
  343. insukind = "-";
  344. }
  345. //계
  346. if ((row == 5) || (row == 11) || (row == 17)) {
  347. insukind = "%";
  348. }
  349. //입원
  350. if (row >= 0 && row <= 5) {
  351. ordtype = "I";
  352. }
  353. //외래
  354. if (row >= 6 && row <= 11) {
  355. ordtype = "O";
  356. }
  357. //합계
  358. if (row >= 12 && row <= 17) {
  359. ordtype = "%";
  360. }
  361. ds_temp.setColumn(0, "monthdd", monthdd);
  362. ds_temp.setColumn(0, "insukind", insukind);
  363. ds_temp.setColumn(0, "ordtype", ordtype);
  364. ds_temp.setColumn(0, "monthgubun", strmonthgubun);
  365. if ((utlf_transNullToEmpty(monthdd) != "") && (utlf_transNullToEmpty(insukind) != "") && (utlf_transNullToEmpty(ordtype) != "")) {
  366. frmf_modal("SPPAS01441", "SPPAS01441", { ds_source: ds_temp }, "", "", "", "", "", "", "", "", "", "M");
  367. }
  368. }
  369. /**
  370. * submit 후 호출 될 공통 콜백
  371. * @param {[type]} sSvcId [description]
  372. * @param {[type]} nErrorCode [description]
  373. * @param {[type]} sErrorMsg [description]
  374. * @return {Function} [description]
  375. */
  376. function callback(sSvcId, nErrorCode, sErrorMsg){
  377. arErrorCode.push(sSvcId, nErrorCode);
  378. }
  379. //=======================================================================================
  380. // Events
  381. //---------------------------------------------------------------------------------------
  382. /**
  383. * onload 이벤트 발생 시 호출
  384. * @param {[type]} obj:Form [description]
  385. * @param {[type]} e:LoadEventInfo [description]
  386. */
  387. function SMPAS01440_onload(obj: Form, e: LoadEventInfo) {
  388. frmf_initForm(obj);
  389. // 현재월을 Default로 넣어주기
  390. var currentMonth = utlf_getCurrentDate();
  391. ds_send.setColumn(0, "enddd", currentMonth);
  392. ds_send.setColumn(0, "year", currentMonth);
  393. fGetUserInfo2();
  394. // 전월 말일, 당월 초일 세팅
  395. var temp = currentMonth.toDate("YYYYMMDD");
  396. temp.getAddDate(-1, "M");
  397. var lastmontemp = temp.getDateFormat();
  398. var lastmondd = lastmontemp.substr(0, 6) + "10"; // DB에서 마지막날짜로 변환시켜줌
  399. var thismondd = currentMonth.substr(0, 6) + "00";
  400. ds_send.setColumn(0, "lastmondd", lastmondd);
  401. ds_send.setColumn(0, "thismondd", thismondd);
  402. ds_send.setColumn(0, "gijun", "orddd");
  403. switch1.tablindex = 0;
  404. }
  405. /**
  406. * 조회 버튼 클릭 이벤트
  407. * @param {[type]} obj: Button [description]
  408. * @param {[type]} e: ClickEventInfo [description]
  409. * @return {[type]} [description]
  410. */
  411. function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
  412. if (switch1.tabindex == 0) {
  413. // 전월 말일, 당월 초일 세팅
  414. var currentMonth = String(ds_send.getColumn(0, 'enddd'));
  415. var temp = currentMonth.toDate("YYYYMM");
  416. temp.getAddDate(-1, "M");
  417. var lastmontemp = temp.getDateFormat();
  418. var lastmondd = lastmontemp.substr(0, 6) + "10"; // DB에서 마지막날짜로 세팅해줌
  419. var thismondd = currentMonth.substr(0, 6) + "00";
  420. ds_send.setColumn(0, "lastmondd", lastmondd);
  421. ds_send.setColumn(0, "thismondd", thismondd);
  422. dsf_createDsRow('ds_TRPAS01442', [
  423. { col: 'enddd', type: 'string', size: 256, val: '' },
  424. { col: 'lastmondd', type: 'string', size: 256, val: '' },
  425. { col: 'thismondd', type: 'string', size: 256, val: '' }
  426. ], false);
  427. ds_TRPAS01442.copyRow(0, ds_send, 0);
  428. ds_main_statinfo.clearData();
  429. var oParam = {};
  430. oParam.id = "TRPAS01442";
  431. oParam.service = "planteamstatsapp.planTeamOrdStats";
  432. oParam.method = "reqGetOwnUncoAmt";
  433. oParam.inds = "req=ds_TRPAS01442";
  434. oParam.outds = "ds_main_statinfo=statinfo";
  435. oParam.async = false;
  436. tranf_submit(oParam);
  437. }
  438. if (switch1.tabindex == 1) {
  439. var grd_year_cap = parseInt(String(ds_send.getColumn(0, "year")).substr(0, 4));
  440. var grd_year_1_cap = grd_year_cap - 1;
  441. var grd_year_2_cap = grd_year_cap - 2;
  442. var grd_year_3_cap = grd_year_cap - 3;
  443. switch1.case2.grd_year.setCellProperty("Head", 2, "text", grd_year_3_cap);
  444. switch1.case2.grd_year.setCellProperty("Head", 3, "text", grd_year_2_cap);
  445. switch1.case2.grd_year.setCellProperty("Head", 4, "text", grd_year_1_cap);
  446. switch1.case2.grd_year.setCellProperty("Head", 5, "text", grd_year_cap);
  447. dsf_createDsRow('ds_TRPAS01443', [
  448. { col: 'year', type: 'string', size: 256, val: '' },
  449. { col: 'gijun', type: 'string', size: 256, val: '' }
  450. ], false);
  451. ds_TRPAS01443.copyRow(0, ds_send, 0);
  452. ds_main_h_year.clearData();
  453. var oParam = {};
  454. oParam.id = "TRPAS01443";
  455. oParam.service = "planteamstatsapp.planTeamOrdStats";
  456. oParam.method = "reqGetOwnUncoAmt_year";
  457. oParam.inds = "req=ds_TRPAS01443";
  458. oParam.outds = "ds_main_h_year=year";
  459. oParam.async = false;
  460. tranf_submit(oParam);
  461. }
  462. }
  463. /**
  464. * EXCEL 버튼 클릭 이벤트
  465. * @param {[type]} obj: Button [description]
  466. * @param {[type]} e: ClickEventInfo [description]
  467. * @return {[type]} [description]
  468. */
  469. function grp_btn_excel_onclick(obj: Button, e: ClickEventInfo) {
  470. var enddd = ds_send.getColumn(0, "enddd");
  471. var year = ds_send.getColumn(0, "year_org");
  472. if (switch1.tabindex == 0) {
  473. //엑셀저장 여부(타이틀별)
  474. grdf_exportExcel(switch1.case1.grd_statlist, "본인부담 의료미수금 현황(" + enddd + ")", "sheet1", false, "", "user", false);
  475. }
  476. if (switch1.tabindex == 1) {
  477. //엑셀저장 여부(타이틀별)
  478. grdf_exportExcel(switch1.case2.grd_year, "본인부담 의료미수금 현황_발생년도별(" + year + ")", "sheet1", false, "", "user", false);
  479. }
  480. }
  481. /**
  482. * 출력 버튼 클릭 이벤트
  483. * @param {[type]} obj: Button [description]
  484. * @param {[type]} e: ClickEventInfo [description]
  485. * @return {[type]} [description]
  486. */
  487. function grp_button1_onclick(obj: Button, e: ClickEventInfo) {
  488. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  489. var objDOM = rptf_createDOM(); // DOM 객체 설정
  490. if (switch1.tabindex == 0) {
  491. // 본인부담 의료미수금 현황 출력
  492. rptf_setNodeListToDOM(objDOM, "root/main/statinfo/ret" , ds_main_statinfo);
  493. rptf_setNodeListToDOM(objDOM, "root/send" , ds_send);
  494. rptf_setNodeListToDOM(objDOM, "root/hidden/session" , ds_hidden_session);
  495. rptf_exeReportPreview30(["RPPAO03100"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  496. }
  497. if (switch1.tabindex == 1) {
  498. // 본인부담 의료미수금 현황 출력(발생년도)
  499. rptf_setNodeListToDOM(objDOM, "root/main/h_year/year" , ds_main_h_year);
  500. rptf_setNodeListToDOM(objDOM, "root/main/statinfo/ret" , ds_main_statinfo);
  501. rptf_setNodeListToDOM(objDOM, "root/send" , ds_send);
  502. rptf_setNodeListToDOM(objDOM, "root/hidden/session" , ds_hidden_session);
  503. rptf_exeReportPreview30(["RPPAO03101"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  504. }
  505. }
  506. /**
  507. * 탭 변경 후 이벤트
  508. * @param {[type]} obj: Tab [description]
  509. * @param {[type]} e: TabIndexChangeEventInfo [description]
  510. * @return {[type]} [description]
  511. */
  512. function switch1_onchanged(obj: Tab, e: TabIndexChangeEventInfo) {
  513. if (e.postindex == 0) {
  514. grp.ipt_enddd.visible = true;
  515. grp.ipt_year.visible = false;
  516. grp.cmb_gijun.visible = false;
  517. }
  518. else if (e.postindex == 1) {
  519. grp.ipt_year.position.x = 90;
  520. grp.ipt_year.position.width = 50;
  521. grp.ipt_enddd.visible = false;
  522. grp.ipt_year.visible = true;
  523. grp.cmb_gijun.visible = true;
  524. }
  525. }
  526. /**
  527. * 금종별 그리드 셀 더블 클릭 이벤트
  528. * @param {[type]} obj: Grid [description]
  529. * @param {[type]} e: GridClickEventInfo [description]
  530. * @return {[type]} [description]
  531. */
  532. function switch1_case1_grd_statlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  533. //전월말(입원-보험)
  534. fSearchPopup(e.col, e.row);
  535. }
  536. ]]></Script>
  537. </Form>
  538. </FDL>