SMPIF30800_입금내역관리.xrw 110 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>입금내역관리(보험산재)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <send01>
  11. <insukind>11</insukind>
  12. <acptno/>
  13. <judgdg/>
  14. <clamno/>
  15. <datefilter/>
  16. <clamtypecd/>
  17. </send01>
  18. <send02>
  19. </send02>
  20. <uncoendprcs>
  21. <insukindflag>1</insukindflag>
  22. </uncoendprcs>
  23. </send>
  24. <main>
  25. <list001>
  26. <U0001>
  27. <clamno/>
  28. </U0001>
  29. <acptnocnt>
  30. <cnt/>
  31. </acptnocnt>
  32. </list001>
  33. <list002>
  34. <U0002>
  35. <judgdg/>
  36. <setno/>
  37. </U0002>
  38. </list002>
  39. <list003>
  40. <U0003>
  41. <judgdg/>
  42. </U0003>
  43. </list003>
  44. <list01>
  45. <gridpidmclam>
  46. <clamym/>
  47. <uncoym/>
  48. <acptdd/>
  49. <clamflag/>
  50. <judgdg/>
  51. <ioflag/>
  52. <ordfildcd/>
  53. <clamno/>
  54. </gridpidmclam>
  55. <gridpifmiunc>
  56. <clamcnt/>
  57. <clmcstotamt/>
  58. <clownbamt/>
  59. <clclamamt/>
  60. <clownbmaxexamt/>
  61. <clsuppamt/>
  62. <clhandicaprfund/>
  63. <cldruglimitdiffamtsum/>
  64. <judgdecicnt/>
  65. <jrtotordamt01/>
  66. <jrownbamt01/>
  67. <jrjudgdeciamt01/>
  68. <jrownbmaxexamt01/>
  69. <jrsuppamt01/>
  70. <jrhandicaprfund01/>
  71. <jrdruglimitdiffamtsum01/>
  72. <rtncnt/>
  73. <jrtotordamt02/>
  74. <jrownbamt02/>
  75. <jrjudgdeciamt02/>
  76. <jrownbmaxexamt02/>
  77. <jrsuppamt02/>
  78. <jrhandicaprfund02/>
  79. <jrdruglimitdiffamtsum02/>
  80. <judgretecnt/>
  81. <jrtotordamt03/>
  82. <jrownbamt03/>
  83. <jrjudgdeciamt03/>
  84. <jrownbmaxexamt03/>
  85. <jrsuppamt03/>
  86. <jrhandicaprfund03/>
  87. <jrdruglimitdiffamtsum03/>
  88. <cnt_jumin/>
  89. <jrtotordamt04/>
  90. <jrownbamt04/>
  91. <jrjudgdeciamt04/>
  92. <jrownbmaxexamt04/>
  93. <jrsuppamt04/>
  94. <rucntsum/>
  95. <ruadjtamtsum/>
  96. <realcutamt/>
  97. <jrownaddbamtsum/>
  98. <acptno/>
  99. <judgdg/>
  100. <clamno/>
  101. <instcd/>
  102. <rtnrestamt/>
  103. <totuncoamt/>
  104. <uncoamt/>
  105. <cnt_calcdepo/>
  106. <cnt_hosoutcalc/>
  107. <jrhandicaprfund04/>
  108. <clamseqno/>
  109. <jrdruglimitdiffamtadjtsum/>
  110. </gridpifmiunc>
  111. <gridpifhbsdp>
  112. <depodd/>
  113. <inddepoflag/>
  114. <bankcd/>
  115. <acntcd/>
  116. <depocnt/>
  117. <depoamt/>
  118. <depooutamt/>
  119. <depoinamt/>
  120. <notimm/>
  121. <remfact/>
  122. <acptno/>
  123. <judgdg/>
  124. <clamno/>
  125. <seq/>
  126. </gridpifhbsdp>
  127. <calcamtsumdetl>
  128. <calcamtsum/>
  129. </calcamtsumdetl>
  130. </list01>
  131. <list02>
  132. <gridpifhbsdp/>
  133. </list02>
  134. <list03>
  135. <gridpifhrtns/>
  136. </list03>
  137. <result/>
  138. <result2/>
  139. </main>
  140. <init>
  141. <P0101list>
  142. <P0101>
  143. <cdid/>
  144. <cdnm/>
  145. </P0101>
  146. </P0101list>
  147. <P0266list>
  148. <P0266>
  149. <cdid/>
  150. <cdnm/>
  151. </P0266>
  152. </P0266list>
  153. <R0001list>
  154. <R0001>
  155. <cdid/>
  156. <cdnm/>
  157. </R0001>
  158. </R0001list>
  159. <P0302list>
  160. <P0302>
  161. <cdid/>
  162. <cdnm/>
  163. </P0302>
  164. </P0302list>
  165. <P0059list>
  166. <P0059>
  167. <cdid/>
  168. <cdnm/>
  169. </P0059>
  170. </P0059list>
  171. <P0384list>
  172. <P0384>
  173. <cdid/>
  174. <cdnm/>
  175. </P0384>
  176. </P0384list>
  177. <temp>
  178. <judgretecnt>
  179. <cnt/>
  180. </judgretecnt>
  181. </temp>
  182. <bankinfo>
  183. <bankinfolist>
  184. <cdid/>
  185. <cdnm/>
  186. </bankinfolist>
  187. </bankinfo>
  188. </init>
  189. <source>
  190. <judgdg/>
  191. <acptno/>
  192. <clamno/>
  193. <seqno/>
  194. <instcd/>
  195. <rtnflag/>
  196. <rtnflaggrcd/>
  197. <rtndetlrow/>
  198. <openerrtnflag/>
  199. <allsrchyn/>
  200. </source>
  201. <hidden>
  202. <session/>
  203. </hidden>
  204. <temp>
  205. <fstjudgdg/>
  206. </temp>
  207. </root>
  208. </instance>
  209. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  210. <submission id="TXPIF30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
  211. <submission id="TXPIF30302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result2"/>
  212. <submission id="TRPIF30301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list001"/>
  213. <submission id="TRPIF30302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list002"/>
  214. <submission id="TRPIF30303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01"/>
  215. <submission id="TRPIF30307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/temp"/>
  216. <submission id="TRPIF30309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/bankinfo"/>
  217. <submission id="TRPIF31303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/uncoendprcs" resultref="/root/main/chek"/>
  218. </model>
  219. <script type="javascript" ev:event="xforms-ready">
  220. <![CDATA[
  221. fGetUserInfosSampling(); //세션/root/hidden/session
  222. INSTCD = model.getValue("/root/hidden/session/sess_dutplceinstcd");
  223. submit("TRPIF31303"); // 최종마감월을 가져와서 입금/환수 등록시 체크한다.
  224. //기관별 은행및 은행계좌조회
  225. fBankSearch();
  226. var cnt = getNodesetCount("/root/init/bankinfo/bankinfolist");
  227. var bankcd;
  228. var bankacount;
  229. for( var i = 1; i <= cnt; i++){
  230. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "10"){
  231. bankcd = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  232. }
  233. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "20"){
  234. bankacount = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  235. }
  236. }
  237. BANKCD = bankcd;
  238. BANKACOUNT = bankacount;
  239. // 공통코드 Load작업
  240. CommCode_Load();
  241. ]]>
  242. </script>
  243. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  244. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  245. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  246. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  247. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  248. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  249. <script type="javascript">
  250. <![CDATA[
  251. function Node_Init() {
  252. // NodeSet 초기화
  253. model.resetInstanceNode("/root/main/list01");
  254. }
  255. // 공통코드 Load작업
  256. function CommCode_Load() {
  257. // 관련 Control 초기화
  258. zbcfGetCodeList(new Array("P0059","P0101","P0266","R0001","P0302"), new Array( "/root/init/P0059list","/root/init/P0101list","/root/init/P0266list","/root/init/R0001list","/root/init/P0302list"));
  259. zbcfGetCodeList(new Array("P0384"), new Array( "/root/init/P0384list"));
  260. }
  261. // 청구번호 조회
  262. function searchClamno() {
  263. model.removenode("/root/main/list01");
  264. // inputEnterKey("button108", "DOMActivate");
  265. model.removenode("/root/main/list001/U0001");
  266. model.removenode("/root/main/list002/U0002");
  267. model.resetInstanceNode("/root/main/list001/U0001");
  268. model.resetInstanceNode("/root/main/list002/U0002");
  269. model.setValue("/root/send/send01/clamno","");
  270. model.setValue("/root/send/send01/judgdg","");
  271. model.refresh();
  272. submit("TRPIF30301");
  273. if(cmb_clamno.length == 1) {
  274. cmb_clamno.value = model.getValue("/root/main/list001/U0001/clamno");
  275. submit("TRPIF30302");
  276. if(cmb_judgdg.length == 1) {
  277. cmb_judgdg.value = model.getValue("/root/main/list002/U0002/judgdg");
  278. search();
  279. // model.setFocus("btn_srch");
  280. } else {
  281. model.setFocus("cmb_judgdg");
  282. }
  283. } else {
  284. model.setFocus("cmb_clamno");
  285. }
  286. cmb_judgdg.select(0); // 심사차수 첫번째 항목 자동 선택
  287. model.setValue("/root/temp/fstjudgdg", model.getValue("/root/send/send01/judgdg"));
  288. }
  289. function search() {
  290. if(ipt_acptno.value == null || ipt_acptno.value == "") {
  291. messageBox("접수번호를","C001");
  292. return false;
  293. } else if(cmb_judgdg.value== "" || cmb_judgdg.value== null) {
  294. messageBox("심사차수를","C002");
  295. return false;
  296. } else if(cmb_clamno.value== "" || cmb_clamno.value== null) {
  297. messageBox("청구번호를","C002");
  298. return false;
  299. } else {
  300. model.resetInstanceNode("/root/main/list01");
  301. model.resetInstanceNode("/root/main/list02");
  302. model.refresh();
  303. submit("TRPIF30303");
  304. chkRtndetl();
  305. }
  306. model.makeNode("/root/main/list01/calcamtsumdetl/calcamtsum");
  307. chkGridPifhbsdp();
  308. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  309. for(var i=1;i<grd_pifhbsdp.rows;i++) {
  310. grd_pifhbsdp.isReadOnly(i,1) = true;
  311. grd_pifhbsdp.isReadOnly(i,2) = true;
  312. grd_pifhbsdp.isReadOnly(i,3) = true;
  313. grd_pifhbsdp.isReadOnly(i,4) = true;
  314. grd_pifhbsdp.isReadOnly(i,5) = true;
  315. grd_pifhbsdp.isReadOnly(i,6) = true;
  316. grd_pifhbsdp.isReadOnly(i,7) = true;
  317. grd_pifhbsdp.isReadOnly(i,8) = true;
  318. grd_pifhbsdp.isReadOnly(i,9) = false;
  319. }
  320. }
  321. }
  322. function rtnGridCheck() {
  323. // NodeSet 초기화
  324. var row_cnt = grd_pifhrtns.row;
  325. if(grd_pifhrtns.valueMatrix(row_cnt,2) == "01" || grd_pifhrtns.valueMatrix(row_cnt,2) == "02" || grd_pifhrtns.valueMatrix(row_cnt,2) == "07" ) {
  326. grd_pifhrtns.valueMatrix(row_cnt,3).disabled = false;
  327. grd_pifhrtns.valueMatrix(row_cnt,4).disabled = false;
  328. } else {
  329. grd_pifhrtns.valueMatrix(row_cnt,3).disabled = true;
  330. grd_pifhrtns.valueMatrix(row_cnt,4).disabled = true;
  331. }
  332. }
  333. // 저장된 환수내역에 대해서는 수정 불가 조치 함수
  334. function chkRtndetl() {
  335. // NodeSet 초기화
  336. var rows = grd_pifhrtns.rows;
  337. for(var i=1;i<rows;i++) {
  338. if(grd_pifhrtns.rowStatus(i) == "0") {
  339. // grd_pifhrtns.isReadOnly(i,1) = true;
  340. grd_pifhrtns.isReadOnly(i,2) = true;
  341. // grd_pifhrtns.isReadOnly(i,7) = true;
  342. // grd_pifhrtns.isReadOnly(i,8) = true;
  343. // grd_pifhrtns.isReadOnly(i,9) = true;
  344. }
  345. }
  346. }
  347. function chkGridPifhbsdp() {
  348. var rows = grd_pifhbsdp.rows;
  349. // 입금내역 그리드의 행갯수가 0보다 클때 2009.03.05 심사보류도 환수예정액 수정 가능하게 변경
  350. if(rows > 0) {
  351. for(var i=1;i<rows;i++) {
  352. if(grd_pifhbsdp.valueMatrix(i,2) == "01" || grd_pifhbsdp.valueMatrix(i,2) == "03" || grd_pifhbsdp.valueMatrix(i,2) == "06") {
  353. grd_pifhbsdp.valueMatrix(i,7) = "0";
  354. grd_pifhbsdp.isReadOnly(i,7) = true;
  355. } else {
  356. grd_pifhbsdp.isReadOnly(i,7) = false;
  357. }
  358. }
  359. }
  360. }
  361. // 입금내역의 입금구분 선택시 다음 셀로 포커스 이동
  362. function setGridPifhbsdpFocus(code) {
  363. if(code == "popup") {
  364. model.setFocus("body");
  365. model.setFocus("grd_pifhbsdp");
  366. grd_pifhbsdp.col = 6;
  367. grd_pifhbsdp.dispatch("onentercell");
  368. grd_pifhbsdp.editCell();
  369. } else {
  370. model.setFocus("body");
  371. model.setFocus("grd_pifhbsdp");
  372. grd_pifhbsdp.col = 6;
  373. grd_pifhbsdp.dispatch("onentercell");
  374. grd_pifhbsdp.editCell();
  375. }
  376. }
  377. // 환수내역의 환수구분 선택시 다음 셀로 포커스 이동
  378. function setGridPifhrtnsFocus() {
  379. model.setFocus("body");
  380. model.setFocus("grd_pifhrtns");
  381. grd_pifhrtns.col = 7;
  382. grd_pifhrtns.dispatch("onentercell");
  383. grd_pifhrtns.editCell();
  384. }
  385. function fBankSearch(){
  386. submit("TRPIF30309");
  387. }
  388. ]]>
  389. </script>
  390. </xhtml:head>
  391. <xhtml:body visibility="hidden" style="color:#000000; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  392. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  393. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:14px; ">입금내역관리(보험/산재)</caption>
  394. </group>
  395. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  396. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  397. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  398. <caption id="caption52" class="search_name" style="left:115px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
  399. <input id="ipt_acptno" ref="/root/send/send01/acptno" class="input_s_essential" navindex="2" maxlength="8" style="left:203px; top:8px; width:110px; height:19px; text-align:center; "/>
  400. <caption id="caption1" class="search_name" style="left:332px; top:9px; width:86px; height:17px; ">청구번호 :</caption>
  401. <input id="ipt_clamno" ref="/root/send/send01/clamno" class="input_s_essential" navindex="4" appearance="minimal" style="left:422px; top:8px; width:100px; height:19px; text-align:center; "/>
  402. <caption id="cp_judgdg" class="search_name" style="left:542px; top:9px; width:86px; height:17px; ">심사차수 :</caption>
  403. <input id="ipt_judgdg" ref="/root/send/send01/judgdg" class="input_s_essential" navindex="3" showvalue="true" appearance="minimal" style="left:632px; top:8px; width:138px; height:19px; text-align:left; "/>
  404. <line id="line18" class="line_4" style="x1:1105px; y1:7px; x2:1105px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  405. <button id="btn_srch" class="btn1_letter2" style="left:1121px; top:7px; width:56px; height:22px; ">
  406. <caption>조회</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. search();
  410. ]]>
  411. </script>
  412. </button>
  413. <select1 id="rdo_insukind" ref="/root/send/send01/insukind" class="radio_search" appearance="full" cellspacing="0" cols="2" overflow="visible" style="left:20px; top:10px; width:95px; height:16px; border-style:none; ">
  414. <choices>
  415. <item>
  416. <label>보험</label>
  417. <value>11</value>
  418. </item>
  419. <item>
  420. <label>산재</label>
  421. <value>41</value>
  422. </item>
  423. </choices>
  424. <script type="javascript" ev:event="xforms-select">
  425. <![CDATA[
  426. if (rdo_insukind.value == "11") {
  427. ipt_acptno.attribute("maxlength") = 7;
  428. model.setValue("/root/send/uncoendprcs/insukindflag","1"); // 보험
  429. } else if (rdo_insukind.value == "41") {
  430. ipt_acptno.attribute("maxlength") = 15;
  431. model.setValue("/root/send/uncoendprcs/insukindflag","6"); // 산재
  432. }
  433. // 최종 마감월
  434. model.removeNodeset("/root/main/check");
  435. submit("TRPIF31303");
  436. // 라디오 선택 변경시 초기화
  437. model.removenode("/root/main/list01");
  438. model.removenode("/root/main/list001/U0001");
  439. model.removenode("/root/main/list002/U0002");
  440. model.resetInstanceNode("/root/main/list001/U0001");
  441. model.resetInstanceNode("/root/main/list002/U0002");
  442. model.setValue("/root/send/send01/clamno","");
  443. model.setValue("/root/send/send01/judgdg","");
  444. model.setValue("/root/send/send01/acptno","");
  445. model.refresh();
  446. model.setFocus("ipt_acptno");
  447. ]]>
  448. </script>
  449. </select1>
  450. <input id="ipt_acptnocnt" ref="/root/main/list001/acptnocnt/cnt" visibility="hidden" style="left:1075px; top:8px; width:20px; height:19px; "/>
  451. </group>
  452. <button id="button7" class="btn5_letter2" style="left:1040px; top:50px; width:42px; height:19px; ">
  453. <caption>저장</caption>
  454. <script type="javascript" ev:event="onclick">
  455. <![CDATA[
  456. var row_cnt = grd_pifhbsdp.row;
  457. var rows = grd_pifhbsdp.rows;
  458. var ins_cnt = 0;
  459. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  460. for(var i = 1;i<rows;i++) {
  461. if(grd_pifhbsdp.rowStatus(i) == 1) {
  462. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  463. ++ins_cnt;
  464. return false;
  465. }
  466. }
  467. }
  468. if(ipt_acptno.value== "") {
  469. messageBox("접수번호를","C001");
  470. model.setFocus("ipt_acptno");
  471. return false;
  472. }
  473. if(cmb_judgdg.value == "") {
  474. messageBox("심사차수를","C001");
  475. model.setFocus("cmb_judgdg");
  476. return false;
  477. }
  478. /*저장할 행을 선택하지 않았을 시*/
  479. if(row_cnt == "-1") {
  480. return false;
  481. }
  482. /*
  483. if(grd_pifhbsdp.valueMatrix(row_cnt,6) == "") {
  484. messageBox("통장입금액을","C001");
  485. return false;
  486. }*/
  487. if(grd_pifhbsdp.valueMatrix(row_cnt,2) == "" || grd_pifhbsdp.valueMatrix(row_cnt,2) == null) {
  488. messageBox(grd_pifhbsdp.valueMatrix(0,2),"C001");
  489. return false;
  490. }
  491. var notimm = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,8);
  492. notimm = notimm.substr(0,6);
  493. model.setValue("/root/main/list01/gridpifhbsdp/notimm",notimm);
  494. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  495. if (submit("TXPIF30301")) {
  496. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  497. submit("TRPIF30303");
  498. chkRtndetl();
  499. }
  500. ]]>
  501. </script>
  502. </button>
  503. <button id="button1" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  504. <caption>행추가</caption>
  505. <script type="javascript" ev:event="onclick">
  506. <![CDATA[
  507. //model.alert(INSTCD);
  508. /*
  509. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  510. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  511. return false;
  512. }
  513. */
  514. grd_pifhbsdp.addRow();
  515. var row_cnt = grd_pifhbsdp.row;
  516. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acptno",ipt_acptno.value);
  517. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/judgdg",cmb_judgdg.value);
  518. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/clamno",cmb_clamno.value);
  519. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/instcd", INSTCD);
  520. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/bankcd", BANKCD);
  521. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acntcd", BANKACOUNT);
  522. // if(ipt_acptno.value == "8888888") {
  523. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "10");
  524. // }
  525. // if(ipt_acptno.value == "9999999") {
  526. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "09");
  527. // }
  528. grd_pifhbsdp.valueMatrix(row_cnt, 6) = 0;
  529. grd_pifhbsdp.valueMatrix(row_cnt, 7) = 0;
  530. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/rowstatus","i");
  531. if(ipt_calcamtsum.value != "") {
  532. var row = grd_pifhbsdp.row;
  533. var calcamtsum = Number(ipt_calcamtsum.value);
  534. if(calcamtsum >= 0) {
  535. grd_pifhbsdp.valueMatrix(row,6) = calcamtsum;
  536. grd_pifhbsdp.valueMatrix(row,7) = 0;
  537. } else {
  538. grd_pifhbsdp.valueMatrix(row,6) = 0;
  539. grd_pifhbsdp.valueMatrix(row,7) = calcamtsum;
  540. }
  541. }
  542. grd_pifhbsdp.topRow = grd_pifhbsdp.rows-1;
  543. ]]>
  544. </script>
  545. </button>
  546. <button id="button6" class="btn2_letter3" style="left:1140px; top:50px; width:53px; height:19px; ">
  547. <caption>행삭제</caption>
  548. <script type="javascript" ev:event="onclick">
  549. <![CDATA[
  550. var row_cnt = grd_pifhbsdp.row;
  551. if(row_cnt == '-1' || row_cnt == '0') {
  552. return false;
  553. }
  554. if(ipt_acptno.value== "" || cmb_judgdg.value== "") {
  555. return false;
  556. }
  557. if(grd_pifhbsdp.rowStatus(row_cnt) == "1" || grd_pifhbsdp.rowStatus(row_cnt) == "3") {
  558. grd_pifhbsdp.deleteItem(row_cnt);
  559. return false;
  560. } else {
  561. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  562. messageBox("마감된 데이터는 삭제 하실 수","I004"); // 없습니다.
  563. return;
  564. }
  565. if(messageBox("정말","Q001") == "6") {
  566. var rows = grd_pifhrtns.rows; // 환수내역 그리드의 데이터 총 갯수
  567. if(rows > 1) {
  568. for(var i=1;i<rows;i++) {
  569. var rtnacptno = grd_pifhrtns.valueMatrix(i,3);
  570. var rtnjudgdg = grd_pifhrtns.valueMatrix(i,4);
  571. var rtnseqno = grd_pifhrtns.valueMatrix(i,16);
  572. var seqno = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,13);
  573. if(ipt_acptno.value == rtnacptno & cmb_judgdg.value == rtnjudgdg & seqno == rtnseqno) {
  574. //if(messageBox("환수내역에 있는 데이터도 같이 삭제됩니다. 데이터를","Q001") == 7) {
  575. // return false;
  576. //}
  577. messageBox("환수내역이 존재하기 때문에 입금내역을 삭제할 수","I004");
  578. return false;
  579. }
  580. }
  581. }
  582. grd_pifhbsdp.deleteItem(row_cnt);
  583. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  584. //submit("TXPIF30301");
  585. if (submit("TXPIF30301")) {
  586. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  587. submit("TRPIF30303");
  588. chkRtndetl();
  589. }
  590. }
  591. }
  592. ]]>
  593. </script>
  594. </button>
  595. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  596. <caption id="caption12" class="cell_1" style="left:0px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구년월</caption>
  597. <caption id="caption49" class="cell_1" style="left:146px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">미수월</caption>
  598. <caption id="caption47" class="cell_1" style="left:302px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">접수일자</caption>
  599. <caption id="caption27" class="cell_1" style="left:458px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구구분</caption>
  600. <caption id="caption14" class="cell_1" style="left:604px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  601. <caption id="caption50" class="cell_1" style="left:750px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">내원유형</caption>
  602. <caption id="caption29" class="cell_1" style="left:905px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">진료분야</caption>
  603. <caption id="caption51" class="cell_1" style="left:1049px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구번호</caption>
  604. <input id="input22" ref="/root/main/list01/gridpidmclam/clamym" class="input_default" format="yyyy-mm" appearance="output" style="left:63px; top:76px; width:80px; height:19px; text-align:center; "/>
  605. <input id="ipt_clamdd" ref="/root/main/list01/gridpidmclam/uncoym" class="input_default" format="yyyy-mm" appearance="output" style="left:209px; top:76px; width:90px; height:19px; text-align:center; "/>
  606. <input id="input2" ref="/root/main/list01/gridpidmclam/acptdd" class="input_default" format="yyyy-mm-dd" appearance="output" style="left:365px; top:76px; width:90px; height:19px; text-align:center; "/>
  607. <input id="ipt_clamtypecd" ref="/root/main/list01/gridpidmclam/clamflag" appearance="output" style="left:521px; top:76px; width:80px; height:19px; text-align:center; "/>
  608. <input id="input24" ref="/root/main/list01/gridpidmclam/judgdg" class="input_default" appearance="output" style="left:667px; top:76px; width:80px; height:19px; text-align:center; "/>
  609. <input id="input38" ref="/root/main/list01/gridpidmclam/ioflag" appearance="output" style="left:812px; top:76px; width:90px; height:19px; "/>
  610. <input id="input25" ref="/root/main/list01/gridpidmclam/ordfildcd" class="input_default" appearance="output" style="left:967px; top:76px; width:80px; height:19px; text-align:center; "/>
  611. <input id="input39" ref="/root/main/list01/gridpidmclam/clamno" class="input_default" appearance="output" style="left:1111px; top:76px; width:80px; height:19px; text-align:center; "/>
  612. <line id="line10" class="line_3" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  613. <caption id="caption3" class="tit_2" style="left:6px; top:113px; width:78px; height:13px; ">청구내역</caption>
  614. <line id="line2" class="line_1" style="x1:0px; y1:127px; x2:232px; y2:127px; "/>
  615. <caption id="caption21" class="cell_1" style="left:0px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  616. <caption id="caption26" class="cell_1" style="left:0px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  617. <caption id="caption11" class="cell_1" style="left:0px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  618. <caption id="caption22" class="cell_1" style="left:0px; top:206px; width:115px; height:23px; vertical-align:middle; ">청구액</caption>
  619. <caption id="caption19" class="cell_1" style="left:0px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  620. <caption id="caption56" class="cell_1" style="left:0px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  621. <caption id="caption59" class="cell_1" style="left:0px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  622. <caption id="caption62" class="cell_1" style="left:0px; top:306px; width:115px; height:23px; vertical-align:middle; ">청구약제상한차액</caption>
  623. <input id="input9" ref="/root/main/list01/gridpifmiunc/clamcnt" class="input_default" format="#,###" style="left:118px; top:133px; width:170px; height:19px; text-align:right; "/>
  624. <input id="input4" ref="/root/main/list01/gridpifmiunc/clmcstotamt" class="input_default" format="#,###" style="left:118px; top:157px; width:114px; height:19px; text-align:right; "/>
  625. <input id="input16" ref="/root/main/list01/gridpifmiunc/clownbamt" class="input_default" format="#,###" style="left:118px; top:182px; width:114px; height:19px; text-align:right; "/>
  626. <input id="input3" ref="/root/main/list01/gridpifmiunc/clclamamt" class="input_default" format="#,###" style="left:118px; top:208px; width:114px; height:19px; text-align:right; "/>
  627. <input id="input26" ref="/root/main/list01/gridpifmiunc/clownbmaxexamt" class="input_default" format="#,###" style="left:118px; top:233px; width:114px; height:19px; text-align:right; "/>
  628. <input id="input21" ref="/root/main/list01/gridpifmiunc/clsuppamt" class="input_default" format="#,###" style="left:118px; top:258px; width:114px; height:19px; text-align:right; "/>
  629. <input id="input41" ref="/root/main/list01/gridpifmiunc/clhandicaprfund" class="input_default" format="#,###" style="left:118px; top:283px; width:114px; height:19px; text-align:right; "/>
  630. <input id="input46" ref="/root/main/list01/gridpifmiunc/cldruglimitdiffamtsum" class="input_default" format="#,###" style="left:118px; top:308px; width:114px; height:19px; text-align:right; "/>
  631. <caption id="caption39" class="tit_2" style="left:246px; top:112px; width:114px; height:13px; ">심결내역(F204)</caption>
  632. <line id="line1" class="line_1" style="x1:237px; y1:127px; x2:473px; y2:127px; "/>
  633. <caption id="caption13" class="cell_1" style="left:302px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  634. <caption id="caption17" class="cell_1" style="left:237px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  635. <caption id="caption25" class="cell_1" style="left:237px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  636. <caption id="caption9" class="cell_1" style="left:237px; top:206px; width:115px; height:23px; vertical-align:middle; ">심결액</caption>
  637. <caption id="caption15" class="cell_1" style="left:237px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  638. <caption id="caption55" class="cell_1" style="left:237px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  639. <caption id="caption58" class="cell_1" style="left:237px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  640. <caption id="caption63" class="cell_1" style="left:237px; top:306px; width:115px; height:23px; vertical-align:middle; ">심결약제상한차액</caption>
  641. <input id="ipt_judgdecicnt" ref="/root/main/list01/gridpifmiunc/judgdecicnt" class="input_default" format="#,###" style="left:420px; top:133px; width:170px; height:19px; text-align:right; "/>
  642. <input id="input17" ref="/root/main/list01/gridpifmiunc/jrtotordamt01" class="input_default" format="#,###" style="left:355px; top:158px; width:118px; height:19px; text-align:right; "/>
  643. <input id="input14" ref="/root/main/list01/gridpifmiunc/jrownbamt01" class="input_default" format="#,###" style="left:355px; top:183px; width:118px; height:19px; text-align:right; "/>
  644. <input id="input11" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt01" class="input_default" format="(-)#,###" style="left:355px; top:208px; width:118px; height:19px; text-align:right; "/>
  645. <input id="input27" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt01" class="input_default" format="#,###" style="left:355px; top:233px; width:118px; height:19px; text-align:right; "/>
  646. <input id="input23" ref="/root/main/list01/gridpifmiunc/jrsuppamt01" class="input_default" format="#,###" style="left:355px; top:258px; width:118px; height:19px; text-align:right; "/>
  647. <input id="input42" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund01" class="input_default" format="#,###" style="left:355px; top:283px; width:118px; height:19px; text-align:right; "/>
  648. <input id="input47" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum01" class="input_default" format="#,###" style="left:355px; top:308px; width:118px; height:19px; text-align:right; "/>
  649. <caption id="caption40" class="tit_2" style="left:486px; top:112px; width:78px; height:13px; ">반송내역</caption>
  650. <line id="line4" class="line_1" style="x1:478px; y1:127px; x2:713px; y2:127px; "/>
  651. <caption id="caption4" class="cell_1" style="left:603px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  652. <caption id="caption18" class="cell_1" style="left:603px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  653. <caption id="caption5" class="cell_1" style="left:603px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  654. <caption id="caption20" class="cell_1" style="left:603px; top:206px; width:115px; height:23px; vertical-align:middle; ">반송액</caption>
  655. <caption id="caption10" class="cell_1" style="left:603px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  656. <caption id="caption7" class="cell_1" style="left:603px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  657. <caption id="caption61" class="cell_1" style="left:603px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  658. <caption id="caption16" class="cell_1" style="left:603px; top:306px; width:115px; height:23px; vertical-align:middle; ">반송약제상한차액</caption>
  659. <input id="input6" ref="/root/main/list01/gridpifmiunc/rtncnt" class="input_default" format="#,###" style="left:721px; top:133px; width:170px; height:19px; text-align:right; "/>
  660. <input id="input7" ref="/root/main/list01/gridpifmiunc/jrtotordamt02" class="input_default" format="#,###" style="left:721px; top:158px; width:170px; height:19px; text-align:right; "/>
  661. <input id="input5" ref="/root/main/list01/gridpifmiunc/jrownbamt02" class="input_default" format="#,###" style="left:721px; top:183px; width:170px; height:19px; text-align:right; "/>
  662. <input id="input1" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt02" class="input_default" format="#,###" style="left:721px; top:208px; width:170px; height:19px; text-align:right; "/>
  663. <input id="input28" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt02" class="input_default" format="#,###" style="left:721px; top:233px; width:170px; height:19px; text-align:right; "/>
  664. <input id="input36" ref="/root/main/list01/gridpifmiunc/jrsuppamt02" class="input_default" format="#,###" style="left:721px; top:258px; width:170px; height:19px; text-align:right; "/>
  665. <input id="input43" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund02" class="input_default" format="#,###" style="left:721px; top:283px; width:170px; height:19px; text-align:right; "/>
  666. <input id="input48" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum02" class="input_default" format="#,###" style="left:721px; top:308px; width:170px; height:19px; text-align:right; "/>
  667. <caption id="caption41" class="tit_2" style="left:726px; top:112px; width:96px; height:13px; ">심사보류내역</caption>
  668. <line id="line6" class="line_1" style="x1:718px; y1:127px; x2:953px; y2:127px; "/>
  669. <caption id="caption28" class="cell_1" style="left:903px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  670. <caption id="caption31" class="cell_1" style="left:903px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  671. <caption id="caption30" class="cell_1" style="left:903px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  672. <caption id="caption23" class="cell_1" style="left:903px; top:206px; width:115px; height:23px; vertical-align:middle; ">보류액</caption>
  673. <caption id="caption24" class="cell_1" style="left:903px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  674. <caption id="caption48" class="cell_1" style="left:903px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  675. <caption id="caption60" class="cell_1" style="left:903px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  676. <caption id="caption64" class="cell_1" style="left:903px; top:306px; width:115px; height:23px; vertical-align:middle; ">반송약제상한차액</caption>
  677. <input id="input13" ref="/root/main/list01/gridpifmiunc/judgretecnt" class="input_default" format="#,###" style="left:1021px; top:133px; width:170px; height:19px; text-align:right; "/>
  678. <input id="input8" ref="/root/main/list01/gridpifmiunc/jrtotordamt03" class="input_default" format="#,###" style="left:1021px; top:158px; width:170px; height:19px; text-align:right; "/>
  679. <input id="input12" ref="/root/main/list01/gridpifmiunc/jrownbamt03" class="input_default" format="#,###" style="left:1021px; top:183px; width:170px; height:19px; text-align:right; "/>
  680. <input id="input10" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt03" class="input_default" format="#,###" style="left:1021px; top:208px; width:170px; height:19px; text-align:right; "/>
  681. <input id="input29" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt03" class="input_default" format="#,###" style="left:1021px; top:233px; width:170px; height:19px; text-align:right; "/>
  682. <input id="input37" ref="/root/main/list01/gridpifmiunc/jrsuppamt03" class="input_default" format="#,###" style="left:1021px; top:258px; width:170px; height:19px; text-align:right; "/>
  683. <input id="input45" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund03" class="input_default" format="#,###" style="left:1021px; top:283px; width:170px; height:19px; text-align:right; "/>
  684. <input id="input49" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum03" class="input_default" format="#,###" style="left:1021px; top:308px; width:170px; height:19px; text-align:right; "/>
  685. <line id="line13" class="line_3" style="x1:238px; y1:329px; x2:473px; y2:329px; "/>
  686. <line id="line19" class="line_3" style="x1:603px; y1:329px; x2:838px; y2:329px; "/>
  687. <line id="line20" class="line_3" style="x1:903px; y1:329px; x2:1190px; y2:329px; "/>
  688. <line id="line3" class="line_2" style="x1:1px; y1:204px; x2:232px; y2:204px; "/>
  689. <line id="line17" class="line_2" style="x1:1px; y1:229px; x2:232px; y2:229px; "/>
  690. <line id="line42" class="line_2" style="x1:1px; y1:254px; x2:232px; y2:254px; "/>
  691. <line id="line12" class="line_3" style="x1:0px; y1:329px; x2:232px; y2:329px; "/>
  692. <line id="line15" class="line_2" style="x1:1px; y1:179px; x2:232px; y2:179px; "/>
  693. <line id="line16" class="line_2" style="x1:0px; y1:154px; x2:231px; y2:154px; "/>
  694. <line id="line22" class="line_2" style="x1:238px; y1:154px; x2:473px; y2:154px; "/>
  695. <line id="line23" class="line_2" style="x1:238px; y1:179px; x2:473px; y2:179px; "/>
  696. <line id="line24" class="line_2" style="x1:238px; y1:204px; x2:473px; y2:204px; "/>
  697. <line id="line25" class="line_2" style="x1:238px; y1:229px; x2:473px; y2:229px; "/>
  698. <line id="line40" class="line_2" style="x1:238px; y1:254px; x2:473px; y2:254px; "/>
  699. <line id="line26" class="line_2" style="x1:603px; y1:229px; x2:838px; y2:229px; "/>
  700. <line id="line41" class="line_2" style="x1:603px; y1:254px; x2:838px; y2:254px; "/>
  701. <line id="line27" class="line_2" style="x1:603px; y1:204px; x2:838px; y2:204px; "/>
  702. <line id="line28" class="line_2" style="x1:603px; y1:179px; x2:838px; y2:179px; "/>
  703. <line id="line29" class="line_2" style="x1:603px; y1:154px; x2:890px; y2:154px; "/>
  704. <line id="line30" class="line_2" style="x1:903px; y1:154px; x2:1190px; y2:154px; "/>
  705. <line id="line31" class="line_2" style="x1:903px; y1:179px; x2:1190px; y2:179px; "/>
  706. <line id="line32" class="line_2" style="x1:903px; y1:204px; x2:1190px; y2:204px; "/>
  707. <line id="line33" class="line_2" style="x1:903px; y1:229px; x2:1190px; y2:229px; "/>
  708. <line id="line38" class="line_2" style="x1:903px; y1:254px; x2:1190px; y2:254px; "/>
  709. <line id="line9" class="line_2" style="x1:239px; y1:279px; x2:474px; y2:279px; "/>
  710. <line id="line43" class="line_2" style="x1:604px; y1:279px; x2:839px; y2:279px; "/>
  711. <line id="line44" class="line_2" style="x1:2px; y1:279px; x2:233px; y2:279px; "/>
  712. <line id="line45" class="line_2" style="x1:903px; y1:279px; x2:1190px; y2:279px; "/>
  713. <line id="line47" class="line_2" style="x1:239px; y1:304px; x2:474px; y2:304px; "/>
  714. <line id="line48" class="line_2" style="x1:604px; y1:304px; x2:839px; y2:304px; "/>
  715. <line id="line49" class="line_2" style="x1:2px; y1:304px; x2:233px; y2:304px; "/>
  716. <line id="line50" class="line_2" style="x1:903px; y1:304px; x2:1190px; y2:304px; "/>
  717. <caption id="caption2" style="left:794px; top:338px; width:75px; height:20px; ">정산금액합계</caption>
  718. <input id="ipt_calcamtsum" ref="/root/main/list01/calcamtsumdetl/calcamtsum" format="(-)#,###" style="left:878px; top:338px; width:91px; height:19px; text-align:right; "/>
  719. <caption id="caption57" style="left:993px; top:338px; width:65px; height:20px; ">토탈미수금</caption>
  720. <input id="input40" ref="/root/main/list01/gridpifmiunc/totuncoamt" format="(-)#,###" appearance="input" style="left:1076px; top:338px; width:118px; height:19px; text-align:right; "/>
  721. <line id="line11" class="line_1" style="x1:0px; y1:359px; x2:1194px; y2:359px; "/>
  722. <caption id="caption33" class="cell_1" style="left:0px; top:364px; width:95px; height:23px; text-align:center; vertical-align:middle; ">삭감건수</caption>
  723. <caption id="caption43" class="cell_1" style="left:197px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">조정삭감액</caption>
  724. <caption id="caption38" class="cell_1" style="left:392px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">실삭감액</caption>
  725. <caption id="caption44" class="cell_1" style="left:587px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">본인추가부담</caption>
  726. <caption id="caption45" class="cell_1" style="left:782px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">환수잔액</caption>
  727. <caption id="caption46" class="cell_1" style="left:975px; top:364px; width:98px; height:23px; text-align:center; vertical-align:middle; ">미수금</caption>
  728. <input id="input31" ref="/root/main/list01/gridpifmiunc/rucntsum" class="input_default" style="left:98px; top:365px; width:91px; height:19px; text-align:center; "/>
  729. <input id="input35" ref="/root/main/list01/gridpifmiunc/ruadjtamtsum" class="input_default" format="#,###" style="left:293px; top:365px; width:91px; height:19px; text-align:right; "/>
  730. <input id="input32" ref="/root/main/list01/gridpifmiunc/realcutamt" class="input_default" format="(-)#,###" style="left:488px; top:365px; width:96px; height:19px; text-align:right; "/>
  731. <input id="input33" ref="/root/main/list01/gridpifmiunc/jrownaddbamtsum" class="input_default" format="#,###" style="left:683px; top:365px; width:91px; height:19px; text-align:right; "/>
  732. <input id="ipt_rtnremainamt" ref="/root/main/list01/gridpifmiunc/rtnrestamt" class="input_default" format="#,###" style="left:878px; top:365px; width:91px; height:19px; text-align:right; "/>
  733. <input id="input34" ref="/root/main/list01/gridpifmiunc/uncoamt" class="input_default" format="(-)#,###" style="left:1076px; top:365px; width:118px; height:19px; text-align:right; "/>
  734. <line id="line14" class="line_3" style="x1:0px; y1:387px; x2:1194px; y2:387px; "/>
  735. <button id="button3" class="btn2_letter6" disabled="false" style="left:880px; top:410px; width:86px; height:19px; ">
  736. <caption>환수잔액조회</caption>
  737. <script type="javascript" ev:event="onclick">
  738. <![CDATA[
  739. model.resetInstanceNode("/root/source");
  740. model.setValue("/root/source/judgdg", model.getValue("/root/send/send01/judgdg"));
  741. model.setValue("/root/source/clamno", model.getValue("/root/send/send01/clamno"));
  742. model.setValue("/root/source/acptno", model.getValue("/root/send/send01/acptno"));
  743. // model.setValue("/root/source/instcd", model.getValue("/root/main/list01/gridpifmiunc/instcd"));
  744. model.setValue("/root/source/rtnflag", "");
  745. model.makeNode("/root/source/openerflag");
  746. model.setValue("/root/source/openerflag","보험산재");
  747. // 환수잔액조회 팝업화면
  748. modal("SPPIF30310", 1, "", "", "SPPIF30310", "/root/source", "/root/send");
  749. //window.load("SPPIF30310.xrw", "modal", "SPPIF30310", "", "/root/source", "/root/send");
  750. ]]>
  751. </script>
  752. </button>
  753. <button id="button2" class="btn5_letter2" style="left:1039px; top:410px; width:42px; height:19px; ">
  754. <caption>저장</caption>
  755. <script type="javascript" ev:event="onclick">
  756. <![CDATA[
  757. var row_cnt = grd_pifhbsdp.row;
  758. var rows = grd_pifhbsdp.rows;
  759. var ins_cnt = 0;
  760. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  761. for(var i = 1;i<rows;i++) {
  762. if(grd_pifhbsdp.rowStatus(i) == 1) {
  763. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  764. ++ins_cnt;
  765. return false;
  766. }
  767. }
  768. }
  769. if(ipt_acptno.value== "") {
  770. messageBox("접수번호를","C001");
  771. model.setFocus("ipt_acptno");
  772. return false;
  773. }
  774. if(cmb_judgdg.value == "") {
  775. messageBox("심사차수를","C001");
  776. model.setFocus("cmb_judgdg");
  777. return false;
  778. }
  779. /*저장할 행을 선택하지 않았을 시*/
  780. if(row_cnt == "-1") {
  781. return false;
  782. }
  783. /*
  784. if(grd_pifhbsdp.valueMatrix(row_cnt,6) == "") {
  785. messageBox("통장입금액을","C001");
  786. return false;
  787. }*/
  788. if(grd_pifhbsdp.valueMatrix(row_cnt,2) == "" || grd_pifhbsdp.valueMatrix(row_cnt,2) == null) {
  789. messageBox(grd_pifhbsdp.valueMatrix(0,2),"C001");
  790. return false;
  791. }
  792. var notimm = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,8);
  793. notimm = notimm.substr(0,6);
  794. model.setValue("/root/main/list01/gridpifhbsdp/notimm",notimm);
  795. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  796. if (submit("TXPIF30301")) {
  797. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  798. submit("TRPIF30303");
  799. chkRtndetl();
  800. }
  801. ]]>
  802. </script>
  803. </button>
  804. <button id="button4" class="btn2_letter3" style="left:1084px; top:410px; width:53px; height:19px; ">
  805. <caption>행추가</caption>
  806. <script type="javascript" ev:event="onclick">
  807. <![CDATA[
  808. //model.alert(INSTCD);
  809. /*
  810. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  811. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  812. return false;
  813. }
  814. */
  815. grd_pifhbsdp.addRow();
  816. var row_cnt = grd_pifhbsdp.row;
  817. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acptno",ipt_acptno.value);
  818. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/judgdg",cmb_judgdg.value);
  819. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/clamno",cmb_clamno.value);
  820. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/instcd", INSTCD);
  821. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/bankcd", BANKCD);
  822. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acntcd", BANKACOUNT);
  823. // if(ipt_acptno.value == "8888888") {
  824. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "10");
  825. // }
  826. // if(ipt_acptno.value == "9999999") {
  827. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "09");
  828. // }
  829. grd_pifhbsdp.valueMatrix(row_cnt, 6) = 0;
  830. grd_pifhbsdp.valueMatrix(row_cnt, 7) = 0;
  831. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/rowstatus","i");
  832. if(ipt_calcamtsum.value != "") {
  833. var row = grd_pifhbsdp.row;
  834. var calcamtsum = Number(ipt_calcamtsum.value);
  835. if(calcamtsum >= 0) {
  836. grd_pifhbsdp.valueMatrix(row,6) = calcamtsum;
  837. grd_pifhbsdp.valueMatrix(row,7) = 0;
  838. } else {
  839. grd_pifhbsdp.valueMatrix(row,6) = 0;
  840. grd_pifhbsdp.valueMatrix(row,7) = calcamtsum;
  841. }
  842. }
  843. grd_pifhbsdp.topRow = grd_pifhbsdp.rows-1;
  844. ]]>
  845. </script>
  846. </button>
  847. <button id="button5" class="btn2_letter3" style="left:1140px; top:410px; width:53px; height:19px; ">
  848. <caption>행삭제</caption>
  849. <script type="javascript" ev:event="onclick">
  850. <![CDATA[
  851. var row_cnt = grd_pifhbsdp.row;
  852. if(row_cnt == '-1' || row_cnt == '0') {
  853. return false;
  854. }
  855. if(ipt_acptno.value== "" || cmb_judgdg.value== "") {
  856. return false;
  857. }
  858. if(grd_pifhbsdp.rowStatus(row_cnt) == "1" || grd_pifhbsdp.rowStatus(row_cnt) == "3") {
  859. grd_pifhbsdp.deleteItem(row_cnt);
  860. return false;
  861. } else {
  862. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  863. messageBox("마감된 데이터는 삭제 하실 수","I004"); // 없습니다.
  864. return;
  865. }
  866. if(messageBox("정말","Q001") == "6") {
  867. var rows = grd_pifhrtns.rows; // 환수내역 그리드의 데이터 총 갯수
  868. if(rows > 1) {
  869. for(var i=1;i<rows;i++) {
  870. var rtnacptno = grd_pifhrtns.valueMatrix(i,3);
  871. var rtnjudgdg = grd_pifhrtns.valueMatrix(i,4);
  872. var rtnseqno = grd_pifhrtns.valueMatrix(i,16);
  873. var seqno = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,13);
  874. if(ipt_acptno.value == rtnacptno & cmb_judgdg.value == rtnjudgdg & seqno == rtnseqno) {
  875. //if(messageBox("환수내역에 있는 데이터도 같이 삭제됩니다. 데이터를","Q001") == 7) {
  876. // return false;
  877. //}
  878. messageBox("환수내역이 존재하기 때문에 입금내역을 삭제할 수","I004");
  879. return false;
  880. }
  881. }
  882. }
  883. grd_pifhbsdp.deleteItem(row_cnt);
  884. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  885. //submit("TXPIF30301");
  886. if (submit("TXPIF30301")) {
  887. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  888. submit("TRPIF30303");
  889. chkRtndetl();
  890. }
  891. }
  892. }
  893. ]]>
  894. </script>
  895. </button>
  896. <line id="line5" class="line_1" style="x1:0px; y1:431px; x2:1194px; y2:431px; "/>
  897. <caption id="caption8" class="tit_2" style="left:6px; top:404px; width:111px; height:13px; ">입금내역</caption>
  898. <datagrid id="grd_pifhbsdp" nodeset="/root/main/list01/gridpifhbsdp" caption="입금일자^입금구분^금융기관^계좌번호^건수^통장입금액^외래입금액^입원입금액^재무통보월^비고^접수번호^심사차수^청구번호^일련번호^기관코드" colsep="^" colwidth="100, 90, 100, 120, 70, 90, 90, 90, 86, 322, 100, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:436px; width:1194px; height:294px; ">
  899. <col autonext="true" ref="depodd" type="inputdate" format="yyyy-mm-dd" maxlength="8" style="text-align:center; "/>
  900. <col autonext="true" ref="inddepoflag" type="combo">
  901. <choices>
  902. <itemset nodeset="/root/init/P0266list/P0266">
  903. <label ref="cdnm"/>
  904. <value ref="cdid"/>
  905. </itemset>
  906. </choices>
  907. </col>
  908. <col autonext="true" ref="bankcd" type="combo" style="text-align:center; ">
  909. <choices>
  910. <itemset nodeset="/root/init/R0001list/R0001">
  911. <label ref="cdnm"/>
  912. <value ref="cdid"/>
  913. </itemset>
  914. </choices>
  915. </col>
  916. <col ref="acntcd" type="input" style="text-align:center; "/>
  917. <col ref="depocnt" type="input" format="#,###" style="text-align:right; "/>
  918. <col ref="depoamt" type="input" format="#,###" style="text-align:right; "/>
  919. <col ref="depooutamt" type="input" format="#,###" style="text-align:right; "/>
  920. <col ref="depoinamt" type="input" format="#,###" style="text-align:right; "/>
  921. <col ref="notimm" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  922. <col ref="rem" type="input"/>
  923. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  924. <col ref="judgdg" visibility="hidden" style="text-align:center; "/>
  925. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  926. <col ref="seqno" visibility="hidden" style="text-align:center; "/>
  927. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  928. <script type="javascript" ev:event="xforms-select">
  929. <![CDATA[
  930. var insukind = model.getValue("/root/send/send01/insukind");
  931. if(grd_pifhbsdp.col == grd_pifhbsdp.colRef("depoflag")){
  932. var row = grd_pifhbsdp.row;
  933. // 입금내역 그리드의 통장입금액을 받을 행번호를 send 노드에 create 한후 개인별 상한금 조회화면으로 넘겨준다.
  934. model.makeNode("/root/send/send01/opn_row");
  935. model.setValue("/root/send/send01/opn_row", row);
  936. var depoflag = grd_pifhbsdp.valueMatrix(row,2); // 입금구분
  937. var clamseqno = model.getValue("/root/main/list01/gridpifmiunc/clamseqno"); // 청구서일련번호(심결내역이 도착한 순서대로)
  938. // 입금구분이 가지급,주민보류,무차수가지급,환입금,결손액 선택시 건수는 0 입력
  939. if(depoflag == "01" || depoflag == "03" || depoflag == "05" || depoflag == "06" || depoflag == "07" || depoflag == "08" || depoflag == "11") {
  940. grd_pifhbsdp.valueMatrix(row,5) = 0;
  941. }
  942. // 20100721 입금구분이 가지급, 상한금, 지원금인 경우는 심사차수가 1차인 경우만 입력가능
  943. if(depoflag == "01" || depoflag == "06" || depoflag == "11") {
  944. //model.setValue("/root/temp/fstjudgdg", model.getValue("/root/send/send01/judgdg"));
  945. //model.alert(model.getValue("/root/temp/fstjudgdg"));
  946. //model.alert(model.getValue("/root/send/send01/judgdg"));
  947. if(model.getValue("/root/temp/fstjudgdg") != model.getValue("/root/send/send01/judgdg")){
  948. messageBox("가지급, 상한금, 지원금은 심사차수가 1차만 가능합니다","");
  949. return;
  950. }
  951. }
  952. // 20100721 END
  953. //1차 가지급일 경우
  954. if(depoflag == "02") {
  955. if(clamseqno != "1"){
  956. if(insukind == "11"){
  957. grd_pifhbsdp.valueMatrix(row,2) = "04";
  958. }else{
  959. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  960. }
  961. /*
  962. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  963. // grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/init/temp/judgretecnt/cnt");
  964. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value)
  965. setGridPifhbsdpFocus("popup")
  966. */
  967. }else{
  968. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  969. }
  970. }
  971. // 입금구분이 주민보류일 경우
  972. if(depoflag == "03") {
  973. // grd_pifhbsdp.isReadOnly(row,7) = true;
  974. model.makeNode("/root/send/send01/openerflag");
  975. model.setValue("/root/send/send01/openerflag", "2");
  976. model.makeNode("/root/send/send01/clamym");
  977. model.setValue("/root/send/send01/clamym", ipt_clamdd.value.substr(0,6));
  978. model.makeNode("/root/send/send01/instcd");
  979. //model.setValue("/root/send/send01/instcd", ipt_instcd_hid.value);
  980. // 입금일자를 팝업에 던져 준다.
  981. model.makeNode("/root/send/send01/rtndd");
  982. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  983. modal("SPPIF30303", 1,"", "", "SPPIF30303", "/root/send/send01", "/root/send");
  984. setGridPifhbsdpFocus("popup");
  985. //window.load("SPPIF30303_주민보류내역.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  986. }
  987. // 입금구분이 심사보류일 경우 심사보류건수는 심사차수가 2차이상일 경우만 0이 아닐수 있다.
  988. // 1차에서의 심사보류건수 중 2차 심결로 온 건수 - 2차 주민보류건수 = 심사보류 건수이다.
  989. if(depoflag == "04") {
  990. if(clamseqno == "1"){
  991. grd_pifhbsdp.valueMatrix(row,2) = "02";
  992. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  993. }else{
  994. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  995. // grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/init/temp/judgretecnt/cnt");
  996. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value)
  997. setGridPifhbsdpFocus("popup")
  998. };
  999. }
  1000. // 입금구분이 상한액일 경우
  1001. if(depoflag == "06") {
  1002. // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1003. // grd_pifhbsdp.isReadOnly(row,7) = true;
  1004. model.makeNode("/root/send/send01/openerflag");
  1005. model.setValue("/root/send/send01/openerflag", "2");
  1006. // 입금일자를 팝업에 던져 준다.
  1007. model.makeNode("/root/send/send01/rtndd");
  1008. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  1009. // 2009.04.06 입금구분을 넘겨준다.
  1010. model.makeNode("/root/send/send01/inddepoflag");
  1011. model.setValue("/root/send/send01/inddepoflag", "06");
  1012. // model.setFocus("body");
  1013. modal("SPPIF30301", 1,"", "", "SPPIF30301", "/root/send/send01", "/root/send");
  1014. setGridPifhbsdpFocus("popup");
  1015. //window.load("SPPIF30301_개인별상한금관리.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  1016. }
  1017. // 입금구분이 정산일 경우 정산건수는 piehf403 테이블의 정산 결정차액이 0이 아닌 건수
  1018. if(depoflag == "09") {
  1019. grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/main/list01/gridpifmiunc/cnt_calcdepo");
  1020. }
  1021. // 입금구분이 원외정산일 경우 원외정산건수는 piehf703 테이블의 정산 결정차액이 0이 아닌 건수
  1022. if(depoflag == "10") {
  1023. grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/main/list01/gridpifmiunc/cnt_hosoutcalc");
  1024. }
  1025. // 입금구분이 지원금일 경우
  1026. if(depoflag == "11") {
  1027. // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1028. // grd_pifhbsdp.isReadOnly(row,7) = true;
  1029. model.makeNode("/root/send/send01/openerflag");
  1030. model.setValue("/root/send/send01/openerflag", "2");
  1031. // 입금일자를 팝업에 던져 준다.
  1032. model.makeNode("/root/send/send01/rtndd");
  1033. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  1034. // 2009.04.06 입금구분을 넘겨준다.
  1035. model.makeNode("/root/send/send01/inddepoflag");
  1036. model.setValue("/root/send/send01/inddepoflag", "11");
  1037. // model.setFocus("body");
  1038. modal("SPPIF30304", 1,"", "", "SPPIF30304", "/root/send/send01", "/root/send");
  1039. setGridPifhbsdpFocus("popup");
  1040. //window.load("SPPIF30301_개인별상한금관리.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  1041. }
  1042. // 입금구분이 장애인일 경우
  1043. if(depoflag == "12") {
  1044. modal("SPPIF30421", 1,"", "", "SPPIF30421", "/root/send/send01", "/root/send");
  1045. }
  1046. // if(depoflag == "01") {
  1047. // // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1048. // // grd_pifhbsdp.isReadOnly(row,7) = true;
  1049. //
  1050. // // 다음 포커스로 이동(가지급의 경우엔 통장입금액만 입력함. 환수예정액은 없음)
  1051. // setGridPifhbsdpFocus("nopopup");
  1052. // }
  1053. /*if(depoflag == "02" || depoflag == "05" || depoflag == "07" || depoflag == "08" || depoflag == "09" || depoflag == "10") {
  1054. grd_pifhbsdp.valueMatrix(row,7) = "0";
  1055. // grd_pifhbsdp.isReadOnly(row,7) = false;
  1056. }*/
  1057. if(depoflag != "02") {
  1058. // grd_pifhbsdp.valueMatrix(row,6) = "0"; // 2009.04.13 통장입금액 초기화 주석처리
  1059. grd_pifhbsdp.valueMatrix(row,7) = "0";
  1060. }
  1061. // 입금구분 선택시 다음 포커스 Setting
  1062. if(depoflag == "01" || depoflag == "02" || depoflag == "05" || depoflag == "07" || depoflag == "08" || depoflag == "09" || depoflag == "10") {
  1063. setGridPifhbsdpFocus("nopopup");
  1064. }
  1065. // 입금구분 선택시 다음 포커스 Setting 끝
  1066. chkGridPifhbsdp();
  1067. }
  1068. ]]>
  1069. </script>
  1070. <script type="javascript" ev:event="onkeyup">
  1071. <![CDATA[
  1072. if(event.keyCode == "13") {
  1073. var col = grd_pifhbsdp.col;
  1074. if(col == 6) {
  1075. model.setFocus("body");
  1076. model.setFocus("grd_pifhbsdp");
  1077. // 1차 지급일 경우 환수예정액으로 포커스 이동
  1078. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,2) == "02" ) {
  1079. grd_pifhbsdp.col = 7;
  1080. } else {
  1081. grd_pifhbsdp.col = 8;
  1082. }
  1083. grd_pifhbsdp.dispatch("onentercell");
  1084. grd_pifhbsdp.editCell();
  1085. }
  1086. if(col == 7) {
  1087. model.setFocus("body");
  1088. model.setFocus("grd_pifhbsdp");
  1089. grd_pifhbsdp.col = 8;
  1090. grd_pifhbsdp.dispatch("onentercell");
  1091. grd_pifhbsdp.editCell();
  1092. }
  1093. }
  1094. ]]>
  1095. </script>
  1096. <script type="javascript" ev:event="xforms-value-changed">
  1097. <![CDATA[
  1098. var col = grd_pifhbsdp.col;
  1099. var row = grd_pifhbsdp.row;
  1100. var clamseqno = model.getValue("/root/main/list01/gridpifmiunc/clamseqno");
  1101. var insukind = model.getValue("/root/send/send01/insukind");
  1102. if(insukind == "11"){
  1103. if( col == grd_pifhbsdp.colRef("depodd")) {
  1104. if(grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row, grd_pifhbsdp.colRef("depodd")) != '') {
  1105. //model.setFocus("body");
  1106. //model.setFocus("grd_pifhbsdp");
  1107. if(clamseqno == "1"){
  1108. grd_pifhbsdp.valueMatrix(row,2) = "02";
  1109. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  1110. }else{
  1111. grd_pifhbsdp.valueMatrix(row,2) = "04";
  1112. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  1113. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value);
  1114. }
  1115. //입금일자 선택시 입금월로 재무통보월 자동 세팅-20100706 정숙희 선생님 요청사항
  1116. var depodd = model.getValue("/root/main/list01/gridpifhbsdp["+ row +"]/depodd").substring(0,6);
  1117. model.setValue("/root/main/list01/gridpifhbsdp["+ row +"]/notimm", depodd);
  1118. //통장입금액을 심결액으로 세팅-20100706 정숙희 선생님 요청사항
  1119. model.setValue("/root/main/list01/gridpifhbsdp["+ row +"]/depoamt", model.getValue("/root/main/list01/gridpifmiunc/jrjudgdeciamt01"));
  1120. // setGridPifhbsdpFocus("nopopup");
  1121. model.setFocus("body");
  1122. model.setFocus("grd_pifhbsdp");
  1123. grd_pifhbsdp.col = 6;
  1124. grd_pifhbsdp.dispatch("onentercell");
  1125. // grd_pifhbsdp.editCell();
  1126. }
  1127. }
  1128. }
  1129. if( col == grd_pifhbsdp.colRef("notimm")) {
  1130. if(grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) != '') {
  1131. model.setFocus("body");
  1132. model.setFocus("grd_pifhbsdp");
  1133. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  1134. messageBox("마감된 이전월의 재무통보월은 입력하실 수","I004");
  1135. grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) = "";
  1136. return;
  1137. }
  1138. }
  1139. }
  1140. ]]>
  1141. </script>
  1142. </datagrid>
  1143. </group>
  1144. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
  1145. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1146. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  1147. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1148. <caption id="caption32" class="search_name" style="left:115px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
  1149. <input id="ipt_acptno" ref="/root/send/send01/acptno" class="input_s_essential" navindex="2" maxlength="8" style="left:203px; top:8px; width:110px; height:19px; text-align:center; ">
  1150. <script type="javascript" ev:event="DOMFocusOut">
  1151. <![CDATA[
  1152. if(ipt_acptno.value == "") {
  1153. return false;
  1154. } else {
  1155. searchClamno();
  1156. model.setFocus("cmb_judgdg");
  1157. }
  1158. ]]>
  1159. </script>
  1160. </input>
  1161. <caption id="caption34" class="search_name" style="left:332px; top:9px; width:86px; height:17px; ">청구번호 :</caption>
  1162. <select1 id="cmb_clamno" ref="/root/send/send01/clamno" class="combo_s_essential" navindex="4" appearance="minimal" style="left:422px; top:8px; width:100px; height:19px; text-align:center; ">
  1163. <choices>
  1164. <itemset nodeset="/root/main/list001/U0001">
  1165. <label ref="clamno"/>
  1166. <value ref="clamno"/>
  1167. </itemset>
  1168. </choices>
  1169. <script type="javascript" ev:event="xforms-select">
  1170. <![CDATA[
  1171. // 심사차수를 초기화한다.
  1172. model.removenode("/root/main/list002/U0002");
  1173. model.setValue("/root/send/send01/judgdg","");
  1174. model.refresh();
  1175. submit("TRPIF30302");
  1176. if(cmb_judgdg.length == 1) {
  1177. cmb_judgdg.value = model.getValue("/root/main/list002/U0002/judgdg");
  1178. search();
  1179. //model.setFocus("btn_srch");
  1180. } else if(cmb_judgdg.length > 1) {
  1181. model.setFocus("cmb_judgdg");
  1182. } else {
  1183. messageBox("해당하는 심사차수가","I004");
  1184. return false;
  1185. }
  1186. cmb_judgdg.select(0); // 심사차수 첫번째 항목 자동 선택
  1187. model.setValue("/root/temp/fstjudgdg", model.getValue("/root/send/send01/judgdg"));
  1188. ]]>
  1189. </script>
  1190. </select1>
  1191. <caption id="caption35" class="search_name" style="left:542px; top:9px; width:86px; height:17px; ">심사차수 :</caption>
  1192. <select1 id="cmb_judgdg" ref="/root/send/send01/judgdg" class="combo_s_essential" navindex="3" appearance="minimal" showvalue="true" style="left:632px; top:8px; width:138px; height:19px; text-align:left; ">
  1193. <choices>
  1194. <itemset nodeset="/root/main/list002/U0002">
  1195. <label ref="setno"/>
  1196. <value ref="judgdg"/>
  1197. </itemset>
  1198. </choices>
  1199. <script type="javascript" ev:event="xforms-select">
  1200. <![CDATA[
  1201. model.removenode("/root/main/list01");
  1202. search();
  1203. ]]>
  1204. </script>
  1205. </select1>
  1206. <line id="line7" class="line_4" style="x1:1105px; y1:7px; x2:1105px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1207. <button id="button8" class="btn1_letter2" style="left:1121px; top:7px; width:56px; height:22px; ">
  1208. <caption>조회</caption>
  1209. <script type="javascript" ev:event="DOMActivate">
  1210. <![CDATA[
  1211. search();
  1212. ]]>
  1213. </script>
  1214. </button>
  1215. <select1 id="radio1" ref="/root/send/send01/insukind" class="radio_search" appearance="full" cellspacing="0" cols="2" overflow="visible" style="left:20px; top:10px; width:95px; height:16px; border-style:none; ">
  1216. <choices>
  1217. <item>
  1218. <label>보험</label>
  1219. <value>11</value>
  1220. </item>
  1221. <item>
  1222. <label>산재</label>
  1223. <value>41</value>
  1224. </item>
  1225. </choices>
  1226. <script type="javascript" ev:event="xforms-select">
  1227. <![CDATA[
  1228. if (rdo_insukind.value == "11") {
  1229. ipt_acptno.attribute("maxlength") = 7;
  1230. model.setValue("/root/send/uncoendprcs/insukindflag","1"); // 보험
  1231. } else if (rdo_insukind.value == "41") {
  1232. ipt_acptno.attribute("maxlength") = 15;
  1233. model.setValue("/root/send/uncoendprcs/insukindflag","6"); // 산재
  1234. }
  1235. // 최종 마감월
  1236. model.removeNodeset("/root/main/check");
  1237. submit("TRPIF31303");
  1238. // 라디오 선택 변경시 초기화
  1239. model.removenode("/root/main/list01");
  1240. model.removenode("/root/main/list001/U0001");
  1241. model.removenode("/root/main/list002/U0002");
  1242. model.resetInstanceNode("/root/main/list001/U0001");
  1243. model.resetInstanceNode("/root/main/list002/U0002");
  1244. model.setValue("/root/send/send01/clamno","");
  1245. model.setValue("/root/send/send01/judgdg","");
  1246. model.setValue("/root/send/send01/acptno","");
  1247. model.refresh();
  1248. model.setFocus("ipt_acptno");
  1249. ]]>
  1250. </script>
  1251. </select1>
  1252. <input id="input20" ref="/root/main/list001/acptnocnt/cnt" visibility="hidden" style="left:1075px; top:8px; width:20px; height:19px; "/>
  1253. </group>
  1254. <button id="button9" class="btn5_letter2" style="left:1040px; top:50px; width:42px; height:19px; ">
  1255. <caption>저장</caption>
  1256. <script type="javascript" ev:event="onclick">
  1257. <![CDATA[
  1258. var row_cnt = grd_pifhbsdp.row;
  1259. var rows = grd_pifhbsdp.rows;
  1260. var ins_cnt = 0;
  1261. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  1262. for(var i = 1;i<rows;i++) {
  1263. if(grd_pifhbsdp.rowStatus(i) == 1) {
  1264. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  1265. ++ins_cnt;
  1266. return false;
  1267. }
  1268. }
  1269. }
  1270. if(ipt_acptno.value== "") {
  1271. messageBox("접수번호를","C001");
  1272. model.setFocus("ipt_acptno");
  1273. return false;
  1274. }
  1275. if(cmb_judgdg.value == "") {
  1276. messageBox("심사차수를","C001");
  1277. model.setFocus("cmb_judgdg");
  1278. return false;
  1279. }
  1280. /*저장할 행을 선택하지 않았을 시*/
  1281. if(row_cnt == "-1") {
  1282. return false;
  1283. }
  1284. /*
  1285. if(grd_pifhbsdp.valueMatrix(row_cnt,6) == "") {
  1286. messageBox("통장입금액을","C001");
  1287. return false;
  1288. }*/
  1289. if(grd_pifhbsdp.valueMatrix(row_cnt,2) == "" || grd_pifhbsdp.valueMatrix(row_cnt,2) == null) {
  1290. messageBox(grd_pifhbsdp.valueMatrix(0,2),"C001");
  1291. return false;
  1292. }
  1293. var notimm = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,8);
  1294. notimm = notimm.substr(0,6);
  1295. model.setValue("/root/main/list01/gridpifhbsdp/notimm",notimm);
  1296. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  1297. if (submit("TXPIF30301")) {
  1298. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  1299. submit("TRPIF30303");
  1300. chkRtndetl();
  1301. }
  1302. ]]>
  1303. </script>
  1304. </button>
  1305. <button id="button10" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  1306. <caption>행추가</caption>
  1307. <script type="javascript" ev:event="onclick">
  1308. <![CDATA[
  1309. //model.alert(INSTCD);
  1310. /*
  1311. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  1312. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  1313. return false;
  1314. }
  1315. */
  1316. grd_pifhbsdp.addRow();
  1317. var row_cnt = grd_pifhbsdp.row;
  1318. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acptno",ipt_acptno.value);
  1319. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/judgdg",cmb_judgdg.value);
  1320. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/clamno",cmb_clamno.value);
  1321. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/instcd", INSTCD);
  1322. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/bankcd", BANKCD);
  1323. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acntcd", BANKACOUNT);
  1324. // if(ipt_acptno.value == "8888888") {
  1325. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "10");
  1326. // }
  1327. // if(ipt_acptno.value == "9999999") {
  1328. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/depoflag", "09");
  1329. // }
  1330. grd_pifhbsdp.valueMatrix(row_cnt, 6) = 0;
  1331. grd_pifhbsdp.valueMatrix(row_cnt, 7) = 0;
  1332. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/rowstatus","i");
  1333. if(ipt_calcamtsum.value != "") {
  1334. var row = grd_pifhbsdp.row;
  1335. var calcamtsum = Number(ipt_calcamtsum.value);
  1336. if(calcamtsum >= 0) {
  1337. grd_pifhbsdp.valueMatrix(row,6) = calcamtsum;
  1338. grd_pifhbsdp.valueMatrix(row,7) = 0;
  1339. } else {
  1340. grd_pifhbsdp.valueMatrix(row,6) = 0;
  1341. grd_pifhbsdp.valueMatrix(row,7) = calcamtsum;
  1342. }
  1343. }
  1344. grd_pifhbsdp.topRow = grd_pifhbsdp.rows-1;
  1345. ]]>
  1346. </script>
  1347. </button>
  1348. <button id="button11" class="btn2_letter3" style="left:1140px; top:50px; width:53px; height:19px; ">
  1349. <caption>행삭제</caption>
  1350. <script type="javascript" ev:event="onclick">
  1351. <![CDATA[
  1352. var row_cnt = grd_pifhbsdp.row;
  1353. if(row_cnt == '-1' || row_cnt == '0') {
  1354. return false;
  1355. }
  1356. if(ipt_acptno.value== "" || cmb_judgdg.value== "") {
  1357. return false;
  1358. }
  1359. if(grd_pifhbsdp.rowStatus(row_cnt) == "1" || grd_pifhbsdp.rowStatus(row_cnt) == "3") {
  1360. grd_pifhbsdp.deleteItem(row_cnt);
  1361. return false;
  1362. } else {
  1363. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  1364. messageBox("마감된 데이터는 삭제 하실 수","I004"); // 없습니다.
  1365. return;
  1366. }
  1367. if(messageBox("정말","Q001") == "6") {
  1368. var rows = grd_pifhrtns.rows; // 환수내역 그리드의 데이터 총 갯수
  1369. if(rows > 1) {
  1370. for(var i=1;i<rows;i++) {
  1371. var rtnacptno = grd_pifhrtns.valueMatrix(i,3);
  1372. var rtnjudgdg = grd_pifhrtns.valueMatrix(i,4);
  1373. var rtnseqno = grd_pifhrtns.valueMatrix(i,16);
  1374. var seqno = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,13);
  1375. if(ipt_acptno.value == rtnacptno & cmb_judgdg.value == rtnjudgdg & seqno == rtnseqno) {
  1376. //if(messageBox("환수내역에 있는 데이터도 같이 삭제됩니다. 데이터를","Q001") == 7) {
  1377. // return false;
  1378. //}
  1379. messageBox("환수내역이 존재하기 때문에 입금내역을 삭제할 수","I004");
  1380. return false;
  1381. }
  1382. }
  1383. }
  1384. grd_pifhbsdp.deleteItem(row_cnt);
  1385. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  1386. //submit("TXPIF30301");
  1387. if (submit("TXPIF30301")) {
  1388. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  1389. submit("TRPIF30303");
  1390. chkRtndetl();
  1391. }
  1392. }
  1393. }
  1394. ]]>
  1395. </script>
  1396. </button>
  1397. <line id="line21" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  1398. <caption id="caption36" class="cell_1" style="left:0px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구년월</caption>
  1399. <caption id="caption37" class="cell_1" style="left:146px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">미수월</caption>
  1400. <caption id="caption42" class="cell_1" style="left:302px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">접수일자</caption>
  1401. <caption id="caption53" class="cell_1" style="left:458px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구구분</caption>
  1402. <caption id="caption54" class="cell_1" style="left:604px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
  1403. <caption id="caption65" class="cell_1" style="left:750px; top:74px; width:60px; height:23px; text-align:center; vertical-align:middle; ">내원유형</caption>
  1404. <caption id="caption66" class="cell_1" style="left:905px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">진료분야</caption>
  1405. <caption id="caption67" class="cell_1" style="left:1049px; top:75px; width:60px; height:23px; text-align:center; vertical-align:middle; ">청구번호</caption>
  1406. <input id="input30" ref="/root/main/list01/gridpidmclam/clamym" class="input_default" format="yyyy-mm" appearance="output" style="left:63px; top:76px; width:80px; height:19px; text-align:center; "/>
  1407. <input id="input44" ref="/root/main/list01/gridpidmclam/uncoym" class="input_default" format="yyyy-mm" appearance="output" style="left:209px; top:76px; width:90px; height:19px; text-align:center; "/>
  1408. <input id="input50" ref="/root/main/list01/gridpidmclam/acptdd" class="input_default" format="yyyy-mm-dd" appearance="output" style="left:365px; top:76px; width:90px; height:19px; text-align:center; "/>
  1409. <input id="input51" ref="/root/main/list01/gridpidmclam/clamflag" appearance="output" style="left:521px; top:76px; width:80px; height:19px; text-align:center; "/>
  1410. <input id="input52" ref="/root/main/list01/gridpidmclam/judgdg" class="input_default" appearance="output" style="left:667px; top:76px; width:80px; height:19px; text-align:center; "/>
  1411. <input id="input53" ref="/root/main/list01/gridpidmclam/ioflag" appearance="output" style="left:812px; top:76px; width:90px; height:19px; "/>
  1412. <input id="input54" ref="/root/main/list01/gridpidmclam/ordfildcd" class="input_default" appearance="output" style="left:967px; top:76px; width:80px; height:19px; text-align:center; "/>
  1413. <input id="input55" ref="/root/main/list01/gridpidmclam/clamno" class="input_default" appearance="output" style="left:1111px; top:76px; width:80px; height:19px; text-align:center; "/>
  1414. <line id="line34" class="line_3" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  1415. <caption id="caption68" class="tit_2" style="left:6px; top:113px; width:78px; height:13px; ">청구내역</caption>
  1416. <line id="line35" class="line_1" style="x1:0px; y1:127px; x2:288px; y2:127px; "/>
  1417. <caption id="caption69" class="cell_1" style="left:0px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  1418. <caption id="caption70" class="cell_1" style="left:0px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  1419. <caption id="caption71" class="cell_1" style="left:0px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  1420. <caption id="caption72" class="cell_1" style="left:0px; top:206px; width:115px; height:23px; vertical-align:middle; ">청구액</caption>
  1421. <caption id="caption73" class="cell_1" style="left:0px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  1422. <caption id="caption74" class="cell_1" style="left:0px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  1423. <caption id="caption75" class="cell_1" style="left:0px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  1424. <caption id="caption76" class="cell_1" style="left:0px; top:306px; width:115px; height:23px; vertical-align:middle; ">청구약제상한차액</caption>
  1425. <input id="input56" ref="/root/main/list01/gridpifmiunc/clamcnt" class="input_default" format="#,###" style="left:118px; top:133px; width:170px; height:19px; text-align:right; "/>
  1426. <input id="input57" ref="/root/main/list01/gridpifmiunc/clmcstotamt" class="input_default" format="#,###" style="left:118px; top:157px; width:170px; height:19px; text-align:right; "/>
  1427. <input id="input58" ref="/root/main/list01/gridpifmiunc/clownbamt" class="input_default" format="#,###" style="left:118px; top:182px; width:170px; height:19px; text-align:right; "/>
  1428. <input id="input59" ref="/root/main/list01/gridpifmiunc/clclamamt" class="input_default" format="#,###" style="left:118px; top:208px; width:170px; height:19px; text-align:right; "/>
  1429. <input id="input60" ref="/root/main/list01/gridpifmiunc/clownbmaxexamt" class="input_default" format="#,###" style="left:118px; top:233px; width:170px; height:19px; text-align:right; "/>
  1430. <input id="input61" ref="/root/main/list01/gridpifmiunc/clsuppamt" class="input_default" format="#,###" style="left:118px; top:258px; width:170px; height:19px; text-align:right; "/>
  1431. <input id="input62" ref="/root/main/list01/gridpifmiunc/clhandicaprfund" class="input_default" format="#,###" style="left:118px; top:283px; width:170px; height:19px; text-align:right; "/>
  1432. <input id="input63" ref="/root/main/list01/gridpifmiunc/cldruglimitdiffamtsum" class="input_default" format="#,###" style="left:118px; top:308px; width:170px; height:19px; text-align:right; "/>
  1433. <caption id="caption77" class="tit_2" style="left:311px; top:112px; width:114px; height:13px; ">심결내역(F204)</caption>
  1434. <line id="line36" class="line_1" style="x1:302px; y1:127px; x2:590px; y2:127px; "/>
  1435. <caption id="caption78" class="cell_1" style="left:302px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  1436. <caption id="caption79" class="cell_1" style="left:302px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  1437. <caption id="caption80" class="cell_1" style="left:302px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  1438. <caption id="caption81" class="cell_1" style="left:302px; top:206px; width:115px; height:23px; vertical-align:middle; ">심결액</caption>
  1439. <caption id="caption82" class="cell_1" style="left:302px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  1440. <caption id="caption83" class="cell_1" style="left:302px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  1441. <caption id="caption84" class="cell_1" style="left:302px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  1442. <caption id="caption85" class="cell_1" style="left:302px; top:306px; width:115px; height:23px; vertical-align:middle; ">심결약제상한차액</caption>
  1443. <input id="input64" ref="/root/main/list01/gridpifmiunc/judgdecicnt" class="input_default" format="#,###" style="left:420px; top:133px; width:170px; height:19px; text-align:right; "/>
  1444. <input id="input65" ref="/root/main/list01/gridpifmiunc/jrtotordamt01" class="input_default" format="#,###" style="left:420px; top:158px; width:170px; height:19px; text-align:right; "/>
  1445. <input id="input66" ref="/root/main/list01/gridpifmiunc/jrownbamt01" class="input_default" format="#,###" style="left:420px; top:183px; width:170px; height:19px; text-align:right; "/>
  1446. <input id="input67" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt01" class="input_default" format="(-)#,###" style="left:420px; top:208px; width:170px; height:19px; text-align:right; "/>
  1447. <input id="input68" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt01" class="input_default" format="#,###" style="left:420px; top:233px; width:170px; height:19px; text-align:right; "/>
  1448. <input id="input69" ref="/root/main/list01/gridpifmiunc/jrsuppamt01" class="input_default" format="#,###" style="left:420px; top:258px; width:170px; height:19px; text-align:right; "/>
  1449. <input id="input70" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund01" class="input_default" format="#,###" style="left:420px; top:283px; width:170px; height:19px; text-align:right; "/>
  1450. <input id="input71" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum01" class="input_default" format="#,###" style="left:420px; top:308px; width:170px; height:19px; text-align:right; "/>
  1451. <caption id="caption86" class="tit_2" style="left:611px; top:112px; width:78px; height:13px; ">반송내역</caption>
  1452. <line id="line37" class="line_1" style="x1:603px; y1:127px; x2:890px; y2:127px; "/>
  1453. <caption id="caption87" class="cell_1" style="left:603px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  1454. <caption id="caption88" class="cell_1" style="left:603px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  1455. <caption id="caption89" class="cell_1" style="left:603px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  1456. <caption id="caption90" class="cell_1" style="left:603px; top:206px; width:115px; height:23px; vertical-align:middle; ">반송액</caption>
  1457. <caption id="caption91" class="cell_1" style="left:603px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  1458. <caption id="caption92" class="cell_1" style="left:603px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  1459. <caption id="caption93" class="cell_1" style="left:603px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  1460. <caption id="caption94" class="cell_1" style="left:603px; top:306px; width:115px; height:23px; vertical-align:middle; ">반송약제상한차액</caption>
  1461. <input id="input72" ref="/root/main/list01/gridpifmiunc/rtncnt" class="input_default" format="#,###" style="left:721px; top:133px; width:170px; height:19px; text-align:right; "/>
  1462. <input id="input73" ref="/root/main/list01/gridpifmiunc/jrtotordamt02" class="input_default" format="#,###" style="left:721px; top:158px; width:170px; height:19px; text-align:right; "/>
  1463. <input id="input74" ref="/root/main/list01/gridpifmiunc/jrownbamt02" class="input_default" format="#,###" style="left:721px; top:183px; width:170px; height:19px; text-align:right; "/>
  1464. <input id="input75" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt02" class="input_default" format="#,###" style="left:721px; top:208px; width:170px; height:19px; text-align:right; "/>
  1465. <input id="input76" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt02" class="input_default" format="#,###" style="left:721px; top:233px; width:170px; height:19px; text-align:right; "/>
  1466. <input id="input77" ref="/root/main/list01/gridpifmiunc/jrsuppamt02" class="input_default" format="#,###" style="left:721px; top:258px; width:170px; height:19px; text-align:right; "/>
  1467. <input id="input78" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund02" class="input_default" format="#,###" style="left:721px; top:283px; width:170px; height:19px; text-align:right; "/>
  1468. <input id="input79" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum02" class="input_default" format="#,###" style="left:721px; top:308px; width:170px; height:19px; text-align:right; "/>
  1469. <caption id="caption95" class="tit_2" style="left:911px; top:112px; width:96px; height:13px; ">심사보류내역</caption>
  1470. <line id="line39" class="line_1" style="x1:903px; y1:127px; x2:1190px; y2:127px; "/>
  1471. <caption id="caption96" class="cell_1" style="left:903px; top:132px; width:115px; height:23px; vertical-align:middle; ">건수</caption>
  1472. <caption id="caption97" class="cell_1" style="left:903px; top:156px; width:115px; height:23px; vertical-align:middle; ">총진료비</caption>
  1473. <caption id="caption98" class="cell_1" style="left:903px; top:181px; width:115px; height:23px; vertical-align:middle; ">본인부담</caption>
  1474. <caption id="caption99" class="cell_1" style="left:903px; top:206px; width:115px; height:23px; vertical-align:middle; ">보류액</caption>
  1475. <caption id="caption100" class="cell_1" style="left:903px; top:231px; width:115px; height:23px; vertical-align:middle; ">상한금</caption>
  1476. <caption id="caption101" class="cell_1" style="left:903px; top:256px; width:115px; height:23px; vertical-align:middle; ">지원금</caption>
  1477. <caption id="caption102" class="cell_1" style="left:903px; top:281px; width:115px; height:23px; vertical-align:middle; ">장애인기금</caption>
  1478. <caption id="caption103" class="cell_1" style="left:903px; top:306px; width:115px; height:23px; vertical-align:middle; ">반송약제상한차액</caption>
  1479. <input id="input80" ref="/root/main/list01/gridpifmiunc/judgretecnt" class="input_default" format="#,###" style="left:1021px; top:133px; width:170px; height:19px; text-align:right; "/>
  1480. <input id="input81" ref="/root/main/list01/gridpifmiunc/jrtotordamt03" class="input_default" format="#,###" style="left:1021px; top:158px; width:170px; height:19px; text-align:right; "/>
  1481. <input id="input82" ref="/root/main/list01/gridpifmiunc/jrownbamt03" class="input_default" format="#,###" style="left:1021px; top:183px; width:170px; height:19px; text-align:right; "/>
  1482. <input id="input83" ref="/root/main/list01/gridpifmiunc/jrjudgdeciamt03" class="input_default" format="#,###" style="left:1021px; top:208px; width:170px; height:19px; text-align:right; "/>
  1483. <input id="input84" ref="/root/main/list01/gridpifmiunc/jrownbmaxexamt03" class="input_default" format="#,###" style="left:1021px; top:233px; width:170px; height:19px; text-align:right; "/>
  1484. <input id="input85" ref="/root/main/list01/gridpifmiunc/jrsuppamt03" class="input_default" format="#,###" style="left:1021px; top:258px; width:170px; height:19px; text-align:right; "/>
  1485. <input id="input86" ref="/root/main/list01/gridpifmiunc/jrhandicaprfund03" class="input_default" format="#,###" style="left:1021px; top:283px; width:170px; height:19px; text-align:right; "/>
  1486. <input id="input87" ref="/root/main/list01/gridpifmiunc/jrdruglimitdiffamtsum03" class="input_default" format="#,###" style="left:1021px; top:308px; width:170px; height:19px; text-align:right; "/>
  1487. <line id="line46" class="line_3" style="x1:303px; y1:329px; x2:590px; y2:329px; "/>
  1488. <line id="line51" class="line_3" style="x1:603px; y1:329px; x2:890px; y2:329px; "/>
  1489. <line id="line52" class="line_3" style="x1:903px; y1:329px; x2:1190px; y2:329px; "/>
  1490. <line id="line53" class="line_2" style="x1:1px; y1:204px; x2:288px; y2:204px; "/>
  1491. <line id="line54" class="line_2" style="x1:1px; y1:229px; x2:288px; y2:229px; "/>
  1492. <line id="line55" class="line_2" style="x1:1px; y1:254px; x2:288px; y2:254px; "/>
  1493. <line id="line56" class="line_3" style="x1:0px; y1:329px; x2:288px; y2:329px; "/>
  1494. <line id="line57" class="line_2" style="x1:1px; y1:179px; x2:288px; y2:179px; "/>
  1495. <line id="line58" class="line_2" style="x1:0px; y1:154px; x2:287px; y2:154px; "/>
  1496. <line id="line59" class="line_2" style="x1:303px; y1:154px; x2:590px; y2:154px; "/>
  1497. <line id="line60" class="line_2" style="x1:303px; y1:179px; x2:590px; y2:179px; "/>
  1498. <line id="line61" class="line_2" style="x1:303px; y1:204px; x2:590px; y2:204px; "/>
  1499. <line id="line62" class="line_2" style="x1:303px; y1:229px; x2:590px; y2:229px; "/>
  1500. <line id="line63" class="line_2" style="x1:303px; y1:254px; x2:591px; y2:254px; "/>
  1501. <line id="line64" class="line_2" style="x1:603px; y1:229px; x2:890px; y2:229px; "/>
  1502. <line id="line65" class="line_2" style="x1:603px; y1:254px; x2:890px; y2:254px; "/>
  1503. <line id="line66" class="line_2" style="x1:603px; y1:204px; x2:890px; y2:204px; "/>
  1504. <line id="line67" class="line_2" style="x1:603px; y1:179px; x2:890px; y2:179px; "/>
  1505. <line id="line68" class="line_2" style="x1:603px; y1:154px; x2:890px; y2:154px; "/>
  1506. <line id="line69" class="line_2" style="x1:903px; y1:154px; x2:1190px; y2:154px; "/>
  1507. <line id="line70" class="line_2" style="x1:903px; y1:179px; x2:1190px; y2:179px; "/>
  1508. <line id="line71" class="line_2" style="x1:903px; y1:204px; x2:1190px; y2:204px; "/>
  1509. <line id="line72" class="line_2" style="x1:903px; y1:229px; x2:1190px; y2:229px; "/>
  1510. <line id="line73" class="line_2" style="x1:903px; y1:254px; x2:1190px; y2:254px; "/>
  1511. <line id="line74" class="line_2" style="x1:304px; y1:279px; x2:591px; y2:279px; "/>
  1512. <line id="line75" class="line_2" style="x1:603px; y1:279px; x2:890px; y2:279px; "/>
  1513. <line id="line76" class="line_2" style="x1:2px; y1:279px; x2:289px; y2:279px; "/>
  1514. <line id="line77" class="line_2" style="x1:903px; y1:279px; x2:1190px; y2:279px; "/>
  1515. <line id="line78" class="line_2" style="x1:304px; y1:304px; x2:591px; y2:304px; "/>
  1516. <line id="line79" class="line_2" style="x1:603px; y1:304px; x2:890px; y2:304px; "/>
  1517. <line id="line80" class="line_2" style="x1:2px; y1:304px; x2:289px; y2:304px; "/>
  1518. <line id="line81" class="line_2" style="x1:903px; y1:304px; x2:1190px; y2:304px; "/>
  1519. <caption id="caption104" style="left:794px; top:338px; width:75px; height:20px; ">정산금액합계</caption>
  1520. <input id="input88" ref="/root/main/list01/calcamtsumdetl/calcamtsum" format="(-)#,###" style="left:878px; top:338px; width:91px; height:19px; text-align:right; "/>
  1521. <caption id="caption105" style="left:993px; top:338px; width:65px; height:20px; ">토탈미수금</caption>
  1522. <input id="input89" ref="/root/main/list01/gridpifmiunc/totuncoamt" format="(-)#,###" appearance="input" style="left:1076px; top:338px; width:118px; height:19px; text-align:right; "/>
  1523. <line id="line82" class="line_1" style="x1:0px; y1:359px; x2:1194px; y2:359px; "/>
  1524. <caption id="caption106" class="cell_1" style="left:0px; top:364px; width:95px; height:23px; text-align:center; vertical-align:middle; ">삭감건수</caption>
  1525. <caption id="caption107" class="cell_1" style="left:197px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">조정삭감액</caption>
  1526. <caption id="caption108" class="cell_1" style="left:392px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">실삭감액</caption>
  1527. <caption id="caption109" class="cell_1" style="left:587px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">본인추가부담</caption>
  1528. <caption id="caption110" class="cell_1" style="left:782px; top:364px; width:93px; height:23px; text-align:center; vertical-align:middle; ">환수잔액</caption>
  1529. <caption id="caption111" class="cell_1" style="left:975px; top:364px; width:98px; height:23px; text-align:center; vertical-align:middle; ">미수금</caption>
  1530. <input id="input90" ref="/root/main/list01/gridpifmiunc/rucntsum" class="input_default" style="left:98px; top:365px; width:91px; height:19px; text-align:center; "/>
  1531. <input id="input91" ref="/root/main/list01/gridpifmiunc/ruadjtamtsum" class="input_default" format="#,###" style="left:293px; top:365px; width:91px; height:19px; text-align:right; "/>
  1532. <input id="input92" ref="/root/main/list01/gridpifmiunc/realcutamt" class="input_default" format="(-)#,###" style="left:488px; top:365px; width:96px; height:19px; text-align:right; "/>
  1533. <input id="input93" ref="/root/main/list01/gridpifmiunc/jrownaddbamtsum" class="input_default" format="#,###" style="left:683px; top:365px; width:91px; height:19px; text-align:right; "/>
  1534. <input id="input94" ref="/root/main/list01/gridpifmiunc/rtnrestamt" class="input_default" format="#,###" style="left:878px; top:365px; width:91px; height:19px; text-align:right; "/>
  1535. <input id="input95" ref="/root/main/list01/gridpifmiunc/uncoamt" class="input_default" format="(-)#,###" style="left:1076px; top:365px; width:118px; height:19px; text-align:right; "/>
  1536. <line id="line83" class="line_3" style="x1:0px; y1:387px; x2:1194px; y2:387px; "/>
  1537. <button id="button13" class="btn5_letter2" style="left:1039px; top:410px; width:42px; height:19px; ">
  1538. <caption>저장</caption>
  1539. <script type="javascript" ev:event="onclick">
  1540. <![CDATA[
  1541. var row_cnt = grd_pifhbsdp.row;
  1542. var rows = grd_pifhbsdp.rows;
  1543. var ins_cnt = 0;
  1544. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  1545. for(var i = 1;i<rows;i++) {
  1546. if(grd_pifhbsdp.rowStatus(i) == 1) {
  1547. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  1548. ++ins_cnt;
  1549. return false;
  1550. }
  1551. }
  1552. }
  1553. if(ipt_acptno.value== "") {
  1554. messageBox("접수번호를","C001");
  1555. model.setFocus("ipt_acptno");
  1556. return false;
  1557. }
  1558. if(cmb_judgdg.value == "") {
  1559. messageBox("심사차수를","C001");
  1560. model.setFocus("cmb_judgdg");
  1561. return false;
  1562. }
  1563. /*저장할 행을 선택하지 않았을 시*/
  1564. if(row_cnt == "-1") {
  1565. return false;
  1566. }
  1567. /*
  1568. if(grd_pifhbsdp.valueMatrix(row_cnt,6) == "") {
  1569. messageBox("통장입금액을","C001");
  1570. return false;
  1571. }*/
  1572. if(grd_pifhbsdp.valueMatrix(row_cnt,2) == "" || grd_pifhbsdp.valueMatrix(row_cnt,2) == null) {
  1573. messageBox(grd_pifhbsdp.valueMatrix(0,2),"C001");
  1574. return false;
  1575. }
  1576. var notimm = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,8);
  1577. notimm = notimm.substr(0,6);
  1578. model.setValue("/root/main/list01/gridpifhbsdp/notimm",notimm);
  1579. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  1580. if (submit("TXPIF30301")) {
  1581. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  1582. submit("TRPIF30303");
  1583. chkRtndetl();
  1584. }
  1585. ]]>
  1586. </script>
  1587. </button>
  1588. <button id="button14" class="btn2_letter3" style="left:1084px; top:410px; width:53px; height:19px; ">
  1589. <caption>행추가</caption>
  1590. <script type="javascript" ev:event="onclick">
  1591. <![CDATA[
  1592. //model.alert(INSTCD);
  1593. /*
  1594. if(ipt_acptno.value == "8888888" || ipt_acptno.value == "9999999") {
  1595. messageBox("정산이나 원외정산의 신규입금등록은 정산차수별입금등록화면에서","I008");
  1596. return false;
  1597. }
  1598. */
  1599. grd_pifhbsdp.addRow();
  1600. var row_cnt = grd_pifhbsdp.row;
  1601. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acptno",ipt_acptno.value);
  1602. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/judgdg",cmb_judgdg.value);
  1603. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/clamno",cmb_clamno.value);
  1604. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/instcd", INSTCD);
  1605. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/bankcd", BANKCD);
  1606. model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/acntcd", BANKACOUNT);
  1607. grd_pifhbsdp.valueMatrix(row_cnt, 6) = 0;
  1608. grd_pifhbsdp.valueMatrix(row_cnt, 7) = 0;
  1609. // model.setValue("/root/main/list01/gridpifhbsdp["+row_cnt+"]/rowstatus","i");
  1610. if(ipt_calcamtsum.value != "") {
  1611. var row = grd_pifhbsdp.row;
  1612. var calcamtsum = Number(ipt_calcamtsum.value);
  1613. if(calcamtsum >= 0) {
  1614. grd_pifhbsdp.valueMatrix(row,6) = calcamtsum;
  1615. grd_pifhbsdp.valueMatrix(row,7) = 0;
  1616. } else {
  1617. grd_pifhbsdp.valueMatrix(row,6) = 0;
  1618. grd_pifhbsdp.valueMatrix(row,7) = calcamtsum;
  1619. }
  1620. }
  1621. grd_pifhbsdp.topRow = grd_pifhbsdp.rows-1;
  1622. ]]>
  1623. </script>
  1624. </button>
  1625. <button id="button15" class="btn2_letter3" style="left:1140px; top:410px; width:53px; height:19px; ">
  1626. <caption>행삭제</caption>
  1627. <script type="javascript" ev:event="onclick">
  1628. <![CDATA[
  1629. var row_cnt = grd_pifhbsdp.row;
  1630. if(row_cnt == '-1' || row_cnt == '0') {
  1631. return false;
  1632. }
  1633. if(ipt_acptno.value== "" || cmb_judgdg.value== "") {
  1634. return false;
  1635. }
  1636. if(grd_pifhbsdp.rowStatus(row_cnt) == "1" || grd_pifhbsdp.rowStatus(row_cnt) == "3") {
  1637. grd_pifhbsdp.deleteItem(row_cnt);
  1638. return false;
  1639. } else {
  1640. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  1641. messageBox("마감된 데이터는 삭제 하실 수","I004"); // 없습니다.
  1642. return;
  1643. }
  1644. if(messageBox("정말","Q001") == "6") {
  1645. var rows = grd_pifhrtns.rows; // 환수내역 그리드의 데이터 총 갯수
  1646. if(rows > 1) {
  1647. for(var i=1;i<rows;i++) {
  1648. var rtnacptno = grd_pifhrtns.valueMatrix(i,3);
  1649. var rtnjudgdg = grd_pifhrtns.valueMatrix(i,4);
  1650. var rtnseqno = grd_pifhrtns.valueMatrix(i,16);
  1651. var seqno = grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,13);
  1652. if(ipt_acptno.value == rtnacptno & cmb_judgdg.value == rtnjudgdg & seqno == rtnseqno) {
  1653. //if(messageBox("환수내역에 있는 데이터도 같이 삭제됩니다. 데이터를","Q001") == 7) {
  1654. // return false;
  1655. //}
  1656. messageBox("환수내역이 존재하기 때문에 입금내역을 삭제할 수","I004");
  1657. return false;
  1658. }
  1659. }
  1660. }
  1661. grd_pifhbsdp.deleteItem(row_cnt);
  1662. model.setValue("/root/main/list02/gridpifhbsdp", grd_pifhbsdp.getUpdateData());
  1663. //submit("TXPIF30301");
  1664. if (submit("TXPIF30301")) {
  1665. model.resetInstanceNode("/root/main/list01/gridpifhbsdp");
  1666. submit("TRPIF30303");
  1667. chkRtndetl();
  1668. }
  1669. }
  1670. }
  1671. ]]>
  1672. </script>
  1673. </button>
  1674. <line id="line84" class="line_1" style="x1:0px; y1:431px; x2:1194px; y2:431px; "/>
  1675. <caption id="caption112" class="tit_2" style="left:6px; top:404px; width:111px; height:13px; ">입금내역</caption>
  1676. <datagrid id="datagrid1" nodeset="/root/main/list01/gridpifhbsdp" caption="입금일자^입금구분^금융기관^계좌번호^건수^통장입금액^외래입금액^입원입금액^재무통보월^비고^접수번호^심사차수^청구번호^일련번호" colsep="^" colwidth="100, 90, 100, 120, 70, 90, 90, 90, 86, 322, 100, 100, 100, 100" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:436px; width:1194px; height:294px; ">
  1677. <col autonext="true" ref="depodd" type="inputdate" format="yyyy-mm-dd" maxlength="8" style="text-align:center; "/>
  1678. <col autonext="true" ref="inddepoflag" type="combo">
  1679. <choices>
  1680. <itemset nodeset="/root/init/P0266list/P0266">
  1681. <label ref="cdnm"/>
  1682. <value ref="cdid"/>
  1683. </itemset>
  1684. </choices>
  1685. </col>
  1686. <col autonext="true" ref="bankcd" type="combo" style="text-align:center; ">
  1687. <choices>
  1688. <itemset nodeset="/root/init/R0001list/R0001">
  1689. <label ref="cdnm"/>
  1690. <value ref="cdid"/>
  1691. </itemset>
  1692. </choices>
  1693. </col>
  1694. <col ref="acntcd" type="input" style="text-align:center; "/>
  1695. <col ref="depocnt" type="input" format="#,###" style="text-align:right; "/>
  1696. <col ref="depoamt" type="input" format="#,###" style="text-align:right; "/>
  1697. <col ref="depooutamt" type="input" format="#,###" style="text-align:right; "/>
  1698. <col ref="depoinamt" type="input" format="#,###" style="text-align:right; "/>
  1699. <col ref="notimm" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  1700. <col ref="remfact" type="input"/>
  1701. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  1702. <col ref="judgdg" visibility="hidden" style="text-align:center; "/>
  1703. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  1704. <col ref="seq" visibility="hidden" style="text-align:center; "/>
  1705. <script type="javascript" ev:event="xforms-select">
  1706. <![CDATA[
  1707. var insukind = model.getValue("/root/send/send01/insukind");
  1708. if(grd_pifhbsdp.col == grd_pifhbsdp.colRef("depoflag")){
  1709. var row = grd_pifhbsdp.row;
  1710. // 입금내역 그리드의 통장입금액을 받을 행번호를 send 노드에 create 한후 개인별 상한금 조회화면으로 넘겨준다.
  1711. model.makeNode("/root/send/send01/opn_row");
  1712. model.setValue("/root/send/send01/opn_row", row);
  1713. var depoflag = grd_pifhbsdp.valueMatrix(row,2); // 입금구분
  1714. var clamseqno = model.getValue("/root/main/list01/gridpifmiunc/clamseqno"); // 청구서일련번호(심결내역이 도착한 순서대로)
  1715. // 입금구분이 가지급,주민보류,무차수가지급,환입금,결손액 선택시 건수는 0 입력
  1716. if(depoflag == "01" || depoflag == "03" || depoflag == "05" || depoflag == "06" || depoflag == "07" || depoflag == "08" || depoflag == "11") {
  1717. grd_pifhbsdp.valueMatrix(row,5) = 0;
  1718. }
  1719. // 20100721 입금구분이 가지급, 상한금, 지원금인 경우는 심사차수가 1차인 경우만 입력가능
  1720. if(depoflag == "01" || depoflag == "06" || depoflag == "11") {
  1721. //model.setValue("/root/temp/fstjudgdg", model.getValue("/root/send/send01/judgdg"));
  1722. //model.alert(model.getValue("/root/temp/fstjudgdg"));
  1723. //model.alert(model.getValue("/root/send/send01/judgdg"));
  1724. if(model.getValue("/root/temp/fstjudgdg") != model.getValue("/root/send/send01/judgdg")){
  1725. messageBox("가지급, 상한금, 지원금은 심사차수가 1차만 가능합니다","");
  1726. return;
  1727. }
  1728. }
  1729. // 20100721 END
  1730. //1차 가지급일 경우
  1731. if(depoflag == "02") {
  1732. if(clamseqno != "1"){
  1733. if(insukind == "11"){
  1734. grd_pifhbsdp.valueMatrix(row,2) = "04";
  1735. }else{
  1736. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  1737. }
  1738. /*
  1739. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  1740. // grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/init/temp/judgretecnt/cnt");
  1741. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value)
  1742. setGridPifhbsdpFocus("popup")
  1743. */
  1744. }else{
  1745. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  1746. }
  1747. }
  1748. // 입금구분이 주민보류일 경우
  1749. if(depoflag == "03") {
  1750. // grd_pifhbsdp.isReadOnly(row,7) = true;
  1751. model.makeNode("/root/send/send01/openerflag");
  1752. model.setValue("/root/send/send01/openerflag", "2");
  1753. model.makeNode("/root/send/send01/clamym");
  1754. model.setValue("/root/send/send01/clamym", ipt_clamdd.value.substr(0,6));
  1755. model.makeNode("/root/send/send01/instcd");
  1756. //model.setValue("/root/send/send01/instcd", ipt_instcd_hid.value);
  1757. // 입금일자를 팝업에 던져 준다.
  1758. model.makeNode("/root/send/send01/rtndd");
  1759. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  1760. modal("SPPIF30303", 1,"", "", "SPPIF30303", "/root/send/send01", "/root/send");
  1761. setGridPifhbsdpFocus("popup");
  1762. //window.load("SPPIF30303_주민보류내역.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  1763. }
  1764. // 입금구분이 심사보류일 경우 심사보류건수는 심사차수가 2차이상일 경우만 0이 아닐수 있다.
  1765. // 1차에서의 심사보류건수 중 2차 심결로 온 건수 - 2차 주민보류건수 = 심사보류 건수이다.
  1766. if(depoflag == "04") {
  1767. if(clamseqno == "1"){
  1768. grd_pifhbsdp.valueMatrix(row,2) = "02";
  1769. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  1770. }else{
  1771. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  1772. // grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/init/temp/judgretecnt/cnt");
  1773. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value)
  1774. setGridPifhbsdpFocus("popup")
  1775. };
  1776. }
  1777. // 입금구분이 상한액일 경우
  1778. if(depoflag == "06") {
  1779. // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1780. // grd_pifhbsdp.isReadOnly(row,7) = true;
  1781. model.makeNode("/root/send/send01/openerflag");
  1782. model.setValue("/root/send/send01/openerflag", "2");
  1783. // 입금일자를 팝업에 던져 준다.
  1784. model.makeNode("/root/send/send01/rtndd");
  1785. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  1786. // 2009.04.06 입금구분을 넘겨준다.
  1787. model.makeNode("/root/send/send01/inddepoflag");
  1788. model.setValue("/root/send/send01/inddepoflag", "06");
  1789. // model.setFocus("body");
  1790. modal("SPPIF30301", 1,"", "", "SPPIF30301", "/root/send/send01", "/root/send");
  1791. setGridPifhbsdpFocus("popup");
  1792. //window.load("SPPIF30301_개인별상한금관리.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  1793. }
  1794. // 입금구분이 정산일 경우 정산건수는 piehf403 테이블의 정산 결정차액이 0이 아닌 건수
  1795. if(depoflag == "09") {
  1796. grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/main/list01/gridpifmiunc/cnt_calcdepo");
  1797. }
  1798. // 입금구분이 원외정산일 경우 원외정산건수는 piehf703 테이블의 정산 결정차액이 0이 아닌 건수
  1799. if(depoflag == "10") {
  1800. grd_pifhbsdp.valueMatrix(row,5) = model.getValue("/root/main/list01/gridpifmiunc/cnt_hosoutcalc");
  1801. }
  1802. // 입금구분이 지원금일 경우
  1803. if(depoflag == "11") {
  1804. // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1805. // grd_pifhbsdp.isReadOnly(row,7) = true;
  1806. model.makeNode("/root/send/send01/openerflag");
  1807. model.setValue("/root/send/send01/openerflag", "2");
  1808. // 입금일자를 팝업에 던져 준다.
  1809. model.makeNode("/root/send/send01/rtndd");
  1810. model.setValue("/root/send/send01/rtndd",grd_pifhbsdp.valueMatrix(row,1));
  1811. // 2009.04.06 입금구분을 넘겨준다.
  1812. model.makeNode("/root/send/send01/inddepoflag");
  1813. model.setValue("/root/send/send01/inddepoflag", "11");
  1814. // model.setFocus("body");
  1815. modal("SPPIF30304", 1,"", "", "SPPIF30304", "/root/send/send01", "/root/send");
  1816. setGridPifhbsdpFocus("popup");
  1817. //window.load("SPPIF30301_개인별상한금관리.xrw", "modeless", "pop", "window.maxmize", "/root/send/send01", "/root/send");
  1818. }
  1819. // 입금구분이 장애인일 경우
  1820. if(depoflag == "12") {
  1821. modal("SPPIF30421", 1,"", "", "SPPIF30421", "/root/send/send01", "/root/send");
  1822. }
  1823. // if(depoflag == "01") {
  1824. // // grd_pifhbsdp.valueMatrix(row,7) = "0";
  1825. // // grd_pifhbsdp.isReadOnly(row,7) = true;
  1826. //
  1827. // // 다음 포커스로 이동(가지급의 경우엔 통장입금액만 입력함. 환수예정액은 없음)
  1828. // setGridPifhbsdpFocus("nopopup");
  1829. // }
  1830. /*if(depoflag == "02" || depoflag == "05" || depoflag == "07" || depoflag == "08" || depoflag == "09" || depoflag == "10") {
  1831. grd_pifhbsdp.valueMatrix(row,7) = "0";
  1832. // grd_pifhbsdp.isReadOnly(row,7) = false;
  1833. }*/
  1834. if(depoflag != "02") {
  1835. // grd_pifhbsdp.valueMatrix(row,6) = "0"; // 2009.04.13 통장입금액 초기화 주석처리
  1836. grd_pifhbsdp.valueMatrix(row,7) = "0";
  1837. }
  1838. // 입금구분 선택시 다음 포커스 Setting
  1839. if(depoflag == "01" || depoflag == "02" || depoflag == "05" || depoflag == "07" || depoflag == "08" || depoflag == "09" || depoflag == "10") {
  1840. setGridPifhbsdpFocus("nopopup");
  1841. }
  1842. // 입금구분 선택시 다음 포커스 Setting 끝
  1843. chkGridPifhbsdp();
  1844. }
  1845. ]]>
  1846. </script>
  1847. <script type="javascript" ev:event="onkeyup">
  1848. <![CDATA[
  1849. if(event.keyCode == "13") {
  1850. var col = grd_pifhbsdp.col;
  1851. if(col == 6) {
  1852. model.setFocus("body");
  1853. model.setFocus("grd_pifhbsdp");
  1854. // 1차 지급일 경우 환수예정액으로 포커스 이동
  1855. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,2) == "02" ) {
  1856. grd_pifhbsdp.col = 7;
  1857. } else {
  1858. grd_pifhbsdp.col = 8;
  1859. }
  1860. grd_pifhbsdp.dispatch("onentercell");
  1861. grd_pifhbsdp.editCell();
  1862. }
  1863. if(col == 7) {
  1864. model.setFocus("body");
  1865. model.setFocus("grd_pifhbsdp");
  1866. grd_pifhbsdp.col = 8;
  1867. grd_pifhbsdp.dispatch("onentercell");
  1868. grd_pifhbsdp.editCell();
  1869. }
  1870. }
  1871. ]]>
  1872. </script>
  1873. <script type="javascript" ev:event="xforms-value-changed">
  1874. <![CDATA[
  1875. var col = grd_pifhbsdp.col;
  1876. var row = grd_pifhbsdp.row;
  1877. var clamseqno = model.getValue("/root/main/list01/gridpifmiunc/clamseqno");
  1878. var insukind = model.getValue("/root/send/send01/insukind");
  1879. if(insukind == "11"){
  1880. if( col == grd_pifhbsdp.colRef("depodd")) {
  1881. if(grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row, grd_pifhbsdp.colRef("depodd")) != '') {
  1882. //model.setFocus("body");
  1883. //model.setFocus("grd_pifhbsdp");
  1884. if(clamseqno == "1"){
  1885. grd_pifhbsdp.valueMatrix(row,2) = "02";
  1886. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value) - Number(ipt_jumincnt.value);
  1887. }else{
  1888. grd_pifhbsdp.valueMatrix(row,2) = "04";
  1889. submit("TRPIF30307"); // 심사보류건수를 구해온다.
  1890. grd_pifhbsdp.valueMatrix(row,5) = Number(ipt_judgdecicnt.value);
  1891. }
  1892. //입금일자 선택시 입금월로 재무통보월 자동 세팅-20100706 정숙희 선생님 요청사항
  1893. var depodd = model.getValue("/root/main/list01/gridpifhbsdp["+ row +"]/depodd").substring(0,6);
  1894. model.setValue("/root/main/list01/gridpifhbsdp["+ row +"]/notimm", depodd);
  1895. //통장입금액을 심결액으로 세팅-20100706 정숙희 선생님 요청사항
  1896. model.setValue("/root/main/list01/gridpifhbsdp["+ row +"]/depoamt", model.getValue("/root/main/list01/gridpifmiunc/jrjudgdeciamt01"));
  1897. // setGridPifhbsdpFocus("nopopup");
  1898. model.setFocus("body");
  1899. model.setFocus("grd_pifhbsdp");
  1900. grd_pifhbsdp.col = 6;
  1901. grd_pifhbsdp.dispatch("onentercell");
  1902. // grd_pifhbsdp.editCell();
  1903. }
  1904. }
  1905. }
  1906. if( col == grd_pifhbsdp.colRef("notimm")) {
  1907. if(grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) != '') {
  1908. model.setFocus("body");
  1909. model.setFocus("grd_pifhbsdp");
  1910. if ( grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  1911. messageBox("마감된 이전월의 재무통보월은 입력하실 수","I004");
  1912. grd_pifhbsdp.valueMatrix(grd_pifhbsdp.row,grd_pifhbsdp.colRef("notimm")) = "";
  1913. return;
  1914. }
  1915. // grd_pifhbsdp.col = 9;
  1916. // grd_pifhbsdp.dispatch("onentercell");
  1917. // grd_pifhbsdp.editCell();
  1918. }
  1919. }
  1920. ]]>
  1921. </script>
  1922. </datagrid>
  1923. </group>
  1924. </xhtml:body>
  1925. </xhtml:html>