SMPIF31600_차상위개인별입금관리.xrw 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <termflag>1</termflag>
  12. <ioflag>11</ioflag>
  13. <fromdd/>
  14. <todd/>
  15. <depoyn>N</depoyn>
  16. <ioflag>A</ioflag>
  17. <acptno/>
  18. <judgdg/>
  19. <clamno/>
  20. <cpcd/>
  21. <assocd/>
  22. <patunitsrch1/>
  23. <patunitsrch2/>
  24. <srchgubun/>
  25. <depodd/>
  26. <notimm/>
  27. <depoamt/>
  28. <bankcd/>
  29. <acntcd/>
  30. </send01>
  31. <send02>
  32. <clamym/>
  33. <clamdg/>
  34. <pid/>
  35. <pidsn/>
  36. <decoseq/>
  37. <inddepoflag/>
  38. </send02>
  39. <uncoendprcs>
  40. <insukindflag>4</insukindflag>
  41. </uncoendprcs>
  42. </send>
  43. <main>
  44. <list00>
  45. <list001>
  46. <acptnolist>
  47. <acptno/>
  48. </acptnolist>
  49. </list001>
  50. <list002>
  51. <clamno>
  52. <clamno/>
  53. </clamno>
  54. <acptnocnt>
  55. <cnt/>
  56. </acptnocnt>
  57. </list002>
  58. <list003>
  59. <judgdglist>
  60. <judgdg/>
  61. </judgdglist>
  62. </list003>
  63. </list00>
  64. <list01>
  65. <gridpifmmiun>
  66. <choice/>
  67. <depoyn/>
  68. <docuseqno/>
  69. <pid/>
  70. <patnm/>
  71. <clamamt/>
  72. <jrhandicaprfund/>
  73. <handicapcvrtamt/>
  74. <instreductamt/>
  75. <cpcd/>
  76. <jrprocinstmark/>
  77. <jrprocinstmarknm/>
  78. <remainamt/>
  79. <depoamt/>
  80. <sendamt/>
  81. <clamym/>
  82. <decoseq/>
  83. <inddepoflag/>
  84. <instcd/>
  85. <clamdg/>
  86. <pidsn/>
  87. <jrjudgdeciamt/>
  88. <chkdepo/>
  89. <ioflag/>
  90. </gridpifmmiun>
  91. </list01>
  92. <list02>
  93. <gridpifhmcdp/>
  94. <gridpifmmide/>
  95. </list02>
  96. <list04>
  97. <gridpifmmide>
  98. <inddepoflag/>
  99. <depodd/>
  100. <depoamt/>
  101. <notinm/>
  102. <bankcd/>
  103. <acntcd/>
  104. <rem/>
  105. <cpcd/>
  106. <depoprocinstmark/>
  107. <clamym/>
  108. <clamdg/>
  109. <pid/>
  110. <pidsn/>
  111. <decoseq/>
  112. <acptno/>
  113. <judgdg/>
  114. <setno/>
  115. <clamno/>
  116. <docuseqno/>
  117. <deposeq/>
  118. <seq/>
  119. </gridpifmmide>
  120. </list04>
  121. </main>
  122. <init>
  123. <U0001list>
  124. <U0001>
  125. <cdid/>
  126. <cdnm/>
  127. </U0001>
  128. </U0001list>
  129. <U0002list>
  130. <U0002>
  131. <assocd/>
  132. <assonm/>
  133. </U0002>
  134. </U0002list>
  135. <R0001list>
  136. <R0001>
  137. <cdid/>
  138. <cdnm/>
  139. </R0001>
  140. </R0001list>
  141. <P0371list>
  142. <P0371>
  143. <cdid/>
  144. <cdnm/>
  145. </P0371>
  146. </P0371list>
  147. <bankinfo>
  148. <bankinfolist>
  149. <cdid/>
  150. <cdnm/>
  151. </bankinfolist>
  152. </bankinfo>
  153. </init>
  154. <hidden>
  155. <sppmc02500>
  156. <cond>
  157. <srchcond/>
  158. <pid/>
  159. <hngnm/>
  160. <rrgstno1/>
  161. <rrgstno2/>
  162. <insukind/>
  163. </cond>
  164. </sppmc02500>
  165. </hidden>
  166. </root>
  167. </instance>
  168. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  169. <!-- 장애인 개인별 입금조회-->
  170. <submission id="TRPIF31501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01"/>
  171. <!-- 장애인 개인별 입금상세조회-->
  172. <submission id="TRPIF31502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send02" resultref="/root/main/list04"/>
  173. <!-- 기관삭감액 저장 -->
  174. <submission id="TXPIF30421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/result"/>
  175. <!-- 심사차수조회 -->
  176. <submission id="TRPIF30404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list00/list003"/>
  177. <!-- 청구번호조회 -->
  178. <submission id="TRPIF30405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list00/list002"/>
  179. <!-- 시도조회 -->
  180. <submission id="TRPIF30406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/U0001list"/>
  181. <!-- 시군구조회 -->
  182. <submission id="TRPIF30407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/U0002list"/>
  183. <!-- 시도 전체조회 -->
  184. <submission id="TRPIF30412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/U0001list"/>
  185. <!-- 시군구 전체조회 -->
  186. <submission id="TRPIF30413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/U0002list"/>
  187. <!-- 최종마감월 -->
  188. <submission id="TRPIF31303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/uncoendprcs" resultref="/root/main/chek"/>
  189. <!-- 금융기관, 계좌번호조회-->
  190. <submission id="TRPIF30309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/bankinfo"/>
  191. <!-- 개인별 일괄저장-->
  192. <submission id="TXPIF31501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list01" resultref="/root/main/result_list01"/>
  193. <!-- 개인별 개별저장-->
  194. <submission id="TXPIF31502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result_list02"/>
  195. <!-- 개인별 기관삭감액저장-->
  196. <submission id="TXPIF31503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list03" resultref="/root/main/result_list03"/>
  197. </model>
  198. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  202. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  203. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  204. <script type="javascript" ev:event="xforms-ready">
  205. <![CDATA[
  206. // 공통코드 Load작업
  207. CommCode_Load();
  208. var endmonth = getCurrentDate();
  209. var yearmonth = endmonth.substr(0,6);
  210. model.setValue("/root/send/send01/fromdd", yearmonth);
  211. model.setValue("/root/send/send01/todd", model.getValue("/root/send/send01/fromdd"));
  212. model.setValue("/root/send/send01/depodd", endmonth);
  213. if(rdo_termflag.value == "1") {
  214. ipt_fromdd.disabled = false;
  215. ipt_todd.disabled = false;
  216. ipt_acptno.disabled = true;
  217. cmb_clamno.disabled = true;
  218. cmb_judgdg.disabled = true;
  219. model.setFocus("ipt_fromdd");
  220. } else if(rdo_termflag.value == "2") {
  221. ipt_fromdd.disabled = true;
  222. ipt_todd.disabled = true;
  223. ipt_acptno.disabled = false;
  224. cmb_clamno.disabled = false;
  225. cmb_judgdg.disabled = false;
  226. model.setFocus("ipt_acptno");
  227. }
  228. model.removenode("/root/init/U0001list");
  229. model.removenode("/root/init/U0002list");
  230. submit("TRPIF30412"); // 시도 전체조회
  231. submit("TRPIF30413"); // 시군구 전체조회
  232. addComboItem("cmb_cpcd"," ");
  233. addComboItem("cmb_assocd"," ");
  234. submit("TRPIF31303"); // 최종마감월을 가져와서 입금/환수 등록시 체크한다.
  235. //기관별 은행및 은행계좌조회-------------------------------------------------------
  236. fBankSearch();
  237. var cnt = getNodesetCount("/root/init/bankinfo/bankinfolist");
  238. var bankcd;
  239. var bankacount;
  240. for( var i = 1; i <= cnt; i++){
  241. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "10"){
  242. bankcd = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  243. }
  244. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "20"){
  245. bankacount = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  246. }
  247. }
  248. BANKCD = bankcd;
  249. BANKACOUNT = bankacount;
  250. //------------------------------------------------------------------------------
  251. model.refresh();
  252. ]]>
  253. </script>
  254. <script type="javascript">
  255. <![CDATA[
  256. // 공통코드 Load작업
  257. function CommCode_Load() {
  258. zbcfGetCodeList(new Array("P0415", "P0371", "R0001"), new Array( "/root/init/P0415list", "/root/init/P0371list", "/root/init/R0001list"));
  259. }
  260. function fGetInAftJudgTrgtManList(){
  261. // 환자단위조회를 하는 경우
  262. var patunitsrch1 = model.getValue("/root/send/send01/patunitsrch1").getTrim(); // (stringHelper.js) 문자열 앞뒤에 있는 공백 제거
  263. model.setValue("/root/send/send01/patunitsrch1", patunitsrch1);
  264. if (patunitsrch1 == "") {
  265. model.setValue("/root/send/send01/patunitsrch2", "");
  266. }
  267. else if (patunitsrch1.isNumber()) { // (numericHelper.js) 숫자가 입력된 경우 환자번호로 조회한다.
  268. //model.setValue("/root/send/send01/patunitsrch2", "pidSrch");
  269. } else { // 문자가 입력된 경우 환자이름으로 조회한다.
  270. if (patunitsrch1.length > 1) {
  271. model.setValue("/root/send/send01/patunitsrch2", "nmSrch");
  272. } else {
  273. model.setValue("/root/send/send01/patunitsrch2", "");
  274. model.refresh();
  275. messageBox("환자단위조회시 검색할 환자이름은 2글자 이상", "C001"); ///환자단위조회시 검색할 환자이름은 2글자 이상 입력하십시오.
  276. return;
  277. }
  278. }
  279. }
  280. // 계좌번호조회
  281. function fBankSearch(){
  282. submit("TRPIF30309");
  283. }
  284. // 장애인 개인별 입금상세조회
  285. function fSelect_pifmmide(){
  286. model.resetInstanceNode("/root/main/list04/gridpifmmide");
  287. var col = grd_pifmmiun.col;
  288. var row = grd_pifmmiun.row;
  289. if (grd_pifmmiun.rows > 1 && model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/clamym") != '') {
  290. model.setValue("/root/send/send02/clamym" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/clamym"));
  291. model.setValue("/root/send/send02/clamdg" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/clamdg"));
  292. model.setValue("/root/send/send02/pid" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/pid"));
  293. model.setValue("/root/send/send02/pidsn" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/pidsn"));
  294. model.setValue("/root/send/send02/decoseq" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/decoseq"));
  295. model.setValue("/root/send/send02/inddepoflag" , model.getValue("/root/main/list01/gridpifmmiun[" + row + "]/inddepoflag"));
  296. //alert(model.getValue("/root/send/send02/clamym"));
  297. if(model.getValue("/root/send/send02/clamym")) {
  298. submit("TRPIF31502");
  299. var rows = grd_pifmmide.rows;
  300. for(var i=1;i<rows;i++) {
  301. grd_pifmmide.colDisabled(grd_pifmmide.colRef("inddepoflag")) = true;
  302. grd_pifmmide.colDisabled(grd_pifmmide.colRef("depodd")) = true;
  303. grd_pifmmide.colDisabled(grd_pifmmide.colRef("depoamt")) = true;
  304. grd_pifmmide.colDisabled(grd_pifmmide.colRef("bankcd")) = true;
  305. grd_pifmmide.colDisabled(grd_pifmmide.colRef("acntcd")) = true;
  306. grd_pifmmide.colDisabled(grd_pifmmide.colRef("notimm")) = true;
  307. }
  308. }
  309. }
  310. }
  311. //과별/분야별 subtotal
  312. function fDeptFildSubtotal(){
  313. grd_pifmmiun.colsort(grd_pifmmiun.colRef("depodd")) = "asc";
  314. grd_pifmmiun.colsort(grd_pifmmiun.colRef("jrprocinstmarknm")) = "asc";
  315. var maxRow = parseInt(grd_pifmmiun.rows) - 1; // rows는 타이틀부분 부터 개수를 센다.
  316. var maxCol = parseInt(grd_pifmmiun.cols) - 1;
  317. grd_pifmmiun.sort(grd_pifmmiun.fixedRows, grd_pifmmiun.fixedCols, maxRow, maxCol) = "usersort";
  318. // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  319. grd_pifmmiun.gridToInstance();
  320. grd_pifmmiun.subtotalposition= "below";
  321. grd_pifmmiun.subtotal("sum",19,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 19, "일자별소계", false);
  322. grd_pifmmiun.subtotal("sum",5,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 19, "기관별소계", false);
  323. /*
  324. grd_deptfild.subtotal("sum",4,6,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  325. grd_deptfild.subtotal("sum",4,7,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  326. grd_deptfild.subtotal("sum",4,8,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  327. grd_deptfild.subtotal("sum",4,9,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  328. grd_deptfild.subtotal("sum",4,10,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  329. grd_deptfild.subtotal("sum",4,11,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  330. grd_deptfild.subtotal("sum",4,12,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  331. grd_deptfild.subtotal("sum",4,13,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  332. grd_deptfild.subtotal("sum",4,14,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  333. grd_deptfild.subtotal("sum",4,15,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  334. grd_deptfild.subtotal("sum",4,16,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  335. grd_deptfild.subtotal("sum",4,17,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  336. grd_deptfild.subtotal("sum",4,18,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  337. grd_deptfild.subtotal("sum",4,19,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  338. grd_deptfild.subtotal("sum",4,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  339. grd_deptfild.subtotal("sum",4,21,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  340. grd_deptfild.subtotal("sum",4,22,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  341. grd_deptfild.subtotal("sum",4,23,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  342. grd_deptfild.subtotal("sum",4,24,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  343. grd_deptfild.subtotal("sum",4,25,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  344. grd_deptfild.subtotal("sum",4,26,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  345. grd_deptfild.subtotal("sum",4,27,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  346. grd_deptfild.subtotal("sum",4,28,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  347. grd_deptfild.subtotal("sum",4,29,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  348. grd_deptfild.subtotal("sum",4,30,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  349. grd_deptfild.subtotal("sum",4,31,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  350. grd_deptfild.subtotal("sum",4,32,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  351. grd_deptfild.subtotal("sum",4,33,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  352. grd_deptfild.subtotal("sum",4,34,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  353. grd_deptfild.subtotal("sum",4,35,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  354. grd_deptfild.subtotal("sum",4,36,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  355. grd_deptfild.subtotal("sum",4,37,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  356. grd_deptfild.subtotal("sum",4,38,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  357. grd_deptfild.subtotal("sum",4,39,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  358. grd_deptfild.subtotal("sum",4,40,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  359. grd_deptfild.subtotal("sum",4,41,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  360. grd_deptfild.subtotal("sum",4,42,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  361. grd_deptfild.subtotal("sum",4,43,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  362. grd_deptfild.subtotal("sum",4,44,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  363. grd_deptfild.subtotal("sum",4,45,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  364. grd_deptfild.subtotal("sum",-1,5,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", false);
  365. grd_deptfild.subtotal("sum",-1,6,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  366. grd_deptfild.subtotal("sum",-1,7,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  367. grd_deptfild.subtotal("sum",-1,8,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  368. grd_deptfild.subtotal("sum",-1,9,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  369. grd_deptfild.subtotal("sum",-1,10,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  370. grd_deptfild.subtotal("sum",-1,11,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  371. grd_deptfild.subtotal("sum",-1,12,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  372. grd_deptfild.subtotal("sum",-1,13,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  373. grd_deptfild.subtotal("sum",-1,14,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  374. grd_deptfild.subtotal("sum",-1,15,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  375. grd_deptfild.subtotal("sum",-1,16,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  376. grd_deptfild.subtotal("sum",-1,17,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  377. grd_deptfild.subtotal("sum",-1,18,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  378. grd_deptfild.subtotal("sum",-1,19,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  379. grd_deptfild.subtotal("sum",-1,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  380. grd_deptfild.subtotal("sum",-1,21,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  381. grd_deptfild.subtotal("sum",-1,22,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  382. grd_deptfild.subtotal("sum",-1,23,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  383. grd_deptfild.subtotal("sum",-1,24,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  384. grd_deptfild.subtotal("sum",-1,25,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  385. grd_deptfild.subtotal("sum",-1,26,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  386. grd_deptfild.subtotal("sum",-1,27,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  387. grd_deptfild.subtotal("sum",-1,28,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  388. grd_deptfild.subtotal("sum",-1,29,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  389. grd_deptfild.subtotal("sum",-1,30,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  390. grd_deptfild.subtotal("sum",-1,31,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  391. grd_deptfild.subtotal("sum",-1,32,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  392. grd_deptfild.subtotal("sum",-1,33,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  393. grd_deptfild.subtotal("sum",-1,34,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  394. grd_deptfild.subtotal("sum",-1,35,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  395. grd_deptfild.subtotal("sum",-1,36,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  396. grd_deptfild.subtotal("sum",-1,37,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  397. grd_deptfild.subtotal("sum",-1,38,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  398. grd_deptfild.subtotal("sum",-1,39,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  399. grd_deptfild.subtotal("sum",-1,40,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  400. grd_deptfild.subtotal("sum",-1,41,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  401. grd_deptfild.subtotal("sum",-1,42,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  402. grd_deptfild.subtotal("sum",-1,43,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  403. grd_deptfild.subtotal("sum",-1,44,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  404. grd_deptfild.subtotal("sum",-1,45,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  405. */
  406. }
  407. ]]>
  408. </script>
  409. </xhtml:head>
  410. <xhtml:body pagewidth="1195" pageheight="800">
  411. <group id="group3" scroll="auto" style="left:0px; top:80px; width:1194px; height:660px; ">
  412. <line id="line8" class="line_1" style="x1:0px; y1:39px; x2:1190px; y2:39px; "/>
  413. <caption id="caption4" class="tit_2" style="left:6px; top:24px; width:219px; height:13px; ">장애인 개인별 입금관리</caption>
  414. <datagrid id="grd_pifmmiun" nodeset="/root/main/list01/gridpifmmiun" class="datagrid2" caption="선&#xA;택^반&#xA;송^입&#xA;금^미수처리&#xA;구분^시군구^접수번호^심사차수^묶음&#xA;번호^명일련^등록번호^수진자^진료과^입/외^총진료비^청구액^청구&#xA;장애인^심사&#xA;결정액^심결&#xA;장애인^최종&#xA;입금일자^입금액^잔액^장애인전환금^기관&#xA;삭감액^반송액^심사자^clamno^clamym^decoseq^inddepoflag^instcd^clamdg^pidsn^jrjudgdeciamt^chkdepo^jrprocinstmark^cpcd" colsep="^" colwidth="21, 23, 20, 59, 110, 62, 59, 46, 46, 65, 50, 51, 38, 66, 61, 62, 64, 64, 68, 66, 67, 80, 74, 69, 64, 66, 66, 71, 78, 45, 61, 49, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:43px; width:1190px; height:415px; ">
  415. <col checkvalue="Y,N" ref="choice" type="checkbox" visibility="hidden" style="text-align:center; "/>
  416. <col ref="sendyn" style="text-align:center; "/>
  417. <col ref="depoyn" visibility="hidden" text_align="center" style="text-align:center; "/>
  418. <col ref="decotretflag" style="text-align:center; "/>
  419. <col ref="jrprocinstmarknm"/>
  420. <col ref="acptno" style="text-align:center; "/>
  421. <col ref="judgdg" style="text-align:center; "/>
  422. <col ref="setno" style="text-align:center; "/>
  423. <col ref="docuseqno" style="text-align:center; "/>
  424. <col ref="pid" style="text-align:center; "/>
  425. <col ref="patnm" style="text-align:center; "/>
  426. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  427. <col ref="ioflag" style="text-align:center; "/>
  428. <col ref="clmcstotamt" format="#,###" style="text-align:right; "/>
  429. <col ref="clamamt" format="#,###" style="text-align:right; "/>
  430. <col ref="clhandicaprfund" format="(-)#,###" style="text-align:right; "/>
  431. <col ref="jrjudgdeciamt" format="(-)#,###" style="text-align:right; "/>
  432. <col ref="jrhandicaprfund" type="output" format="(-)#,###" style="text-align:right; "/>
  433. <col ref="depodd" format="yyyy-mm-dd"/>
  434. <col ref="depoamt" type="output" format="#,###" style="text-align:right; "/>
  435. <col ref="remainamt" format="(-)#,###" style="text-align:right; "/>
  436. <col ref="handicapcvrtamt" type="output" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  437. <col ref="instreductamt" type="input" format="(-)#,###" style="text-align:right; "/>
  438. <col ref="sendamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  439. <col ref="judgrid" visibility="hidden" style="text-align:center; "/>
  440. <col ref="clamno" visibility="hidden"/>
  441. <col ref="clamym" visibility="hidden"/>
  442. <col ref="decoseq" visibility="hidden"/>
  443. <col ref="inddepoflag" visibility="hidden"/>
  444. <col ref="instcd" visibility="hidden"/>
  445. <col ref="clamdg" visibility="hidden"/>
  446. <col ref="pidsn" visibility="hidden"/>
  447. <col ref="jrjudgdeciamt" visibility="hidden"/>
  448. <col ref="chkdepo" visibility="hidden"/>
  449. <col ref="jrprocinstmark" visibility="hidden"/>
  450. <col ref="cpcd" visibility="hidden"/>
  451. <script type="javascript" ev:event="xforms-value-changed">
  452. <![CDATA[
  453. var row = grd_pifmmiun.row;
  454. if(grd_pifmmiun.col == 1) {
  455. if(grd_pifmmiun.valueMatrix(row, grd_pifmmiun.colRef("choice"))=="Y") {
  456. grd_pifmmiun.rowStatus(row) = "3";
  457. } else {
  458. grd_pifmmiun.rowStatus(row) = "0";
  459. }
  460. }
  461. ]]>
  462. </script>
  463. <script type="javascript" ev:event="onaftersort">
  464. <![CDATA[
  465. grd_pifmmiun.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  466. ]]>
  467. </script>
  468. <script type="javascript" ev:event="oncopy">
  469. <![CDATA[
  470. grid_oncopy();
  471. ]]>
  472. </script>
  473. <script type="javascript" ev:event="onclick">
  474. <![CDATA[
  475. if (grd_pifmmiun.col != grd_pifmmiun.colRef("instreductamt")) {
  476. fSelect_pifmmide();
  477. }
  478. ]]>
  479. </script>
  480. </datagrid>
  481. <button id="button1" class="btn2_letter4" visibility="hidden" style="left:185px; top:19px; width:64px; height:19px; ">
  482. <caption>전체선택</caption>
  483. <script type="javascript" ev:event="onclick">
  484. <![CDATA[
  485. var rows = grd_pifmmiun.rows;
  486. for(var i=1;i<rows;i++) {
  487. if(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == "Y" || grd_pifmmiun.isReadOnly(i, grd_pifmmiun.colRef("choice")) == true) {
  488. continue;
  489. } else {
  490. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) = "Y";
  491. grd_pifmmiun.rowStatus(i) = "3";
  492. }
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. <button id="button2" class="btn2_letter4" visibility="hidden" style="left:251px; top:19px; width:64px; height:19px; ">
  498. <caption>전체해제</caption>
  499. <script type="javascript" ev:event="onclick">
  500. <![CDATA[
  501. var rows = grd_pifmmiun.rows;
  502. for(var i=1;i<rows;i++) {
  503. if(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == "N" || grd_pifmmiun.rowStatus(i) == "0") {
  504. continue;
  505. } else {
  506. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) = "N";
  507. grd_pifmmiun.rowStatus(i) = "0";
  508. }
  509. }
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="btn_deposave" class="btn5_letter4" visibility="hidden" style="left:855px; top:19px; width:64px; height:19px; ">
  514. <caption>일괄저장</caption>
  515. <script type="javascript" ev:event="onclick">
  516. <![CDATA[
  517. if(model.getValue("/root/send/send01/assocd") == "") {
  518. messageBox("시군구를","C001");
  519. } else {
  520. var rows = grd_pifmmiun.rows;
  521. var totsum = 0;
  522. var reductamt = 0;
  523. var cnt = 0;
  524. for(var i=1;i<rows;i++) {
  525. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  526. cnt++;
  527. if ( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("sendyn")) != "Y" ) {
  528. // 개인별입금액 = 심결장애인 - 기관삭감액
  529. totsum += Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("jrhandicaprfund"))) - Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  530. } else {
  531. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("remainamt")) = "0"; // 반송일 경우 입금액을 0원으로 처리 한다. 2010.03.12 저장시는 remainamt 를 가져가는 기괴함....
  532. }
  533. }
  534. }
  535. // 20100722 기관삭감액이 있는경우는 장애인 입금액을 zero로 처리한다.
  536. for(var i=1;i<rows;i++) {
  537. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  538. reductamt = Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  539. if ( reductamt > 0 ) {
  540. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("depoamt")) = 0;
  541. }
  542. }
  543. }
  544. // 20100722 END
  545. if (cnt > 0) {
  546. model.setValue("/root/main/list02/gridpifmmide", '');
  547. model.setValue("/root/main/list02/gridpifmmide", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmmiun[choice = 'Y']")));
  548. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  549. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  550. ipt_depodd.value = "";
  551. ipt_notimm.value = "";
  552. ipt_depoamt.value = totsum; // 총입금금액
  553. model.setValue("/root/send/send01/bankcd", BANKCD);
  554. model.setValue("/root/send/send01/acntcd", BANKACOUNT);
  555. group5.visible = true;
  556. model.refresh();
  557. model.setFocus("ipt_depodd");
  558. }
  559. }
  560. ]]>
  561. </script>
  562. </button>
  563. <caption id="caption5" class="tit_2" style="left:6px; top:476px; width:219px; height:13px; ">장애인 개인별 입금관리</caption>
  564. <line id="line2" class="line_1" style="x1:0px; y1:490px; x2:1190px; y2:490px; "/>
  565. <datagrid id="grd_pifmmide" nodeset="/root/main/list04/gridpifmmide" class="datagrid2" caption="입금구분^입금일자^입금액^재무통보월^금융기관^계좌번호^비고^시도^시군구^접수번호^청구번호^심사차수^묶음&#xA;번호^명일련^등록번호^clamym^clamdg^decoseq^instcd^pidsn^deposeq^seq" colsep="^" colwidth="100, 93, 109, 94, 139, 142, 466, 64, 110, 62, 80, 59, 46, 46, 65, 100, 100, 100, 100, 100, 100, 100" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:494px; width:1190px; height:161px; ">
  566. <col disabled="true" ref="inddepoflag" type="combo">
  567. <choices>
  568. <itemset nodeset="/root/init/P0371list/P0371">
  569. <label ref="cdnm"/>
  570. <value ref="cdid"/>
  571. </itemset>
  572. </choices>
  573. </col>
  574. <col ref="depodd" type="inputdate" style="text-align:center; "/>
  575. <col ref="depoamt" type="input" format="#,###" style="text-align:right; "/>
  576. <col ref="notimm" type="inputdate" format="yyyy-mm" style="text-align:center; ">
  577. <script type="javascript" ev:event="xforms-value-changed">
  578. <![CDATA[
  579. var col = grd_pifmmide.col;
  580. var row = grd_pifmmide.row;
  581. if( col == grd_pifmmide.colRef("notimm")) {
  582. model.setFocus("body");
  583. model.setFocus("grd_pifmmide");
  584. var notimm = grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("depodd"));
  585. notimm = notimm.substr(0,6);
  586. model.setValue("/root/main/list02/gridpifmmide/notimm", notimm);
  587. if ( notimm <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  588. messageBox("마감된 이전월의 재무통보월은 입력하실 수","I004");
  589. grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("notimm")) = "";
  590. return;
  591. } else {
  592. grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("notimm")) = grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("notimm"));
  593. }
  594. }
  595. ]]>
  596. </script>
  597. </col>
  598. <col ref="bankcd" type="combo">
  599. <choices>
  600. <itemset nodeset="/root/init/R0001list/R0001">
  601. <label ref="cdnm"/>
  602. <value ref="cdid"/>
  603. </itemset>
  604. </choices>
  605. </col>
  606. <col ref="acntcd" type="input"/>
  607. <col ref="rem" type="input"/>
  608. <col ref="cpcd" visibility="hidden"/>
  609. <col ref="depoprocinstmark" visibility="hidden"/>
  610. <col ref="acptno" visibility="hidden" style="text-align:center; "/>
  611. <col ref="clamno" visibility="hidden" style="text-align:center; "/>
  612. <col ref="judgdg" visibility="hidden" style="text-align:center; "/>
  613. <col ref="setno" visibility="hidden" style="text-align:center; "/>
  614. <col ref="docuseqno" visibility="hidden" style="text-align:center; "/>
  615. <col ref="pid" visibility="hidden" style="text-align:center; "/>
  616. <col ref="clamym" visibility="hidden"/>
  617. <col ref="clamdg" visibility="hidden"/>
  618. <col ref="decoseq" visibility="hidden"/>
  619. <col ref="instcd" visibility="hidden"/>
  620. <col ref="pidsn" visibility="hidden"/>
  621. <col ref="deposeq" visibility="hidden"/>
  622. <col ref="seq" visibility="hidden"/>
  623. <script type="javascript" ev:event="xforms-value-changed">
  624. <![CDATA[
  625. var row = grd_pifmmide.row;
  626. var col = grd_pifmmide.col;
  627. if(col == grd_pifmmide.colRef("depoamt")) {
  628. }
  629. ]]>
  630. </script>
  631. <script type="javascript" ev:event="onaftersort">
  632. <![CDATA[
  633. grd_pifmmiun.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  634. ]]>
  635. </script>
  636. <script type="javascript" ev:event="oncopy">
  637. <![CDATA[
  638. grid_oncopy();
  639. ]]>
  640. </script>
  641. </datagrid>
  642. <button id="button6" class="btn2_letter3" style="left:1079px; top:469px; width:53px; height:19px; ">
  643. <caption>행추가</caption>
  644. <script type="javascript" ev:event="onclick">
  645. <![CDATA[
  646. var chk_inst = getUpdateRows("grd_pifmmide");
  647. grd_pifmmide.addRow();
  648. var row_cnt = grd_pifmmide.row;
  649. var miun_row = grd_pifmmiun.row;
  650. grd_pifmmide.colDisabled(grd_pifmmide.colRef("inddepoflag")) = true;
  651. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/inddepoflag", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/inddepoflag"));
  652. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/depodd", getCurrentDate());
  653. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/depoamt", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/remainamt"));
  654. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/notimm", getCurrentDate().substr(0,6));
  655. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/rem", "-");
  656. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/bankcd", BANKCD);
  657. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/acntcd", BANKACOUNT);
  658. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/acptno", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/acptno"));
  659. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/clamno", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/clamno"));
  660. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/judgdg", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/judgdg"));
  661. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/docuseqno", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/docuseqno"));
  662. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/cpcd", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/cpcd"));
  663. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/depoprocinstmark", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/jrprocinstmark"));
  664. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/clamym", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/clamym"));
  665. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/clamdg", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/clamdg"));
  666. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/pid", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/pid"));
  667. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/pidsn", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/pidsn"));
  668. model.setValue("/root/main/list04/gridpifmmide["+row_cnt+"]/decoseq", model.getValue("/root/main/list01/gridpifmmiun[" + miun_row + "]/decoseq"));
  669. grd_pifmmide.topRow = grd_pifmmide.rows-1;
  670. ]]>
  671. </script>
  672. </button>
  673. <button id="button7" class="btn2_letter3" style="left:1135px; top:469px; width:53px; height:19px; ">
  674. <caption>행삭제</caption>
  675. <script type="javascript" ev:event="onclick">
  676. <![CDATA[
  677. if(grd_pifmmide.row == -1 || grd_pifmmide.row == 0) { return false; } // 선택된 행이 없으면 No액션
  678. if(grd_pifmmide.rowStatus(grd_pifmmide.row) == 1 || grd_pifmmide.rowStatus(grd_pifmmide.row) == 3) { // Row Status가 'I'이면 무조건 행 삭제 실행
  679. grd_pifmmide.deleteItem(grd_pifmmide.row);
  680. return false;
  681. } else { // Row Status가 'I'가 아니면 다음을 실행
  682. var depomonth = "";
  683. depomonth = grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("depodd")).substr(0,6);
  684. if ( depomonth <= model.getValue("/root/main/check/uncomonthend/maxendym") ) {
  685. messageBox("마감된 데이터는 삭제 하실 수","I004"); // 없습니다.
  686. return false;
  687. }
  688. if(messageBox("선택한 입금내역의 데이터를","Q001") == 7) {
  689. return false;
  690. }
  691. var row = grd_pifmmide.row;
  692. grd_pifmmide.rowStatus(row) = "4";
  693. model.makeValue("/root/main/list02/gridpifmmide", grd_pifmmide.getUpdateData());
  694. submit("TXPIF31502");
  695. model.resetInstanceNode("/root/main/list02/gridpifmmide");
  696. fSelect_pifmmide();
  697. }
  698. ]]>
  699. </script>
  700. </button>
  701. <button id="button8" class="btn5_letter2" style="left:1034px; top:469px; width:42px; height:19px; ">
  702. <caption>저장</caption>
  703. <script type="javascript" ev:event="onclick">
  704. <![CDATA[
  705. if(grd_pifmmide.rows < 1) {
  706. return false;
  707. }
  708. var row_cnt = grd_pifmmide.row;
  709. if(ipt_acptno.value== "") {
  710. messageBox("접수번호를","C001");
  711. model.setFocus("ipt_acptno");
  712. return false;
  713. }
  714. if(cmb_judgdg.value == "") {
  715. messageBox("심사차수를","C001");
  716. model.setFocus("cmb_judgdg");
  717. return false;
  718. }
  719. /*저장할 행을 선택하지 않았을 시*/
  720. if(row_cnt == "-1") {
  721. return false;
  722. }
  723. if(grd_pifmmide.valueMatrix(row_cnt, grd_pifmmide.colRef("depodd")) == "") {
  724. messageBox("입금일자를","C001");
  725. return false;
  726. }
  727. if(grd_pifmmide.valueMatrix(row_cnt, grd_pifmmide.colRef("depoamt")) == "") {
  728. messageBox("통장입금액을","C001");
  729. return false;
  730. }
  731. var notimm = grd_pifmmide.valueMatrix(grd_pifmmide.row, grd_pifmmide.colRef("notimm"));
  732. notimm = notimm.substr(0,6);
  733. //model.setValue("/root/main/list02/gridpifmmide/notimm", notimm);
  734. model.makeValue("/root/main/list02/gridpifmmide", grd_pifmmide.getUpdateData());
  735. if (submit("TXPIF31502")) {
  736. model.resetInstanceNode("/root/main/list02/gridpifmmide");
  737. model.resetInstanceNode("/root/main/list04/gridpifmmide");
  738. fSelect_pifmmide();
  739. }
  740. ]]>
  741. </script>
  742. </button>
  743. <caption id="caption8" visibility="hidden" style="left:370px; top:20px; width:525px; height:20px; ">** 일괄저장시 입금액 = 심결장애인금액 - 기관삭감액, 단 반송일 경우는 입금액 0원처리</caption>
  744. <group id="group5" visibility="hidden" style="left:600px; top:100px; width:230px; height:190px; ">
  745. <caption id="caption11" class="cell_1" style="left:15px; top:34px; width:80px; height:26px; font-weight:bold; ">입금일자</caption>
  746. <button id="button9" class="btn4_letter2" style="left:109px; top:147px; width:56px; height:22px; ">
  747. <caption>저장</caption>
  748. <script type="javascript" ev:event="onclick">
  749. <![CDATA[
  750. if(ipt_depodd.value == "") {
  751. messageBox("입급일자를","C001");
  752. model.setFocus("ipt_depodd");
  753. return false;
  754. }
  755. if(ipt_notimm.value == "") {
  756. messageBox("통보월을","C001");
  757. model.setFocus("ipt_notimm");
  758. return false;
  759. }
  760. if(ipt_depoamt.value == "") {
  761. messageBox("입금금액을","C001");
  762. model.setFocus("ipt_depoamt");
  763. return false;
  764. }
  765. model.setValue("/root/send/send01/depocnt", grd_pifhcunc.rows-1);
  766. var rows = grd_pifmmiun.rows;
  767. var totsum = 0;
  768. var reductamt = 0;
  769. var cnt = 0;
  770. for(var i=1;i<rows;i++) {
  771. //if(grd_pifmmiun.rowStatus(i) == "1" || grd_pifmmiun.rowStatus(i) == "3") {
  772. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  773. cnt++;
  774. if ( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("sendyn")) != "Y" ) {
  775. totsum += Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("jrhandicaprfund"))) - Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  776. } else {
  777. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("remainamt")) = "0"; // 반송일 경우 입금액을 0원으로 처리 한다. 2010.03.12 저장시는 remainamt 를 가져가는 기괴함....
  778. }
  779. }
  780. }
  781. // 20100722 기관삭감액이 있는경우는 장애인 입금액을 zero로 처리한다.
  782. for(var i=1;i<rows;i++) {
  783. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  784. reductamt = Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  785. //model.alert(i);
  786. if ( reductamt > 0 ) {
  787. //model.alert(reductamt);
  788. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("depoamt")) = 0;
  789. }
  790. }
  791. }
  792. // 20100722 END
  793. //건보, 산재
  794. if (model.getValue("/root/send/insukind") == '11' || model.getValue("/root/send/insukind") == '41') {
  795. model.setValue("/root/main/list02/gridpifmidep", '');
  796. model.setValue("/root/main/list02/gridpifmidep", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmmiun[choice = 'Y']")));
  797. opener.model.makeNode("/root/main/list02/gridpifmidep");
  798. opener.model.setValue("/root/main/list02/gridpifmidep",model.getValue("/root/main/list02/gridpifmidep"));
  799. opener.grd_pifhbsdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  800. opener.grd_pifhbsdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  801. } else {
  802. model.setValue("/root/main/list02/gridpifmmide", '');
  803. model.setValue("/root/main/list02/gridpifmmide", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmmiun[choice = 'Y']")));
  804. opener.model.makeNode("/root/main/list02/gridpifmmide");
  805. opener.model.setValue("/root/main/list02/gridpifmmide",model.getValue("/root/main/list02/gridpifmmide"));
  806. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  807. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  808. }
  809. // 청구서단위 입금등록값 세팅
  810. for(var i=1;i<grd_pifhcunc.rows;i++) {
  811. grd_pifhcunc.rowStatus(i) = 2;
  812. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/calcacptno_bsdp", model.getValue("/root/send/send01/calcacptno"));
  813. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depodd_bsdp", model.getValue("/root/send/send01/depodd"));
  814. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/notimm_bsdp", model.getValue("/root/send/send01/notimm"));
  815. if(model.getValue("/root/send/send01/depoamt") <= 0) {
  816. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", 0);
  817. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", Math.abs(model.getValue("/root/send/send01/depoamt")));
  818. } else {
  819. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", model.getValue("/root/send/send01/depoamt"));
  820. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", 0);
  821. }
  822. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depocnt_bsdp", model.getValue("/root/send/send01/depocnt"));
  823. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/bankcd_bsdp", model.getValue("/root/send/send01/bankcd"));
  824. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/acntcd_bsdp", model.getValue("/root/send/send01/acntcd"));
  825. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/oprcpcalcyn_bsdp", model.getValue("/root/send/send01/oprcpcalcyn"));
  826. }
  827. model.refresh();
  828. model.setValue("/root/main/list05/gridpifhcunc", grd_pifhcunc.getUpdateData());
  829. if(submit("TXPIF30703")) {
  830. messageBox("정상적으로 일괄 입금등록이","I002");
  831. submit("TRPIF30701");
  832. }
  833. group5.visible = false;
  834. ]]>
  835. </script>
  836. </button>
  837. <button id="button10" class="btn4_letter2" style="left:166px; top:147px; width:56px; height:22px; ">
  838. <caption>닫기</caption>
  839. <script type="javascript" ev:event="DOMActivate">
  840. <![CDATA[
  841. group5.visible = false;
  842. ]]>
  843. </script>
  844. </button>
  845. <caption id="caption13" class="tit_1" style="left:0px; top:15px; width:151px; height:13px; ">일괄저장</caption>
  846. <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:0px; width:230px; height:185px; "/>
  847. <caption id="caption12" class="cell_1" style="left:15px; top:65px; width:80px; height:26px; font-weight:bold; ">재무통보월</caption>
  848. <caption id="caption14" class="cell_1" style="left:15px; top:97px; width:80px; height:26px; font-weight:bold; ">총입금금액</caption>
  849. <input id="ipt_depodd" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:99px; top:38px; width:110px; height:19px; text-align:center; "/>
  850. <input id="ipt_notimm" ref="/root/send/send01/notimm" inputtype="date" format="yyyy-mm" style="left:99px; top:68px; width:110px; height:19px; text-align:center; "/>
  851. <output id="ipt_depoamt" ref="/root/send/send01/depoamt" format="(-)#,###" maxlength="14" style="left:99px; top:102px; width:110px; height:19px; text-align:right; "/>
  852. <input id="input1" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:99px; top:38px; width:110px; height:19px; text-align:center; "/>
  853. <caption id="caption9" class="cell_1" style="left:15px; top:34px; width:80px; height:26px; font-weight:bold; ">입금일자</caption>
  854. <caption id="caption15" class="cell_1" style="left:15px; top:65px; width:80px; height:26px; font-weight:bold; ">재무통보월</caption>
  855. </group>
  856. <button id="button4" class="btn2_letter7" style="left:1016px; top:18px; width:97px; height:19px; ">
  857. <caption>기관삭감액저장</caption>
  858. <script type="javascript" ev:event="onclick">
  859. <![CDATA[
  860. model.resetInstanceNode("/root/main/list03/gridpifmmide");
  861. model.makeValue("/root/main/list03/gridpifmmide", grd_pifmmiun.getUpdateData());
  862. if(submit("TXPIF31503")) {
  863. submit("TRPIF31501");
  864. if(grd_pifmmiun.rows > 1) {
  865. grd_pifmmiun.row = 1;
  866. model.resetInstanceNode("/root/main/list02/gridpifmmide");
  867. fSelect_pifmmide();
  868. }
  869. }
  870. ]]>
  871. </script>
  872. </button>
  873. <button id="button11" class="btn2_letter4" style="left:1117px; top:18px; width:64px; height:19px; ">
  874. <caption>엑셀저장</caption>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. var today = getCurrentDate(); // 엑셀파일이름에오늘날짜를 넣기위해 받아옴
  878. var fileName = window.fileDialog("save", ",", false, "입금일자별 입금현황_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  879. if (fileName != "") {
  880. grd_pifmmiun.saveExcel(fileName, "입금일자별 입금현황", false, false, "", "", "col_0:label");
  881. // grd_pifmmiun.saveExcel(fileName, "sheetname:입금일자별 입금현황;colhiddenextend:false;rowhiddenextend:false;exportfalsecols:1,2;exportfalserows:0;col_3:label;");
  882. }
  883. ]]>
  884. </script>
  885. </button>
  886. <button id="button12" class="btn2_letter2" style="left:970px; top:18px; width:42px; height:19px; ">
  887. <caption>출력</caption>
  888. <script type="javascript" ev:event="DOMActivate">
  889. <![CDATA[
  890. exeReportPreview("RPPIF31600", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  891. ]]>
  892. </script>
  893. </button>
  894. </group>
  895. <group id="group1" scroll="auto" style="left:0px; top:742px; width:1185px; height:27px; ">
  896. <button id="btn_cancel" class="btn4_letter2" style="left:1122px; top:3px; width:56px; height:22px; ">
  897. <caption>닫기</caption>
  898. <script type="javascript" ev:event="DOMActivate">
  899. <![CDATA[
  900. model.close();
  901. ]]>
  902. </script>
  903. </button>
  904. <button id="button3" class="btn4_letter2" style="left:1060px; top:3px; width:56px; height:22px; ">
  905. <caption>확인</caption>
  906. <script type="javascript" ev:event="onclick">
  907. <![CDATA[
  908. var rows = grd_pifmmiun.rows;
  909. var totsum = 0;
  910. var reductamt = 0;
  911. var cnt = 0;
  912. for(var i=1;i<rows;i++) {
  913. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  914. cnt++;
  915. if ( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("sendyn")) != "Y" ) {
  916. // 총입금액 = 심결장애인 - 기관삭감액
  917. totsum += Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("jrhandicaprfund"))) - Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  918. } else {
  919. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("remainamt")) = "0"; // 반송일 경우 장애인잔액을 0원으로 처리 한다.
  920. }
  921. }
  922. }
  923. // 20100722 기관삭감액이 있는경우는 장애인 입금액을 zero로 처리한다.
  924. for(var i=1;i<rows;i++) {
  925. if( grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("choice")) == 'Y' ){
  926. reductamt = Number(grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("instreductamt")));
  927. if ( reductamt > 0 ) {
  928. //model.alert(reductamt);
  929. grd_pifmmiun.valueMatrix(i, grd_pifmmiun.colRef("depoamt")) = 0;
  930. }
  931. }
  932. }
  933. // 20100722 END
  934. //건보, 산재
  935. if (model.getValue("/root/send/insukind") == '11' || model.getValue("/root/send/insukind") == '41') {
  936. model.setValue("/root/main/list02/gridpifmidep", '');
  937. model.setValue("/root/main/list02/gridpifmidep", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmmiun[choice = 'Y']")));
  938. // model.setValue("/root/main/list02/gridpifmidep", grd_pifmmiun.getUpdateData());
  939. opener.model.makeNode("/root/main/list02/gridpifmidep");
  940. opener.model.setValue("/root/main/list02/gridpifmidep",model.getValue("/root/main/list02/gridpifmidep"));
  941. opener.grd_pifhbsdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  942. opener.grd_pifhbsdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  943. } else {
  944. model.setValue("/root/main/list02/gridpifmmide", '');
  945. model.setValue("/root/main/list02/gridpifmmide", getNodeListCSV(instance1.selectNodes("/root/main/list01/gridpifmmiun[choice = 'Y']")));
  946. // model.setValue("/root/main/list02/gridpifmidep", grd_pifmmiun.getUpdateData());
  947. opener.model.makeNode("/root/main/list02/gridpifmmide");
  948. opener.model.setValue("/root/main/list02/gridpifmmide",model.getValue("/root/main/list02/gridpifmmide"));
  949. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  950. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  951. }
  952. window.close();
  953. ]]>
  954. </script>
  955. </button>
  956. </group>
  957. <group id="group2" style="left:0px; top:12px; width:1194px; height:84px; vertical-align:top; ">
  958. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:1194px; height:78px; background-color:#fffbf2; border-color:#ffd799; "/>
  959. <button id="button5" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  960. <caption>조회</caption>
  961. <script type="javascript" ev:event="DOMActivate">
  962. <![CDATA[
  963. if(rdo_termflag.value == "1") {
  964. if(model.getValue("/root/send/send01/fromdd") == "") {
  965. messageBox("청구 시작월을","C002");
  966. model.setFocus("cmb_insucmpymark");
  967. return false;
  968. }
  969. if(model.getValue("/root/send/send01/fromdd") == "") {
  970. messageBox("청구 종료월을","C002");
  971. model.setFocus("cmb_insucmpymark");
  972. return false;
  973. }
  974. } else {
  975. if(model.getValue("/root/send/send01/acptno") == "") {
  976. messageBox("접수번호를","C002");
  977. model.setFocus("cmb_insucmpymark");
  978. return false;
  979. }
  980. if(model.getValue("/root/send/send01/clamno") == "") {
  981. messageBox("청구번호를","C002");
  982. model.setFocus("ipt_clamno");
  983. return false;
  984. }
  985. if(model.getValue("/root/send/send01/judgdg") == "") {
  986. messageBox("심사차수를","C002");
  987. model.setFocus("ipt_judgdg");
  988. return false;
  989. }
  990. }
  991. model.removenode("/root/main/list01");
  992. model.removenode("/root/main/list02");
  993. model.refresh();
  994. // 환자단위조회 Input Box의 값이 널이 아닌 경우
  995. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  996. fGetInAftJudgTrgtManList();
  997. }
  998. submit("TRPIF31501");
  999. var rows = grd_pifmmiun.rows;
  1000. // 반송인 경우 입금을 하더라도 입금여부는 N , 입금일자는 공란으로 조회 되고 체크 불가 상태로 만든다. 2010.03.11 김종현쌤 요청 사항
  1001. if(rows > 1) {
  1002. for(var i=1;i<rows;i++) {
  1003. // 체크입금여부가 Y일 경우에만 선택 안 되게 변경 2010.03.10
  1004. if(grd_pifmmiun.valueMatrix(i,grd_pifmmiun.colRef("chkdepo")) == "Y") {
  1005. grd_pifmmiun.isReadOnly(i,grd_pifmmiun.colRef("choice")) = true;
  1006. } else {
  1007. grd_pifmmiun.isReadOnly(i,grd_pifmmiun.colRef("choice")) = false;
  1008. }
  1009. }
  1010. // 개인별 상세내역조회
  1011. grd_pifmmiun.row = 1;
  1012. fSelect_pifmmide();
  1013. fDeptFildSubtotal();
  1014. }
  1015. grd_pifmmiun.colStyle(grd_pifmmiun.colRef("instreductamt"), "data","background-color") = "#ccccff";
  1016. ]]>
  1017. </script>
  1018. </button>
  1019. <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:78px; border-color:#ffe4bb; border-left-style:solid; "/>
  1020. <caption id="caption10" class="search_name" style="left:153px; top:51px; width:87px; height:17px; ">환자번호 :</caption>
  1021. <caption id="caption7" class="search_name" style="left:859px; top:49px; width:112px; height:17px; ">입금구분 :</caption>
  1022. <input id="ipt_patunitsrch" ref="/root/send/send01/patunitsrch1" class="input_search" inputtype="button" style="left:243px; top:50px; width:100px; height:19px; ">
  1023. <hint>
  1024. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  1025. </hint>
  1026. <script type="javascript" ev:event="onkeypress">
  1027. <![CDATA[
  1028. if (event.keyCode == "13") { // Enter 입력 시에
  1029. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  1030. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  1031. fGetInAftJudgTrgtManList();
  1032. }
  1033. }
  1034. ]]>
  1035. </script>
  1036. <script type="javascript" ev:event="onbuttonclick">
  1037. <![CDATA[
  1038. var ipt_pid = model.getValue("/root/send/send01/patunitsrch1");
  1039. if (ipt_pid) {
  1040. if(ipt_pid.isNumber()) {
  1041. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  1042. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  1043. } else {
  1044. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  1045. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  1046. }
  1047. } else {
  1048. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  1049. }
  1050. model.setValue("/root/hidden/sppmc02500/cond/insukind", "31");
  1051. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  1052. // 환자단위조회 InputBox에 값을 입력후 팝업조회했을 때
  1053. if (ipt_pid != "") {
  1054. if(ipt_pid.isNumber()) {
  1055. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  1056. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  1057. } else {
  1058. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  1059. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  1060. }
  1061. } else {
  1062. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  1063. model.setValue("/root/send/send01/patunitsrch1", srch_pid);
  1064. }
  1065. model.refresh();
  1066. fGetInAftJudgTrgtManList();
  1067. ]]>
  1068. </script>
  1069. </input>
  1070. <select1 id="radio2" ref="/root/send/send01/depoyn" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:950px; top:50px; width:153px; height:15px; font-weight:bold; border-style:none; ">
  1071. <choices>
  1072. <item>
  1073. <label>전체</label>
  1074. <value>A</value>
  1075. </item>
  1076. <item>
  1077. <label>입금</label>
  1078. <value>Y</value>
  1079. </item>
  1080. <item>
  1081. <label>미입금</label>
  1082. <value>N</value>
  1083. </item>
  1084. </choices>
  1085. </select1>
  1086. <input id="ipt_todd" ref="/root/send/send01/todd" class="input_s_essential" inputtype="date" maxlength="6" format="yyyy-mm" style="left:346px; top:17px; width:82px; height:19px; ">
  1087. <script type="javascript" ev:event="DOMFocusOut">
  1088. <![CDATA[
  1089. /*
  1090. cmb_judgdg.value = "";
  1091. model.removeNodeset("/root/init/U0001list");
  1092. submit("TRPIF30902");
  1093. model.refresh();
  1094. */
  1095. ]]>
  1096. </script>
  1097. <script type="javascript" ev:event="xforms-value-changed">
  1098. <![CDATA[
  1099. model.removenode("/root/init/U0001list");
  1100. model.removenode("/root/init/U0002list");
  1101. submit("TRPIF30412"); // 시도 전체조회
  1102. submit("TRPIF30413"); // 시군구 전체조회
  1103. addComboItem("cmb_cpcd"," ");
  1104. addComboItem("cmb_assocd"," ");
  1105. ]]>
  1106. </script>
  1107. </input>
  1108. <caption id="caption1" style="left:330px; top:19px; width:15px; height:15px; ">~</caption>
  1109. <input id="ipt_fromdd" ref="/root/send/send01/fromdd" class="input_s_essential" inputtype="date" maxlength="6" format="yyyy-mm" style="left:243px; top:17px; width:82px; height:19px; ">
  1110. <script type="javascript" ev:event="xforms-value-changed">
  1111. <![CDATA[
  1112. ipt_todd.value = ipt_fromdd.value;
  1113. model.removenode("/root/init/U0001list");
  1114. model.removenode("/root/init/U0002list");
  1115. submit("TRPIF30412"); // 시도 전체조회
  1116. submit("TRPIF30413"); // 시군구 전체조회
  1117. addComboItem("cmb_cpcd"," ");
  1118. addComboItem("cmb_assocd"," ");
  1119. ]]>
  1120. </script>
  1121. </input>
  1122. <select1 id="cmb_clamno" ref="/root/send/send01/clamno" class="combo_search" appearance="minimal" style="left:716px; top:17px; width:129px; height:19px; ">
  1123. <choices>
  1124. <itemset nodeset="/root/main/list00/list002/clamno">
  1125. <label ref="clamno"/>
  1126. <value ref="clamno"/>
  1127. </itemset>
  1128. </choices>
  1129. <script type="javascript" ev:event="xforms-select">
  1130. <![CDATA[
  1131. model.removenode("/root/main/list01");
  1132. model.removenode("/root/main/list02");
  1133. // model.removenode("/root/main/list04");
  1134. model.removenode("/root/main/list00/list003");
  1135. model.setValue("/root/send/send01/judgdg","");
  1136. model.setValue("/root/send/send01/cpcd","");
  1137. model.setValue("/root/send/send01/assocd","");
  1138. model.resetInstanceNode("/root/init/U0001list");
  1139. model.resetInstanceNode("/root/init/U0002list");
  1140. // 심사차수 조회
  1141. model.setvalue("/root/send/send01/srchgubun", "3");
  1142. submit("TRPIF30404");
  1143. if(cmb_judgdg.length == 1) {
  1144. cmb_judgdg.select(0);
  1145. } else if(cmb_judgdg.length > 1) {
  1146. model.setFocus("cmb_judgdg");
  1147. } else {
  1148. messageBox("해당하는 심사차수가","I004");
  1149. return false;
  1150. }
  1151. ]]>
  1152. </script>
  1153. </select1>
  1154. <caption id="caption51" class="search_name" style="left:859px; top:18px; width:86px; height:17px; ">심사차수 :</caption>
  1155. <caption id="caption52" class="search_name" style="left:627px; top:18px; width:86px; height:17px; ">청구번호 :</caption>
  1156. <caption id="caption53" class="search_name" style="left:440px; top:51px; width:90px; height:17px; ">시/도별 :</caption>
  1157. <caption id="caption54" class="search_name" style="left:441px; top:18px; width:86px; height:17px; ">접수번호 :</caption>
  1158. <select1 id="cmb_cpcd" ref="/root/send/send01/cpcd" class="combo_search" appearance="minimal" style="left:530px; top:50px; width:85px; height:19px; ">
  1159. <choices>
  1160. <itemset nodeset="/root/init/U0001list/U0001">
  1161. <label ref="cdnm"/>
  1162. <value ref="cdid"/>
  1163. </itemset>
  1164. </choices>
  1165. <script type="javascript" ev:event="xforms-select">
  1166. <![CDATA[
  1167. model.removenode("/root/main/list01");
  1168. model.removenode("/root/main/list02");
  1169. model.setValue("/root/send/send01/assocd","");
  1170. model.removenode("/root/init/U0002list");
  1171. model.setvalue("/root/send/send01/srchgubun", "6");
  1172. submit("TRPIF30413"); // 시군구조회
  1173. if(cmb_assocd.length > 0) {
  1174. addComboItem("cmb_assocd"," ");
  1175. model.setFocus("cmb_assocd");
  1176. submit("TRPIF31501"); //조회시작
  1177. } else {
  1178. submit("TRPIF31501"); //조회시작
  1179. }
  1180. ]]>
  1181. </script>
  1182. </select1>
  1183. <caption id="caption56" class="search_name" style="left:627px; top:51px; width:86px; height:17px; ">시군구 :</caption>
  1184. <select1 id="cmb_assocd" ref="/root/send/send01/assocd" class="combo_search" appearance="minimal" style="left:704px; top:50px; width:141px; height:19px; ">
  1185. <choices>
  1186. <itemset nodeset="/root/init/U0002list/U0002">
  1187. <label ref="assonm"/>
  1188. <value ref="assocd"/>
  1189. </itemset>
  1190. </choices>
  1191. <script type="javascript" ev:event="xforms-select">
  1192. <![CDATA[
  1193. model.removenode("/root/main/list01");
  1194. model.removenode("/root/main/list02");
  1195. submit("TRPIF31501"); //조회시작
  1196. if(grd_pifmmiun.rows > 1) {
  1197. grd_pifmmiun.row = 1;
  1198. model.resetInstanceNode("/root/main/list02/gridpifmmide");
  1199. fSelect_pifmmide();
  1200. }
  1201. ]]>
  1202. </script>
  1203. </select1>
  1204. <input id="ipt_acptno" ref="/root/send/send01/acptno" class="input_search" inputtype="button" maxlength="7" style="left:530px; top:17px; width:85px; height:19px; ">
  1205. <script type="javascript" ev:event="onkeyup">
  1206. <![CDATA[
  1207. if(event.keyCode == "13") {
  1208. setInputNodeCurText();
  1209. var acptno = ipt_acptno.value;
  1210. if(acptno.length == 0) {
  1211. return false;
  1212. }
  1213. if(acptno.length < 7) {
  1214. messageBox("접수번호는 7자리","I009");
  1215. return false;
  1216. }
  1217. }
  1218. ]]>
  1219. </script>
  1220. <script type="javascript" ev:event="onbuttonclick">
  1221. <![CDATA[
  1222. model.makeNode("/root/send/send01/termflag");
  1223. model.makeNode("/root/send/send01/fromdd");
  1224. model.makeNode("/root/send/send01/todd");
  1225. model.makeNode("/root/send/send01/insukind");
  1226. model.setValue("/root/send/send01/insukind","21");
  1227. modal("SPPIF30302", 1, 1, 1, "SPPIF30302", "/root/send/send01", "/root/send");
  1228. // 시도 조회
  1229. if(cmb_judgdg.length > 0) {
  1230. model.setvalue("/root/send/send01/srchgubun", "5");
  1231. model.setValue("/root/send/send01/clamno", ipt_clamno.value);
  1232. submit("TRPIF30412");
  1233. if(cmb_cpcd.length > 0) {
  1234. addComboItem("cmb_cpcd"," ");
  1235. model.setFocus("cmb_cpcd");
  1236. // cmb_cpcd.select(0);
  1237. }
  1238. }
  1239. ]]>
  1240. </script>
  1241. <script type="javascript" ev:event="DOMFocusOut">
  1242. <![CDATA[
  1243. if(ipt_acptno.value == "") {
  1244. return false;
  1245. }
  1246. model.resetInstanceNode("/root/main/list00");
  1247. model.removenode("/root/main/list01");
  1248. model.removenode("/root/main/list02");
  1249. // model.removenode("/root/main/list04");
  1250. cmb_clamno.value = "";
  1251. cmb_judgdg.value = "";
  1252. cmb_cpcd.value = "";
  1253. cmb_assocd.value = "";
  1254. // 청구번호 조회
  1255. model.setvalue("/root/send/send01/srchgubun", "4");
  1256. submit("TRPIF30405");
  1257. if(cmb_clamno.length == 1) {
  1258. cmb_clamno.select(0);
  1259. } else if(cmb_clamno.length > 1) {
  1260. model.setFocus("cmb_clamno");
  1261. } else {
  1262. messageBox("해당청구번호가","I004");
  1263. return false;
  1264. }
  1265. ]]>
  1266. </script>
  1267. </input>
  1268. <select1 id="cmb_judgdg" ref="/root/send/send01/judgdg" class="combo_search" appearance="minimal" style="left:949px; top:17px; width:80px; height:19px; ">
  1269. <choices>
  1270. <itemset nodeset="/root/main/list00/list003/judgdglist">
  1271. <label ref="judgdg"/>
  1272. <value ref="judgdg"/>
  1273. </itemset>
  1274. </choices>
  1275. <script type="javascript" ev:event="xforms-select">
  1276. <![CDATA[
  1277. model.removenode("/root/main/list01");
  1278. model.removenode("/root/main/list02");
  1279. model.setValue("/root/send/send01/cpcd","");
  1280. model.setValue("/root/send/send01/assocd","");
  1281. model.removenode("/root/init/U0001list");
  1282. model.removenode("/root/init/U0002list");
  1283. // 시도 조회
  1284. model.setvalue("/root/send/send01/srchgubun", "5");
  1285. model.setValue("/root/send/send01/clamno", cmb_clamno.value);
  1286. submit("TRPIF30412");
  1287. if(cmb_cpcd.length == 1) {
  1288. cmb_cpcd.select(0);
  1289. } else if(cmb_cpcd.length > 1) {
  1290. addComboItem("cmb_cpcd"," ");
  1291. model.setFocus("cmb_cpcd");
  1292. } else {
  1293. messageBox("해당하는 시도가","I004");
  1294. return false;
  1295. }
  1296. // 시군구 조회
  1297. submit("TRPIF30413");
  1298. if(cmb_assocd.length == 1) {
  1299. cmb_assocdcd.select(0);
  1300. } else if(cmb_assocd.length > 1) {
  1301. addComboItem("cmb_assocd"," ");
  1302. model.setFocus("cmb_assocd");
  1303. } else {
  1304. messageBox("해당하는 시군구가","I004");
  1305. return false;
  1306. }
  1307. ]]>
  1308. </script>
  1309. </select1>
  1310. <select1 id="rdo_termflag" ref="/root/send/send01/termflag" class="radio_search" appearance="full" cols="3" rows="1" vcellspacing="1" overflow="visible" style="left:11px; top:17px; width:137px; height:20px; font-weight:bold; border-style:none; ">
  1311. <choices>
  1312. <item>
  1313. <label>청구월</label>
  1314. <value>1</value>
  1315. </item>
  1316. <item>
  1317. <label>접수번호</label>
  1318. <value>2</value>
  1319. </item>
  1320. </choices>
  1321. <script type="javascript" ev:event="xforms-value-changed">
  1322. <![CDATA[
  1323. if(rdo_termflag.value == "1") {
  1324. ipt_fromdd.disabled = false;
  1325. ipt_todd.disabled = false;
  1326. ipt_acptno.disabled = true;
  1327. cmb_clamno.disabled = true;
  1328. cmb_judgdg.disabled = true;
  1329. model.setFocus("ipt_fromdd");
  1330. } else if(rdo_termflag.value == "2") {
  1331. ipt_fromdd.disabled = true;
  1332. ipt_todd.disabled = true;
  1333. ipt_acptno.disabled = false;
  1334. cmb_clamno.disabled = false;
  1335. cmb_judgdg.disabled = false;
  1336. model.setFocus("ipt_acptno");
  1337. }
  1338. model.refresh();
  1339. ]]>
  1340. </script>
  1341. </select1>
  1342. <caption id="caption2" class="search_name" style="left:153px; top:17px; width:97px; height:17px; ">청구년월 :</caption>
  1343. </group>
  1344. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">차상위 개인별 입금관리</caption>
  1345. </xhtml:body>
  1346. </xhtml:html>