SMPAE00100_KU일일마감.xfdl 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAE00100" position="absolute 0 0 1195 780" titletext="일일마감" onload="SMPAE00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="16" position="absolute 0 25 1195 59" class="div_SA2" anchor="left top right"/>
  8. <Static id="caption6" class="tit_1" position="absolute 0 0 90 24" style="" text="일일마감"/>
  9. <Button id="btn_search" class="btn1" taborder="15" position="absolute 1130 30 1190 54" text="조회" onclick="btn_search_onclick" anchor="top right"/>
  10. <Static id="caption35" class="search_name" position="absolute 5 30 79 54" style="" text="조회일자 :"/>
  11. <Calendar id="ipt_enddd" taborder="6" position="absolute 85 30 175 54" style="" anchor="default" onkillfocus="ipt_enddd_onkillfocus" dateformat="yyyy-MM-dd" value="null" onchanged="ipt_enddd_onchanged" autoselect="true" autoskip="true"/>
  12. <Static id="caption63" class="search_name" position="absolute 215 30 294 54" style="" text="수납자 ID :"/>
  13. <Edit id="ipt_endid" position="absolute 300 30 379 54" style="" anchor="default" onkeyup="ipt_endid_onkeyup"/>
  14. <Combo innerdataset="ds_init_user" datacolumn="endnm" codecolumn="endid" columncount="-1" rowcount="-1" id="cmb_pamid" enable="False" taborder="9" position="absolute 385 30 475 54" style="" onitemchanged="cmb_pamid_onitemchanged"/>
  15. <Button id="btn_kiosk" class="btn3" position="absolute 485 30 589 54" style="" text="무인수납내역" onclick="btn_kiosk_onclick"/>
  16. <Tab id="switch1" position="absolute 0 60 1195 558" style="" anchor="all" tabindex="0">
  17. <Tabpages>
  18. <Tabpage id="case1" selected="true" position="absolute 0 0 1195 493" style="anchor:default;margin:0 0 0 0;" anchor="default" text="수납자별 수납내역">
  19. <Layouts>
  20. <Layout>
  21. <Grid id="grd_endlist" binddataset="ds_main_magm" position="absolute 0 30 590 474" style="" oncelldblclick="switch1_case1_grd_endlist_oncelldblclick" onexpanddown="switch1_case1_grd_endlist_onexpanddown" anchor="all" autofittype="col,allrow" autoenter="select">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="0"/>
  26. <Column size="120"/>
  27. <Column size="40"/>
  28. <Column size="40"/>
  29. <Column size="75"/>
  30. <Column size="75"/>
  31. <Column size="75"/>
  32. <Column size="75"/>
  33. <Column size="0"/>
  34. <Column size="80"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell text="업무코드"/>
  42. <Cell col="1" text="업무구분"/>
  43. <Cell col="2" text="건수"/>
  44. <Cell col="3" text="오류"/>
  45. <Cell col="4" text="현금금액"/>
  46. <Cell col="5" text="카드금액"/>
  47. <Cell col="6" text="온라인금액"/>
  48. <Cell col="7" text="미수금액"/>
  49. <Cell col="8" text="endid"/>
  50. <Cell col="9" text="합계"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell text="bind:worktype"/>
  54. <Cell col="1" displaytype="text" style="padding:0 0 0 5;" text="bind:worktypenm" expandshow="show"/>
  55. <Cell col="2" displaytype="number" style="padding:0 5 0 5;" text="bind:execnt" mask="#,##0"/>
  56. <Cell col="3" displaytype="number" style="padding:0 5 0 5;" text="bind:errcnt" mask="#,##0"/>
  57. <Cell col="4" displaytype="number" style="padding:0 5 0 5;" text="bind:cashamt" mask="#,##0"/>
  58. <Cell col="5" displaytype="number" style="padding:0 5 0 5;" text="bind:cardamt" mask="#,##0"/>
  59. <Cell col="6" displaytype="number" style="padding:0 5 0 5;" text="bind:onlineamt" mask="#,##0"/>
  60. <Cell col="7" displaytype="number" style="padding:0 5 0 5;" text="bind:uncoamt" mask="#,##0"/>
  61. <Cell col="8" style="padding:0 5 0 5;" text="bind:rcptrid"/>
  62. <Cell col="9" displaytype="number" style="padding:0 5 0 5;" text="bind:totamt" mask="#,##0"/>
  63. </Band>
  64. </Format>
  65. </Formats>
  66. </Grid>
  67. <Static id="caption77" class="tit_2" position="absolute 0 10 75 29" style="" text="마감내역"/>
  68. <Static id="caption4" class="search_name" position="absolute 355 10 429 29" style="" text="수납위치 :" anchor="top right"/>
  69. <Combo columncount="" rowcount="" id="cmb_rcptpos" position="absolute 430 5 529 29" style="" innerdataset="ds_init_P0128list_P0128" codecolumn="cdid" datacolumn="cdnm" anchor="top right"/>
  70. <Button id="button3" class="btn4" position="absolute 530 5 590 29" text="마감" onclick="switch1_case1_button3_onclick" anchor="top right"/>
  71. <Button id="btn_acptaprv1" taborder="1" text="결재" onclick="switch1_case1_btn_acptaprv1_onclick" class="btn4" position="absolute 715 100 774 125" anchor="top right"/>
  72. <Button id="btn_acptcncl1" taborder="2" text="취소" onclick="switch1_case1_btn_acptcncl1_onclick" class="btn4" position="absolute 775 100 834 125" anchor="top right"/>
  73. <TextArea id="ta_acptaprv1" taborder="3" position="absolute 715 55 834 99" style="align:center middle;" wordwrap="word" readonly="true" anchor="top right"/>
  74. <Div id="cap_aprv1nm" taborder="4" style="background:#ecf7fcff;border:1 solid #b0b0b0ff #b0b0b0ff;align:center middle;" text="수납자" position="absolute 715 30 834 54" anchor="top right"/>
  75. <TextArea id="tar_remark" taborder="5" scrollbars="autovert" wordwrap="char" position="absolute 595 55 714 125" anchor="top right"/>
  76. <Static id="caption34" text="비고" class="cell_1" position="absolute 595 30 714 54" style="align:center ;border:1 solid #B0B0B0 #B0B0B0;" anchor="top right"/>
  77. <TextArea id="ta_acptaprv2" taborder="6" position="absolute 835 55 954 125" style="align:center middle;" readonly="true" anchor="top right"/>
  78. <Div id="cap_aprv2nm" taborder="7" style="background:#ecf7fcff;border:1 solid #b0b0b0ff #b0b0b0ff;align:center middle;" text="담당자" position="absolute 835 30 954 54" anchor="top right"/>
  79. <TextArea id="ta_acptaprv3" taborder="8" enable="true" position="absolute 955 55 1074 125" style="align:center middle;" readonly="true" anchor="top right"/>
  80. <Static id="cap_aprv3nm" position="absolute 955 30 1074 54" style="background:#ecf7fcff;border:1 solid #b0b0b0ff #b0b0b0ff;align:center;" anchor="top right"/>
  81. <TextArea id="ta_acptaprv4" taborder="9" enable="true" position="absolute 1075 55 1195 125" style="align:center middle;" readonly="true" anchor="top right"/>
  82. <Static id="cap_aprv4nm" position="absolute 1075 30 1195 54" style="background:#ecf7fcff;border:1 solid #b0b0b0ff #b0b0b0ff;align:center;" anchor="top right"/>
  83. <Static id="caption2" text="승인내역" class="tit_2" position="absolute 595 10 674 29" anchor="top right"/>
  84. <Grid id="grd_errinfo" taborder="10" binddataset="ds_main_erinfo" position="absolute 595 160 1195 474" anchor="top right bottom" autosizebandtype="allband" autosizingtype="col" selecttype="multiarea" onkeyup="switch1_case1_grd_errinfo_onkeyup">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="100"/>
  89. <Column size="60"/>
  90. <Column size="60"/>
  91. <Column size="70"/>
  92. <Column size="70"/>
  93. <Column size="0"/>
  94. <Column size="600"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell style="padding:0 5 0 5;" text="업무구분"/>
  102. <Cell col="1" style="padding:0 5 0 5;" text="등록번호"/>
  103. <Cell col="2" style="padding:0 5 0 5;" text="환자명"/>
  104. <Cell col="3" style="padding:0 5 0 5;" text="진료일자"/>
  105. <Cell col="4" style="padding:0 5 0 5;" text="수납일자"/>
  106. <Cell col="5" style="padding:0 5 0 5;" text="오류코드"/>
  107. <Cell col="6" style="padding:0 5 0 5;" text="오류메세지"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell style="align:center middle;padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:worktypenm"/>
  111. <Cell col="1" style="padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:pid"/>
  112. <Cell col="2" style="padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:hngnm" wordwrap="char"/>
  113. <Cell col="3" displaytype="date" style="padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  114. <Cell col="4" displaytype="date" style="padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  115. <Cell col="5" style="padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:errcode"/>
  116. <Cell col="6" style="align:left middle;padding:0 5 0 5;background:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);background2:EXPR(errpassyn == &quot;N&quot; ? &quot;#ff8888&quot; : &quot;#ffffff&quot;);" text="bind:errtext"/>
  117. <Cell col="7" text="bind:errpassyn"/>
  118. </Band>
  119. </Format>
  120. <Format id="format_copy"/>
  121. </Formats>
  122. </Grid>
  123. <Static id="caption1" text="오류내역" class="tit_2" position="absolute 595 140 670 159" anchor="top right"/>
  124. <Button id="btn_arpverrinfo" taborder="11" text="오류전체조회" onclick="switch1_case1_btn_arpverrinfo_onclick" class="btn2" position="absolute 1109 135 1195 159" anchor="top right"/>
  125. </Layout>
  126. </Layouts>
  127. </Tabpage>
  128. <Tabpage id="case2" position="absolute 0 0 1195 493" style="" anchor="default" text="환자별 수납내역">
  129. <Layouts>
  130. <Layout>
  131. <Static id="caption5" class="tit_2" position="absolute 0 10 112 29" style="" text="수납 상세 내역"/>
  132. <Combo innerdataset="ds_init_worktypelist_PK021" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_worktype" position="absolute 915 5 1034 29" style="" anchor="top right"/>
  133. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_rcpttype" position="absolute 1035 5 1134 29" style="" anchor="top right">
  134. <Dataset id="innerdataset">
  135. <ColumnInfo>
  136. <Column id="codecolumn"/>
  137. <Column id="datacolumn"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="codecolumn">all</Col>
  142. <Col id="datacolumn">전체</Col>
  143. </Row>
  144. <Row>
  145. <Col id="codecolumn">cashamt</Col>
  146. <Col id="datacolumn">현금금액</Col>
  147. </Row>
  148. <Row>
  149. <Col id="codecolumn">cardamt</Col>
  150. <Col id="datacolumn">카드금액</Col>
  151. </Row>
  152. <Row>
  153. <Col id="codecolumn">onlineamt</Col>
  154. <Col id="datacolumn">온라인금액</Col>
  155. </Row>
  156. <Row>
  157. <Col id="codecolumn">uncoamt</Col>
  158. <Col id="datacolumn">미수금액</Col>
  159. </Row>
  160. </Rows>
  161. </Dataset>
  162. </Combo>
  163. <Button id="button4" class="btn1" position="absolute 1135 5 1195 29" text="조회" onclick="switch1_case2_button4_onclick" anchor="top right"/>
  164. <Grid id="grd_rcptdetlist" binddataset="ds_main_detl" position="absolute 0 30 1195 467" style="" autofittype="col" anchor="all">
  165. <Formats>
  166. <Format id="default">
  167. <Columns>
  168. <Column size="35"/>
  169. <Column size="90"/>
  170. <Column size="55"/>
  171. <Column size="50"/>
  172. <Column size="70"/>
  173. <Column size="100"/>
  174. <Column size="50"/>
  175. <Column size="30"/>
  176. <Column size="30"/>
  177. <Column size="80"/>
  178. <Column size="75"/>
  179. <Column size="75"/>
  180. <Column size="70"/>
  181. <Column size="70"/>
  182. <Column size="55"/>
  183. <Column size="70"/>
  184. <Column size="42"/>
  185. <Column size="30"/>
  186. <Column size="50"/>
  187. <Column size="60"/>
  188. </Columns>
  189. <Rows>
  190. <Row size="24" band="head"/>
  191. <Row size="24"/>
  192. <Row size="24" band="summ"/>
  193. </Rows>
  194. <Band id="head">
  195. <Cell/>
  196. <Cell col="1" text="업무구분"/>
  197. <Cell col="2" text="환자번호"/>
  198. <Cell col="3" text="성명"/>
  199. <Cell col="4" text="진료일자"/>
  200. <Cell col="5" text="진료과"/>
  201. <Cell col="6" text="진료의"/>
  202. <Cell col="7" colspan="2" text="보험유형" taborder="undefined"/>
  203. <Cell col="9" text="현금금액"/>
  204. <Cell col="10" text="카드금액"/>
  205. <Cell col="11" text="온라인금액"/>
  206. <Cell col="12" text="미수금액"/>
  207. <Cell col="13" text="수납일자"/>
  208. <Cell col="14" text="수납시간"/>
  209. <Cell col="15" text="영수일자"/>
  210. <Cell col="16" colspan="2" text="영수번호" taborder="undefined"/>
  211. <Cell col="18" text="수납자"/>
  212. <Cell col="19" text="무인번호"/>
  213. </Band>
  214. <Band id="body">
  215. <Cell celltype="head" expr="currow + 1"/>
  216. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:worktype" combodataset="ds_init_worktypelist_PK021" combocodecol="cdid" combodatacol="cdnm"/>
  217. <Cell col="2" text="bind:pid"/>
  218. <Cell col="3" text="bind:hngnm"/>
  219. <Cell col="4" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  220. <Cell col="5" text="bind:orddeptnm"/>
  221. <Cell col="6" text="bind:medispclnm"/>
  222. <Cell col="7" text="bind:insukind"/>
  223. <Cell col="8" text="bind:suppkind"/>
  224. <Cell col="9" displaytype="number" text="bind:cashamt" mask="#,##0"/>
  225. <Cell col="10" displaytype="number" text="bind:cardamt" mask="#,##0"/>
  226. <Cell col="11" displaytype="number" text="bind:onlineamt" mask="#,##0"/>
  227. <Cell col="12" displaytype="number" text="bind:uncoamt" mask="#,##0"/>
  228. <Cell col="13" displaytype="date" text="bind:rcptexecdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  229. <Cell col="14" displaytype="date" text="bind:rcpttm" mask="HH:mm:ss" calendardisplaynulltype="nulltext"/>
  230. <Cell col="15" displaytype="date" text="bind:rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  231. <Cell col="16" text="bind:rcptno"/>
  232. <Cell col="17" text="bind:rcptseqno"/>
  233. <Cell col="18" text="bind:rcptrnm"/>
  234. <Cell col="19" text="bind:ktrmnno"/>
  235. </Band>
  236. <Band id="summary">
  237. <Cell style="background:#99ff99ff;background2:#99ff99ff;"/>
  238. <Cell col="1" style="background:#99ff99ff;background2:#99ff99ff;font:Dotum,9, bold;" text="합계"/>
  239. <Cell col="2" style="background:#99ff99ff;background2:#99ff99ff;"/>
  240. <Cell col="3" style="background:#99ff99ff;background2:#99ff99ff;"/>
  241. <Cell col="4" style="background:#99ff99ff;background2:#99ff99ff;"/>
  242. <Cell col="5" style="background:#99ff99ff;background2:#99ff99ff;"/>
  243. <Cell col="6" style="background:#99ff99ff;background2:#99ff99ff;"/>
  244. <Cell col="7" style="background:#99ff99ff;background2:#99ff99ff;"/>
  245. <Cell col="8" style="background:#99ff99ff;background2:#99ff99ff;"/>
  246. <Cell col="9" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:Dotum,9, bold;" expr="getSum('cashamt')" mask="#,##0"/>
  247. <Cell col="10" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:Dotum,9, bold;" expr="getSum('cardamt')" mask="#,##0"/>
  248. <Cell col="11" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:Dotum,9, bold;" expr="getSum('onlineamt')" mask="#,##0"/>
  249. <Cell col="12" displaytype="number" style="background:#99ff99ff;background2:#99ff99ff;font:Dotum,9, bold;" expr="getSum('uncoamt')" mask="#,##0"/>
  250. <Cell col="13" style="background:#99ff99ff;background2:#99ff99ff;"/>
  251. <Cell col="14" style="background:#99ff99ff;background2:#99ff99ff;"/>
  252. <Cell col="15" style="background:#99ff99ff;background2:#99ff99ff;"/>
  253. <Cell col="16" style="background:#99ff99ff;background2:#99ff99ff;"/>
  254. <Cell col="17" style="background:#99ff99ff;background2:#99ff99ff;"/>
  255. <Cell col="18" style="background:#99ff99ff;background2:#99ff99ff;"/>
  256. <Cell col="19" style="background:#99ff99ff;background2:#99ff99ff;"/>
  257. </Band>
  258. </Format>
  259. </Formats>
  260. </Grid>
  261. <Button id="button5" class="btn2" position="absolute 870 5 914 29" text="엑셀" onclick="switch1_case2_button5_onclick" anchor="top right"/>
  262. </Layout>
  263. </Layouts>
  264. </Tabpage>
  265. </Tabpages>
  266. </Tab>
  267. <Static id="caption3" class="tit_2" position="absolute 0 575 75 594" style="" text="수납내역" anchor="left bottom"/>
  268. <Button id="btn_prtrcpt" class="btn4" position="absolute 1140 570 1195 594" text="출력" onclick="btn_prtrcpt_onclick" anchor="right bottom"/>
  269. <Grid id="grd_mgsm" taborder="17" useinputpanel="false" position="absolute 0 595 1195 780" selecttype="cell" binddataset="ds_main_mgsm_disp" autofittype="col,allrow" anchor="left right bottom" style="border:1 solid #33bbbbff,0 solid #b0b0b0ff,0 solid #b0b0b0ff,0 solid #b0b0b0ff;">
  270. <Formats>
  271. <Format id="default">
  272. <Columns>
  273. <Column size="90"/>
  274. <Column size="85"/>
  275. <Column size="90"/>
  276. <Column size="85"/>
  277. <Column size="90"/>
  278. <Column size="85"/>
  279. <Column size="80"/>
  280. <Column size="85"/>
  281. <Column size="90"/>
  282. <Column size="85"/>
  283. <Column size="90"/>
  284. <Column size="85"/>
  285. <Column size="70"/>
  286. <Column size="85"/>
  287. </Columns>
  288. <Rows>
  289. <Row size="24"/>
  290. </Rows>
  291. <Band id="body">
  292. <Cell style="align:left;background:#cce8ffff;background2:#cce8ffff;font:EXPR(currow &lt; 4 ? &quot;돋움,8,bold&quot; : &quot;돋움,8,normal&quot;);selectbackground:#cce8ffff;selectfont:EXPR(currow &lt; 4 ? &quot;굴림,8,bold&quot; : &quot;굴림,8,normal&quot;);" text="bind:c01"/>
  293. <Cell col="1" displaytype="number" style="padding:0 5 0 0;background:EXPR(currow &lt; 4 ? &quot;#ffffd7&quot; : &quot;#ffffff&quot;);background2:EXPR(currow &lt; 4 ? &quot;#ffffd7&quot; : &quot;#ffffff&quot;);font:EXPR(currow &lt; 4 ? &quot;굴림,9,bold&quot; : &quot;굴림,9,normal&quot;);selectbackground:EXPR(currow &lt; 4 ? &quot;#ffffd7&quot; : &quot;#ffffff&quot;);selectfont:EXPR(currow &lt; 4 ? &quot;굴림,9,bold&quot; : &quot;굴림,9,normal&quot;);" text="bind:c02"/>
  294. <Cell col="2" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c03"/>
  295. <Cell col="3" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c04"/>
  296. <Cell col="4" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c05"/>
  297. <Cell col="5" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c06"/>
  298. <Cell col="6" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c07"/>
  299. <Cell col="7" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c08"/>
  300. <Cell col="8" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c09"/>
  301. <Cell col="9" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c10"/>
  302. <Cell col="10" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c11"/>
  303. <Cell col="11" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c12"/>
  304. <Cell col="12" style="align:left;background:#cce8ffff;background2:#cce8ffff;font:돋움,8;selectbackground:#cce8ffff;" text="bind:c13"/>
  305. <Cell col="13" displaytype="number" style="padding:0 5 0 0;background:#ffffffff;background2:#ffffffff;selectbackground:#ffffffff;" text="bind:c14"/>
  306. </Band>
  307. </Format>
  308. </Formats>
  309. </Grid>
  310. </Layout>
  311. </Layouts>
  312. <Objects>
  313. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  314. <ColumnInfo>
  315. <Column id="aprvinfo" type="STRING" size="256"/>
  316. <Column id="aprverrinfo" type="STRING" size="256"/>
  317. <Column id="magminfo" type="STRING" size="256"/>
  318. <Column id="magmstat" type="STRING" size="256"/>
  319. </ColumnInfo>
  320. <Rows>
  321. <Row>
  322. <Col id="aprvinfo"/>
  323. </Row>
  324. </Rows>
  325. </Dataset>
  326. <Dataset id="ds_hidden_aprverrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  327. <Dataset id="ds_hidden_aprvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  328. <Dataset id="ds_hidden_magminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  329. <Dataset id="ds_hidden_magmstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  330. <Dataset id="ds_hidden_rcptmagmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  331. <ColumnInfo>
  332. <Column id="rcptmagminfo" type="STRING" size="256"/>
  333. </ColumnInfo>
  334. <Rows>
  335. <Row>
  336. <Col id="rcptmagminfo"/>
  337. </Row>
  338. </Rows>
  339. </Dataset>
  340. <Dataset id="ds_hidden_rcptmagmlist_rcptmagminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  341. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  342. <ColumnInfo>
  343. <Column id="rcptrinfo" type="STRING" size="256"/>
  344. <Column id="worktypelist" type="STRING" size="256"/>
  345. <Column id="P0128list" type="STRING" size="256"/>
  346. </ColumnInfo>
  347. <Rows>
  348. <Row>
  349. <Col id="rcptrinfo"/>
  350. <Col id="worktypelist"/>
  351. <Col id="P0128list"/>
  352. </Row>
  353. </Rows>
  354. </Dataset>
  355. <Dataset id="ds_init_P0128list_P0128" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  356. <Dataset id="ds_init_user" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  357. <Dataset id="ds_init_worktypelist_PK021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  358. <ColumnInfo>
  359. <Column id="cdid" type="STRING" size="256"/>
  360. <Column id="cdnm" type="STRING" size="256"/>
  361. </ColumnInfo>
  362. </Dataset>
  363. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  364. <ColumnInfo/>
  365. </Dataset>
  366. <Dataset id="ds_main_endinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  367. <ColumnInfo>
  368. <Column id="endinfolist" type="STRING" size="256"/>
  369. </ColumnInfo>
  370. <Rows>
  371. <Row>
  372. <Col id="endinfolist"/>
  373. </Row>
  374. </Rows>
  375. </Dataset>
  376. <Dataset id="ds_main_magm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  377. <Dataset id="ds_main_mgsm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  378. <ColumnInfo>
  379. <Column id="cashamt" type="STRING" size="256"/>
  380. <Column id="cardamt" type="STRING" size="256"/>
  381. <Column id="onlineamt" type="STRING" size="256"/>
  382. <Column id="uncoamt" type="STRING" size="256"/>
  383. <Column id="ocashamt" type="STRING" size="256"/>
  384. <Column id="ocardamt" type="STRING" size="256"/>
  385. <Column id="oonlineamt" type="STRING" size="256"/>
  386. <Column id="icashamt" type="STRING" size="256"/>
  387. <Column id="icardamt" type="STRING" size="256"/>
  388. <Column id="ionlineamt" type="STRING" size="256"/>
  389. <Column id="bogjdcashamt" type="STRING" size="256"/>
  390. <Column id="bogjdcardamt" type="STRING" size="256"/>
  391. <Column id="bogjdonlineamt" type="STRING" size="256"/>
  392. <Column id="bogjdreplamt" type="STRING" size="256"/>
  393. <Column id="bogjrcashamt" type="STRING" size="256"/>
  394. <Column id="bogjrcardamt" type="STRING" size="256"/>
  395. <Column id="bogjronlineamt" type="STRING" size="256"/>
  396. <Column id="bogjrreplamt" type="STRING" size="256"/>
  397. <Column id="bldcuamt" type="STRING" size="256"/>
  398. <Column id="bloddiscamt" type="STRING" size="256"/>
  399. <Column id="carduamt" type="STRING" size="256"/>
  400. <Column id="carddcamt" type="STRING" size="256"/>
  401. <Column id="heallifeamtclamamt" type="STRING" size="256"/>
  402. <Column id="heallifeuamt" type="STRING" size="256"/>
  403. <Column id="pregdmndamt" type="STRING" size="256"/>
  404. <Column id="preguamt" type="STRING" size="256"/>
  405. <Column id="clamuamt" type="STRING" size="256"/>
  406. <Column id="clamnamt" type="STRING" size="256"/>
  407. <Column id="cvapuamt" type="STRING" size="256"/>
  408. <Column id="cmpyuamt" type="STRING" size="256"/>
  409. <Column id="cmpycashamt" type="STRING" size="256"/>
  410. <Column id="cmpycardamt" type="STRING" size="256"/>
  411. <Column id="cmpyonlineamt" type="STRING" size="256"/>
  412. <Column id="insuuamt" type="STRING" size="256"/>
  413. <Column id="insuonlineamt" type="STRING" size="256"/>
  414. <Column id="uncouamt" type="STRING" size="256"/>
  415. <Column id="uncocashamt" type="STRING" size="256"/>
  416. <Column id="uncocardamt" type="STRING" size="256"/>
  417. <Column id="uncoonlineamt" type="STRING" size="256"/>
  418. <Column id="uncodebtamt" type="STRING" size="256"/>
  419. <Column id="uncoaprvamt" type="STRING" size="256"/>
  420. <Column id="ptuncashamt" type="STRING" size="256"/>
  421. <Column id="ptuncardamt" type="STRING" size="256"/>
  422. <Column id="ptunonlineamt" type="STRING" size="256"/>
  423. <Column id="kpamamt" type="STRING" size="256"/>
  424. <Column id="kpamdamt" type="STRING" size="256"/>
  425. <Column id="taxamt" type="STRING" size="256"/>
  426. <Column id="discamt" type="STRING" size="256"/>
  427. <Column id="reduamt" type="STRING" size="256"/>
  428. <Column id="aprv1" type="STRING" size="256"/>
  429. <Column id="aprv2" type="STRING" size="256"/>
  430. <Column id="aprv3" type="STRING" size="256"/>
  431. <Column id="aprv4" type="STRING" size="256"/>
  432. <Column id="remark" type="STRING" size="256"/>
  433. </ColumnInfo>
  434. <Rows>
  435. <Row>
  436. <Col id="cashamt"/>
  437. <Col id="cardamt"/>
  438. <Col id="onlineamt"/>
  439. <Col id="uncoamt"/>
  440. <Col id="ocashamt"/>
  441. <Col id="ocardamt"/>
  442. <Col id="oonlineamt"/>
  443. <Col id="icashamt"/>
  444. <Col id="icardamt"/>
  445. <Col id="ionlineamt"/>
  446. <Col id="bogjdcashamt"/>
  447. <Col id="bogjdcardamt"/>
  448. <Col id="bogjdonlineamt"/>
  449. <Col id="bogjdreplamt"/>
  450. <Col id="bogjrcashamt"/>
  451. <Col id="bogjrcardamt"/>
  452. <Col id="bogjronlineamt"/>
  453. <Col id="bogjrreplamt"/>
  454. <Col id="bldcuamt"/>
  455. <Col id="bloddiscamt"/>
  456. <Col id="carduamt"/>
  457. <Col id="carddcamt"/>
  458. <Col id="heallifeamtclamamt"/>
  459. <Col id="heallifeuamt"/>
  460. <Col id="pregdmndamt"/>
  461. <Col id="preguamt"/>
  462. <Col id="clamuamt"/>
  463. <Col id="clamnamt"/>
  464. <Col id="cvapuamt"/>
  465. <Col id="cmpyuamt"/>
  466. <Col id="cmpycashamt"/>
  467. <Col id="cmpycardamt"/>
  468. <Col id="cmpyonlineamt"/>
  469. <Col id="insuuamt"/>
  470. <Col id="insuonlineamt"/>
  471. <Col id="uncouamt"/>
  472. <Col id="uncocashamt"/>
  473. <Col id="uncocardamt"/>
  474. <Col id="uncoonlineamt"/>
  475. <Col id="uncodebtamt"/>
  476. <Col id="uncoaprvamt"/>
  477. <Col id="ptuncashamt"/>
  478. <Col id="ptuncardamt"/>
  479. <Col id="ptunonlineamt"/>
  480. <Col id="kpamamt"/>
  481. <Col id="kpamdamt"/>
  482. <Col id="taxamt"/>
  483. <Col id="discamt"/>
  484. <Col id="reduamt"/>
  485. <Col id="aprv1"/>
  486. <Col id="aprv2"/>
  487. <Col id="aprv3"/>
  488. <Col id="aprv4"/>
  489. <Col id="remark"/>
  490. </Row>
  491. </Rows>
  492. </Dataset>
  493. <Dataset id="ds_main_mgsm_disp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  494. <ColumnInfo>
  495. <Column id="c01" type="STRING" size="256"/>
  496. <Column id="c02" type="STRING" size="256"/>
  497. <Column id="c03" type="STRING" size="256"/>
  498. <Column id="c04" type="STRING" size="256"/>
  499. <Column id="c05" type="STRING" size="256"/>
  500. <Column id="c06" type="STRING" size="256"/>
  501. <Column id="c07" type="STRING" size="256"/>
  502. <Column id="c08" type="STRING" size="256"/>
  503. <Column id="c09" type="STRING" size="256"/>
  504. <Column id="c10" type="STRING" size="256"/>
  505. <Column id="c11" type="STRING" size="256"/>
  506. <Column id="c12" type="STRING" size="256"/>
  507. <Column id="c13" type="STRING" size="256"/>
  508. <Column id="c14" type="STRING" size="256"/>
  509. </ColumnInfo>
  510. <Rows>
  511. <Row>
  512. <Col id="c01">현금</Col>
  513. <Col id="c02"/>
  514. <Col id="c03">미수발생</Col>
  515. <Col id="c04"/>
  516. <Col id="c05">외래선수 현금</Col>
  517. <Col id="c06"/>
  518. <Col id="c07">청구미수 발생</Col>
  519. <Col id="c08"/>
  520. <Col id="c09">업체미수 발생</Col>
  521. <Col id="c10"/>
  522. <Col id="c11">건유비 발생</Col>
  523. <Col id="c12"/>
  524. <Col id="c13">민원입금</Col>
  525. <Col id="c14"/>
  526. </Row>
  527. <Row>
  528. <Col id="c01">카드</Col>
  529. <Col id="c02"/>
  530. <Col id="c03">미수입금 현금</Col>
  531. <Col id="c04"/>
  532. <Col id="c05">외래선수 카드</Col>
  533. <Col id="c06"/>
  534. <Col id="c07">청구미수 입금</Col>
  535. <Col id="c08"/>
  536. <Col id="c09">업체미수 현금</Col>
  537. <Col id="c10"/>
  538. <Col id="c11">건유비 입금</Col>
  539. <Col id="c12"/>
  540. <Col id="c13">부가가치세</Col>
  541. <Col id="c14"/>
  542. </Row>
  543. <Row>
  544. <Col id="c01">온라인</Col>
  545. <Col id="c02"/>
  546. <Col id="c03">미수입금 카드</Col>
  547. <Col id="c04"/>
  548. <Col id="c05">외래선수 온라인</Col>
  549. <Col id="c06"/>
  550. <Col id="c07">미수대손</Col>
  551. <Col id="c08"/>
  552. <Col id="c09">업체미수 카드</Col>
  553. <Col id="c10"/>
  554. <Col id="c11">산전비 발생</Col>
  555. <Col id="c12"/>
  556. <Col id="c13">할인금액</Col>
  557. <Col id="c14"/>
  558. </Row>
  559. <Row>
  560. <Col id="c01">미수</Col>
  561. <Col id="c02"/>
  562. <Col id="c03">미수입금 온라인</Col>
  563. <Col id="c04"/>
  564. <Col id="c05">외래선수 대체</Col>
  565. <Col id="c06"/>
  566. <Col id="c07">승인미수</Col>
  567. <Col id="c08"/>
  568. <Col id="c09">업체미수 온라인</Col>
  569. <Col id="c10"/>
  570. <Col id="c11">산전비 입금</Col>
  571. <Col id="c12"/>
  572. <Col id="c13">감액</Col>
  573. <Col id="c14"/>
  574. </Row>
  575. <Row>
  576. <Col id="c01">외래수납 현금</Col>
  577. <Col id="c02"/>
  578. <Col id="c03">입원수납 현금</Col>
  579. <Col id="c04"/>
  580. <Col id="c05">가정선수 현금</Col>
  581. <Col id="c06"/>
  582. <Col id="c07">장기요양 청구</Col>
  583. <Col id="c08"/>
  584. <Col id="c09">독촉미수 현금</Col>
  585. <Col id="c10"/>
  586. <Col id="c11">보관금 발생</Col>
  587. <Col id="c12"/>
  588. <Col id="c13"/>
  589. <Col id="c14"/>
  590. </Row>
  591. <Row>
  592. <Col id="c01">외래수납 카드</Col>
  593. <Col id="c02"/>
  594. <Col id="c03">입원수납 카드</Col>
  595. <Col id="c04"/>
  596. <Col id="c05">가정선수 카드</Col>
  597. <Col id="c06"/>
  598. <Col id="c07">장기요양 입금</Col>
  599. <Col id="c08"/>
  600. <Col id="c09">독촉미수 카드</Col>
  601. <Col id="c10"/>
  602. <Col id="c11">보관금 환불</Col>
  603. <Col id="c12"/>
  604. <Col id="c13"/>
  605. <Col id="c14"/>
  606. </Row>
  607. <Row>
  608. <Col id="c01">외래수납 온라인</Col>
  609. <Col id="c02"/>
  610. <Col id="c03">입원수납 온라인</Col>
  611. <Col id="c04"/>
  612. <Col id="c05">가정선수 온라인</Col>
  613. <Col id="c06"/>
  614. <Col id="c07">수혈대체 발생</Col>
  615. <Col id="c08"/>
  616. <Col id="c09">독촉미수 온라인</Col>
  617. <Col id="c10"/>
  618. <Col id="c11">카드입금 금액</Col>
  619. <Col id="c12"/>
  620. <Col id="c13"/>
  621. <Col id="c14"/>
  622. </Row>
  623. <Row>
  624. <Col id="c01"/>
  625. <Col id="c02"/>
  626. <Col id="c03"/>
  627. <Col id="c04"/>
  628. <Col id="c05">가정선수 대체</Col>
  629. <Col id="c06"/>
  630. <Col id="c07">수혈대체 입금</Col>
  631. <Col id="c08"/>
  632. <Col id="c09"/>
  633. <Col id="c10"/>
  634. <Col id="c11">카드입금 수수료</Col>
  635. <Col id="c12"/>
  636. <Col id="c13"/>
  637. <Col id="c14"/>
  638. </Row>
  639. </Rows>
  640. </Dataset>
  641. <Dataset id="ds_main_user" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  642. <ColumnInfo>
  643. <Column id="deptcd" type="STRING" size="256"/>
  644. <Column id="telno" type="STRING" size="256"/>
  645. <Column id="automagm" type="STRING" size="256"/>
  646. <Column id="uncoyn" type="STRING" size="256"/>
  647. <Column id="rcptposcd" type="STRING" size="256"/>
  648. </ColumnInfo>
  649. <Rows>
  650. <Row>
  651. <Col id="deptcd"/>
  652. <Col id="telno"/>
  653. <Col id="automagm"/>
  654. <Col id="uncoyn"/>
  655. <Col id="rcptposcd"/>
  656. </Row>
  657. </Rows>
  658. </Dataset>
  659. <Dataset id="ds_main_erinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  660. <ColumnInfo/>
  661. </Dataset>
  662. <Dataset id="ds_main_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  663. <Dataset id="ds_report" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  664. <ColumnInfo>
  665. <Column id="rcptlist" type="STRING" size="256"/>
  666. </ColumnInfo>
  667. </Dataset>
  668. <Dataset id="ds_report_prtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  669. <ColumnInfo>
  670. <Column id="instcd" type="STRING" size="256"/>
  671. <Column id="enddd" type="STRING" size="256"/>
  672. <Column id="rcptnm" type="STRING" size="256"/>
  673. <Column id="rcptdt" type="STRING" size="256"/>
  674. <Column id="prtnm" type="STRING" size="256"/>
  675. <Column id="prtdt" type="STRING" size="256"/>
  676. </ColumnInfo>
  677. </Dataset>
  678. <Dataset id="ds_report_rcptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  679. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  680. <ColumnInfo/>
  681. </Dataset>
  682. <Dataset id="ds_send_magm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  683. <ColumnInfo>
  684. <Column id="fromdd" type="STRING" size="256"/>
  685. <Column id="todd" type="STRING" size="256"/>
  686. <Column id="endflag" type="STRING" size="256"/>
  687. </ColumnInfo>
  688. <Rows>
  689. <Row>
  690. <Col id="fromdd"/>
  691. <Col id="todd"/>
  692. <Col id="endflag"/>
  693. </Row>
  694. </Rows>
  695. </Dataset>
  696. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  697. <ColumnInfo>
  698. <Column id="enddd" type="STRING" size="256"/>
  699. <Column id="endid" type="STRING" size="256"/>
  700. <Column id="pamid" type="STRING" size="256"/>
  701. <Column id="worktype" type="STRING" size="256"/>
  702. <Column id="rcpttype" type="STRING" size="256"/>
  703. <Column id="gubun" type="STRING" size="256"/>
  704. <Column id="acpttype" type="STRING" size="256"/>
  705. <Column id="remark" type="STRING" size="256"/>
  706. <Column id="staffkind" type="STRING" size="256"/>
  707. <Column id="rcptposcd" type="STRING" size="256"/>
  708. </ColumnInfo>
  709. <Rows>
  710. <Row>
  711. <Col id="enddd"/>
  712. <Col id="endid"/>
  713. <Col id="pamid"/>
  714. <Col id="worktype"/>
  715. <Col id="rcpttype"/>
  716. <Col id="gubun"/>
  717. <Col id="acpttype"/>
  718. <Col id="remark"/>
  719. <Col id="staffkind"/>
  720. <Col id="rcptposcd"/>
  721. </Row>
  722. </Rows>
  723. </Dataset>
  724. <Dataset id="ds_init_staff" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  725. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  726. <ColumnInfo>
  727. <Column id="temp" type="STRING" size="256"/>
  728. </ColumnInfo>
  729. <Rows>
  730. <Row>
  731. <Col id="temp"/>
  732. </Row>
  733. </Rows>
  734. </Dataset>
  735. </Objects>
  736. <Bind>
  737. <BindItem id="item0" compid="ipt_enddd" propid="value" datasetid="ds_send_srch" columnid="enddd"/>
  738. <BindItem id="item1" compid="ipt_endid" propid="value" datasetid="ds_send_srch" columnid="endid"/>
  739. <BindItem id="item2" compid="cmb_pamid" propid="value" datasetid="ds_send_srch" columnid="pamid"/>
  740. <BindItem id="item3" compid="switch1.case1.cmb_rcptpos" propid="value" datasetid="ds_send_srch" columnid="rcptposcd"/>
  741. <BindItem id="item9" compid="switch1.case2.cmb_worktype" propid="value" datasetid="ds_send_srch" columnid="worktype"/>
  742. <BindItem id="item10" compid="switch1.case2.cmb_rcpttype" propid="value" datasetid="ds_send_srch" columnid="rcpttype"/>
  743. <BindItem id="item113" compid="switch1.case1.ta_acptaprv1" propid="value" datasetid="ds_main_mgsm" columnid="aprv1"/>
  744. <BindItem id="item114" compid="switch1.case1.tar_remark" propid="value" datasetid="ds_main_mgsm" columnid="remark"/>
  745. <BindItem id="item115" compid="switch1.case1.ta_acptaprv2" propid="value" datasetid="ds_main_mgsm" columnid="aprv2"/>
  746. <BindItem id="item116" compid="switch1.case1.ta_acptaprv3" propid="value" datasetid="ds_main_mgsm" columnid="aprv3"/>
  747. <BindItem id="item117" compid="switch1.case1.ta_acptaprv4" propid="value" datasetid="ds_main_mgsm" columnid="aprv4"/>
  748. </Bind>
  749. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  750. include 'pam_pamcomnxp::PAM001.xjs';
  751. var arErrorCode = new HashArray();
  752. //스크립트 시작 ***
  753. //전체에서 event와 src를 제외한 script 를 모두포함.
  754. var STAFFKIND = "";
  755. var APRV3_NM = "";
  756. var APRV4_NM = "";
  757. function formatNumber (num) {
  758. return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
  759. }
  760. /*
  761. * 기본 코드 조회
  762. */
  763. function fGetBaseInfo() {
  764. pamfGetCodeList([{ dsNm: "ds_init_worktypelist_PK021", cdGrpId: "PK021" }
  765. , { dsNm: "ds_init_P0128list_P0128", cdGrpId: "P0128" }]);
  766. frmf_addComboItem("switch1.case2.cmb_worktype", "전체", "all", "above");
  767. ds_send_srch.setColumn(0, "worktype", "all");
  768. ds_send_srch.setColumn(0, "rcpttype", "all");
  769. //수납마감 사용자조회
  770. fPamuserSearch();
  771. }
  772. /*
  773. * 수납마감 사용자조회
  774. */
  775. function fPamuserSearch() {
  776. var oParam = {};
  777. oParam.id = "TRPAE00104";
  778. oParam.service = "pamendstatsapp.PamEndStats";
  779. oParam.method = "reqGetRcptrIdList";
  780. oParam.inds = "req=ds_send_srch";
  781. oParam.outds = "ds_init_user=rcptrlist";
  782. oParam.async = false;
  783. tranf_submit(oParam);
  784. if (!utlf_isNull(ds_init_user.getColumnInfo("rcptrid"))) {
  785. ds_init_user.updateColID("rcptrid", "endid");
  786. ds_init_user.updateColID("rcptrnm", "endnm");
  787. }
  788. }
  789. /*
  790. * 마감 조회
  791. */
  792. function fGetEndinfo() {
  793. ds_main_erinfo.clearData();
  794. ds_main_mgsm.clearData();
  795. ds_main_user.clearData();
  796. var oParam = {};
  797. oParam.id = "TRPAE00101";
  798. oParam.service = "pamendstatsapp.PamEndStats";
  799. oParam.method = "reqGetPamEndStats";
  800. oParam.inds = "req=ds_send_srch";
  801. oParam.outds = "ds_main_magm=endinfo "
  802. + "ds_main_mgsm=rcptinfo "
  803. + "ds_main_user=rcptuser";
  804. oParam.async = false;
  805. tranf_submit(oParam);
  806. // 마감 금액 표시 DS 설정
  807. ds_main_mgsm_disp.setColumn(0, "c02", ds_main_mgsm.getColumn(0, "cashamt")); // 현금
  808. ds_main_mgsm_disp.setColumn(1, "c02", ds_main_mgsm.getColumn(0, "cardamt")); // 카드
  809. ds_main_mgsm_disp.setColumn(2, "c02", ds_main_mgsm.getColumn(0, "onlineamt")); // 온라인
  810. ds_main_mgsm_disp.setColumn(3, "c02", ds_main_mgsm.getColumn(0, "uncoamt")); // 미수
  811. ds_main_mgsm_disp.setColumn(4, "c02", ds_main_mgsm.getColumn(0, "ocashamt")); // 외래수납 현금
  812. ds_main_mgsm_disp.setColumn(5, "c02", ds_main_mgsm.getColumn(0, "ocardamt")); // 외래수납 카드
  813. ds_main_mgsm_disp.setColumn(6, "c02", ds_main_mgsm.getColumn(0, "oonlineamt")); // 외래수납 온라인
  814. ds_main_mgsm_disp.setColumn(0, "c04", ds_main_mgsm.getColumn(0, "uncouamt")); // 미수발생
  815. ds_main_mgsm_disp.setColumn(1, "c04", ds_main_mgsm.getColumn(0, "uncocashamt")); // 미수입금 현금
  816. ds_main_mgsm_disp.setColumn(2, "c04", ds_main_mgsm.getColumn(0, "uncocardamt")); // 미수입금 카드
  817. ds_main_mgsm_disp.setColumn(3, "c04", ds_main_mgsm.getColumn(0, "uncoonlineamt")); // 미수입금 온라인
  818. ds_main_mgsm_disp.setColumn(4, "c04", ds_main_mgsm.getColumn(0, "icashamt")); // 입원수납 현금
  819. ds_main_mgsm_disp.setColumn(5, "c04", ds_main_mgsm.getColumn(0, "icardamt")); // 입원수납 카드
  820. ds_main_mgsm_disp.setColumn(6, "c04", ds_main_mgsm.getColumn(0, "ionlineamt")); // 입원수납 온라인
  821. ds_main_mgsm_disp.setColumn(0, "c06", ds_main_mgsm.getColumn(0, "bogjdcashamt")); // 외래선수 현금
  822. ds_main_mgsm_disp.setColumn(1, "c06", ds_main_mgsm.getColumn(0, "bogjdcardamt")); // 외래선수 카드
  823. ds_main_mgsm_disp.setColumn(2, "c06", ds_main_mgsm.getColumn(0, "bogjdonlineamt")); // 외래선수 온라인
  824. ds_main_mgsm_disp.setColumn(3, "c06", ds_main_mgsm.getColumn(0, "bogjdreplamt")); // 외래선수 대체
  825. ds_main_mgsm_disp.setColumn(4, "c06", ds_main_mgsm.getColumn(0, "bogjrcashamt")); // 가정선수 현금
  826. ds_main_mgsm_disp.setColumn(5, "c06", ds_main_mgsm.getColumn(0, "bogjrcardamt")); // 가정선수 카드
  827. ds_main_mgsm_disp.setColumn(6, "c06", ds_main_mgsm.getColumn(0, "bogjronlineamt")); // 가정선수 온라인
  828. ds_main_mgsm_disp.setColumn(7, "c06", ds_main_mgsm.getColumn(0, "bogjrreplamt")); // 가정선수 대체
  829. ds_main_mgsm_disp.setColumn(0, "c08", ds_main_mgsm.getColumn(0, "insuuamt")); // 청구미수 발생
  830. ds_main_mgsm_disp.setColumn(1, "c08", ds_main_mgsm.getColumn(0, "insuonlineamt")); // 청구미수 입금
  831. ds_main_mgsm_disp.setColumn(2, "c08", ds_main_mgsm.getColumn(0, "uncodebtamt")); // 미수대손
  832. ds_main_mgsm_disp.setColumn(3, "c08", ds_main_mgsm.getColumn(0, "uncoaprvamt")); // 승인미수
  833. ds_main_mgsm_disp.setColumn(4, "c08", ds_main_mgsm.getColumn(0, "clamnamt")); // 장기요양 청구
  834. ds_main_mgsm_disp.setColumn(5, "c08", ds_main_mgsm.getColumn(0, "clamuamt")); // 장기요양 입금
  835. ds_main_mgsm_disp.setColumn(6, "c08", ds_main_mgsm.getColumn(0, "bloddiscamt")); // 수혈대체 발생
  836. ds_main_mgsm_disp.setColumn(7, "c08", ds_main_mgsm.getColumn(0, "bldcuamt")); // 수혈대체 입금
  837. ds_main_mgsm_disp.setColumn(0, "c10", ds_main_mgsm.getColumn(0, "cmpyuamt")); // 업체미수 발생
  838. ds_main_mgsm_disp.setColumn(1, "c10", ds_main_mgsm.getColumn(0, "cmpycashamt")); // 업체미수 현금
  839. ds_main_mgsm_disp.setColumn(2, "c10", ds_main_mgsm.getColumn(0, "cmpycardamt")); // 업체미수 카드
  840. ds_main_mgsm_disp.setColumn(3, "c10", ds_main_mgsm.getColumn(0, "cmpyonlineamt")); // 업체미수 온라인
  841. ds_main_mgsm_disp.setColumn(4, "c10", ds_main_mgsm.getColumn(0, "ptuncashamt")); // 독촉미수 현금
  842. ds_main_mgsm_disp.setColumn(5, "c10", ds_main_mgsm.getColumn(0, "ptuncardamt")); // 독촉미수 카드
  843. ds_main_mgsm_disp.setColumn(6, "c10", ds_main_mgsm.getColumn(0, "ptunonlineamt")); // 독촉미수 온라인
  844. ds_main_mgsm_disp.setColumn(0, "c12", ds_main_mgsm.getColumn(0, "heallifeamtclamamt")); // 건유비 발생
  845. ds_main_mgsm_disp.setColumn(1, "c12", ds_main_mgsm.getColumn(0, "heallifeuamt")); // 건유비 입금
  846. ds_main_mgsm_disp.setColumn(2, "c12", ds_main_mgsm.getColumn(0, "pregdmndamt")); // 산전비 발생
  847. ds_main_mgsm_disp.setColumn(3, "c12", ds_main_mgsm.getColumn(0, "preguamt")); // 산전비 입금
  848. ds_main_mgsm_disp.setColumn(4, "c12", ds_main_mgsm.getColumn(0, "kpamamt")); // 보관금 발생
  849. ds_main_mgsm_disp.setColumn(5, "c12", ds_main_mgsm.getColumn(0, "kpamdamt")); // 보관금 환불
  850. ds_main_mgsm_disp.setColumn(6, "c12", ds_main_mgsm.getColumn(0, "carduamt")); // 카드입금 금액
  851. ds_main_mgsm_disp.setColumn(7, "c12", ds_main_mgsm.getColumn(0, "carddcamt")); // 카드입금 수수료
  852. ds_main_mgsm_disp.setColumn(0, "c14", ds_main_mgsm.getColumn(0, "cvapuamt")); // 민원입금
  853. ds_main_mgsm_disp.setColumn(1, "c14", ds_main_mgsm.getColumn(0, "taxamt")); // 부가가치세
  854. ds_main_mgsm_disp.setColumn(2, "c14", ds_main_mgsm.getColumn(0, "discamt")); // 할인금액
  855. ds_main_mgsm_disp.setColumn(3, "c14", ds_main_mgsm.getColumn(0, "reduamt")); // 감액
  856. switch1.case1.btn_acptaprv1.enable = true;
  857. switch1.case1.btn_acptcncl1.enable = true;
  858. if (!utlf_isNull(ds_main_mgsm.getColumn(0, "aprv2"))) {
  859. switch1.case1.btn_acptaprv1.enable = false;
  860. switch1.case1.btn_acptcncl1.enable = false;
  861. } else if (!utlf_isNull(ds_main_mgsm.getColumn(0, "aprv1"))) {
  862. switch1.case1.btn_acptaprv1.enable = false;
  863. } else {
  864. switch1.case1.btn_acptcncl1.enable = false;
  865. }
  866. // 수납위치 기본 설정
  867. ds_send_srch.setColumn(0, "rcptposcd", ds_main_user.getColumn(0, "rcptposcd"));
  868. }
  869. /*
  870. * 총계를 생성
  871. */
  872. function fSetDetAmtSum(){
  873. // 향후 추가
  874. // switch1.case2.grd_rcptdetlist.subtotalPosition = "below";
  875. //
  876. // switch1.case2.grd_rcptdetlist.subtotal("clear", 0, 0, "", "", 0, "");
  877. // for (var i = 0; i < switch1.case2.grd_rcptdetlist.cols; i++) {
  878. // if (i >= switch1.case2.grd_rcptdetlist.colRef("cashamt") && i <= switch1.case2.grd_rcptdetlist.colRef("uncoamt")) {
  879. // switch1.case2.grd_rcptdetlist.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:right", 0, "총계" );
  880. // }
  881. // }
  882. }
  883. /*
  884. * 오류내역 조회
  885. */
  886. function fGetErrinfo(worktype){
  887. ds_main_erinfo.clearData();
  888. ds_send_srch.setColumn(0, "worktype", worktype);
  889. var oParam = {};
  890. oParam.id = "TRPAE00103";
  891. oParam.service = "pamendstatsapp.PamEndStats";
  892. oParam.method = "reqGetErrInfoList";
  893. oParam.inds = "req=ds_send_srch";
  894. oParam.outds = "ds_main_erinfo=errinfo";
  895. oParam.async = false;
  896. tranf_submit(oParam);
  897. }
  898. /*
  899. * 마감 실행
  900. */
  901. function fSetEndinfo(worktype) {
  902. if (utlf_isNull(ds_send_srch.getColumn(0, "endid"))) {
  903. sysf_messageBox("수납자ID는 반드시 입력하십시오.", "C000");
  904. return false;
  905. }
  906. if (STAFFKIND == "" && ds_send_srch.getColumn(0, "endid") != sysf_getUserId()) {
  907. sysf_messageBox("마감처리는 로그인한 본인만 가능합니다.", "C000");
  908. return false;
  909. }
  910. ds_send_srch.setColumn(0, "staffkind", "1");
  911. ds_hidden_aprvinfo.clearData();
  912. var oParam = {};
  913. oParam.id = "TRPAE00110";
  914. oParam.service = "pamendstatsapp.PamEndStats";
  915. oParam.method = "reqGetStaffCheck";
  916. oParam.inds = "req=ds_send_srch";
  917. oParam.outds = "ds_hidden_aprvinfo=aprvinfo";
  918. oParam.async = false;
  919. tranf_submit(oParam);
  920. if (parseInt(ds_hidden_aprvinfo.getColumn(0, "aprvcnt")) > 0) {
  921. sysf_messageBox("수납자의 결재 내역이 있습니다.", "E999");
  922. return false;
  923. }
  924. ds_send_srch.setColumn(0, "staffkind", "2");
  925. oParam.id = "TRPAE00110";
  926. oParam.service = "pamendstatsapp.PamEndStats";
  927. oParam.method = "reqGetStaffCheck";
  928. oParam.inds = "req=ds_send_srch";
  929. oParam.outds = "ds_hidden_aprvinfo=aprvinfo";
  930. oParam.async = false;
  931. tranf_submit(oParam);
  932. if (parseInt(ds_hidden_aprvinfo.getColumn(0, "aprvcnt")) > 0) {
  933. sysf_messageBox("담당자의 결재 내역이 있습니다.", "E999");
  934. return false;
  935. }
  936. oParam.id = "TRPAE00114";
  937. oParam.service = "pamendstatsapp.PamEndStats";
  938. oParam.method = "reqGetPaamMgsmAprv";
  939. oParam.inds = "req=ds_send_srch";
  940. oParam.outds = "ds_hidden_magminfo=magminfo";
  941. oParam.async = false;
  942. tranf_submit(oParam);
  943. if (ds_hidden_magminfo.getColumn(0, "aprvflag") == "Y") {
  944. sysf_messageBox("해당일자의 마감 집계는 " + APRV4_NM + " 결재가 완료되었습니다.", "E999");
  945. return false;
  946. }
  947. ds_send_srch.setColumn(0, "worktype", worktype);
  948. oParam.id = "TXPAE00101";
  949. oParam.service = "pamendstatsapp.PamEndStats";
  950. oParam.method = "reqSetPamEndStats";
  951. oParam.inds = "req=ds_send_srch";
  952. oParam.outds = "";
  953. oParam.async = false;
  954. oParam.callback = "cf_TXPAE00101";
  955. frmf_openLoadingBar();
  956. tranf_submit(oParam);
  957. frmf_closeLoadingBar();
  958. if (arErrorCode.pop("TXPAE00101") > -1) {
  959. fGetEndinfo();
  960. }
  961. sysf_messageBox("마감이 완료되었습니다.", "I999");
  962. }
  963. function cf_TXPAE00101(sSvcId, nErrorCode, sErrorMsg) {
  964. arErrorCode.push(sSvcId, nErrorCode);
  965. }
  966. /*
  967. * 결재 실행
  968. */
  969. function fSetEndAcpt(gubun, acpttype) {
  970. if (ds_main_magm.rowcount < 1) {
  971. sysf_messageBox("결재할 대상이 조회되지 않았습니다.", "C000");
  972. return false;
  973. }
  974. if (STAFFKIND == "" && ds_main_magm.getColumn(0, "rcptrid") != sysf_getUserId()) {
  975. sysf_messageBox("결재는 본인의 마감건에 대해서만 가능합니다.", "C000");
  976. return false;
  977. }
  978. if (acpttype == "aprv") {
  979. var oParam = {};
  980. oParam.id = "TRPAE00111";
  981. oParam.service = "pamendstatsapp.PamEndStats";
  982. oParam.method = "reqGetMagmRcptList";
  983. oParam.inds = "req=ds_send_srch";
  984. oParam.outds = "ds_hidden_rcptmagmlist_rcptmagminfo=rcptmagm";
  985. oParam.async = false;
  986. tranf_submit(oParam);
  987. var endid = ds_send_srch.getColumn(0, "endid");
  988. var errflag = ds_hidden_rcptmagmlist_rcptmagminfo.lookupExpr("rcptrid == '" + endid + "'", "errflag");
  989. var errstr = ds_hidden_rcptmagmlist_rcptmagminfo.lookupExpr("rcptrid == '" + endid + "'", "errstr");
  990. if (errflag == "R") {
  991. sysf_messageBox("마감 후 수납건이 있습니다.\n마감을 다시 실행한 후 결재해 주십시오\n" + errstr, "E999");
  992. return;
  993. }
  994. var oParam = {};
  995. oParam.id = "TRPAE00113";
  996. oParam.service = "pamendstatsapp.PamEndStats";
  997. oParam.method = "reqGetMagmAprvErrCnt";
  998. oParam.inds = "req=ds_send_srch";
  999. oParam.outds = "ds_hidden_aprverrinfo=aprverrinfo";
  1000. oParam.async = false;
  1001. tranf_submit(oParam);
  1002. var aprverrcnt = ds_hidden_aprverrinfo.getColumn(0, "cnt");
  1003. if (parseInt(aprverrcnt) > 0){
  1004. sysf_messageBox("허용되지않는 오류내역이 " + aprverrcnt + "건 있습니다.\n오류내역을 확인 후 마감진행 하시기 바랍니다.", "E999");
  1005. switch1.case1.btn_arpverrinfo.click();
  1006. return;
  1007. }
  1008. }
  1009. ds_send_srch.setColumn(0, "staffkind", "2");
  1010. var oParam = {};
  1011. oParam.id = "TRPAE00110";
  1012. oParam.service = "pamendstatsapp.PamEndStats";
  1013. oParam.method = "reqGetStaffCheck";
  1014. oParam.inds = "req=ds_send_srch";
  1015. oParam.outds = "ds_hidden_aprvinfo=aprvinfo";
  1016. oParam.async = false;
  1017. tranf_submit(oParam);
  1018. if (parseInt(ds_hidden_aprvinfo.getColumn(0, "aprvcnt")) > 0) {
  1019. sysf_messageBox("담당자의 결재 내역이 있습니다.", "E999");
  1020. return;
  1021. }
  1022. if (acpttype == "aprv") {
  1023. // 결재 전 진료확인번호 승인 프로그램 호출
  1024. frmf_setParameter("SMPAO04000_rcptrid", ds_send_srch.getColumn(0, "endid"));
  1025. frmf_setParameter("SMPAO04000_ioflag", "O");
  1026. frmf_modal("SMPAO04000", "SMPAO04000", "", "", "1", "20", "100", "", "", "", "", "", "M");
  1027. // 입원수납건수 확인
  1028. if (ds_main_magm.getCaseCount("worktype == 'A02' && execnt > 0") > 0) {
  1029. sysf_messageBox("퇴원수납건이 존재하여 퇴원환자 의료급여 조회를 실시합니다.", "I999");
  1030. frmf_setParameter("SMPAO04000_ioflag", "I");
  1031. frmf_modal("SMPAO04000", "SMPAO04000", "", "", "1", "20", "100", "", "", "", "", "", "M");
  1032. }
  1033. }
  1034. var remark = utlf_transNullToEmpty(ds_main_erinfo.getColumn(0, "remark"));
  1035. ds_send_srch.setColumn(0, "remark", remark);
  1036. ds_send_srch.setColumn(0, "gubun", gubun);
  1037. ds_send_srch.setColumn(0, "acpttype", acpttype);
  1038. oParam.id = "TXPAE00101";
  1039. oParam.service = "pamendstatsapp.PamEndStats";
  1040. oParam.method = "reqSetPamEndAcpt";
  1041. oParam.inds = "req=ds_send_srch";
  1042. oParam.outds = "";
  1043. oParam.async = false;
  1044. oParam.callback = "cf_TXPAE00101";
  1045. tranf_submit(oParam);
  1046. if (arErrorCode.pop("TXPAE00101") > -1) {
  1047. fGetEndinfo();
  1048. }
  1049. ds_send_magm.setColumn(0, "fromdd", ds_send_srch.getColumn(0, "enddd"));
  1050. ds_send_magm.setColumn(0, "todd", ds_send_srch.getColumn(0, "enddd"));
  1051. if (acpttype == "aprv") {
  1052. oParam.id = "TRPAE00115";
  1053. oParam.service = "pamendstatsapp.PamEndStats";
  1054. oParam.method = "reqGetMagmStatus";
  1055. oParam.inds = "req=ds_send_magm";
  1056. oParam.outds = "ds_hidden_magmstat=magmstat";
  1057. oParam.async = false;
  1058. tranf_submit(oParam);
  1059. var sumflag = ds_hidden_magmstat.getColumn(0, "sumflag");
  1060. var aprvflag = ds_hidden_magmstat.getColumn(0, "aprvflag");
  1061. if (sumflag == "Y") {
  1062. if (aprvflag == "N") {
  1063. sysf_messageBox("최종 수납자 결재가 확인되었습니다. 마감 집계가 실행됩니다.", "I999");
  1064. ds_send_magm.setColumn(0, "endflag", "A");
  1065. oParam.id = "TXSTP01803";
  1066. oParam.service = "stspamapp.StsPam";
  1067. oParam.method = "reqExeMagmBatch";
  1068. oParam.inds = "req=ds_send_magm";
  1069. oParam.async = false;
  1070. tranf_submit(oParam);
  1071. } else {
  1072. sysf_messageBox("최종 수납자 결재가 확인되었습니다.\n해당 일자의 일보가 이미 결재되어 자동 집계 실행은 취소됩니다.\n담당자에게 연락하여 주시기 바랍니다.", "I999");
  1073. }
  1074. }
  1075. switch1.case1.btn_acptaprv1.enable = false;
  1076. switch1.case1.btn_acptcncl1.enable = true;
  1077. } else if (acpttype == "cncl") {
  1078. switch1.case1.btn_acptaprv1.enable = true;
  1079. switch1.case1.btn_acptcncl1.enable = false;
  1080. }
  1081. }
  1082. function cf_TXPAE00101(sSvcId, nErrorCode, sErrorMsg) {
  1083. arErrorCode.push(sSvcId, nErrorCode);
  1084. }
  1085. function fGetStaffKind() {
  1086. var oParam = {};
  1087. oParam.id = "TRPAE00109";
  1088. oParam.service = "pamendstatsapp.PamEndStats";
  1089. oParam.method = "reqGetMagmStaff";
  1090. oParam.outds = "ds_init_staff=staffinfo";
  1091. oParam.async = false;
  1092. tranf_submit(oParam);
  1093. for (var i = 0; i < ds_init_staff.rowcount; i++) {
  1094. var stid = ds_init_staff.getColumn(i, "staffid");
  1095. var stkind = ds_init_staff.getColumn(i, "staffkind");
  1096. if (stid == sysf_getUserId()) {
  1097. STAFFKIND = stkind;
  1098. } else if (stid == "nm") {
  1099. if (stkind == "3") {
  1100. APRV3_NM = ds_init_staff.getColumn(i, "staffnm");
  1101. } else if (stkind == "4") {
  1102. APRV4_NM = ds_init_staff.getColumn(i, "staffnm");
  1103. }
  1104. }
  1105. }
  1106. if (sysf_getUserId() == "PAM") {
  1107. STAFFKIND = "A";
  1108. }
  1109. }
  1110. function SMPAE00100_onload(obj:Form, e:LoadEventInfo) {
  1111. frmf_initForm(obj);
  1112. grdf_initGrid(switch1.case1.grd_endlist);
  1113. grdf_initGrid(switch1.case1.grd_errinfo);
  1114. grdf_initGrid(switch1.case2.grd_rcptdetlist);
  1115. var enddd = utlf_getCurrentDate();
  1116. var userid = "";
  1117. fGetStaffKind();
  1118. if (STAFFKIND != "") {
  1119. ipt_endid.enable = true;
  1120. cmb_pamid.enable = true;
  1121. }
  1122. switch1.case1.cap_aprv3nm.text = APRV3_NM;
  1123. switch1.case1.cap_aprv4nm.text = APRV4_NM;
  1124. //팝업화면으로 사용될 때
  1125. if (frmf_checkOpener() && frmf_getOpenerUID() != "top") {
  1126. enddd = opener.frmf_getParameter("SMPAE00100_enddd");
  1127. userid = opener.frmf_getParameter("SMPAE00100_endid");
  1128. var rcpttype = opener.frmf_getParameter("SMPAE00100_rcpttype");
  1129. ds_send_srch.setColumn(0, "enddd", enddd);
  1130. fGetBaseInfo(); //기본코드 조회
  1131. ds_send_srch.setColumn(0, "endid", userid);
  1132. ds_send_srch.setColumn(0, "pamid", userid);
  1133. ds_send_srch.setColumn(0, "worktype", "all");
  1134. fGetEndinfo();
  1135. if (rcpttype == "rcptrnm") {
  1136. ds_send_srch.setColumn(0, "rcpttype", "all");
  1137. } else {
  1138. ds_send_srch.setColumn(0, "rcpttype", rcpttype);
  1139. var oParam = {};
  1140. oParam.id = "TRPAE00102";
  1141. oParam.service = "pamendstatsapp.PamEndStats";
  1142. oParam.method = "reqGetRcptDetInfoList";
  1143. oParam.inds = "req=ds_send_srch";
  1144. oParam.outds = "ds_main_detl=rcptdetinfo";
  1145. oParam.async = false;
  1146. oParam.callback = "cf_TRPAE00102";
  1147. tranf_submit(oParam);
  1148. if(arErrorCode.pop("TRPAE00102") > -1) {
  1149. fSetDetAmtSum(); //총계를 생성
  1150. switch1.tabindex = 1;
  1151. }
  1152. }
  1153. } else {
  1154. userid = sysf_getUserId();
  1155. ds_send_srch.setColumn(0, "enddd", enddd);
  1156. fGetBaseInfo();
  1157. ds_send_srch.setColumn(0, "endid", userid);
  1158. ds_send_srch.setColumn(0, "pamid", userid);
  1159. fGetEndinfo();
  1160. }
  1161. }
  1162. function cf_TRPAE00102(sSvcId, nErrorCode, sErrorMsg) {
  1163. arErrorCode.push(sSvcId, nErrorCode);
  1164. }
  1165. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  1166. fGetEndinfo();
  1167. }
  1168. function ipt_enddd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  1169. }
  1170. function ipt_endid_onkeyup(obj:Edit, e:KeyEventInfo) {
  1171. if (e.keycode == 13) {
  1172. obj.updateToDataset();
  1173. ds_send_srch.setColumn(0, "endid", ipt_endid.text);
  1174. ds_send_srch.setColumn(0, "pamid", ipt_endid.text);
  1175. fGetEndinfo();
  1176. }
  1177. }
  1178. function cmb_pamid_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  1179. if (!utlf_isNull(ds_send_srch.getColumn(0, "pamid"))) {
  1180. ds_send_srch.setColumn( 0, "endid", ds_send_srch.getColumn(0, "pamid"));
  1181. fGetEndinfo();
  1182. }
  1183. }
  1184. function btn_kiosk_onclick(obj:Button, e:ClickEventInfo) {
  1185. frmf_setParameter("SMPAE00202_fromdd", ds_send_srch.getColumn(0, "enddd"));
  1186. frmf_open("SMPAE00202", "SMPAE00202", "", "", "", "", "", "", "", "", "", "", "M");
  1187. }
  1188. function switch1_case1_grd_endlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  1189. if (e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "errcnt")) {
  1190. fGetErrinfo(ds_main_magm.getColumn(e.row, "worktype"));
  1191. } else if (e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "execnt") ||
  1192. e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "cashamt") ||
  1193. e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "cardamt") ||
  1194. e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "onlineamt") ||
  1195. e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "uncoamt")) {
  1196. var worktype = ds_main_magm.getColumn(e.row, "worktype");
  1197. var rcpttype = "";
  1198. if (e.col == switch1.case1.grd_endlist.getBindCellIndex("body", "execnt")) {
  1199. rcpttype = "all";
  1200. } else {
  1201. rcpttype = switch1.case1.grd_endlist.getCellProperty("body", e.col, "text").split(":")[1];
  1202. }
  1203. ds_send_srch.setColumn(0, "worktype", worktype);
  1204. ds_send_srch.setColumn(0, "rcpttype", rcpttype);
  1205. var oParam = {};
  1206. oParam.id = "TRPAE00102";
  1207. oParam.service = "pamendstatsapp.PamEndStats";
  1208. oParam.method = "reqGetRcptDetInfoList";
  1209. oParam.inds = "req=ds_send_srch";
  1210. oParam.outds = "ds_main_detl=rcptdetinfo";
  1211. oParam.async = false;
  1212. oParam.callback = "cf_TRPAE00102";
  1213. tranf_submit(oParam);
  1214. if (arErrorCode.pop("TRPAE00102") > -1) {
  1215. fSetDetAmtSum(); //총계를 생성
  1216. switch1.tabindex = 1;
  1217. }
  1218. }
  1219. }
  1220. function cf_TRPAE00102(sSvcId, nErrorCode, sErrorMsg) {
  1221. arErrorCode.push(sSvcId, nErrorCode);
  1222. }
  1223. function switch1_case1_button3_onclick(obj:Button, e:ClickEventInfo) {
  1224. fSetEndinfo("ALL");
  1225. }
  1226. function switch1_case1_btn_arpverrinfo_onclick(obj:Button, e:ClickEventInfo) {
  1227. fGetErrinfo("ALL");
  1228. }
  1229. function switch1_case1_btn_acptaprv1_onclick(obj:Button, e:ClickEventInfo) {
  1230. fSetEndAcpt("approvalid_1", "aprv");
  1231. }
  1232. function switch1_case1_btn_acptcncl1_onclick(obj:Button, e:ClickEventInfo) {
  1233. fSetEndAcpt("approvalid_1", "cncl");
  1234. }
  1235. function switch1_case2_button4_onclick(obj:Button, e:ClickEventInfo) {
  1236. ds_send_srch.setColumn(0, "worktype", ds_send_srch.getColumn(0, "worktype"));
  1237. ds_send_srch.setColumn(0, "rcpttype", ds_send_srch.getColumn(0, "rcpttype"));
  1238. var oParam = {};
  1239. oParam.id = "TRPAE00102";
  1240. oParam.service = "pamendstatsapp.PamEndStats";
  1241. oParam.method = "reqGetRcptDetInfoList";
  1242. oParam.inds = "req=ds_send_srch";
  1243. oParam.outds = "ds_main_detl=rcptdetinfo";
  1244. oParam.async = false;
  1245. oParam.callback = "cf_TRPAE00102";
  1246. tranf_submit(oParam);
  1247. if (arErrorCode.pop("TRPAE00102") > -1) {
  1248. fSetDetAmtSum();
  1249. switch1.tabindex = 1;
  1250. }
  1251. }
  1252. function cf_TRPAE00102(sSvcId, nErrorCode, sErrorMsg) {
  1253. arErrorCode.push(sSvcId, nErrorCode);
  1254. }
  1255. function switch1_case2_button5_onclick(obj:Button, e:ClickEventInfo) {
  1256. grdf_exportExcel(switch1.case2.grd_rcptdetlist, "KU일일마감", "Sheet1", true, "" , 'user' , true);
  1257. }
  1258. function btn_prtrcpt_onclick(obj:Button, e:ClickEventInfo) {
  1259. if (sysf_getUserId() != "PAM") {
  1260. ds_send_srch.setColumn(0, "staffkind", "1");
  1261. var oParam = {};
  1262. oParam.id = "TRPAE00110";
  1263. oParam.service = "pamendstatsapp.PamEndStats";
  1264. oParam.method = "reqGetStaffCheck";
  1265. oParam.inds = "req=ds_send_srch";
  1266. oParam.outds = "ds_hidden_aprvinfo=aprvinfo";
  1267. oParam.async = false;
  1268. tranf_submit(oParam);
  1269. if (eval(ds_hidden_aprvinfo.getColumn(0, "aprvcnt")) < 1) {
  1270. sysf_messageBox("수납자 결재 후 출력이 가능합니다.", "E999");
  1271. return;
  1272. }
  1273. }
  1274. ds_report_rcptlist.clearData();
  1275. ds_report_rcptlist.copyData(ds_main_mgsm);
  1276. var oParam = {};
  1277. oParam.id = "TRPAE00107";
  1278. oParam.service = "pamendstatsapp.PamEndStats";
  1279. oParam.method = "reqGetRcptPrtInfo";
  1280. oParam.inds = "req=ds_send_srch";
  1281. oParam.outds = "ds_report_prtinfo=prtinfo";
  1282. oParam.async = false;
  1283. tranf_submit(oParam);
  1284. dsf_makeValue(ds_report_prtinfo, "enddd", "string", ds_send_srch.getColumn(0, "enddd"));
  1285. dsf_makeValue(ds_report_prtinfo, "aprv3nm", "string", APRV3_NM);
  1286. dsf_makeValue(ds_report_prtinfo, "aprv4nm", "string", APRV4_NM);
  1287. var objDOM = rptf_createDOM();
  1288. var objParam = new Object();
  1289. rptf_setNodeListToDOM(objDOM, "root/report/rcptlist", ds_report_rcptlist);
  1290. rptf_setNodeListToDOM(objDOM, "root/report/prtinfo", ds_report_prtinfo);
  1291. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1292. //var option = "open=1;save=1;directprint=0;printdialog=1;print=0;zoom=0";
  1293. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  1294. rptf_exeReportPreview30(["RPPAE00100"],[objParam], option);
  1295. }
  1296. function ipt_enddd_onchanged(obj:Calendar, e:ChangeEventInfo) {
  1297. fPamuserSearch();
  1298. fGetEndinfo();
  1299. }
  1300. function switch1_case1_grd_endlist_onexpanddown(obj:Grid, e:GridMouseEventInfo) {
  1301. fSetEndinfo(ds_main_magm.getColumn(e.row, "worktype"));
  1302. }
  1303. function switch1_case1_grd_errinfo_onkeyup(obj:Grid, e:KeyEventInfo)
  1304. {
  1305. if(e.ctrlKey && e.keycode == 67) {
  1306. grdf_clipboardCopy(obj, "PAM");
  1307. }
  1308. }
  1309. ]]></Script>
  1310. </Form>
  1311. </FDL>