123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266 |
- <?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>
- <data0>
- <acptno/>
- </data0>
- <data1>
- <srchflag/>
- <acptno/>
- <judgdg/>
- <clamno/>
- <docuseqno/>
- <obtappflag>1</obtappflag>
- </data1>
- <data2/>
- <data3/>
- <data4/>
- <send_obtmlist>
- <acptno/>
- <judgdg/>
- <clamno/>
- <docuseqno/>
- <obtappflag/>
- </send_obtmlist>
- <send_end>
- <judgdg/>
- <clamno/>
- <acptno/>
- <obtappflag/>
- <notidd/>
- <obtappdd/>
- <obtappdocuno/>
- <status/>
- <endflag/>
- <obtappendflag/>
- <indendyn/>
- </send_end>
- </send>
- <main>
- <item1>
- <clbs>
- <acptno/>
- <judgdg/>
- <setno/>
- <docuseqno/>
- <indd/>
- <dschdd/>
- <ordfromdd/>
- <ordtodd/>
- <pid/>
- <patnm/>
- <fstrgstdt/>
- <insukind/>
- <suppkind/>
- <newinsukind/>
- <newsuppkind/>
- <payownbrate/>
- <edimedcaretotamt/>
- <ediinsuclamamt/>
- <edihandcaprfund/>
- <edisuppamt/>
- <ediownbmaxexamt/>
- <clamym/>
- <clamdg/>
- <pidsn/>
- <obtappamt/>
- <obtsuppamt/>
- <obtownbmaxamt/>
- <obtappflag/>
- <obtapprem/>
- <offcharm/>
- <rareobstflag/>
- <vcode/>
- <serdiagno/>
- <obtapprem/>
- </clbs>
- </item1>
- <list1>
- <clod/>
- </list1>
- <item2/>
- <item3/>
- </main>
- <init>
- <item1>
- <acptno/>
- <judgdg/>
- <docuseqno/>
- <clamno/>
- <srchflag/>
- </item1>
- <list1>
- <judg/>
- </list1>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- <P0322list/>
- <!-- 공상구분코드 -->
- <P0236list/>
- </init>
- <hidden>
- <obtappamt/>
- <obtsuppamt/>
- <obtownbmaxamt/>
- <obtappflag/>
- <obtapprem/>
- <sppir31110>
- <cond>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- </cond>
- <rslt>
- <clod/>
- </rslt>
- </sppir31110>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 0. Opener 에서 넘어왔는지 체크
- var acptno = model.getValue("/root/send/data0/acptno");
- // 0. Opener 에서 넘어왔는지 체크 (입원사후심사에서 호출)
- var acptno2 = model.getValue("/root/init/item1/acptno")
-
- // 1. 화면 초기화
- fInitialize();
-
- // 2. 공통코드 초기화
- zbcfGetCodeList(
- new Array("P0008","P0010"),
- new Array("/root/init/P0008list","/root/init/P0010list")
- );
-
- if (acptno != "") {
- model.setValue("/root/send/data1/acptno", acptno);
- ipt_acptno.refresh();
- fGetJudgdg();
- } else if (acptno2 != "") { // 입원사후심사에서 팝업으로 호출된경우(정산의뢰버튼 클릭시)
- model.makeValue("/root/init/list1/judg/judgdg", model.getValue("/root/init/item1/judgdg"));
-
- model.setValue("/root/send/data1/srchflag", model.getValue("/root/init/item1/srchflag"));
- model.setValue("/root/send/data1/acptno", model.getValue("/root/init/item1/acptno"));
- model.setValue("/root/send/data1/judgdg", model.getValue("/root/init/item1/judgdg"));
- model.setValue("/root/send/data1/docuseqno", model.getValue("/root/init/item1/docuseqno"));
- model.setValue("/root/send/data1/clamno", model.getValue("/root/init/item1/clamno"));
- model.setValue("/root/send/data1/obtappflag", "1");
- // 조회
- btn_search.dispatch("DOMActivate");
- }
-
-
- ]]>
- </script>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIR31001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/list1"/>
- <submission id="TRPIR31002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/item1"/>
- <submission id="TXPIR31001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/clbs" resultref="/root/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TXPIR31002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/temp"/>
- <submission id="TRPIR31004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/main/item2"/>
- <submission id="TRPIR31005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs" resultref="/root/init/tmp"/>
- <submission id="TRPIR31006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs" resultref="/root/hidden/result"/>
- <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/item1/clbs"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 화면 초기화
- function fInitialize() {
-
- // 1. 조회조건 초기화
- model.resetInstanceNode("/root/send/data1");
- model.setValue("/root/send/data1/srchflag", "1");
- model.setValue("/root/send/data1/obtappflag", "1");
- ipt_acptno.disabled = false;
- cmb_judgdg.disabled = false;
- ipt_clamno.disabled = true;
- cmb_insukind.disabled = true;
- cmb_suppkind.disabled = true;
-
- // 2-1. 접수번호에 따른 심사차수 조회결과 초기화
- model.removenode("/root/init/list1");
- model.makeNode("/root/init/list1");
-
- // 2-2. 환자 기본정보 초기화
- model.resetInstanceNode("/root/main/item1");
-
- // 2-3. 정산의뢰생성사유 초기화
- model.setValue("/root/hidden/obtappflag", "1");
- model.setValue("/root/hidden/obtapprem", "");
- model.setValue("/root/hidden/obtappamt", "");
- model.setValue("/root/hidden/obtsuppamt", "");
- model.setValue("/root/hidden/obtownbmaxamt", "");
- txa_obtapprem.disabled = false;
- btn_clod.disabled = true;
- btn_delete.disabled = true;
-
- // 2-4. 처방별 환수내역 초기화
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
-
- zbcfGetCodeList(
- new Array(
- "P0236" // 공상구분
- ),
- new Array(
- "/root/init/P0236list"
- ),
- false );
-
- model.refresh();
- }
-
- // 접수번호에 대한 심사차수 조회
- function fGetJudgdg() {
-
- var acptno = model.getValue("/root/send/data1/acptno");
- if (acptno != "") {
- // 1. 심사차수를 초기화한다.
- model.removenode("/root/init/list1");
- model.makeNode("/root/init/list1");
-
- // 2. 접수번호에 해당되는 심사차수를 조회한다.
- submit("TRPIR31001");
-
- model.setValue("/root/send/data1/clamno", model.getValue("/root/init/list1/judg/clamno"));
-
- // 3. 첫번째 심사차수를 선택한다.
- var nodelist = instance1.selectNodes("/root/init/list1/judg");
- if (nodelist.length > 0) {
- cmb_judgdg.select(0);
- }
-
- } else {
- model.removenode("/root/init/list1");
- model.makeNode("/root/init/list1");
- model.setValue("/root/send/data1/judgdg", "");
- cmb_judgdg.refresh();
- }
- }
-
- // 정산의뢰 환자정보 조회(접수번호)
- function fGetCalcCretPatInfoByAcptno() {
-
- // 1. 접수번호, 심사차수, 명일련 입력값 검사
- var acptno = model.getValue("/root/send/data1/acptno");
- if (acptno == "") {
- messageBox("접수번호가 입력되지", "E007");
- return;
- }
- var judgdg = model.getValue("/root/send/data1/judgdg");
- if (judgdg == "") {
- messageBox("심사차수가 입력되지", "E007");
- return;
- }
- var docuseqno = model.getValue("/root/send/data1/docuseqno");
- if (docuseqno == "") {
- messageBox("명세서 일련번호가 입력되지", "E007");
- return;
- }
-
- var docuseqno = ipt_docuseqno.value;
-
- if (docuseqno.length == 0) {
- return false;
- }
- else if (docuseqno.length == 1) {
- docuseqno = "0000"+docuseqno;
- }
- else if (docuseqno.length == 2) {
- docuseqno = "000"+docuseqno;
- }
- else if (docuseqno.length == 3) {
- docuseqno = "00"+docuseqno;
- }
- else if (docuseqno.length == 4) {
- docuseqno = "0"+docuseqno;
- }
- else if (docuseqno.length == 5) {
- docuseqno = docuseqno;
- }
- else if (docuseqno.length > 5) {
- messageBox("명세서일련번호는 최대 5자리","E008");
- ipt_docuseqno.value = "";
- return false;
- }
-
- model.setValue("/root/send/data1/docuseqno", docuseqno);
-
- // 2. 조회
- submit("TRPIR31002");
- }
-
- // 정산의뢰 환자정보 조회(청구번호)
- function fGetCalcCretPatInfoByClamno() {
-
- // 1. 청구번호, 명일련 입력값 검사
- var clamno = model.getValue("/root/send/data1/clamno");
- if (clamno == "") {
- messageBox("청구번호가 입력되지", "E007");
- return;
- }
- var docuseqno = model.getValue("/root/send/data1/docuseqno");
- if (docuseqno == "") {
- messageBox("명세서 일련번호가 입력되지", "E007");
- return;
- }
-
- var docuseqno = ipt_docuseqno.value;
-
- if (docuseqno.length == 0) {
- return false;
- }
- else if (docuseqno.length == 1) {
- docuseqno = "0000"+docuseqno;
- }
- else if (docuseqno.length == 2) {
- docuseqno = "000"+docuseqno;
- }
- else if (docuseqno.length == 3) {
- docuseqno = "00"+docuseqno;
- }
- else if (docuseqno.length == 4) {
- docuseqno = "0"+docuseqno;
- }
- else if (docuseqno.length == 5) {
- docuseqno = docuseqno;
- }
- else if (docuseqno.length > 5) {
- messageBox("명세서일련번호는 최대 5자리","E008");
- ipt_docuseqno.value = "";
- return false;
- }
-
- model.setValue("/root/send/data1/docuseqno", docuseqno);
- // 2. 조회
- submit("TRPIR31002");
-
- }
-
- // 처방별 환수내역 조회
- function fGetRefundClodList() {
- var clamym = model.getValue("/root/main/item1/clbs/clamym");
- var clamdg = model.getValue("/root/main/item1/clbs/clamdg");
- var pid = model.getValue("/root/main/item1/clbs/pid");
- var pidsn = model.getValue("/root/main/item1/clbs/pidsn");
-
- if (clamym != "" && clamdg != "" && pid != "" && pidsn != "") {
-
- // 1. 청구처방조회 화면을 호출한다.
- // 1-1. 청구처방 조회조건
- model.removenode("/root/hidden/sppir31110");
- model.makeNode("/root/hidden/sppir31110");
- model.makeValue("/root/hidden/sppir31110/cond/data1/clamym", clamym);
- model.makeValue("/root/hidden/sppir31110/cond/data1/clamdg", clamdg);
- model.makeValue("/root/hidden/sppir31110/cond/data1/pid", pid);
- model.makeValue("/root/hidden/sppir31110/cond/data1/pidsn", pidsn);
- // 1-2. 기존에 넣어둔 환수내역
- model.makeNode("/root/hidden/sppir31110/cond/data2");
- model.copyNode("/root/hidden/sppir31110/cond/data2", "/root/main/list1");
- // 1-3. 전달받을 결과경로 초기화
- model.makeNode("/root/hidden/sppir31110/rslt");
-
- // 1-4. 청구처방조회 팝업 호출
- modal("SPPIR31110", "", "10", "10", "SPPIR31110", "/root/hidden/sppir31110/cond", "/root/send", "", "");
-
- // 2. 청구처방조회에서 체크한 처방을 환수내역에 보여준다.
- var nodeList = instance1.selectNodes("/root/hidden/sppir31110/rslt/clod");
- var length = nodeList.length;
- if (length > 0) {
- model.copyNode("/root/main/list1", "/root/hidden/sppir31110/rslt");
- grd_clodlist.refresh();
- }
-
- }
- }
-
- // 정산의뢰삭제를 위한 이의신청명세서 조회 화면을 호출한다.
- function fSearchObtmList() {
- var judgdg = model.getValue("/root/main/item1/clbs/judgdg");
- var clamno = model.getValue("/root/main/item1/clbs/clamno");
- var acptno = model.getValue("/root/main/item1/clbs/acptno");
- var docuseqno = model.getValue("/root/main/item1/clbs/docuseqno");
-
- //if (judgdg != "" && clamno != "" && acptno != "" && docuseqno != "") {
- // 1. 이의신청명세서 조회화면으로 넘어갈 데이터를 담는다.
- model.removenode("/root/hidden/sppir31120");
- model.makeNode("/root/hidden/sppir31120");
- model.makeValue("/root/hidden/sppir31120/cond/data1/judgdg", judgdg);
- model.makeValue("/root/hidden/sppir31120/cond/data1/clamno", clamno);
- model.makeValue("/root/hidden/sppir31120/cond/data1/acptno", acptno);
- model.makeValue("/root/hidden/sppir31120/cond/data1/docuseqno", docuseqno);
-
- // 2. 화면을 호출한다.
- modal("SPPIR31130", "", "10", "10", "SPPIR31130", "/root/hidden/sppir31120/cond/data1", "/root/send/data2", "", "");
- //}
- }
-
- //정산의뢰삭제 화면 띄우는 로직 추가 by 박영우 2011.04.21
- function fDeleteObtmList() {
- var judgdg = model.getValue("/root/main/item1/clbs/judgdg");
- var clamno = model.getValue("/root/main/item1/clbs/clamno");
- var acptno = model.getValue("/root/main/item1/clbs/acptno");
- var docuseqno = model.getValue("/root/main/item1/clbs/docuseqno");
-
- if (judgdg != "" && clamno != "" && acptno != "" && docuseqno != "") {
- // 1. 이의신청명세서 조회화면으로 넘어갈 데이터를 담는다.
- model.removenode("/root/hidden/sppir31120");
- model.makeNode("/root/hidden/sppir31120");
- model.makeValue("/root/hidden/sppir31120/cond/data1/judgdg", judgdg);
- model.makeValue("/root/hidden/sppir31120/cond/data1/clamno", clamno);
- model.makeValue("/root/hidden/sppir31120/cond/data1/acptno", acptno);
- model.makeValue("/root/hidden/sppir31120/cond/data1/docuseqno", docuseqno);
-
- // 2. 화면을 호출한다.
- modal("SPPIR31120", "", "10", "10", "SPPIR31120", "/root/hidden/sppir31120/cond/data1", "/root/send/data1", "", "");
- }
- }
-
- // 요율변경, 자격변경으로 정산의뢰 생성
- function fSetCalcCretByRate() {
-
- // 1. 변경요율, 정산의뢰액, 정산의뢰사유 검사
- var obtappflag = model.getValue("/root/hidden/obtappflag");
- var obtappamt = model.getValue("/root/hidden/obtappamt");
- var obtapprem = model.getValue("/root/hidden/obtapprem");
- var obtsuppamt = model.getValue("/root/hidden/obtsuppamt");
- var obtownbmaxamt = model.getValue("/root/hidden/obtownbmaxamt");
-
- if (obtappamt == "" && obtsuppamt == "") {
- messageBox("정산의뢰액이 입력되지", "E007");
- return;
- }
- if (obtapprem == "") {
- messageBox("요율/자격정산 사유가 입력되지", "E007");
- return;
- }
-
- // 2. 저장할 데이터 담는다.
- model.removenode("/root/send/data2");
- model.makeNode("/root/send/data2");
- model.setValue("/root/main/item1/clbs/obtappflag", obtappflag);
- model.setValue("/root/main/item1/clbs/obtappamt", obtappamt);
- model.setValue("/root/main/item1/clbs/obtsuppamt", obtsuppamt);
- model.setValue("/root/main/item1/clbs/obtownbmaxamt", obtownbmaxamt);
- model.setValue("/root/main/item1/clbs/obtapprem", obtapprem);
- model.setValue("/root/main/item1/clbs/chnginsukind", model.getValue("/root/main/item1/clbs/newinsukind"));
- model.setValue("/root/main/item1/clbs/chngsuppkind", model.getValue("/root/main/item1/clbs/newsuppkind"));
- copyNodeType("/root/send/data2", "/root/main/item1","after");
-
- // 3. 이미 정산의뢰 생성된 데이터인지 확인한다. (명세서가 있는지 체크한다.)
- if (fCheckDuplObtm() == "Y") return;
-
- // 4. 저장하시겠습니까?
- if (messageBox("요율/자격 변경에 대한 정산의뢰를 생성", "S001") != 6) return;
-
- // 5. 저장한다.
- if (submit("TXPIR31001")) {
-
- messageBox("[요율/자격] 정산의뢰 생성이", "I002");
-
- // 6. 재조회한다.
- model.resetInstanceNode("/root/main/item1");
- submit("TRPIR31002");
-
- // 7. 정산의뢰생성사유 초기화
- model.setValue("/root/hidden/obtapprem", "");
- model.setValue("/root/hidden/obtappamt", "");
- model.setValue("/root/hidden/obtsuppamt", "");
- model.setValue("/root/hidden/obtownbmaxamt", "");
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- }
- }
-
- // 환수내역으로 정산의뢰 생성
- function fSetCalcCretByRefund() {
-
- // 1. 정산의뢰액 검사
- var obtappamt = model.getValue("/root/hidden/obtappamt");
- if (obtappamt == "") {
- messageBox("정산의뢰액이 입력되지", "E007");
- return;
- }
- if (grd_clodlist.rows == 1) {
- messageBox("환수요청할 처방이 입력되지", "E007");
- return;
- }
-
- // 2. 저장할 데이터 담는다.
- model.removenode("/root/send/data3");
- model.makeNode("/root/send/data3");
- model.setValue("/root/main/item1/clbs/obtappflag", model.getValue("/root/hidden/obtappflag"));
- model.setValue("/root/main/item1/clbs/obtappamt", obtappamt);
- model.setValue("/root/main/item1/clbs/obtapprem", "-");
- copyNodeType("/root/send/data3", "/root/main/item1","after");
-
- // 3. 이미 정산의뢰 생성된 데이터인지 확인한다. (명세서가 있는지 체크한다.)
- if (fCheckDuplObtm() == "Y") return;
-
- // 4. 저장하시겠습니까?
- if (messageBox("처방별 환수내역에 대한 정산의뢰를 생성", "S001") != 6) return;
-
- for(var i = 1; i < grd_clodlist.rows; i++) {
-
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_chksel", model.getValue("/root/main/list1/clod[" + i + "]/chksel"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_clamym", model.getValue("/root/main/list1/clod[" + i + "]/clamym"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_clamdg", model.getValue("/root/main/list1/clod[" + i + "]/clamdg"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_pid", model.getValue("/root/main/list1/clod[" + i + "]/pid"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_pidsn", model.getValue("/root/main/list1/clod[" + i + "]/pidsn"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_seqno", model.getValue("/root/main/list1/clod[" + i + "]/seqno"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_snglcalcscorcd", model.getValue("/root/main/list1/clod[" + i + "]/snglcalcscorcd"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_hngnm", model.getValue("/root/main/list1/clod[" + i + "]/hngnm"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_unitcost", model.getValue("/root/main/list1/clod[" + i + "]/unitcost"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_edidrugqty", model.getValue("/root/main/list1/clod[" + i + "]/edidrugqty"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_tims", model.getValue("/root/main/list1/clod[" + i + "]/tims"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_edidayno", model.getValue("/root/main/list1/clod[" + i + "]/edidayno"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_ediamt", model.getValue("/root/main/list1/clod[" + i + "]/ediamt"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_obtapponeqty", model.getValue("/root/main/list1/clod[" + i + "]/obtapponeqty"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_obtappdayqty", model.getValue("/root/main/list1/clod[" + i + "]/obtappdayqty"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_obtapptotqty", model.getValue("/root/main/list1/clod[" + i + "]/obtapptotqty"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_changeediamt", model.getValue("/root/main/list1/clod[" + i + "]/changeediamt"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_obtappamt", model.getValue("/root/main/list1/clod[" + i + "]/obtappamt"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_edilnno", model.getValue("/root/main/list1/clod[" + i + "]/edilnno"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_edicdflag", model.getValue("/root/main/list1/clod[" + i + "]/edicdflag"));
- model.makeValue("/root/send/data3/clod[" + i + "]/clod_edicd", model.getValue("/root/main/list1/clod[" + i + "]/edicd"));
-
- }
-
- // 5. 저장한다.
- if (submit("TXPIR31002")) {
-
- messageBox("[환수내역] 정산의뢰 생성이", "I002");
-
- // 6. 재조회한다.
- model.resetInstanceNode("/root/main/item1");
- submit("TRPIR31002");
-
- // 7. 환수내역 목록 초기화
- model.setValue("/root/hidden/obtapprem", "");
- model.setValue("/root/hidden/obtappamt", "");
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- }
- }
-
- // 이미 정산의뢰 생성된 데이터인지 확인한다. (명세서가 있는지 체크한다.)
- function fCheckDuplObtm() {
- var retVal = "N";
-
- model.removenode("/root/hidden/result");
- model.makeNode("/root/hidden/result");
- if (submit("TRPIR31006")) {
- var obtmcnt = model.getValue("/root/hidden/result/cnt/obtmcnt");
- if (parseInt(obtmcnt) > 0) {
- messageBox("이미 이의신청 명세서가 존재하므로 정산의뢰 생성", "E001");
- retVal = "Y";
- }
- }
- return retVal;
- }
-
- // 보험유형 변경시에 보조유형을 선별해준다.
- function fChangeInsuKind() {
- var insukind = model.getValue("/root/main/item1/clbs/newinsukind");
- if (insukind) {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/suppkind/suppkindlist[up='" + insukind + "']";
- } else {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/P0010list/P0010";
- model.setValue("/root/main/item1/clbs/newsuppkind", "");
- }
- cmb_suppkind.refresh();
- if (cmb_suppkind.label) {
- } else { // 기존 선택된 보조유형을 선택할 수 없는 보험유형이 선택된 경우이므로
- model.setValue("/root/main/item1/clbs/newsuppkind", "");
- cmb_suppkind.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1070" pageheight="670" guideline="1,805;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1050px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; ">이의신청 정산의뢰 생성</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1050px; height:647px; ">
- <button id="btn_clodsave" class="btn2_letter2" visibility="hidden" style="left:950px; top:375px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- messageBox("구현 예정", "E008");
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1040px; height:55px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1040px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:205px; top:6px; width:86px; height:17px; ">접수번호 :</caption>
- <line id="line13" class="line_4" style="x1:960px; y1:5px; x2:960px; y2:27px; "/>
- <caption id="caption4" class="search_name" style="left:389px; top:6px; width:86px; height:17px; ">심사차수 :</caption>
- <caption id="caption2" class="search_name" style="left:792px; top:6px; width:78px; height:17px; ">명일련 :</caption>
- <input id="ipt_acptno" ref="/root/send/data1/acptno" class="input_s_essential" navindex="2" format="9999999999" style="left:292px; top:5px; width:83px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- setInputNodeCurText();
- // 접수번호 입력 후, Enter
- if (event.keyCode == "13") {
- fGetJudgdg();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_judgdg" ref="/root/send/data1/judgdg" class="combo_s_essential" navindex="3" appearance="minimal" style="left:477px; top:5px; width:78px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/list1/judg">
- <label ref="judgdg"/>
- <value ref="judgdg"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_docuseqno" ref="/root/send/data1/docuseqno" class="input_s_essential" navindex="5" maxlength="5" format="99999" style="left:867px; top:5px; width:63px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:975px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var srchflag = model.getValue("/root/send/data1/srchflag");
- if (srchflag == "1") {
-
- // 1. 접수번호-심사차수-명일련 조회
- fGetCalcCretPatInfoByAcptno();
-
- } else if (srchflag == "2") {
-
- // 1. 청구번호-명일련 조회
- fGetCalcCretPatInfoByClamno();
- }
-
-
- if (model.getValue("/root/main/item1/clbs/acptno") != "") {
-
- if (model.getValue("/root/main/item1/clbs/insukind") != "21" && model.getValue("/root/main/item1/clbs/insukind") != "22") {
- cmb_insukind.disabled = true;
- } else {
- cmb_insukind.disabled = false;
- }
- cmb_suppkind.disabled = false;
-
- // 2. 보조유형을 조회한다.
- model.removenode("/root/init/suppkind");
- model.makeNode("/root/init/suppkind");
- submit("TRPIR31005");
- model.copyNode("/root/init/suppkind", "/root/init/tmp/suppkind");
- model.removeNodeset("/root/init/tmp/suppkind");
-
- // 3. 보험유형에 따른 보조유형을 선별한다.
- fChangeInsuKind();
-
- // 4. 정산의뢰액을 초기화한다.
- model.setValue(txa_obtapprem.attribute("ref"), model.getValue("/root/main/item1/clbs/obtapprem"));
- model.setValue(ipt_obtappamt.attribute("ref"), model.getValue("/root/main/item1/clbs/obtappamt"));
- model.setValue(ipt_suppamt.attribute("ref"), model.getValue("/root/main/item1/clbs/obtsuppamt"));
- model.setValue(ipt_maxamt.attribute("ref"), model.getValue("/root/main/item1/clbs/obtownbmaxamt"));
-
- model.refresh();
-
- } else {
-
- cmb_insukind.disabled = true;
- cmb_suppkind.disabled = true;
- }
-
- ]]>
- </script>
- </button>
- <input id="ipt_clamno" ref="/root/send/data1/clamno" class="input_s_essential" navindex="4" maxlength="12" format="999999999999" style="left:658px; top:5px; width:117px; height:19px; "/>
- <caption id="caption25" class="search_name" style="left:570px; top:6px; width:86px; height:17px; ">청구번호 :</caption>
- <caption id="caption26" class="search_name" style="left:5px; top:6px; width:86px; height:17px; ">조회구분 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:72px; width:160px; height:13px; ">환자 기본정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:1038px; y2:87px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:218px; x2:1037px; y2:218px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:115px; x2:925px; y2:115px; "/>
- <output id="opt_acptno" ref="/root/main/item1/clbs/acptno" class="output_fix" appearance="output" style="left:93px; top:94px; width:90px; height:19px; text-align:left; "/>
- <output id="opt_indd" ref="/root/main/item1/clbs/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:279px; top:94px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption38" class="cell_1" style="left:0px; top:91px; width:91px; height:23px; text-align:center; vertical-align:middle; ">접수번호</caption>
- <caption id="caption39" class="cell_1" style="left:186px; top:91px; width:91px; height:23px; text-align:left; vertical-align:middle; ">입원일자</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:141px; x2:925px; y2:141px; "/>
- <output id="opt_judgdg" ref="/root/main/item1/clbs/judgdg" class="output_fix" appearance="output" style="left:93px; top:120px; width:90px; height:19px; text-align:left; "/>
- <output id="opt_dschdd" ref="/root/main/item1/clbs/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:279px; top:120px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:117px; width:91px; height:23px; text-align:center; vertical-align:middle; ">심사차수</caption>
- <caption id="caption7" class="cell_1" style="left:186px; top:117px; width:91px; height:23px; text-align:left; vertical-align:middle; ">퇴원일자</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:143px; width:91px; height:23px; text-align:center; vertical-align:middle; ">묶음번호</caption>
- <output id="opt_setno" ref="/root/main/item1/clbs/setno" class="output_fix" appearance="output" style="left:93px; top:145px; width:90px; height:19px; text-align:left; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:167px; x2:925px; y2:167px; "/>
- <caption id="caption9" class="cell_1" style="left:186px; top:143px; width:91px; height:23px; text-align:left; vertical-align:middle; ">개시일자</caption>
- <output id="opt_ordfromdd" ref="/root/main/item1/clbs/ordfromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:279px; top:145px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:169px; width:91px; height:23px; text-align:center; vertical-align:middle; ">명일련</caption>
- <caption id="caption11" class="cell_1" style="left:186px; top:169px; width:91px; height:23px; text-align:left; vertical-align:middle; ">종료일자</caption>
- <output id="opt_docuseqno" ref="/root/main/item1/clbs/docuseqno" class="output_fix" appearance="output" style="left:93px; top:171px; width:90px; height:19px; text-align:left; "/>
- <output id="opt_ordtodd" ref="/root/main/item1/clbs/ordtodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:279px; top:171px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption12" class="cell_1" style="left:372px; top:169px; width:91px; height:23px; text-align:left; vertical-align:middle; ">청구요율</caption>
- <caption id="caption13" class="cell_1" style="left:558px; top:169px; width:93px; height:23px; text-align:left; vertical-align:middle; ">정산의뢰액</caption>
- <output id="opt_pid" ref="/root/main/item1/clbs/pid" class="output_fix" appearance="output" style="left:465px; top:94px; width:90px; height:19px; text-align:left; "/>
- <select1 id="cmb_insukind" ref="/root/main/item1/clbs/newinsukind" class="combo_fix" disabled="false" appearance="minimal" style="left:651px; top:94px; width:90px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 보험유형 변경은 의료급여1종 <-> 2종으로의 변경만 가능하다.
- if (model.getValue("/root/main/item1/clbs/insukind") == "21") {
-
- if (model.getValue("/root/main/item1/clbs/newinsukind") != "22") {
- messageBox("의료급여1종은 의료급여2종 외 보험유형으로 변경", "E001");
- model.setValue("/root/main/item1/clbs/newinsukind", model.getValue("/root/main/item1/clbs/insukind"));
- cmb_insukind.refresh();
- return;
- }
-
- } else if (model.getValue("/root/main/item1/clbs/insukind") == "22") {
-
- if (model.getValue("/root/main/item1/clbs/newinsukind") != "21") {
- messageBox("의료급여2종은 의료급여1종 외 보험유형으로 변경", "E001");
- model.setValue("/root/main/item1/clbs/newinsukind", model.getValue("/root/main/item1/clbs/insukind"));
- cmb_insukind.refresh();
- return;
- }
- }
-
- fChangeInsuKind();
- ]]>
- </script>
- </select1>
- <caption id="caption14" class="cell_1" style="left:372px; top:117px; width:91px; height:23px; text-align:left; vertical-align:middle; ">수진자명</caption>
- <output id="opt_patnm" ref="/root/main/item1/clbs/patnm" class="output_fix" appearance="output" style="left:465px; top:120px; width:90px; height:19px; text-align:left; "/>
- <caption id="caption15" class="cell_1" style="left:558px; top:117px; width:91px; height:23px; text-align:left; vertical-align:middle; ">보조유형</caption>
- <select1 id="cmb_suppkind" ref="/root/main/item1/clbs/newsuppkind" class="combo_fix" disabled="false" appearance="minimal" style="left:651px; top:120px; width:90px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:372px; top:91px; width:91px; height:23px; text-align:left; vertical-align:middle; ">등록번호</caption>
- <caption id="caption17" class="cell_1" style="left:372px; top:143px; width:91px; height:23px; text-align:left; vertical-align:middle; ">생성일자</caption>
- <caption id="caption18" class="cell_1" style="left:558px; top:91px; width:91px; height:23px; text-align:left; vertical-align:middle; ">보험유형</caption>
- <caption id="caption19" class="cell_1" style="left:558px; top:143px; width:91px; height:23px; text-align:left; vertical-align:middle; ">공상구분</caption>
- <output id="opt_fstrgstdt" ref="/root/main/item1/clbs/fstrgstdt" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:465px; top:145px; width:90px; height:19px; text-align:left; "/>
- <output id="opt_payownbrate" ref="/root/main/item1/clbs/payownbrate" class="output_fix" appearance="output" style="left:465px; top:171px; width:90px; height:19px; text-align:right; "/>
- <input id="ipt_obtappamt" ref="/root/hidden/obtappamt" class="input_default" inputtype="button" format="(-)#,###" style="left:650px; top:170px; width:90px; height:19px; text-align:right; "/>
- <output id="opt_edimedcaretotamt" ref="/root/main/item1/clbs/edimedcaretotamt" class="output_fix" format="#,###" appearance="output" style="left:837px; top:94px; width:90px; height:19px; text-align:right; "/>
- <output id="opt_ediinsuclamamt" ref="/root/main/item1/clbs/ediinsuclamamt" class="output_fix" format="#,###" appearance="output" style="left:837px; top:120px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption20" class="cell_1" style="left:744px; top:169px; width:91px; height:23px; text-align:left; vertical-align:middle; ">지원금</caption>
- <output id="opt_edihandcaprfund" ref="/root/main/item1/clbs/edihandcaprfund" class="output_fix" format="#,###" appearance="output" style="left:837px; top:145px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption21" class="cell_1" style="left:744px; top:117px; width:91px; height:23px; text-align:left; vertical-align:middle; ">청구액</caption>
- <caption id="caption22" class="cell_1" style="left:744px; top:91px; width:91px; height:23px; text-align:left; vertical-align:middle; ">총진료비</caption>
- <caption id="caption23" class="cell_1" style="left:744px; top:143px; width:91px; height:23px; text-align:left; vertical-align:middle; ">장애인기금</caption>
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:225px; width:1035px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption24" class="search_name" style="left:15px; top:234px; width:138px; height:17px; ">정산의뢰생성사유 :</caption>
- <select1 id="radio1" ref="/root/hidden/obtappflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:160px; top:234px; width:265px; height:20px; 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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var obtappflag = model.getValue("/root/hidden/obtappflag");
- model.setValue("/root/hidden/obtapprem", "");
- model.setValue("/root/hidden/obtappamt", "");
- model.setValue("/root/hidden/obtsuppamt", "");
- model.setValue("/root/hidden/obtownbmaxamt", "");
- txa_obtapprem.refresh();
- ipt_obtappamt.refresh();
-
- if (obtappflag == "3") {
- txa_obtapprem.disabled = true;
- btn_clod.disabled = false;
- btn_delete.disabled = false;
-
- } else if (obtappflag == "2") {
- txa_obtapprem.disabled = false;
- btn_clod.disabled = true;
- btn_delete.disabled = true;
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- grd_clodlist.refresh();
- } else if (obtappflag == "1") {
- txa_obtapprem.disabled = false;
- btn_clod.disabled = true;
- btn_delete.disabled = true;
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- grd_clodlist.refresh();
- }
- ]]>
- </script>
- </select1>
- <button id="btn_clod" class="btn2_letter6" style="left:906px; top:375px; width:86px; height:19px; ">
- <caption>청구처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRefundClodList();
- ]]>
- </script>
- </button>
- <select1 id="rdo_srchflag" ref="/root/send/data1/srchflag" navindex="1" appearance="full" cols="3" rows="1" overflow="visible" style="left:95px; top:20px; width:95px; height:20px; 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 srchflag = model.getValue("/root/send/data1/srchflag");
- if (srchflag == "1") {
- ipt_acptno.disabled = false;
- cmb_judgdg.disabled = false;
-
- model.setValue("/root/send/data1/clamno", "");
- ipt_clamno.disabled = true;
- ipt_clamno.refresh();
- } else {
- ipt_clamno.disabled = false;
-
- model.setValue("/root/send/data1/acptno", "");
- model.setValue("/root/send/data1/judgdg", "");
- ipt_acptno.disabled = true;
- cmb_judgdg.disabled = true;
- ipt_acptno.refresh();
- cmb_judgdg.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption27" class="cell_1" style="left:930px; top:91px; width:108px; height:23px; text-align:left; vertical-align:middle; "/>
- <caption id="caption28" class="cell_1" style="left:930px; top:117px; width:108px; height:23px; text-align:left; vertical-align:middle; "/>
- <caption id="caption29" class="cell_1" style="left:930px; top:143px; width:108px; height:23px; text-align:left; vertical-align:middle; "/>
- <caption id="caption30" class="cell_1" style="left:930px; top:169px; width:108px; height:23px; text-align:left; vertical-align:middle; "/>
- <textarea id="txa_obtapprem" ref="/root/hidden/obtapprem" style="left:0px; top:285px; width:1038px; height:85px; "/>
- <datagrid id="grd_clodlist" nodeset="/root/main/list1/clod" class="datagrid2" caption="clamym^clamdg^pid^pidsn^seqno^처방코드^EDI코드^처방명칭^단가^청구
일회^청구
일투^청구
총투^청구액^정산
일회^정산
일투^정산
총투^정산진료비^정산의뢰액^edilnno^edicdflag" colsep="^" colwidth="50, 50, 50, 50, 50, 83, 83, 230, 76, 42, 45, 45, 70, 46, 45, 45, 70, 70, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:405px; width:1038px; height:215px; ">
- <col ref="clamym" visibility="hidden"/>
- <col ref="clamdg" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="pidsn" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="snglcalcscorcd"/>
- <col ref="edicd"/>
- <col ref="hngnm"/>
- <col ref="unitcost" format="#,###" style="text-align:right; "/>
- <col ref="edidrugqty" style="text-align:right; "/>
- <col ref="tims" style="text-align:right; "/>
- <col ref="edidayno" style="text-align:right; "/>
- <col ref="ediamt" format="#,###" style="text-align:right; "/>
- <col ref="obtapponeqty" type="input" format="###" style="text-align:right; "/>
- <col ref="obtappdayqty" type="input" format="###" style="text-align:right; "/>
- <col ref="obtapptotqty" type="input" format="###" style="text-align:right; "/>
- <col ref="changeediamt" format="#,###" style="text-align:right; "/>
- <col ref="obtappamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="edilnno" visibility="hidden"/>
- <col ref="edicdflag" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // 정산일회, 일투, 총투 변경 시 정산진료비와 정산의뢰액을 계산한다.
- var col = grd_clodlist.col;
- if (col == grd_clodlist.colRef("obtapponeqty") || col == grd_clodlist.colRef("obtappdayqty") || col == grd_clodlist.colRef("obtapptotqty")) {
- var row = grd_clodlist.row;
- var obtapponeqty = model.getValue("/root/main/list1/clod["+ row +"]/obtapponeqty");
- var obtappdayqty = model.getValue("/root/main/list1/clod["+ row +"]/obtappdayqty");
- var obtapptotqty = model.getValue("/root/main/list1/clod["+ row +"]/obtapptotqty");
- var unitcost = model.getValue("/root/main/list1/clod["+ row +"]/unitcost");
- var ediamt = model.getValue("/root/main/list1/clod["+ row +"]/ediamt");
-
- // 정산진료비
- var changeediamt = parseInt(unitcost) * parseInt(obtapponeqty) * parseInt(obtappdayqty) * parseInt(obtapptotqty);
- model.setValue("/root/main/list1/clod["+ row +"]/changeediamt", changeediamt);
-
- // 정산의뢰액 = 정산진료비 - 청구액
- var obtappamt = parseInt(changeediamt) - parseInt(ediamt);
- model.setValue("/root/main/list1/clod["+ row +"]/obtappamt", obtappamt);
-
- // 환수내역에 쌓인 정산의뢰액을 합하여 환자기본정보 정산의뢰액에 넣어준다.
- var obtapptotamt = 0;
- for(var i = 1; i < grd_clodlist.rows; i++) {
- var obtappamt = parseInt(model.getValue("/root/main/list1/clod["+ i +"]/obtappamt"));
- obtapptotamt = obtapptotamt + obtappamt;
- }
- model.setValue("/root/hidden/obtappamt", obtapptotamt);
- ipt_obtappamt.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption31" class="tit_2" style="left:5px; top:270px; width:160px; height:13px; ">요율/자격정산</caption>
- <caption id="caption32" class="tit_2" style="left:5px; top:380px; width:160px; height:13px; ">처방별 환수내역</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:401px; x2:1038px; y2:401px; "/>
- <button id="btn_ratesave" class="btn2_letter2" visibility="hidden" style="left:994px; top:265px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" style="left:995px; top:375px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_clodlist.deleteRow(grd_clodlist.row, true);
- ]]>
- </script>
- </button>
- <select1 id="cmb_offcharm" ref="/root/main/item1/clbs/offcharm" class="combo_fix" disabled="false" navindex="4" scroll="vertical" appearance="minimal" showvalue="true" _auth="R" style="left:650px; top:145px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0236list/P0236">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption33" class="cell_1" style="left:930px; top:195px; width:108px; height:23px; text-align:left; vertical-align:middle; "/>
- <input id="ipt_suppamt" ref="/root/hidden/obtsuppamt" class="input_default" inputtype="button" format="(-)#,###" style="left:837px; top:170px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption34" class="cell_1" style="left:744px; top:195px; width:91px; height:23px; text-align:left; vertical-align:middle; ">상한액</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:195px; width:91px; height:23px; text-align:center; vertical-align:middle; ">특정기호</caption>
- <caption id="caption36" class="cell_1" style="left:186px; top:195px; width:91px; height:23px; text-align:left; vertical-align:middle; ">산정특례번호</caption>
- <caption id="caption37" class="cell_1" style="left:372px; top:195px; width:91px; height:23px; text-align:left; vertical-align:middle; "/>
- <caption id="caption40" class="cell_1" style="left:558px; top:195px; width:91px; height:23px; text-align:left; vertical-align:middle; "/>
- <line id="line5" class="line_2" style="x1:5px; y1:193px; x2:930px; y2:193px; "/>
- <button id="button1" class="btn5_letter6" style="left:940px; top:197px; width:86px; height:19px; ">
- <caption>정산금액계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/item1/clbs/acptno") != "") {
-
- var insukind = model.getValue("/root/main/item1/clbs/newinsukind");
- var suppkind = model.getValue("/root/main/item1/clbs/newsuppkind");
-
- if (insukind == "") {
- messageBox("정산의뢰액 계산시, 보험유형은 필수입력사항", "E008");
- return;
- }
- if (suppkind == "") {
- messageBox("정산의뢰액 계산시, 보조유형은 필수입력사항", "E008");
- return;
- }
-
- model.removenode("/root/send/data4");
- model.makeNode("/root/send/data4");
- model.copyNode("/root/send/data4", "/root/main/item1/clbs");
- model.setValue("/root/send/data4/insukind", insukind);
- model.setValue("/root/send/data4/suppkind", suppkind);
- if (model.getValue("/root/send/data4/indd") == "" || model.getValue("/root/send/data4/indd") == "-")
- model.setValue("/root/send/data4/indd", model.getValue("/root/send/data4/ordfromdd"));
- if (model.getValue("/root/send/data4/dschdd") == "" || model.getValue("/root/send/data4/dschdd") == "-")
- model.setValue("/root/send/data4/dschdd", model.getValue("/root/send/data4/ordfromdd"));
- if (model.getValue("/root/send/data4/clamdeptcd") == "" || model.getValue("/root/send/data4/clamdeptcd") == "-")
- model.setValue("/root/send/data4/clamdeptcd", "01");
- model.resetInstanceNode("/root/main/item2");
- var vcode = model.getValue(ipt_vcode.attribute("ref")) + "/";
- var serdiagno = model.getValue(ipt_serdiagno.attribute("ref")) + "\n";
- model.setValue(txa_obtapprem.attribute("ref"), vcode + serdiagno + model.getValue("/root/main/item1/clbs/obtapprem"));
-
- // 1. 요율, 자격변경으로 인하여 재계산되어 나오는 청구액을 구한다.
- if (submit("TRPIR31004")) {
-
- // 2. 신청구액 - 기청구액 = 정산의뢰액
- var newclamamt = model.getValue("/root/main/item2/clbs/ediinsuclamamt");
- var oldclamamt = model.getValue("/root/main/item1/clbs/ediinsuclamamt");
- var obtappamt = parseInt(newclamamt) - parseInt(oldclamamt);
- model.setValue("/root/hidden/obtappamt", parseInt(obtappamt));
-
- ipt_obtappamt.refresh();
- var newsuppamt = model.getValue("/root/main/item2/clbs/edisuppamt");
- var oldsuppamt = model.getValue("/root/main/item1/clbs/edisuppamt");
- var obtsuppamt = parseInt(newsuppamt) - parseInt(oldsuppamt);
-
- model.setValue("/root/hidden/obtsuppamt", parseInt(obtsuppamt));
-
- ipt_suppamt.refresh();
-
- var newmaxamt = model.getValue("/root/main/item2/clbs/ediownbmaxexamt");
- var oldmaxamt = model.getValue("/root/main/item1/clbs/ediownbmaxexamt");
- var obtownbmaxamt = parseInt(newmaxamt) - parseInt(oldmaxamt);
-
- model.setValue("/root/hidden/obtownbmaxamt", parseInt(obtownbmaxamt));
-
- ipt_maxamt.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_maxamt" ref="/root/hidden/obtownbmaxamt" class="input_default" inputtype="button" format="(-)#,###" style="left:837px; top:195px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption41" class="cell_1" style="left:558px; top:194px; width:91px; height:23px; text-align:left; vertical-align:middle; ">결핵구분</caption>
- <select1 id="cmb_rareobstflag" ref="/root/main/item1/clbs/rareobstflag" class="combo_fix" appearance="minimal" style="left:650px; top:196px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>결핵</label>
- <value>L</value>
- </item>
- <item>
- <label/>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <select id="chk_attdocu" ref="/root/main/item1/clbs/attdocu" overflow="visible" appearance="full" cellspacing="1" cols="5" sep="," vcellspacing="10" style="left:525px; top:231px; width:370px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>1심결통보서</label>
- <value>1</value>
- </item>
- <item>
- <label>2진료기록부</label>
- <value>2</value>
- </item>
- <item>
- <label>3X-ray</label>
- <value>3</value>
- </item>
- <item>
- <label>4검사결과지</label>
- <value>4</value>
- </item>
- <item>
- <label>5기타</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select>
- <caption id="caption42" class="search_name" style="left:435px; top:235px; width:85px; height:17px; ">첨부문서:</caption>
- <input id="ipt_vcode" ref="/root/main/item1/clbs/vcode" style="left:93px; top:197px; width:90px; height:19px; "/>
- <input id="ipt_serdiagno" ref="/root/main/item1/clbs/serdiagno" style="left:279px; top:197px; width:90px; height:19px; "/>
- <caption id="caption43" class="search_name" style="left:5px; top:40px; width:138px; height:17px; ">정산의뢰생성사유 :</caption>
- <select1 id="radio2" ref="/root/send/data1/obtappflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:150px; top:40px; width:265px; height:20px; 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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var obtappflag = model.getValue("/root/hidden/obtappflag");
- model.setValue("/root/hidden/obtapprem", "");
- model.setValue("/root/hidden/obtappamt", "");
- model.setValue("/root/hidden/obtsuppamt", "");
- model.setValue("/root/hidden/obtownbmaxamt", "");
- txa_obtapprem.refresh();
- ipt_obtappamt.refresh();
-
- if (obtappflag == "3") {
- txa_obtapprem.disabled = true;
- btn_clod.disabled = false;
- btn_delete.disabled = false;
-
- } else if (obtappflag == "2") {
- txa_obtapprem.disabled = false;
- btn_clod.disabled = true;
- btn_delete.disabled = true;
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- grd_clodlist.refresh();
- } else if (obtappflag == "1") {
- txa_obtapprem.disabled = false;
- btn_clod.disabled = true;
- btn_delete.disabled = true;
- model.removenode("/root/main/list1");
- model.makeNode("/root/main/list1");
- grd_clodlist.refresh();
- }
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn2_letter4" style="left:974px; top:67px; width:64px; height:19px; ">
- <caption>자격조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var patnm = model.getValue("/root/main/item1/clbs/patnm");
- var patrrgstno = model.getValue("/root/main/item1/clbs/patrrgstno");
- var parm = patrrgstno+ "▦"+patnm+"▦" + getCurrentDate() + "▦"; // 주민번호▦이름▦진료일자
- setParameter("SPPMC03900_PARM", parm);
- setParameter("SPPMC03900_RTN", "");
- modal("SPPMC03900", "1", "10", "10", "SPPMC03900", "", "", "", ""); // SPPMC03900_자격조회.xrw
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter4" style="left:118px; top:622px; width:80px; height:22px; ">
- <caption>문서 마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 이의신청등록관리화면의 조회조건과 이의신청과조회화면의 조회조건이 부분적으로 일치하기 때문에 동일한 조회조건에 해당하는 항목만 매핑처리한다.
-
- var judgdg = model.getValue("/root/send/data1/judgdg");
- var clamno = model.getValue("/root/send/data1/clamno");
- var acptno = model.getValue("/root/send/data1/acptno");
- var obtappflag = model.getValue("/root/send/data1/obtappflag");
- var obtappflagcd = "10";
- var notidd = model.getValue("/root/main/item1/clbs/notidd");
- model.setValue("/root/send/send_end/judgdg",judgdg);
- model.setValue("/root/send/send_end/clamno",clamno);
- model.setValue("/root/send/send_end/acptno",acptno);
- if (obtappflag == "2") {
- obtappflagcd = "11";
- } else {
- obtappflagcd = "10";
- }
- model.setValue("/root/send/send_end/obtappflag", obtappflagcd);
- //model.setValue("/root/send/data1/indendyn", "Y");
- model.setValue( "/root/send/send_end/status", "update" );
- model.setValue( "instance('instance1')/send/send_end/notidd", notidd);
- // model.setValue( "instance('instance1')/send/send_end/obtappdd", t10 );
- // model.setValue( "instance('instance1')/send/send_end/obtappdocuno", t9.replace("가의강", "보험") );
- // model.setValue( "instance('instance1')/send/send_end/endflag", "" );
- // model.setValue( "instance('instance1')/send/send_end/obtappendflag", t8 );
-
- modal("SPPIR30420", 1, 1, 1, "SPPIR30420", "/root/send/send_end", "/root/main/enddata");
- ]]>
- </script>
- </button>
- <button id="button7" class="btn3_letter7" style="left:1px; top:622px; width:116px; height:22px; ">
- <caption>이의신청서 출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var judgdg = model.getValue("/root/send/data1/judgdg");
- var clamno = model.getValue("/root/send/data1/clamno");
- var acptno = model.getValue("/root/send/data1/acptno");
- var obtappflag = model.getValue("/root/send/data1/obtappflag");
- var obtappflagcd = "10";
- model.setValue("/root/send/send_obtmlist/judgdg",judgdg);
- model.setValue("/root/send/send_obtmlist/clamno",clamno);
- model.setValue("/root/send/send_obtmlist/acptno",acptno);
- if (obtappflag == "2") {
- obtappflagcd = "11";
- } else {
- obtappflagcd = "10";
- }
- model.setValue("/root/send/send_obtmlist/obtappflag", obtappflagcd);
-
-
- modal("SPPIR30500", 1, 1, 1, "SPPIR30500", "/root/send/send_obtmlist", "/root/receiveref");
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_init" class="btn4_letter3" navindex="7" style="left:969px; top:635px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_regist" class="btn4_letter6" navindex="7" style="left:862px; top:635px; width:104px; height:22px; ">
- <caption>정산의뢰생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var acptno = model.getValue("/root/main/item1/clbs/acptno");
- if (acptno != "") {
-
- // 1. 정산의뢰 생성한다.
- var obtappflag = model.getValue("/root/hidden/obtappflag");
- if (obtappflag == "3") {
- // 환수내역으로 정산의뢰 생성
- fSetCalcCretByRefund();
- } else {
- // 요율변경으로 정산의뢰 생성
- fSetCalcCretByRate();
- }
-
-
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" navindex="7" style="left:755px; top:635px; width:104px; height:22px; ">
- <caption>정산의뢰조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchObtmList();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter6" navindex="7" style="left:645px; top:635px; width:104px; height:22px; ">
- <caption>정산의뢰삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteObtmList();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|