SMPIF00100_진료과개인처방별수정전후집계표조회.xrw 117 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>진료과/개인/처방별 수정전후 집계표 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <send_base>
  11. <ioflag/>
  12. <clamflag/>
  13. <ddflag/>
  14. <fromdd/>
  15. <todd/>
  16. <clamdg/>
  17. <insukindcd/>
  18. <ordfildcd/>
  19. <insukindcd1/>
  20. <insukindcd2/>
  21. <insukindcd3/>
  22. <insukindcd4/>
  23. <insukindcd5/>
  24. <srchond>A</srchond>
  25. <clamdg1/>
  26. <clamdg2/>
  27. <clamdg3/>
  28. <clamdg4/>
  29. <clamdg5/>
  30. <calc>Y</calc>
  31. </send_base>
  32. <send_ind>
  33. <orddeptcd/>
  34. <ioflag/>
  35. <clamflag/>
  36. <ddflag/>
  37. <fromdd/>
  38. <todd/>
  39. <clamdg/>
  40. <insukindcd/>
  41. <ordfildcd/>
  42. <insukindcd1/>
  43. <insukindcd2/>
  44. <insukindcd3/>
  45. <insukindcd4/>
  46. <insukindcd5/>
  47. <sumtypecd/>
  48. <calc/>
  49. </send_ind>
  50. <send_prcp>
  51. <acptno/>
  52. <acptdd/>
  53. <docuseqno/>
  54. <pid/>
  55. <patnm/>
  56. <clamym/>
  57. <ordym/>
  58. <clamtypecd/>
  59. <clamdg/>
  60. <ioflag/>
  61. <clamflagcd/>
  62. <ddflag/>
  63. <fromdd/>
  64. <todd/>
  65. <clamdg/>
  66. <insukindcd/>
  67. <ordfildcd/>
  68. <insukindcd1/>
  69. <insukindcd2/>
  70. <insukindcd3/>
  71. <insukindcd4/>
  72. <insukindcd5/>
  73. <pidsn/>
  74. <orddeptcd/>
  75. </send_prcp>
  76. <send_clamdg>
  77. <fromdd/>
  78. <todd/>
  79. <ioflag/>
  80. <insukind/>
  81. <clamflag/>
  82. <ordfildcd/>
  83. <dateflag/>
  84. </send_clamdg>
  85. <prtoption>
  86. <ioflag>I</ioflag>
  87. <judgtype>B</judgtype>
  88. <clamym/>
  89. <clamflag>0</clamflag>
  90. <calc/>
  91. <printtype>1</printtype>
  92. </prtoption>
  93. </send>
  94. <main>
  95. <list1>
  96. <griddeptfild>
  97. <orddeptcd/>
  98. <depthngnm/>
  99. <deptengabbr/>
  100. <ordfildcd/>
  101. <inhospcnt/>
  102. <inhosptotordamt/>
  103. <inhospnopytotordamt/>
  104. <inhospownbtotamt/>
  105. <inhosppaytotordamt/>
  106. <inhosppayownbamt/>
  107. <inhosppayclamamt/>
  108. <inhospownbmaxexamt/>
  109. <inhospsuppamt/>
  110. <inhospsubtamt/>
  111. <inhosphandcaprfund/>
  112. <omitcnt/>
  113. <omitamt/>
  114. <acptaddamt/>
  115. <acptcutamt/>
  116. <acptamt/>
  117. <bfcnt/>
  118. <bfmedcaretotamt/>
  119. <bfownbamt/>
  120. <bfinsuclamamt/>
  121. <bfownbmaxexamt/>
  122. <bfsuppamt/>
  123. <bfsubtamt/>
  124. <bfhandcaprfund/>
  125. <cntrslt/>
  126. <medcaretotamtrslt/>
  127. <clamaddamtrslt/>
  128. <clamcutamtrslt/>
  129. <clamamtrslt/>
  130. <afcnt/>
  131. <afmedcaretotamt/>
  132. <afownbamt/>
  133. <afinsuclamamt/>
  134. <afownbmaxexamt/>
  135. <afsuppamt/>
  136. <afsubtamt/>
  137. <afhandcaprfund/>
  138. <ordym/>
  139. <clamym/>
  140. <clamflagcd/>
  141. <clamdg/>
  142. <acptdd/>
  143. <acptno/>
  144. </griddeptfild>
  145. </list1>
  146. <list2>
  147. <gridindprescond>
  148. <acptno/>
  149. <acptdd/>
  150. <docuseqno/>
  151. <pid/>
  152. <patnm/>
  153. <clamym/>
  154. <clamtypecd/>
  155. <clamdg/>
  156. <insusubflag/>
  157. <assomark/>
  158. <nm/>
  159. <supp/>
  160. <apprate/>
  161. <ordfildcd/>
  162. <orddeptcd/>
  163. <clamdeptcd/>
  164. <judgrid/>
  165. <atdoctnm/>
  166. <atdoctid/>
  167. <inhospcnt/>
  168. <inhosptotordamt/>
  169. <inhosppaytotordamt/>
  170. <inhospnopytotordamt/>
  171. <inhospownbtotamt/>
  172. <inhosppayownbamt/>
  173. <inhosppayclamamt/>
  174. <inhospownbmaxexamt/>
  175. <inhospsuppamt/>
  176. <inhospsubtamt/>
  177. <inhosphandcaprfund/>
  178. <omitcnt/>
  179. <omitamt/>
  180. <acptaddamt/>
  181. <acptcutamt/>
  182. <acptamt/>
  183. <bfcnt/>
  184. <bfmedcaretotamt/>
  185. <bfnopytotordamt/>
  186. <bfpaytotordamt/>
  187. <bfpayownbamt/>
  188. <bfpayclamamt/>
  189. <bfownbmaxexamt/>
  190. <bfsuppamt/>
  191. <bfsubtamt/>
  192. <bfhandcaprfund/>
  193. <cntrslt/>
  194. <medcaretotamtrslt/>
  195. <clamaddamtrslt/>
  196. <clamcutamtrslt/>
  197. <clamamtrslt/>
  198. <afcnt/>
  199. <afpaytotordamt/>
  200. <afpayownbamt/>
  201. <afpayclamamt/>
  202. <afownbmaxexamt/>
  203. <afsuppamt/>
  204. <afsubtamt/>
  205. <afhandcaprfund/>
  206. <pidsn/>
  207. </gridindprescond>
  208. </list2>
  209. <list3>
  210. <gridindprcpspec>
  211. <item1/>
  212. <item2/>
  213. <grupcalcscorcd/>
  214. <snglcalcscorcd/>
  215. <basecd/>
  216. <hngnm/>
  217. <rcptcalcamt/>
  218. <insudiffamt/>
  219. <afttims/>
  220. <aftdayno/>
  221. <aftamt/>
  222. <bfrtims/>
  223. <bfrdayno/>
  224. <bframt/>
  225. <difamt/>
  226. <estmyn/>
  227. </gridindprcpspec>
  228. <info>
  229. <pid/>
  230. <patnm/>
  231. <ordfildcd/>
  232. <orddeptcd/>
  233. </info>
  234. </list3>
  235. <list4>
  236. <amtsumtable/>
  237. </list4>
  238. </main>
  239. <init>
  240. <insukindcdlist>
  241. <insukindcd>
  242. <label>보험</label>
  243. <value>1</value>
  244. </insukindcd>
  245. <insukindcd>
  246. <label>급여</label>
  247. <value>2</value>
  248. </insukindcd>
  249. <insukindcd>
  250. <label>자보</label>
  251. <value>3</value>
  252. </insukindcd>
  253. <insukindcd>
  254. <label>산재</label>
  255. <value>4</value>
  256. </insukindcd>
  257. </insukindcdlist>
  258. <P0291list>
  259. <P0291>
  260. <cdid/>
  261. <cdnm/>
  262. </P0291>
  263. </P0291list>
  264. <P0155list>
  265. <P0155>
  266. <cdid/>
  267. <cdnm/>
  268. </P0155>
  269. </P0155list>
  270. <P0010list>
  271. <P0010>
  272. <cdid/>
  273. <cdnm/>
  274. </P0010>
  275. </P0010list>
  276. <P0426list>
  277. </P0426list>
  278. <clamdglist>
  279. <clamdg>
  280. <cdid/>
  281. <cdnm/>
  282. </clamdg>
  283. </clamdglist>
  284. <P0151list>
  285. <P0151>
  286. <cdid/>
  287. <cdnm/>
  288. </P0151>
  289. </P0151list>
  290. <P0471list>
  291. <P0471>
  292. <cdid/>
  293. <cdnm/>
  294. </P0471>
  295. </P0471list>
  296. </init>
  297. <hidden/>
  298. </root>
  299. </instance>
  300. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  301. <submission id="TRPIF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_base" resultref="/root/main/list1"/>
  302. <submission id="TRPIF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_ind" resultref="/root/main/list2"/>
  303. <submission id="TRPIF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_prcp" resultref="/root/main/list3"/>
  304. <submission id="TRPIF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_base"/>
  305. <submission id="TRPIF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamdg" resultref="/root/init/clamdglist/clamdg"/>
  306. <submission id="TRPIF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_prcp" resultref="/root/main/list3"/>
  307. <submission id="TRPIF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prtoption" resultref="/root/main/list4"/>
  308. </model>
  309. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  310. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  311. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  312. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  313. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  314. <script type="javascript" ev:event="xforms-ready">
  315. <![CDATA[
  316. // 공통코드 Load작업
  317. CommCode_Load();
  318. //과별분야별 그리드 컬럼고정
  319. grd_deptfild.frozenCols = grd_deptfild.colRef("deptengabbr");
  320. //개인별 그리드 컬럼고정
  321. grd_indprescond.frozenCols = grd_indprescond.colRef("docuseqno");
  322. // 초기화작업
  323. fInitialize();
  324. // model.refresh();
  325. ]]>
  326. </script>
  327. <script type="javascript">
  328. <![CDATA[
  329. // 공통코드 Load작업
  330. function CommCode_Load(){
  331. zbcfGetCodeList(new Array("P0291","P0155","P0010","P0426", "P0151", "P0471"),
  332. new Array( "/root/init/P0291list","/root/init/P0155list","/root/init/P0010list","/root/init/P0426list", "/root/init/P0151list", "/root/init/P0471list")); // P0291(진료분야(심사청구서)), P0155(청구상태), P0010(보조유형코드),P0426(청구구분-청구서)
  333. }
  334. // 초기화
  335. function fInitialize(){
  336. // 각 조건 초기값 적용
  337. cmb_ioflag.value = 'I'; // 내원유형 : 1.입원
  338. cmb_ordfildcd.value = ""; // 청구분야 : 빈값
  339. cmb_clamflag.value = '0'; // 청구구분 : 0.원청구
  340. ipt_fromdd.value = getCurrentDate(); // 미수년월 : 오늘
  341. // fDateChk();
  342. // cmb_clamdg.value = '1'; // 청구차수 : 1
  343. // addComboItem("cmb_clamdg","1","","above");
  344. // cmb_clamdg.refresh();
  345. /*
  346. model.makeValue("/root/init/clamdglist/clamdg/cdid", "1");
  347. model.makeValue("/root/init/clamdglist/clamdg/cdnm", "1");
  348. copyNodeType("/root/send/send_base/clamdg", "/root/init/clamdglist/clamdg", "after");
  349. */
  350. //model.alert(model.getValue("/root/send/send_base/clamdg"));
  351. //model.setValue("/root/send/send_base/clamdg", model.getValue("/root/init/clamdglist/clamdg/cdid"));
  352. //model.alert(model.getValue("/root/send/send_base/clamdg"));
  353. //차수상태
  354. cmb_clamdg.disabled = false;
  355. input1.disabled = true;
  356. input2.disabled = true;
  357. input3.disabled = true;
  358. input4.disabled = true;
  359. input5.disabled = true;
  360. input1.value = "";
  361. input2.value = "";
  362. input3.value = "";
  363. input4.value = "";
  364. input5.value = "";
  365. chk_insukindcd.value = "11"; // 보험유형 : 11.보험
  366. cmb_clamflag.visible = true;
  367. model.setValue("/root/send/send_base/srchond", "A");
  368. //버튼 숨김
  369. button8.visible = false; //파일생성버튼 숨김
  370. button9.visible = false; //파일다운로드 버튼 숨김
  371. button1.visible = true; //조회 버튼 보이기
  372. button11.visible = true; //과별 엑셀 저장 보이기
  373. button4.visible = false; //개인별 엑셀 저장 숨김
  374. button6.visible = false; //처방내역 엑셀 저장 숨김
  375. // 각 그리드 초기화
  376. model.removeNodeset("/root/main/list1/griddeptfild");
  377. model.removeNodeset("/root/main/list2/gridindprescond");
  378. model.removeNodeset("/root/main/list3/gridindprcpspec");
  379. model.refresh();
  380. //addComboItem("cmb_clamdg","1","","above");
  381. //cmb_clamdg.refresh();
  382. model.setValue("/root/send/send_base/clamdg","1");
  383. }
  384. // 조회조건 확인
  385. function fSrchChk(){
  386. // 보험유형 다중선택할 경우.
  387. var insukindcd = model.getValue("/root/send/send_base/insukindcd");
  388. var insukindcdlength = insukindcd.length;
  389. if (insukindcd == "00") {
  390. model.setValue("/root/send/send_base/insukindcd1","XX");
  391. model.setValue("/root/send/send_base/insukindcd2","XX");
  392. model.setValue("/root/send/send_base/insukindcd3","XX");
  393. model.setValue("/root/send/send_base/insukindcd4","XX");
  394. model.setValue("/root/send/send_base/insukindcd5","ALL");
  395. } else {
  396. if (insukindcdlength > 1) {
  397. var insukindcd1 = insukindcd.substr(0,2);
  398. var insukindcd2 = insukindcd.substr(3,2);
  399. var insukindcd3 = insukindcd.substr(6,2);
  400. var insukindcd4 = insukindcd.substr(9,2);
  401. model.setValue("/root/send/send_base/insukindcd1",insukindcd1);
  402. model.setValue("/root/send/send_base/insukindcd2",insukindcd2);
  403. model.setValue("/root/send/send_base/insukindcd3",insukindcd3);
  404. model.setValue("/root/send/send_base/insukindcd4",insukindcd4);
  405. if (insukindcd1 == "21" || insukindcd2 == "21" ||insukindcd3 == "21" ||insukindcd4 == "21")
  406. model.setValue("/root/send/send_base/insukindcd5","22");
  407. else if (insukindcd1 == "11" || insukindcd2 == "11" ||insukindcd3 == "11" ||insukindcd4 == "11")
  408. model.setValue("/root/send/send_base/insukindcd5","42");
  409. else
  410. model.setValue("/root/send/send_base/insukindcd5","XX");
  411. if (model.getValue("/root/send/send_base/insukindcd1") == "")
  412. model.setValue("/root/send/send_base/insukindcd1","XX");
  413. if (model.getValue("/root/send/send_base/insukindcd2") == "")
  414. model.setValue("/root/send/send_base/insukindcd2","XX");
  415. if (model.getValue("/root/send/send_base/insukindcd3") == "")
  416. model.setValue("/root/send/send_base/insukindcd3","XX");
  417. if (model.getValue("/root/send/send_base/insukindcd4") == "")
  418. model.setValue("/root/send/send_base/insukindcd4","XX");
  419. }
  420. }
  421. // 미수월과 진료월의 년월만 갖기
  422. var fromdd = model.getValue("/root/send/send_base/fromdd");
  423. //var todd = model.getValue("/root/send/send_base/todd");
  424. var fromdd1 = fromdd.substr(0,6);
  425. //var todd1 = todd.substr(0,6);
  426. model.setValue("/root/send/send_base/fromdd", fromdd1);
  427. //model.setValue("/root/send/send_base/todd", todd1);
  428. var clamdg1 = model.getValue("/root/send/send_base/clamdg1");
  429. var clamdg2 = model.getValue("/root/send/send_base/clamdg2");
  430. var clamdg3 = model.getValue("/root/send/send_base/clamdg3");
  431. var clamdg4 = model.getValue("/root/send/send_base/clamdg4");
  432. var clamdg5 = model.getValue("/root/send/send_base/clamdg5");
  433. if(clamdg1 == "" || clamdg1 == " "){
  434. model.setValue("/root/send/send_base/clamdg1", "0")
  435. }
  436. if(clamdg2 == "" || clamdg2 == " "){
  437. model.setValue("/root/send/send_base/clamdg2", "0")
  438. }
  439. if(clamdg3 == "" || clamdg3 == " "){
  440. model.setValue("/root/send/send_base/clamdg3", "0")
  441. }
  442. if(clamdg4 == "" || clamdg4 == " "){
  443. model.setValue("/root/send/send_base/clamdg4", "0")
  444. }
  445. if(clamdg5 == "" || clamdg5 == " "){
  446. model.setValue("/root/send/send_base/clamdg5", "0")
  447. }
  448. return true;
  449. }
  450. //과별/분야별 subtotal
  451. // 20110105 JHP 재원, 사전, 사후 긴급지원금, 희귀지원금 추가에 따른 subtotal증가
  452. function fDeptFildSubtotal(){
  453. grd_deptfild.subtotalposition= "below";
  454. grd_deptfild.subtotal("sum",4,5,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", false);
  455. grd_deptfild.subtotal("sum",4,6,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  456. grd_deptfild.subtotal("sum",4,7,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  457. grd_deptfild.subtotal("sum",4,8,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  458. grd_deptfild.subtotal("sum",4,9,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  459. grd_deptfild.subtotal("sum",4,10,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  460. grd_deptfild.subtotal("sum",4,11,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  461. grd_deptfild.subtotal("sum",4,12,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  462. grd_deptfild.subtotal("sum",4,13,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  463. grd_deptfild.subtotal("sum",4,14,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  464. grd_deptfild.subtotal("sum",4,15,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  465. grd_deptfild.subtotal("sum",4,16,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  466. grd_deptfild.subtotal("sum",4,17,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  467. grd_deptfild.subtotal("sum",4,18,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  468. grd_deptfild.subtotal("sum",4,19,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  469. grd_deptfild.subtotal("sum",4,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  470. grd_deptfild.subtotal("sum",4,21,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  471. grd_deptfild.subtotal("sum",4,22,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  472. grd_deptfild.subtotal("sum",4,23,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  473. grd_deptfild.subtotal("sum",4,24,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  474. grd_deptfild.subtotal("sum",4,25,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  475. grd_deptfild.subtotal("sum",4,26,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  476. grd_deptfild.subtotal("sum",4,27,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  477. grd_deptfild.subtotal("sum",4,28,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  478. grd_deptfild.subtotal("sum",4,29,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  479. grd_deptfild.subtotal("sum",4,30,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  480. grd_deptfild.subtotal("sum",4,31,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  481. grd_deptfild.subtotal("sum",4,32,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  482. grd_deptfild.subtotal("sum",4,33,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  483. grd_deptfild.subtotal("sum",4,34,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  484. grd_deptfild.subtotal("sum",4,35,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  485. grd_deptfild.subtotal("sum",4,36,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  486. grd_deptfild.subtotal("sum",4,37,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  487. grd_deptfild.subtotal("sum",4,38,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  488. grd_deptfild.subtotal("sum",4,39,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  489. grd_deptfild.subtotal("sum",4,40,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  490. grd_deptfild.subtotal("sum",4,41,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  491. grd_deptfild.subtotal("sum",4,42,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  492. grd_deptfild.subtotal("sum",4,43,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  493. grd_deptfild.subtotal("sum",4,44,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  494. grd_deptfild.subtotal("sum",4,45,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  495. grd_deptfild.subtotal("sum",4,46,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  496. grd_deptfild.subtotal("sum",4,47,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  497. grd_deptfild.subtotal("sum",4,48,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  498. grd_deptfild.subtotal("sum",4,49,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  499. grd_deptfild.subtotal("sum",4,50,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  500. grd_deptfild.subtotal("sum",4,51,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  501. grd_deptfild.subtotal("sum",4,52,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  502. grd_deptfild.subtotal("sum",4,53,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  503. grd_deptfild.subtotal("sum",4,54,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  504. grd_deptfild.subtotal("sum",4,55,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  505. grd_deptfild.subtotal("sum",4,56,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  506. grd_deptfild.subtotal("sum",4,57,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 4, "분야계", true);
  507. grd_deptfild.subtotal("sum",-1,5,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", false);
  508. grd_deptfild.subtotal("sum",-1,6,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  509. grd_deptfild.subtotal("sum",-1,7,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  510. grd_deptfild.subtotal("sum",-1,8,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  511. grd_deptfild.subtotal("sum",-1,9,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  512. grd_deptfild.subtotal("sum",-1,10,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  513. grd_deptfild.subtotal("sum",-1,11,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  514. grd_deptfild.subtotal("sum",-1,12,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  515. grd_deptfild.subtotal("sum",-1,13,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  516. grd_deptfild.subtotal("sum",-1,14,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  517. grd_deptfild.subtotal("sum",-1,15,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  518. grd_deptfild.subtotal("sum",-1,16,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  519. grd_deptfild.subtotal("sum",-1,17,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  520. grd_deptfild.subtotal("sum",-1,18,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  521. grd_deptfild.subtotal("sum",-1,19,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  522. grd_deptfild.subtotal("sum",-1,20,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  523. grd_deptfild.subtotal("sum",-1,21,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  524. grd_deptfild.subtotal("sum",-1,22,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  525. grd_deptfild.subtotal("sum",-1,23,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  526. grd_deptfild.subtotal("sum",-1,24,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  527. grd_deptfild.subtotal("sum",-1,25,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  528. grd_deptfild.subtotal("sum",-1,26,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  529. grd_deptfild.subtotal("sum",-1,27,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  530. grd_deptfild.subtotal("sum",-1,28,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  531. grd_deptfild.subtotal("sum",-1,29,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  532. grd_deptfild.subtotal("sum",-1,30,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  533. grd_deptfild.subtotal("sum",-1,31,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  534. grd_deptfild.subtotal("sum",-1,32,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  535. grd_deptfild.subtotal("sum",-1,33,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  536. grd_deptfild.subtotal("sum",-1,34,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  537. grd_deptfild.subtotal("sum",-1,35,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  538. grd_deptfild.subtotal("sum",-1,36,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  539. grd_deptfild.subtotal("sum",-1,37,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  540. grd_deptfild.subtotal("sum",-1,38,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  541. grd_deptfild.subtotal("sum",-1,39,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  542. grd_deptfild.subtotal("sum",-1,40,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  543. grd_deptfild.subtotal("sum",-1,41,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  544. grd_deptfild.subtotal("sum",-1,42,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  545. grd_deptfild.subtotal("sum",-1,43,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  546. grd_deptfild.subtotal("sum",-1,44,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  547. grd_deptfild.subtotal("sum",-1,45,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  548. grd_deptfild.subtotal("sum",-1,46,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  549. grd_deptfild.subtotal("sum",-1,47,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  550. grd_deptfild.subtotal("sum",-1,48,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  551. grd_deptfild.subtotal("sum",-1,49,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  552. grd_deptfild.subtotal("sum",-1,50,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  553. grd_deptfild.subtotal("sum",-1,51,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  554. grd_deptfild.subtotal("sum",-1,52,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  555. grd_deptfild.subtotal("sum",-1,53,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  556. grd_deptfild.subtotal("sum",-1,54,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  557. grd_deptfild.subtotal("sum",-1,55,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  558. grd_deptfild.subtotal("sum",-1,56,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  559. grd_deptfild.subtotal("sum",-1,57,"format:(-)#,###; roundmode:round; roundposition:0", "background-color:#ffff00; color:#0000ff; ", 3, "총계", true);
  560. // 총계 row에 merge를 한다.
  561. //grd_deptfild.mergeByFree(grd_deptfild.rows - 0,3,grd_deptfild.rows - 0,4);
  562. //grd_deptfild.cellStyle("text-align",grd_deptfild.rows - 0,3,grd_deptfild.rows - 0,4) = "center";
  563. }
  564. function fSendIndCopy(){
  565. model.setValue("/root/send/send_ind/ioflag",model.getValue("/root/send/send_base/ioflag"));
  566. model.setValue("/root/send/send_ind/fromdd",model.getValue("/root/send/send_base/fromdd"));
  567. model.setValue("/root/send/send_ind/clamflag",model.getValue("/root/send/send_base/clamflag"));
  568. model.setValue("/root/send/send_ind/clamdg",model.getValue("/root/send/send_base/clamdg"));
  569. model.setValue("/root/send/send_ind/insukindcd",model.getValue("/root/send/send_base/insukindcd"));
  570. model.setValue("/root/send/send_ind/ordfildcd",model.getValue("/root/send/send_base/ordfildcd"));
  571. model.setValue("/root/send/send_ind/insukindcd1",model.getValue("/root/send/send_base/insukindcd1"));
  572. model.setValue("/root/send/send_ind/insukindcd2",model.getValue("/root/send/send_base/insukindcd2"));
  573. model.setValue("/root/send/send_ind/insukindcd3",model.getValue("/root/send/send_base/insukindcd3"));
  574. model.setValue("/root/send/send_ind/insukindcd4",model.getValue("/root/send/send_base/insukindcd4"));
  575. model.setValue("/root/send/send_ind/insukindcd5",model.getValue("/root/send/send_base/insukindcd5"));
  576. model.setValue("/root/send/send_ind/calc",model.getValue("/root/send/send_base/calc"));
  577. return true;
  578. }
  579. function fSendPrcpCopy(){
  580. model.setValue("/root/send/send_prcp/clamym",model.getValue("/root/send/send_base/clamym"));
  581. model.setValue("/root/send/send_prcp/clamdg",model.getValue("/root/send/send_base/clamdg"));
  582. model.setValue("/root/send/send_prcp/pid",model.getValue("/root/send/send_base/pid"));
  583. model.setValue("/root/send/send_prcp/pidsn",model.getValue("/root/send/send_base/pidsn"));
  584. return true;
  585. }
  586. // 20110105 JHP 재원, 사전, 사후 긴급지원금, 희귀지원금 추가에 따른 숨김 변경
  587. function fHiddenColumnBase(){
  588. var insukindcd = model.getValue("/root/send/send_base/insukindcd");
  589. var insukindone = insukindcd.substr(0,2);
  590. var insukindtwo = insukindcd.substr(3,2);
  591. var insukindthree = insukindcd.substr(6,2);
  592. var insukindfour = insukindcd.substr(9,2);
  593. var ioflag = model.getValue("/root/send/send_base/ioflag");
  594. /*
  595. if(ioflag == "O"){
  596. grd_deptfild.colHidden(grd_deptfild.colRef("inhospcnt")) = false; // 건수 숨김
  597. grd_deptfild.colHidden(grd_deptfild.colRef("inhosptotordamt")) = false; // 총진료비 숨김
  598. grd_deptfild.colHidden(grd_deptfild.colRef("inhospnopytotordamt")) = false; // 비급여총진료비 숨김
  599. grd_deptfild.colHidden(grd_deptfild.colRef("inhospownbtotamt")) = false; // 본인부담총액 숨김
  600. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppaytotordamt")) = false; // 급여총진료비 숨김
  601. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppayownbamt")) = false; // 급여본인부담금 숨김
  602. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppayclamamt")) = false; // 급여청구액 숨김
  603. grd_deptfild.colHidden(grd_deptfild.colRef("inhospownbmaxexamt")) = false; // 상한액 숨김
  604. grd_deptfild.colHidden(grd_deptfild.colRef("hinhospsuppamt")) = false; // 희귀지원금 숨김
  605. grd_deptfild.colHidden(grd_deptfild.colRef("linhospsuppamt")) = false; // 장애인 숨김
  606. grd_deptfild.colHidden(grd_deptfild.colRef("inhosphandcaprfund")) = false; // 긴급지원금 숨김
  607. grd_deptfild.colHidden(grd_deptfild.colRef("ginhospsuppamt")) = false; // 지원금 숨김
  608. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsuppamt")) = false; // 대불금 숨김
  609. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = false; // 인수증액 숨김
  610. grd_deptfild.colHidden(grd_deptfild.colRef("inhosplimitdiffamt")) = false; // 인수감액 숨김
  611. grd_deptfild.colHidden(grd_deptfild.colRef("acptaddamt")) = false; // 인수차액 숨김
  612. grd_deptfild.colHidden(grd_deptfild.colRef("acptcutamt")) = false; // 인수차액 숨김
  613. grd_deptfild.colHidden(grd_deptfild.colRef("acptamt")) = false; // 인수차액 숨김
  614. }else if(ioflag == "I"){
  615. grd_deptfild.colHidden(grd_deptfild.colRef("inhospcnt")) = false; // 건수 숨김
  616. grd_deptfild.colHidden(grd_deptfild.colRef("inhosptotordamt")) = false; // 총진료비 숨김
  617. grd_deptfild.colHidden(grd_deptfild.colRef("inhospnopytotordamt")) = false; // 비급여총진료비 숨김
  618. grd_deptfild.colHidden(grd_deptfild.colRef("inhospownbtotamt")) = false; // 본인부담총액 숨김
  619. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppaytotordamt")) = false; // 급여총진료비 숨김
  620. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppayownbamt")) = false; // 급여본인부담금 숨김
  621. grd_deptfild.colHidden(grd_deptfild.colRef("inhosppayclamamt")) = false; // 급여청구액 숨김
  622. grd_deptfild.colHidden(grd_deptfild.colRef("inhospownbmaxexamt")) = false; // 상한액 숨김
  623. grd_deptfild.colHidden(grd_deptfild.colRef("hinhospsuppamt")) = false; // 희귀지원금 숨김
  624. grd_deptfild.colHidden(grd_deptfild.colRef("linhospsuppamt")) = false; // 장애인 숨김
  625. grd_deptfild.colHidden(grd_deptfild.colRef("inhosphandcaprfund")) = false; // 긴급지원금 숨김
  626. grd_deptfild.colHidden(grd_deptfild.colRef("ginhospsuppamt")) = false; // 지원금 숨김
  627. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsuppamt")) = false; // 대불금 숨김
  628. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = false; // 인수증액 숨김
  629. grd_deptfild.colHidden(grd_deptfild.colRef("inhosplimitdiffamt")) = false; // 인수감액 숨김
  630. grd_deptfild.colHidden(grd_deptfild.colRef("acptaddamt")) = false; // 인수차액 숨김
  631. grd_deptfild.colHidden(grd_deptfild.colRef("acptcutamt")) = false; // 인수차액 숨김
  632. grd_deptfild.colHidden(grd_deptfild.colRef("acptamt")) = false; // 인수차액 숨김
  633. }
  634. */
  635. // 4개중에 한개라도 보험을 선택했으면 보험에 해당하는 컬럼만 보인다
  636. if(insukindone == "11" || insukindtwo == "11" || insukindthree == "11" || insukindfour == "11"){
  637. //재원금액
  638. //grd_deptfild.colHidden(15) = true; // 대불금 숨김
  639. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = true; // 대불금 숨김
  640. //심사전
  641. //grd_deptfild.colHidden(26) = true; // 대불금 숨김
  642. grd_deptfild.colHidden(grd_deptfild.colRef("bfsubtamt")) = true; // 대불금 숨김
  643. //심사후
  644. //grd_deptfild.colHidden(45) = true; // 대불금 숨김
  645. grd_deptfild.colHidden(grd_deptfild.colRef("afsubtamt")) = true; // 대불금 숨김
  646. }
  647. // 4개중에 한개라도 보호을 선택했으면 보호에 해당하는 컬럼만 보인다
  648. if(insukindone == "21" || insukindtwo == "21" || insukindthree == "21" || insukindfour == "21"){
  649. /*
  650. //재원금액
  651. if(ioflag == "I"){
  652. grd_deptfild.colHidden(15) = false; // 대불금 보이기
  653. }
  654. */
  655. //재원금액
  656. //grd_deptfild.colHidden(15) = false; // 대불금 보이기
  657. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = false; // 대불금 보이기
  658. //심사전
  659. //grd_deptfild.colHidden(27) = false; // 대불금 보이기
  660. grd_deptfild.colHidden(grd_deptfild.colRef("bfsubtamt")) = false; // 대불금 보이기
  661. //심사후
  662. //grd_deptfild.colHidden(45) = false; // 대불금 보이기
  663. grd_deptfild.colHidden(grd_deptfild.colRef("afsubtamt")) = false; // 대불금 보이기
  664. }
  665. // 4개중에 한개라도 자보를 선택했으면 그냥 다 보여준다.
  666. if(insukindone == "31" || insukindtwo == "31" || insukindthree == "31" || insukindfour == "31"){
  667. //재원금액
  668. //grd_deptfild.colHidden(15) = true; // 대불금 숨김
  669. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = true; // 대불금 숨김
  670. //심사전
  671. //grd_deptfild.colHidden(27) = true; // 대불금 숨김
  672. grd_deptfild.colHidden(grd_deptfild.colRef("bfsubtamt")) = true; // 대불금 숨김
  673. //심사후
  674. //grd_deptfild.colHidden(45) = true; // 대불금 숨김
  675. grd_deptfild.colHidden(grd_deptfild.colRef("afsubtamt")) = true; // 대불금 숨김
  676. }
  677. // 4개중에 한개라도 산재를 선택했으면 그냥 다 보여준다.
  678. if(insukindone == "41" || insukindtwo == "41" || insukindthree == "41" || insukindfour == "41"){
  679. //재원금액
  680. //grd_deptfild.colHidden(15) = true; // 대불금 숨김
  681. grd_deptfild.colHidden(grd_deptfild.colRef("inhospsubtamt")) = true; // 대불금 숨김
  682. //심사전
  683. //grd_deptfild.colHidden(27) = true; // 대불금 숨김
  684. grd_deptfild.colHidden(grd_deptfild.colRef("bfsubtamt")) = true; // 대불금 숨김
  685. //심사후
  686. //grd_deptfild.colHidden(46) = true; // 대불금 숨김
  687. grd_deptfild.colHidden(grd_deptfild.colRef("afsubtamt")) = true; // 대불금 숨김
  688. }
  689. }
  690. // 20110105 JHP 재원, 사전, 사후 긴급지원금, 희귀지원금 추가에 따른 숨김 변경(개인)
  691. function fHiddenColumnInd(){
  692. var insukindcd = model.getValue("/root/send/send_base/insukindcd");
  693. var insukindone = insukindcd.substr(0,2);
  694. var insukindtwo = insukindcd.substr(3,2);
  695. var insukindthree = insukindcd.substr(6,2);
  696. var insukindfour = insukindcd.substr(9,2);
  697. var ioflag = model.getValue("/root/send/send_base/ioflag");
  698. /*
  699. if(ioflag == "O"){
  700. //재원금액
  701. grd_indprescond.colHidden(24) = false; // 총진료비 숨김
  702. grd_indprescond.colHidden(25) = false; // 급여진료비 숨김
  703. grd_indprescond.colHidden(26) = false; // 비급여진료비 숨김
  704. grd_indprescond.colHidden(27) = false; // 본인부담액 숨김
  705. grd_indprescond.colHidden(28) = false; // 급여본인부담금 숨김
  706. grd_indprescond.colHidden(29) = false; // 급여청구액 숨김
  707. grd_indprescond.colHidden(30) = false; // 상한액 숨김
  708. grd_indprescond.colHidden(31) = false; // 희귀지원금 숨김
  709. grd_indprescond.colHidden(32) = false; // 장애인 숨김
  710. grd_indprescond.colHidden(33) = false; // 긴급지원금 숨김
  711. grd_indprescond.colHidden(34) = false; // 지원금 숨김
  712. grd_indprescond.colHidden(35) = false; // 대불금 숨김
  713. grd_indprescond.colHidden(36) = false; // 인수증액 숨김
  714. grd_indprescond.colHidden(37) = false; // 인수감액 숨김
  715. grd_indprescond.colHidden(38) = false; // 인수차액 숨김
  716. }else if(ioflag == "I"){
  717. //재원금액
  718. grd_indprescond.colHidden(24) = false; // 총진료비 보이기
  719. grd_indprescond.colHidden(25) = false; // 급여진료비 보이기
  720. grd_indprescond.colHidden(26) = false; // 비급여진료비 보이기
  721. grd_indprescond.colHidden(27) = false; // 본인부담액 보이기
  722. grd_indprescond.colHidden(28) = false; // 급여본인부담금 보이기
  723. grd_indprescond.colHidden(29) = false; // 급여청구액 보이기
  724. grd_indprescond.colHidden(30) = false; // 상한액 보이기
  725. grd_indprescond.colHidden(31) = false; // 희귀지원금 보이기
  726. grd_indprescond.colHidden(32) = false; // 장애인 보이기
  727. grd_indprescond.colHidden(33) = false; // 긴급지원금 보이기
  728. grd_indprescond.colHidden(34) = false; // 지원금 보이기
  729. grd_indprescond.colHidden(35) = false; // 대불금 보이기
  730. grd_indprescond.colHidden(36) = false; // 인수증액 보이기
  731. grd_indprescond.colHidden(37) = false; // 인수감액 보이기
  732. grd_indprescond.colHidden(38) = false; // 인수차액 보이기
  733. }
  734. */
  735. // 4개중에 한개라도 보험을 선택했으면 보험에 해당하는 컬럼만 보인다
  736. if(insukindone == "11" || insukindtwo == "11" || insukindthree == "11" || insukindfour == "11"){
  737. //재원금액
  738. //grd_indprescond.colHidden(33) = true; // 대불금 건수 숨김
  739. grd_indprescond.colHidden(grd_indprescond.colRef("inhospsubtamt")) = true; // 대불금 건수 숨김
  740. //심사전
  741. //grd_indprescond.colHidden(43) = true; // 대불금 건수 숨김
  742. grd_indprescond.colHidden(grd_indprescond.colRef("bfsubtamt")) = true; // 대불금 건수 숨김
  743. //심사후
  744. //grd_indprescond.colHidden(53) = true; // 대불금 건수 숨김
  745. grd_indprescond.colHidden(grd_indprescond.colRef("afsubtamt")) = true; // 대불금 건수 숨김
  746. }
  747. // 4개중에 한개라도 보호을 선택했으면 보호에 해당하는 컬럼만 보인다
  748. if(insukindone == "21" || insukindtwo == "21" || insukindthree == "21" || insukindfour == "21"){
  749. /*
  750. //재원금액
  751. if(ioflag == "I"){
  752. grd_indprescond.colHidden(33) = false; // 대불금 건수 보이기
  753. }
  754. */
  755. //재원금액
  756. //grd_indprescond.colHidden(33) = false; // 대불금 보이기
  757. grd_indprescond.colHidden(grd_indprescond.colRef("inhospsubtamt")) = false; // 대불금 보이기
  758. //심사전
  759. //grd_indprescond.colHidden(43) = false; // 대불금 보이기
  760. grd_indprescond.colHidden(grd_indprescond.colRef("bfsubtamt")) = false; // 대불금 보이기
  761. //심사후
  762. //grd_indprescond.colHidden(53) = false; // 대불금 건수 보이기
  763. grd_indprescond.colHidden(grd_indprescond.colRef("afsubtamt")) = false; // 대불금 건수 보이기
  764. }
  765. // 4개중에 한개라도 자보를 선택했으면 그냥 다 보여준다.
  766. if(insukindone == "31" || insukindtwo == "31" || insukindthree == "31" || insukindfour == "31"){
  767. //재원금액
  768. //grd_indprescond.colHidden(33) = true; // 대불금 건수 숨김
  769. grd_indprescond.colHidden(grd_indprescond.colRef("inhospsubtamt")) = true; // 대불금 건수 숨김
  770. //심사전
  771. //grd_indprescond.colHidden(43) = true; // 대불금 건수 숨김
  772. grd_indprescond.colHidden(grd_indprescond.colRef("bfsubtamt")) = true; // 대불금 건수 숨김
  773. //심사후
  774. //grd_indprescond.colHidden(53) = true; // 대불금 건수 숨김
  775. grd_indprescond.colHidden(grd_indprescond.colRef("afsubtamt")) = true; // 대불금 건수 숨김
  776. }
  777. // 4개중에 한개라도 산재를 선택했으면 그냥 다 보여준다.
  778. if(insukindone == "41" || insukindtwo == "41" || insukindthree == "41" || insukindfour == "41"){
  779. //재원금액
  780. //grd_indprescond.colHidden(33) = true; // 대불금 건수 숨김
  781. grd_indprescond.colHidden(grd_indprescond.colRef("inhospsubtamt")) = true; // 대불금 건수 숨김
  782. //심사전
  783. //grd_indprescond.colHidden(43) = true; // 대불금 건수 숨김
  784. grd_indprescond.colHidden(grd_indprescond.colRef("bfsubtamt")) = true; // 대불금 건수 숨김
  785. //심사후
  786. //grd_indprescond.colHidden(53) = true; // 대불금 건수 숨김
  787. grd_indprescond.colHidden(grd_indprescond.colRef("afsubtamt")) = true; // 대불금 건수 숨김
  788. }
  789. }
  790. function fOrdFildCdFlag(){
  791. var rows = grd_deptfild.rows;
  792. var frows = grd_deptfild.fixedRows;
  793. var nrows = rows - frows;
  794. var abbr1 = "0";
  795. var abbr2 = "0";
  796. var fild1 = "0";
  797. var fild2 = "0";
  798. for(var i = 0; i <= nrows; i++){
  799. fild2 = fild1;
  800. var fild1 = grd_deptfild.valueMatrix(i, 4);
  801. if(fild1 == "분야계" && fild2 != ""){
  802. if(fild2 == "1"){
  803. grd_deptfild.valueMatrix(i, 3) = "내과분야";
  804. }else if(fild2 == "2"){
  805. grd_deptfild.valueMatrix(i, 3) = "외과분야";
  806. }else if(fild2 == "3"){
  807. grd_deptfild.valueMatrix(i, 3) = "산소분야";
  808. }else if(fild2 == "4"){
  809. grd_deptfild.valueMatrix(i, 3) = "안이분야";
  810. }else if(fild2 == "5"){
  811. grd_deptfild.valueMatrix(i, 3) = "피비분야";
  812. }else if(fild2 == "6"){
  813. grd_deptfild.valueMatrix(i, 3) = "치과분야";
  814. }else if(fild2 == ""){
  815. grd_deptfild.valueMatrix(i, 3) = "기타";
  816. } else if(fild2 == "B"){
  817. grd_deptfild.valueMatrix(i, 3) = "완화의료";
  818. } else if(fild2 == "D"){
  819. grd_deptfild.valueMatrix(i, 3) = "DRG";
  820. }
  821. }
  822. }
  823. model.refresh();
  824. }
  825. // 20110105 JHP 긴급지원금, 희귀지원금 추가에 따른 컬럼추가 에 따른 재원, 사전, 사후 각 컬럼 조정작업
  826. function fSubTotalMove(){
  827. var rows = grd_deptfild.rows;
  828. var frows = grd_deptfild.fixedRows;
  829. var nrows = rows - frows;
  830. for(var i = -1; i <= nrows; i++){
  831. var fild1 = grd_deptfild.valueMatrix(i, 4);
  832. if(fild1 == "분야계"){
  833. /*
  834. var orddeptcd = grd_deptfild.valueMatrix(i, 1);
  835. var depthngnm = grd_deptfild.valueMatrix(i, 2);
  836. var deptengabbr = grd_deptfild.valueMatrix(i, 3);
  837. var ordfildcd = grd_deptfild.valueMatrix(i, 4);
  838. var inhospcnt = grd_deptfild.valueMatrix(i, 5);
  839. var inhosptotordamt = grd_deptfild.valueMatrix(i, 6);
  840. var inhospnopytotordamt = grd_deptfild.valueMatrix(i, 7);
  841. var inhospownbtotamt = grd_deptfild.valueMatrix(i, 8);
  842. var inhosppaytotordamt = grd_deptfild.valueMatrix(i, 9);
  843. var inhosppayownbamt = grd_deptfild.valueMatrix(i, 10);
  844. var inhosppayclamamt = grd_deptfild.valueMatrix(i, 11);
  845. var inhospownbmaxexamt = grd_deptfild.valueMatrix(i, 12);
  846. var hinhospsuppamt = grd_deptfild.valueMatrix(i, 13);
  847. var inhosphandcaprfund = grd_deptfild.valueMatrix(i, 14);
  848. var ginhospsuppamt = grd_deptfild.valueMatrix(i, 15);
  849. var inhospsuppamt = grd_deptfild.valueMatrix(i, 16);
  850. var inhospsubtamt = grd_deptfild.valueMatrix(i, 17);
  851. var acptaddamt = grd_deptfild.valueMatrix(i, 18);
  852. var acptcutamt = grd_deptfild.valueMatrix(i, 19);
  853. var acptamt = grd_deptfild.valueMatrix(i, 20);
  854. var addcnt = grd_deptfild.valueMatrix(i, 21);
  855. var bfcnt = grd_deptfild.valueMatrix(i, 22);
  856. var bfmedcaretotamt = grd_deptfild.valueMatrix(i, 23);
  857. var bfownbamt = grd_deptfild.valueMatrix(i, 24);
  858. var bfinsuclamamt = grd_deptfild.valueMatrix(i, 25);
  859. var bfownbmaxexamt = grd_deptfild.valueMatrix(i, 26);
  860. var hbfsuppamt = grd_deptfild.valueMatrix(i, 27);
  861. var bfhandcaprfund = grd_deptfild.valueMatrix(i, 28);
  862. var gbfsuppamt = grd_deptfild.valueMatrix(i, 29);
  863. var bfsuppamt = grd_deptfild.valueMatrix(i, 30);
  864. var bfsubtamt = grd_deptfild.valueMatrix(i, 31);
  865. var reservecnt = grd_deptfild.valueMatrix(i, 32);
  866. var reserveamtslt = grd_deptfild.valueMatrix(i, 33);
  867. var delcnt = grd_deptfild.valueMatrix(i, 34);
  868. var delamtrslt = grd_deptfild.valueMatrix(i, 35);
  869. var reserve_delcnt = grd_deptfild.valueMatrix(i, 36);
  870. var reserve_delamtrslt = grd_deptfild.valueMatrix(i, 37);
  871. var changecnt = grd_deptfild.valueMatrix(i, 38);
  872. var clamaddamtrslt = grd_deptfild.valueMatrix(i, 39);
  873. var clamcutamtrslt = grd_deptfild.valueMatrix(i, 40);
  874. var clamamtrslt = grd_deptfild.valueMatrix(i, 41);
  875. var afcnt = grd_deptfild.valueMatrix(i, 42);
  876. var afmedcaretotamt = grd_deptfild.valueMatrix(i, 43);
  877. var afownbamt = grd_deptfild.valueMatrix(i, 44);
  878. var afinsuclamamt = grd_deptfild.valueMatrix(i, 45);
  879. var afownbmaxexamt = grd_deptfild.valueMatrix(i, 46);
  880. var hafsuppamt = grd_deptfild.valueMatrix(i, 47);
  881. var afhandcaprfund = grd_deptfild.valueMatrix(i, 48);
  882. var gafsuppamt = grd_deptfild.valueMatrix(i, 49);
  883. var afsuppamt = grd_deptfild.valueMatrix(i, 50);
  884. var afsubtamt = grd_deptfild.valueMatrix(i, 51);
  885. */
  886. grd_deptfild.addRow(false);
  887. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("orddeptcd")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("orddeptcd"));
  888. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("depthngnm")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("depthngnm"));
  889. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("deptengabbr")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("deptengabbr"));
  890. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("ordfildcd")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("ordfildcd"));
  891. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospcnt"));
  892. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosptotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosptotordamt"));
  893. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospnopytotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospnopytotordamt"));
  894. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospownbtotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospownbtotamt"));
  895. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppaytotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppaytotordamt"));
  896. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppayownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppayownbamt"));
  897. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppayclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppayclamamt"));
  898. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospownbmaxexamt"));
  899. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hinhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hinhospsuppamt"));
  900. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("linhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("linhospsuppamt"));
  901. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosphandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosphandcaprfund"));
  902. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosplimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosplimitdiffamt"));
  903. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("ginhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("ginhospsuppamt"));
  904. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospsuppamt"));
  905. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospsubtamt"));
  906. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptaddamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptaddamt"));
  907. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptcutamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptcutamt"));
  908. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptamt"));
  909. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("addcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("addcnt"));
  910. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfcnt"));
  911. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfmedcaretotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfmedcaretotamt"));
  912. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfownbamt"));
  913. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfinsuclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfinsuclamamt"));
  914. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfownbmaxexamt"));
  915. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hbfsuppamt"));
  916. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("lbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("lbfsuppamt"));
  917. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfhandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfhandcaprfund"));
  918. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bflimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bflimitdiffamt"));
  919. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("gbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("gbfsuppamt"));
  920. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfsuppamt"));
  921. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfsubtamt"));
  922. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reservecnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reservecnt"));
  923. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserveamtslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserveamtslt"));
  924. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("delcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("delcnt"));
  925. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("delamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("delamtrslt"));
  926. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserve_delcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserve_delcnt"));
  927. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserve_delamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserve_delamtrslt"));
  928. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("changecnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("changecnt"))
  929. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamaddamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamaddamtrslt"));
  930. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamcutamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamcutamtrslt"));
  931. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamamtrslt"));
  932. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afcnt"));
  933. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afmedcaretotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afmedcaretotamt"));
  934. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afownbamt"));
  935. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afinsuclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afinsuclamamt"));
  936. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afownbmaxexamt"));
  937. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hafsuppamt"));
  938. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("lafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("lafsuppamt"));
  939. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afhandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afhandcaprfund"));
  940. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("aflimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("aflimitdiffamt"));
  941. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("gafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("gafsuppamt"));
  942. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afsuppamt"));
  943. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afsubtamt"));
  944. grd_deptfild.deleteRow(i,false);
  945. }
  946. if(grd_deptfild.valueMatrix(i, 3) == "총계"){
  947. break;
  948. }
  949. }
  950. for(var i = 0; i <= nrows; i++){
  951. var totsum = grd_deptfild.valueMatrix(i, 3);
  952. if(totsum == "총계"){
  953. // 분야별 합계 총액 보여줘야하는데 대기..
  954. /*
  955. var orddeptcd = grd_deptfild.valueMatrix(i, 1);
  956. var depthngnm = grd_deptfild.valueMatrix(i, 2);
  957. var deptengabbr = grd_deptfild.valueMatrix(i, 3);
  958. var ordfildcd = grd_deptfild.valueMatrix(i, 4);
  959. var inhospcnt = grd_deptfild.valueMatrix(i, 5);
  960. var inhosptotordamt = grd_deptfild.valueMatrix(i, 6);
  961. var inhospnopytotordamt = grd_deptfild.valueMatrix(i, 7);
  962. var inhospownbtotamt = grd_deptfild.valueMatrix(i, 8);
  963. var inhosppaytotordamt = grd_deptfild.valueMatrix(i, 9);
  964. var inhosppayownbamt = grd_deptfild.valueMatrix(i, 10);
  965. var inhosppayclamamt = grd_deptfild.valueMatrix(i, 11);
  966. var inhospownbmaxexamt = grd_deptfild.valueMatrix(i, 12);
  967. var hinhospsuppamt = grd_deptfild.valueMatrix(i, 13);
  968. var inhosphandcaprfund = grd_deptfild.valueMatrix(i, 14);
  969. var ginhospsuppamt = grd_deptfild.valueMatrix(i, 15);
  970. var inhospsuppamt = grd_deptfild.valueMatrix(i, 16);
  971. var inhospsubtamt = grd_deptfild.valueMatrix(i, 17);
  972. var acptaddamt = grd_deptfild.valueMatrix(i, 18);
  973. var acptcutamt = grd_deptfild.valueMatrix(i, 19);
  974. var acptamt = grd_deptfild.valueMatrix(i, 20);
  975. var addcnt = grd_deptfild.valueMatrix(i, 21);
  976. var bfcnt = grd_deptfild.valueMatrix(i, 22);
  977. var bfmedcaretotamt = grd_deptfild.valueMatrix(i, 23);
  978. var bfownbamt = grd_deptfild.valueMatrix(i, 24);
  979. var bfinsuclamamt = grd_deptfild.valueMatrix(i, 25);
  980. var bfownbmaxexamt = grd_deptfild.valueMatrix(i, 26);
  981. var hbfsuppamt = grd_deptfild.valueMatrix(i, 27);
  982. var bfhandcaprfund = grd_deptfild.valueMatrix(i, 28);
  983. var gbfsuppamt = grd_deptfild.valueMatrix(i, 29);
  984. var bfsuppamt = grd_deptfild.valueMatrix(i, 30);
  985. var bfsubtamt = grd_deptfild.valueMatrix(i, 31);
  986. var reservecnt = grd_deptfild.valueMatrix(i, 32);
  987. var reserveamtslt = grd_deptfild.valueMatrix(i, 33);
  988. var delcnt = grd_deptfild.valueMatrix(i, 34);
  989. var delamtrslt = grd_deptfild.valueMatrix(i, 35);
  990. var reserve_delcnt = grd_deptfild.valueMatrix(i, 36);
  991. var reserve_delamtrslt = grd_deptfild.valueMatrix(i, 37);
  992. var changecnt = grd_deptfild.valueMatrix(i, 38);
  993. var clamaddamtrslt = grd_deptfild.valueMatrix(i, 39);
  994. var clamcutamtrslt = grd_deptfild.valueMatrix(i, 40);
  995. var clamamtrslt = grd_deptfild.valueMatrix(i, 41);
  996. var afcnt = grd_deptfild.valueMatrix(i, 42);
  997. var afmedcaretotamt = grd_deptfild.valueMatrix(i, 43);
  998. var afownbamt = grd_deptfild.valueMatrix(i, 44);
  999. var afinsuclamamt = grd_deptfild.valueMatrix(i, 45);
  1000. var afownbmaxexamt = grd_deptfild.valueMatrix(i, 46);
  1001. var hafsuppamt = grd_deptfild.valueMatrix(i, 47);
  1002. var afhandcaprfund = grd_deptfild.valueMatrix(i, 48);
  1003. var gafsuppamt = grd_deptfild.valueMatrix(i, 49);
  1004. var afsuppamt = grd_deptfild.valueMatrix(i, 50);
  1005. var afsubtamt = grd_deptfild.valueMatrix(i, 51);
  1006. */
  1007. grd_deptfild.addRow(false);
  1008. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("orddeptcd")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("orddeptcd"));
  1009. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("depthngnm")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("depthngnm"));
  1010. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("deptengabbr")) = "총합계(분야)"; //deptengabbr;
  1011. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("ordfildcd")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("ordfildcd"));
  1012. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospcnt"));
  1013. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosptotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosptotordamt")) ;
  1014. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospnopytotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospnopytotordamt")) ;
  1015. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospownbtotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospownbtotamt")) ;
  1016. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppaytotordamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppaytotordamt")) ;
  1017. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppayownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppayownbamt")) ;
  1018. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosppayclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosppayclamamt")) ;
  1019. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospownbmaxexamt")) ;
  1020. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hinhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hinhospsuppamt")) ;
  1021. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("linhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("linhospsuppamt")) ;
  1022. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosphandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosphandcaprfund")) ;
  1023. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhosplimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhosplimitdiffamt")) ;
  1024. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("ginhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("ginhospsuppamt")) ;
  1025. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospsuppamt")) ;
  1026. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("inhospsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("inhospsubtamt")) ;
  1027. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptaddamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptaddamt")) ;
  1028. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptcutamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptcutamt")) ;
  1029. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("acptamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("acptamt")) ;
  1030. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("addcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("addcnt")) ;
  1031. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfcnt")) ;
  1032. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfmedcaretotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfmedcaretotamt")) ;
  1033. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfownbamt")) ;
  1034. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfinsuclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfinsuclamamt")) ;
  1035. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfownbmaxexamt")) ;
  1036. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hbfsuppamt")) ;
  1037. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("lbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("lbfsuppamt")) ;
  1038. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfhandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfhandcaprfund")) ;
  1039. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bflimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bflimitdiffamt")) ;
  1040. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("gbfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("gbfsuppamt")) ;
  1041. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfsuppamt")) ;
  1042. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("bfsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("bfsubtamt")) ;
  1043. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reservecnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reservecnt")) ;
  1044. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserveamtslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserveamtslt")) ;
  1045. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("delcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("delcnt")) ;
  1046. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("delamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("delamtrslt")) ;
  1047. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserve_delcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserve_delcnt")) ;
  1048. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("reserve_delamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("reserve_delamtrslt")) ;
  1049. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("changecnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("changecnt"));
  1050. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamaddamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamaddamtrslt")) ;
  1051. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamcutamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamcutamtrslt")) ;
  1052. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("clamamtrslt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("clamamtrslt"));
  1053. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afcnt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afcnt")) ;
  1054. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afmedcaretotamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afmedcaretotamt")) ;
  1055. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afownbamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afownbamt")) ;
  1056. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afinsuclamamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afinsuclamamt")) ;
  1057. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afownbmaxexamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afownbmaxexamt")) ;
  1058. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("hafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("hafsuppamt")) ;
  1059. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("lafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("lafsuppamt")) ;
  1060. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afhandcaprfund")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afhandcaprfund")) ;
  1061. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("aflimitdiffamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("aflimitdiffamt")) ;
  1062. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("gafsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("gafsuppamt")) ;
  1063. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afsuppamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afsuppamt"));
  1064. grd_deptfild.valueMatrix(grd_deptfild.rows - 1, grd_deptfild.colRef("afsubtamt")) = grd_deptfild.valueMatrix(i, grd_deptfild.colRef("afsubtamt")) ;
  1065. // 총계 row에 merge를 한다.
  1066. grd_deptfild.mergeByFree(i,3,i,4);
  1067. grd_deptfild.cellStyle("text-align",i,3,i,4) = "center";
  1068. grd_deptfild.mergeByFree(grd_deptfild.rows - 1, 3, grd_deptfild.rows - 1, 4);
  1069. grd_deptfild.cellStyle("text-align", grd_deptfild.rows - 1, 3, grd_deptfild.rows - 1, 4) = "center";
  1070. }
  1071. }
  1072. }
  1073. function fDateChk(){
  1074. var dateflag;
  1075. var fromdd = model.getValue("/root/send/send_base/fromdd");
  1076. fromdd = fromdd.substr(0,6);
  1077. //var todd = model.getValue("/root/send/send_base/todd");
  1078. var ioflag = model.getValue("/root/send/send_base/ioflag");
  1079. var insukind = model.getValue("/root/send/send_base/insukindcd");
  1080. var clamflag = model.getValue("/root/send/send_base/clamflag");
  1081. var ordfildcd = model.getValue("/root/send/send_base/ordfildcd");
  1082. if(fromdd == ""){
  1083. messageBox("기간의 시작일자를","C001");
  1084. model.setFocus("ipt_fromdd");
  1085. return;
  1086. }else{
  1087. model.setValue("/root/send/send_clamdg/fromdd",fromdd);
  1088. model.setValue("/root/send/send_clamdg/todd",fromdd);
  1089. model.setValue("/root/send/send_clamdg/ioflag",ioflag);
  1090. if(insukind == '21'){
  1091. model.setValue("/root/send/send_clamdg/insukind", "21','22");
  1092. }else{
  1093. model.setValue("/root/send/send_clamdg/insukind", insukind);
  1094. }
  1095. model.setValue("/root/send/send_clamdg/clamflag",clamflag);
  1096. model.setValue("/root/send/send_clamdg/ordfildcd",ordfildcd);
  1097. if(clamflag == '0'){
  1098. model.setValue("/root/send/send_clamdg/dateflag", "1");
  1099. }else{
  1100. model.setValue("/root/send/send_clamdg/dateflag", "2");
  1101. }
  1102. submit("TRPIF00105");
  1103. if( getNodesetCount("/root/init/clamdglist/clamdg") < 1 ){
  1104. messageBox("청구된 차수가 없습니다. 미수년월을 확인 해 주세요!.", "E999", "");
  1105. }
  1106. // addComboItem("cmb_clamdg","전체","","above");
  1107. }
  1108. addComboItem("cmb_clamdg","전체","","above");
  1109. }
  1110. ]]>
  1111. </script>
  1112. </xhtml:head>
  1113. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1114. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">진료과/개인/처방별 수정전후 집계표 조회</caption>
  1116. </group>
  1117. <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:1195px; height:744px; ">
  1118. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:49px; vertical-align:top; ">
  1119. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:47px; background-color:#fffbf2; border-color:#ffd799; "/>
  1120. <caption id="caption2" class="search_name" style="left:485px; top:17px; width:86px; height:17px; ">내원유형 :</caption>
  1121. <button id="button1" class="btn1_letter2" navindex="8" style="left:1134px; top:12px; width:56px; height:22px; ">
  1122. <caption>조회</caption>
  1123. <script type="javascript" ev:event="DOMActivate">
  1124. <![CDATA[
  1125. if (cmb_clamdg.length == 1)
  1126. {
  1127. model.setValue("/root/send/send_base/clamdg", "");
  1128. }
  1129. else if (cmb_clamdg.length == 0)
  1130. {
  1131. model.setValue("/root/send/send_base/clamdg", "");
  1132. }
  1133. if(fSrchChk()){
  1134. if(btn_deptfild.selected == true){
  1135. var clamflag = model.getValue("/root/send/send_base/clamflag");
  1136. // 원청구외 청구차수 제외
  1137. if (clamflag != '0') {
  1138. model.setValue("/root/send/send_base/clamdg", "");
  1139. }
  1140. submit("TRPIF00101");
  1141. // subtotal하기
  1142. fDeptFildSubtotal();
  1143. //청구분야 구별하기
  1144. fOrdFildCdFlag();
  1145. //분야별합계 위치이동
  1146. fSubTotalMove();
  1147. // 입원외래 구분시 컬럼숨기기
  1148. fHiddenColumnBase();
  1149. }
  1150. if(btn_indprescond.selected == true){
  1151. //button1.disabled = true;
  1152. if(fSendIndCopy()){
  1153. submit("TRPIF00102");
  1154. //입원외래 구분시 컬럼숨기기
  1155. fHiddenColumnInd();
  1156. }
  1157. }
  1158. if(btn_indprcpspec.selected == true){
  1159. messageBox("개인별처방내역의 조회는 개인별현황에서","I006");
  1160. }
  1161. }
  1162. ]]>
  1163. </script>
  1164. </button>
  1165. <line id="line13" class="line_4" style="x1:1128px; y1:12px; x2:1128px; y2:34px; "/>
  1166. <input id="ipt_fromdd" ref="/root/send/send_base/fromdd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm" style="left:259px; top:15px; width:70px; height:19px; ">
  1167. <script type="javascript" ev:event="xforms-value-changed">
  1168. <![CDATA[
  1169. //fDateChk();
  1170. model.removeNodeset("/root/init/clamdglist");
  1171. model.refresh();
  1172. cmb_clamdg.refresh();
  1173. ]]>
  1174. </script>
  1175. </input>
  1176. <caption id="caption3" class="search_name" style="left:170px; top:17px; width:86px; height:17px; ">미수년월 :</caption>
  1177. <select1 id="cmb_ioflag" ref="/root/send/send_base/ioflag" class="combo_search" navindex="1" appearance="minimal" style="left:571px; top:15px; width:55px; height:19px; ">
  1178. <choices>
  1179. <item>
  1180. <label>외래</label>
  1181. <value>O</value>
  1182. </item>
  1183. <item>
  1184. <label>입원</label>
  1185. <value>I</value>
  1186. </item>
  1187. </choices>
  1188. <script type="javascript" ev:event="xforms-value-changed">
  1189. <![CDATA[
  1190. model.removeNodeset("/root/init/clamdglist");
  1191. model.refresh();
  1192. cmb_clamdg.refresh();
  1193. //fDateChk();
  1194. ]]>
  1195. </script>
  1196. </select1>
  1197. <caption id="caption4" class="search_name" style="left:630px; top:15px; width:91px; height:17px; ">보험유형 :</caption>
  1198. <select1 id="cmb_clamdg" ref="/root/send/send_base/clamdg" class="combo_search" appearance="minimal" style="left:1015px; top:4px; width:54px; height:19px; ">
  1199. <choices>
  1200. <itemset nodeset="/root/init/clamdglist/clamdg">
  1201. <label ref="cdid"/>
  1202. <value ref="cdnm"/>
  1203. </itemset>
  1204. </choices>
  1205. </select1>
  1206. <caption id="caption12" class="search_name" style="left:336px; top:17px; width:91px; height:17px; ">청구분야 :</caption>
  1207. <select1 id="cmb_ordfildcd" ref="/root/send/send_base/ordfildcd" class="combo_search" navindex="6" appearance="minimal" style="left:425px; top:15px; width:55px; height:19px; ">
  1208. <choices>
  1209. <itemset nodeset="/root/init/P0291list/P0291">
  1210. <label ref="cdnm"/>
  1211. <value ref="cdid"/>
  1212. </itemset>
  1213. </choices>
  1214. </select1>
  1215. <caption id="caption13" class="search_name" style="left:0px; top:17px; width:86px; height:17px; ">청구구분 :</caption>
  1216. <select1 id="cmb_clamflag" ref="/root/send/send_base/clamflag" class="combo_search" appearance="minimal" style="left:88px; top:15px; width:75px; height:19px; ">
  1217. <choices>
  1218. <item>
  1219. <label>원청구</label>
  1220. <value>0</value>
  1221. </item>
  1222. <item>
  1223. <label>보완청구</label>
  1224. <value>1</value>
  1225. </item>
  1226. <item>
  1227. <label>추가청구</label>
  1228. <value>2</value>
  1229. </item>
  1230. <item>
  1231. <label>누락청구</label>
  1232. <value>4</value>
  1233. </item>
  1234. <item>
  1235. <label>보완차액</label>
  1236. <value>5</value>
  1237. </item>
  1238. </choices>
  1239. <script type="javascript" ev:event="xforms-select">
  1240. <![CDATA[
  1241. /*
  1242. var clamflag = model.getValue("/root/send/send_base/clamflag");
  1243. fDateChk();
  1244. if (clamflag == '0') {
  1245. //caption11.visible = true;
  1246. //cmb_clamdg.visible = true;
  1247. }
  1248. else {
  1249. //caption11.visible = false;
  1250. //cmb_clamdg.visible = false;
  1251. }
  1252. model.refresh();
  1253. */
  1254. ]]>
  1255. </script>
  1256. <script type="javascript" ev:event="xforms-value-changed">
  1257. <![CDATA[
  1258. model.removeNodeset("/root/init/clamdglist");
  1259. model.refresh();
  1260. cmb_clamdg.refresh();
  1261. ]]>
  1262. </script>
  1263. </select1>
  1264. <select1 id="chk_insukindcd" ref="/root/send/send_base/insukindcd" appearance="full" cols="5" rows="1" overflow="visible" style="left:716px; top:15px; width:219px; height:17px; border-style:none; ">
  1265. <choices>
  1266. <item>
  1267. <label>전체</label>
  1268. <value>00</value>
  1269. </item>
  1270. <item>
  1271. <label>보험</label>
  1272. <value>11</value>
  1273. </item>
  1274. <item>
  1275. <label>보호</label>
  1276. <value>21</value>
  1277. </item>
  1278. <item>
  1279. <label>자보</label>
  1280. <value>31</value>
  1281. </item>
  1282. <item>
  1283. <label>산재</label>
  1284. <value>41</value>
  1285. </item>
  1286. </choices>
  1287. </select1>
  1288. <select1 id="radio1" ref="/root/send/send_base/srchond" appearance="full" cols="1" rows="2" overflow="visible" style="left:942px; top:8px; width:70px; height:35px; border-style:none; ">
  1289. <choices>
  1290. <item>
  1291. <label>청구차수</label>
  1292. <value>A</value>
  1293. </item>
  1294. <item>
  1295. <label>차수선택</label>
  1296. <value>B</value>
  1297. </item>
  1298. </choices>
  1299. <script type="javascript" ev:event="xforms-value-changed">
  1300. <![CDATA[
  1301. var srchond = radio1.value;
  1302. if(srchond == "A"){
  1303. cmb_clamdg.disabled = false;
  1304. input1.disabled = true;
  1305. input2.disabled = true;
  1306. input3.disabled = true;
  1307. input4.disabled = true;
  1308. input5.disabled = true;
  1309. input1.value = "";
  1310. input2.value = "";
  1311. input3.value = "";
  1312. input4.value = "";
  1313. input5.value = "";
  1314. }else if(srchond == "B"){
  1315. cmb_clamdg.value = "";
  1316. cmb_clamdg.disabled = true;
  1317. input1.disabled = false;
  1318. input2.disabled = false;
  1319. input3.disabled = false;
  1320. input4.disabled = false;
  1321. input5.disabled = false;
  1322. }else{
  1323. messageBox("차수 내역이 선택되지 않았습니다.", "E999", "");
  1324. return false;
  1325. }
  1326. ]]>
  1327. </script>
  1328. </select1>
  1329. <input id="input1" ref="/root/send/send_base/clamdg1" style="left:1015px; top:25px; width:20px; height:19px; "/>
  1330. <input id="input2" ref="/root/send/send_base/clamdg2" style="left:1037px; top:25px; width:20px; height:19px; "/>
  1331. <input id="input3" ref="/root/send/send_base/clamdg3" style="left:1059px; top:25px; width:20px; height:19px; "/>
  1332. <input id="input4" ref="/root/send/send_base/clamdg4" style="left:1081px; top:25px; width:20px; height:19px; "/>
  1333. <input id="input5" ref="/root/send/send_base/clamdg5" style="left:1103px; top:25px; width:20px; height:19px; "/>
  1334. <button id="button14" class="icon_bottom" style="left:1070px; top:5px; width:30px; height:19px; ">
  1335. <caption/>
  1336. <script type="javascript" ev:event="DOMActivate">
  1337. <![CDATA[
  1338. model.removeNodeset("/root/init/clamdglist");
  1339. model.makeNode("/root/init/clamdglist");
  1340. fDateChk();
  1341. ]]>
  1342. </script>
  1343. </button>
  1344. </group>
  1345. <switch id="switch1" class="sw_box" style="left:0px; top:86px; width:1194px; height:651px; border-color:#c7a3cf; border-style:solid; ">
  1346. <case id="case1" selected="true">
  1347. <!--&#xA;-->
  1348. <line id="line1" class="line_1" style="x1:0px; y1:3px; x2:1188px; y2:3px; "/>
  1349. <!-- 20110105 JHP 긴급복지지원금 추가 고시에 따른 재원, 심사전, 후 긴급지원금, 희귀지원금, 총지원금 구분 추가변경 -->
  1350. <datagrid id="grd_deptfild" nodeset="/root/main/list1/griddeptfild" caption="진료과코드^진료과명^진료과^청구분야^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^인수증액^인수감액^인수차액^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^심사 전(인수금액:급여항목에대한금액)^보류건수^보류금액^삭제건수^삭제금액^보류+삭제건수^보류+삭제금액^자격수정건수^추가건수^청구증액^청구감액^청구차액^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)|진료과코드^진료과명^진료과^청구분야^(재)건수^(재)총진료비^(재)비급여총진료비^(재)본인부담총액^(재)급여총진료비^(재)급여본인부담금^(재)급여청구액^(재)상한액^(재)희귀지원금^(재)결핵지원금^(재)장애인^(재)긴급지원금^(재)지원금^(재)대불금^(재)약제상한차액^인수증액^인수감액^인수차액^(전)건수^(전)총진료비^(전)본인부담^(전)청구액^(전)상한액^(전)희귀지원금^(전)결핵지원금^(전)장애인^(전)긴급지원금^(전)지원금^(전)대불금^(전)약제상한차액^보류건수^보류금액^삭제건수^삭제금액^보류+삭제건수^보류+삭제금액^자격수정건수^추가건수^청구증액^청구감액^청구차액^(후)건수^(후)총진료비^(후)본인부담^(후)청구액^(후)상한액^(후)희귀지원금^(후)결핵지원금^(후)장애인^(후)긴급지원금^(후)지원금^(후)대불금^(후)약제상한차액" colsep="^" colwidth="79, 159, 119, 80, 55, 110, 127, 111, 119, 116, 95, 91, 93, 100, 96, 100, 100, 87, 103, 93, 100, 100, 55, 110, 113, 99, 95, 97, 100, 79, 100, 100, 89, 100, 55, 90, 55, 90, 87, 95, 83, 56, 90, 90, 100, 55, 110, 91, 93, 96, 92, 100, 93, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshowmove" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:8px; width:1183px; height:640px; ">
  1351. <col ref="orddeptcd" visibility="hidden" style="left:20px; top:43px; width:80px; height:23px; text-align:center; "/>
  1352. <col ref="deptengabbr" visibility="hidden" style="text-align:center; "/>
  1353. <col ref="depthngnm" visibility="visible" style="text-align:center; "/>
  1354. <col ref="ordfildcd" visibility="hidden" style="text-align:center; "/>
  1355. <col ref="inhospcnt" format="#,###" style="text-align:right; "/>
  1356. <col ref="inhosptotordamt" format="(-)#,###" style="text-align:right; "/>
  1357. <col ref="inhospnopytotordamt" format="(-)#,###" style="text-align:right; "/>
  1358. <col ref="inhospownbtotamt" format="(-)#,###" style="text-align:right; "/>
  1359. <col ref="inhosppaytotordamt" format="(-)#,###" style="text-align:right; "/>
  1360. <col ref="inhosppayownbamt" format="(-)#,###" style="text-align:right; "/>
  1361. <col ref="inhosppayclamamt" format="(-)#,###" style="text-align:right; "/>
  1362. <col ref="inhospownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1363. <col ref="hinhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1364. <col ref="linhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1365. <col ref="inhosphandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1366. <col ref="ginhospsuppamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  1367. <col ref="inhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1368. <col ref="inhospsubtamt" format="(-)#,###" style="text-align:right; "/>
  1369. <col ref="inhosplimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1370. <col ref="acptaddamt" format="(-)#,###" style="text-align:right; "/>
  1371. <col ref="acptcutamt" format="(-)#,###" style="text-align:right; "/>
  1372. <col ref="acptamt" format="(-)#,###" style="text-align:right; "/>
  1373. <col ref="bfcnt" format="#,###" style="text-align:right; "/>
  1374. <col ref="bfmedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1375. <col ref="bfownbamt" format="(-)#,###" style="text-align:right; "/>
  1376. <col ref="bfinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  1377. <col ref="bfownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1378. <col ref="hbfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1379. <col ref="lbfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1380. <col ref="bfhandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1381. <col ref="gbfsuppamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  1382. <col ref="bfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1383. <col ref="bfsubtamt" format="(-)#,###" style="text-align:right; "/>
  1384. <col ref="bflimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1385. <col ref="reservecnt" style="text-align:right; "/>
  1386. <col ref="reserveamtslt" format="(-)#,###" style="text-align:right; "/>
  1387. <col ref="delcnt" format="#,###" style="text-align:right; "/>
  1388. <col ref="delamtrslt" format="(-)#,###" style="text-align:right; "/>
  1389. <col ref="reserve_delcnt" format="(-)#,###" style="text-align:right; "/>
  1390. <col ref="reserve_delamtrslt" format="(-)#,###" style="text-align:right; "/>
  1391. <col ref="changecnt" format="(-)#,###" style="text-align:right; "/>
  1392. <col ref="addcnt" format="(-)#,###" style="text-align:right; "/>
  1393. <col ref="clamaddamtrslt" format="(-)#,###" style="text-align:right; "/>
  1394. <col ref="clamcutamtrslt" format="(-)#,###" style="text-align:right; "/>
  1395. <col ref="clamamtrslt" format="(-)#,###" style="text-align:right; "/>
  1396. <col ref="afcnt" format="#,###" style="text-align:right; "/>
  1397. <col ref="afmedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1398. <col ref="afownbamt" format="(-)#,###" style="text-align:right; "/>
  1399. <col ref="afinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  1400. <col ref="afownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1401. <col ref="hafsuppamt" format="(-)#,###" style="text-align:right; "/>
  1402. <col ref="lafsuppamt" format="(-)#,###" style="text-align:right; "/>
  1403. <col ref="afhandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1404. <col ref="gafsuppamt" visibility="visible" format="(-)#,###" style="text-align:right; "/>
  1405. <col ref="afsuppamt" format="(-)#,###" style="text-align:right; "/>
  1406. <col ref="afsubtamt" format="(-)#,###" style="text-align:right; "/>
  1407. <col ref="aflimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1408. <script type="javascript" ev:event="ondblclick">
  1409. <![CDATA[
  1410. var rows = grd_deptfild.rows- grd_deptfild.fixedRows;
  1411. var chkrow = 1;
  1412. for(var i = 0; i <= rows; i++){
  1413. var deptengabbr = model.getValue("/root/main/list1/griddeptfild[" + i + "]/depthngnm");
  1414. if(deptengabbr.substr(2,2) == "분야"){
  1415. chkrow = i;
  1416. break;
  1417. }
  1418. }
  1419. var row = grd_deptfild.row - 1;
  1420. var target = event.target;
  1421. var targetchk = target.substr(0,2);
  1422. if(targetchk == '_$'){
  1423. if(chkrow-1 >= row){
  1424. model.setValue("/root/send/send_ind/orddeptcd", model.getValue("/root/main/list1/griddeptfild[" + row + "]/orddeptcd"));
  1425. model.setValue("/root/send/send_ind/sumtypecd", model.getValue("/root/main/list1/griddeptfild[" + row + "]/sumtypecd"));
  1426. if(fSendIndCopy()){
  1427. var clamflag = model.getValue("/root/send/send_base/clamflag");
  1428. //원청구외 청구차수 제외
  1429. /*
  1430. if(clamflag != '0'){
  1431. model.setValue("/root/send/send_base/clamflag", "");
  1432. }
  1433. */
  1434. submit("TRPIF00102");
  1435. // 해당 tab 으로 토글시킨다.
  1436. model.toggle("case2");
  1437. //case의선택버튼을 이동시킨다.
  1438. button8.visible = true;
  1439. button9.visible = true;
  1440. button1.visible = false;
  1441. button11.visible = false; //과별 엑셀 저장 숨김
  1442. button4.visible = true; //개인별 엑셀 저장 보이기
  1443. button6.visible = false; //처방내역 엑셀 저장 숨김
  1444. btn_indprescond.selected = true;
  1445. //입원외래 구분시 컬럼을 숨긴다.
  1446. fHiddenColumnInd();
  1447. }
  1448. }
  1449. }
  1450. ]]>
  1451. </script>
  1452. <script type="javascript" ev:event="onkeydown">
  1453. <![CDATA[
  1454. // 셀 복사 Ctrl + C 키를 누른 경우
  1455. if (grd_deptfild.isCell(event.target) && grd_deptfild.row >= grd_deptfild.fixedRows) {
  1456. var row = grd_deptfild.row;
  1457. var col = grd_deptfild.col;
  1458. var clip = grd_deptfild.labelMatrix(row, col);
  1459. window.clipBoardData = clip;
  1460. }
  1461. ]]>
  1462. </script>
  1463. <script type="javascript" ev:event="oncopy">
  1464. <![CDATA[
  1465. grid_oncopy();
  1466. ]]>
  1467. </script>
  1468. </datagrid>
  1469. <group id="grp_prtoption" visibility="hidden" style="left:785px; top:8px; width:240px; height:182px; border-color:#c7a3cf; border-style:solid; ">
  1470. <caption id="caption81" class="tit_2" style="left:5px; top:4px; width:144px; height:14px; ">금액집계표 출력</caption>
  1471. <line id="line27" class="line_1" style="x1:1px; y1:21px; x2:235px; y2:20px; "/>
  1472. <button id="button12" class="btn4_letter2" style="left:178px; top:155px; width:56px; height:22px; ">
  1473. <caption>닫기</caption>
  1474. <script type="javascript" ev:event="DOMActivate">
  1475. <![CDATA[
  1476. grp_prtoption.visible = false;
  1477. model.refresh();
  1478. ]]>
  1479. </script>
  1480. </button>
  1481. <caption id="caption18" class="search_name" visibility="visible" style="left:4px; top:28px; width:124px; height:17px; ">진료 형태 :</caption>
  1482. <caption id="caption19" class="search_name" visibility="visible" style="left:4px; top:53px; width:124px; height:17px; ">출력 선택 :</caption>
  1483. <line id="line5" class="line_3" style="x1:-1px; y1:152px; x2:238px; y2:152px; "/>
  1484. <button id="button13" class="btn4_letter2" style="left:119px; top:155px; width:56px; height:22px; ">
  1485. <caption>출력</caption>
  1486. <script type="javascript" ev:event="DOMActivate">
  1487. <![CDATA[
  1488. model.removeNodeset("/root/main/list4");
  1489. submit("TRPIF00107");
  1490. if (getNodesetCount("/root/main/list4/amtsumtable") == 0) {
  1491. model.makeNode("/root/main/list4/amtsumtable/cnt");
  1492. }
  1493. if(model.getValue("/root/send/prtoption/clamflag") == "5")
  1494. {
  1495. if(model.getValue("/root/send/prtoption/printtype") == "1") {
  1496. exeReportPreview("RPPIF00101", "XMLSTR");
  1497. } else {
  1498. exeReportPreview("RPPIF00104", "XMLSTR");
  1499. }
  1500. }
  1501. else if(model.getValue("/root/send/prtoption/clamflag") == "6")
  1502. {
  1503. if(model.getValue("/root/send/prtoption/printtype") == "1") {
  1504. exeReportPreview("RPPIF00102", "XMLSTR");
  1505. } else {
  1506. exeReportPreview("RPPIF00105", "XMLSTR");
  1507. }
  1508. }
  1509. else
  1510. {
  1511. if(model.getValue("/root/send/prtoption/printtype") == "1") {
  1512. exeReportPreview("RPPIF00100", "XMLSTR");
  1513. } else {
  1514. exeReportPreview("RPPIF00103", "XMLSTR");
  1515. }
  1516. }
  1517. ]]>
  1518. </script>
  1519. </button>
  1520. <select1 id="radio2" ref="/root/send/prtoption/ioflag" appearance="full" cellspacing="3" cols="2" overflow="visible" style="left:99px; top:28px; width:100px; height:20px; border-style:none; ">
  1521. <choices>
  1522. <item>
  1523. <label>입원</label>
  1524. <value>I</value>
  1525. </item>
  1526. <item>
  1527. <label>외래</label>
  1528. <value>O</value>
  1529. </item>
  1530. </choices>
  1531. </select1>
  1532. <select1 id="radio3" ref="/root/send/prtoption/judgtype" appearance="full" cellspacing="3" cols="3" overflow="visible" style="left:99px; top:53px; width:135px; height:20px; border-style:none; ">
  1533. <choices>
  1534. <item>
  1535. <label>사전</label>
  1536. <value>B</value>
  1537. </item>
  1538. <item>
  1539. <label>사후</label>
  1540. <value>A</value>
  1541. </item>
  1542. <item>
  1543. <label>원무</label>
  1544. <value>P</value>
  1545. </item>
  1546. </choices>
  1547. </select1>
  1548. <caption id="caption7" class="search_name" style="left:4px; top:102px; width:91px; height:17px; ">미수 년월 :</caption>
  1549. <input id="prt_clamym" ref="/root/send/prtoption/clamym" class="input_search" navindex="3" inputtype="date" format="yyyy-mm" style="left:98px; top:101px; width:76px; height:19px; ">
  1550. <script type="javascript" ev:event="xforms-value-changed">
  1551. <![CDATA[
  1552. // fDateChk();
  1553. ]]>
  1554. </script>
  1555. </input>
  1556. <select1 id="prt_clamflag" ref="/root/send/prtoption/clamflag" class="combo_search" appearance="minimal" style="left:98px; top:77px; width:75px; height:19px; ">
  1557. <choices>
  1558. <item>
  1559. <label>원청구</label>
  1560. <value>0</value>
  1561. </item>
  1562. <item>
  1563. <label>보완청구</label>
  1564. <value>1</value>
  1565. </item>
  1566. <item>
  1567. <label>추가청구</label>
  1568. <value>2</value>
  1569. </item>
  1570. <item>
  1571. <label>누락청구</label>
  1572. <value>4</value>
  1573. </item>
  1574. <item>
  1575. <label>보완차액</label>
  1576. <value>5</value>
  1577. </item>
  1578. <item>
  1579. <label>보완삭제</label>
  1580. <value>6</value>
  1581. </item>
  1582. </choices>
  1583. </select1>
  1584. <caption id="caption8" class="search_name" style="left:4px; top:78px; width:91px; height:17px; ">청구 구분 :</caption>
  1585. <caption id="caption10" class="search_name" style="left:4px; top:126px; width:91px; height:17px; ">출력 구분 :</caption>
  1586. <select1 id="combo1" ref="/root/send/prtoption/printtype" appearance="minimal" style="left:98px; top:125px; width:136px; height:19px; ">
  1587. <choices>
  1588. <item>
  1589. <label>구분별</label>
  1590. <value>1</value>
  1591. </item>
  1592. <item>
  1593. <label>구분별+분야별</label>
  1594. <value>2</value>
  1595. </item>
  1596. <item>
  1597. <label>치과</label>
  1598. <value>3</value>
  1599. </item>
  1600. </choices>
  1601. </select1>
  1602. </group>
  1603. </case>
  1604. <case id="case2">
  1605. <!-- 20110105 JHP 긴급복지지원금 추가 고시에 따른 재원, 심사전, 후 긴급지원금, 희귀지원금, 총지원금 구분 추가변경(개인) -->
  1606. <datagrid id="grd_indprescond" nodeset="/root/main/list2/gridindprescond" caption="접수번호^접수일자^심사상태^명일련^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^청구정보^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^재원금액^인수증액^인수감액^인수차액^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^심사 전(인수금액)^청구증액^청구감액^청구차액^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^심사 후(청구금액)^pidsn|접수번호^접수일자^심사상태^명일련^등록번호^수진자^청구년월^청구구분^청구차수^종별^조합기호^명칭^보조^본인부담율^진료분야^진료과코드^진료과^청구과코드^청구과^심사자^심사자코드^진료의명^진료의코드^(재)총진료비^(재)비급여진료비^(재)본인부담총액^(재)급여총진료비^(재)급여본인부담금^(재)급여청구액^(재)상한액^(재)희귀지원금^(재)결핵지원금^(재)장애인^(재)긴급지원금^(재)지원금^(재)대불금^(재)약제상한차액^인수증액^인수감액^인수차액^(전)총진료비^(전)본인부담^(전)청구액^(전)상한액^(전)희귀지원금^(전)결핵지원금^(전)장애인^(전)긴급지원금^(전)지원금^(전)대불금^(전)약제상한차액^청구증액^청구감액^청구차액^(후)총진료비^(후)본인부담^(후)청구액^(후)상한액^(후)희귀지원금^(후)결핵지원금^(후)장애인^(후)긴급지원금^(후)지원금^(후)대불금^(후)약제상한차액^pidsn" colsep="^" colwidth="60, 62, 100, 53, 61, 46, 60, 69, 60, 40, 63, 69, 68, 70, 61, 68, 47, 71, 44, 48, 75, 58, 70, 93, 100, 100, 105, 112, 103, 76, 102, 100, 70, 100, 100, 81, 100, 60, 58, 67, 88, 117, 113, 92, 96, 100, 80, 100, 100, 69, 100, 61, 54, 57, 103, 112, 94, 65, 112, 100, 70, 100, 100, 73, 100, 100" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:8px; width:1183px; height:640px; ">
  1607. <col ref="acptno" style="left:20px; top:43px; width:85px; height:23px; text-align:center; "/>
  1608. <col ref="acptdd" visibility="hidden" style="text-align:center; "/>
  1609. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  1610. <choices>
  1611. <itemset nodeset="/root/init/P0151list/P0151">
  1612. <label ref="cdnm"/>
  1613. <value ref="cdid"/>
  1614. </itemset>
  1615. </choices>
  1616. </col>
  1617. <col ref="docuseqno" style="text-align:center; "/>
  1618. <col ref="pid" style="text-align:center; "/>
  1619. <col ref="patnm" style="text-align:center; "/>
  1620. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  1621. <col disabled="true" ref="clamflagcd" type="combo" visibility="visible" style="text-align:center; ">
  1622. <choices>
  1623. <itemset nodeset="/root/init/P0155list/P0155">
  1624. <label ref="cdnm"/>
  1625. <value ref="cdid"/>
  1626. </itemset>
  1627. </choices>
  1628. </col>
  1629. <col ref="clamdg" visibility="hidden" style="text-align:center; "/>
  1630. <col ref="insusubflag" style="text-align:center; "/>
  1631. <col ref="assomark" visibility="hidden" style="text-align:center; "/>
  1632. <col ref="nm" visibility="hidden" style="text-align:center; "/>
  1633. <col disabled="true" ref="supp" type="combo" visibility="hidden" style="text-align:center; ">
  1634. <choices>
  1635. <itemset nodeset="/root/init/P0010list/P0010">
  1636. <label ref="cdnm"/>
  1637. <value ref="cdid"/>
  1638. </itemset>
  1639. </choices>
  1640. </col>
  1641. <col ref="apprate" style="left:1131px; top:43px; width:88px; height:23px; text-align:center; "/>
  1642. <col disabled="true" ref="ordfildcd" type="combo" visibility="hidden" style="text-align:center; ">
  1643. <choices>
  1644. <itemset nodeset="/root/init/P0291list/P0291">
  1645. <label ref="cdnm"/>
  1646. <value ref="cdid"/>
  1647. </itemset>
  1648. </choices>
  1649. </col>
  1650. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  1651. <col ref="orddeptabbr" style="text-align:center; "/>
  1652. <col ref="clamdeptcd" visibility="hidden" style="text-align:center; "/>
  1653. <col disabled="true" ref="clamdeptabbr" type="combo" style="text-align:center; ">
  1654. <choices>
  1655. <itemset nodeset="/root/init/P0471list/P0471">
  1656. <label ref="cdnm"/>
  1657. <value ref="cdid"/>
  1658. </itemset>
  1659. </choices>
  1660. </col>
  1661. <col ref="judgrnm" style="text-align:center; "/>
  1662. <col ref="judgrid" visibility="hidden" style="text-align:center; "/>
  1663. <col ref="atdoctnm" style="text-align:center; "/>
  1664. <col ref="atdoctid" visibility="hidden" style="text-align:center; "/>
  1665. <col ref="inhosptotordamt" format="(-)#,###" style="text-align:right; "/>
  1666. <col ref="inhospnopytotordamt" format="(-)#,###" style="text-align:right; "/>
  1667. <col ref="inhospownbtotamt" format="(-)#,###" style="text-align:right; "/>
  1668. <col ref="inhosppaytotordamt" format="(-)#,###" style="text-align:right; "/>
  1669. <col ref="inhosppayownbamt" format="(-)#,###" style="text-align:right; "/>
  1670. <col ref="inhosppayclamamt" format="(-)#,###" style="text-align:right; "/>
  1671. <col ref="inhospownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1672. <col ref="hinhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1673. <col ref="linhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1674. <col ref="inhosphandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1675. <col ref="ginhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1676. <col ref="inhospsuppamt" format="(-)#,###" style="text-align:right; "/>
  1677. <col ref="inhospsubtamt" format="(-)#,###" style="text-align:right; "/>
  1678. <col ref="inhosplimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1679. <col ref="acptaddamt" format="(-)#,###" style="text-align:right; "/>
  1680. <col ref="acptcutamt" format="(-)#,###" style="text-align:right; "/>
  1681. <col ref="acptamt" format="(-)#,###" style="text-align:right; "/>
  1682. <col ref="bfmedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1683. <col ref="bfownbamt" format="(-)#,###" style="text-align:right; "/>
  1684. <col ref="bfinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  1685. <col ref="bfownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1686. <col ref="hbfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1687. <col ref="lbfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1688. <col ref="bfhandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1689. <col ref="gbfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1690. <col ref="bfsuppamt" format="(-)#,###" style="text-align:right; "/>
  1691. <col ref="bfsubtamt" format="(-)#,###" style="text-align:right; "/>
  1692. <col ref="bflimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1693. <col ref="clamaddamtrslt" format="(-)#,###" style="text-align:right; "/>
  1694. <col ref="clamcutamtrslt" format="(-)#,###" style="text-align:right; "/>
  1695. <col ref="clamamtrslt" format="(-)#,###" style="text-align:right; "/>
  1696. <col ref="afmedcaretotamt" format="(-)#,###" style="text-align:right; "/>
  1697. <col ref="afownbamt" format="(-)#,###" style="text-align:right; "/>
  1698. <col ref="afinsuclamamt" format="(-)#,###" style="text-align:right; "/>
  1699. <col ref="afownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
  1700. <col ref="hafsuppamt" format="(-)#,###" style="text-align:right; "/>
  1701. <col ref="lafsuppamt" format="(-)#,###" style="text-align:right; "/>
  1702. <col ref="afhandcaprfund" format="(-)#,###" style="text-align:right; "/>
  1703. <col ref="gafsuppamt" format="(-)#,###" style="text-align:right; "/>
  1704. <col ref="afsuppamt" format="(-)#,###" style="text-align:right; "/>
  1705. <col ref="afsubtamt" format="(-)#,###" style="text-align:right; "/>
  1706. <col ref="aflimitdiffamt" format="(-)#,###" style="text-align:right; "/>
  1707. <col ref="pidsn" visibility="hidden"/>
  1708. <script type="javascript" ev:event="ondblclick">
  1709. <![CDATA[
  1710. var row = grd_indprescond.row - 1;
  1711. var target = event.target;
  1712. var targetchk = target.substr(0,2);
  1713. if(targetchk == '_$'){
  1714. var insukindcd = model.getValue("/root/send/send_base/insukindcd");
  1715. var insukindcd1= '';
  1716. model.setValue("/root/send/send_prcp/clamym", model.getValue("/root/main/list2/gridindprescond[" + row + "]/clamym"));
  1717. model.setValue("/root/send/send_prcp/clamdg", model.getValue("/root/main/list2/gridindprescond[" + row + "]/clamdg"));
  1718. model.setValue("/root/send/send_prcp/pid", model.getValue("/root/main/list2/gridindprescond[" + row + "]/pid"));
  1719. model.setValue("/root/send/send_prcp/pidsn", model.getValue("/root/main/list2/gridindprescond[" + row + "]/pidsn"));
  1720. model.setValue("/root/send/send_prcp/orddeptcd", model.getValue("/root/main/list2/gridindprescond[" + row + "]/orddeptcd"));
  1721. model.setValue("/root/send/send_prcp/ioflag", model.getValue("/root/send/send_base/ioflag"));
  1722. model.setValue("/root/send/send_prcp/clamflagcd", model.getValue("/root/send/send_base/clamflag"));
  1723. model.setValue("/root/send/send_prcp/insukindcd", insukindcd);
  1724. // model.alert(model.getValue("/root/send/send_prcp/clamflagcd"));
  1725. // model.alert(model.getValue("/root/send/send_base/clamflag"));
  1726. if (insukindcd == "21"){
  1727. model.setValue("/root/send/send_prcp/insukindcd1","22");
  1728. }else if (insukindcd == "11"){
  1729. model.setValue("/root/send/send_prcp/insukindcd1","42");
  1730. }else{
  1731. model.setValue("/root/send/send_prcp/insukindcd1","XX");
  1732. }
  1733. submit("TRPIF00106");
  1734. // 해당 tab 으로 토글시킨다.
  1735. model.toggle("case3");
  1736. button8.visible = false;
  1737. button9.visible = false;
  1738. button1.visible = false;
  1739. button11.visible = false; //과별 엑셀 저장 숨김
  1740. button4.visible = false; //개인별 엑셀 저장 숨김
  1741. button6.visible = true; //처방내역 엑셀 저장 보이기
  1742. //case의선택버튼을 이동시킨다.
  1743. btn_indprcpspec.selected = true;
  1744. model.refresh();
  1745. var nodeList = instance1.selectNodes("/root/main/list3/gridindprcpspec");
  1746. if (nodeList.length < 1) {
  1747. messageBox("수정된 처방내역이", "I004"); //I004=없습니다.
  1748. }
  1749. }
  1750. ]]>
  1751. </script>
  1752. <script type="javascript" ev:event="onkeydown">
  1753. <![CDATA[
  1754. // 셀 복사 Ctrl + C 키를 누른 경우
  1755. if (grd_indprescond.isCell(event.target) && grd_indprescond.row >= grd_indprescond.fixedRows) {
  1756. var row = grd_indprescond.row;
  1757. var col = grd_indprescond.col;
  1758. var clip = grd_indprescond.labelMatrix(row, col);
  1759. window.clipBoardData = clip;
  1760. }
  1761. ]]>
  1762. </script>
  1763. <script type="javascript" ev:event="oncopy">
  1764. <![CDATA[
  1765. grid_oncopy();
  1766. ]]>
  1767. </script>
  1768. </datagrid>
  1769. <line id="line2" class="line_1" style="x1:0px; y1:3px; x2:1188px; y2:3px; "/>
  1770. </case>
  1771. <case id="case3">
  1772. <line id="line3" class="line_1" style="x1:0px; y1:3px; x2:1188px; y2:3px; "/>
  1773. <datagrid id="grd_prcpspec" nodeset="/root/main/list3/gridindprcpspec" caption="항목^항목^그룹수가^수가코드^EDI코드^한글명^원무금액^인수차액^심사전^심사전^심사전^심사후^심사후^심사후^차액^산정&#xA;수정^최종&#xA;수정자|항^목^그룹수가^수가코드^EDI코드^한글명^원무금액^인수차액^1일량^일수^금액^1일량^일수^금액^차액^산정&#xA;수정^최종&#xA;수정자" colsep="^" colwidth="40, 40, 90, 90, 90, 209, 95, 80, 50, 45, 95, 50, 45, 95, 100, 34, 67" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:8px; width:1183px; height:640px; ">
  1774. <col ref="item1" style="text-align:center; "/>
  1775. <col ref="item2" style="text-align:center; "/>
  1776. <col ref="grupcalcscorcd"/>
  1777. <col ref="snglcalcscorcd"/>
  1778. <col ref="basecd"/>
  1779. <col ref="hngnm" style="text-align:left; "/>
  1780. <col ref="rcptcalcamt" format="(-)#,###" style="text-align:right; "/>
  1781. <col ref="insudiffamt" format="(-)#,###" style="text-align:right; "/>
  1782. <col ref="bfrtims" format="###.00" style="text-align:right; "/>
  1783. <col ref="bfrdayno" format="##" style="text-align:right; "/>
  1784. <col ref="bframt" format="(-)#,###" style="text-align:right; "/>
  1785. <col ref="afttims" format="###.00" style="text-align:right; "/>
  1786. <col ref="aftdayno" format="##" style="text-align:right; "/>
  1787. <col ref="aftamt" format="#,###" style="text-align:right; "/>
  1788. <col ref="difamt" format="(-)#,###" style="text-align:right; "/>
  1789. <col ref="estmyn" style="text-align:center; "/>
  1790. <col ref="lastupdtrid" style="text-align:center; "/>
  1791. <script type="javascript" ev:event="onkeydown">
  1792. <![CDATA[
  1793. // 셀 복사 Ctrl + C 키를 누른 경우
  1794. if (grd_prcpspec.isCell(event.target) && grd_prcpspec.row >= grd_prcpspec.fixedRows) {
  1795. var row = grd_prcpspec.row;
  1796. var col = grd_prcpspec.col;
  1797. var clip = grd_prcpspec.labelMatrix(row, col);
  1798. window.clipBoardData = clip;
  1799. }
  1800. ]]>
  1801. </script>
  1802. <script type="javascript" ev:event="oncopy">
  1803. <![CDATA[
  1804. grid_oncopy();
  1805. ]]>
  1806. </script>
  1807. </datagrid>
  1808. </case>
  1809. </switch>
  1810. <button id="btn_indprcpspec" class="btn_sw" group="tab" selected="true" style="left:238px; top:65px; width:120px; height:22px; ">
  1811. <caption>개인별처방내역</caption>
  1812. <toggle case="case3" ev:event="onclick"/>
  1813. <script type="javascript" ev:event="DOMActivate">
  1814. <![CDATA[
  1815. //cap_flag.visible = false;
  1816. button8.visible = false;
  1817. button9.visible = false;
  1818. button1.visible = false;
  1819. button11.visible = false; //과별 엑셀 저장 숨김
  1820. button4.visible = false; //개인별 엑셀 저장 숨김
  1821. button6.visible = true; //처방내역 엑셀 저장 보이기
  1822. model.refresh();
  1823. ]]>
  1824. </script>
  1825. </button>
  1826. <button id="btn_indprescond" class="btn_sw" group="tab" selected="true" style="left:119px; top:65px; width:120px; height:22px; ">
  1827. <caption>개인별현황</caption>
  1828. <toggle case="case2" ev:event="onclick"/>
  1829. <script type="javascript" ev:event="DOMActivate">
  1830. <![CDATA[
  1831. //cap_flag.visible = false;
  1832. button8.visible = true;
  1833. button9.visible = true;
  1834. button1.visible = false;
  1835. button11.visible = false; //과별 엑셀 저장 숨김
  1836. button4.visible = true; //개인별 엑셀 저장 보이기
  1837. button6.visible = false; //처방내역 엑셀 저장 숨김
  1838. model.refresh();
  1839. ]]>
  1840. </script>
  1841. </button>
  1842. <button id="btn_deptfild" class="btn_sw" group="tab" selected="true" style="left:0px; top:65px; width:120px; height:22px; ">
  1843. <caption>과별/분야별</caption>
  1844. <toggle case="case1" ev:event="onclick"/>
  1845. <script type="javascript" ev:event="DOMActivate">
  1846. <![CDATA[
  1847. button8.visible = false;
  1848. button9.visible = false;
  1849. button1.visible = true;
  1850. button11.visible = true; //과별 엑셀 저장 보이기
  1851. button4.visible = false; //개인별 엑셀 저장 숨김
  1852. button6.visible = false; //처방내역 엑셀 저장 숨김
  1853. model.refresh();
  1854. ]]>
  1855. </script>
  1856. </button>
  1857. <button id="button8" class="btn5_letter7" style="left:707px; top:64px; width:97px; height:19px; ">
  1858. <caption>파일 다운로드</caption>
  1859. <script type="javascript" ev:event="DOMActivate">
  1860. <![CDATA[
  1861. //messageBox("개발 중입니다.!" , "E999");
  1862. var todd = getCurrentDate();
  1863. todd = todd.toDate().getAddDate(+1, 'D');
  1864. zsbfOpenBatchLogPopup("clamstatmngtmgr.IndPresCondBatch",getCurrentDate(),todd.getDateFormat());
  1865. ]]>
  1866. </script>
  1867. </button>
  1868. <button id="button9" class="btn5_letter5" style="left:629px; top:64px; width:75px; height:19px; ">
  1869. <caption>파일 생성</caption>
  1870. <script type="javascript" ev:event="DOMActivate">
  1871. <![CDATA[
  1872. fSrchChk();
  1873. if(submit("TRPIF00104") == false){
  1874. messageBox("파일 생성시 오류가 발생하였습니다." , "E999");
  1875. return;
  1876. }
  1877. messageBox("파일 생성이 완료 되었습니다." , "E999");
  1878. ]]>
  1879. </script>
  1880. </button>
  1881. <button id="button11" class="btn2_letter4" style="left:885px; top:64px; width:64px; height:19px; ">
  1882. <caption>엑셀저장</caption>
  1883. <script type="javascript" ev:event="DOMActivate">
  1884. <![CDATA[
  1885. var today = getCurrentDate();
  1886. if (grd_deptfild.rows == 2) {
  1887. return;
  1888. }
  1889. var fileName = window.fileDialog("save", ",", false, "과별-분야별현황 수정전후집계표 조회_"+today , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1890. if (fileName != "")
  1891. {
  1892. //grd_deptfild.saveExcel(fileName, "과별분야별현황수정전후집계표조회", false, true, "", "", "");
  1893. grd_deptfild.saveExcel(fileName, "sheetname:과별-분야별현황 수정전후집계표 조회; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;;");
  1894. }
  1895. ]]>
  1896. </script>
  1897. </button>
  1898. <button id="button4" class="btn2_letter4" style="left:885px; top:64px; width:64px; height:19px; ">
  1899. <caption>엑셀저장</caption>
  1900. <script type="javascript" ev:event="DOMActivate">
  1901. <![CDATA[
  1902. var today = getCurrentDate();
  1903. if (grd_indprescond.rows == 2) {
  1904. return;
  1905. }
  1906. var fileName = window.fileDialog("save", ",", false, "개인별현황 수정전후집계표 조회_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1907. if (fileName != "")
  1908. {
  1909. grd_indprescond.saveExcel(fileName, "sheetname:개인별현황 수정전후집계표 조회; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:; clamtypecd:label;supp:label;");
  1910. }
  1911. ]]>
  1912. </script>
  1913. </button>
  1914. <button id="button6" class="btn2_letter4" style="left:885px; top:64px; width:64px; height:19px; ">
  1915. <caption>엑셀저장</caption>
  1916. <script type="javascript" ev:event="DOMActivate">
  1917. <![CDATA[
  1918. var today = getCurrentDate();
  1919. if (grd_prcpspec.rows == 2) {
  1920. return;
  1921. }
  1922. var fileName = window.fileDialog("save", ",", false, "개인별처방내역 수정전후집계표 조회_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1923. if (fileName != "")
  1924. {
  1925. grd_prcpspec.saveExcel(fileName, "sheetname:개인별처방내역 수정전후집계표 조회; colhiddenextend:false; rowhiddenextend:true; exportfalsecols:; exportfalserows:;");
  1926. }
  1927. ]]>
  1928. </script>
  1929. </button>
  1930. <button id="button5" class="btn2_letter5" style="left:807px; top:64px; width:75px; height:19px; ">
  1931. <caption>집계표출력</caption>
  1932. <script type="javascript" ev:event="DOMActivate">
  1933. <![CDATA[
  1934. var tmpfromdd = model.getValue("/root/send/send_base/fromdd");
  1935. //var todd = model.getValue("/root/send/send_base/todd");
  1936. var tmpfromdd1 = tmpfromdd.substr(0,6);
  1937. model.setValue("/root/send/prtoption/calc", model.getValue("/root/send/send_base/calc"));
  1938. model.setValue("/root/send/prtoption/clamym", tmpfromdd1);
  1939. prt_clamym.refresh();
  1940. grp_prtoption.visible = true;
  1941. ]]>
  1942. </script>
  1943. </button>
  1944. <bool id="bool1" checkvalue="Y,N" ref="/root/send/send_base/calc" style="left:375px; top:65px; width:35px; height:15px; "/>
  1945. <caption id="caption9" style="left:405px; top:65px; width:155px; height:15px; ">청구번호 생성 유(결산용)</caption>
  1946. </group>
  1947. <button id="button2" class="btn2_letter3" style="left:952px; top:76px; width:53px; height:19px; ">
  1948. <caption>셀카피</caption>
  1949. <script type="javascript" ev:event="onclick">
  1950. <![CDATA[
  1951. grd_deptfild.attribute("selectionmode") = "free";
  1952. grd_indprescond.attribute("selectionmode") = "free";
  1953. grd_prcpspec.attribute("selectionmode") = "free";
  1954. ]]>
  1955. </script>
  1956. </button>
  1957. <button id="button3" class="btn2_letter3" style="left:1008px; top:76px; width:53px; height:19px; ">
  1958. <caption>열카피</caption>
  1959. <script type="javascript" ev:event="onclick">
  1960. <![CDATA[
  1961. grd_deptfild.attribute("selectionmode") = "bycol";
  1962. grd_indprescond.attribute("selectionmode") = "bycol";
  1963. grd_prcpspec.attribute("selectionmode") = "bycol";
  1964. ]]>
  1965. </script>
  1966. </button>
  1967. <button id="button7" class="btn2_letter3" style="left:1064px; top:76px; width:53px; height:19px; ">
  1968. <caption>행카피</caption>
  1969. <script type="javascript" ev:event="onclick">
  1970. <![CDATA[
  1971. grd_deptfild.attribute("selectionmode") = "byrow";
  1972. grd_indprescond.attribute("selectionmode") = "byrow";
  1973. grd_prcpspec.attribute("selectionmode") = "byrow";
  1974. ]]>
  1975. </script>
  1976. </button>
  1977. <button id="button10" class="btn4_letter3" style="left:1119px; top:75px; width:68px; height:22px; ">
  1978. <caption>초기화</caption>
  1979. <script type="javascript" ev:event="DOMActivate">
  1980. <![CDATA[
  1981. fInitialize();
  1982. ]]>
  1983. </script>
  1984. </button>
  1985. <caption id="caption1" style="left:0px; top:755px; width:540px; height:16px; font-size:9pt; font-weight:bolder; color:#fa0413; ">▶ [심사상태조건] : 1. 재원:'R' 제외, 2. 심사전:'R' 제외, 3. 심사후:'D','N','R' 제외.</caption>
  1986. <caption id="caption5" style="left:550px; top:755px; width:635px; height:16px; font-size:9pt; font-weight:normal; color:#000000; ">▶ 1. 심사(전)건수 = 재원(재)건수 + 추가건수, 2. 심사(후)건수 = 심사(전)건수 - (삭제+보류건수) + 자격수정건수</caption>
  1987. </xhtml:body>
  1988. </xhtml:html>