SMPIF30700_정산차수별입금등록관리.xrw 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. [ Submission ]
  4. TXPIF30704 일괄처리 저장
  5. -->
  6. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>정산차수별입금등록관리</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <send>
  14. <send01>
  15. <insukind>11</insukind>
  16. <calcdg/>
  17. <acptno/>
  18. <notidd/>
  19. <docuseqno/>
  20. <cpcd/>
  21. <assocd/>
  22. <oprcpcalcyn/>
  23. <calcacptno>9999999</calcacptno>
  24. <depodd/>
  25. <notimm/>
  26. <depoamt/>
  27. <depooutamt/>
  28. <depoinamt/>
  29. <bankcd/>
  30. <acntcd/>
  31. <depocnt/>
  32. </send01>
  33. <send02>
  34. <calcacptno/>
  35. <depodd/>
  36. <notimm/>
  37. <depoamt/>
  38. <calcdg/>
  39. <notidd/>
  40. <acptno/>
  41. <bankcd/>
  42. <acntcd/>
  43. <oprcpcalcyn/>
  44. </send02>
  45. <send03>
  46. <calcacptno/>
  47. <depodd/>
  48. <notimm/>
  49. <depoamt/>
  50. <calcdg/>
  51. <notidd/>
  52. <acptno/>
  53. <bankcd/>
  54. <acntcd/>
  55. </send03>
  56. <send04>
  57. <calcjudgdg/>
  58. <acptno/>
  59. <insukind/>
  60. <oprcpcalcyn/>
  61. </send04>
  62. </send>
  63. <main>
  64. <list00>
  65. <U0001>
  66. <acptno/>
  67. <notidd/>
  68. </U0001>
  69. </list00>
  70. <list01>
  71. <gridpifhcunc>
  72. <calcjudgdg/>
  73. <calcnotidd/>
  74. <clamym/>
  75. <clamno/>
  76. <acptno/>
  77. <judgdg/>
  78. <docuseqno/>
  79. <patnm/>
  80. <calcflagnm/>
  81. <cadecidifamt/>
  82. <depodd/>
  83. <caadjtamt1/>
  84. <caadjtamt2/>
  85. <caadjtamt/>
  86. <caownaddbamt/>
  87. <obtappamt/>
  88. <notimm/>
  89. <docuseqnorem/>
  90. <clamseqno/>
  91. <calcseqno/>
  92. <calcflag/>
  93. <depoprocinstmark/>
  94. <calcacptno/>
  95. <judgflag/>
  96. <calcbizcd/>
  97. <calcbiznm/>
  98. <insukind/>
  99. <seqno/>
  100. <calcacptno_bsdp/>
  101. <depodd_bsdp/>
  102. <notimm_bsdp/>
  103. <depoamt_bsdp/>
  104. <depocnt_bsdp/>
  105. <bankcd_bsdp/>
  106. <acntcd_bsdp/>
  107. <oprcpcalcyn_bsdp/>
  108. <rtnscheamt_bsdp/>
  109. </gridpifhcunc>
  110. <totcalcamt>
  111. <cadecidifamtsum/>
  112. </totcalcamt>
  113. </list01>
  114. <list02>
  115. <gridpifhcuncmed>
  116. <calcjudgdg/>
  117. <calcnotidd/>
  118. <clamym/>
  119. <clamno/>
  120. <acptno/>
  121. <judgdg/>
  122. <docuseqno/>
  123. <patnm/>
  124. <calcflagnm/>
  125. <cadecidifamt/>
  126. <depodd/>
  127. <caadjtamt1/>
  128. <caadjtamt2/>
  129. <caadjtamt/>
  130. <caownaddbamt/>
  131. <obtappamt/>
  132. <notimm/>
  133. <docuseqnorem/>
  134. <procinstmark/>
  135. <cpcd/>
  136. <assocd/>
  137. <cahandicaprfund/>
  138. <handicaprfunddepodd/>
  139. <casubtamt/>
  140. <subtamtdepodd/>
  141. <calcflag/>
  142. <judgflag/>
  143. <calcbizcd/>
  144. <calcbiznm/>
  145. <insukind/>
  146. <seqno/>
  147. <calcacptno_mcdp/>
  148. <depodd_mcdp/>
  149. <notimm_mcdp/>
  150. <depoamt_mcdp/>
  151. <depocnt_mcdp/>
  152. <cpcd_mcdp/>
  153. <assocd_mcdp/>
  154. <bankcd_mcdp/>
  155. <acntcd_mcdp/>
  156. <oprcpcalcyn_mcdp/>
  157. <rtnscheamt_mcdp/>
  158. <depooutamt_mcdp/>
  159. <depoinamt_mcdp/>
  160. </gridpifhcuncmed>
  161. <totcalcamt>
  162. <cadecidifamtsum/>
  163. </totcalcamt>
  164. </list02>
  165. <list03>
  166. <gridpifmcodpproc>
  167. <judgdg/>
  168. <insuno/>
  169. <docuseqno/>
  170. <patnm/>
  171. <calcmedflag/>
  172. <calcdg/>
  173. <cadeciamt/>
  174. <depodd/>
  175. <jradjtamt/>
  176. <jradjtamt1/>
  177. <jradjtamt2/>
  178. <obtappamt/>
  179. <notidd/>
  180. <rem/>
  181. <calcdg/>
  182. <acptno/>
  183. <clamno/>
  184. </gridpifmcodpproc>
  185. </list03>
  186. <list04>
  187. <gridpifhcunc>
  188. <calcjudgdg/>
  189. <calcnotidd/>
  190. <clamym/>
  191. <clamno/>
  192. <acptno/>
  193. <judgdg/>
  194. <docuseqno/>
  195. <patnm/>
  196. <calcflagnm/>
  197. <cadecidifamt/>
  198. <depodd/>
  199. <caadjtamt1/>
  200. <caadjtamt2/>
  201. <caadjtamt/>
  202. <caownaddbamt/>
  203. <obtappamt/>
  204. <notimm/>
  205. <docuseqnorem/>
  206. <clamseqno/>
  207. <calcseqno/>
  208. <calcflag/>
  209. <depoprocinstmark/>
  210. <calcacptno/>
  211. <judgflag/>
  212. <calcbizcd/>
  213. <calcbiznm/>
  214. <seqno/>
  215. </gridpifhcunc>
  216. </list04>
  217. <list04med>
  218. <gridpifhcuncmed>
  219. <calcjudgdg/>
  220. <calcnotidd/>
  221. <clamym/>
  222. <clamno/>
  223. <acptno/>
  224. <judgdg/>
  225. <docuseqno/>
  226. <patnm/>
  227. <calcflagnm/>
  228. <cadecidifamt/>
  229. <depodd/>
  230. <caadjtamt1/>
  231. <caadjtamt2/>
  232. <caadjtamt/>
  233. <caownaddbamt/>
  234. <obtappamt/>
  235. <notimm/>
  236. <docuseqnorem/>
  237. <procinstmark/>
  238. <cpcd/>
  239. <assocd/>
  240. <cahandicaprfund/>
  241. <handicaprfunddepodd/>
  242. <casubtamt/>
  243. <subtamtdepodd/>
  244. <calcflag/>
  245. <judgflag/>
  246. <calcbizcd/>
  247. <calcbiznm/>
  248. <seqno/>
  249. </gridpifhcuncmed>
  250. </list04med>
  251. <list05>
  252. <gridpifhcunc/>
  253. </list05>
  254. <list05med>
  255. <gridpifhcunc/>
  256. </list05med>
  257. </main>
  258. <init>
  259. <P0055list>
  260. <P0055>
  261. <cdid/>
  262. <cdnm/>
  263. </P0055>
  264. </P0055list>
  265. <Cpcd>
  266. <cpcdlist>
  267. <cdid/>
  268. <cdnm/>
  269. </cpcdlist>
  270. </Cpcd>
  271. <Assocd>
  272. <assocdlist>
  273. <cdid/>
  274. <cdnm/>
  275. </assocdlist>
  276. </Assocd>
  277. <bankinfo>
  278. <bankinfolist>
  279. <cdid/>
  280. <cdnm/>
  281. </bankinfolist>
  282. </bankinfo>
  283. </init>
  284. <hidden>
  285. <session/>
  286. </hidden>
  287. </root>
  288. </instance>
  289. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  290. <submission id="TRPIF30700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list00"/>
  291. <submission id="TRPIF30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01"/>
  292. <submission id="TRPIF30702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list02"/>
  293. <submission id="TRPIF30703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list03"/>
  294. <submission id="TRPIF30704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/Cpcd"/>
  295. <submission id="TRPIF30705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/init/Assocd"/>
  296. <submission id="TXPIF30701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list04" resultref="/root/result"/>
  297. <submission id="TXPIF30702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list04med" resultref="/root/result"/>
  298. <submission id="TXPIF30703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list05" resultref="/root/result"/>
  299. <submission id="TXPIF30704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list05med" resultref="/root/result"/>
  300. <submission id="TRPIF30309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/bankinfo"/>
  301. </model>
  302. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  303. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  304. <script type="javascript" src="../../../com/commonweb/js/tfHelp.js"/>
  305. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  306. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  307. <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
  308. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  309. <script type="javascript" ev:event="xforms-ready">
  310. <![CDATA[
  311. fGetUserInfosSampling(); //세션/root/hidden/session
  312. INSTCD = model.getValue("/root/hidden/session/sess_dutplceinstcd");
  313. //기관별 은행및 은행계좌조회
  314. fBankSearch();
  315. var cnt = getNodesetCount("/root/init/bankinfo/bankinfolist");
  316. var bankcd;
  317. var bankacount;
  318. for( var i = 1; i <= cnt; i++){
  319. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "10"){
  320. bankcd = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  321. }
  322. if(model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdid") == "20"){
  323. bankacount = model.getValue("/root/init/bankinfo/bankinfolist["+ i +"]/cdnm");
  324. }
  325. }
  326. BANKCD = bankcd;
  327. BANKACOUNT = bankacount;
  328. // 공통코드 Load작업
  329. CommCode_Load();
  330. ]]>
  331. </script>
  332. <script type="javascript">
  333. <![CDATA[
  334. function Node_Init() {
  335. // NodeSet 초기화
  336. model.resetInstanceNode("/root/main/list01");
  337. }
  338. // 공통코드 Load작업
  339. function CommCode_Load() {
  340. model.setFocus("ipt_calcdg");
  341. // 관련 Control 초기화P0055
  342. // zbcfGetCodeList(new Array("P0055"), new Array( "/root/init/P0055list"));
  343. // zbcfGetCodeList(new Array("P0101"), new Array( "/root/init/P0101list"));
  344. // zbcfGetCodeList(new Array("P0266"), new Array( "/root/init/P0266list"));
  345. // zbcfGetCodeList(new Array("R0001"), new Array( "/root/init/R0001list"));
  346. // zbcfGetCodeList(new Array("P0302"), new Array( "/root/init/P0302list"));
  347. if(window.parent != null) { // 자기자신이 팝업일 경우
  348. caption15.visible = true;
  349. cmb_cpcd.visible = true;
  350. cmb_assocd.visible = true;
  351. if(model.getValue("/root/send/send04/insukind") == "") {
  352. rdo_insukind.value = '11';
  353. model.toggle("case1") ;
  354. caption15.visible = false;
  355. cmb_cpcd.visible = false;
  356. cmb_assocd.visible = false;
  357. } else {
  358. model.setValue("/root/send/send01/insukind", model.getValue("/root/send/send04/insukind"));
  359. model.setValue("/root/send/send01/calcdg", model.getValue("/root/send/send04/calcjudgdg"));
  360. model.setValue("/root/send/send01/acptno", model.getValue("/root/send/send04/acptno"));
  361. model.setValue("/root/send/send01/oprcpcalcyn", model.getValue("/root/send/send04/oprcpcalcyn"));
  362. if(model.getValue("/root/send/send04/insukind") == "11") {
  363. model.toggle("case1") ;
  364. btn_insu.dispatch("onclick");
  365. } else {
  366. model.toggle("case2") ;
  367. btn_proc.dispatch("onclick");
  368. }
  369. }
  370. model.refresh();
  371. } else { // 자기자신이 팝업이 아닌경우
  372. rdo_insukind.value = '11' ;
  373. model.toggle("case1") ;
  374. btn_insu.dispatch("onclick");
  375. caption15.visible = false;
  376. cmb_cpcd.visible = false;
  377. cmb_assocd.visible = false;
  378. model.refresh();
  379. }
  380. }
  381. function fBankSearch(){
  382. submit("TRPIF30309");
  383. }
  384. ]]>
  385. </script>
  386. </xhtml:head>
  387. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  388. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  389. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:269px; height:13px; ">정산차수별입금등록관리</caption>
  390. </group>
  391. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  392. <switch id="switch1" class="sw_box" style="left:0px; top:72px; width:1194px; height:655px; ">
  393. <case id="case1" selected="true" style="left:0px; top:0px; width:1187px; height:653px; ">
  394. <datagrid id="grd_pifhcunc" nodeset="/root/main/list01/gridpifhcunc" class="datagrid2" caption="^정산&#xA;심사차수^정산&#xA;통보일자^청구년월^청구번호^접수번호^심사차수^명일련^수진자^정산구분^내원구분^정산금액^입금일자^조정소계1^조정소계2^조정합계^본인추가&#xA;부담금^이의신청액^통보년월^비고^이의신청&#xA;여부^부제기신청&#xA;여부^(청구연번)^(정산연번)^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10" colsep="^" colwidth="20, 60, 70, 60, 70, 60, 60, 50, 50, 60, 64, 70, 70, 70, 70, 70, 70, 70, 60, 200, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1181px; height:514px; ">
  395. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  396. <col ref="calcjudgdg" style="text-align:center; "/>
  397. <col ref="calcnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  398. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  399. <col ref="clamno" style="text-align:center; "/>
  400. <col ref="acptno" style="text-align:center; "/>
  401. <col ref="judgdg" style="text-align:center; "/>
  402. <col ref="docuseqno" style="text-align:center; "/>
  403. <col ref="patnm" style="text-align:center; "/>
  404. <col ref="calcflagnm" style="text-align:center; "/>
  405. <col disabled="true" ref="ioflag" type="combo">
  406. <choices>
  407. <item>
  408. <label>입원</label>
  409. <value>I</value>
  410. </item>
  411. <item>
  412. <label>외래</label>
  413. <value>O</value>
  414. </item>
  415. </choices>
  416. </col>
  417. <col ref="cadecidifamt" format="(-)#,###" style="text-align:right; "/>
  418. <col ref="depodd" format="yyyy-mm-dd" style="text-align:center; "/>
  419. <col ref="caadjtamt1" format="(-)#,###" style="text-align:right; "/>
  420. <col ref="caadjtamt2" format="(-)#,###" style="text-align:right; "/>
  421. <col ref="caadjtamt" format="(-)#,###" style="text-align:right; "/>
  422. <col ref="caownaddbamt" format="(-)#,###" style="text-align:right; "/>
  423. <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
  424. <col ref="notimm" format="yyyy-mm" style="text-align:center; "/>
  425. <col ref="docuseqnorem"/>
  426. <col ref="obtappyn"/>
  427. <col ref="obtappabdyn"/>
  428. <col ref="clamseqno" visibility="hidden"/>
  429. <col ref="calcseqno" visibility="hidden"/>
  430. <col ref="calcflag" visibility="hidden"/>
  431. <col ref="depoprocinstmark" visibility="hidden"/>
  432. <col ref="calcacptno" visibility="hidden"/>
  433. <col ref="judgflag" visibility="hidden"/>
  434. <col ref="calcbizcd" visibility="hidden"/>
  435. <col ref="calcbiznm" visibility="hidden"/>
  436. <col ref="insukind" visibility="hidden"/>
  437. <col ref="seqno" visibility="hidden"/>
  438. <col ref="calcacptno_bsdp" visibility="hidden"/>
  439. <col ref="depodd_bsdp" visibility="hidden"/>
  440. <col ref="notimm_bsdp" visibility="hidden"/>
  441. <col ref="depoamt_bsdp" visibility="hidden"/>
  442. <col ref="depooutamt_bsdp" visibility="hidden"/>
  443. <col ref="depoinamt_bsdp" visibility="hidden"/>
  444. <col ref="depocnt_bsdp" visibility="hidden"/>
  445. <col ref="bankcd_bsdp" visibility="hidden"/>
  446. <col ref="acntcd_bsdp" visibility="hidden"/>
  447. <col ref="oprcpcalcyn_bsdp" visibility="hidden"/>
  448. <col ref="rtnscheamt_bsdp" visibility="hidden"/>
  449. <script type="javascript" ev:event="onclick">
  450. <![CDATA[
  451. model.resetInstanceNode("/root/main/list04/gridpifhcunc");
  452. model.copyNode("/root/main/list04/gridpifhcunc", "/root/main/list01/gridpifhcunc["+grd_pifhcunc.row+"]");
  453. model.refresh();
  454. ]]>
  455. </script>
  456. <script type="javascript" ev:event="oncopy">
  457. <![CDATA[
  458. grid_oncopy();
  459. ]]>
  460. </script>
  461. <script type="javascript" ev:event="onaftersort">
  462. <![CDATA[
  463. grd_pifhcunc.gridToInstance();
  464. ]]>
  465. </script>
  466. </datagrid>
  467. <line id="line9" class="line_1" style="x1:5px; y1:571px; x2:1148px; y2:571px; "/>
  468. <caption id="caption3" class="tit_2" style="left:6px; top:10px; width:113px; height:14px; ">정산내역</caption>
  469. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
  470. <caption id="caption16" class="tit_2" style="left:6px; top:556px; width:113px; height:13px; ">개인별 정산내역</caption>
  471. <button id="button10" class="btn5_letter2" style="left:1105px; top:550px; width:42px; height:19px; ">
  472. <caption>저장</caption>
  473. <script type="javascript" ev:event="onclick">
  474. <![CDATA[
  475. if(opt_calcdg.value == "") {
  476. return false;
  477. } else if(ipt_calcamt2.value == "") {
  478. messageBox("정산입금액을","C001");
  479. model.setFocus("ipt_calcamt2");
  480. return false;
  481. } else if(ipt_depodd2.value == "") {
  482. messageBox("입금일자를","C001");
  483. model.setFocus("ipt_depodd2");
  484. return false;
  485. } else if(ipt_notimm2.value == "") {
  486. messageBox("통보월을","C001");
  487. model.setFocus("ipt_notimm2");
  488. return false;
  489. } else {
  490. //model.setValue("/root/main/list04/gridpifhcunc", grd_chkdocuadjtdetl.getUpdateData());
  491. if(submit("TXPIF30701")) {
  492. submit("TRPIF30701");
  493. model.resetInstanceNode("/root/main/list04");
  494. model.refresh();
  495. }
  496. }
  497. ]]>
  498. </script>
  499. </button>
  500. <button id="button12" class="btn2_letter4" style="left:1121px; top:4px; width:64px; height:19px; ">
  501. <caption>일괄처리</caption>
  502. <script type="javascript" ev:event="onclick">
  503. <![CDATA[
  504. var totalamt = 0;
  505. var totaloutamt = 0;
  506. var totalinamt = 0;
  507. for(var i=1; i<grd_pifhcunc.rows; i++) {
  508. if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/check") == 'Y' ){
  509. //기 입금내역인지 체크
  510. if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/depodd") != '' ) {
  511. messageBox("이미 입금등록이","I002");
  512. return false;
  513. }
  514. //토탈입금내역 확인
  515. if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/ioflag") == 'I' ){
  516. totalinamt = parseInt(totalinamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  517. }else if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/ioflag") == 'O' ){
  518. totaloutamt = parseInt(totaloutamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  519. }
  520. totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  521. }
  522. }
  523. ipt_depodd.value = "";
  524. ipt_notimm.value = "";
  525. ipt_depoamt.value = "";
  526. if(chk_oprcpcalcyn.value == "Y") {
  527. cap_calcacptno.value = "8888888";
  528. ipt_depoamt.value = ipt_totcalcamt.value;
  529. // model.setValue("/root/send/send02/calcdg", ipt_calcdg.value);
  530. // model.setValue("/root/send/send02/notidd", ipt_notidd.value);
  531. // model.setValue("/root/send/send02/acptno", cmb_acptno.value);
  532. model.setValue("/root/send/send01/bankcd", BANKCD);
  533. model.setValue("/root/send/send01/acntcd", BANKACOUNT);
  534. // model.setValue("/root/send/send02/acntcd", chk_oprcpcalcyn.value);
  535. } else {
  536. cap_calcacptno.value = "9999999";
  537. ipt_depoamt.value = ipt_totcalcamt.value;
  538. // model.setValue("/root/send/send02/calcdg", ipt_calcdg.value);
  539. // model.setValue("/root/send/send02/notidd", ipt_notidd.value);
  540. // model.setValue("/root/send/send02/acptno", cmb_acptno.value);
  541. model.setValue("/root/send/send01/bankcd", BANKCD);
  542. model.setValue("/root/send/send01/acntcd", BANKACOUNT);
  543. // model.setValue("/root/send/send02/acntcd", chk_oprcpcalcyn.value);
  544. }
  545. model.setValue("/root/send/send01/depoamt", totalamt);
  546. model.setValue("/root/send/send01/depooutamt", totaloutamt);
  547. model.setValue("/root/send/send01/depoinamt", totalinamt);
  548. group5.visible = true;
  549. model.refresh();
  550. model.setFocus("ipt_depodd");
  551. ]]>
  552. </script>
  553. </button>
  554. <line id="line20" class="line_3" style="x1:5px; y1:649px; x2:1148px; y2:649px; "/>
  555. <output id="opt_patnm" ref="/root/main/list04/gridpifhcunc/patnm" class="input_default" appearance="output" style="left:801px; top:578px; width:117px; height:19px; "/>
  556. <caption id="caption8" class="cell_1" style="left:463px; top:576px; width:105px; height:23px; vertical-align:middle; ">명세서일련번호</caption>
  557. <caption id="caption21" class="cell_1" style="left:463px; top:601px; width:105px; height:23px; vertical-align:middle; ">입금일자</caption>
  558. <output id="opt_acptno" ref="/root/main/list04/gridpifhcunc/acptno" class="input_default" appearance="output" style="left:340px; top:578px; width:118px; height:19px; "/>
  559. <caption id="caption22" class="cell_1" style="left:5px; top:576px; width:105px; height:23px; vertical-align:middle; ">정산차수</caption>
  560. <line id="line26" class="line_2" style="x1:5px; y1:599px; x2:1148px; y2:599px; "/>
  561. <caption id="caption23" class="cell_1" style="left:693px; top:576px; width:105px; height:23px; vertical-align:middle; ">수진자</caption>
  562. <caption id="caption24" class="cell_1" style="left:693px; top:601px; width:105px; height:23px; vertical-align:middle; ">통보월</caption>
  563. <caption id="caption25" class="cell_1" style="left:232px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산금액</caption>
  564. <input id="ipt_calcamt2" ref="/root/main/list04/gridpifhcunc/cadecidifamt" class="input_default" format="(-)#,###" style="left:340px; top:603px; width:118px; height:19px; text-align:right; "/>
  565. <output id="opt_docuseqno" ref="/root/main/list04/gridpifhcunc/docuseqno" class="input_default" appearance="output" style="left:571px; top:578px; width:117px; height:19px; "/>
  566. <input id="ipt_depodd2" ref="/root/main/list04/gridpifhcunc/depodd" class="input_default" format="yyyy-mm-dd" style="left:571px; top:603px; width:117px; height:19px; "/>
  567. <input id="ipt_notimm2" ref="/root/main/list04/gridpifhcunc/notimm" class="input_default" format="yyyy-mm" style="left:801px; top:603px; width:117px; height:19px; "/>
  568. <output id="opt_calcdg" ref="/root/main/list04/gridpifhcunc/calcjudgdg" class="input_default" appearance="output" style="left:113px; top:578px; width:114px; height:19px; "/>
  569. <caption id="caption26" class="cell_1" style="left:232px; top:576px; width:105px; height:23px; vertical-align:middle; ">접수번호</caption>
  570. <caption id="caption27" class="cell_1" style="left:5px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산구분</caption>
  571. <select1 id="combo3" ref="/root/main/list04/gridpifhcunc/calcflag" appearance="minimal" style="left:113px; top:603px; width:114px; height:19px; ">
  572. <choices>
  573. <item>
  574. <label>이의신청</label>
  575. <value>01</value>
  576. </item>
  577. <item>
  578. <label>심사청구</label>
  579. <value>02</value>
  580. </item>
  581. <item>
  582. <label>정산환수</label>
  583. <value>03</value>
  584. </item>
  585. <item>
  586. <label>정산의뢰</label>
  587. <value>04</value>
  588. </item>
  589. </choices>
  590. </select1>
  591. <caption id="caption33" class="cell_1" style="left:923px; top:576px; width:105px; height:23px; vertical-align:middle; ">심사구분</caption>
  592. <line id="line6" class="line_2" style="x1:5px; y1:624px; x2:1148px; y2:624px; "/>
  593. <caption id="caption34" class="cell_1" style="left:232px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무명</caption>
  594. <output id="output5" ref="/root/main/list04/gridpifhcunc/calcbiznm" class="input_default" appearance="output" style="left:340px; top:628px; width:805px; height:19px; "/>
  595. <select1 id="combo2" ref="/root/main/list04/gridpifhcunc/judgflag" disabled="true" appearance="minimal" style="left:1031px; top:578px; width:115px; height:19px; ">
  596. <choices>
  597. <item>
  598. <label>1.재심</label>
  599. <value>1</value>
  600. </item>
  601. <item>
  602. <label>2.삼심</label>
  603. <value>2</value>
  604. </item>
  605. <item>
  606. <label>3.사심</label>
  607. <value>3</value>
  608. </item>
  609. <item>
  610. <label>4.오심</label>
  611. <value>4</value>
  612. </item>
  613. </choices>
  614. </select1>
  615. <caption id="caption37" class="cell_1" style="left:5px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무코드</caption>
  616. <output id="output4" ref="/root/main/list04/gridpifhcunc/calcbizcd" class="input_default" appearance="output" style="left:113px; top:628px; width:114px; height:19px; "/>
  617. <caption id="caption39" style="left:816px; top:6px; width:75px; height:15px; ">토탈정산금액</caption>
  618. <input id="ipt_totcalcamt" ref="/root/main/list01/totcalcamt/cadecidifamtsum" format="(-)#,###" appearance="input" style="left:898px; top:4px; width:90px; height:19px; text-align:right; "/>
  619. <group id="group5" visibility="hidden" style="left:495px; top:160px; width:215px; height:265px; ">
  620. <!--shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:215px; height:215px; background-color:#d2d2d2; border-color:#ffd799; "/-->
  621. <caption id="caption9" style="left:15px; top:35px; width:60px; height:30px; ">접수번호 :</caption>
  622. <caption id="caption11" style="left:15px; top:64px; width:60px; height:30px; ">입금일자 :</caption>
  623. <button id="button3" class="btn4_letter2" style="left:100px; top:237px; width:56px; height:22px; ">
  624. <caption>저장</caption>
  625. <script type="javascript" ev:event="onclick">
  626. <![CDATA[
  627. if(ipt_depodd.value == "") {
  628. messageBox("입급일자를","C001");
  629. model.setFocus("ipt_depodd");
  630. return false;
  631. }
  632. if(ipt_notimm.value == "") {
  633. messageBox("통보월을","C001");
  634. model.setFocus("ipt_notimm");
  635. return false;
  636. }
  637. if(ipt_depoamt.value == "") {
  638. messageBox("정산금액을","C001");
  639. model.setFocus("ipt_depoamt");
  640. return false;
  641. }
  642. //model.setValue("/root/send/send01/depocnt", grd_pifhcunc.rows-1);
  643. model.setValue("/root/send/send01/depocnt", getNodesetCount("/root/main/list01/gridpifhcunc[check = 'Y']/calcjudgdg"));
  644. // 청구서단위 입금등록값 세팅
  645. for(var i=1;i<grd_pifhcunc.rows;i++) {
  646. if( model.getValue("/root/main/list01/gridpifhcunc["+i+"]/check") != 'Y' ){
  647. grd_pifhcunc.rowStatus(i) = 0;
  648. continue;
  649. }
  650. grd_pifhcunc.rowStatus(i) = 2;
  651. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/calcacptno_bsdp", model.getValue("/root/send/send01/calcacptno"));
  652. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depodd_bsdp", model.getValue("/root/send/send01/depodd"));
  653. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/notimm_bsdp", model.getValue("/root/send/send01/notimm"));
  654. if(model.getValue("/root/send/send01/depoamt") <= 0) {
  655. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", 0);
  656. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", Math.abs(model.getValue("/root/send/send01/depoamt")));
  657. } else {
  658. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoamt_bsdp", model.getValue("/root/send/send01/depoamt"));
  659. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/rtnscheamt_bsdp", 0);
  660. }
  661. //2011-04-22 추가 - 정산입금을 입원, 외래 구분위해서 추가
  662. //model.makeNode("/root/main/list01/gridpifhcunc["+i+"]/depooutamt_bsdp");
  663. //model.makeNode("/root/main/list01/gridpifhcunc["+i+"]/depoinamt_bsdp");
  664. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depooutamt_bsdp", model.getValue("/root/send/send01/depooutamt"));
  665. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depoinamt_bsdp", model.getValue("/root/send/send01/depoinamt"));
  666. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/depocnt_bsdp", model.getValue("/root/send/send01/depocnt"));
  667. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/bankcd_bsdp", model.getValue("/root/send/send01/bankcd"));
  668. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/acntcd_bsdp", model.getValue("/root/send/send01/acntcd"));
  669. model.setValue("/root/main/list01/gridpifhcunc["+i+"]/oprcpcalcyn_bsdp", model.getValue("/root/send/send01/oprcpcalcyn"));
  670. }
  671. // model.copyNode("/root/main/list01/pifhbsdp","/root/send/send01");
  672. model.refresh();
  673. model.setValue("/root/main/list05/gridpifhcunc", grd_pifhcunc.getUpdateData());
  674. if(submit("TXPIF30703")) {
  675. messageBox("정상적으로 일괄 입금등록이","I002");
  676. //submit("TRPIF30701");
  677. btn_srch.dispatch("DOMActivate");
  678. }
  679. group5.visible = false;
  680. ]]>
  681. </script>
  682. </button>
  683. <button id="button4" class="btn4_letter2" style="left:157px; top:237px; width:56px; height:22px; ">
  684. <caption>닫기</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. group5.visible = false;
  688. ]]>
  689. </script>
  690. </button>
  691. <caption id="caption13" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">일괄처리</caption>
  692. <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" style="left:5px; top:20px; width:205px; height:210px; "/>
  693. <caption id="caption10" style="left:15px; top:92px; width:60px; height:30px; ">통 보 월 :</caption>
  694. <caption id="caption12" style="left:15px; top:119px; width:60px; height:30px; ">정산금액 :</caption>
  695. <input id="ipt_depodd" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:68px; width:110px; height:19px; text-align:center; ">
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. var depodd = model.getValue("/root/send/send01/depodd");
  699. if( depodd.length == 8 ){
  700. model.setValue("/root/send/send01/notimm", depodd.substr(0,6));
  701. ipt_notimm.refresh();
  702. }
  703. ]]>
  704. </script>
  705. </input>
  706. <input id="ipt_notimm" ref="/root/send/send01/notimm" inputtype="date" format="yyyy-mm" style="left:85px; top:95px; width:110px; height:19px; text-align:center; "/>
  707. <input id="ipt_depoamt" ref="/root/send/send01/depoamt" maxlength="14" format="(-)#,###" style="left:85px; top:124px; width:110px; height:19px; text-align:right; ">
  708. <script type="javascript" ev:event="xforms-value-changed">
  709. <![CDATA[
  710. var amt = model.getValue("/root/send/send01/depoamt");
  711. model.setValue("/root/send/send01/depooutamt", amt); //외래
  712. model.setValue("/root/send/send01/depoinamt", 0); //입원
  713. input1.refresh();
  714. input2.refresh();
  715. ]]>
  716. </script>
  717. <script type="javascript" ev:event="onkeyup">
  718. <![CDATA[
  719. if(event.keyCode == "13") {
  720. // setInputNodeCurText();
  721. //
  722. // var amt = model.getValue("/root/send/send01/depoamt");
  723. // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  724. //
  725. // model.setValue("/root/send/send01/depooutamt", outamt);
  726. // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  727. //
  728. // input1.refresh();
  729. // input2.refresh();
  730. model.setFocus("input1");
  731. }
  732. ]]>
  733. </script>
  734. </input>
  735. <output id="cap_calcacptno" ref="/root/send/send01/calcacptno" appearance="output" style="left:85px; top:40px; width:110px; height:20px; ">caption33</output>
  736. <input id="input1" ref="/root/send/send01/depooutamt" maxlength="14" format="(-)#,###" style="left:85px; top:154px; width:110px; height:19px; text-align:right; ">
  737. <script type="javascript" ev:event="onkeyup">
  738. <![CDATA[
  739. if(event.keyCode == "13") {
  740. // setInputNodeCurText();
  741. //
  742. // var amt = model.getValue("/root/send/send01/depoamt");
  743. // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  744. //
  745. // model.setValue("/root/send/send01/depooutamt", outamt);
  746. // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  747. //
  748. // input1.refresh();
  749. // input2.refresh();
  750. model.setFocus("button3");
  751. }
  752. ]]>
  753. </script>
  754. <script type="javascript" ev:event="xforms-value-changed">
  755. <![CDATA[
  756. var amt = model.getValue("/root/send/send01/depoamt");
  757. var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  758. model.setValue("/root/send/send01/depooutamt", outamt);
  759. model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  760. input1.refresh();
  761. input2.refresh();
  762. ]]>
  763. </script>
  764. </input>
  765. <caption id="caption1" style="left:15px; top:149px; width:60px; height:30px; ">정산외래 :</caption>
  766. <caption id="caption7" style="left:15px; top:179px; width:60px; height:30px; ">정산입원 :</caption>
  767. <input id="input2" ref="/root/send/send01/depoinamt" maxlength="14" format="(-)#,###" style="left:85px; top:184px; width:110px; height:19px; text-align:right; ">
  768. <script type="javascript" ev:event="onkeyup">
  769. <![CDATA[
  770. if(event.keyCode == "13") {
  771. // setInputNodeCurText();
  772. //
  773. // var amt = model.getValue("/root/send/send01/depoamt");
  774. // var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
  775. //
  776. // model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
  777. // model.setValue("/root/send/send01/depoinamt", inamt); //입원
  778. //
  779. // input1.refresh();
  780. // input2.refresh();
  781. model.setFocus("button3");
  782. }
  783. ]]>
  784. </script>
  785. <script type="javascript" ev:event="xforms-value-changed">
  786. <![CDATA[
  787. var amt = model.getValue("/root/send/send01/depoamt");
  788. var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
  789. model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
  790. model.setValue("/root/send/send01/depoinamt", inamt); //입원
  791. input1.refresh();
  792. input2.refresh();
  793. ]]>
  794. </script>
  795. </input>
  796. </group>
  797. <caption id="caption47" style="left:125px; top:556px; width:485px; height:15px; color:#ff6600; ">(상단 그리드에서 정보수정을 원하는 환자를 선택하시면 이곳에서 수정하실 수 있습니다.)</caption>
  798. <button id="button9" class="btn2_letter4" style="left:994px; top:5px; width:64px; height:19px; ">
  799. <caption>엑셀저장</caption>
  800. <script type="javascript" ev:event="DOMActivate">
  801. <![CDATA[
  802. // var fileName = window.fileDialog("save", ",", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  803. var fileName = window.fileDialog("save", ",", false, "정산차수별입금", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  804. if (fileName != "") { grd_pifhcunc.saveExcel(fileName, "SheetName", true, true, "", "", ""); } // 20100825 추가
  805. ]]>
  806. </script>
  807. </button>
  808. <output id="output9" ref="/root/main/list04/gridpifhcunc/seqno" visibility="hidden" style="left:1029px; top:602px; width:115px; height:19px; "/>
  809. <button id="button13" class="btn2_letter2" style="left:771px; top:4px; width:42px; height:19px; ">
  810. <caption>출력</caption>
  811. <script type="javascript" ev:event="DOMActivate">
  812. <![CDATA[
  813. exeReportPreview("RPPIF30701", "XMLSTR", "","", "false","","","","","false");
  814. ]]>
  815. </script>
  816. </button>
  817. </case>
  818. <case id="case2">
  819. <line id="line2" class="line_1" style="x1:5px; y1:571px; x2:1148px; y2:571px; "/>
  820. <line id="line3" class="line_3" style="x1:5px; y1:649px; x2:1143px; y2:649px; "/>
  821. <datagrid id="grd_pifhcuncmed" nodeset="/root/main/list02/gridpifhcuncmed" class="datagrid2" caption="^정산&#xA;심사차수^정산&#xA;통보일자^청구년월^청구번호^접수번호^심사차수^명일련^수진자^정산구분^내원구분^정산금액^입금일자^조정소계1^조정소계2^조정합계^본인추가&#xA;부담금^이의신청액^통보년월^비고^조합기호^시도^시군구^장애인의료비&#xA;정산차액^장애인&#xA;입금일자^대불금^대불금&#xA;입금일자^이의신청&#xA;여부^부제기신청&#xA;여부^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9" colsep="^" colwidth="23, 60, 70, 60, 70, 60, 60, 50, 50, 60, 61, 70, 70, 70, 70, 70, 70, 70, 60, 200, 90, 80, 100, 80, 80, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:30px; width:1181px; height:514px; ">
  822. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  823. <col ref="calcjudgdg" style="text-align:center; "/>
  824. <col ref="calcnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  825. <col ref="clamym" style="text-align:center; "/>
  826. <col ref="clamno" style="text-align:center; "/>
  827. <col ref="acptno" style="text-align:center; "/>
  828. <col ref="judgdg" style="text-align:center; "/>
  829. <col ref="docuseqno" style="text-align:center; "/>
  830. <col ref="patnm" style="text-align:center; "/>
  831. <col ref="calcflagnm" style="text-align:center; "/>
  832. <col disabled="true" ref="ioflag" type="combo">
  833. <choices>
  834. <item>
  835. <label>입원</label>
  836. <value>I</value>
  837. </item>
  838. <item>
  839. <label>외래</label>
  840. <value>O</value>
  841. </item>
  842. </choices>
  843. </col>
  844. <col ref="cadecidifamt" format="(-)#,###" style="left:695px; top:32px; width:100px; height:23px; text-align:right; "/>
  845. <col ref="depodd" format="yyyy-mm-dd" style="left:795px; top:32px; width:85px; height:23px; text-align:center; "/>
  846. <col ref="caadjtamt1" format="#,###" style="text-align:right; "/>
  847. <col ref="caadjtamt2" format="#,###" style="text-align:right; "/>
  848. <col ref="caadjtamt" format="#,###" style="text-align:right; "/>
  849. <col ref="caownaddbamt" format="#,###" style="left:910px; top:32px; width:70px; height:23px; text-align:right; "/>
  850. <col ref="obtappamt" format="#,###" style="text-align:right; "/>
  851. <col ref="notimm" style="text-align:center; "/>
  852. <col ref="docuseqnorem"/>
  853. <col ref="procinstmark" style="text-align:center; "/>
  854. <col ref="cpcdnm" style="text-align:center; "/>
  855. <col ref="assocd"/>
  856. <col ref="cahandicaprfund" format="#,###" style="text-align:right; "/>
  857. <col ref="handicaprfunddepodd" format="yyyy-mm-dd" style="text-align:center; "/>
  858. <col ref="casubtamt" format="#,###" style="left:2073px; top:32px; width:100px; height:23px; text-align:right; "/>
  859. <col ref="subtamtdepodd" format="yyyy-mm-dd" style="text-align:center; "/>
  860. <col ref="obtappyn"/>
  861. <col ref="obtappabdyn"/>
  862. <col ref="calcflag" visibility="hidden"/>
  863. <col ref="judgflag" visibility="hidden"/>
  864. <col ref="calcbizcd" visibility="hidden"/>
  865. <col ref="calcbiznm" visibility="hidden"/>
  866. <col ref="insukind" visibility="hidden"/>
  867. <col ref="seqno" visibility="hidden"/>
  868. <col ref="cpcd" visibility="hidden"/>
  869. <col ref="calcacptno_mcdp" visibility="hidden"/>
  870. <col ref="depodd_mcdp" visibility="hidden"/>
  871. <col ref="notimm_mcdp" visibility="hidden"/>
  872. <col ref="depoamt_mcdp" visibility="hidden"/>
  873. <col ref="depocnt_mcdp" visibility="hidden"/>
  874. <col ref="cpcd_mcdp" visibility="hidden"/>
  875. <col ref="assocd_mcdp" visibility="hidden"/>
  876. <col ref="bankcd_mcdp" visibility="hidden"/>
  877. <col ref="acntcd_mcdp" visibility="hidden"/>
  878. <col ref="oprcpcalcyn_mcdp" visibility="hidden"/>
  879. <col ref="rtnscheamt_mcdp" visibility="visible"/>
  880. <col ref="depooutamt_mcdp" visibility="visible"/>
  881. <col ref="depoinamt_mcdp" visibility="hidden"/>
  882. <script type="javascript" ev:event="onclick">
  883. <![CDATA[
  884. // 셀을 선택했을 경우에만 실행
  885. if( grd_pifhcuncmed.iscell(event.target) ) {
  886. // 선택된 row 를 list04med 에 복사한다.
  887. model.copyNode("/root/main/list04med/gridpifhcuncmed", "/root/main/list02/gridpifhcuncmed["+grd_pifhcuncmed.row+"]");
  888. // 장애인입금일자가 없으면 정산으로 변경
  889. if ( model.getValue("/root/main/list02/gridpifhcuncmed["+grd_pifhcuncmed.row+"]/handicaprfunddepodd") == "" ) {
  890. cp_amt.attribute("text") = "정산금액";
  891. cp_depodd.attribute("text") = "입금일자";
  892. cp_notidd.attribute("text") = "통보월";
  893. } else { // 장애인입금일자가 있으면 정산장애인으로 변경
  894. cp_amt.attribute("text") = "장애인정산차액";
  895. cp_depodd.attribute("text") = "장애인입금일자";
  896. cp_notidd.attribute("text") = "장애인통보월";
  897. // pifhcunc에 정산, 정산장애인의 값이 저장되는 컬럼은 동일하다. 정산과 정산장애인이 각각 저장되어 있다
  898. // MAP 파일에서 cadecidifamt, depodd, notimm 이 저장되는 ref 이므로 장애인일 경우의 값으로 변경해 준다.
  899. model.setValue("/root/main/list04med/gridpifhcuncmed/cadecidifamt",model.getValue("/root/main/list04med/gridpifhcuncmed/cahandicaprfund"));
  900. model.setValue("/root/main/list04med/gridpifhcuncmed/depodd",model.getValue("/root/main/list04med/gridpifhcuncmed/handicaprfunddepodd"));
  901. model.setValue("/root/main/list04med/gridpifhcuncmed/notimm",model.getValue("/root/main/list04med/gridpifhcuncmed/notimm"));
  902. }
  903. model.refresh();
  904. }
  905. ]]>
  906. </script>
  907. <script type="javascript" ev:event="onaftersort">
  908. <![CDATA[
  909. grd_pifhcuncmed.gridToInstance();
  910. ]]>
  911. </script>
  912. </datagrid>
  913. <output id="output1" ref="/root/main/list04med/gridpifhcuncmed/patnm" class="input_default" appearance="output" style="left:801px; top:578px; width:117px; height:19px; text-align:center; "/>
  914. <output id="output2" ref="/root/main/list04med/gridpifhcuncmed/acptno" class="input_default" appearance="output" style="left:340px; top:578px; width:118px; height:19px; text-align:center; "/>
  915. <caption id="cp_depodd" class="cell_1" style="left:463px; top:601px; width:105px; height:23px; vertical-align:middle; ">입금일자</caption>
  916. <caption id="caption2" class="cell_1" style="left:5px; top:576px; width:105px; height:23px; vertical-align:middle; ">정산차수</caption>
  917. <caption id="caption4" class="tit_2" style="left:6px; top:10px; width:113px; height:14px; ">정산내역</caption>
  918. <caption id="caption5" class="cell_1" style="left:693px; top:576px; width:105px; height:23px; vertical-align:middle; ">수진자</caption>
  919. <line id="line4" class="line_2" style="x1:5px; y1:599px; x2:1148px; y2:599px; "/>
  920. <select1 id="cmb_calcflagmed2" ref="/root/main/list04med/gridpifhcuncmed/calcflag" appearance="minimal" style="left:113px; top:603px; width:114px; height:19px; ">
  921. <choices>
  922. <item>
  923. <label>이의신청</label>
  924. <value>01</value>
  925. </item>
  926. <item>
  927. <label>심사청구</label>
  928. <value>02</value>
  929. </item>
  930. <item>
  931. <label>정산환수</label>
  932. <value>03</value>
  933. </item>
  934. <item>
  935. <label>정산의뢰</label>
  936. <value>04</value>
  937. </item>
  938. </choices>
  939. </select1>
  940. <caption id="cp_notidd" class="cell_1" style="left:693px; top:601px; width:105px; height:23px; vertical-align:middle; ">통보월</caption>
  941. <line id="line5" class="line_1" style="x1:5px; y1:25px; x2:1186px; y2:25px; "/>
  942. <caption id="cp_amt" class="cell_1" style="left:232px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산금액</caption>
  943. <caption id="caption29" class="cell_1" style="left:232px; top:576px; width:105px; height:23px; vertical-align:middle; ">접수번호</caption>
  944. <input id="ipt_calcamtmed2" ref="/root/main/list04med/gridpifhcuncmed/cadecidifamt" class="input_default" format="(-)#,###" style="left:340px; top:603px; width:118px; height:19px; text-align:right; "/>
  945. <button id="button1" class="btn5_letter2" style="left:1105px; top:550px; width:42px; height:19px; ">
  946. <caption>저장</caption>
  947. <script type="javascript" ev:event="onclick">
  948. <![CDATA[
  949. if(opt_calcdgmed.value == "") {
  950. return false;
  951. } else if(ipt_calcamtmed2.value == "") {
  952. messageBox("정산입금액을","");
  953. model.setFocus("ipt_calcamtmed2");
  954. return false;
  955. } else if(ipt_depoddmed2.value == "") {
  956. messageBox("입금일자를","");
  957. model.setFocus("ipt_depoddmed2");
  958. return false;
  959. } else if(ipt_notimmmed2.value == "") {
  960. messageBox("통보월을","");
  961. model.setFocus("ipt_notimmmed2");
  962. return false;
  963. }else {
  964. //model.setValue("/root/main/list04/gridpifhcunc", grd_chkdocuadjtdetl.getUpdateData());
  965. if(submit("TXPIF30702")) {
  966. submit("TRPIF30702");
  967. }
  968. }
  969. ]]>
  970. </script>
  971. </button>
  972. <caption id="caption30" class="tit_2" style="left:6px; top:556px; width:113px; height:13px; ">개인별 정산내역</caption>
  973. <caption id="caption31" class="cell_1" style="left:5px; top:601px; width:105px; height:23px; vertical-align:middle; ">정산구분</caption>
  974. <input id="ipt_depoddmed2" ref="/root/main/list04med/gridpifhcuncmed/depodd" class="input_default" format="yyyy-mm-dd" style="left:571px; top:603px; width:117px; height:19px; text-align:center; "/>
  975. <caption id="caption32" class="cell_1" style="left:463px; top:576px; width:105px; height:23px; vertical-align:middle; ">명세서일련번호</caption>
  976. <input id="ipt_notimmmed2" ref="/root/main/list04med/gridpifhcuncmed/notimm" class="input_default" format="yyyy-mm" style="left:801px; top:603px; width:117px; height:19px; text-align:center; "/>
  977. <output id="output3" ref="/root/main/list04med/gridpifhcuncmed/docuseqno" class="input_default" appearance="output" style="left:571px; top:578px; width:117px; height:19px; text-align:center; "/>
  978. <output id="opt_calcdgmed" ref="/root/main/list04med/gridpifhcuncmed/calcjudgdg" class="input_default" appearance="output" style="left:113px; top:578px; width:114px; height:19px; text-align:center; "/>
  979. <caption id="caption35" class="cell_1" style="left:923px; top:576px; width:105px; height:23px; vertical-align:middle; ">심사구분</caption>
  980. <line id="line7" class="line_2" style="x1:5px; y1:624px; x2:1143px; y2:624px; "/>
  981. <output id="output7" ref="/root/main/list04med/gridpifhcuncmed/calcbiznm" class="input_default" appearance="output" style="left:340px; top:628px; width:805px; height:19px; "/>
  982. <caption id="caption36" class="cell_1" style="left:232px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무명</caption>
  983. <select1 id="combo1" ref="/root/main/list04med/gridpifhcuncmed/judgflag" disabled="true" appearance="minimal" style="left:1031px; top:578px; width:115px; height:19px; ">
  984. <choices>
  985. <item>
  986. <label>1.재심</label>
  987. <value>1</value>
  988. </item>
  989. <item>
  990. <label>2.삼심</label>
  991. <value>2</value>
  992. </item>
  993. <item>
  994. <label>3.사심</label>
  995. <value>3</value>
  996. </item>
  997. <item>
  998. <label>4.오심</label>
  999. <value>4</value>
  1000. </item>
  1001. </choices>
  1002. </select1>
  1003. <output id="output6" ref="/root/main/list04med/gridpifhcuncmed/calcbizcd" class="input_default" appearance="output" style="left:113px; top:628px; width:114px; height:19px; text-align:center; "/>
  1004. <caption id="caption38" class="cell_1" style="left:5px; top:626px; width:105px; height:23px; vertical-align:middle; ">정산업무코드</caption>
  1005. <input id="ipt_totcalcamtmed" ref="/root/main/list02/totcalcamt/cadecidifamtsum" format="(-)#,###" appearance="input" style="left:900px; top:4px; width:90px; height:19px; text-align:right; "/>
  1006. <caption id="caption40" style="left:818px; top:6px; width:75px; height:15px; ">토탈정산금액</caption>
  1007. <group id="group6" visibility="hidden" style="left:495px; top:160px; width:215px; height:265px; ">
  1008. <!--shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:215px; height:215px; background-color:#d2d2d2; border-color:#ffd799; "/-->
  1009. <caption id="caption41" style="left:15px; top:35px; width:60px; height:30px; ">접수번호 :</caption>
  1010. <caption id="caption42" style="left:15px; top:64px; width:60px; height:30px; ">입금일자 :</caption>
  1011. <button id="button6" class="btn4_letter2" style="left:100px; top:232px; width:56px; height:22px; ">
  1012. <caption>저장</caption>
  1013. <script type="javascript" ev:event="onclick">
  1014. <![CDATA[
  1015. if(ipt_depoddmed.value == "") {
  1016. messageBox("입급일자를","C001");
  1017. model.setFocus("ipt_depoddmed");
  1018. return false;
  1019. }
  1020. if(ipt_notimmmed.value == "") {
  1021. messageBox("통보월을","C001");
  1022. model.setFocus("ipt_notimmmed");
  1023. return false;
  1024. }
  1025. if(ipt_depoamtmed.value == "") {
  1026. messageBox("정산금액을","C001");
  1027. model.setFocus("ipt_depoamtmed");
  1028. return false;
  1029. }
  1030. //model.setValue("/root/send/send01/depocnt", grd_pifhcuncmed.rows-1);
  1031. model.setValue("/root/send/send01/depocnt", getNodesetCount("/root/main/list02/gridpifhcuncmed[check = 'Y']/calcjudgdg"));
  1032. for(var i=1;i<grd_pifhcuncmed.rows;i++) {
  1033. if( model.getValue("/root/main/list02/gridpifhcuncmed["+i+"]/check") != 'Y' ){
  1034. grd_pifhcuncmed.rowStatus(i) = 0;
  1035. continue;
  1036. }
  1037. grd_pifhcuncmed.rowStatus(i) = 2;
  1038. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/calcacptno_mcdp", model.getValue("/root/send/send01/calcacptno"));
  1039. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depodd_mcdp", model.getValue("/root/send/send01/depodd"));
  1040. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/notimm_mcdp", model.getValue("/root/send/send01/notimm"));
  1041. // 정산금액이 - 일 경우 정산금액을 입금액은 0, 환수 예정액에 넣는다. 2010.03.19 추가 (보험에는 이미 구현되어 있었음)
  1042. if(model.getValue("/root/send/send01/depoamt") <= 0) {
  1043. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", 0);
  1044. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/rtnscheamt_mcdp", Math.abs(model.getValue("/root/send/send01/depoamt")));
  1045. } else {
  1046. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", model.getValue("/root/send/send01/depoamt"));
  1047. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/rtnscheamt_mcdp", 0);
  1048. }
  1049. // model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoamt_mcdp", model.getValue("/root/send/send01/depoamt"));
  1050. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depocnt_mcdp", model.getValue("/root/send/send01/depocnt"));
  1051. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/cpcd_mcdp", model.getValue("/root/send/send01/cpcd"));
  1052. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/assocd_mcdp", model.getValue("/root/send/send01/assocd"));
  1053. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/bankcd_mcdp", model.getValue("/root/send/send01/bankcd"));
  1054. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/acntcd_mcdp", model.getValue("/root/send/send01/acntcd"));
  1055. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/oprcpcalcyn_mcdp", model.getValue("/root/send/send01/oprcpcalcyn"));
  1056. //20110-04-22 추가 - 정산입금액에 외래,입원 구분위해 추가
  1057. //model.makeNode("/root/main/list02/gridpifhcuncmed["+i+"]/depooutamt_mcdp");
  1058. //model.makeNode("/root/main/list02/gridpifhcuncmed["+i+"]/depoinamt_mcdp");
  1059. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depooutamt_mcdp", model.getValue("/root/send/send01/depooutamt"));
  1060. model.setValue("/root/main/list02/gridpifhcuncmed["+i+"]/depoinamt_mcdp", model.getValue("/root/send/send01/depoinamt"));
  1061. }
  1062. model.refresh();
  1063. //grd_pifhcuncmed.rebuild();
  1064. model.setValue("/root/main/list05med/gridpifhcunc", grd_pifhcuncmed.getUpdateData());
  1065. if(submit("TXPIF30704")) {
  1066. btn_srch.dispatch("DOMActivate");
  1067. //submit("TRPIF30702");
  1068. }
  1069. group6.visible = false;
  1070. ]]>
  1071. </script>
  1072. </button>
  1073. <button id="button7" class="btn4_letter2" style="left:157px; top:232px; width:56px; height:22px; ">
  1074. <caption>닫기</caption>
  1075. <script type="javascript" ev:event="DOMActivate">
  1076. <![CDATA[
  1077. group6.visible = false;
  1078. ]]>
  1079. </script>
  1080. </button>
  1081. <caption id="caption43" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">일괄처리</caption>
  1082. <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:5px; top:20px; width:205px; height:205px; "/>
  1083. <caption id="caption44" style="left:15px; top:92px; width:60px; height:30px; ">통 보 월 :</caption>
  1084. <caption id="caption45" style="left:15px; top:119px; width:60px; height:30px; ">정산금액 :</caption>
  1085. <input id="ipt_depoddmed" ref="/root/send/send01/depodd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:68px; width:110px; height:19px; text-align:center; ">
  1086. <script type="javascript" ev:event="xforms-value-changed">
  1087. <![CDATA[
  1088. var depodd = model.getValue("/root/send/send01/depodd");
  1089. if( depodd.length == 8 ){
  1090. model.setValue("/root/send/send01/notimm", depodd.substr(0,6));
  1091. ipt_notimmmed.refresh();
  1092. }
  1093. ]]>
  1094. </script>
  1095. </input>
  1096. <input id="ipt_notimmmed" ref="/root/send/send01/notimm" inputtype="date" format="yyyy-mm" style="left:85px; top:95px; width:110px; height:19px; text-align:center; "/>
  1097. <input id="ipt_depoamtmed" ref="/root/send/send01/depoamt" maxlength="14" format="(-)#,###" style="left:85px; top:124px; width:110px; height:19px; text-align:right; ">
  1098. <script type="javascript" ev:event="xforms-value-changed">
  1099. <![CDATA[
  1100. var amt = model.getValue("/root/send/send01/depoamt");
  1101. model.setValue("/root/send/send01/depooutamt", amt); //외래
  1102. model.setValue("/root/send/send01/depoinamt", 0); //입원
  1103. input3.refresh();
  1104. input4.refresh();
  1105. ]]>
  1106. </script>
  1107. <script type="javascript" ev:event="onkeyup">
  1108. <![CDATA[
  1109. if(event.keyCode == "13") {
  1110. // setInputNodeCurText();
  1111. //
  1112. // var amt = model.getValue("/root/send/send01/depoamt");
  1113. // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  1114. //
  1115. // model.setValue("/root/send/send01/depooutamt", outamt); //외래
  1116. // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  1117. //
  1118. // input3.refresh();
  1119. // input4.refresh();
  1120. model.setFocus("input3");
  1121. }
  1122. ]]>
  1123. </script>
  1124. </input>
  1125. <output id="opt_calcacptnomed" ref="/root/send/send01/calcacptno" appearance="output" style="left:85px; top:40px; width:110px; height:20px; ">caption33</output>
  1126. <caption id="caption28" style="left:15px; top:149px; width:61px; height:30px; ">정산외래 :</caption>
  1127. <input id="input3" ref="/root/send/send01/depooutamt" maxlength="14" format="(-)#,###" style="left:85px; top:154px; width:110px; height:19px; text-align:right; ">
  1128. <script type="javascript" ev:event="onkeyup">
  1129. <![CDATA[
  1130. if(event.keyCode == "13") {
  1131. // setInputNodeCurText();
  1132. //
  1133. // var amt = model.getValue("/root/send/send01/depoamt");
  1134. // var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  1135. //
  1136. // model.setValue("/root/send/send01/depooutamt", outamt); //외래
  1137. // model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  1138. //
  1139. // input3.refresh();
  1140. // input4.refresh();
  1141. model.setFocus("button6");
  1142. }
  1143. ]]>
  1144. </script>
  1145. <script type="javascript" ev:event="xforms-value-changed">
  1146. <![CDATA[
  1147. var amt = model.getValue("/root/send/send01/depoamt");
  1148. var outamt = model.getValue("/root/send/send01/depooutamt").replace(',', '');
  1149. model.setValue("/root/send/send01/depooutamt", outamt); //외래
  1150. model.setValue("/root/send/send01/depoinamt", parseInt(amt) - parseInt(outamt)); //입원
  1151. input3.refresh();
  1152. input4.refresh();
  1153. ]]>
  1154. </script>
  1155. </input>
  1156. <input id="input4" ref="/root/send/send01/depoinamt" maxlength="14" format="(-)#,###" style="left:85px; top:184px; width:110px; height:19px; text-align:right; ">
  1157. <script type="javascript" ev:event="onkeyup">
  1158. <![CDATA[
  1159. if(event.keyCode == "13") {
  1160. // setInputNodeCurText();
  1161. //
  1162. // var amt = model.getValue("/root/send/send01/depoamt");
  1163. // var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
  1164. //
  1165. // model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
  1166. // model.setValue("/root/send/send01/depoinamt", inamt); //입원
  1167. //
  1168. // input3.refresh();
  1169. // input4.refresh();
  1170. model.setFocus("button6");
  1171. }
  1172. ]]>
  1173. </script>
  1174. <script type="javascript" ev:event="xforms-value-changed">
  1175. <![CDATA[
  1176. var amt = model.getValue("/root/send/send01/depoamt");
  1177. var inamt = model.getValue("/root/send/send01/depoinamt").replace(',', '');
  1178. model.setValue("/root/send/send01/depooutamt", parseInt(amt) - parseInt(inamt)); //외래
  1179. model.setValue("/root/send/send01/depoinamt", inamt); //입원
  1180. input3.refresh();
  1181. input4.refresh();
  1182. ]]>
  1183. </script>
  1184. </input>
  1185. <caption id="caption48" style="left:15px; top:179px; width:60px; height:30px; ">정산입원 :</caption>
  1186. </group>
  1187. <button id="button8" class="btn2_letter4" style="left:1121px; top:4px; width:64px; height:19px; ">
  1188. <caption>일괄처리</caption>
  1189. <script type="javascript" ev:event="onclick">
  1190. <![CDATA[
  1191. var totalamt = 0;
  1192. var totaloutamt = 0;
  1193. var totalinamt = 0;
  1194. ipt_depoddmed.value = "";
  1195. ipt_notimmmed.value = "";
  1196. ipt_depoamtmed.value = "";
  1197. for(var i=1; i<grd_pifhcuncmed.rows; i++) {
  1198. if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check") == 'Y' ){
  1199. //기 입금내역인지 체크
  1200. if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/depodd") != '' ) {
  1201. messageBox("이미 입금등록이","I002");
  1202. return false;
  1203. }
  1204. //토탈입금내역 확인
  1205. if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/ioflag") == 'I' ){
  1206. totalinamt = parseInt(totalinamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
  1207. }else if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/ioflag") == 'O' ){
  1208. totaloutamt = parseInt(totaloutamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
  1209. }
  1210. totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
  1211. }
  1212. }
  1213. if(chk_oprcpcalcyn.value == "Y") {
  1214. opt_calcacptnomed.value = "8888888";
  1215. ipt_depoamtmed.value = ipt_totcalcamtmed.value;
  1216. // model.setValue("/root/send/send03/calcdg", ipt_calcdg.value);
  1217. // model.setValue("/root/send/send03/notidd", ipt_notidd.value);
  1218. // model.setValue("/root/send/send03/acptno", cmb_acptno.value);
  1219. model.setValue("/root/send/send01/bankcd", BANKCD);
  1220. model.setValue("/root/send/send01/acntcd", BANKACOUNT);
  1221. } else {
  1222. opt_calcacptnomed.value = "9999999";
  1223. ipt_depoamtmed.value = ipt_totcalcamtmed.value;
  1224. // model.setValue("/root/send/send03/calcdg", ipt_calcdg.value);
  1225. // model.setValue("/root/send/send03/notidd", ipt_notidd.value);
  1226. // model.setValue("/root/send/send03/acptno", cmb_acptno.value);
  1227. model.setValue("/root/send/send01/bankcd", BANKCD);
  1228. model.setValue("/root/send/send01/acntcd", BANKACOUNT);
  1229. }
  1230. model.setValue("/root/send/send01/depoamt", totalamt);
  1231. model.setValue("/root/send/send01/depooutamt", totaloutamt);
  1232. model.setValue("/root/send/send01/depoinamt", totalinamt);
  1233. group6.visible = true;
  1234. model.refresh();
  1235. model.setFocus("ipt_depoddmed");
  1236. ]]>
  1237. </script>
  1238. </button>
  1239. <output id="output8" ref="/root/main/list04med/gridpifhcuncmed/seqno" visibility="hidden" style="left:1030px; top:602px; width:115px; height:19px; "/>
  1240. <caption id="caption46" style="left:120px; top:556px; width:465px; height:15px; color:#ff6600; ">(개인정산내역에 대한 정산구분,정산금액,입금일자,통보월 수정만 이곳에서 하십시오)</caption>
  1241. <button id="button2" class="btn2_letter4" style="left:996px; top:4px; width:64px; height:19px; ">
  1242. <caption>엑셀저장</caption>
  1243. <script type="javascript" ev:event="DOMActivate">
  1244. <![CDATA[
  1245. var fileName = window.fileDialog("save", ",", false, "정산차수별입금", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1246. if (fileName != "") { grd_pifhcuncmed.saveExcel(fileName, "SheetName", true, true, "", "", ""); } // 20100825 추가
  1247. ]]>
  1248. </script>
  1249. </button>
  1250. <button id="button11" class="btn2_letter2" style="left:771px; top:4px; width:42px; height:19px; ">
  1251. <caption>출력</caption>
  1252. <script type="javascript" ev:event="DOMActivate">
  1253. <![CDATA[
  1254. exeReportPreview("RPPIF30700", "XMLSTR", "","", "false","","","","","false");
  1255. ]]>
  1256. </script>
  1257. </button>
  1258. </case>
  1259. </switch>
  1260. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  1261. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1262. <button id="btn_srch" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  1263. <caption>조회</caption>
  1264. <script type="javascript" ev:event="DOMActivate">
  1265. <![CDATA[
  1266. if(ipt_calcdg.value== "" || ipt_calcdg.value== null) {
  1267. messageBox("정산차수를","C001");
  1268. model.setFocus("ipt_calcdg");
  1269. return false;
  1270. }
  1271. // model.setvalue("/root/send/send01/clamno", model.getvalue("/root/list00/u0001[1]/clamno"));
  1272. model.resetInstanceNode("/root/main/list01");
  1273. // model.resetInstanceNode("/root/main/list02");
  1274. var totalamt = 0;
  1275. switch (rdo_insukind.value) {
  1276. case "11" :
  1277. submit("TRPIF30701");
  1278. for(var i=1; i<=getNodesetCount("/root/main/list01/gridpifhcunc/depodd"); i++) {
  1279. if( model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/depodd") != '' ){
  1280. grd_pifhcunc.isreadonly( i, grd_pifhcunc.colRef("check") ) = true;
  1281. model.setValue("/root/main/list01/gridpifhcunc[" + i + "]/check", 'N');
  1282. //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  1283. }else{
  1284. grd_pifhcunc.isreadonly( i, grd_pifhcunc.colRef("check") ) = false;
  1285. model.setValue("/root/main/list01/gridpifhcunc[" + i + "]/check", 'Y');
  1286. //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  1287. }
  1288. totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  1289. }
  1290. model.makeNode("/root/main/list01/totcalcamt/cadecidifamtsum");
  1291. model.setValue("/root/main/list01/totcalcamt/cadecidifamtsum", totalamt);
  1292. break ;
  1293. case "21":
  1294. submit("TRPIF30702");
  1295. model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
  1296. for(var i=1; i<=getNodesetCount("/root/main/list02/gridpifhcuncmed/depodd"); i++) {
  1297. if( model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/depodd") != '' ){
  1298. grd_pifhcuncmed.isreadonly( i, grd_pifhcuncmed.colRef("check") ) = true;
  1299. model.setValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check", 'N');
  1300. //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list01/gridpifhcunc[" + i + "]/cadecidifamt"));
  1301. }else{
  1302. grd_pifhcuncmed.isreadonly( i, grd_pifhcuncmed.colRef("check") ) = false;
  1303. model.setValue("/root/main/list02/gridpifhcuncmed[" + i + "]/check", 'Y');
  1304. //totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
  1305. }
  1306. totalamt = parseInt(totalamt) + parseInt(model.getValue("/root/main/list02/gridpifhcuncmed[" + i + "]/cadecidifamt"));
  1307. }
  1308. model.makeNode("/root/main/list02/totcalcamt/cadecidifamtsum");
  1309. model.setValue("/root/main/list02/totcalcamt/cadecidifamtsum", totalamt);
  1310. break ;
  1311. case "31":
  1312. submit("TRPIF30703");
  1313. }
  1314. model.refresh();
  1315. // btn_acptno.selected = true;
  1316. ]]>
  1317. </script>
  1318. </button>
  1319. <line id="line43" style="x1:1115px; y1:7px; x2:1115px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1320. <select id="chk_oprcpcalcyn" ref="/root/send/send01/oprcpcalcyn" class="chekbox_search" overflow="visible" appearance="full" style="left:349px; top:10px; width:67px; height:20px; border-style:none; ">
  1321. <choices>
  1322. <item>
  1323. <label>원외정산</label>
  1324. <value>Y</value>
  1325. </item>
  1326. </choices>
  1327. <script type="javascript" ev:event="xforms-value-changed">
  1328. <![CDATA[
  1329. if(chk_oprcpcalcyn.value == "Y") {
  1330. model.removeNodeset("/root/main/list00/U0001");
  1331. model.setValue("/root/send/send01/calcacptno","8888888");
  1332. // model.setValue("/root/send/send02/oprcpcalcyn", chk_oprcpcalcyn.value);
  1333. ipt_notidd.value = "";
  1334. model.setFocus("ipt_calcdg");
  1335. if(rdo_insukind.value == "21") {
  1336. model.removenode("/root/init/Cpcd");
  1337. model.removenode("/root/init/Assocd");
  1338. cmb_cpcd.value = "";
  1339. cmb_assocd.value = "";
  1340. }
  1341. model.refresh();
  1342. cmb_acptno.value = "";
  1343. } else {
  1344. model.removeNodeset("/root/main/list00/U0001");
  1345. model.setValue("/root/send/send01/calcacptno","9999999");
  1346. // model.setValue("/root/send/send02/oprcpcalcyn", chk_oprcpcalcyn.value);
  1347. ipt_notidd.value = "";
  1348. cmb_acptno.value = "";
  1349. if(rdo_insukind.value == "21") {
  1350. model.removenode("/root/init/Cpcd");
  1351. model.removenode("/root/init/Assocd");
  1352. cmb_cpcd.value = "";
  1353. cmb_assocd.value = "";
  1354. }
  1355. model.refresh();
  1356. model.setFocus("ipt_calcdg");
  1357. }
  1358. ]]>
  1359. </script>
  1360. </select>
  1361. <caption id="caption17" class="search_name" style="left:11px; top:9px; width:90px; height:17px; ">보험유형 :</caption>
  1362. <caption id="caption18" class="search_name" style="left:769px; top:9px; width:79px; height:17px; ">명일련 :</caption>
  1363. <caption id="caption19" class="search_name" style="left:422px; top:9px; width:88px; height:17px; ">통보일자 :</caption>
  1364. <select1 id="rdo_insukind" ref="/root/send/send01/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:99px; top:10px; width:86px; height:14px; border-style:none; ">
  1365. <choices>
  1366. <item>
  1367. <label>보험</label>
  1368. <value>11</value>
  1369. </item>
  1370. <item>
  1371. <label>보호</label>
  1372. <value>21</value>
  1373. </item>
  1374. </choices>
  1375. <script type="javascript" ev:event="xforms-select">
  1376. <![CDATA[
  1377. switch (rdo_insukind.value) {
  1378. case "11" :
  1379. caption15.visible = false;
  1380. cmb_cpcd.visible = false;
  1381. cmb_assocd.visible = false;
  1382. model.removeNodeset("/root/main/list00/U0001");
  1383. model.setValue("/root/send/send01/docuseqno","");
  1384. btn_insu.selected = true ;
  1385. model.toggle("case1") ;
  1386. model.setFocus("ipt_calcdg");
  1387. model.refresh();
  1388. break ;
  1389. case "21":
  1390. caption15.visible = true;
  1391. cmb_cpcd.visible = true;
  1392. cmb_assocd.visible = true;
  1393. model.removeNodeset("/root/main/list00/U0001");
  1394. model.setValue("/root/send/send01/docuseqno","");
  1395. model.setValue("/root/send/send01/cpcd","");
  1396. model.setValue("/root/send/send01/assocd","");
  1397. btn_proc.selected = true ;
  1398. model.toggle("case2") ;
  1399. model.setFocus("ipt_calcdg");
  1400. model.refresh();
  1401. break ;
  1402. case "31":
  1403. btn_handi.selected = true ;
  1404. model.toggle("case3") ;
  1405. }
  1406. model.setFocus("ipt_calcdg");
  1407. ]]>
  1408. </script>
  1409. </select1>
  1410. <input id="ipt_docuseqno" ref="/root/send/send01/docuseqno" class="input_search" style="left:843px; top:8px; width:50px; height:19px; ">
  1411. <script type="javascript" ev:event="onkeyup">
  1412. <![CDATA[
  1413. if(event.keyCode == "13") {
  1414. setInputNodeCurText();
  1415. model.setFocus("btn_srch");
  1416. }
  1417. ]]>
  1418. </script>
  1419. </input>
  1420. <input id="ipt_notidd" ref="/root/main/list00/U0001/notidd" class="input_search" inputtype="date" style="left:509px; top:8px; width:86px; height:19px; "/>
  1421. <caption id="caption20" class="search_name" style="left:602px; top:9px; width:86px; height:17px; ">접수번호 :</caption>
  1422. <input id="ipt_calcdg" ref="/root/send/send01/calcdg" class="input_s_essential" style="left:281px; top:8px; width:65px; height:19px; ">
  1423. <script type="javascript" ev:event="onkeyup">
  1424. <![CDATA[
  1425. if(event.keyCode == "13") {
  1426. setInputNodeCurText();
  1427. if(ipt_calcdg.value != "" || ipt_calcdg.value != null) {
  1428. model.resetInstanceNode("/root/main/list00/U0001");
  1429. model.setValue("/root/send/send01/acptno","");
  1430. ipt_notidd.value = "";
  1431. cmb_acptno.value = "";
  1432. ipt_docuseqno.value = "";
  1433. if(rdo_insukind.value == "21") {
  1434. model.removenode("/root/init/Cpcd");
  1435. model.removenode("/root/init/Assocd");
  1436. cmb_cpcd.value = "";
  1437. cmb_assocd.value = "";
  1438. }
  1439. model.refresh();
  1440. submit("TRPIF30700");
  1441. model.setValue("/root/send/send01/notidd", model.getValue("/root/main/list00/U0001[1]/notidd"));
  1442. if(cmb_acptno.length == 1) {
  1443. cmb_acptno.select(0);
  1444. model.setFocus("cmb_acptno");
  1445. } else if(cmb_acptno.length > 1) {
  1446. addComboItem( "cmb_acptno" , "--선택--","");
  1447. model.setFocus("cmb_acptno");
  1448. }
  1449. // 보호는 시도코드 까지 조회를 한다. 2010.03.22 접수번호 없이 시도 선택하게 해 달라는 요청.
  1450. // 일괄처리시 접수번호는 그리드의 각 로우의 것을 가지고 가므로 문제는 없다.
  1451. if(rdo_insukind.value == "21") {
  1452. model.removenode("/root/init/Cpcd");
  1453. model.removenode("/root/init/Assocd");
  1454. ipt_docuseqno.value = "";
  1455. cmb_cpcd.value = "";
  1456. cmb_assocd.value = "";
  1457. model.refresh();
  1458. submit("TRPIF30704"); // 시도코드 조회
  1459. }
  1460. }
  1461. model.refresh();
  1462. }
  1463. ]]>
  1464. </script>
  1465. </input>
  1466. <caption id="caption14" class="search_name" style="left:194px; top:9px; width:103px; height:17px; ">정산차수 :</caption>
  1467. <select1 id="cmb_acptno" ref="/root/send/send01/acptno" class="combo_search" appearance="minimal" style="left:688px; top:8px; width:74px; height:19px; ">
  1468. <choices>
  1469. <itemset nodeset="/root/main/list00/U0001">
  1470. <label ref="acptno"/>
  1471. <value ref="acptno"/>
  1472. </itemset>
  1473. </choices>
  1474. <script type="javascript" ev:event="xforms-select">
  1475. <![CDATA[
  1476. if(rdo_insukind.value == "11") {
  1477. submit("TRPIF30701"); // 보험유형이 보험이면 정산내역 조회
  1478. } else {
  1479. model.removenode("/root/init/Cpcd");
  1480. model.removenode("/root/init/Assocd");
  1481. ipt_docuseqno.value = "";
  1482. cmb_cpcd.value = "";
  1483. cmb_assocd.value = "";
  1484. model.refresh();
  1485. submit("TRPIF30704"); // 보험유형이 보호이면 시도코드 조회
  1486. }
  1487. ]]>
  1488. </script>
  1489. </select1>
  1490. <select1 id="cmb_cpcd" ref="/root/send/send01/cpcd" class="combo_search" appearance="minimal" style="left:961px; top:8px; width:59px; height:19px; ">
  1491. <choices>
  1492. <itemset nodeset="/root/init/Cpcd/cpcdlist">
  1493. <label ref="cdnm"/>
  1494. <value ref="cdid"/>
  1495. </itemset>
  1496. </choices>
  1497. <script type="javascript" ev:event="xforms-select">
  1498. <![CDATA[
  1499. model.setValue("/root/send/send01/assocd","");
  1500. model.removenode("/root/init/Assocd");
  1501. model.refresh();
  1502. submit("TRPIF30705"); // 시군구코드 조회
  1503. submit("TRPIF30702"); // 시도에 해당하는 정산내역 조회
  1504. model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
  1505. model.refresh();
  1506. ]]>
  1507. </script>
  1508. </select1>
  1509. <caption id="caption15" class="search_name" style="left:900px; top:9px; width:61px; height:17px; ">시도 :</caption>
  1510. <select1 id="cmb_assocd" ref="/root/send/send01/assocd" class="combo_search" appearance="minimal" style="left:1022px; top:8px; width:83px; height:19px; ">
  1511. <choices>
  1512. <itemset nodeset="/root/init/Assocd/assocdlist">
  1513. <label ref="cdnm"/>
  1514. <value ref="cdid"/>
  1515. </itemset>
  1516. </choices>
  1517. <script type="javascript" ev:event="xforms-select">
  1518. <![CDATA[
  1519. submit("TRPIF30702"); // 시군구에 해당하는 정산내역 조회
  1520. model.resetInstanceNode("/root/main/list04med/gridpifhcuncmed");
  1521. model.refresh();
  1522. ]]>
  1523. </script>
  1524. </select1>
  1525. </group>
  1526. <button id="btn_proc" class="btn_sw" group="tab" style="left:110px; top:51px; width:110px; height:22px; ">
  1527. <caption>보호</caption>
  1528. <toggle case="case2" ev:event="onclick"/>
  1529. </button>
  1530. <button id="btn_insu" class="btn_sw" group="tab" selected="true" style="left:0px; top:51px; width:110px; height:22px; ">
  1531. <caption>보험</caption>
  1532. <toggle case="case1" ev:event="onclick"/>
  1533. </button>
  1534. <button id="button5" class="btn2_letter3" style="left:1065px; top:77px; width:53px; height:19px; ">
  1535. <caption>초기화</caption>
  1536. <script type="javascript" ev:event="onclick">
  1537. <![CDATA[
  1538. model.resetInstanceNode("/root/main/list00/U0001");
  1539. model.setValue("/root/send/send01/acptno","");
  1540. model.removenode("/root/init/Cpcd");
  1541. model.removenode("/root/init/Assocd");
  1542. model.resetInstanceNode("/root/send/send01");
  1543. model.removenode("/root/main/list01");
  1544. model.removenode("/root/main/list02");
  1545. btn_insu.selected = true;
  1546. model.toggle("case1");
  1547. model.refresh();
  1548. rdo_insukind.value = "11";
  1549. ]]>
  1550. </script>
  1551. </button>
  1552. </group>
  1553. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; "/>
  1554. </xhtml:body>
  1555. </xhtml:html>