SPPIR30500_이의신청서출력.xrw 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  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. <obtappchk/>
  11. <obtappfromdd/>
  12. <obtapptodd/>
  13. <judgdg/>
  14. <clamno/>
  15. <acptno/>
  16. <obtappflag>01</obtappflag>
  17. <instcd/>
  18. <judgrid/>
  19. <prtseq/>
  20. <judgcls/>
  21. <seqprntyn/>
  22. <sendprinter>
  23. <prntheader>
  24. <obtappdocuno/>
  25. <hospnm/>
  26. <proccorpcd/>
  27. <obtappcnt/>
  28. <obtappamt/>
  29. <ordfildcd/>
  30. <acptno/>
  31. <setno/>
  32. <judgdg/>
  33. <notidd/>
  34. <judgcls/>
  35. <prsdnm/>
  36. <addr/>
  37. <reprtel/>
  38. <clamym/>
  39. <ioflag/>
  40. <instcd/>
  41. <usernm/>
  42. <insucmno/>
  43. <insucmnm/>
  44. <tel/>
  45. <judgrofficetel/>
  46. <judgrnm/>
  47. <docuseqnorem/>
  48. </prntheader>
  49. <prntlist/>
  50. <judgclamprntlist>
  51. <insunm/>
  52. <hospnm/>
  53. <proccorpcd/>
  54. <prsdnm/>
  55. <rrgstno/>
  56. <addr/>
  57. <acptno/>
  58. <judgdg/>
  59. <docuseqno/>
  60. <decirepldd/>
  61. <hngnm/>
  62. <hngnm/>
  63. <adjtamt/>
  64. <obtappdd/>
  65. <obtappamt/>
  66. <simyy/>
  67. <simmm/>
  68. <simdd/>
  69. <writernm/>
  70. <writerdeptnm/>
  71. <toyy/>
  72. <tomm/>
  73. <todd/>
  74. <insuclamnm/>
  75. <sendto/>
  76. <clamwrite/>
  77. <attdocu/>
  78. <instcd/>
  79. <tel/>
  80. <judgrofficetel/>
  81. <judgrnm/>
  82. <docuseqnorem/>
  83. </judgclamprntlist>
  84. <judgclamresnprntlist>
  85. <proccorpcd/>
  86. <hospnm/>
  87. <reprtel/>
  88. <docuseqno/>
  89. <diagcd/>
  90. <diagnm/>
  91. <acptno/>
  92. <setno/>
  93. <insuflag/>
  94. <ordym/>
  95. <rowno/>
  96. <edicd/>
  97. <cutamt/>
  98. <judgclamresn/>
  99. <reldataatt/>
  100. <usernm/>
  101. <insuclamresn/>
  102. </judgclamresnprntlist>
  103. </sendprinter>
  104. <send_judgclamresnprnt>
  105. <judgdg/>
  106. <clamno/>
  107. <acptno/>
  108. <docuseqno/>
  109. <obtappflag>06</obtappflag>
  110. <usernm/>
  111. <orddd/>
  112. <edicd/>
  113. <bfobtappflag/>
  114. </send_judgclamresnprnt>
  115. <insukind/>
  116. </send>
  117. <main>
  118. <obtheader>
  119. <obtappdocuno/>
  120. <hospnm/>
  121. <proccorpcd/>
  122. <obtappcnt/>
  123. <obtappamt/>
  124. <ordfildcd/>
  125. <acptno/>
  126. <setno/>
  127. <judgdg/>
  128. <notidd/>
  129. <judgcls/>
  130. <prsdnm/>
  131. <addr/>
  132. <reprtel/>
  133. <clamym/>
  134. <ioflag/>
  135. <insukindnm/>
  136. <insucmno/>
  137. <insucmnm/>
  138. </obtheader>
  139. <obtlist>
  140. <selectyn/>
  141. <docuseqno/>
  142. <orddeptcd/>
  143. <pid/>
  144. <patnm/>
  145. <ioflag/>
  146. <matramt/>
  147. <actamt/>
  148. <judgrid/>
  149. <obtapprem/>
  150. <attdocu/>
  151. <prtseq/>
  152. <acptno/>
  153. <setno/>
  154. <judgdg/>
  155. <obtappamt/>
  156. </obtlist>
  157. <obtdlist>
  158. <docuseqno/>
  159. <matramt/>
  160. <actamt/>
  161. <lnno/>
  162. <edicd/>
  163. <hngnm/>
  164. <obtapponeqty/>
  165. <obtappdayqty/>
  166. <obtapptotqty/>
  167. <lnno/>
  168. <attdocu/>
  169. </obtdlist>
  170. <judgclamprnt>
  171. <selectyn/>
  172. <hospnm/>
  173. <proccorpcd/>
  174. <prsdnm/>
  175. <rrgstno/>
  176. <addr/>
  177. <tel/>
  178. <clamno/>
  179. <acptno/>
  180. <judgdg/>
  181. <docuseqno/>
  182. <hngnm/>
  183. <decirepldd/>
  184. <adjtamt/>
  185. <obtappdd/>
  186. <obtappamt/>
  187. <insukind/>
  188. <orddeptcd/>
  189. <judgrid/>
  190. <lastupdtdt/>
  191. <bfobtappflag/>
  192. </judgclamprnt>
  193. <judgclamprntresn>
  194. <diagcd/>
  195. <diagnm/>
  196. <rowno/>
  197. <ordym/>
  198. <edicd/>
  199. <prcpnm/>
  200. <cutamt/>
  201. </judgclamprntresn>
  202. </main>
  203. <CountNode/>
  204. <source_judgrinfo>
  205. <judgrid/>
  206. </source_judgrinfo>
  207. <init>
  208. <U0001list>
  209. <U0001>
  210. <judgrid/>
  211. <judgrnm/>
  212. </U0001>
  213. </U0001list>
  214. </init>
  215. <receiveref>
  216. <judgdg/>
  217. <clamno/>
  218. <acptno/>
  219. <obtappflag/>
  220. <insukind/>
  221. </receiveref>
  222. <prtlist>
  223. <prtseq/>
  224. <docuseqno/>
  225. <patnm/>
  226. <ioflag/>
  227. <matramt/>
  228. <actamt/>
  229. <obtapprem/>
  230. <attdocu/>
  231. </prtlist>
  232. </root>
  233. </instance>
  234. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  235. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  236. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  237. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  238. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  239. <submission id="TRPIR30501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source_judgrinfo/judgrid" resultref="/root/init/U0001list"/>
  240. <submission id="TRPIR30500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  241. <submission id="TRPIR30502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_judgclamresnprnt" resultref="/root/send/sendprinter/judgclamresnprntlist"/>
  242. </model>
  243. <script type="javascript" ev:event="xforms-ready">
  244. <![CDATA[
  245. CommCode_Load();
  246. model.setValue("/root/CountNode", "조회건수 OO건 ");
  247. datagrid1.fixedcellcheckbox(0,1) = true;
  248. grd_judgclamprntlist.fixedcellcheckbox(0,1) = true;
  249. model.setValue("/root/send/judgdg",model.getValue("/root/receiveref/judgdg"));
  250. model.setValue("/root/send/clamno",model.getValue("/root/receiveref/clamno"));
  251. model.setValue("/root/send/acptno",model.getValue("/root/receiveref/acptno"));
  252. model.setValue("/root/send/obtappflag",model.getValue("/root/receiveref/obtappflag"));
  253. model.setValue("/root/send/insukind",model.getValue("/root/receiveref/insukind"));
  254. cb_judgcls.select(1); // 의학적 심사 기본
  255. // 순번 미출력 체크 - 20110310 김순애 선생님 요청 노회식
  256. //model.setValue("/root/send/seqprntyn", "Y");
  257. //chk_seqprntyn.refresh();
  258. //model.alert(model.getValue("/root/send/obtappflag"));
  259. /*
  260. var value = model.getValue("/root/send/obtappflag");
  261. if(value == '06' || value == '07'){
  262. grd_judgclamprntlist.visible = true;
  263. combo1.disabled = true;
  264. combo2.disabled = true;
  265. } else {
  266. grd_judgclamprntlist.visible = false;
  267. }
  268. */
  269. //model.setValue("/root/send/judgdg","20070705");
  270. //model.setValue("/root/send/clamno","2007052301");
  271. //model.setValue("/root/send/acptno","4071774");
  272. var value = model.getValue("/root/send/obtappflag");
  273. var insukind = model.getValue("/root/send/insukind");
  274. if((value == '06' && insukind != '41')|| value == '07' ||value == '12' ||value == '13' || value == '22'){
  275. grd_judgclamprntlist.visible = true;
  276. datagrid1.visible= false;
  277. combo1.disabled = true;
  278. combo2.disabled = true;
  279. } else {
  280. grd_judgclamprntlist.visible = false;
  281. datagrid1.visible= true;
  282. }
  283. // 정산의뢰일경우는 이의신청일자별로 조회할 수 있도록 변경
  284. if(value == '10'){
  285. obtappchk.disabled = false;
  286. ipt_fromdd.disabled = false;
  287. ipt_todd.disabled = false;
  288. model.setValue("/root/send/obtappfromdd", getCurrentDate());
  289. model.setValue("/root/send/obtapptodd", getCurrentDate());
  290. ipt_fromdd.refresh();
  291. ipt_todd.refresh();
  292. model.setValue("/root/send/obtappchk", "");
  293. obtappchk.refresh();
  294. ipt_fromdd.disabled = true;
  295. ipt_todd.disabled = true;
  296. }
  297. submit("TRPIR30500");
  298. //정산환수일 경우 이의신청서 출력화면에 이의신청으로 자동세팅 되게 수정-2009-11-06 이기애쌤 요청 사항
  299. if(model.getValue("/root/send/obtappflag") == "08"){
  300. model.setValue("/root/send/obtappflag", "01")
  301. }
  302. model.refresh();
  303. ]]>
  304. </script>
  305. <script type="javascript">
  306. <![CDATA[
  307. function subStrByByte(str, bSize){
  308. if (str.getByteLength() <= bSize) return str;
  309. var rtnValue = "";
  310. // Value 값의 길이만큼 loop
  311. for(var i=0; i < str.length; i++){
  312. if (rtnValue.getByteLength() >= bSize) {
  313. break;
  314. }
  315. //한글이 들어오면 255보다 크다
  316. var tmp = str.charAt(i);
  317. rtnValue += tmp;
  318. //(this.charCodeAt(i) > 255) ? rtnValue += 2 : rtnValue += 1;
  319. }
  320. return rtnValue;
  321. }
  322. function getCarrigeReturnRemove(str) {
  323. return str.replace(/\s/g, " ")
  324. }
  325. function CommCode_Load() {
  326. // 관련 Control 초기화
  327. //zbcfGetCodeList(new Array("P0426"), new Array("/root/init/P0426list"));
  328. // 심사자 조회
  329. var judgrid = model.getValue("/root/send/judgrid");
  330. model.setValue("/root/source_judgrinfo/judgrid", judgrid);
  331. submit("TRPIR30501");
  332. model.refresh();
  333. }
  334. function fJudgClamPrnt1() {
  335. var obtappcnt = 0;
  336. var insuclamnm;
  337. var insuclamresn;
  338. var clamwrite;
  339. var sendto;
  340. // var judgclamprntcnt = getNodesetCount("/root/main/judgclamprnt");
  341. for (var i =0; i < grd_judgclamprntlist.rows; i++){
  342. if (model.getValue("/root/main/judgclamprnt[" + i + "]/selectyn") == "true") {
  343. obtappcnt += 1;
  344. var insukind = model.getValue("/root/main/judgclamprnt[" + i + "]/insukind");
  345. if(insukind == "11" || insukind == "10" ){
  346. var insunm = "보험급여";
  347. insuclamnm = "심판청구서";
  348. clamwrite = "위와 같이 건강보험 심판청구 합니다.";
  349. sendto = "건강보험분쟁조정위원회";
  350. //insuclamresn = "심 판 청 구 사 유 서";
  351. } else if(insukind == "31" ){
  352. var insunm = "자동차보험";
  353. insuclamnm = "심판청구서";
  354. clamwrite = "위와 같이 건강보험 심판청구 합니다.";
  355. sendto = "자동차보험 분쟁조정 위원회 귀하";
  356. //insuclamresn = "심 판 청 구 사 유 서";
  357. } else {
  358. insunm = "의료급여";
  359. insuclamnm = "행정심판청구서";
  360. clamwrite = "위와 같이 행정심판 청구 합니다";
  361. sendto = "건강보험분쟁조정위원회";
  362. //insuclamresn = "행 정 심 판 청 구 사 유 서";
  363. }
  364. model.setValue("/root/send/sendprinter/judgclamprntlist/insunm", insunm); // 보험급여, 의료급여 글자
  365. model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamnm", insuclamnm); // 청구서 헤더 글자
  366. model.setValue("/root/send/sendprinter/judgclamprntlist/clamwrite", clamwrite); // 청구서 문구
  367. model.setValue("/root/send/sendprinter/judgclamprntlist/sendto", sendto); // 청구서 받는곳 글자
  368. //model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamresn", insuclamresn); // 사유서 헤더 글자
  369. //model.setValue("/root/send/sendprinter/judgclamprntlist/insukind", ); // 보험급여일 경우
  370. model.setValue("/root/send/sendprinter/judgclamprntlist/hospnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hospnm")); // 병원명
  371. model.setValue("/root/send/sendprinter/judgclamprntlist/proccorpcd",model.getValue("/root/main/judgclamprnt[" + i + "]/proccorpcd")); // 병원기관기호
  372. model.setValue("/root/send/sendprinter/judgclamprntlist/prsdnm",model.getValue("/root/main/judgclamprnt[" + i + "]/prsdnm")); // 병원장명
  373. model.setValue("/root/send/sendprinter/judgclamprntlist/rrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/rrgstno")); // 병원장주민번호
  374. model.setValue("/root/send/sendprinter/judgclamprntlist/addr",model.getValue("/root/main/judgclamprnt[" + i + "]/addr")); // 병원주소
  375. model.setValue("/root/send/sendprinter/judgclamprntlist/acptno",model.getValue("/root/main/judgclamprnt[" + i + "]/acptno")); // 접수번호
  376. model.setValue("/root/send/sendprinter/judgclamprntlist/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg")); // 심사차수
  377. model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno")); // 명일련
  378. model.setValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/decirepldd")); // 심결받은일자
  379. model.setValue("/root/send/sendprinter/judgclamprntlist/hngnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hngnm")); // 환자명
  380. model.setValue("/root/send/sendprinter/judgclamprntlist/adjtamt",model.getValue("/root/main/judgclamprnt[" + i + "]/adjtamt")); // 삭감액
  381. model.setValue("/root/send/sendprinter/judgclamprntlist/obtappdd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 결과통보일자
  382. model.setValue("/root/send/sendprinter/judgclamprntlist/obtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappamt")); // 이의신청금액
  383. model.setValue("/root/send/sendprinter/judgclamprntlist/attdocu",model.getValue("/root/main/judgclamprnt[" + i + "]/attdocu")); // 첨부파일
  384. model.setValue("/root/send/sendprinter/judgclamprntlist/tel",model.getValue("/root/main/judgclamprnt[" + i + "]/tel")); // 병원전화번호
  385. model.setValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 심사자전화번호
  386. model.setValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 심사자명
  387. model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqnorem",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqnorem")); // 고지내용
  388. var simdd = model.getValue("/root/main/judgclamprnt/decirepldd");
  389. model.setValue("/root/send/sendprinter/judgclamprntlist/simyy",simdd.substr(1,4)); // 심결년
  390. model.setValue("/root/send/sendprinter/judgclamprntlist/simmm",simdd.substr(5,2)); // 심결월
  391. model.setValue("/root/send/sendprinter/judgclamprntlist/simdd",simdd.substr(7,2)); // 심결일
  392. var usernm = getUserName();
  393. model.setValue("/root/send/sendprinter/judgclamprntlist/writernm", usernm); // 작성자명
  394. var userinfo = getUserInfos();
  395. var cnt = 0;
  396. for(var j = 0; j <= userinfo.length; j++) {
  397. var nm = userinfo.substr(j,1);
  398. if(nm == "|"){
  399. cnt = cnt + 1;
  400. if(cnt == 5) { var first = j + 1; }
  401. if(cnt == 6) { var last = j - first; break; }
  402. }
  403. }
  404. var deptnm = userinfo.substr(first, last);
  405. model.setValue("/root/send/sendprinter/judgclamprntlist/writerdeptnm", deptnm); // 작성자소속부서
  406. model.setValue("/root/send/sendprinter/judgclamprntlist/instcd",model.getValue("/root/main/judgclamprnt/instcd")); // 기관기호
  407. model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/judgclamprnt/instcd"),"jpg"));
  408. // var today = getCurrentDate();
  409. // model.setValue("/root/send/sendprinter/judgclamprntlist/toyy", today.substr(1,4)); // 오늘 년
  410. // model.setValue("/root/send/sendprinter/judgclamprntlist/tomm", today.substr(5,2)); // 오늘 월
  411. // model.setValue("/root/send/sendprinter/judgclamprntlist/todd", today.substr(7,2)); // 오늘 일
  412. if (insukind == "31" ){
  413. model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
  414. model.resetInstanceNode("/root/send/send_judgclamresnprnt");
  415. model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
  416. model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
  417. model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
  418. model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
  419. model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
  420. model.setValue("/root/send/send_judgclamresnprnt/obtappflag", model.getValue("/root/send/obtappflag"));
  421. model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
  422. model.makeValue("/root/send/sendprinter/judgclamprntlist/judgremail",model.getValue("/root/main/judgclamprnt[" + i + "]/judgremail")); // 첨부파일
  423. model.makeValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 첨부파일
  424. model.makeValue("/root/send/sendprinter/judgclamprntlist/orddeptnm",model.getValue("/root/main/judgclamprnt[" + i + "]/orddeptnm")); // 첨부파일
  425. model.makeValue("/root/send/sendprinter/judgclamprntlist/patrrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/patrrgstno")); // 첨부파일
  426. model.makeValue("/root/send/sendprinter/judgclamprntlist/insucmno",model.getValue("/root/main/judgclamprnt[" + i + "]/insucmno")); // 첨부파일
  427. model.makeValue("/root/send/sendprinter/judgclamprntlist/insucmnm",model.getValue("/root/main/judgclamprnt[" + i + "]/insucmnm")); // 첨부파일
  428. model.makeValue("/root/send/sendprinter/judgclamprntlist/certno",model.getValue("/root/main/judgclamprnt[" + i + "]/certno")); // 첨부파일
  429. model.makeValue("/root/send/sendprinter/judgclamprntlist/chrgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/chrgrnm")); // 첨부파일
  430. model.makeValue("/root/send/sendprinter/judgclamprntlist/chrgrtel",model.getValue("/root/main/judgclamprnt[" + i + "]/chrgrtel")); // 첨부파일
  431. model.makeValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 첨부파일
  432. model.makeValue("/root/send/sendprinter/judgclamprntlist/ioflag",model.getValue("/root/main/judgclamprnt[" + i + "]/ioflag")); // 첨부파일
  433. model.makeValue("/root/send/sendprinter/judgclamprntlist/acddd",model.getValue("/root/main/judgclamprnt[" + i + "]/acddd")); // 첨부파일
  434. model.makeValue("/root/send/sendprinter/judgclamprntlist/ordfromdd",model.getValue("/root/main/judgclamprnt[" + i + "]/ordfromdd")); // 첨부파일
  435. model.makeValue("/root/send/sendprinter/judgclamprntlist/ordtodd",model.getValue("/root/main/judgclamprnt[" + i + "]/ordtodd")); // 첨부파일
  436. model.makeValue("/root/send/sendprinter/judgclamprntlist/bfobtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappamt")); // 첨부파일
  437. model.makeValue("/root/send/sendprinter/judgclamprntlist/preday",model.getValue("/root/main/judgclamprnt[" + i + "]/preday")); // 첨부파일
  438. model.makeValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 심결받은일자
  439. model.makeValue("/root/send/sendprinter/judgclamprntlist/brthdd",model.getValue("/root/main/judgclamprnt[" + i + "]/brthdd")); // 심결받은일자
  440. model.makeValue("/root/send/sendprinter/judgclamprntlist/sex",model.getValue("/root/main/judgclamprnt[" + i + "]/sex")); // 심결받은일자
  441. submit("TRPIR30502");
  442. exeReportPreview("RPPIR30514", "XMLSTR" , "" , "" , "" );
  443. } else {
  444. model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
  445. model.resetInstanceNode("/root/send/send_judgclamresnprnt");
  446. model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
  447. model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
  448. model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
  449. model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
  450. model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
  451. model.setValue("/root/send/send_judgclamresnprnt/obtappflag", model.getValue("/root/send/obtappflag"));
  452. model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
  453. submit("TRPIR30502");
  454. exeReportPreview("RPPIR30522", "XMLSTR" , "" , "" , "" );
  455. //exeReportPreview("RPPIR30503", "XMLSTR" , "" , "" , "" );
  456. }
  457. }
  458. }
  459. }
  460. function fJudgClamPrnt2() {
  461. var obtappcnt = 0;
  462. var insuclamnm;
  463. var clamwrite;
  464. var sendto;
  465. // var judgclamprntcnt = getNodesetCount("/root/main/judgclamprnt");
  466. for (var i =0; i < grd_judgclamprntlist.rows; i++){
  467. if (model.getValue("/root/main/judgclamprnt[" + i + "]/selectyn") == "true") {
  468. obtappcnt += 1;
  469. var insukind = model.getValue("/root/main/judgclamprnt[" + i + "]/insukind");
  470. if(insukind == "11" || insukind == "10" ){
  471. var insunm = "보험급여";
  472. insuclamnm = "심판청구서";
  473. clamwrite = "위와 같이 건강보험 심판청구 합니다.";
  474. sendto = "건강보험분쟁조정위원회";
  475. } else {
  476. insunm = "의료급여";
  477. insuclamnm = "행정심판청구서";
  478. clamwrite = "위와 같이 행정심판 청구 합니다";
  479. sendto = "건강보험분쟁조정위원회";
  480. }
  481. model.setValue("/root/send/sendprinter/judgclamprntlist/insunm", insunm); // 보험급여, 의료급여 글자
  482. model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamnm", insuclamnm); // 청구서 헤더 글자
  483. model.setValue("/root/send/sendprinter/judgclamprntlist/clamwrite", clamwrite); // 청구서 문구
  484. model.setValue("/root/send/sendprinter/judgclamprntlist/sendto", sendto); // 청구서 받는곳 글자
  485. model.setValue("/root/send/sendprinter/judgclamprntlist/hospnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hospnm")); // 병원명
  486. model.setValue("/root/send/sendprinter/judgclamprntlist/proccorpcd",model.getValue("/root/main/judgclamprnt[" + i + "]/proccorpcd")); // 병원기관기호
  487. model.setValue("/root/send/sendprinter/judgclamprntlist/prsdnm",model.getValue("/root/main/judgclamprnt[" + i + "]/prsdnm")); // 병원장명
  488. model.setValue("/root/send/sendprinter/judgclamprntlist/rrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/rrgstno")); // 병원장주민번호
  489. model.setValue("/root/send/sendprinter/judgclamprntlist/addr",model.getValue("/root/main/judgclamprnt[" + i + "]/addr")); // 병원주소
  490. model.setValue("/root/send/sendprinter/judgclamprntlist/acptno",model.getValue("/root/main/judgclamprnt[" + i + "]/acptno")); // 접수번호
  491. model.setValue("/root/send/sendprinter/judgclamprntlist/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg")); // 심사차수
  492. model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno")); // 명일련
  493. model.setValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/decirepldd")); // 심결받은일자
  494. model.setValue("/root/send/sendprinter/judgclamprntlist/hngnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hngnm")); // 환자명
  495. model.setValue("/root/send/sendprinter/judgclamprntlist/adjtamt",model.getValue("/root/main/judgclamprnt[" + i + "]/adjtamt")); // 삭감액
  496. model.setValue("/root/send/sendprinter/judgclamprntlist/obtappdd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 결과통보일자
  497. model.setValue("/root/send/sendprinter/judgclamprntlist/obtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappamt")); // 이의신청금액
  498. model.setValue("/root/send/sendprinter/judgclamprntlist/attdocu",model.getValue("/root/main/judgclamprnt[" + i + "]/attdocu")); // 첨부파일
  499. model.setValue("/root/send/sendprinter/judgclamprntlist/tel",model.getValue("/root/main/judgclamprnt[" + i + "]/tel")); // 병원전화번호
  500. model.setValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 심사자전화번호
  501. model.setValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 심사자명
  502. model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqnorem",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqnorem")); // 고지내용
  503. var simdd = model.getValue("/root/main/judgclamprnt/decirepldd");
  504. model.setValue("/root/send/sendprinter/judgclamprntlist/simyy",simdd.substr(1,4)); // 심결년
  505. model.setValue("/root/send/sendprinter/judgclamprntlist/simmm",simdd.substr(5,2)); // 심결월
  506. model.setValue("/root/send/sendprinter/judgclamprntlist/simdd",simdd.substr(7,2)); // 심결일
  507. var usernm = getUserName();
  508. model.setValue("/root/send/sendprinter/judgclamprntlist/writernm", usernm); // 작성자명
  509. var userinfo = getUserInfos();
  510. var cnt = 0;
  511. for(var j = 0; j <= userinfo.length; j++) {
  512. var nm = userinfo.substr(j,1);
  513. if(nm == "|"){
  514. cnt = cnt + 1;
  515. if(cnt == 5) { var first = j + 1; }
  516. if(cnt == 6) { var last = j - first; break; }
  517. }
  518. }
  519. var deptnm = userinfo.substr(first, last);
  520. model.setValue("/root/send/sendprinter/judgclamprntlist/writerdeptnm", deptnm); // 작성자소속부서
  521. model.setValue("/root/send/sendprinter/judgclamprntlist/instcd",model.getValue("/root/main/judgclamprnt/instcd")); // 기관기호
  522. model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/judgclamprnt/instcd"),"jpg"));
  523. // var today = getCurrentDate();
  524. // model.setValue("/root/send/sendprinter/judgclamprntlist/toyy", today.substr(1,4)); // 오늘 년
  525. // model.setValue("/root/send/sendprinter/judgclamprntlist/tomm", today.substr(5,2)); // 오늘 월
  526. // model.setValue("/root/send/sendprinter/judgclamprntlist/todd", today.substr(7,2)); // 오늘 일
  527. model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
  528. model.resetInstanceNode("/root/send/send_judgclamresnprnt");
  529. model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
  530. model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
  531. model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
  532. model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
  533. model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
  534. model.setValue("/root/send/send_judgclamresnprnt/obtappflag",model.getValue("/root/send/obtappflag"));
  535. model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
  536. submit("TRPIR30502");
  537. exeReportPreview("RPPIR30522", "XMLSTR" , "" , "" , "true" );
  538. //exeReportPreview("RPPIR30503", "XMLSTR" , "" , "" , "true" );
  539. }
  540. }
  541. }
  542. ]]>
  543. </script>
  544. </xhtml:head>
  545. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  546. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  547. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">이의신청서 출력</caption>
  548. </group>
  549. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  550. <datagrid id="grd_judgclamprntlist" nodeset="/root/main/judgclamprnt" caption="Y^기관명^기관기호^병원장명^병원장주민번호^기관주소^기관전화번호^청구번호^접수번호^심사차수^명일련^환자명^진료일자^심결통보일자^삭감액^결과통보일자^청구금액^보험유형^진료과^심사자^최종입력일시^이전신청구분" colsep="^" colwidth="25, 150, 80, 70, 100, 200, 100, 80, 80, 80, 80, 70, 100, 80, 70, 80, 80, 60, 60, 80, 100, 100" dataheight="23" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:118px; width:1194px; height:621px; ">
  551. <col ref="selectyn" type="checkbox"/>
  552. <col ref="hospnm" type="output"/>
  553. <col ref="proccorpcd" type="output"/>
  554. <col ref="prsdnm" type="output"/>
  555. <col ref="rrgstno" type="output"/>
  556. <col ref="addr" type="output"/>
  557. <col ref="tel" type="output"/>
  558. <col ref="clamno" type="output"/>
  559. <col ref="acptno" type="output"/>
  560. <col ref="judgdg" type="output"/>
  561. <col ref="docuseqno" type="output"/>
  562. <col ref="hngnm" type="output"/>
  563. <col ref="orddd" visibility="hidden"/>
  564. <col ref="decirepldd" type="output"/>
  565. <col ref="adjtamt" type="output"/>
  566. <col ref="obtappdd" type="output"/>
  567. <col ref="obtappamt" type="output"/>
  568. <col ref="insukind" type="output"/>
  569. <col ref="orddeptcd" type="output"/>
  570. <col ref="judgrid" type="output"/>
  571. <col ref="lastupdtdt" type="output"/>
  572. <col ref="bfobtappflag"/>
  573. <script type="javascript" ev:event="onaftersort">
  574. <![CDATA[
  575. grd_judgclamprntlist.gridToInstance();
  576. ]]>
  577. </script>
  578. </datagrid>
  579. <group id="group2" style="left:0px; top:10px; width:1194px; height:82px; vertical-align:top; ">
  580. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:79px; background-color:#fffbf2; border-color:#ffd799; "/>
  581. <caption id="caption2" class="search_name" style="left:3px; top:7px; width:86px; height:17px; ">검색조건 :</caption>
  582. <line id="line13" class="line_4" style="x1:1128px; y1:13px; x2:1128px; y2:68px; border-color:#ffe4bb; border-left-style:solid; "/>
  583. <button id="btn_search" class="btn1_letter2" style="left:1133px; top:31px; width:56px; height:22px; ">
  584. <caption>조회</caption>
  585. <script type="javascript" ev:event="onclick">
  586. <![CDATA[
  587. model.resetInstanceNode("/root/main/obtlist");
  588. model.resetInstanceNode("/root/main/judgclamprnt");
  589. model.refresh();
  590. submit("TRPIR30500");
  591. if (datagrid1.rows > 1) {
  592. datagrid1.fixedcellischeck(0, 1) = true;
  593. }
  594. if (grd_judgclamprntlist.rows > 1) {
  595. grd_judgclamprntlist.fixedcellischeck(0, 1) = true;
  596. }
  597. ]]>
  598. </script>
  599. </button>
  600. <select1 id="radio1" ref="/root/send/obtappflag" class="radio_search" appearance="full" cellspacing="6" cols="4" overflow="visible" style="left:87px; top:3px; width:463px; height:67px; border-style:none; ">
  601. <choices>
  602. <item>
  603. <label>이의신청서</label>
  604. <value>01</value>
  605. </item>
  606. <item>
  607. <label>재심후이의신청</label>
  608. <value>02</value>
  609. </item>
  610. <item>
  611. <label>재심사 조정청구서</label>
  612. <value>03</value>
  613. </item>
  614. <item>
  615. <label>이의신청서(산재)</label>
  616. <value>0</value>
  617. </item>
  618. <item>
  619. <label>심사청구서</label>
  620. <value>06</value>
  621. </item>
  622. <item>
  623. <label>정산의뢰</label>
  624. <value>10</value>
  625. </item>
  626. <item>
  627. <label>이의신청서(후유)</label>
  628. <value>A</value>
  629. </item>
  630. <item>
  631. <label>자격정산</label>
  632. <value>11</value>
  633. </item>
  634. <item>
  635. <label>행정심판</label>
  636. <value>07</value>
  637. </item>
  638. <item>
  639. <label>재심후심사청구</label>
  640. <value>12</value>
  641. </item>
  642. <item>
  643. <label>재심후행정심판</label>
  644. <value>13</value>
  645. </item>
  646. <item>
  647. <label>원외정산환수</label>
  648. <value>09</value>
  649. </item>
  650. <item>
  651. <label>이의제기서(자보)</label>
  652. <value>21</value>
  653. </item>
  654. <item>
  655. <label>심판청구서(자보)</label>
  656. <value>22</value>
  657. </item>
  658. </choices>
  659. <script type="javascript" ev:event="xforms-select">
  660. <![CDATA[
  661. var value = model.getValue("/root/send/obtappflag");
  662. var insukind = model.getValue("/root/send/insukind");
  663. if((value == '06' && insukind != '41')|| value == '07' || value == '12' ||value == '13' ||value == '22'){
  664. grd_judgclamprntlist.visible = true;
  665. datagrid1.visible= false;
  666. combo1.disabled = true;
  667. combo2.disabled = true;
  668. } else {
  669. grd_judgclamprntlist.visible = false;
  670. datagrid1.visible= true;
  671. }
  672. // 정산의뢰일경우는 이의신청일자별로 조회할 수 있도록 변경
  673. if(value == '10'){
  674. obtappchk.disabled = false;
  675. ipt_fromdd.disabled = false;
  676. ipt_todd.disabled = false;
  677. model.setValue("/root/send/obtappfromdd", getCurrentDate());
  678. model.setValue("/root/send/obtapptodd", getCurrentDate());
  679. ipt_fromdd.refresh();
  680. ipt_todd.refresh();
  681. model.setValue("/root/send/obtappchk", "");
  682. ipt_fromdd.disabled = true;
  683. ipt_todd.disabled = true;
  684. } else {
  685. obtappchk.disabled = true;
  686. ipt_fromdd.disabled = true;
  687. ipt_todd.disabled = true;
  688. model.setValue("/root/send/obtappchk", "");
  689. ipt_fromdd.disabled = true;
  690. ipt_todd.disabled = true;
  691. }
  692. ]]>
  693. </script>
  694. </select1>
  695. <caption id="caption11" class="search_name" style="left:557px; top:30px; width:93px; height:17px; ">심 사 자 :</caption>
  696. <select1 id="combo2" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:650px; top:29px; width:91px; height:19px; ">
  697. <choices>
  698. <itemset nodeset="/root/init/U0001list/U0001">
  699. <label ref="judgrnm"/>
  700. <value ref="judgrid"/>
  701. </itemset>
  702. </choices>
  703. </select1>
  704. <caption id="caption1" class="search_name" style="left:743px; top:30px; width:91px; height:17px; ">출력순서 :</caption>
  705. <select1 id="combo1" ref="/root/send/prtseq" class="combo_search" appearance="minimal" style="left:837px; top:29px; width:95px; height:19px; ">
  706. <choices>
  707. <item>
  708. <label>심사자/명일련별</label>
  709. <value>1</value>
  710. </item>
  711. <item>
  712. <label>심사자/입력순서별</label>
  713. <value>2</value>
  714. </item>
  715. <item>
  716. <label>명일련별</label>
  717. <value>3</value>
  718. </item>
  719. </choices>
  720. </select1>
  721. <caption id="caption3" class="search_name" style="left:557px; top:7px; width:91px; height:17px; ">심사차수 :</caption>
  722. <output id="output1" ref="/root/send/judgdg" style="left:650px; top:7px; width:91px; height:19px; "/>
  723. <caption id="caption4" class="search_name" style="left:743px; top:7px; width:91px; height:17px; ">청구번호 :</caption>
  724. <output id="output2" ref="/root/send/clamno" style="left:837px; top:7px; width:95px; height:19px; "/>
  725. <caption id="caption5" class="search_name" style="left:939px; top:7px; width:91px; height:17px; ">접수번호 :</caption>
  726. <output id="output3" ref="/root/send/acptno" style="left:1033px; top:7px; width:85px; height:19px; "/>
  727. <select id="chk_seqprntyn" ref="/root/send/seqprntyn" overflow="visible" appearance="full" style="left:940px; top:31px; width:87px; height:20px; border-style:none; ">
  728. <choices>
  729. <item>
  730. <label>순번 미출력</label>
  731. <value>Y</value>
  732. </item>
  733. </choices>
  734. </select>
  735. <select1 id="cb_judgcls" ref="/root/send/judgcls" class="combo_search" appearance="minimal" style="left:1035px; top:30px; width:90px; height:19px; ">
  736. <choices>
  737. <item>
  738. <label>단순심사</label>
  739. <value>1</value>
  740. </item>
  741. <item>
  742. <label>의학적심사</label>
  743. <value>2</value>
  744. </item>
  745. </choices>
  746. </select1>
  747. <caption id="caption8" style="left:730px; top:57px; width:15px; height:14px; ">~</caption>
  748. <caption id="caption9" style="left:856px; top:55px; width:284px; height:17px; ">(정산의뢰서 출력할때 이의신청일자별 출력가능)</caption>
  749. <input id="ipt_todd" ref="/root/send/obtapptodd" class="input_search" disabled="true" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:768px; top:53px; width:85px; height:19px; text-align:center; "/>
  750. <input id="ipt_fromdd" ref="/root/send/obtappfromdd" class="input_search" disabled="true" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:660px; top:53px; width:85px; height:19px; text-align:center; "/>
  751. <select id="obtappchk" ref="/root/send/obtappchk" disabled="true" overflow="visible" appearance="full" style="left:560px; top:54px; width:96px; height:20px; border-style:none; ">
  752. <choices>
  753. <item>
  754. <label>이의신청일자</label>
  755. <value>Y</value>
  756. </item>
  757. </choices>
  758. <script type="javascript" ev:event="xforms-value-changed">
  759. <![CDATA[
  760. if (model.getValue("/root/send/obtappchk") == "") {
  761. ipt_fromdd.disabled = true;
  762. ipt_todd.disabled = true;
  763. } else {
  764. ipt_fromdd.disabled = false;
  765. ipt_todd.disabled = false;
  766. }
  767. ]]>
  768. </script>
  769. </select>
  770. </group>
  771. <line id="line12" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  772. <caption id="caption32" class="tit_2" style="left:5px; top:98px; width:240px; height:13px; ">출력대상자</caption>
  773. <datagrid id="datagrid1" nodeset="/root/main/obtlist" caption="^명일련^진료과^등록번호^환자명^진료구분^1항^2항^judgrid^심사자^이의신청일자^이의신청비고^첨부서류^출력순서" colsep="^" colwidth="30, 50, 70, 74, 77, 0, 0, 0, 77, 77, 100, 721, 0, 62, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:118px; width:1194px; height:621px; ">
  774. <col ref="selectyn" type="checkbox"/>
  775. <col ref="docuseqno" type="output"/>
  776. <col ref="orddeptcd" type="output"/>
  777. <col ref="pid" type="output"/>
  778. <col ref="patnm" type="output"/>
  779. <col ref="ioflag" type="output"/>
  780. <col ref="matramt" type="output"/>
  781. <col ref="actamt" type="output"/>
  782. <col ref="judgrid" type="output" visibility="hidden"/>
  783. <col ref="judgnm" type="output"/>
  784. <col ref="obtappdd" format="yyyy-mm-dd"/>
  785. <col ref="obtapprem" type="output" style="background-color:#ffff99; "/>
  786. <col ref="attdocu" type="output"/>
  787. <col ref="prtseq" type="input"/>
  788. <col ref="insukindnm" type="input" visibility="hidden"/>
  789. </datagrid>
  790. <button id="button5" class="btn2_letter4" visibility="hidden" style="left:1082px; top:93px; width:64px; height:19px; ">
  791. <caption>미리보기</caption>
  792. </button>
  793. <button id="button1" class="btn2_letter2" visibility="hidden" style="left:1148px; top:93px; width:42px; height:19px; ">
  794. <caption>출력</caption>
  795. </button>
  796. </group>
  797. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  798. <button id="button93" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  799. <caption>출력</caption>
  800. <script type="javascript" ev:event="onclick">
  801. <![CDATA[
  802. var obtappamt = 0;
  803. var obtappcnt = 0;
  804. var lastrow = datagrid1.rows - 1;
  805. var bnkcnt = 1;
  806. var seqprntyn = model.getValue("/root/send/seqprntyn");
  807. // 1. 이의신청 청구정보 생성
  808. model.removenode("/root/send/sendprinter/prntlist");
  809. model.makeNode("/root/send/sendprinter/prntlist");
  810. model.makeValue("/root/send/sendprinter/prntheader/obtappdocuno",model.getValue("/root/main/obtheader/obtappdocuno").replace("가의강","보험"));
  811. model.makeValue("/root/send/sendprinter/prntheader/hospnm",model.getValue("/root/main/obtheader/hospnm"));
  812. model.makeValue("/root/send/sendprinter/prntheader/proccorpcd",model.getValue("/root/main/obtheader/proccorpcd"));
  813. model.makeValue("/root/send/sendprinter/prntheader/ordfildcd",model.getValue("/root/main/obtheader/ordfildcd"));
  814. model.makeValue("/root/send/sendprinter/prntheader/acptno",model.getValue("/root/main/obtheader/acptno"));
  815. model.makeValue("/root/send/sendprinter/prntheader/setno",model.getValue("/root/main/obtheader/setno"));
  816. model.makeValue("/root/send/sendprinter/prntheader/judgdg",model.getValue("/root/main/obtheader/judgdg"));
  817. model.makeValue("/root/send/sendprinter/prntheader/notidd",model.getValue("/root/main/obtheader/notidd"));
  818. model.makeValue("/root/send/sendprinter/prntheader/instcd",model.getValue("/root/main/obtheader/instcd"));
  819. model.makeValue("/root/send/sendprinter/prntheader/usernm",model.getValue("/root/main/obtheader/usernm"));
  820. // model.makeValue("/root/send/sendprinter/prntheagetObtheaderder/notidd",model.getValue("/root/main/obtheader/notidd"));
  821. model.makeValue("/root/send/sendprinter/prntheader/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/obtheader/instcd"),"jpg"));
  822. var judgcls = model.getValue("/root/main/obtheader/judgcls");
  823. if (judgcls == "1") {
  824. model.makeValue("/root/send/sendprinter/prntheader/judgcls1","√");
  825. model.makeValue("/root/send/sendprinter/prntheader/judgcls2","");
  826. } else if (judgcls == "2"){
  827. model.makeValue("/root/send/sendprinter/prntheader/judgcls1","");
  828. model.makeValue("/root/send/sendprinter/prntheader/judgcls2","√");
  829. } else {
  830. model.makeValue("/root/send/sendprinter/prntheader/judgcls1","");
  831. model.makeValue("/root/send/sendprinter/prntheader/judgcls2","");
  832. }
  833. model.makeValue("/root/send/sendprinter/prntheader/prsdnm",model.getValue("/root/main/obtheader/prsdnm"));
  834. model.makeValue("/root/send/sendprinter/prntheader/addr",model.getValue("/root/main/obtheader/addr"));
  835. model.makeValue("/root/send/sendprinter/prntheader/reprtel",model.getValue("/root/main/obtheader/reprtel"));
  836. model.makeValue("/root/send/sendprinter/prntheader/clamym",model.getValue("/root/main/obtheader/clamym"));
  837. model.makeValue("/root/send/sendprinter/prntheader/ioflag",model.getValue("/root/main/obtheader/ioflag"));
  838. model.makeValue("/root/send/sendprinter/prntheader/insukindnm",model.getValue("/root/main/obtheader/insukindnm"));
  839. // 심사차수 or 정산심사차수 (출력서식에 명칭 분리)
  840. if (model.getValue("/root/send/obtappflag") == '05' || model.getValue("/root/send/obtappflag") == '08' || model.getValue("/root/send/obtappflag") == '09') {
  841. model.makeValue("/root/send/sendprinter/prntheader/judgnm","정산심사차수");
  842. } else {
  843. model.makeValue("/root/send/sendprinter/prntheader/judgnm","심사차수");
  844. }
  845. var prtseq = 0;
  846. for (var i =datagrid1.fixedRows; i < datagrid1.rows; i++){
  847. // alert("그리드수만큼 루프" +" / "+ datagrid1.rows +" / "+ i);
  848. if (model.getValue("/root/main/obtlist[" + i + "]/selectyn") == "true") {
  849. // 순번 미출력여부
  850. if (seqprntyn == "Y") {
  851. prtseq = "";
  852. } else {
  853. //prtseq = model.getValue("/root/main/obtlist[" + i + "]/prtseq");
  854. prtseq = parseInt(prtseq) + 1;
  855. }
  856. var docuseqno = model.getValue("/root/main/obtlist[" + i + "]/docuseqno");
  857. var patnm = model.getValue("/root/main/obtlist[" + i + "]/patnm");
  858. var obtapprem = model.getValue("/root/main/obtlist[" + i + "]/obtapprem")
  859. var attdocu = model.getValue("/root/main/obtlist[" + i + "]/attdocu")
  860. var rowcnt = 1;
  861. //model.removenode("/root/prtlist");
  862. model.removeNodeset("/root/prtlist");
  863. // 2. 이의신청 처방목록 생성
  864. var nodeList = instance1.selectNodes("/root/main/obtdlist");
  865. var length = nodeList.length;
  866. //model.alert(length);
  867. if (model.getValue("/root/send/obtappflag") != "0" && model.getValue("/root/send/obtappflag") != 'A') {
  868. for (var j = 1; j <= length; j++) {
  869. // alert("인스턴스수 루프" + " / "+ length + " / " + j);
  870. if (docuseqno == model.getValue("/root/main/obtdlist[" + j + "]/docuseqno")) {
  871. if (rowcnt == 1) {
  872. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  873. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  874. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  875. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  876. model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", attdocu);
  877. //진료구분(입원,외래)
  878. model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag",model.getValue("/root/main/obtheader/ioflag"));
  879. } else {
  880. // 두번째 row부터는 생략한다.
  881. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  882. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  883. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  884. model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", "");
  885. //진료구분(입원,외래)
  886. model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag","");
  887. }
  888. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", model.getValue("/root/main/obtdlist[" + j + "]/matramt"));
  889. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", model.getValue("/root/main/obtdlist[" + j + "]/actamt"));
  890. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", model.getValue("/root/main/obtdlist[" + j + "]/insulrg"));
  891. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", model.getValue("/root/main/obtdlist[" + j + "]/adjtresncd"));
  892. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtdlist[" + j + "]/hngnm"));
  893. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt",
  894. parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtapponeqty"))
  895. * parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtappdayqty"))
  896. * parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtapptotqty"))
  897. );
  898. model.makeValue("/root/prtlist[" + rowcnt + "]/lnno", model.getValue("/root/main/obtdlist[" + j + "]/lnno"));
  899. //model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtdlist[" + j + "]/attdocu"));
  900. obtappamt += parseInt(model.getValue("/root/main/obtdlist[" + j + "]/matramt"));
  901. obtappamt += parseInt(model.getValue("/root/main/obtdlist[" + j + "]/actamt"));
  902. //2009.03.31 syjung 산재용 데이터
  903. //첨부문서
  904. //model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtlist[" + j + "]/attdocu"));
  905. //접수번호
  906. model.makeValue("/root/prtlist[" + rowcnt + "]/acptno",model.getValue("/root/main/obtheader/acptno"));
  907. //이의신청 사유 : 2009.03.31 syjung 산재는 이의신청 사유를 한꺼번에 출력한다.
  908. if (model.getValue("/root/send/obtappflag") == '0' || model.getValue("/root/send/obtappflag") == 'A' || model.getValue("/root/send/insukind") == '41') {
  909. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtlist[" + i + "]/obtapprem"));
  910. }
  911. rowcnt += 1;
  912. }
  913. }
  914. } else {
  915. obtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/matramt"));
  916. obtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/actamt"));
  917. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", i);
  918. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  919. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  920. model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtlist[" + i + "]/attdocu"));
  921. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", model.getValue("/root/main/obtlist[" + i + "]/matramt"));
  922. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", model.getValue("/root/main/obtlist[" + i + "]/actamt"));
  923. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  924. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  925. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtlist[" + i + "]/obtapprem"));
  926. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  927. model.makeValue("/root/prtlist[" + rowcnt + "]/lnno", "");
  928. model.makeValue("/root/prtlist[" + rowcnt + "]/acptno", model.getValue("/root/main/obtheader/acptno"));
  929. model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag", model.getValue("/root/main/obtheader/ioflag"));
  930. }
  931. //2009.03.31 syjung 산재는 분리하지 않음!!!
  932. if (model.getValue("/root/send/obtappflag") != '0' && model.getValue("/root/send/obtappflag") != 'A' && model.getValue("/root/send/insukind") != '41') {
  933. // 3. 이의신청 사유 생성
  934. if (obtapprem != "" && obtapprem != "-") {
  935. //var iObtAppRemLength = obtapprem.getByteLength();
  936. //var iObtAppRemLength = getStringLength('관련진료 기록 첨부하여 재심사 의뢰 드립니다');
  937. var ObtAppRemCnt = 0; // 사유 잘린 총 글자수
  938. /*****/
  939. //var line1 = getStringAsByte(obtapprem, 44, iObtAppRemLength);
  940. /*
  941. obtapprem = getCarrigeReturnRemove(obtapprem);
  942. while (true) {
  943. var line = subStrByByte(obtapprem, 40);
  944. */
  945. //obtapprem = obtapprem.getCarrigeReturnReplace(" ");
  946. //while (true) {
  947. // var line = obtapprem.getByteString(40);
  948. var line = obtapprem.split("\n");
  949. // alert(line.length);
  950. for(var k=0 ; k < line.length ; k++) {
  951. if (rowcnt == 1) {
  952. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  953. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  954. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  955. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  956. } else {
  957. // 두번째 row부터는 생략한다.
  958. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  959. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  960. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  961. }
  962. var iObtAppRemLength = getStringLength(obtapprem);
  963. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
  964. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
  965. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  966. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  967. // model.alert(obtapprem.substr(iStartInx, iCharCnt - 1));
  968. // model.alert(obtapprem.substr(iStartInx, iCharCnt - 1).length);
  969. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", line[k]);
  970. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  971. // iStartInx += iCharCnt;
  972. rowcnt++;
  973. //obtapprem = obtapprem.setReplaceWord(line, "");
  974. //if (obtapprem.getByteLength() <= 0) {
  975. // break;
  976. //}
  977. }
  978. }
  979. }
  980. /*****/
  981. /*
  982. var iLen = 0;
  983. var iStartInx = 0;
  984. var iCharCnt = 0;
  985. for ( var i =0; i < obtapprem.length; i++) {
  986. var sBit = obtapprem.charAt(i);
  987. iCharCnt++;
  988. if (escape(sBit).length == 4) {
  989. iLen = iLen + 2;
  990. } else {
  991. iLen = iLen + 1;
  992. }
  993. //iLen = iLen + escape(sBit).length;
  994. if (iLen >= 42) {
  995. if (rowcnt == 1) {
  996. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  997. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  998. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  999. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  1000. } else {
  1001. // 두번째 row부터는 생략한다.
  1002. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  1003. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  1004. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  1005. }
  1006. var iObtAppRemLength = getStringLength(obtapprem);
  1007. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
  1008. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
  1009. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  1010. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  1011. model.alert(obtapprem.substr(iStartInx, iCharCnt - 1));
  1012. model.alert(obtapprem.substr(iStartInx, iCharCnt - 1).length);
  1013. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
  1014. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  1015. iStartInx += iCharCnt;
  1016. rowcnt++;
  1017. /*
  1018. if (iLen == 44) {
  1019. if (rowcnt == 1) {
  1020. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  1021. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  1022. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  1023. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  1024. } else {
  1025. // 두번째 row부터는 생략한다.
  1026. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  1027. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  1028. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  1029. }
  1030. var iObtAppRemLength = getStringLength(obtapprem);
  1031. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
  1032. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
  1033. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  1034. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  1035. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
  1036. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  1037. iStartInx += iCharCnt;
  1038. rowcnt++;
  1039. }
  1040. else if (iLen > 44) {
  1041. if (rowcnt == 1) {
  1042. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  1043. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  1044. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  1045. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  1046. } else {
  1047. // 두번째 row부터는 생략한다.
  1048. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  1049. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  1050. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  1051. }
  1052. var iObtAppRemLength = getStringLength(obtapprem);
  1053. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
  1054. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
  1055. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  1056. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  1057. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
  1058. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  1059. iStartInx += (iCharCnt - 1);
  1060. i--;
  1061. rowcnt++;
  1062. }
  1063. iCharCnt = 0;
  1064. iLen = 0;
  1065. }
  1066. }
  1067. } else {
  1068. if (rowcnt == 1) {
  1069. // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
  1070. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
  1071. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
  1072. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
  1073. } else {
  1074. // 두번째 row부터는 생략한다.
  1075. model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
  1076. model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
  1077. model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
  1078. }
  1079. var iObtAppRemLength = getStringLength(obtapprem);
  1080. model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
  1081. model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
  1082. model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
  1083. model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
  1084. model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem);
  1085. model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
  1086. rowcnt++;
  1087. }
  1088. }
  1089. */
  1090. // 빈줄 생성
  1091. /*
  1092. if (bnkcnt <= lastrow) {
  1093. rowcnt++;
  1094. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/prtseq", "……………");
  1095. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/docuseqno", "……………");
  1096. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/patnm", "……………");
  1097. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/ioflag", "…………………");
  1098. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/matramt", "…………………");
  1099. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/actamt", "…………………");
  1100. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/obtapprem", "……………………………………………………………………");
  1101. model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/attdocu", "…………………");
  1102. }
  1103. */
  1104. copyNodeListType("/root/send/sendprinter/prntlist", "/root/prtlist", "after");
  1105. obtappcnt += 1;
  1106. }
  1107. bnkcnt++;
  1108. }
  1109. model.makeValue("/root/send/sendprinter/prntheader/obtappcnt",obtappcnt);
  1110. model.makeValue("/root/send/sendprinter/prntheader/obtappamt",obtappamt);
  1111. model.refresh();
  1112. //2009.03.31 syjung 산재 이의신청서
  1113. if (model.getValue("/root/send/obtappflag") == '0' ) {
  1114. //구분
  1115. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
  1116. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
  1117. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
  1118. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
  1119. model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/send/sendprinter/prntheader/instcd"),"jpg"));
  1120. exeReportPreview("RPPIR30505", "XMLSTR", "","", "false","","","","","false");
  1121. //2009.03.31 syjung 산재 이의신청서(후유)
  1122. } else if (model.getValue("/root/send/obtappflag") == 'A' ) {
  1123. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
  1124. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
  1125. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
  1126. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
  1127. model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/send/sendprinter/prntheader/instcd"),"jpg"));
  1128. exeReportPreview("RPPIR30506", "XMLSTR", "","", "false","","","","","false");
  1129. //2013.04.22 ejlee 산재 재심사청구서
  1130. } else if (model.getValue("/root/send/obtappflag") == '06' && model.getValue("/root/send/insukind") == '41') {
  1131. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
  1132. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
  1133. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
  1134. model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
  1135. exeReportPreview("RPPIR30512", "XMLSTR", "","", "false","","","","","false");
  1136. } else if (model.getValue("/root/send/obtappflag") == '01' || model.getValue("/root/send/obtappflag") == '02' || model.getValue("/root/send/obtappflag") == '04'
  1137. || model.getValue("/root/send/obtappflag") == '05' || model.getValue("/root/send/obtappflag") == '08' || model.getValue("/root/send/obtappflag") == '09') {
  1138. exeReportPreview("RPPIR30500", "XMLSTR", "","", "false","","","","","false");
  1139. } else if (model.getValue("/root/send/obtappflag") == '03') {
  1140. exeReportPreview("RPPIR30501", "XMLSTR", "","", "false","","","","","false");
  1141. } else if ((model.getValue("/root/send/obtappflag") == '06' && model.getValue("/root/send/insukind") != '41') || model.getValue("/root/send/obtappflag") == '12' ) {
  1142. fJudgClamPrnt1();
  1143. } else if (model.getValue("/root/send/obtappflag") == '07' || model.getValue("/root/send/obtappflag") == '13') {
  1144. fJudgClamPrnt2();
  1145. } else if (model.getValue("/root/send/obtappflag") == '10' && model.getValue("/root/send/obtappchk") == 'Y') { // 검색조건 정산의뢰 선택에 이의신청일자를 선택하여 기간별로 출력할 경우 정산의뢰신청서 출력 20101123 노회식
  1146. var rowno = datagrid1.rows;
  1147. var vobtappamt = 0;
  1148. for(var i = 1 ; i < rowno ; i++) {
  1149. vobtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/obtappamt"));
  1150. }
  1151. model.makeValue("/root/send/sendprinter/prntheader/obtappamt",vobtappamt);
  1152. exeReportPreview("RPPIR30509", "XMLSTR", "","", "false","","","","","false");
  1153. } else if (model.getValue("/root/send/obtappflag") == '10' || model.getValue("/root/send/obtappflag") == '11') {
  1154. exeReportPreview("RPPIR30504", "XMLSTR", "","", "false","","","","","false");
  1155. } else if (model.getValue("/root/send/obtappflag") == '21' ) {
  1156. model.makeValue("/root/send/sendprinter/prntheader/insucmno",model.getValue("/root/main/obtheader/insucmno"));
  1157. model.makeValue("/root/send/sendprinter/prntheader/insucmnm",model.getValue("/root/main/obtheader/insucmnm"));
  1158. exeReportPreview("RPPIR30513", "XMLSTR", "","", "false","","","","","false");
  1159. } else if (model.getValue("/root/send/obtappflag") == '22' ) {
  1160. fJudgClamPrnt1();
  1161. }
  1162. ]]>
  1163. </script>
  1164. </button>
  1165. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1166. </group>
  1167. </xhtml:body>
  1168. </xhtml:html>