1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>이의신청서 출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <obtappchk/>
- <obtappfromdd/>
- <obtapptodd/>
- <judgdg/>
- <clamno/>
- <acptno/>
- <obtappflag>01</obtappflag>
- <instcd/>
- <judgrid/>
- <prtseq/>
- <judgcls/>
- <seqprntyn/>
- <sendprinter>
- <prntheader>
- <obtappdocuno/>
- <hospnm/>
- <proccorpcd/>
- <obtappcnt/>
- <obtappamt/>
- <ordfildcd/>
- <acptno/>
- <setno/>
- <judgdg/>
- <notidd/>
- <judgcls/>
- <prsdnm/>
- <addr/>
- <reprtel/>
- <clamym/>
- <ioflag/>
- <instcd/>
- <usernm/>
- <insucmno/>
- <insucmnm/>
- <tel/>
- <judgrofficetel/>
- <judgrnm/>
- <docuseqnorem/>
- </prntheader>
- <prntlist/>
- <judgclamprntlist>
- <insunm/>
- <hospnm/>
- <proccorpcd/>
- <prsdnm/>
- <rrgstno/>
- <addr/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <decirepldd/>
- <hngnm/>
- <hngnm/>
- <adjtamt/>
- <obtappdd/>
- <obtappamt/>
- <simyy/>
- <simmm/>
- <simdd/>
- <writernm/>
- <writerdeptnm/>
- <toyy/>
- <tomm/>
- <todd/>
- <insuclamnm/>
- <sendto/>
- <clamwrite/>
- <attdocu/>
- <instcd/>
- <tel/>
- <judgrofficetel/>
- <judgrnm/>
- <docuseqnorem/>
- </judgclamprntlist>
- <judgclamresnprntlist>
- <proccorpcd/>
- <hospnm/>
- <reprtel/>
- <docuseqno/>
- <diagcd/>
- <diagnm/>
- <acptno/>
- <setno/>
- <insuflag/>
- <ordym/>
- <rowno/>
- <edicd/>
- <cutamt/>
- <judgclamresn/>
- <reldataatt/>
- <usernm/>
- <insuclamresn/>
- </judgclamresnprntlist>
- </sendprinter>
- <send_judgclamresnprnt>
- <judgdg/>
- <clamno/>
- <acptno/>
- <docuseqno/>
- <obtappflag>06</obtappflag>
- <usernm/>
- <orddd/>
- <edicd/>
- <bfobtappflag/>
- </send_judgclamresnprnt>
- <insukind/>
- </send>
- <main>
- <obtheader>
- <obtappdocuno/>
- <hospnm/>
- <proccorpcd/>
- <obtappcnt/>
- <obtappamt/>
- <ordfildcd/>
- <acptno/>
- <setno/>
- <judgdg/>
- <notidd/>
- <judgcls/>
- <prsdnm/>
- <addr/>
- <reprtel/>
- <clamym/>
- <ioflag/>
- <insukindnm/>
- <insucmno/>
- <insucmnm/>
- </obtheader>
- <obtlist>
- <selectyn/>
- <docuseqno/>
- <orddeptcd/>
- <pid/>
- <patnm/>
- <ioflag/>
- <matramt/>
- <actamt/>
- <judgrid/>
- <obtapprem/>
- <attdocu/>
- <prtseq/>
- <acptno/>
- <setno/>
- <judgdg/>
- <obtappamt/>
- </obtlist>
- <obtdlist>
- <docuseqno/>
- <matramt/>
- <actamt/>
- <lnno/>
- <edicd/>
- <hngnm/>
- <obtapponeqty/>
- <obtappdayqty/>
- <obtapptotqty/>
- <lnno/>
- <attdocu/>
- </obtdlist>
- <judgclamprnt>
- <selectyn/>
- <hospnm/>
- <proccorpcd/>
- <prsdnm/>
- <rrgstno/>
- <addr/>
- <tel/>
- <clamno/>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <hngnm/>
- <decirepldd/>
- <adjtamt/>
- <obtappdd/>
- <obtappamt/>
- <insukind/>
- <orddeptcd/>
- <judgrid/>
- <lastupdtdt/>
- <bfobtappflag/>
- </judgclamprnt>
- <judgclamprntresn>
- <diagcd/>
- <diagnm/>
- <rowno/>
- <ordym/>
- <edicd/>
- <prcpnm/>
- <cutamt/>
- </judgclamprntresn>
- </main>
- <CountNode/>
- <source_judgrinfo>
- <judgrid/>
- </source_judgrinfo>
- <init>
- <U0001list>
- <U0001>
- <judgrid/>
- <judgrnm/>
- </U0001>
- </U0001list>
- </init>
- <receiveref>
- <judgdg/>
- <clamno/>
- <acptno/>
- <obtappflag/>
- <insukind/>
- </receiveref>
- <prtlist>
- <prtseq/>
- <docuseqno/>
- <patnm/>
- <ioflag/>
- <matramt/>
- <actamt/>
- <obtapprem/>
- <attdocu/>
- </prtlist>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRPIR30501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source_judgrinfo/judgrid" resultref="/root/init/U0001list"/>
- <submission id="TRPIR30500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIR30502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_judgclamresnprnt" resultref="/root/send/sendprinter/judgclamresnprntlist"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- CommCode_Load();
- model.setValue("/root/CountNode", "조회건수 OO건 ");
-
- datagrid1.fixedcellcheckbox(0,1) = true;
- grd_judgclamprntlist.fixedcellcheckbox(0,1) = true;
- model.setValue("/root/send/judgdg",model.getValue("/root/receiveref/judgdg"));
- model.setValue("/root/send/clamno",model.getValue("/root/receiveref/clamno"));
- model.setValue("/root/send/acptno",model.getValue("/root/receiveref/acptno"));
- model.setValue("/root/send/obtappflag",model.getValue("/root/receiveref/obtappflag"));
- model.setValue("/root/send/insukind",model.getValue("/root/receiveref/insukind"));
-
- cb_judgcls.select(1); // 의학적 심사 기본
-
- // 순번 미출력 체크 - 20110310 김순애 선생님 요청 노회식
- //model.setValue("/root/send/seqprntyn", "Y");
- //chk_seqprntyn.refresh();
-
- //model.alert(model.getValue("/root/send/obtappflag"));
-
- /*
- var value = model.getValue("/root/send/obtappflag");
-
- if(value == '06' || value == '07'){
- grd_judgclamprntlist.visible = true;
- combo1.disabled = true;
- combo2.disabled = true;
-
- } else {
- grd_judgclamprntlist.visible = false;
- }
- */
- //model.setValue("/root/send/judgdg","20070705");
- //model.setValue("/root/send/clamno","2007052301");
- //model.setValue("/root/send/acptno","4071774");
-
- var value = model.getValue("/root/send/obtappflag");
- var insukind = model.getValue("/root/send/insukind");
-
- if((value == '06' && insukind != '41')|| value == '07' ||value == '12' ||value == '13' || value == '22'){
- grd_judgclamprntlist.visible = true;
- datagrid1.visible= false;
- combo1.disabled = true;
- combo2.disabled = true;
- } else {
- grd_judgclamprntlist.visible = false;
- datagrid1.visible= true;
- }
-
- // 정산의뢰일경우는 이의신청일자별로 조회할 수 있도록 변경
- if(value == '10'){
- obtappchk.disabled = false;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- model.setValue("/root/send/obtappfromdd", getCurrentDate());
- model.setValue("/root/send/obtapptodd", getCurrentDate());
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- model.setValue("/root/send/obtappchk", "");
- obtappchk.refresh();
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- }
-
- submit("TRPIR30500");
-
- //정산환수일 경우 이의신청서 출력화면에 이의신청으로 자동세팅 되게 수정-2009-11-06 이기애쌤 요청 사항
- if(model.getValue("/root/send/obtappflag") == "08"){
- model.setValue("/root/send/obtappflag", "01")
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function subStrByByte(str, bSize){
- if (str.getByteLength() <= bSize) return str;
-
- var rtnValue = "";
-
- // Value 값의 길이만큼 loop
- for(var i=0; i < str.length; i++){
- if (rtnValue.getByteLength() >= bSize) {
- break;
- }
- //한글이 들어오면 255보다 크다
- var tmp = str.charAt(i);
- rtnValue += tmp;
-
- //(this.charCodeAt(i) > 255) ? rtnValue += 2 : rtnValue += 1;
- }
-
- return rtnValue;
- }
- function getCarrigeReturnRemove(str) {
- return str.replace(/\s/g, " ")
- }
- function CommCode_Load() {
- // 관련 Control 초기화
- //zbcfGetCodeList(new Array("P0426"), new Array("/root/init/P0426list"));
-
- // 심사자 조회
- var judgrid = model.getValue("/root/send/judgrid");
- model.setValue("/root/source_judgrinfo/judgrid", judgrid);
- submit("TRPIR30501");
-
- model.refresh();
- }
-
- function fJudgClamPrnt1() {
- var obtappcnt = 0;
- var insuclamnm;
- var insuclamresn;
- var clamwrite;
- var sendto;
- // var judgclamprntcnt = getNodesetCount("/root/main/judgclamprnt");
- for (var i =0; i < grd_judgclamprntlist.rows; i++){
- if (model.getValue("/root/main/judgclamprnt[" + i + "]/selectyn") == "true") {
- obtappcnt += 1;
- var insukind = model.getValue("/root/main/judgclamprnt[" + i + "]/insukind");
- if(insukind == "11" || insukind == "10" ){
- var insunm = "보험급여";
- insuclamnm = "심판청구서";
- clamwrite = "위와 같이 건강보험 심판청구 합니다.";
- sendto = "건강보험분쟁조정위원회";
- //insuclamresn = "심 판 청 구 사 유 서";
- } else if(insukind == "31" ){
- var insunm = "자동차보험";
- insuclamnm = "심판청구서";
- clamwrite = "위와 같이 건강보험 심판청구 합니다.";
- sendto = "자동차보험 분쟁조정 위원회 귀하";
- //insuclamresn = "심 판 청 구 사 유 서";
- } else {
- insunm = "의료급여";
- insuclamnm = "행정심판청구서";
- clamwrite = "위와 같이 행정심판 청구 합니다";
- sendto = "건강보험분쟁조정위원회";
- //insuclamresn = "행 정 심 판 청 구 사 유 서";
- }
- model.setValue("/root/send/sendprinter/judgclamprntlist/insunm", insunm); // 보험급여, 의료급여 글자
- model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamnm", insuclamnm); // 청구서 헤더 글자
- model.setValue("/root/send/sendprinter/judgclamprntlist/clamwrite", clamwrite); // 청구서 문구
- model.setValue("/root/send/sendprinter/judgclamprntlist/sendto", sendto); // 청구서 받는곳 글자
- //model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamresn", insuclamresn); // 사유서 헤더 글자
- //model.setValue("/root/send/sendprinter/judgclamprntlist/insukind", ); // 보험급여일 경우
- model.setValue("/root/send/sendprinter/judgclamprntlist/hospnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hospnm")); // 병원명
- model.setValue("/root/send/sendprinter/judgclamprntlist/proccorpcd",model.getValue("/root/main/judgclamprnt[" + i + "]/proccorpcd")); // 병원기관기호
- model.setValue("/root/send/sendprinter/judgclamprntlist/prsdnm",model.getValue("/root/main/judgclamprnt[" + i + "]/prsdnm")); // 병원장명
- model.setValue("/root/send/sendprinter/judgclamprntlist/rrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/rrgstno")); // 병원장주민번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/addr",model.getValue("/root/main/judgclamprnt[" + i + "]/addr")); // 병원주소
- model.setValue("/root/send/sendprinter/judgclamprntlist/acptno",model.getValue("/root/main/judgclamprnt[" + i + "]/acptno")); // 접수번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg")); // 심사차수
- model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno")); // 명일련
- model.setValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/decirepldd")); // 심결받은일자
- model.setValue("/root/send/sendprinter/judgclamprntlist/hngnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hngnm")); // 환자명
- model.setValue("/root/send/sendprinter/judgclamprntlist/adjtamt",model.getValue("/root/main/judgclamprnt[" + i + "]/adjtamt")); // 삭감액
- model.setValue("/root/send/sendprinter/judgclamprntlist/obtappdd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 결과통보일자
- model.setValue("/root/send/sendprinter/judgclamprntlist/obtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappamt")); // 이의신청금액
- model.setValue("/root/send/sendprinter/judgclamprntlist/attdocu",model.getValue("/root/main/judgclamprnt[" + i + "]/attdocu")); // 첨부파일
- model.setValue("/root/send/sendprinter/judgclamprntlist/tel",model.getValue("/root/main/judgclamprnt[" + i + "]/tel")); // 병원전화번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 심사자전화번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 심사자명
- model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqnorem",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqnorem")); // 고지내용
-
- var simdd = model.getValue("/root/main/judgclamprnt/decirepldd");
- model.setValue("/root/send/sendprinter/judgclamprntlist/simyy",simdd.substr(1,4)); // 심결년
- model.setValue("/root/send/sendprinter/judgclamprntlist/simmm",simdd.substr(5,2)); // 심결월
- model.setValue("/root/send/sendprinter/judgclamprntlist/simdd",simdd.substr(7,2)); // 심결일
- var usernm = getUserName();
- model.setValue("/root/send/sendprinter/judgclamprntlist/writernm", usernm); // 작성자명
- var userinfo = getUserInfos();
- var cnt = 0;
- for(var j = 0; j <= userinfo.length; j++) {
- var nm = userinfo.substr(j,1);
- if(nm == "|"){
- cnt = cnt + 1;
- if(cnt == 5) { var first = j + 1; }
- if(cnt == 6) { var last = j - first; break; }
- }
- }
- var deptnm = userinfo.substr(first, last);
- model.setValue("/root/send/sendprinter/judgclamprntlist/writerdeptnm", deptnm); // 작성자소속부서
- model.setValue("/root/send/sendprinter/judgclamprntlist/instcd",model.getValue("/root/main/judgclamprnt/instcd")); // 기관기호
- model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/judgclamprnt/instcd"),"jpg"));
- // var today = getCurrentDate();
- // model.setValue("/root/send/sendprinter/judgclamprntlist/toyy", today.substr(1,4)); // 오늘 년
- // model.setValue("/root/send/sendprinter/judgclamprntlist/tomm", today.substr(5,2)); // 오늘 월
- // model.setValue("/root/send/sendprinter/judgclamprntlist/todd", today.substr(7,2)); // 오늘 일
- if (insukind == "31" ){
- model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
- model.resetInstanceNode("/root/send/send_judgclamresnprnt");
-
- model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
- model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
- model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
- model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
- model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
- model.setValue("/root/send/send_judgclamresnprnt/obtappflag", model.getValue("/root/send/obtappflag"));
- model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
-
- model.makeValue("/root/send/sendprinter/judgclamprntlist/judgremail",model.getValue("/root/main/judgclamprnt[" + i + "]/judgremail")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/orddeptnm",model.getValue("/root/main/judgclamprnt[" + i + "]/orddeptnm")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/patrrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/patrrgstno")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/insucmno",model.getValue("/root/main/judgclamprnt[" + i + "]/insucmno")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/insucmnm",model.getValue("/root/main/judgclamprnt[" + i + "]/insucmnm")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/certno",model.getValue("/root/main/judgclamprnt[" + i + "]/certno")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/chrgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/chrgrnm")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/chrgrtel",model.getValue("/root/main/judgclamprnt[" + i + "]/chrgrtel")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/ioflag",model.getValue("/root/main/judgclamprnt[" + i + "]/ioflag")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/acddd",model.getValue("/root/main/judgclamprnt[" + i + "]/acddd")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/ordfromdd",model.getValue("/root/main/judgclamprnt[" + i + "]/ordfromdd")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/ordtodd",model.getValue("/root/main/judgclamprnt[" + i + "]/ordtodd")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/bfobtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappamt")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/preday",model.getValue("/root/main/judgclamprnt[" + i + "]/preday")); // 첨부파일
- model.makeValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 심결받은일자
- model.makeValue("/root/send/sendprinter/judgclamprntlist/brthdd",model.getValue("/root/main/judgclamprnt[" + i + "]/brthdd")); // 심결받은일자
- model.makeValue("/root/send/sendprinter/judgclamprntlist/sex",model.getValue("/root/main/judgclamprnt[" + i + "]/sex")); // 심결받은일자
-
- submit("TRPIR30502");
-
- exeReportPreview("RPPIR30514", "XMLSTR" , "" , "" , "" );
- } else {
-
-
- model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
- model.resetInstanceNode("/root/send/send_judgclamresnprnt");
-
- model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
- model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
- model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
- model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
- model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
- model.setValue("/root/send/send_judgclamresnprnt/obtappflag", model.getValue("/root/send/obtappflag"));
- model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
-
- submit("TRPIR30502");
- exeReportPreview("RPPIR30522", "XMLSTR" , "" , "" , "" );
-
- //exeReportPreview("RPPIR30503", "XMLSTR" , "" , "" , "" );
- }
- }
- }
- }
-
- function fJudgClamPrnt2() {
- var obtappcnt = 0;
- var insuclamnm;
- var clamwrite;
- var sendto;
- // var judgclamprntcnt = getNodesetCount("/root/main/judgclamprnt");
- for (var i =0; i < grd_judgclamprntlist.rows; i++){
- if (model.getValue("/root/main/judgclamprnt[" + i + "]/selectyn") == "true") {
- obtappcnt += 1;
- var insukind = model.getValue("/root/main/judgclamprnt[" + i + "]/insukind");
- if(insukind == "11" || insukind == "10" ){
- var insunm = "보험급여";
- insuclamnm = "심판청구서";
- clamwrite = "위와 같이 건강보험 심판청구 합니다.";
- sendto = "건강보험분쟁조정위원회";
- } else {
- insunm = "의료급여";
- insuclamnm = "행정심판청구서";
- clamwrite = "위와 같이 행정심판 청구 합니다";
- sendto = "건강보험분쟁조정위원회";
- }
- model.setValue("/root/send/sendprinter/judgclamprntlist/insunm", insunm); // 보험급여, 의료급여 글자
- model.setValue("/root/send/sendprinter/judgclamprntlist/insuclamnm", insuclamnm); // 청구서 헤더 글자
- model.setValue("/root/send/sendprinter/judgclamprntlist/clamwrite", clamwrite); // 청구서 문구
- model.setValue("/root/send/sendprinter/judgclamprntlist/sendto", sendto); // 청구서 받는곳 글자
- model.setValue("/root/send/sendprinter/judgclamprntlist/hospnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hospnm")); // 병원명
- model.setValue("/root/send/sendprinter/judgclamprntlist/proccorpcd",model.getValue("/root/main/judgclamprnt[" + i + "]/proccorpcd")); // 병원기관기호
- model.setValue("/root/send/sendprinter/judgclamprntlist/prsdnm",model.getValue("/root/main/judgclamprnt[" + i + "]/prsdnm")); // 병원장명
- model.setValue("/root/send/sendprinter/judgclamprntlist/rrgstno",model.getValue("/root/main/judgclamprnt[" + i + "]/rrgstno")); // 병원장주민번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/addr",model.getValue("/root/main/judgclamprnt[" + i + "]/addr")); // 병원주소
- model.setValue("/root/send/sendprinter/judgclamprntlist/acptno",model.getValue("/root/main/judgclamprnt[" + i + "]/acptno")); // 접수번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg")); // 심사차수
- model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno")); // 명일련
- model.setValue("/root/send/sendprinter/judgclamprntlist/decirepldd",model.getValue("/root/main/judgclamprnt[" + i + "]/decirepldd")); // 심결받은일자
- model.setValue("/root/send/sendprinter/judgclamprntlist/hngnm",model.getValue("/root/main/judgclamprnt[" + i + "]/hngnm")); // 환자명
- model.setValue("/root/send/sendprinter/judgclamprntlist/adjtamt",model.getValue("/root/main/judgclamprnt[" + i + "]/adjtamt")); // 삭감액
- model.setValue("/root/send/sendprinter/judgclamprntlist/obtappdd",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappdd")); // 결과통보일자
- model.setValue("/root/send/sendprinter/judgclamprntlist/obtappamt",model.getValue("/root/main/judgclamprnt[" + i + "]/obtappamt")); // 이의신청금액
- model.setValue("/root/send/sendprinter/judgclamprntlist/attdocu",model.getValue("/root/main/judgclamprnt[" + i + "]/attdocu")); // 첨부파일
- model.setValue("/root/send/sendprinter/judgclamprntlist/tel",model.getValue("/root/main/judgclamprnt[" + i + "]/tel")); // 병원전화번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgrofficetel",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrofficetel")); // 심사자전화번호
- model.setValue("/root/send/sendprinter/judgclamprntlist/judgrnm",model.getValue("/root/main/judgclamprnt[" + i + "]/judgrnm")); // 심사자명
- model.setValue("/root/send/sendprinter/judgclamprntlist/docuseqnorem",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqnorem")); // 고지내용
-
- var simdd = model.getValue("/root/main/judgclamprnt/decirepldd");
- model.setValue("/root/send/sendprinter/judgclamprntlist/simyy",simdd.substr(1,4)); // 심결년
- model.setValue("/root/send/sendprinter/judgclamprntlist/simmm",simdd.substr(5,2)); // 심결월
- model.setValue("/root/send/sendprinter/judgclamprntlist/simdd",simdd.substr(7,2)); // 심결일
- var usernm = getUserName();
- model.setValue("/root/send/sendprinter/judgclamprntlist/writernm", usernm); // 작성자명
- var userinfo = getUserInfos();
- var cnt = 0;
- for(var j = 0; j <= userinfo.length; j++) {
- var nm = userinfo.substr(j,1);
- if(nm == "|"){
- cnt = cnt + 1;
- if(cnt == 5) { var first = j + 1; }
- if(cnt == 6) { var last = j - first; break; }
- }
- }
-
- var deptnm = userinfo.substr(first, last);
- model.setValue("/root/send/sendprinter/judgclamprntlist/writerdeptnm", deptnm); // 작성자소속부서
- model.setValue("/root/send/sendprinter/judgclamprntlist/instcd",model.getValue("/root/main/judgclamprnt/instcd")); // 기관기호
- model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/judgclamprnt/instcd"),"jpg"));
- // var today = getCurrentDate();
- // model.setValue("/root/send/sendprinter/judgclamprntlist/toyy", today.substr(1,4)); // 오늘 년
- // model.setValue("/root/send/sendprinter/judgclamprntlist/tomm", today.substr(5,2)); // 오늘 월
- // model.setValue("/root/send/sendprinter/judgclamprntlist/todd", today.substr(7,2)); // 오늘 일
-
-
-
- model.resetInstanceNode("/root/send/sendprinter/judgclamresnprntlist");
- model.resetInstanceNode("/root/send/send_judgclamresnprnt");
-
- model.setValue("/root/send/send_judgclamresnprnt/judgdg",model.getValue("/root/main/judgclamprnt[" + i + "]/judgdg"));
- model.setValue("/root/send/send_judgclamresnprnt/clamno",model.getValue("/root/main/judgclamprnt[" + i + "]/clamno"));
- model.setValue("/root/send/send_judgclamresnprnt/acptno", model.getValue("/root/main/judgclamprnt[" + i + "]/acptno"));
- model.setValue("/root/send/send_judgclamresnprnt/docuseqno",model.getValue("/root/main/judgclamprnt[" + i + "]/docuseqno"));
- model.setValue("/root/send/send_judgclamresnprnt/bfobtappflag",model.getValue("/root/main/judgclamprnt[" + i + "]/bfobtappflag")); // 이전이의신청구분
- model.setValue("/root/send/send_judgclamresnprnt/obtappflag",model.getValue("/root/send/obtappflag"));
- model.setValue("/root/send/send_judgclamresnprnt/usernm",usernm);
-
- submit("TRPIR30502");
- exeReportPreview("RPPIR30522", "XMLSTR" , "" , "" , "true" );
- //exeReportPreview("RPPIR30503", "XMLSTR" , "" , "" , "true" );
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">이의신청서 출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <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; ">
- <col ref="selectyn" type="checkbox"/>
- <col ref="hospnm" type="output"/>
- <col ref="proccorpcd" type="output"/>
- <col ref="prsdnm" type="output"/>
- <col ref="rrgstno" type="output"/>
- <col ref="addr" type="output"/>
- <col ref="tel" type="output"/>
- <col ref="clamno" type="output"/>
- <col ref="acptno" type="output"/>
- <col ref="judgdg" type="output"/>
- <col ref="docuseqno" type="output"/>
- <col ref="hngnm" type="output"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="decirepldd" type="output"/>
- <col ref="adjtamt" type="output"/>
- <col ref="obtappdd" type="output"/>
- <col ref="obtappamt" type="output"/>
- <col ref="insukind" type="output"/>
- <col ref="orddeptcd" type="output"/>
- <col ref="judgrid" type="output"/>
- <col ref="lastupdtdt" type="output"/>
- <col ref="bfobtappflag"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_judgclamprntlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:82px; vertical-align:top; ">
- <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; "/>
- <caption id="caption2" class="search_name" style="left:3px; top:7px; width:86px; height:17px; ">검색조건 :</caption>
- <line id="line13" class="line_4" style="x1:1128px; y1:13px; x2:1128px; y2:68px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1133px; top:31px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- model.resetInstanceNode("/root/main/obtlist");
- model.resetInstanceNode("/root/main/judgclamprnt");
-
- model.refresh();
- submit("TRPIR30500");
-
- if (datagrid1.rows > 1) {
- datagrid1.fixedcellischeck(0, 1) = true;
- }
- if (grd_judgclamprntlist.rows > 1) {
- grd_judgclamprntlist.fixedcellischeck(0, 1) = true;
- }
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>이의신청서</label>
- <value>01</value>
- </item>
- <item>
- <label>재심후이의신청</label>
- <value>02</value>
- </item>
- <item>
- <label>재심사 조정청구서</label>
- <value>03</value>
- </item>
- <item>
- <label>이의신청서(산재)</label>
- <value>0</value>
- </item>
- <item>
- <label>심사청구서</label>
- <value>06</value>
- </item>
- <item>
- <label>정산의뢰</label>
- <value>10</value>
- </item>
- <item>
- <label>이의신청서(후유)</label>
- <value>A</value>
- </item>
- <item>
- <label>자격정산</label>
- <value>11</value>
- </item>
- <item>
- <label>행정심판</label>
- <value>07</value>
- </item>
- <item>
- <label>재심후심사청구</label>
- <value>12</value>
- </item>
- <item>
- <label>재심후행정심판</label>
- <value>13</value>
- </item>
- <item>
- <label>원외정산환수</label>
- <value>09</value>
- </item>
- <item>
- <label>이의제기서(자보)</label>
- <value>21</value>
- </item>
- <item>
- <label>심판청구서(자보)</label>
- <value>22</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var value = model.getValue("/root/send/obtappflag");
- var insukind = model.getValue("/root/send/insukind");
- if((value == '06' && insukind != '41')|| value == '07' || value == '12' ||value == '13' ||value == '22'){
- grd_judgclamprntlist.visible = true;
- datagrid1.visible= false;
- combo1.disabled = true;
- combo2.disabled = true;
- } else {
- grd_judgclamprntlist.visible = false;
- datagrid1.visible= true;
- }
-
- // 정산의뢰일경우는 이의신청일자별로 조회할 수 있도록 변경
- if(value == '10'){
- obtappchk.disabled = false;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- model.setValue("/root/send/obtappfromdd", getCurrentDate());
- model.setValue("/root/send/obtapptodd", getCurrentDate());
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- model.setValue("/root/send/obtappchk", "");
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- } else {
- obtappchk.disabled = true;
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
-
- model.setValue("/root/send/obtappchk", "");
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:557px; top:30px; width:93px; height:17px; ">심 사 자 :</caption>
- <select1 id="combo2" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:650px; top:29px; width:91px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="judgrnm"/>
- <value ref="judgrid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:743px; top:30px; width:91px; height:17px; ">출력순서 :</caption>
- <select1 id="combo1" ref="/root/send/prtseq" class="combo_search" appearance="minimal" style="left:837px; top:29px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>심사자/명일련별</label>
- <value>1</value>
- </item>
- <item>
- <label>심사자/입력순서별</label>
- <value>2</value>
- </item>
- <item>
- <label>명일련별</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:557px; top:7px; width:91px; height:17px; ">심사차수 :</caption>
- <output id="output1" ref="/root/send/judgdg" style="left:650px; top:7px; width:91px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:743px; top:7px; width:91px; height:17px; ">청구번호 :</caption>
- <output id="output2" ref="/root/send/clamno" style="left:837px; top:7px; width:95px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:939px; top:7px; width:91px; height:17px; ">접수번호 :</caption>
- <output id="output3" ref="/root/send/acptno" style="left:1033px; top:7px; width:85px; height:19px; "/>
- <select id="chk_seqprntyn" ref="/root/send/seqprntyn" overflow="visible" appearance="full" style="left:940px; top:31px; width:87px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>순번 미출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cb_judgcls" ref="/root/send/judgcls" class="combo_search" appearance="minimal" style="left:1035px; top:30px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>단순심사</label>
- <value>1</value>
- </item>
- <item>
- <label>의학적심사</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" style="left:730px; top:57px; width:15px; height:14px; ">~</caption>
- <caption id="caption9" style="left:856px; top:55px; width:284px; height:17px; ">(정산의뢰서 출력할때 이의신청일자별 출력가능)</caption>
- <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; "/>
- <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; "/>
- <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; ">
- <choices>
- <item>
- <label>이의신청일자</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (model.getValue("/root/send/obtappchk") == "") {
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- } else {
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }
- ]]>
- </script>
- </select>
- </group>
- <line id="line12" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
- <caption id="caption32" class="tit_2" style="left:5px; top:98px; width:240px; height:13px; ">출력대상자</caption>
- <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; ">
- <col ref="selectyn" type="checkbox"/>
- <col ref="docuseqno" type="output"/>
- <col ref="orddeptcd" type="output"/>
- <col ref="pid" type="output"/>
- <col ref="patnm" type="output"/>
- <col ref="ioflag" type="output"/>
- <col ref="matramt" type="output"/>
- <col ref="actamt" type="output"/>
- <col ref="judgrid" type="output" visibility="hidden"/>
- <col ref="judgnm" type="output"/>
- <col ref="obtappdd" format="yyyy-mm-dd"/>
- <col ref="obtapprem" type="output" style="background-color:#ffff99; "/>
- <col ref="attdocu" type="output"/>
- <col ref="prtseq" type="input"/>
- <col ref="insukindnm" type="input" visibility="hidden"/>
- </datagrid>
- <button id="button5" class="btn2_letter4" visibility="hidden" style="left:1082px; top:93px; width:64px; height:19px; ">
- <caption>미리보기</caption>
- </button>
- <button id="button1" class="btn2_letter2" visibility="hidden" style="left:1148px; top:93px; width:42px; height:19px; ">
- <caption>출력</caption>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button93" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var obtappamt = 0;
- var obtappcnt = 0;
- var lastrow = datagrid1.rows - 1;
- var bnkcnt = 1;
- var seqprntyn = model.getValue("/root/send/seqprntyn");
-
- // 1. 이의신청 청구정보 생성
- model.removenode("/root/send/sendprinter/prntlist");
- model.makeNode("/root/send/sendprinter/prntlist");
- model.makeValue("/root/send/sendprinter/prntheader/obtappdocuno",model.getValue("/root/main/obtheader/obtappdocuno").replace("가의강","보험"));
- model.makeValue("/root/send/sendprinter/prntheader/hospnm",model.getValue("/root/main/obtheader/hospnm"));
- model.makeValue("/root/send/sendprinter/prntheader/proccorpcd",model.getValue("/root/main/obtheader/proccorpcd"));
- model.makeValue("/root/send/sendprinter/prntheader/ordfildcd",model.getValue("/root/main/obtheader/ordfildcd"));
- model.makeValue("/root/send/sendprinter/prntheader/acptno",model.getValue("/root/main/obtheader/acptno"));
- model.makeValue("/root/send/sendprinter/prntheader/setno",model.getValue("/root/main/obtheader/setno"));
- model.makeValue("/root/send/sendprinter/prntheader/judgdg",model.getValue("/root/main/obtheader/judgdg"));
- model.makeValue("/root/send/sendprinter/prntheader/notidd",model.getValue("/root/main/obtheader/notidd"));
- model.makeValue("/root/send/sendprinter/prntheader/instcd",model.getValue("/root/main/obtheader/instcd"));
- model.makeValue("/root/send/sendprinter/prntheader/usernm",model.getValue("/root/main/obtheader/usernm"));
- // model.makeValue("/root/send/sendprinter/prntheagetObtheaderder/notidd",model.getValue("/root/main/obtheader/notidd"));
- model.makeValue("/root/send/sendprinter/prntheader/jikinimg",getImageURL("knujikin_"+model.getValue("/root/main/obtheader/instcd"),"jpg"));
-
-
- var judgcls = model.getValue("/root/main/obtheader/judgcls");
- if (judgcls == "1") {
- model.makeValue("/root/send/sendprinter/prntheader/judgcls1","√");
- model.makeValue("/root/send/sendprinter/prntheader/judgcls2","");
- } else if (judgcls == "2"){
- model.makeValue("/root/send/sendprinter/prntheader/judgcls1","");
- model.makeValue("/root/send/sendprinter/prntheader/judgcls2","√");
- } else {
- model.makeValue("/root/send/sendprinter/prntheader/judgcls1","");
- model.makeValue("/root/send/sendprinter/prntheader/judgcls2","");
- }
-
- model.makeValue("/root/send/sendprinter/prntheader/prsdnm",model.getValue("/root/main/obtheader/prsdnm"));
- model.makeValue("/root/send/sendprinter/prntheader/addr",model.getValue("/root/main/obtheader/addr"));
- model.makeValue("/root/send/sendprinter/prntheader/reprtel",model.getValue("/root/main/obtheader/reprtel"));
- model.makeValue("/root/send/sendprinter/prntheader/clamym",model.getValue("/root/main/obtheader/clamym"));
- model.makeValue("/root/send/sendprinter/prntheader/ioflag",model.getValue("/root/main/obtheader/ioflag"));
- model.makeValue("/root/send/sendprinter/prntheader/insukindnm",model.getValue("/root/main/obtheader/insukindnm"));
-
- // 심사차수 or 정산심사차수 (출력서식에 명칭 분리)
- if (model.getValue("/root/send/obtappflag") == '05' || model.getValue("/root/send/obtappflag") == '08' || model.getValue("/root/send/obtappflag") == '09') {
- model.makeValue("/root/send/sendprinter/prntheader/judgnm","정산심사차수");
- } else {
- model.makeValue("/root/send/sendprinter/prntheader/judgnm","심사차수");
- }
-
- var prtseq = 0;
-
- for (var i =datagrid1.fixedRows; i < datagrid1.rows; i++){
-
- // alert("그리드수만큼 루프" +" / "+ datagrid1.rows +" / "+ i);
- if (model.getValue("/root/main/obtlist[" + i + "]/selectyn") == "true") {
- // 순번 미출력여부
- if (seqprntyn == "Y") {
- prtseq = "";
- } else {
- //prtseq = model.getValue("/root/main/obtlist[" + i + "]/prtseq");
- prtseq = parseInt(prtseq) + 1;
- }
-
- var docuseqno = model.getValue("/root/main/obtlist[" + i + "]/docuseqno");
- var patnm = model.getValue("/root/main/obtlist[" + i + "]/patnm");
- var obtapprem = model.getValue("/root/main/obtlist[" + i + "]/obtapprem")
- var attdocu = model.getValue("/root/main/obtlist[" + i + "]/attdocu")
- var rowcnt = 1;
- //model.removenode("/root/prtlist");
- model.removeNodeset("/root/prtlist");
-
- // 2. 이의신청 처방목록 생성
- var nodeList = instance1.selectNodes("/root/main/obtdlist");
- var length = nodeList.length;
- //model.alert(length);
- if (model.getValue("/root/send/obtappflag") != "0" && model.getValue("/root/send/obtappflag") != 'A') {
- for (var j = 1; j <= length; j++) {
-
- // alert("인스턴스수 루프" + " / "+ length + " / " + j);
- if (docuseqno == model.getValue("/root/main/obtdlist[" + j + "]/docuseqno")) {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
- model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", attdocu);
- //진료구분(입원,외래)
- model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag",model.getValue("/root/main/obtheader/ioflag"));
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", "");
- //진료구분(입원,외래)
- model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag","");
-
- }
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", model.getValue("/root/main/obtdlist[" + j + "]/matramt"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", model.getValue("/root/main/obtdlist[" + j + "]/actamt"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", model.getValue("/root/main/obtdlist[" + j + "]/insulrg"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", model.getValue("/root/main/obtdlist[" + j + "]/adjtresncd"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtdlist[" + j + "]/hngnm"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt",
- parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtapponeqty"))
- * parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtappdayqty"))
- * parseInt(model.getValue("/root/main/obtdlist[" + j + "]/obtapptotqty"))
- );
- model.makeValue("/root/prtlist[" + rowcnt + "]/lnno", model.getValue("/root/main/obtdlist[" + j + "]/lnno"));
- //model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtdlist[" + j + "]/attdocu"));
-
- obtappamt += parseInt(model.getValue("/root/main/obtdlist[" + j + "]/matramt"));
- obtappamt += parseInt(model.getValue("/root/main/obtdlist[" + j + "]/actamt"));
-
- //2009.03.31 syjung 산재용 데이터
- //첨부문서
- //model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtlist[" + j + "]/attdocu"));
- //접수번호
- model.makeValue("/root/prtlist[" + rowcnt + "]/acptno",model.getValue("/root/main/obtheader/acptno"));
- //이의신청 사유 : 2009.03.31 syjung 산재는 이의신청 사유를 한꺼번에 출력한다.
- if (model.getValue("/root/send/obtappflag") == '0' || model.getValue("/root/send/obtappflag") == 'A' || model.getValue("/root/send/insukind") == '41') {
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtlist[" + i + "]/obtapprem"));
- }
-
- rowcnt += 1;
- }
- }
- } else {
- obtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/matramt"));
- obtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/actamt"));
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", i);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
- model.makeValue("/root/prtlist[" + rowcnt + "]/attdocu", model.getValue("/root/main/obtlist[" + i + "]/attdocu"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", model.getValue("/root/main/obtlist[" + i + "]/matramt"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", model.getValue("/root/main/obtlist[" + i + "]/actamt"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", model.getValue("/root/main/obtlist[" + i + "]/obtapprem"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/lnno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/acptno", model.getValue("/root/main/obtheader/acptno"));
- model.makeValue("/root/prtlist[" + rowcnt + "]/ioflag", model.getValue("/root/main/obtheader/ioflag"));
-
- }
- //2009.03.31 syjung 산재는 분리하지 않음!!!
- if (model.getValue("/root/send/obtappflag") != '0' && model.getValue("/root/send/obtappflag") != 'A' && model.getValue("/root/send/insukind") != '41') {
- // 3. 이의신청 사유 생성
- if (obtapprem != "" && obtapprem != "-") {
- //var iObtAppRemLength = obtapprem.getByteLength();
- //var iObtAppRemLength = getStringLength('관련진료 기록 첨부하여 재심사 의뢰 드립니다');
- var ObtAppRemCnt = 0; // 사유 잘린 총 글자수
-
- /*****/
- //var line1 = getStringAsByte(obtapprem, 44, iObtAppRemLength);
- /*
- obtapprem = getCarrigeReturnRemove(obtapprem);
- while (true) {
- var line = subStrByByte(obtapprem, 40);
- */
- //obtapprem = obtapprem.getCarrigeReturnReplace(" ");
-
- //while (true) {
- // var line = obtapprem.getByteString(40);
- var line = obtapprem.split("\n");
- // alert(line.length);
- for(var k=0 ; k < line.length ; k++) {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
-
- }
-
- var iObtAppRemLength = getStringLength(obtapprem);
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- // model.alert(obtapprem.substr(iStartInx, iCharCnt - 1));
- // model.alert(obtapprem.substr(iStartInx, iCharCnt - 1).length);
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", line[k]);
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
- // iStartInx += iCharCnt;
-
- rowcnt++;
- //obtapprem = obtapprem.setReplaceWord(line, "");
- //if (obtapprem.getByteLength() <= 0) {
- // break;
- //}
- }
-
- }
- }
- /*****/
- /*
- var iLen = 0;
- var iStartInx = 0;
- var iCharCnt = 0;
-
- for ( var i =0; i < obtapprem.length; i++) {
- var sBit = obtapprem.charAt(i);
- iCharCnt++;
-
- if (escape(sBit).length == 4) {
- iLen = iLen + 2;
- } else {
- iLen = iLen + 1;
- }
-
- //iLen = iLen + escape(sBit).length;
-
- if (iLen >= 42) {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
-
- }
-
- var iObtAppRemLength = getStringLength(obtapprem);
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- model.alert(obtapprem.substr(iStartInx, iCharCnt - 1));
- model.alert(obtapprem.substr(iStartInx, iCharCnt - 1).length);
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
- iStartInx += iCharCnt;
-
- rowcnt++;
- /*
- if (iLen == 44) {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
-
- }
-
- var iObtAppRemLength = getStringLength(obtapprem);
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
- iStartInx += iCharCnt;
-
- rowcnt++;
-
- }
- else if (iLen > 44) {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
-
- }
-
- var iObtAppRemLength = getStringLength(obtapprem);
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem.substr(iStartInx, iCharCnt - 1));
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
-
- iStartInx += (iCharCnt - 1);
- i--;
-
- rowcnt++;
-
- }
-
-
- iCharCnt = 0;
- iLen = 0;
- }
- }
-
- } else {
- if (rowcnt == 1) {
-
- // 첫번째 row는 순번-명일련-수진자-진료구분을 갖는다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", prtseq);
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", docuseqno);
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", patnm);
-
- } else {
-
- // 두번째 row부터는 생략한다.
- model.makeValue("/root/prtlist[" + rowcnt + "]/prtseq", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/docuseqno", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/patnm", "");
-
- }
-
- var iObtAppRemLength = getStringLength(obtapprem);
-
- model.makeValue("/root/prtlist[" + rowcnt + "]/matramt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/actamt", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/insulrg", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/adjtresncd", "");
- model.makeValue("/root/prtlist[" + rowcnt + "]/edicd", obtapprem);
- model.makeValue("/root/prtlist[" + rowcnt + "]/totappcnt", "");
-
- rowcnt++;
- }
- }
- */
- // 빈줄 생성
- /*
- if (bnkcnt <= lastrow) {
- rowcnt++;
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/prtseq", "……………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/docuseqno", "……………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/patnm", "……………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/ioflag", "…………………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/matramt", "…………………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/actamt", "…………………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/obtapprem", "……………………………………………………………………");
- model.makeValue("/root/obtm/prtlist[" + rowcnt + "]/attdocu", "…………………");
- }
- */
-
- copyNodeListType("/root/send/sendprinter/prntlist", "/root/prtlist", "after");
-
- obtappcnt += 1;
- }
-
- bnkcnt++;
- }
- model.makeValue("/root/send/sendprinter/prntheader/obtappcnt",obtappcnt);
- model.makeValue("/root/send/sendprinter/prntheader/obtappamt",obtappamt);
- model.refresh();
-
- //2009.03.31 syjung 산재 이의신청서
- if (model.getValue("/root/send/obtappflag") == '0' ) {
- //구분
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
- model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/send/sendprinter/prntheader/instcd"),"jpg"));
-
- exeReportPreview("RPPIR30505", "XMLSTR", "","", "false","","","","","false");
-
- //2009.03.31 syjung 산재 이의신청서(후유)
- } else if (model.getValue("/root/send/obtappflag") == 'A' ) {
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
- model.makeValue("/root/send/sendprinter/judgclamprntlist/jikinimg",getImageURL("knujikin_"+model.getValue("/root/send/sendprinter/prntheader/instcd"),"jpg"));
-
- exeReportPreview("RPPIR30506", "XMLSTR", "","", "false","","","","","false");
-
- //2013.04.22 ejlee 산재 재심사청구서
- } else if (model.getValue("/root/send/obtappflag") == '06' && model.getValue("/root/send/insukind") == '41') {
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun1","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun2","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun3","0");
- model.makeValue("/root/send/sendprinter/prntheader/obtappgubun4","0");
-
- exeReportPreview("RPPIR30512", "XMLSTR", "","", "false","","","","","false");
-
- } else if (model.getValue("/root/send/obtappflag") == '01' || model.getValue("/root/send/obtappflag") == '02' || model.getValue("/root/send/obtappflag") == '04'
- || model.getValue("/root/send/obtappflag") == '05' || model.getValue("/root/send/obtappflag") == '08' || model.getValue("/root/send/obtappflag") == '09') {
- exeReportPreview("RPPIR30500", "XMLSTR", "","", "false","","","","","false");
- } else if (model.getValue("/root/send/obtappflag") == '03') {
- exeReportPreview("RPPIR30501", "XMLSTR", "","", "false","","","","","false");
- } else if ((model.getValue("/root/send/obtappflag") == '06' && model.getValue("/root/send/insukind") != '41') || model.getValue("/root/send/obtappflag") == '12' ) {
- fJudgClamPrnt1();
- } else if (model.getValue("/root/send/obtappflag") == '07' || model.getValue("/root/send/obtappflag") == '13') {
- fJudgClamPrnt2();
- } else if (model.getValue("/root/send/obtappflag") == '10' && model.getValue("/root/send/obtappchk") == 'Y') { // 검색조건 정산의뢰 선택에 이의신청일자를 선택하여 기간별로 출력할 경우 정산의뢰신청서 출력 20101123 노회식
-
- var rowno = datagrid1.rows;
- var vobtappamt = 0;
-
- for(var i = 1 ; i < rowno ; i++) {
- vobtappamt += parseInt(model.getValue("/root/main/obtlist[" + i + "]/obtappamt"));
- }
- model.makeValue("/root/send/sendprinter/prntheader/obtappamt",vobtappamt);
-
- exeReportPreview("RPPIR30509", "XMLSTR", "","", "false","","","","","false");
-
- } else if (model.getValue("/root/send/obtappflag") == '10' || model.getValue("/root/send/obtappflag") == '11') {
- exeReportPreview("RPPIR30504", "XMLSTR", "","", "false","","","","","false");
-
- } else if (model.getValue("/root/send/obtappflag") == '21' ) {
- model.makeValue("/root/send/sendprinter/prntheader/insucmno",model.getValue("/root/main/obtheader/insucmno"));
- model.makeValue("/root/send/sendprinter/prntheader/insucmnm",model.getValue("/root/main/obtheader/insucmnm"));
-
- exeReportPreview("RPPIR30513", "XMLSTR", "","", "false","","","","","false");
- } else if (model.getValue("/root/send/obtappflag") == '22' ) {
-
- fJudgClamPrnt1();
- }
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|