SMPIE05500_자보정산내역서(N040)조회.xrw 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244
  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>자보정산내역서(N040) 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <termflag>1</termflag>
  11. <fromterm/>
  12. <toterm/>
  13. <chosflag>A</chosflag>
  14. <acptno/>
  15. <clamno/>
  16. <ordfildcd/>
  17. <sendn401>
  18. <calcjudgdg/>
  19. <calcnotidd/>
  20. <acptno/>
  21. <clamseqno/>
  22. <instcd/>
  23. <clamno/>
  24. <judgdg/>
  25. </sendn401>
  26. <sendn403>
  27. <calcyearseqno/>
  28. <calcseqno/>
  29. <docuseqno/>
  30. <calcjudgdg/>
  31. <calcnotidd/>
  32. <acptno/>
  33. <clamseqno/>
  34. <instcd/>
  35. </sendn403>
  36. <send_clamno>
  37. <acptno/>
  38. </send_clamno>
  39. <summary/>
  40. <rem>
  41. <textno/>
  42. </rem>
  43. <send04>
  44. <calcjudgdg/>
  45. <acptno/>
  46. <insukind/>
  47. </send04>
  48. <clamdgfrom/>
  49. <clamdgto/>
  50. <clamflag/>
  51. <clamym/>
  52. </send>
  53. <main>
  54. <list01>
  55. <gridpiehn401>
  56. <calcjudgdg/>
  57. <calcnotidd/>
  58. <clamno/>
  59. <ioflag/>
  60. <ordfildcd/>
  61. <acptno/>
  62. <setno/>
  63. <judgdg/>
  64. <ordym/>
  65. <clamflag/>
  66. <judgflag/>
  67. <cadecidifamtsum/>
  68. <cajudgdecircogcntsum/>
  69. <cajrsltrcogamtsum/>
  70. <docuno/>
  71. <verflag/>
  72. <clamseqno/>
  73. <corpmark/>
  74. <suppcd/>
  75. <instcd/>
  76. <calcyearseqno/>
  77. <flag/>
  78. <jrdruglimitdiffamtsum/>
  79. </gridpiehn401>
  80. </list01>
  81. <list02>
  82. <gridpiehn402_1>
  83. <caownbrtnamtsum/>
  84. <caownaddbamtsum/>
  85. <camcstotamtsum/>
  86. <caownbamtsum/>
  87. <casubtamtsum/>
  88. <caownbmaxexamtsum/>
  89. <caownbmaxdifamtsum/>
  90. <cainsubamtsum/>
  91. <cajudgdeciamtsum/>
  92. <catrudirecpamtsum/>
  93. <cacntsum/>
  94. <cadecidifamtsum/>
  95. <cajrsltrcogamtsum/>
  96. <cajudgdecircogcntsum/>
  97. <jrownbrtnamtsum/>
  98. <jrownaddbamtsum/>
  99. <jrmcstotamtsum/>
  100. <jrownbamtsum/>
  101. <jrsubtamtsum/>
  102. <jrownbmaxexamtsum/>
  103. <jrownbmaxdifamtsum/>
  104. <jrinsubamtsum/>
  105. <jrjudgdecitamtsum/>
  106. <jrtrudirecpamtsum/>
  107. <jrcntsum/>
  108. <jrdruglimitdiffamtsum/>
  109. <cadruglimitdiffamtsum/>
  110. <jrpatmcstotamtsum/>
  111. <capatmcstotamtsum/>
  112. <jrdruglimitdiffamtsum/>
  113. </gridpiehn402_1>
  114. <gridpiehn402_4>
  115. <calcyearseqno/>
  116. <judgflag/>
  117. <calcchrgdeptnm/>
  118. <calcchrgjonm/>
  119. <calcchrgnm/>
  120. <calcchrgno/>
  121. <calcbizcd/>
  122. <calcbiznm/>
  123. <calcbiztel/>
  124. </gridpiehn402_4>
  125. <gridpiehn403>
  126. <docuseqno/>
  127. <pid/>
  128. <patnm/>
  129. <ordtype/>
  130. <flag/>
  131. <cadecidifamt/>
  132. <jradjtsum1/>
  133. <jradjtsum2/>
  134. <diagcd/>
  135. <jrmtrtopendd/>
  136. <docuseqnorem/>
  137. <fixrateflag/>
  138. <bizplcemark/>
  139. <certno/>
  140. <subscrnm/>
  141. <calcyearseqno/>
  142. <calcseqno/>
  143. <calcjudgdg/>
  144. <calcnotidd/>
  145. <acptno/>
  146. <clamseqno/>
  147. <instcd/>
  148. <orderyn/>
  149. </gridpiehn403>
  150. </list02>
  151. <list03>
  152. <gridpiehn402_2>
  153. <caownbrtnamt/>
  154. <caownaddbamt/>
  155. <camcstotamt/>
  156. <caownbamt/>
  157. <cahandicaprfund/>
  158. <caownbmaxexamt/>
  159. <caownbmaxdifamt/>
  160. <cainsubamt/>
  161. <cadeciamt/>
  162. <catrudirecpamt/>
  163. <cadecidifamt/>
  164. <docuseqnorem/>
  165. <jrownbrtnamt/>
  166. <jrownaddbamt/>
  167. <jrmcstotamt/>
  168. <jrownbamt/>
  169. <jrhandicaprfund/>
  170. <jrownbmaxexamt/>
  171. <jrownbmaxdifamt/>
  172. <jrinsubamt/>
  173. <jrjudgdeciamt/>
  174. <jrtrudirecpamt/>
  175. <jrdruglimitdiffamtsum/>
  176. <cadruglimitdiffamtsum/>
  177. <jrpatmcstotamtsum/>
  178. <capatmcstotamtsum/>
  179. <jrblwownbrtnamt>0</jrblwownbrtnamt>
  180. <jrblwownaddbamt>0</jrblwownaddbamt>
  181. <jrblwtotownamt>0</jrblwtotownamt>
  182. <jrblwownbamt>0</jrblwownbamt>
  183. <jrblwinsuclamamt>0</jrblwinsuclamamt>
  184. <cablwownbrtnamt>0</cablwownbrtnamt>
  185. <cablwownaddbamt>0</cablwownaddbamt>
  186. <cablwtotownamt>0</cablwtotownamt>
  187. <cablwownbamt>0</cablwownbamt>
  188. <cablwinsuclamamt>0</cablwinsuclamamt>
  189. <jrstfrtnamt>0</jrstfrtnamt>
  190. <jrstfaddbamt>0</jrstfaddbamt>
  191. <castfrtnamt>0</castfrtnamt>
  192. <castfaddbamt>0</castfaddbamt>
  193. </gridpiehn402_2>
  194. <gridpiehn402_3>
  195. <caspclmark/>
  196. <cafstmedfee/>
  197. <canxtmedfee/>
  198. <cafstmedtims/>
  199. <cafstmedaddtims/>
  200. <canxtmedtims/>
  201. <canxtmedaddtims/>
  202. <caindayno/>
  203. <camedcaredayno/>
  204. <caprcptims/>
  205. <jrspclmark/>
  206. <jrfstmedfee/>
  207. <jrnxtmedfee/>
  208. <jrfstmedtims/>
  209. <jrfstmedaddtims/>
  210. <jrnxtmedtims/>
  211. <jrnxtmedaddtims/>
  212. <jrindayno/>
  213. <jrmedcaredayno/>
  214. <jrprcptims/>
  215. </gridpiehn402_3>
  216. <gridpiehn404>
  217. <lnno/>
  218. <caitem/>
  219. <caadjtresn/>
  220. <camatractflag/>
  221. <cacd/>
  222. <cahngnm/>
  223. <caunitcost/>
  224. <cadayqtyrt/>
  225. <catotqtyrt/>
  226. <carcogamt/>
  227. <caadjtamt/>
  228. <cajrsltrem/>
  229. <jritem/>
  230. <jradjtresn/>
  231. <jrmatractflag/>
  232. <jrcd/>
  233. <jrhngnm/>
  234. <jrunitcost/>
  235. <jrdayqtyrt/>
  236. <jrtotqtyrt/>
  237. <jrrcogamt/>
  238. <jradjtamt/>
  239. <jrrelbase/>
  240. <jrdruglimitdiffamtrcogsum/>
  241. <jrdruglimitdiffamtadjtsum/>
  242. <jrlimitdiffamt/>
  243. <cadruglimitdiffamtrcogsum/>
  244. <cadruglimitdiffamtadjtsum/>
  245. <calimitdiffamt/>
  246. </gridpiehn404>
  247. <gridpiehn405>
  248. <lnno/>
  249. <tretcd/>
  250. <prcpflag/>
  251. <trustinstmark/>
  252. <trudirecpamt/>
  253. <tretcd/>
  254. <rem/>
  255. </gridpiehn405>
  256. </list03>
  257. </main>
  258. <init>
  259. <P0235list>
  260. <P0235>
  261. <cdnm>
  262. </cdnm>
  263. <cdid/>
  264. </P0235>
  265. </P0235list>
  266. <P0295list>
  267. <P0295>
  268. <cdid/>
  269. <cdnm/>
  270. </P0295>
  271. </P0295list>
  272. <clamdgfrom>
  273. <clamdglist>
  274. <clamdgnm/>
  275. <clamdgcd/>
  276. </clamdglist>
  277. </clamdgfrom>
  278. <clamdgto>
  279. <clamdglist>
  280. <clamdgnm/>
  281. <clamdgcd/>
  282. </clamdglist>
  283. </clamdgto>
  284. <P0155list>
  285. <P0155>
  286. <cdid/>
  287. <cdnm/>
  288. </P0155>
  289. </P0155list>
  290. </init>
  291. <popupdata>
  292. <popupmenu>
  293. <grd_n401h>
  294. <item>
  295. <name>정산차수별입금등록관리</name>
  296. <func>fGridChkCalcjudgdg</func>
  297. </item>
  298. <item>
  299. <name>-</name>
  300. <func/>
  301. </item>
  302. <item>
  303. <name>요양급여정산 삭제</name>
  304. <func>fDeleteN040</func>
  305. </item>
  306. </grd_n401h>
  307. </popupmenu>
  308. </popupdata>
  309. <hidden>
  310. <list01>
  311. <claminfo>
  312. </claminfo>
  313. <ordfildinfo/>
  314. </list01>
  315. </hidden>
  316. </root>
  317. </instance>
  318. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  319. <submission id="TRPIE05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  320. <submission id="TRPIE05502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendn401" resultref="/root/main/list02"/>
  321. <submission id="TRPIE05503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendn403" resultref="/root/main/list03"/>
  322. <submission id="TRPIE01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamno" resultref="/root/hidden/list01"/>
  323. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/init/clamdg"/>
  324. </model>
  325. <script type="javascript" ev:event="xforms-ready">
  326. <![CDATA[
  327. // 공통코드 Load작업
  328. CommCode_Load();
  329. ]]>
  330. </script>
  331. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  332. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  333. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  334. <script type="javascript">
  335. <![CDATA[
  336. function Node_Init() {
  337. // NodeSet 초기화
  338. model.resetInstanceNode("/root/main/list01");
  339. model.resetInstanceNode("/root/main/list02");
  340. model.resetInstanceNode("/root/main/list03");
  341. model.refresh();
  342. }
  343. // 공통코드 Load작업
  344. function CommCode_Load() {
  345. zbcfGetCodeList(new Array("P0235", "P0155"), new Array( "/root/init/P0235list", "/root/init/P0155list"));
  346. // 다른화면에서 호출 (SPPIE00740_정산요약보기)
  347. var acptno = model.getValue("/root/send/summary/acptno");
  348. if (acptno != "") {
  349. ipt_fromterm.disabled = true;
  350. ipt_toterm.disabled = true;
  351. model.setValue("/root/send/termflag",model.getValue("/root/send/summary/termflag"));
  352. model.setValue("/root/send/fromterm",model.getValue("/root/send/summary/fromterm"));
  353. model.setValue("/root/send/toterm",model.getValue("/root/send/summary/toterm"));
  354. model.setValue("/root/send/acptno",model.getValue("/root/send/summary/acptno"));
  355. model.setValue("/root/send/clamno",model.getValue("/root/send/summary/clamno"));
  356. submit("TRPIE05501");
  357. }
  358. ipt_fromterm.attribute("format") = "";
  359. ipt_toterm.attribute("format") = "";
  360. ipt_fromterm.attribute("maxlength") = 8;
  361. ipt_toterm.attribute("maxlength") = 8;
  362. cmb_clamdgfrom.value = "";
  363. cmb_clamdgto.value = "";
  364. cmb_clamdgfrom.disabled = true;
  365. cmb_clamdgto.disabled = true;
  366. model.setFocus("ipt_fromterm");
  367. model.refresh();
  368. }
  369. function search() {
  370. model.resetInstanceNode("/root/main/list01");
  371. model.resetInstanceNode("/root/main/list02");
  372. model.resetInstanceNode("/root/main/list03");
  373. model.refresh();
  374. //var re = /-/g;
  375. //var fromterm1 = model.getValue("/root/send/fromterm1");
  376. //var toterm1 = model.getValue("/root/send/toterm1");
  377. //fromterm1 = fromterm1.replace(re,"");
  378. //toterm1 = toterm1.replace(re,"");
  379. //model.setValue("/root/send/fromterm", fromterm1);
  380. //model.setValue("/root/send/toterm", toterm1);
  381. submit("TRPIE05501");
  382. fSearch_Step();
  383. }
  384. // 요양급여정산 삭제
  385. function fDeleteN040() {
  386. if (grd_n401h.row >= grd_n401h.fixedRows ) {
  387. // 1. 삭제할 요양급여정산 데이터를 만든다.
  388. var rows = grd_n401h.selectedRows;
  389. var cnt = 1;
  390. for (var i = 0; i < rows; i++) {
  391. var sel = grd_n401h.selectedRow(i);
  392. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/openflag", "n040");
  393. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/rsrvflag", "Y");
  394. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/uncoflag", "N");
  395. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/cutflag", "Y");
  396. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/calcjudgdg", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/calcjudgdg"));
  397. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/acptno", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/acptno"));
  398. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/clamseqno", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/clamseqno"));
  399. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/calcnotidd", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/calcnotidd"));
  400. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/clamno", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/clamno"));
  401. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/calcyearseqno", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/calcyearseqno"));
  402. model.makeValue("/root/hidden/sppie00810/list/data[" + cnt + "]/judgdg", model.getValue("/root/main/list01/gridpiehn401[" + sel + "]/judgdg"));
  403. cnt++;
  404. }
  405. // 2. 수신테이블 삭제 팝업 호출
  406. modal("SPPIE00810", "", "10", "10", "SPPIE00810", "/root/hidden/sppie00810" ,"/root/main", "", "");
  407. }
  408. }
  409. function fSearch_Step() {
  410. if (grd_n401h.rows > 1) {
  411. model.removenode("/root/main/list02");
  412. model.removenode("/root/main/list03");
  413. model.refresh();
  414. var rslt = null;
  415. if (grd_n401h.rows > 1) {
  416. var row = 1;
  417. model.setValue("instance('instance1')/send/sendn401/calcjudgdg", model.getValue("/root/main/list01/gridpiehn401["+row+"]/calcjudgdg"));
  418. model.setValue("instance('instance1')/send/sendn401/calcnotidd", model.getValue("/root/main/list01/gridpiehn401["+row+"]/calcnotidd"));
  419. model.setValue("instance('instance1')/send/sendn401/acptno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/acptno"));
  420. model.setValue("instance('instance1')/send/sendn401/clamseqno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/clamseqno"));
  421. model.setValue("instance('instance1')/send/sendn401/instcd", model.getValue("/root/main/list01/gridpiehn401["+row+"]/instcd"));
  422. model.setValue("instance('instance1')/send/sendn401/clamno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/clamno"));
  423. model.setValue("instance('instance1')/send/sendn401/judgdg", model.getValue("/root/main/list01/gridpiehn401["+row+"]/judgdg"));
  424. // model.resetInstanceNode("/root/main/list02");
  425. // model.resetInstanceNode("/root/main/list03");
  426. // model.refresh();
  427. /*model.removeNodeset("/root/main/list02/gridpiehn402_1");
  428. model.removeNodeset("/root/main/list03/gridpiehn402_2");
  429. model.removeNodeset("/root/main/list03/gridpiehn402_3");
  430. model.removeNodeset("/root/main/list02/gridpiehn402_4");
  431. model.removeNodeset("/root/main/list02/gridpiehn403");
  432. model.removeNodeset("/root/main/list03/gridpiehn404");
  433. model.removeNodeset("/root/main/list03/gridpiehn405");*/
  434. rslt = submit("TRPIE05502");
  435. btn_acptno.selected = true;
  436. model.toggle("case1");
  437. }
  438. }
  439. if (grd_n403h.rows > 1) {
  440. var rslt = null;
  441. if (grd_n403h.rows > 1) {
  442. var row = 1;
  443. model.setValue( "instance('instance1')/send/sendn403/calcyearseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcyearseqno"));
  444. model.setValue( "instance('instance1')/send/sendn403/calcseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcseqno"));
  445. model.setValue( "instance('instance1')/send/sendn403/docuseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/docuseqno"));
  446. model.setValue( "instance('instance1')/send/sendn403/calcjudgdg", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcjudgdg"));
  447. model.setValue( "instance('instance1')/send/sendn403/calcnotidd", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcnotidd"));
  448. model.setValue( "instance('instance1')/send/sendn403/acptno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/acptno"));
  449. model.setValue( "instance('instance1')/send/sendn403/clamseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/clamseqno"));
  450. model.setValue( "instance('instance1')/send/sendn403/instcd", model.getValue("/root/main/list02/gridpiehn403["+row+"]/instcd"));
  451. //model.removeNodeset("/root/main/list03");
  452. model.resetInstanceNode("/root/main/list03");
  453. model.refresh();
  454. rslt = submit("TRPIE05503");
  455. }
  456. btn_acptno.selected = true;
  457. model.toggle("case1");
  458. }
  459. }
  460. // 청구년월 함수
  461. function pidfGetClamdg() {
  462. var check = model.getValue("/root/send/termflag");
  463. if ( model.getValue("/root/send/fromterm") > model.getValue("/root/send/toterm") ) {
  464. messageBox("종료일은 시작일보다 클 수 ", "I004");
  465. model.setValue("/root/send/toterm","")
  466. }
  467. if(check == "2"){
  468. if(model.getValue("/root/send/fromterm") != "" || model.getValue("/root/send/toterm") != ""){
  469. model.removeNodeset("/root/init/clamdg");
  470. model.makeNode("/root/init/clamdg");
  471. model.setValue("/root/send/clamym",model.getValue("/root/send/fromterm"));
  472. model.removeNodeset("/root/send/ioflag");
  473. model.makeNode("/root/send/ioflag");
  474. model.setValue("/root/send/ioflag", model.getValue("/root/send/chosflag"));
  475. submit("TRPID20407");
  476. model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
  477. cmb_clamdgfrom.refresh();
  478. cmb_clamdgfrom.select(0);
  479. model.setValue("/root/send/clamym",model.getValue("/root/send/toterm"));
  480. submit("TRPID20407");
  481. model.copyNode("/root/init/clamdgto","/root/init/clamdg");
  482. addComboItem("cmb_clamdgfrom","전체","","above");
  483. addComboItem("cmb_clamdgto","전체","","above");
  484. cmb_clamdgto.refresh();
  485. cmb_clamdgto.select(0);
  486. }
  487. }
  488. }
  489. // 청구년월 차수 기간 체크
  490. function fChkClamym()
  491. {
  492. var fromym = model.getValue("/root/send/fromterm");
  493. var toym = model.getValue("/root/send/toterm");
  494. var check = model.getValue("/root/send/termflag");
  495. if(check == "2"){
  496. if ( fromym != toym ){
  497. cmb_clamdgfrom.value = "";
  498. cmb_clamdgto.value = "";
  499. cmb_clamdgfrom.disabled = true;
  500. cmb_clamdgto.disabled = true;
  501. }else{
  502. cmb_clamdgfrom.disabled = false;
  503. cmb_clamdgto.disabled = false;
  504. cmb_clamdgfrom.select(0);
  505. cmb_clamdgto.select(0);
  506. }
  507. cmb_clamdgto.refresh();
  508. cmb_clamdgfrom.refresh();
  509. }
  510. }
  511. ]]>
  512. </script>
  513. <script type="javascript">
  514. <![CDATA[
  515. // 정산차수별입금등록관리
  516. function fGridChkCalcjudgdg() {
  517. var row_cnt = grd_n401h.selectedRow(0);
  518. model.setValue("/root/send/send04/calcjudgdg", model.getValue("/root/main/list01/gridpiehn401["+row_cnt+"]/calcjudgdg"));
  519. model.setValue("/root/send/send04/acptno", model.getValue("/root/main/list01/gridpiehn401["+row_cnt+"]/acptno"));
  520. model.setValue("/root/send/send04/insukind", "1");
  521. modal("SMPIF30700", 1, 0, 0, "SMPIF30700", "/root/send/send04", "/root/send/send04");
  522. }
  523. ]]>
  524. </script>
  525. </xhtml:head>
  526. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  527. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  528. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">자보정산내역서(N040) 조회</caption>
  529. </group>
  530. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  531. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  532. </group>
  533. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:764px; ">
  534. <caption id="caption36" class="tit_2" style="left:5px; top:80px; width:167px; height:14px; ">N040.1, N040.2 (청구서)</caption>
  535. <line id="line27" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  536. <caption id="caption37" class="tit_2" style="left:300px; top:294px; width:114px; height:13px; ">N040.3 (명세서)</caption>
  537. <line id="line28" class="line_1" style="x1:295px; y1:309px; x2:1194px; y2:309px; "/>
  538. <caption id="caption38" class="tit_2" style="left:295px; top:489px; width:101px; height:14px; ">N040.4 (처방)</caption>
  539. <line id="line29" class="line_1" style="x1:295px; y1:504px; x2:1194px; y2:504px; "/>
  540. <button id="button26" class="btn2_letter2" style="left:1152px; top:75px; width:42px; height:19px; ">
  541. <caption>출력</caption>
  542. <script type="javascript" ev:event="onclick">
  543. <![CDATA[
  544. // 1. 출력 데이터 생성
  545. model.removenode("/root/hidden/prnt1");
  546. model.makeNode("/root/hidden/prnt1");
  547. var totamt = 0;
  548. for (var i = 1; i < grd_n401h.rows; i++) {
  549. model.makeValue("/root/hidden/prnt1/n401["+i+"]/calcjudgdg", grd_n401h.valueMatrix(i, grd_n401h.colRef("calcjudgdg"))); // 정산심사차수
  550. model.makeValue("/root/hidden/prnt1/n401["+i+"]/calcnotidd", grd_n401h.valueMatrix(i, grd_n401h.colRef("calcnotidd"))); // 정산통보일자
  551. model.makeValue("/root/hidden/prnt1/n401["+i+"]/clamno", grd_n401h.valueMatrix(i, grd_n401h.colRef("clamno"))); // 청구번호
  552. model.makeValue("/root/hidden/prnt1/n401["+i+"]/ioflag", grd_n401h.valueMatrix(i, grd_n401h.colRef("ioflag"))); // 내원유형
  553. model.makeValue("/root/hidden/prnt1/n401["+i+"]/ordfildcd", grd_n401h.labelMatrix(i, grd_n401h.colRef("ordfildcd"))); // 분야
  554. model.makeValue("/root/hidden/prnt1/n401["+i+"]/acptno", grd_n401h.valueMatrix(i, grd_n401h.colRef("acptno"))); // 접수번호
  555. model.makeValue("/root/hidden/prnt1/n401["+i+"]/judgdg", grd_n401h.valueMatrix(i, grd_n401h.colRef("judgdg"))); // 심사차수
  556. model.makeValue("/root/hidden/prnt1/n401["+i+"]/ordym", grd_n401h.labelMatrix(i, grd_n401h.colRef("ordym"))); // 진료월
  557. model.makeValue("/root/hidden/prnt1/n401["+i+"]/cadecidifamtsum", grd_n401h.labelMatrix(i, grd_n401h.colRef("cadecidifamtsum"))); // 결정차액
  558. model.makeValue("/root/hidden/prnt1/n401["+i+"]/cajudgdecircogcntsum", grd_n401h.valueMatrix(i, grd_n401h.colRef("cajudgdecircogcntsum"))); // 인정건수
  559. model.makeValue("/root/hidden/prnt1/n401["+i+"]/flag", grd_n401h.valueMatrix(i, grd_n401h.colRef("flag"))); // 환수환급구분
  560. totamt = totamt + Number(grd_n401h.valueMatrix(i, 13));
  561. model.makeValue("/root/hidden/prnt1/n401["+i+"]/totamtsum", totamt);
  562. }
  563. // 2. 보고서 호출
  564. exeReportPreview("RPPIE05500", "XMLSTR", "","", "false","","","","","false");
  565. ]]>
  566. </script>
  567. </button>
  568. <button id="button2" class="btn2_letter3" style="left:923px; top:75px; width:53px; height:19px; ">
  569. <caption>셀카피</caption>
  570. <script type="javascript" ev:event="onclick">
  571. <![CDATA[
  572. grd_n401h.attribute("selectionmode") = "free";
  573. grd_n403h.attribute("selectionmode") = "free";
  574. grd_n404h.attribute("selectionmode") = "free";
  575. ]]>
  576. </script>
  577. </button>
  578. <button id="button5" class="btn2_letter3" style="left:977px; top:75px; width:53px; height:19px; ">
  579. <caption>열카피</caption>
  580. <script type="javascript" ev:event="onclick">
  581. <![CDATA[
  582. grd_n401h.attribute("selectionmode") = "bycol";
  583. grd_n403h.attribute("selectionmode") = "bycol";
  584. grd_n404h.attribute("selectionmode") = "bycol";
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="button6" class="btn2_letter3" style="left:1032px; top:75px; width:53px; height:19px; ">
  589. <caption>행카피</caption>
  590. <script type="javascript" ev:event="onclick">
  591. <![CDATA[
  592. grd_n401h.attribute("selectionmode") = "byrow";
  593. grd_n403h.attribute("selectionmode") = "byrow";
  594. grd_n404h.attribute("selectionmode") = "byrow";
  595. ]]>
  596. </script>
  597. </button>
  598. <button id="button12" class="btn2_letter4" style="left:1086px; top:75px; width:64px; height:19px; ">
  599. <caption>엑셀저장</caption>
  600. <script type="javascript" ev:event="onclick">
  601. <![CDATA[
  602. var fileName = window.fileDialog("save", ",", false, "자보정산내역서(N040.1)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  603. if (fileName != "") {
  604. grd_n401h.saveExcel(fileName, "SheetName", true, true, "", "", "");
  605. }
  606. ]]>
  607. </script>
  608. </button>
  609. <switch id="switch1" class="sw_box" style="left:0px; top:125px; width:291px; height:638px; ">
  610. <case id="case1">
  611. <input id="input60" ref="/root/main/list02/gridpiehn402_1/jrgrdeindx" class="input_default" format="#,###" style="left:218px; top:167px; width:68px; height:19px; text-align:right; "/>
  612. <input id="input50" ref="/root/main/list02/gridpiehn402_1/cadrcnt" class="input_default" format="#,###" style="left:147px; top:233px; width:68px; height:19px; text-align:right; "/>
  613. <input id="input61" ref="/root/main/list02/gridpiehn402_1/jrorddayno" class="input_default" format="#,###" style="left:218px; top:211px; width:68px; height:19px; text-align:right; "/>
  614. <input id="input52" ref="/root/main/list02/gridpiehn402_1/jrcntsum" class="input_default" format="#,###" style="left:218px; top:145px; width:68px; height:19px; text-align:right; "/>
  615. <line id="line33" class="line_2" style="x1:4px; y1:50px; x2:285px; y2:50px; "/>
  616. <input id="input42" ref="/root/main/list02/gridpiehn402_1/catrudirecpamtsum" class="input_default" format="#,###" style="left:147px; top:76px; width:68px; height:19px; text-align:right; "/>
  617. <caption id="caption41" class="cell_1" style="left:3px; top:4px; width:140px; height:23px; vertical-align:middle; "/>
  618. <caption id="caption52" class="cell_1" style="left:3px; top:231px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">의사수</caption>
  619. <input id="input53" ref="/root/main/list02/gridpiehn402_1/jrdrcnt" class="input_default" format="#,###" style="left:218px; top:233px; width:68px; height:19px; text-align:right; "/>
  620. <line id="line44" class="line_2" style="x1:4px; y1:26px; x2:286px; y2:26px; "/>
  621. <line id="line34" class="line_2" style="x1:4px; y1:73px; x2:285px; y2:73px; "/>
  622. <input id="input43" ref="/root/main/list02/gridpiehn402_1/cajudgdeciamtsum" class="input_default" format="#,###" style="left:147px; top:53px; width:68px; height:19px; text-align:right; "/>
  623. <caption id="caption42" class="cell_1" style="left:3px; top:51px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">심사결정액합계</caption>
  624. <caption id="caption53" class="cell_1" style="left:145px; top:4px; width:71px; height:23px; text-align:center; vertical-align:middle; ">정산심결</caption>
  625. <input id="input44" ref="/root/main/list02/gridpiehn402_1/cadruglimitdiffamtsum" class="input_default" format="#,###" style="left:147px; top:99px; width:68px; height:19px; text-align:right; "/>
  626. <caption id="caption43" class="cell_1" style="left:3px; top:97px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">약제상한차액총합계</caption>
  627. <input id="input55" ref="/root/main/list02/gridpiehn402_1/jrtrudirecpamtsum" class="input_default" format="#,###" style="left:218px; top:76px; width:68px; height:19px; text-align:right; "/>
  628. <caption id="caption54" class="cell_1" style="left:217px; top:4px; width:69px; height:23px; text-align:center; vertical-align:middle; ">이전심결</caption>
  629. <input id="input66" ref="/root/main/list02/gridpiehn402_1/cagrdeindxdecidifamt" class="input_default" format="#,###" style="left:147px; top:306px; width:139px; height:19px; text-align:right; "/>
  630. <line id="line36" class="line_2" style="x1:4px; y1:96px; x2:285px; y2:96px; "/>
  631. <input id="input45" ref="/root/main/list02/gridpiehn402_1/caordtotamtsum" class="input_default" format="#,###" style="left:147px; top:30px; width:68px; height:19px; text-align:right; "/>
  632. <caption id="caption44" class="cell_1" style="left:3px; top:28px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">진료비총액합계</caption>
  633. <input id="input56" ref="/root/main/list02/gridpiehn402_1/jrjudgdeciamtsum" class="input_default" format="#,###" style="left:218px; top:53px; width:68px; height:19px; text-align:right; "/>
  634. <caption id="caption55" class="cell_1" style="left:3px; top:304px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">차등지수결정차액</caption>
  635. <line id="line37" class="line_3" style="x1:4px; y1:4px; x2:286px; y2:4px; "/>
  636. <caption id="caption45" class="cell_1" style="left:3px; top:74px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">위탁검사직접지급금합계</caption>
  637. <input id="input46" ref="/root/main/list02/gridpiehn402_1/camedtims" class="input_default" format="#,###" style="left:147px; top:189px; width:68px; height:19px; text-align:right; "/>
  638. <input id="input57" ref="/root/main/list02/gridpiehn402_1/jrdruglimitdiffamtsum" class="input_default" format="#,###" style="left:218px; top:99px; width:68px; height:19px; text-align:right; "/>
  639. <line id="line38" class="line_2" style="x1:5px; y1:142px; x2:286px; y2:142px; "/>
  640. <caption id="caption46" class="cell_1" style="left:3px; top:187px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">진찰횟수</caption>
  641. <input id="input47" ref="/root/main/list02/gridpiehn402_1/cagrdeindx" class="input_default" format="#,###" style="left:147px; top:167px; width:68px; height:19px; text-align:right; "/>
  642. <input id="input58" ref="/root/main/list02/gridpiehn402_1/jrordtotamtsum" class="input_default" format="#,###" style="left:218px; top:30px; width:68px; height:19px; text-align:right; "/>
  643. <caption id="caption47" class="cell_1" style="left:3px; top:165px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">차등지수</caption>
  644. <input id="input48" ref="/root/main/list02/gridpiehn402_1/caorddayno" class="input_default" format="#,###" style="left:147px; top:211px; width:68px; height:19px; text-align:right; "/>
  645. <input id="input59" ref="/root/main/list02/gridpiehn402_1/jrmedtims" class="input_default" format="#,###" style="left:218px; top:189px; width:68px; height:19px; text-align:right; "/>
  646. <caption id="caption58" class="cell_1" style="left:3px; top:326px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">비고</caption>
  647. <caption id="caption48" class="cell_1" style="left:3px; top:209px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">진료일수</caption>
  648. <input id="input49" ref="/root/main/list02/gridpiehn402_1/cacntsum" class="input_default" format="#,###" style="left:147px; top:145px; width:68px; height:19px; text-align:right; "/>
  649. <caption id="caption49" class="cell_1" style="left:3px; top:143px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">건수합계</caption>
  650. <input id="input54" ref="/root/main/list02/gridpiehn402_1/rem" class="input_default" format="(-)#,###" style="left:147px; top:327px; width:139px; height:19px; text-align:right; "/>
  651. <input id="input5" ref="/root/main/list02/gridpiehn402_1/jrptpytotamtsum" class="input_default" format="#,###" style="left:218px; top:122px; width:68px; height:19px; text-align:right; "/>
  652. <line id="line1" class="line_2" style="x1:5px; y1:119px; x2:286px; y2:119px; "/>
  653. <input id="input6" ref="/root/main/list02/gridpiehn402_1/captpytotamtsum" class="input_default" format="#,###" style="left:147px; top:122px; width:68px; height:19px; text-align:right; "/>
  654. <caption id="caption2" class="cell_1" style="left:3px; top:120px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">환자납부총액합계</caption>
  655. <input id="input9" ref="/root/main/list02/gridpiehn402_1/camedfee" class="input_default" format="#,###" style="left:147px; top:255px; width:68px; height:19px; text-align:right; "/>
  656. <input id="input10" ref="/root/main/list02/gridpiehn402_1/jrmedfee" class="input_default" format="#,###" style="left:218px; top:255px; width:68px; height:19px; text-align:right; "/>
  657. <caption id="caption4" class="cell_1" style="left:3px; top:253px; width:142px; height:21px; text-align:right; vertical-align:middle; padding-left:2; ">진찰(조제)료</caption>
  658. <input id="input11" ref="/root/main/list02/gridpiehn402_1/camedfeesubtramt" class="input_default" format="#,###" style="left:147px; top:280px; width:68px; height:19px; text-align:right; "/>
  659. <input id="input12" ref="/root/main/list02/gridpiehn402_1/jrmedfeesubtramt" class="input_default" format="#,###" style="left:218px; top:280px; width:68px; height:19px; text-align:right; "/>
  660. <caption id="caption6" class="cell_1" style="left:3px; top:275px; width:142px; height:28px; text-align:right; vertical-align:middle; padding-left:2; ">진찰료(조제료)차감액</caption>
  661. </case>
  662. <case id="case2" selected="true">
  663. <caption id="caption70" class="cell_1" style="left:4px; top:308px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">비고</caption>
  664. <input id="input93" ref="/root/main/list03/gridpiehn402_2/captpytotamt" class="input_default" format="#,###" style="left:147px; top:148px; width:68px; height:19px; text-align:right; "/>
  665. <input id="input82" ref="/root/main/list03/gridpiehn402_2/canxtmedfee" class="input_default" format="#,###" style="left:147px; top:48px; width:68px; height:19px; text-align:right; "/>
  666. <caption id="caption71" class="cell_1" style="left:4px; top:148px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">환자납부총액</caption>
  667. <input id="input94" ref="/root/main/list03/gridpiehn402_2/jrfstmedtims" class="input_default" format="#,###" style="left:218px; top:168px; width:68px; height:19px; text-align:right; "/>
  668. <input id="input83" ref="/root/main/list03/gridpiehn402_2/camedcaredayno" class="input_default" format="#,###" style="left:147px; top:268px; width:68px; height:19px; text-align:right; "/>
  669. <caption id="caption60" class="cell_1" style="left:145px; top:4px; width:71px; height:23px; text-align:center; vertical-align:middle; ">정산심결</caption>
  670. <input id="input72" ref="/root/main/list03/gridpiehn402_2/cajrsltrem" class="input_default" format="#,###" style="left:147px; top:309px; width:139px; height:19px; text-align:right; "/>
  671. <input id="input95" ref="/root/main/list03/gridpiehn402_2/cafstmedaddtims" class="input_default" format="#,###" style="left:147px; top:188px; width:68px; height:19px; text-align:right; "/>
  672. <input id="input84" ref="/root/main/list03/gridpiehn402_2/jrordtotamt" class="input_default" format="#,###" style="left:218px; top:68px; width:68px; height:19px; text-align:right; "/>
  673. <line id="line53" class="line_2" style="x1:4px; y1:0px; x2:286px; y2:0px; "/>
  674. <caption id="caption73" class="cell_1" style="left:4px; top:188px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">초진가산횟수</caption>
  675. <input id="input96" ref="/root/main/list03/gridpiehn402_2/cadruglimitdiffamt" class="input_default" format="#,###" style="left:147px; top:128px; width:68px; height:19px; text-align:right; "/>
  676. <input id="input85" ref="/root/main/list03/gridpiehn402_2/cajudgdeciamt" class="input_default" format="#,###" style="left:147px; top:88px; width:68px; height:19px; text-align:right; "/>
  677. <caption id="caption62" class="cell_1" style="left:4px; top:48px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">재진료</caption>
  678. <caption id="caption51" class="cell_1" style="left:4px; top:208px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">재진횟수</caption>
  679. <input id="input63" ref="/root/main/list03/gridpiehn402_2/jrptpytotamt" class="input_default" format="#,###" style="left:218px; top:148px; width:68px; height:19px; text-align:right; "/>
  680. <caption id="caption74" class="cell_1" style="left:4px; top:128px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">약제상한차액총액</caption>
  681. <caption id="caption63" class="cell_1" style="left:217px; top:4px; width:69px; height:23px; text-align:center; vertical-align:middle; ">이전심결</caption>
  682. <input id="input87" ref="/root/main/list03/gridpiehn402_2/jrnxtmedfee" class="input_default" format="#,###" style="left:218px; top:48px; width:68px; height:19px; text-align:right; "/>
  683. <caption id="caption64" class="cell_1" style="left:4px; top:88px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">심사결정액</caption>
  684. <input id="input65" ref="/root/main/list03/gridpiehn402_2/jrfstmedaddtims" class="input_default" format="#,###" style="left:218px; top:188px; width:68px; height:19px; text-align:right; "/>
  685. <input id="input88" ref="/root/main/list03/gridpiehn402_2/cafstmedfee" class="input_default" format="#,###" style="left:147px; top:28px; width:68px; height:24px; text-align:right; "/>
  686. <caption id="caption65" class="cell_1" style="left:4px; top:268px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">요양급여일수</caption>
  687. <input id="input77" ref="/root/main/list03/gridpiehn402_2/jrdruglimitdiffamt" class="input_default" format="#,###" style="left:218px; top:128px; width:68px; height:19px; text-align:right; "/>
  688. <caption id="caption66" class="cell_1" style="left:4px; top:28px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">초진료</caption>
  689. <input id="input78" ref="/root/main/list03/gridpiehn402_2/jrmedcaredayno" class="input_default" format="#,###" style="left:218px; top:268px; width:68px; height:19px; text-align:right; "/>
  690. <caption id="caption67" class="cell_1" style="left:4px; top:68px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">진료비총액</caption>
  691. <caption id="caption56" class="cell_1" style="left:4px; top:4px; width:140px; height:23px; vertical-align:middle; padding-left:2; "/>
  692. <input id="input79" ref="/root/main/list03/gridpiehn402_2/jrnxtmedtims" class="input_default" format="#,###" style="left:218px; top:208px; width:68px; height:19px; text-align:right; "/>
  693. <input id="input69" ref="/root/main/list03/gridpiehn402_2/canxtmedtims" class="input_default" format="#,###" style="left:147px; top:208px; width:68px; height:19px; text-align:right; "/>
  694. <caption id="caption69" class="cell_1" style="left:4px; top:168px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">초진횟수</caption>
  695. <input id="input90" ref="/root/main/list03/gridpiehn402_2/jrjudgdeciamt" class="input_default" format="#,###" style="left:218px; top:88px; width:68px; height:19px; text-align:right; "/>
  696. <input id="input91" ref="/root/main/list03/gridpiehn402_2/cafstmedtims" class="input_default" format="#,###" style="left:147px; top:168px; width:68px; height:19px; text-align:right; "/>
  697. <input id="input80" ref="/root/main/list03/gridpiehn402_2/caordtotamt" class="input_default" format="#,###" style="left:147px; top:68px; width:68px; height:19px; text-align:right; "/>
  698. <input id="input92" ref="/root/main/list03/gridpiehn402_2/jrfstmedfee" class="input_default" format="#,###" style="left:218px; top:28px; width:68px; height:24px; text-align:right; "/>
  699. <line id="line61" class="line_3" style="x1:4px; y1:4px; x2:286px; y2:4px; "/>
  700. <input id="input7" ref="/root/main/list03/gridpiehn402_2/catrudirecpamt" class="input_default" format="#,###" style="left:147px; top:108px; width:68px; height:19px; text-align:right; "/>
  701. <caption id="caption3" class="cell_1" style="left:4px; top:108px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">위탁검사직접지급금</caption>
  702. <input id="input8" ref="/root/main/list03/gridpiehn402_2/jrtrudirecpamt" class="input_default" format="#,###" style="left:218px; top:108px; width:68px; height:19px; text-align:right; "/>
  703. <caption id="caption8" class="cell_1" style="left:4px; top:228px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">재진가산횟수</caption>
  704. <input id="input14" ref="/root/main/list03/gridpiehn402_2/jrnxtmedaddtims" class="input_default" format="#,###" style="left:218px; top:228px; width:68px; height:19px; text-align:right; "/>
  705. <input id="input15" ref="/root/main/list03/gridpiehn402_2/canxtmedaddtims" class="input_default" format="#,###" style="left:147px; top:228px; width:68px; height:19px; text-align:right; "/>
  706. <input id="input16" ref="/root/main/list03/gridpiehn402_2/jrindayno" class="input_default" format="#,###" style="left:218px; top:248px; width:68px; height:19px; text-align:right; "/>
  707. <input id="input17" ref="/root/main/list03/gridpiehn402_2/caindayno" class="input_default" format="#,###" style="left:147px; top:248px; width:68px; height:19px; text-align:right; "/>
  708. <caption id="caption9" class="cell_1" style="left:4px; top:248px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">입원일수(내원일수)</caption>
  709. <input id="input1" ref="/root/main/list03/gridpiehn402_2/caprcptims" class="input_default" format="#,###" style="left:147px; top:288px; width:68px; height:19px; text-align:right; "/>
  710. <caption id="caption7" class="cell_1" style="left:4px; top:288px; width:140px; height:19px; text-align:right; vertical-align:middle; padding-left:2; ">처방횟수</caption>
  711. <input id="input2" ref="/root/main/list03/gridpiehn402_2/jrprcptims" class="input_default" format="#,###" style="left:218px; top:288px; width:68px; height:19px; text-align:right; "/>
  712. </case>
  713. <case id="case4">
  714. <line id="line84" class="line_2" style="x1:4px; y1:101px; x2:285px; y2:101px; "/>
  715. <caption id="caption92" class="cell_1" style="left:4px; top:103px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산담당자성명</caption>
  716. <line id="line85" class="line_2" style="x1:4px; y1:26px; x2:286px; y2:26px; "/>
  717. <line id="line74" class="line_2" style="x1:4px; y1:176px; x2:285px; y2:176px; "/>
  718. <caption id="caption94" class="cell_1" style="left:4px; top:28px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">심사구분</caption>
  719. <line id="line88" class="line_2" style="x1:4px; y1:51px; x2:285px; y2:51px; "/>
  720. <caption id="caption96" class="cell_1" style="left:4px; top:4px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산연번</caption>
  721. <line id="line77" class="line_2" style="x1:4px; y1:126px; x2:285px; y2:126px; "/>
  722. <input id="input110" ref="/root/main/list02/gridpiehn402_4/calcchrgnm" class="input_default" style="left:147px; top:105px; width:139px; height:19px; "/>
  723. <caption id="caption97" class="cell_1" style="left:4px; top:153px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산업무코드</caption>
  724. <caption id="caption75" class="cell_1" style="left:4px; top:53px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산담당부</caption>
  725. <input id="input111" ref="/root/main/list02/gridpiehn402_4/calcbiznm" class="input_default" style="left:147px; top:179px; width:139px; height:19px; "/>
  726. <caption id="caption98" class="cell_1" style="left:4px; top:78px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산담당조</caption>
  727. <input id="input98" ref="/root/main/list02/gridpiehn402_4/calcbizcd" class="input_default" style="left:147px; top:154px; width:139px; height:19px; "/>
  728. <input id="input101" ref="/root/main/list02/gridpiehn402_4/judgflag" class="input_default" style="left:147px; top:29px; width:139px; height:19px; "/>
  729. <caption id="caption99" class="cell_1" style="left:4px; top:178px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산업무명</caption>
  730. <input id="input113" ref="/root/main/list02/gridpiehn402_4/calcbiztel" class="input_default" style="left:147px; top:204px; width:139px; height:19px; "/>
  731. <input id="input109" ref="/root/main/list02/gridpiehn402_4/calcyearseqno" class="input_default" style="left:147px; top:6px; width:139px; height:19px; "/>
  732. <caption id="caption78" class="cell_1" style="left:4px; top:203px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산담당전화번호</caption>
  733. <input id="input118" ref="/root/main/list02/gridpiehn402_4/calcchrgjonm" class="input_default" style="left:147px; top:79px; width:139px; height:19px; "/>
  734. <input id="input124" ref="/root/main/list02/gridpiehn402_4/calcchrgdeptnm" class="input_default" style="left:147px; top:55px; width:139px; height:19px; "/>
  735. <line id="line70" class="line_2" style="x1:4px; y1:76px; x2:285px; y2:76px; "/>
  736. <input id="input126" ref="/root/main/list02/gridpiehn402_4/calcchrgno" class="input_default" style="left:147px; top:129px; width:139px; height:19px; "/>
  737. <line id="line82" class="line_2" style="x1:4px; y1:201px; x2:285px; y2:201px; "/>
  738. <caption id="caption90" class="cell_1" style="left:4px; top:128px; width:140px; height:23px; text-align:right; vertical-align:middle; padding-left:2; ">정산담당자번호</caption>
  739. <line id="line83" class="line_2" style="x1:4px; y1:151px; x2:285px; y2:151px; "/>
  740. <line id="line72" class="line_3" style="x1:4px; y1:226px; x2:286px; y2:226px; "/>
  741. <line id="line87" class="line_3" style="x1:4px; y1:4px; x2:286px; y2:4px; "/>
  742. </case>
  743. </switch>
  744. <caption id="caption39" class="tit_2" style="left:295px; top:650px; width:127px; height:14px; ">N040.5 (위탁검사)</caption>
  745. <line id="line30" class="line_1" style="x1:295px; y1:665px; x2:1194px; y2:665px; "/>
  746. <button id="button7" class="btn2_letter4" style="left:1130px; top:289px; width:64px; height:19px; ">
  747. <caption>엑셀저장</caption>
  748. <script type="javascript" ev:event="onclick">
  749. <![CDATA[
  750. var fileName = window.fileDialog("save", ",", false, "자보정산내역서(N040.3)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  751. if (fileName != "") {
  752. grd_n403h.saveExcel(fileName, "SheetName", true, true, "", "", "");
  753. }
  754. ]]>
  755. </script>
  756. </button>
  757. <group id="group5" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  758. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  759. <button id="button1" class="btn1_letter2" navindex="3" style="left:1123px; top:8px; width:56px; height:22px; ">
  760. <caption>조회</caption>
  761. <script type="javascript" ev:event="DOMActivate">
  762. <![CDATA[
  763. search();
  764. ]]>
  765. </script>
  766. </button>
  767. <line id="line26" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
  768. <caption id="caption30" class="search_name" style="left:600px; top:35px; width:90px; height:17px; ">청구분야 :</caption>
  769. <caption id="caption31" style="left:371px; top:11px; width:15px; height:15px; ">~</caption>
  770. <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:690px; top:35px; width:80px; height:19px; ">
  771. <choices>
  772. <itemset nodeset="/root/init/P0235list/P0235">
  773. <label ref="cdnm"/>
  774. <value ref="cdid"/>
  775. </itemset>
  776. </choices>
  777. </select1>
  778. <input id="ipt_acptno" ref="/root/send/acptno" class="input_search" style="left:95px; top:35px; width:80px; height:19px; ">
  779. <script type="javascript" ev:event="onkeyup">
  780. <![CDATA[
  781. if (event.keyCode == "13") {
  782. setInputNodeCurText();
  783. if (ipt_acptno.value == "") {
  784. cmb_clamno.value = "";
  785. model.setValue("/root/send/clamno","");
  786. model.removenode("/root/hidden/list01");
  787. model.refresh();
  788. return false;
  789. //search();
  790. }
  791. else {
  792. // 접수번호로 청구번호(ClamNo)정보를 조회한다.
  793. var acptno = model.getValue("/root/send/acptno");
  794. // 보험유형 인스턴스를 생성한 후 값을 강제로 세팅해준다. 요양급여정산이므로 보험유형은 11.
  795. model.makeNode("/root/send/send_clamno/insukind");
  796. model.setValue("/root/send/send_clamno/insukind", "11");
  797. model.setValue("/root/send/send_clamno/acptno", acptno);
  798. submit("TRPIE01404");
  799. if (cmb_clamno.length == 1) {
  800. cmb_clamno.select(0); // 청구번호 콤보 세팅
  801. }
  802. else if (cmb_clamno.length == 0) {
  803. model.removenode("/root/main/list01");
  804. model.removenode("/root/main/list02");
  805. model.removenode("/root/main/list03");
  806. model.refresh();
  807. }
  808. else {
  809. model.setFocus("cmb_clamno");
  810. }
  811. }
  812. search();
  813. }
  814. ]]>
  815. </script>
  816. </input>
  817. <caption id="caption34" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">접수번호 :</caption>
  818. <select1 id="rdo_ioflag" ref="/root/send/chosflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:690px; top:10px; width:135px; height:17px; border-style:none; ">
  819. <choices>
  820. <item>
  821. <label>전체</label>
  822. <value>A</value>
  823. </item>
  824. <item>
  825. <label>입원</label>
  826. <value>I</value>
  827. </item>
  828. <item>
  829. <label>외래</label>
  830. <value>O</value>
  831. </item>
  832. </choices>
  833. </select1>
  834. <caption id="caption40" class="search_name" style="left:600px; top:10px; width:90px; height:17px; ">내원유형 :</caption>
  835. <caption id="caption1" class="search_name" style="left:359px; top:35px; width:90px; height:17px; ">청구번호 :</caption>
  836. <select1 id="cmb_clamno" ref="/root/send/clamno" class="combo_search" appearance="minimal" style="left:449px; top:35px; width:80px; height:19px; ">
  837. <choices>
  838. <itemset nodeset="/root/hidden/list01/claminfo">
  839. <label ref="clamno"/>
  840. <value ref="clamno"/>
  841. </itemset>
  842. </choices>
  843. </select1>
  844. <select1 id="rdo_termflag" ref="/root/send/termflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:5px; top:10px; width:210px; height:17px; border-style:none; ">
  845. <choices>
  846. <item>
  847. <label>정산차수</label>
  848. <value>1</value>
  849. </item>
  850. <item>
  851. <label>청구년월</label>
  852. <value>2</value>
  853. </item>
  854. <item>
  855. <label>통보일자</label>
  856. <value>3</value>
  857. </item>
  858. </choices>
  859. <script type="javascript" ev:event="xforms-value-changed">
  860. <![CDATA[
  861. model.setValue("/root/send/fromterm", "");
  862. model.setValue("/root/send/toterm", "");
  863. if (rdo_termflag.value == "1") {
  864. ipt_fromterm.attribute("inputtype") = "";
  865. ipt_fromterm.attribute("format") = "";
  866. ipt_toterm.attribute("inputtype") = "";
  867. ipt_toterm.attribute("format") = "";
  868. ipt_fromterm.attribute("maxlength") = 8;
  869. ipt_toterm.attribute("maxlength") = 8;
  870. cmb_clamdgfrom.value = "";
  871. cmb_clamdgto.value = "";
  872. cmb_clamdgfrom.disabled = true;
  873. cmb_clamdgto.disabled = true;
  874. }
  875. else if (rdo_termflag.value == "3") {
  876. ipt_fromterm.attribute("inputtype") = "date";
  877. ipt_fromterm.attribute("format") = "yyyy-mm-dd";
  878. ipt_toterm.attribute("inputtype") = "date";
  879. ipt_toterm.attribute("format") = "yyyy-mm-dd";
  880. ipt_fromterm.attribute("maxlength") = 8;
  881. ipt_toterm.attribute("maxlength") = 8;
  882. cmb_clamdgfrom.value = "";
  883. cmb_clamdgto.value = "";
  884. cmb_clamdgfrom.disabled = true;
  885. cmb_clamdgto.disabled = true;
  886. }
  887. else {
  888. ipt_fromterm.attribute("inputtype") = "date";
  889. ipt_fromterm.attribute("format") = "yyyy-mm";
  890. ipt_toterm.attribute("inputtype") = "date";
  891. ipt_toterm.attribute("format") = "yyyy-mm";
  892. ipt_fromterm.attribute("maxlength") = 6;
  893. ipt_toterm.attribute("maxlength") = 6;
  894. cmb_clamdgfrom.disabled = false;
  895. cmb_clamdgto.disabled = false;
  896. cmb_clamdgfrom.select(0);
  897. cmb_clamdgto.select(0);
  898. }
  899. model.refresh();
  900. model.setFocus("ipt_fromterm");
  901. ]]>
  902. </script>
  903. </select1>
  904. <input id="ipt_fromterm" ref="/root/send/fromterm" class="input_search" navindex="1" inputtype="date" style="left:222px; top:10px; width:85px; height:19px; ">
  905. <script type="javascript" ev:event="DOMFocusOut">
  906. <![CDATA[
  907. model.setValue("/root/send/toterm",model.getValue("/root/send/fromterm"));
  908. model.refresh();
  909. pidfGetClamdg();
  910. fChkClamym();
  911. ]]>
  912. </script>
  913. </input>
  914. <input id="ipt_toterm" ref="/root/send/toterm" class="input_search" navindex="2" inputtype="date" style="left:385px; top:10px; width:85px; height:19px; ">
  915. <script type="javascript" ev:event="DOMFocusOut">
  916. <![CDATA[
  917. pidfGetClamdg();
  918. fChkClamym();
  919. ]]>
  920. </script>
  921. </input>
  922. <button id="button3" class="btn2_letter3" style="left:1124px; top:35px; width:53px; height:19px; ">
  923. <caption>초기화</caption>
  924. <script type="javascript" ev:event="onclick">
  925. <![CDATA[
  926. model.resetInstanceNode("/root/send");
  927. model.setValue("/root/send/termflag","1");
  928. model.setValue("/root/send/chosflag","A");
  929. model.removeNodeset("/root/main/list01");
  930. model.removeNodeset("/root/main/list02");
  931. model.removeNodeset("/root/main/list03");
  932. model.removeNodeset("/root/main/list04");
  933. model.removeNodeset("/root/hidden/list01");
  934. btn_acptno.selected = true;
  935. model.toggle("case1");
  936. cmb_clamdgfrom.value = "";
  937. cmb_clamdgto.value = "";
  938. cmb_clamdgfrom.disabled = true;
  939. cmb_clamdgto.disabled = true;
  940. model.setFocus("ipt_fromterm");
  941. model.refresh();
  942. ]]>
  943. </script>
  944. </button>
  945. <select1 id="cmb_clamdgto" ref="/root/send/clamdgto" class="combo_search" appearance="minimal" style="left:473px; top:10px; width:55px; height:19px; ">
  946. <choices>
  947. <itemset nodeset="/root/init/clamdgto/clamdglist">
  948. <label ref="clamdgnm"/>
  949. <value ref="clamdgcd"/>
  950. </itemset>
  951. </choices>
  952. <script type="javascript" ev:event="xforms-value-changed">
  953. <![CDATA[
  954. model.setValue("/root/send/clamdgfrom", model.getValue("/root/send/clamdgto"));
  955. model.refresh();
  956. ]]>
  957. </script>
  958. </select1>
  959. <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:310px; top:10px; width:55px; height:19px; ">
  960. <choices>
  961. <itemset nodeset="/root/init/clamdgfrom/clamdglist">
  962. <label ref="clamdgnm"/>
  963. <value ref="clamdgcd"/>
  964. </itemset>
  965. </choices>
  966. <script type="javascript" ev:event="xforms-value-changed">
  967. <![CDATA[
  968. model.setValue("/root/send/clamdgto", model.getValue("/root/send/clamdgfrom"));
  969. model.refresh();
  970. ]]>
  971. </script>
  972. </select1>
  973. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:975px; top:10px; width:95px; height:19px; ">
  974. <choices>
  975. <itemset nodeset="/root/init/P0155list/P0155">
  976. <label ref="cdnm"/>
  977. <value ref="cdid"/>
  978. </itemset>
  979. </choices>
  980. </select1>
  981. <caption id="caption5" class="search_name" style="left:885px; top:10px; width:86px; height:17px; ">청구구분 :</caption>
  982. </group>
  983. <datagrid id="grd_n401h" nodeset="/root/main/list01/gridpiehn401" class="datagrid2" visibility="visible" caption="정산심사차수^정산통보일자^청구번호^정산연번^내원유형^분야^접수번호^묶음번호^심사차수^진료월^청구단위구분^심사구분^결정차액^인정&#xA;건수^인정금액^약제상한차액^서식번호^VER^청구서&#xA;일련번호^요양(급여)&#xA;기관기호^지원^caption1^caption2" colsep="^" colwidth="91, 90, 90, 60, 60, 50, 80, 60, 80, 80, 100, 65, 80, 50, 80, 100, 60, 40, 60, 90, 60, 100, 100, 100" dataheight="23" defaultrows="2" ellipsis="true" explorerbar="sortshowmove" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:295px; top:100px; width:899px; height:185px; ">
  984. <col ref="calcjudgdg" style="text-align:center; "/>
  985. <col ref="calcnotidd" format="yyyy-mm-dd" style="text-align:center; "/>
  986. <col ref="clamno" style="text-align:center; "/>
  987. <col ref="calcyearseqno" visibility="hidden"/>
  988. <col ref="ioflag" style="text-align:center; "/>
  989. <col disabled="true" ref="ordfildcd" style="text-align:center; "/>
  990. <col ref="acptno" style="text-align:center; "/>
  991. <col ref="setno" style="text-align:center; "/>
  992. <col ref="judgdg" style="text-align:center; "/>
  993. <col ref="ordym" format="yyyy-mm" style="text-align:center; "/>
  994. <col ref="clamflag" style="text-align:center; "/>
  995. <col ref="judgflag" style="text-align:center; "/>
  996. <col ref="cadecidifamtsum" format="(-)#,###" style="text-align:right; "/>
  997. <col ref="cajudgdecircogcntsum" visibility="hidden" format="#,###" style="text-align:right; "/>
  998. <col ref="cajrsltrcogamtsum" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  999. <col ref="jrdruglimitdiffamtsum" format="(-)#,###" style="text-align:right; "/>
  1000. <col ref="docuno" style="text-align:center; "/>
  1001. <col ref="verflag" style="text-align:center; "/>
  1002. <col ref="clamseqno" style="text-align:center; "/>
  1003. <col ref="corpmark" style="text-align:center; "/>
  1004. <col ref="suppcd" visibility="hidden" style="text-align:center; "/>
  1005. <col ref="instcd" visibility="hidden"/>
  1006. <col ref="calcyearseqno" visibility="hidden"/>
  1007. <col ref="flag" visibility="hidden"/>
  1008. <script type="javascript" ev:event="onclick">
  1009. <![CDATA[
  1010. if ((grd_n401h.row >= grd_n401h.fixedRows) && (grd_n401h.isCell(event.target))) {
  1011. model.removenode("/root/main/list02");
  1012. model.removenode("/root/main/list03");
  1013. model.refresh();
  1014. var rslt = null;
  1015. if (grd_n401h.isCell(event.target) && grd_n401h.row >= grd_n401h.fixedRows) {
  1016. var row = grd_n401h.selectedRow(0);
  1017. model.setValue("instance('instance1')/send/sendn401/calcjudgdg", model.getValue("/root/main/list01/gridpiehn401["+row+"]/calcjudgdg"));
  1018. model.setValue("instance('instance1')/send/sendn401/calcnotidd", model.getValue("/root/main/list01/gridpiehn401["+row+"]/calcnotidd"));
  1019. model.setValue("instance('instance1')/send/sendn401/acptno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/acptno"));
  1020. model.setValue("instance('instance1')/send/sendn401/clamseqno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/clamseqno"));
  1021. model.setValue("instance('instance1')/send/sendn401/instcd", model.getValue("/root/main/list01/gridpiehn401["+row+"]/instcd"));
  1022. model.setValue("instance('instance1')/send/sendn401/clamno", model.getValue("/root/main/list01/gridpiehn401["+row+"]/clamno"));
  1023. model.setValue("instance('instance1')/send/sendn401/judgdg", model.getValue("/root/main/list01/gridpiehn401["+row+"]/judgdg"));
  1024. rslt = submit("TRPIE05502");
  1025. btn_acptno.selected = true;
  1026. model.toggle("case1");
  1027. }
  1028. }
  1029. ]]>
  1030. </script>
  1031. <script type="javascript" ev:event="onaftersort">
  1032. <![CDATA[
  1033. grd_n401h.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  1034. ]]>
  1035. </script>
  1036. <script type="javascript" ev:event="onmousedown">
  1037. <![CDATA[
  1038. if (event.button == 3) {
  1039. if (grd_n401h.isCell(event.target) && grd_n401h.mouseRow >= grd_n401h.fixedrows) {
  1040. setPopupMenu("grd_n401h", false, "/root/popupdata/popupmenu/grd_n401h/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  1041. }
  1042. }
  1043. ]]>
  1044. </script>
  1045. <script type="javascript" ev:event="DOMFocusOut">
  1046. <![CDATA[
  1047. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  1048. ]]>
  1049. </script>
  1050. <script type="javascript" ev:event="oncopy">
  1051. <![CDATA[
  1052. grid_oncopy();
  1053. ]]>
  1054. </script>
  1055. </datagrid>
  1056. <datagrid id="grd_n403h" nodeset="/root/main/list02/gridpiehn403" caption="명일련^등록번호^수진자^진료형태^구분^결정차액^주상병^참조란^정산연번^정산일련번호^처방내역 유무" colsep="^" colwidth="55, 67, 50, 100, 40, 80, 55, 120, 80, 90, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" explorerbar="sortshowmove" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:295px; top:314px; width:899px; height:171px; ">
  1057. <col ref="docuseqno" style="text-align:center; "/>
  1058. <col ref="pid" style="text-align:center; "/>
  1059. <col ref="patnm" style="text-align:center; "/>
  1060. <col ref="ordtype" style="text-align:center; "/>
  1061. <col ref="flag" style="text-align:center; "/>
  1062. <col ref="cadecidifamt" format="(-)#,###" style="text-align:right; "/>
  1063. <col ref="diagcd" style="text-align:center; "/>
  1064. <col ref="docuseqnorem" type="inputbutton" style="text-align:center; "/>
  1065. <col ref="calcyearseqno" style="text-align:center; "/>
  1066. <col ref="calcseqno" style="text-align:center; "/>
  1067. <col ref="orderyn" style="text-align:center; "/>
  1068. <col ref="calcjudgdg" visibility="hidden"/>
  1069. <col ref="calcnotidd" visibility="hidden"/>
  1070. <col ref="acptno" visibility="hidden"/>
  1071. <col ref="clamseqno" visibility="hidden"/>
  1072. <col ref="instcd" visibility="hidden"/>
  1073. <script type="javascript" ev:event="onclick">
  1074. <![CDATA[
  1075. if ((grd_n403h.row >= grd_n403h.fixedRows) && (grd_n403h.isCell(event.target))) {
  1076. var rslt = null;
  1077. if (grd_n403h.isCell(event.target) && grd_n403h.row >= grd_n403h.fixedRows) {
  1078. var row = grd_n403h.selectedRow(0);
  1079. model.setValue( "instance('instance1')/send/sendn403/calcyearseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcyearseqno"));
  1080. model.setValue( "instance('instance1')/send/sendn403/calcseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcseqno"));
  1081. model.setValue( "instance('instance1')/send/sendn403/docuseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/docuseqno"));
  1082. model.setValue( "instance('instance1')/send/sendn403/calcjudgdg", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcjudgdg"));
  1083. model.setValue( "instance('instance1')/send/sendn403/calcnotidd", model.getValue("/root/main/list02/gridpiehn403["+row+"]/calcnotidd"));
  1084. model.setValue( "instance('instance1')/send/sendn403/acptno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/acptno"));
  1085. model.setValue( "instance('instance1')/send/sendn403/clamseqno", model.getValue("/root/main/list02/gridpiehn403["+row+"]/clamseqno"));
  1086. model.setValue( "instance('instance1')/send/sendn403/instcd", model.getValue("/root/main/list02/gridpiehn403["+row+"]/instcd"));
  1087. //model.removeNodeset("/root/main/list03");
  1088. model.resetInstanceNode("/root/main/list03");
  1089. model.refresh();
  1090. rslt = submit("TRPIE05503");
  1091. }
  1092. btn_calcyearseqno.selected = true;
  1093. model.toggle("case2");
  1094. }
  1095. ]]>
  1096. </script>
  1097. <script type="javascript" ev:event="onaftersort">
  1098. <![CDATA[
  1099. grd_n403h.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  1100. ]]>
  1101. </script>
  1102. <script type="javascript" ev:event="oncopy">
  1103. <![CDATA[
  1104. grid_oncopy();
  1105. ]]>
  1106. </script>
  1107. </datagrid>
  1108. <datagrid id="grd_n404h" nodeset="/root/main/list03/gridpiehn404" caption="줄번호^항^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심사결정^정산심결비고&#xA;(조정사유내역)^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^이전심사결정^비고|줄번호^항^조정사유^조정상세사유^I,I 구분^코드^처방명칭^단가^일투^총투^인정금액^조정금액^약제상한차액인정^약제상한차액조정금^약제상한가^정산심결비고&#xA;(조정사유내역)^조정사유^조정상세사유^I,II 항^코드^처방명칭^단가^일투^총투^인정금액^조정금액^약제상한차액인정^약제상한차액조정금^약제상한가^비고" colsep="^" colwidth="50, 45, 60, 100, 65, 70, 110, 70, 60, 60, 70, 70, 105, 115, 100, 130, 60, 100, 100, 70, 110, 70, 60, 60, 70, 70, 105, 115, 100" dataheight="23" defaultrows="2" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="true" style="left:294px; top:510px; width:899px; height:135px; ">
  1109. <col ref="lnno" style="text-align:center; "/>
  1110. <col ref="itemlnno" style="text-align:center; "/>
  1111. <col ref="caadjtresn" style="text-align:center; "/>
  1112. <col ref="caadjtdetlresn" style="text-align:center; "/>
  1113. <col ref="camatractflag" style="text-align:center; "/>
  1114. <col ref="cacd" style="text-align:center; "/>
  1115. <col ref="cahngnm"/>
  1116. <col ref="caunitcost" format="#,###" style="text-align:right; "/>
  1117. <col ref="cadayqtyrt" style="text-align:center; "/>
  1118. <col ref="catotqtyrt" style="text-align:center; "/>
  1119. <col ref="carcogamt" format="#,###" style="text-align:right; "/>
  1120. <col ref="caadjtamt" format="#,###" style="text-align:right; "/>
  1121. <col ref="jrdruglimitdiffrcogamt" format="#,###" style="text-align:right; "/>
  1122. <col ref="jrdruglimitdiffadjtamt" format="#,###" style="text-align:right; "/>
  1123. <col ref="jrdruglimitamt" format="#,###" style="text-align:right; "/>
  1124. <col ref="cajrsltrem" type="inputbutton" style="text-align:center; "/>
  1125. <col ref="jradjtresn" style="text-align:center; "/>
  1126. <col ref="jradjtdetlresn" style="text-align:center; "/>
  1127. <col ref="jrmatractflag" style="text-align:center; "/>
  1128. <col ref="jrcd" style="text-align:center; "/>
  1129. <col ref="jrhngnm"/>
  1130. <col ref="jrunitcost" format="#,###" style="text-align:right; "/>
  1131. <col ref="jrdayqtyrt" style="text-align:center; "/>
  1132. <col ref="jrtotqtyrt" style="text-align:center; "/>
  1133. <col ref="jrrcogamt" format="#,###" style="text-align:right; "/>
  1134. <col ref="jradjtamt" format="#,###" style="text-align:right; "/>
  1135. <col ref="jrdruglimitdiffrcogamt" format="#,###" style="text-align:right; "/>
  1136. <col ref="jrdruglimitdiffadjtamt" format="#,###" style="text-align:right; "/>
  1137. <col ref="jrdruglimitamt" format="#,###" style="text-align:right; "/>
  1138. <script type="javascript" ev:event="oncopy">
  1139. <![CDATA[
  1140. grid_oncopy();
  1141. ]]>
  1142. </script>
  1143. </datagrid>
  1144. <datagrid id="grd_n405h" nodeset="/root/main/list03/gridpiehn405" caption="줄번호^코드^처방명칭^수탁기관기호^위탁검사직접지급금^비고^비고" colsep="^" colwidth="59, 100, 100, 100, 121, 322" dataheight="23" defaultrows="2" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:295px; top:670px; width:899px; height:93px; ">
  1145. <col ref="lnno" style="text-align:center; "/>
  1146. <col ref="tretcd" style="text-align:center; "/>
  1147. <col ref="prcpflag" style="text-align:center; "/>
  1148. <col ref="trustinstmark" style="text-align:center; "/>
  1149. <col ref="trudirecpamt" style="text-align:right; "/>
  1150. <col ref="rem" type="inputbutton" style="text-align:center; "/>
  1151. </datagrid>
  1152. <button id="btn_acptno" class="btn_sw" group="tab" selected="true" style="left:0px; top:100px; width:70px; height:22px; ">
  1153. <caption>청구서</caption>
  1154. <toggle case="case1" ev:event="onclick"/>
  1155. </button>
  1156. <button id="btn_calcyearseqno" class="btn_sw" group="tab" style="left:70px; top:100px; width:70px; height:22px; ">
  1157. <caption>명세서</caption>
  1158. <toggle case="case2" ev:event="onclick"/>
  1159. </button>
  1160. <button id="btn_chrgnm" class="btn_sw" group="tab" style="left:140px; top:100px; width:62px; height:22px; ">
  1161. <caption>담당자</caption>
  1162. <toggle case="case4" ev:event="onclick"/>
  1163. </button>
  1164. </group>
  1165. </xhtml:body>
  1166. </xhtml:html>