SMPIF00101_심사용진료과개인처방별수정전후집계표조회.xrw 115 KB

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