1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- [개발이력]
- 2007.07.02 / 최초작성 / 이종찬
- [개발사상]
- 본 업무 화면은 2007.06.25일에 배정되었다.
- 재배정되기 전까지 총 24일의 개발 기간이 지정되어 있었으나 2007.06.30 까지가 완료예정일이기 때문에 07월 중순까지 완료 할 예정이다.
- SAM파일 작성법은 심평원 고시를 참조토록 한다.
- 컴포넌트는 요양급여와 의료급여로 나누어져 있는데 개발담당자 재배정 직전 시점에 공정상 분리한 것이었다.(요양급여와 의료급여를 병행 개발하기 위함)
- [할 일]
- (-) EDI청구 SAM파일생성 화면 정의가 필요함(2007.07.05 인수위원회 리뷰)
- (-) SAM파일 생성 후 clam.edistatcd를 업데이트한다.
- (방법: 잠금버튼을 누르면 'SAM' 또는 '송신' 상태로 만들고 잠금해제 버튼을 누르면 이전 상태로 되돌린다. 반드시 이전 상태는 '심사'이고 잠금상태는 'SAM' 또는 '송신'으로 약속한다.)
- EDI상태코드 1:심사, 2:SAM, 3:송신, 4:반송, 5:접수, 6:심결
- (-) 그리드 표시 항목을 행별로 선택 가능하도록 할 것인지 결정해야 함
- (-) 이전자료 삭제를 가능하도록 할 것인지 고객과 협의 해야 함
- (-) 에러 메시지 정제해야 함
- (-) 필수입력사항에 대한 예외처리 해 주어야 함
- (-) 컨트롤 배치 점검
- [2007.08.09]
- (+) SAM파일생성 UI 관련 회의 진행(인수위원 윤영옥 선생님)
- [2007.08.13]
- (+) 청구생성일 / 청구일자: 청구생성일은 개인별 자료수집 마스터 테이블이 가지고 있다. 여러 일자의 자료가 수집되어 있는 상태에서 SAM을 만들기 위해 청구서를 생성하는 시점에야 비로소 청구일자가 생성된다.
- (+) 명세서일련번호 생성: 명세서일련번호는 청구서 집계에 포하되는 개인별 내역에 매겨지는 일련번호이다.(보험유형,심평원진료분야,유형보조가 '공상'이면 맨뒤로,보내기,청구진료과,진료과,환자번호,진료개시일 순으로 생성한다.)
- (+) 청구서생성: 내원유형(입/외),보험유형(보험/급여),청구구분(원청구,보완청구,추가청구),청구일자(시스템시간),작업일자(From,To),진료분야(리스트 선택하고 기본은 전체선택)
- (기본정보: 요양기관기호,담당자성명,대표자명,담당자주민번호)
- 청구서생성버튼 클릭시 청구번호가 생성되고 반드시 SAM생성시 개인별 자료수집 마스터에 청구번호와 명세서일련번호가 업데이트되어야 함
-
- [2007.08.16 최종 확정안]
- (+) 조회조건은 바로 청구성생성 조건으로 가져오기
- (+) 샘생성은 체크한 리스트를 넘기기
- (+) 청구서생성 조건 입력 PopUp 화면에 진료분야를 반드시 리스트로 변경하기
- (+) 청구번호...
- [2007.08.17]
- (+) commonweb에 존재하는 공통스크립트를 가져와 로그 결과 보기 공통화면 호출시 발생 에러 해결
- [2007.08.22]
- 조회 조건, '청구생성일'에서 '청구일자'로 변경
- [테스트]
- 필수입력: (현재 없음)
- 조작: 저장버튼을 누른다.
- -->
- <?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>EDI청구 SAM파일생성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list01>
- <gridsaminfo>
- <chkbox/>
- </gridsaminfo>
- </list01>
- <!-- ########## 수정추가 7 : JHP 2008.07.22 산재 청구서 그리드 인스턴스 ########## -->
- <list02>
- <gridsaminfoinducs/>
- </list02>
- <!-- ########## 수정추가 7 : 끝 ################################################# -->
- <rCSV/>
- <list02>
- <return>
- <differyn/>
- </return>
- </list02>
- <list03>
- <return>
- <judgyn/>
- </return>
- </list03>
- <tCSV/>
- </main>
- <send>
- <tmp>
- <list>
- <chkbox/>
- </list>
- </tmp>
- <insurkindflag/>
- <ioflag/>
- <clamfromdd/>
- <clamtodd/>
- <numflag/>
- <srchnum/>
- <clamflag/>
- <ordfildcd/>
- <termflag/>
- <insurkindAll/>
- <insurkind1/>
- <insurkind2/>
- <insurkind3/>
- <insurkind4/>
- <clamdg/>
- <send_clamdg>
- <fromdd/>
- <ioflag/>
- <insukind/>
- <clamflag/>
- <ordfildcd/>
- <todd/>
- <dateflag/>
- </send_clamdg>
- <suppamtyn/>
- <clamexistsyn/>
- <acptnoexistsyn/>
- <clamcntdfyn/>
- <send_rem>
- <rem/>
- <clamym/>
- <clamdg/>
- <workflag/>
- <seqno/>
- </send_rem>
- </send>
- <init>
- <P0426list>
- <P0426>
- <cdid/>
- <cdnm/>
- </P0426>
- </P0426list>
- <P0103list>
- <P0103>
- <cdid/>
- <cdnm/>
- </P0103>
- </P0103list>
- <P0028list>
- <P0028>
- <cdid/>
- <cdnm/>
- </P0028>
- </P0028list>
- <!-- ########## 수정추가12:JHP 2008.07.25 ########## -->
- <P0458list>
- <P0458>
- <cdid/>
- <cdnm/>
- </P0458>
- </P0458list>
- <P0458kindcdlist>
- </P0458kindcdlist>
- <!-- ######### 수정추가12 : 끝 ########### -->
- <clamdglist>
- <clamdg>
- <cdid/>
- <cdnm/>
- </clamdg>
- </clamdglist>
- <PAM>
- <PK032list/>
- </PAM>
- </init>
- <hidden/>
- <sendclam>
- <ioflag/>
- <clamflag/>
- <insurkindflag/>
- <ordfildcd/>
- <clamfromdd/>
- <clamtodd/>
- <clamcretdd/>
- <clamym/>
- <clamdg/>
- <sumtypecd/>
- <clamtypecd/>
- <flag/>
- <insucmno/>
- </sendclam>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드 헤더에 체크박스를 생성한다.
-
- grd_saminfo.fixedcellcheckbox(0,1) = true;
-
- chk_insukindAll.select(0);
-
- rdo_termflag.select(0);
- rdo_ioflag.select(0);
- rdo_numflag.select(0);
-
- model.setValue("/root/send/clamfromdd",getCurrentDate().substr(0,6));
- model.setValue("/root/send/clamtodd",getCurrentDate().substr(0,6));
-
- // 청구차수가져오기
- model.setValue("/root/send/send_clamdg/dateflag", "1");
- model.setValue("/root/send/send_clamdg/fromdd",getCurrentDate().substr(0,6));
- model.setValue("/root/send/send_clamdg/todd",getCurrentDate().substr(0,6));
- submit("TRPIE00509");
- addComboItem("cmb_clamdg","전체","","above");
-
- ipt_fromcretdd.attribute("maxlength") = 6;
- ipt_tocretdd.attribute("maxlength") = 6;
- ipt_fromcretdd.attribute("format") = "yyyy-mm";
- ipt_tocretdd.attribute("format") = "yyyy-mm";
-
- // 공통코드를 로드한다.
- CommCode_Load();
-
- // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <!-- ########## 수정추가 12 : JHP 2008.070.25 유형코드 불러오려면 ... 필요 ########## -->
- <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <!-- ########## 수정추가 12 : JHP 끝 ############################################ -->
- <submission id="TRPIE00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <!-- ########## 수정추가 5 : JHP 2008.07.22 원본에 최대한 변경을 가하지 않기위해 보험유형 산재선택시 submit따로 날림 ########## -->
- <submission id="TRPIE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
- <!-- ########## 수정추가 5 : 끝 ############################################################################################ -->
- <submission id="TRPIE00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" resultref="/root/main/list02"/>
- <submission id="TXPIE00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TRPIE00508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp" resultref="/root/main/list03"/>
- <submission id="TXPIE00520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendclam"/>
- <submission id="TRPIE00521" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list01"/>
- <submission id="TRPIE00509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamdg" resultref="/root/init/clamdglist/clamdg"/>
- <submission id="TXPIE00507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
- <submission id="TXPIE00521" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_rem" resultref="/root/tmp/tmp"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- // 공통코드 Load작업
- function CommCode_Load() {
- // 관련 Control 초기화
- zbcfGetCodeList( new Array("P0426"
- ,"P0103"
- ,"P0028"
- ,"P0458"
- ),
- new Array("/root/init/P0426list"
- ,"/root/init/P0103list"
- ,"/root/init/P0028list"
- ,"/root/init/P0458list"
- ) , false);
- // ########## 수정추가13 : 끝 ##########
- pamfGetCodeList(new Array(
- "PK032"
- ),
- new Array("/root/init/PAM/PK032list"
- ));
- model.refresh();
- }
-
- function fDateChk(){
-
- var dateflag;
- var fromdd = model.getValue("/root/send/clamfromdd");
- var todd = model.getValue("/root/send/clamtodd");
- var ioflag = model.getValue("/root/send/ioflag");
- var insukind = model.getValue("/root/send/insukindcd");
- var clamflag = model.getValue("/root/send/clamflag");
- var ordfildcd = model.getValue("/root/send/ordfildcd");
-
- if(fromdd == ""){
- messageBox("기간의 시작일자를","C001");
- model.setFocus("ipt_fromdd");
- return;
- }else{
- model.setValue("/root/send/send_clamdg/fromdd",fromdd);
- model.setValue("/root/send/send_clamdg/todd",todd);
-
- if(ioflag == '1'){
- model.setValue("/root/send/send_clamdg/ioflag", "");
- }else if(ioflag == '2'){
- model.setValue("/root/send/send_clamdg/ioflag", "I");
- }else if(ioflag == '3'){
- model.setValue("/root/send/send_clamdg/ioflag", "O");
- }else{
- messageBox("내원유형이 선택되지 않았습니다!.", "E999", "");
- }
-
- if(insukind == '21'){
- model.setValue("/root/send/send_clamdg/insukind", "21','22");
- }else{
- model.setValue("/root/send/send_clamdg/insukind", insukind);
- }
-
- model.setValue("/root/send/send_clamdg/clamflag",clamflag);
- model.setValue("/root/send/send_clamdg/ordfildcd",ordfildcd);
-
- model.setValue("/root/send/send_clamdg/dateflag", "1");
-
- // 청구차수가져오기
- submit("TRPIE00509");
-
-
- if( getNodesetCount("/root/init/clamdglist/clamdg") < 1 ){
- messageBox("청구된 차수가 없습니다. 미수년월을 확인 해 주세요!.", "E999", "");
- }
- // addComboItem("cmb_clamdg","전체","","above");
- }
- addComboItem("cmb_clamdg","전체","","above");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" 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; ">EDI청구SAM파일생성</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:75px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button1" class="btn1_letter2" navindex="6" style="left:1124px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list01/gridsaminfo");
- model.refresh();
- submit("TRPIE00500");
-
- grd_saminfo.colStyle(grd_saminfo.colRef("clamdocdd"),"data","background-color") = "#ffffcc";
- grd_saminfo.colStyle(grd_saminfo.colRef("clamno"),"data","background-color") = "#ffff99";
- grd_saminfo.colStyle(grd_saminfo.colRef("clbscnt"),"data","background-color") = "#ffff88";
- grd_saminfo.colStyle(grd_saminfo.colRef("clamcnt"),"data","background-color") = "#ffff77";
- grd_saminfo.colStyle(grd_saminfo.colRef("medcaretotamt"),"data","background-color") = "#ffff66";
- grd_saminfo.colStyle(grd_saminfo.colRef("ownbamt"),"data","background-color") = "#ffff55";
- grd_saminfo.colStyle(grd_saminfo.colRef("insuclamamt"),"data","background-color") = "#ffff44";
- grd_saminfo.colStyle(grd_saminfo.colRef("ownbmaxexamt"),"data","background-color") = "#ffff33";
- grd_saminfo.colStyle(grd_saminfo.colRef("blwtotownamt"),"data","background-color") = "#ffff33";
- grd_saminfo.colStyle(grd_saminfo.colRef("blwownbamt"),"data","background-color") = "#ffff33";
- grd_saminfo.colStyle(grd_saminfo.colRef("blwinsuclamamt"),"data","background-color") = "#ffff33";
-
- grd_saminfo.colStyle(grd_saminfo.colRef("suppamt"),"data","background-color") = "#ffccff";
- grd_saminfo.colStyle(grd_saminfo.colRef("ksuppamt"),"data","background-color") = "#ffccff";
- grd_saminfo.colStyle(grd_saminfo.colRef("hsuppamt"),"data","background-color") = "#ffccff";
- grd_saminfo.colStyle(grd_saminfo.colRef("gsuppamt"),"data","background-color") = "#ffccff";
- grd_saminfo.colStyle(grd_saminfo.colRef("handcaprfund"),"data","background-color") = "#ffccee";
- grd_saminfo.colStyle(grd_saminfo.colRef("totlimitdiffamt"),"data","background-color") = "#ffccdd";
- grd_saminfo.colStyle(grd_saminfo.colRef("subtamt"),"data","background-color") = "#ffcccc";
- grd_saminfo.colStyle(grd_saminfo.colRef("ksuppamt"),"data","background-color") = "#ffcccc";
- grd_saminfo.colStyle(grd_saminfo.colRef("gsuppamt"),"data","background-color") = "#ffcccc";
- grd_saminfo.colStyle(grd_saminfo.colRef("hsuppamt"),"data","background-color") = "#ffcccc";
- grd_saminfo.colStyle(grd_saminfo.colRef("clamstatcnt"),"data","background-color") = "#ffccbb";
-
- // submit("TRPIE00500");
- // grd_saminfo.colStyle(11,"data","background-color") = "#ffffcc";
- // grd_saminfo.colStyle(12,"data","background-color") = "#ffff99";
- // grd_saminfo.colStyle(13,"data","background-color") = "#ffff88";
- // grd_saminfo.colStyle(14,"data","background-color") = "#ffff77";
- // grd_saminfo.colStyle(15,"data","background-color") = "#ffff66";
- // grd_saminfo.colStyle(16,"data","background-color") = "#ffff55";
- // grd_saminfo.colStyle(17,"data","background-color") = "#ffff44";
- //
- // grd_saminfo.colStyle(18,"data","background-color") = "#ffccff";
- // grd_saminfo.colStyle(19,"data","background-color") = "#ffccee";
- // grd_saminfo.colStyle(20,"data","background-color") = "#ffccdd";
- // grd_saminfo.colStyle(21,"data","background-color") = "#ffcccc";
- // grd_saminfo.colStyle(22,"data","background-color") = "#ffccbb";
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("clbscnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("medcaretotamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("insuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwtotownamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("blwinsuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ownbmaxexamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("suppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("handcaprfund"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("totlimitdiffamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("subtamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("ksuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("gsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
- grd_saminfo.subtotal("sum", -1, grd_saminfo.colRef("hsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#f4f4f4; font-weight:bold; ", 10, "합계 : ", true);
-
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("clbscnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("clamcnt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("medcaretotamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("insuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwtotownamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwownbamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("blwinsuclamamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ownbmaxexamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("suppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("handcaprfund"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("totlimitdiffamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("subtamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("ksuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("gsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
- grd_saminfo.subtotal("sum", grd_saminfo.colRef("totaltype"), grd_saminfo.colRef("hsuppamt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#cefcfa; font-weight:bold; ", 10, "소계 : ", false);
-
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:12px; x2:1108px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="rdo_numflag" ref="/root/send/numflag" class="radio_search" appearance="full" cols="2" rows="2" overflow="visible" style="left:99px; top:30px; width:136px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>청구번호</label>
- <value>1</value>
- </item>
- <item>
- <label>접수번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var numflag = model.getValue("/root/send/numflag");
- var clamfromdd = model.getValue("/root/send/clamfromdd");
- var clamtodd = model.getValue("/root/send/clamtodd");
-
- if(numflag == "2"){
- model.setValue("/root/send/clamfromdd", "");
- model.setValue("/root/send/clamtodd", "");
- }else{
- model.setValue("/root/send/clamfromdd",getCurrentDate().substr(0,6));
- model.setValue("/root/send/clamtodd",getCurrentDate().substr(0,6));
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_srchnum" ref="/root/send/srchnum" class="input_search" navindex="3" style="left:240px; top:30px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 아무 동작을 필요로 하지 않는다.
- //inputEnterKey("button3", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:350px; top:7px; width:86px; height:17px; ">내원유형 :</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:439px; top:8px; width:141px; height:16px; border-style:none; ">
- <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="caption19" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">보험유형 :</caption>
- <caption id="caption7" style="left:954px; top:8px; width:15px; height:15px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:350px; top:30px; width:90px; height:17px; ">청구구분 :</caption>
- <caption id="caption3" class="search_name" style="left:350px; top:53px; width:90px; height:17px; ">청구분야 :</caption>
- <input id="ipt_fromcretdd" ref="/root/send/clamfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:820px; top:5px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_enter1", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_tocretdd" ref="/root/send/clamtodd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:968px; top:5px; width:130px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDateChk();
- ]]>
- </script>
- </input>
- <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" navindex="4" appearance="minimal" style="left:442px; top:30px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0426list/P0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" navindex="5" appearance="minimal" style="left:442px; top:53px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0458list/P0458">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_termflag" ref="/root/send/termflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:595px; top:7px; width:225px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>청구월</label>
- <value>1</value>
- </item>
- <item>
- <label>청구서 생성일</label>
- <value>3</value>
- </item>
- <item>
- <label>접수일자</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 청구월
- if(rdo_termflag.value == 1){
- ipt_fromcretdd.attribute("maxlength") = 6;
- ipt_tocretdd.attribute("maxlength") = 6;
-
- ipt_fromcretdd.attribute("format") = "yyyy-mm";
- ipt_tocretdd.attribute("format") = "yyyy-mm";
-
- model.setFocus("ipt_fromcretdd");
-
- if(ipt_fromcretdd.value.length >= 7){
- //messageBox("진료년월은 'YYYYMM'형식", "E008");
- ipt_fromcretdd.value = ipt_fromcretdd.value.substr(0,6);
- ipt_tocretdd.value = ipt_tocretdd.value.substr(0,6);
- }
-
- cmb_clamdg.disabled = false;
- cmb_clamdg.select(0);
- }
- // 진료월
- if(rdo_termflag.value == 2){
- ipt_fromcretdd.attribute("maxlength") = 6;
- ipt_tocretdd.attribute("maxlength") = 6;
-
- ipt_fromcretdd.attribute("format") = "yyyy-mm";
- ipt_tocretdd.attribute("format") = "yyyy-mm";
-
- model.setFocus("ipt_fromcretdd");
-
- if(ipt_fromcretdd.value.length >= 7){
- //messageBox("진료년월은 'YYYYMM'형식", "E008");
- ipt_fromcretdd.value = ipt_fromcretdd.value.substr(0,6);
- ipt_tocretdd.value = ipt_tocretdd.value.substr(0,6);
- }
- }
- // 청구생성일
- if(rdo_termflag.value == 3 || rdo_termflag.value == 4 ){
- ipt_fromcretdd.attribute("maxlength") = 8;
- ipt_tocretdd.attribute("maxlength") = 8;
-
- ipt_fromcretdd.attribute("format") = "yyyy-mm-dd";
- ipt_tocretdd.attribute("format") = "yyyy-mm-dd";
-
- model.setFocus("ipt_fromcretdd");
-
- cmb_clamdg.value = "";
- cmb_clamdg.disabled = true;
- }
-
-
-
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="chk_insukindAll" ref="/root/send/insurkindAll" overflow="visible" appearance="full" style="left:99px; top:8px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/send/insurkindAll") == "Y") {
- model.setValue("/root/send/insurkindAll","Y");
-
- chk_insukind1.value = "";
- model.setValue("/root/send/insurkind1","");
- chk_insukind2.value = "";
- model.setValue("/root/send/insurkind2","");
- chk_insukind3.value = "";
- model.setValue("/root/send/insurkind3","");
- chk_insukind4.value = "";
- model.setValue("/root/send/insurkind4","");
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <select id="chk_insukind1" ref="/root/send/insurkind1" overflow="visible" appearance="full" style="left:147px; top:8px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>보험</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- chk_insukindAll.value = "";
- model.setValue("/root/send/insurkindAll","");
- ]]>
- </script>
- </select>
- <select id="chk_insukind2" ref="/root/send/insurkind2" overflow="visible" appearance="full" style="left:195px; top:8px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>급여</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- chk_insukindAll.value = "";
- model.setValue("/root/send/insurkindAll","");
- ]]>
- </script>
- </select>
- <select id="chk_insukind3" ref="/root/send/insurkind3" overflow="visible" appearance="full" style="left:243px; top:8px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>산재</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- chk_insukindAll.value = "";
- model.setValue("/root/send/insurkindAll","");
- ]]>
- </script>
- </select>
- <select id="chk_insukind4" ref="/root/send/insurkind4" overflow="visible" appearance="full" style="left:291px; top:8px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>자보</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- chk_insukindAll.value = "";
- model.setValue("/root/send/insurkindAll","");
- ]]>
- </script>
- </select>
- <caption id="caption8" class="search_name" style="left:9px; top:53px; width:90px; height:17px; ">청구차수 :</caption>
- <select1 id="cmb_clamdg" ref="/root/send/clamdg" class="combo_search" appearance="minimal" style="left:104px; top:53px; width:99px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdglist/clamdg">
- <label ref="cdid"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- </select1>
- <shape id="roundrect4" class="roundrect_btnset" appearance="roundrect" style="left:595px; top:29px; width:505px; height:41px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/suppamtyn" style="left:595px; top:30px; width:20px; height:20px; "/>
- <caption id="caption9" style="left:615px; top:30px; width:65px; height:20px; ">지원금보기</caption>
- <bool id="bool2" checkvalue="Y,N" ref="/root/send/clamexistsyn" style="left:690px; top:30px; width:20px; height:20px; "/>
- <caption id="caption11" style="left:710px; top:30px; width:65px; height:20px; ">미생성만</caption>
- <caption id="caption12" style="left:800px; top:30px; width:65px; height:20px; ">미청구만</caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/send/acptnoexistsyn" style="left:780px; top:30px; width:20px; height:20px; "/>
- <bool id="bool4" checkvalue="Y,N" ref="/root/send/clamcntdfyn" style="left:595px; top:49px; width:20px; height:20px; "/>
- <caption id="caption13" style="left:615px; top:49px; width:154px; height:20px; ">명세건수/ 청구건수 불일치</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:106px; width:203px; height:18px; ">청구서 생성 내역</caption>
- <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:565px; top:90px; width:627px; height:29px; "/>
- <shape id="roundrect2" class="roundrect_btnset" appearance="roundrect" style="left:129px; top:90px; width:431px; height:29px; "/>
- <button id="btn_inafterjudg" class="btn2_letter4" style="left:295px; top:95px; width:64px; height:19px; ">
- <caption>입원사후</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPID20300_입원사후심사관리", "", "400", "400" ,"SMPID20300_입원사후심사관리", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_outafterjudg" class="btn2_letter4" style="left:360px; top:95px; width:64px; height:19px; ">
- <caption>외래사후</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMPID20500_외래사후심사관리", "", "400", "400" ,"SMPID20500_외래사후심사관리", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_locky" class="btn2_letter4" disabled="false" style="left:425px; top:95px; width:64px; height:19px; ">
- <caption>잠금설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2007.08.18 샘생성 명령
-
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- cnt++;
- }
- }
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else if(cnt > 1){
- messageBox("단일 항목만 선택하여주십시오.", "C009");
- }else{
- if(messageBox("저장","S001") == 6){
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
- // [단위테스트 20080823]잠금설정시 심사중 상태가 있으면 알럿 주기
- if(submit("TRPIE00508")){
- if(model.getValue("root/main/list03/return/judgyn") == "Y"){
- messageBox("심사중이거나 미심인 명세서가 존재합니다..","C009");
- }else if(model.getValue("root/main/list03/return/judgyn") == "N"){
- // 마감설정 요청
- submit("TXPIE00504");
-
- // 2007.11.26 샘생성 배치 로그 확인
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
- }
- }
- // 20080826 배치로그 조회 팝업을 띄우자 마자 실행하기 때문에 사실상 변경 내역을 조회하는 시점으로 너무 이름
- // 현재 조건으로 청구서 리스트
- // submit("TRPIE00500");
- }else{;}
- }
- ]]>
- </script>
- </button>
- <button id="btn_lockn" class="btn2_letter4" disabled="false" style="left:490px; top:95px; width:64px; height:19px; ">
- <caption>잠금해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2007.08.18 샘생성 명령
-
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var chklockflag;
- var cnt=0;
- var lockcnt=0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
-
- chklockflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd");
-
- if (chkflag == "true") {
- cnt++;
- //심사,SAM,송신,반송,접수,심결 심결상태 체크
- if (chklockflag == "송신" || chklockflag == "반송" || chklockflag == "접수" || chklockflag == "심결" ) {
- lockcnt++;
- }
- }
- }
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else{
-
- if (lockcnt > 0) {
- messageBox("잠금해제가 불가능한 접수상태가 있습니다.", "");
-
- return false;
- }
-
- if(messageBox("저장","S001") == 6){
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
- // 마감해제 요청
- submit("TXPIE00505");
-
- // 2007.11.26 샘생성 배치 로그 확인
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
-
- // 현재 조건으로 청구서 리스트
- submit("TRPIE00500");
- }else{;}
- }
- ]]>
- </script>
- </button>
- <button id="btn_makeclam" class="btn5_letter5" style="left:569px; top:95px; width:75px; height:19px; ">
- <caption>청구서생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- modal("SPPIE00730", "", "400", "400" ,"", "", "");
-
- submit("TRPIE00500");
- */
- var rows = grd_saminfo.rows;
- var icount = 0;
- model.setValue("/root/sendclam/insucmno", "");
- for (var i = 0; i < rows; i++) {
- if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("chkbox")) == "true") {
- icount += 1;
-
- if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("ioflag")) == "I") {
- model.setValue("/root/sendclam/ioflag","1");
- if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")) == "0")
- {
- if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")) > "2")
- {
- messageBox("입원 원청구는 2차수 초과 대상은 허용" , "E001");
- return;
- }
- }
- } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("ioflag")) == "O" ) {
- model.setValue("/root/sendclam/ioflag","2");
- if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")) == "0")
- {
- if(grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")) > "1")
- {
- messageBox("외래원청구는 1차수 초과 대상은 허용" , "E001");
- return;
- }
- }
- }
- model.setValue("/root/sendclam/clamflag",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamflag")));
- // 누락청구(3)은 원청구(0)으로 바꾼다.
- if (model.getValue("/root/sendclam/clamflag") == "3") {
- model.setValue("/root/sendclam/clamflag", "0")
- }
-
- if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "1") {
- model.setValue("/root/sendclam/insurkindflag","1");
- } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "4" ||
- grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "5"||
- grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "9") {
- model.setValue("/root/sendclam/insurkindflag","2");
- } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "6") { // 산재
- model.setValue("/root/sendclam/insurkindflag","3");
- } else if (grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")) == "8") { // 자보
- model.setValue("/root/sendclam/insurkindflag","4");
- model.setValue("/root/sendclam/insucmno", grd_saminfo.valueMatrix(i,grd_saminfo.colRef("insucmno")));
-
- }
-
- model.setValue("/root/sendclam/ordfildcd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("sumtypecd")));
- model.setValue("/root/sendclam/clamym",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamym")));
- model.setValue("/root/sendclam/clamdg",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamdg")));
- model.setValue("/root/sendclam/clamfromdd",getCurrentDate());
- model.setValue("/root/sendclam/clamtodd",getCurrentDate());
- model.setValue("/root/sendclam/clamcretdd",getCurrentDate());
- model.setValue("/root/sendclam/sumtypecd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("sumtypecd")));
- model.setValue("/root/sendclam/clamtypecd",grd_saminfo.valueMatrix(i,grd_saminfo.colRef("clamtypecd")));
- }
-
- }
-
- if (icount != 1) {
- messageBox("선택하지 않았거나 2건 이상이 선택되어 생성" , "E001");
- return;
- }
-
-
- if(messageBox("청구서 생성 ","S001") == 6){
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
- // [단위테스트 20080823]잠금설정시 심사중 상태가 있으면 알럿 주기
- if(submit("TRPIE00508")){
- if(model.getValue("root/main/list03/return/judgyn") == "Y"){
- messageBox("심사중이거나 미심, 보류인 명세서가 존재합니다..","C009");
- }else if(model.getValue("root/main/list03/return/judgyn") == "N"){
- if(model.getValue("/root/sendclam/clamtypecd") == 6){
- var select = messageBox(" :: 산재 청구서를 070ver 생성(예_Yes) :: \n :: 이전 산재 청구서파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n070ver으로 진행 ","S001");
- if(select == 6){
- //산재 070ver 생성
- model.setValue("/root/sendclam/flag", "N")
- submit("TXPIE00520");
- }else if(select == 7){
- model.setValue("/root/sendclam/flag", "B")
- //이전버전 생성
- submit("TXPIE00520");
- }else{
- return;
-
- }
- }else{
- model.setValue("/root/sendclam/flag", "N")
- submit("TXPIE00520");
- }
-
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_makesam" class="btn5_letter4" style="left:808px; top:95px; width:64px; height:19px; ">
- <caption>SAM생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- var endcnt = 0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- if (model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "송신" ||
- model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" ||
- model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결") {
- endcnt++;
- }
- cnt++;
- }
- }
-
- if (endcnt > 0) {
- messageBox("송신된 데이터는 SAM 생성 할 수", "I004");
- return;
- }
-
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else{
- if(messageBox("저장","S001") == 6){
- model.removenode("/root/main/tCSV/list");
-
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- setCSVToNode("/root/main/tCSV", rCSV);
- submit("TRPIE00500");
-
- var tontcnt = getNodesetCount("/root/main/tCSV/list");
-
- for (i=1; i <= tontcnt; i++){
- var ioflag = model.getValue("/root/main/tCSV/list["+i+"]/ioflag");
- var clamym = model.getValue("/root/main/tCSV/list["+i+"]/clamym");
- var clamdg = model.getValue("/root/main/tCSV/list["+i+"]/clamdg");
- var clamtypecd = model.getValue("/root/main/tCSV/list["+i+"]/clamtypecd");
- var sumtypecd = model.getValue("/root/main/tCSV/list["+i+"]/sumtypecd");
- var clamflag = model.getValue("/root/main/tCSV/list["+i+"]/clamflag");
- var ordym = model.getValue("/root/main/tCSV/list["+i+"]/ordym");
- var clbscnt = model.getValue("/root/main/tCSV/list["+i+"]/clbscnt");
- var insucmno = model.getValue("/root/main/tCSV/list["+i+"]/insucmno");
- model.setValue("/root/main/list01/gridsaminfo[ioflag='"+ioflag+
- "' and clamym='"+clamym+
- "' and clamdg='"+clamdg+
- "' and clamtypecd='"+clamtypecd+
- "' and sumtypecd='"+sumtypecd+
- "' and clamflag='"+clamflag+
- "' and clbscnt='"+clbscnt+
- "' and insucmno='"+insucmno+
- "']/chkbox","true");
-
- }
- model.refresh();
- // // ## 기존 수정 전 ##
- // // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/main/rCSV", rCSV);
-
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
-
- // 2007.08.18 샘생성 팝업 화면이 사용했던 submit을 사용하였다.
- // 현재 싱글건 처리 -> 멀티건 처리가 가능하도록 코드 수정해야 한다.
-
- // 누락청구(3)은 원청구(0)으로 바꾼다.
- if (model.getValue("/root/send/tmp/list/clamflag") == "3") {
- model.setValue("/root/send/tmp/list/clamflag", "0")
- }
-
- //심평원용 샘파일 생성 구분자 2010-09-15추가
- model.setValue("/root/send/tmp/list/sammakeflag", "OR");
-
- if(model.getValue("/root/send/tmp/list/clamtypecd") == 6){
- model.makeNode("/root/send/tmp/list/flag");
- var select = messageBox(" :: 산재 SAM파일 071ver 생성(예_Yes) :: \n :: 이전 산재 SAM파일 생성(아니오_No) :: \n :: 취소(취소_Cancel) :: \n\n\n071ver으로 진행 ","S001");
- if(select == 6){
- //SAM파일 생성을 요청한다.
- model.setValue("/root/send/tmp/list/flag", "N");
- submit("TXPIE00502");
- }else if(select == 7){
- model.setValue("/root/send/tmp/list/flag", "B");
- //SAM파일 생성을 요청한다.
- submit("TXPIE00502");
- }else{
- return;
-
- }
- }else{
- model.setValue("/root/sendclam/flag", "N")
- submit("TXPIE00502");
- }
-
- // 2007.11.26 샘생성 배치 로그 확인
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
-
- // ## 기존 수정전 ##
- // 현재 조건으로 청구서 리스트 조회
- button1.dispatch("DOMActivate");
- // 여기에서 체크를 해제한다.
- //######## 수정전9 #######
- // 현재 조건으로 청구서 리스트 조회
- //submit("TRPIE00500");
- //#######################
- }else{;}
- }
- ]]>
- </script>
- </button>
- <button id="btn_batchlog" class="btn5_letter6" style="left:960px; top:95px; width:86px; height:19px; ">
- <caption>SAM배치로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // modal("SPZSB00301", "", "400", "400" ,"SPZSB00301", "", "");
- // 2007.11.26 샘생성 배치 로그 확인
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="btn_exel" class="btn2_letter4" disabled="false" style="left:1033px; top:41px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var insukind = model.getValue("/root/send/insurkindflag");
- var today = getCurrentDate();
- var fileName = window.fileDialog("save", ",", false, "EDI청구SAM파일생성_ "+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- //var exportfalsecols = grd_saminfo.colRef("") + ",1,22,23,24,25,26,31";
-
- grd_saminfo.saveExcel(fileName, "sheetname:청구서생성내역;col_2:label;col_3:label;col_4:label;col_5:label;col_6:label;col_7:label;col_8:label;col_9:label;col_10:label;");
- }
- ]]>
- </script>
- </button>
- <button id="btn_urscope" class="btn2_letter5" style="left:1047px; top:95px; width:75px; height:19px; ">
- <caption>UR용샘생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMPIS00800_유알스코프", "", "100", "100" ,"SMPIS00800_유알스코프", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_delclam" class="btn2_letter5" disabled="true" visibility="hidden" style="left:1023px; top:61px; width:75px; height:19px; ">
- <caption>청구서삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- cnt++;
- }
- }
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else{
- if(messageBox("삭제","S001") == 6){
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
-
- // 2007.10.10 청구서 삭제를 요청한다.
- submit("TXPIE00503");
-
- // 현재 조건으로 SAM파일 생성 대상 조회
- submit("TRPIE00500");
- }else{;}
- }
- ]]>
- </script>
- </button>
- <button id="btn_trcompletion" class="btn2_letter4" disabled="false" style="left:1123px; top:95px; width:64px; height:19px; ">
- <caption>송신완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 2007.08.18 샘생성 명령
-
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- var edistatcdcnt =0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- cnt++;
- if(model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" || model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결" || model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "반송"){
- edistatcdcnt++;
- }
- }
- }
-
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else if(edistatcdcnt > 0){
- messageBox("선택된 항목중 접수 혹은 심결 상태가 존재 합니다. 확인 후 다시 시도해 주세요 ", "E999");
- return;
-
- }else{
- if(messageBox("저장","S001") == 6){
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
- // 송신완료 요청
- submit("TXPIE00506");
-
- // 2007.11.26 샘생성 배치 로그 확인
- // var todd = getCurrentDate();
- // todd = todd.toDate().getAddDate(+1, 'D');
- // zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
-
- // 현재 조건으로 청구서 리스트
- submit("TRPIE00500");
- }else{;}
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter4" style="left:743px; top:95px; width:64px; height:19px; ">
- <caption>변경검사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chkflag;
- var cnt=0;
- int = 0;
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- cnt++;
- }
- }
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else if(cnt > 1){
- messageBox("단일 항목만 선택하여주십시오.", "C009");
- }else{
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
-
- if(submit("TRPIE00507")){
- if(model.getValue("root/main/list02/return/differyn") == "Y"){
- messageBox("명세서 건수와 금액이 청구서와 서로 다릅니다.","C009");
- }else if(model.getValue("root/main/list02/return/differyn") == "N"){
- messageBox("명세서 건수와 금액이 청구서와 서로 일치합니다.","I000");
- }
- }
- }
- ]]>
- </script>
- </button>
- <!--########## 수정추가 6 : JHP 2008.07.22 산재 청구서 조회 ########## -->
- <datagrid id="grd_saminfoinducs" nodeset="/root/main/list02/gridsaminfoinducs" class="datagrid2" visibility="hidden" caption="^분야^내원유형^청구년월^청구구분^청구차수^진료월^청구서생성일^청구번호^청구건수^건수^청구액계^청구액^상태^접수번호^명세서시작일자^명세서종료일자^잠금상태^청구서생성자" colsep="^" colwidth="25, 55, 55, 55, 55, 55, 55, 83, 80, 80, 50, 85, 85, 85, 66, 99, 98, 60, 94" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:490px; width:1195px; height:207px; text-align:center; ">
- <col ref="chkbox" type="checkbox" style="text-align:center; "/>
- <!-- 분야는 기존에 P0458였는데. 산재 와 자보 추가되면서. 추가되는 공통코드 적용해야함 -->
- <col disabled="true" ref="ordfildcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0458list/P0458">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <!-- 산재의 내원유형은 입원, 통원(외래) 참고-->
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="clamflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0426list/P0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamdg"/>
- <col ref="ordym" format="yyyy-mm"/>
- <col ref="clamdocdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamno" style="text-align:center; "/>
- <col ref="sumcnt" style="text-align:center; "/>
- <col ref="cnt" format="#,###" style="text-align:right; "/>
- <col ref="sumamt" format="#,###" style="text-align:right; "/>
- <col ref="amt" format="#,###"/>
- <col ref="edistatcd" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="clamfromdd"/>
- <col ref="clamtodd"/>
- <col ref="lockyn" style="text-align:center; "/>
- <col ref="fstrgstrid"/>
- </datagrid>
- <!--########## 수정추가 6 : 끝 ############################### -->
- <button id="button3" class="btn5_letter7" style="left:645px; top:95px; width:97px; height:19px; ">
- <caption>청구서배치로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:133px; top:95px; width:53px; height:19px; ">
- <caption>셀카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_saminfo.attribute("selectionmode") = "free";
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:187px; top:95px; width:53px; height:19px; ">
- <caption>열카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_saminfo.attribute("selectionmode") = "bycol";
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" style="left:241px; top:95px; width:53px; height:19px; ">
- <caption>행카피</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_saminfo.attribute("selectionmode") = "byrow";
- ]]>
- </script>
- </button>
- <datagrid id="grd_saminfo" nodeset="/root/main/list01/gridsaminfo" class="datagrid2" caption="^청구년월^내원
유형^보험유형^보험회사^분야^분야^청구구분^청구차수^미수월^청구서생성일^청구번호^명세
건수^청구
건수^급여총액^본인부담액^청구액^100분의100미만
총액^100분의100미만
본인부담금^100분의100미만
청구액^상한초과금^지원금^결핵지원금^희귀지원금^긴급지원금^장애인^약제
상한차액^대불금^심사중/미심
/보류^잠금^상태^insurkind^생성자ID^접수번호^접수일자^from^to^sammakeflag^caption1^workflag^seqno^참고사항" colsep="^" colwidth="25, 55, 36, 55, 80, 80, 55, 55, 55, 55, 80, 80, 46, 50, 85, 85, 85, 100, 100, 100, 66, 66, 68, 68, 68, 60, 60, 60, 85, 45, 45, 50, 60, 68, 73, 100, 100, 100, 100, 100, 100, 266" dataheight="23" ellipsis="true" explorerbar="sort" focuscolor="#b9e5fb" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:126px; width:1194px; height:613px; text-align:center; ">
- <col ref="chkbox" type="checkbox" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0028list/P0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="clamtypecd" type="combo" style="text-align:center; background-color:transparent; ">
- <choices>
- <itemset nodeset="/root/init/P0103list/P0103">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="insucmno" type="combo">
- <choices>
- <itemset nodeset="/root/init/PAM/PK032list/PK032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sumtypecdnm" type="output"/>
- <col disabled="true" ref="sumtypecd" type="combo" visibility="hidden"/>
- <col disabled="true" ref="clamflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0426list/P0426">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamdg"/>
- <col ref="ordym" format="yyyy-mm"/>
- <col ref="clamdocdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamno" savetype="text" style="text-align:center; "/>
- <col ref="clbscnt" format="(-)#,###" style="text-align:center; "/>
- <col ref="clamcnt" format="(-)#,###" style="text-align:center; "/>
- <col ref="medcaretotamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="insuclamamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="blwtotownamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="blwownbamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="blwinsuclamamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ownbmaxexamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="suppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
- <col ref="ksuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
- <col ref="hsuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
- <col ref="gsuppamt" format="(-)#,###" style="left:1007px; top:32px; width:66px; height:23px; text-align:right; "/>
- <col ref="handcaprfund" format="(-)#,###" style="text-align:right; "/>
- <col ref="totlimitdiffamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="subtamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="clamstatcnt" style="text-align:center; "/>
- <col ref="lockyn" style="text-align:center; "/>
- <col ref="edistatcd" style="text-align:center; "/>
- <col ref="insurkindflag" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstrid"/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="clamfromdd" visibility="hidden"/>
- <col ref="clamtodd" visibility="hidden"/>
- <col ref="sammakeflag"/>
- <col ref="totaltype" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="rem" type="inputbutton" style="text-align:left; "/>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_saminfo.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- grd_saminfo.row = grd_saminfo.selectedRow(0);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_saminfo.col == grd_saminfo.colRef("rem") && grd_saminfo.row >= grd_saminfo.fixedRows){
- if (grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("seqno")) == "" ){
- messageBox("청구생성 후 사용하세요.","");
- return ;
- }
- model.setValue("/root/send/send_rem/clamym", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("clamym")));
- model.setValue("/root/send/send_rem/clamdg", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("clamdg")));
- model.setValue("/root/send/send_rem/workflag", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("workflag")));
- model.setValue("/root/send/send_rem/seqno", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("seqno")));
- model.setValue("/root/send/send_rem/rem", grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("rem")));
- ipt_rem.refresh();
- grp_rem.visible = true;
- }
- ]]>
- </script>
- </datagrid>
- <button id="button7" class="btn5_letter6" style="left:873px; top:95px; width:86px; height:19px; ">
- <caption>SAM 생성_ur</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- var chkflag;
- var cnt=0;
- var endcnt = 0;
- int = 0;
-
-
- for(i = 1; i <grd_saminfo.rows; i++){
- chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- if (chkflag == "true") {
- if (model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "송신" ||
- model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "접수" ||
- model.getValue("/root/main/list01/gridsaminfo["+ i +"]/edistatcd") == "심결") {
- endcnt++;
- }
- cnt++;
- }
- }
- /*
- if (endcnt > 0) {
- messageBox("송신된 데이터는 SAM 생성 할 수", "I004");
- return;
- }
- */
- if(cnt == 0){
- messageBox("선택된 항목이", "I004");
- }else{
- if(messageBox("저장","S001") == 6){
- // ## 기존 수정 전 ##
- // 체크된 행만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
-
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/rCSV", rCSV);
-
- // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- var CSV = model.getValue("/root/main/rCSV");
-
- // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- model.destroy("/root/send/tmp");
- model.makeNode("/root/send/tmp");
-
- setCSVToNode("/root/send/tmp", CSV);
-
- // 2007.08.18 샘생성 팝업 화면이 사용했던 submit을 사용하였다.
- // 현재 싱글건 처리 -> 멀티건 처리가 가능하도록 코드 수정해야 한다.
-
- // 누락청구(3)은 원청구(0)으로 바꾼다.
- if (model.getValue("/root/send/tmp/list/clamflag") == "3") {
- model.setValue("/root/send/tmp/list/clamflag", "0")
- }
-
- //UR용 샘파일 생성 구분자 2010-09-15추가
- model.setValue("/root/send/tmp/list/sammakeflag", "UR");
-
-
- // SAM파일 생성을 요청한다.
- submit("TXPIE00502");
-
- // 2007.11.26 샘생성 배치 로그 확인
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("samfilemngtmgr.EDISamFileBatch",getCurrentDate(),todd.getDateFormat());
-
- // ## 기존 수정전 ##
- // 현재 조건으로 청구서 리스트 조회
- submit("TRPIE00500");
- grd_saminfo.colStyle(11,"data","background-color") = "#ffffcc";
- grd_saminfo.colStyle(12,"data","background-color") = "#ffff99";
- grd_saminfo.colStyle(13,"data","background-color") = "#ffff88";
- grd_saminfo.colStyle(14,"data","background-color") = "#ffff77";
- grd_saminfo.colStyle(15,"data","background-color") = "#ffff66";
- grd_saminfo.colStyle(16,"data","background-color") = "#ffff55";
- grd_saminfo.colStyle(17,"data","background-color") = "#ffff44";
- grd_saminfo.colStyle(18,"data","background-color") = "#ffff33";
-
- grd_saminfo.colStyle(19,"data","background-color") = "#ffccff";
- grd_saminfo.colStyle(20,"data","background-color") = "#ffccee";
- grd_saminfo.colStyle(21,"data","background-color") = "#ffccdd";
- grd_saminfo.colStyle(22,"data","background-color") = "#ffcccc";
- grd_saminfo.colStyle(23,"data","background-color") = "#ffccbb";
-
- // 여기에서 체크를 해제한다.
- //######## 수정전9 #######
- // 현재 조건으로 청구서 리스트 조회
- //submit("TRPIE00500");
- //#######################
- }else{;}
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button10" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // // 선택 항목이 아무것도 없을 경우 예외 처리한다.
- // var chkflag;
- // var cnt=0;
- // int = 0;
- // for(i = 1; i <grd_saminfo.rows; i++){
- // chkflag = model.getValue("/root/main/list01/gridsaminfo["+ i +"]/chkbox");
- // if (chkflag == "true") {
- // cnt++;
- // }
- // }
- // if(cnt == 0){
- // messageBox("선택된 항목이", "I004");
- // }else{
- // if(messageBox("저장","S001") == 6){
- // // 체크된 행만 가져온다.
- // var nodeList = instance1.selectNodes("/root/main/list01/gridsaminfo[chkbox='true']");
- // var rCSV = getNodeListCSV(nodeList);
- //
- // model.setValue("/root/main/rCSV", rCSV);
- //
- // // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
- // var CSV = model.getValue("/root/main/rCSV");
- //
- // // 노드 초기화(원리: 노드를 파괴하고 재생성시킴)
- // model.destroy("/root/send/tmp");
- // model.makeNode("/root/send/tmp");
- //
- // setCSVToNode("/root/send/tmp", CSV);
- //
- // // SAM파일 생성을 요청한다.
- // submit("TXPIE00501");
- // // 현재 조건으로 SAM파일 생성 대상 조회
- // submit("TRPIE00500");
- //
- // // 여기에서 체크를 해제한다.
- // }else{;}
- // }
- // ]]>
- </script>
- </button>
- <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <caption id="caption1" style="left:5px; top:4px; width:397px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff0000; ">[보류, 삭제, 자동삭제 건수는 명세건수와 청구건수에서 제외됨]</caption>
- <caption id="caption4" style="left:420px; top:3px; width:457px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#000000; ">[청구차수] 원:1 보완:1001 추가:2001 누락:9001</caption>
- </group>
- <group id="grp_rem" visibility="hidden" style="left:395px; top:230px; width:415px; height:175px; ">
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:173px; "/>
- <textarea id="ipt_rem" ref="/root/send/send_rem/rem" style="left:6px; top:24px; width:404px; height:120px; "/>
- <caption id="caption14" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">참고사항</caption>
- <button id="btn_confirm2" class="btn4_letter2" style="left:295px; top:150px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TXPIE00521");
- grd_saminfo.valueMatrix(grd_saminfo.row, grd_saminfo.colRef("rem")) = model.getValue("/root/send/send_rem/rem");
- model.resetInstanceNode("/root/send/send_rem");
- ipt_rem.refresh();
- grp_rem.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_cancel2" class="btn4_letter2" style="left:354px; top:150px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue(ipt_rem.attribute("ref"), "");
- ipt_rem.refresh();
- grp_rem.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|