123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <clamkey/>
- <workflag/>
- <docuflag/>
- <savedocuflag/>
- <title/>
- </send>
- <main>
- <list01>
- <gridpatbaseinfo>
- <insucdnm/>
- <clamym/>
- <ioflag/>
- <pid/>
- <patnm/>
- <orddeptcd/>
- <indd/>
- <dschdd/>
- <acdacptno/>
- <chkdocunotidd/>
- </gridpatbaseinfo>
- <gridchkdocuadjtdetl>
- <rowchkbox/>
- <lnno/>
- <item/>
- <grupcalcscorcd/>
- <snglcalcscorcd/>
- <edicd/>
- <hngnm/>
- <matractflag/>
- <unitcost/>
- <clamdayqty/>
- <clamtotqty/>
- <adjtcd/>
- <adjtdayqty/>
- <adjttotqty/>
- <adjtamt/>
- <obtappdayqty/>
- <obtapptotqty/>
- <obtappamt/>
- <aprvdayqty/>
- <aprvtotqty/>
- <aprvamt/>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <acptno/>
- <acdacptno/>
- <clamym/>
- <clamdg/>
- <pid/>
- <patnm/>
- <ordterm/>
- <ediunitcost/>
- <rcogunitcost/>
- <rcogpossamt/>
- <docuflag/>
- <clamamt/>
- <chkdocunotidd/>
- <savedocuflag/>
- <adjtcmt/>
- <acptdd/>
- <insuno/>
- <insunm/>
- <certno/>
- </gridchkdocuadjtdetl>
- </list01>
- <list02>
- <gridchkdocuadjtdetl/>
- </list02>
- <result/>
- </main>
- <init>
- <P0028list>
- <P0028>
- <cdid/>
- <cdnm/>
- </P0028>
- </P0028list>
- <P0277list>
- <P0277>
- <cdid/>
- <cdnm/>
- </P0277>
- </P0277list>
- </init>
- <temp>
- <rem>
- <adjtcmt/>
- </rem>
- </temp>
- <hidden>
- <gbvalue>
- <sumadjtamt/>
- </gbvalue>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIF70411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TXPIF70411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 공통코드 Load작업
- CommCode_Load();
- ]]>
- </script>
- <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">
- <![CDATA[
- function Node_Init() {
- }
-
- // 공통코드 Load작업
- function CommCode_Load() {
- // 관련 Control 초기화
- zbcfGetCodeList(new Array("P0028", "P0277"), new Array( "/root/init/P0028list", "/root/init/P0277list"));
-
- document.title= model.getValue("/root/send/title");
- if(submit("TRPIF70411")) {
- var docuflag = "";
- var savedocuflag = "";
-
- docuflag = model.getValue("/root/send/docuflag");
- savedocuflag = model.getValue("/root/send/savedocuflag");
-
- if((docuflag == "1" & savedocuflag == "2") || (docuflag == "2" & savedocuflag == "3") || (docuflag == "3" & savedocuflag == "4")) {
- ipt_chkdocuacptdd.value= "";
- }
-
- var row_cnt = grd_chkdocuadjtdetl.rows;
- for(var i=1;i<row_cnt;i++) {
-
- if((docuflag == "1" & savedocuflag == "2") || (docuflag == "2" & savedocuflag == "3") || (docuflag == "3" & savedocuflag == "4")) {
- grd_chkdocuadjtdetl.rowStatus(i) = "1";
- }
- }
-
- fCalcSumOfAdjtamt();
- }
- grd_chkdocuadjtdetl.colStyle(12,"data","background-color") = "#ffff00";
- grd_chkdocuadjtdetl.colStyle(13,"data","background-color") = "#ffff00";
- grd_chkdocuadjtdetl.colStyle(14,"data","background-color") = "#ffff00";
- grd_chkdocuadjtdetl.colStyle(15,"data","background-color") = "#ffff00";
- }
- //조정금액 합계를 구한다.
- function fCalcSumOfAdjtamt(){
-
- var sumAdjtamt = 0;
- var cnt = getNodesetCount("/root/main/list01/gridchkdocuadjtdetl/lnno");
- for( var i = 1; i <= cnt; i++ ){
- sumAdjtamt = parseInt(sumAdjtamt) + parseInt(model.getValue("/root/main/list01/gridchkdocuadjtdetl["+ i +"]/adjtamt"));
- }
-
- model.setValue("/root/hidden/gbvalue/sumadjtamt", sumAdjtamt);
- output1.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
- <col type="checkbox"/>
- <line id="line66" class="line_1" style="x1:0px; y1:30px; x2:1192px; y2:30px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:147px; x2:1194px; y2:147px; "/>
- <caption id="caption1" class="tit_2" style="left:6px; top:132px; width:147px; height:13px; ">검토서조정내역</caption>
- <button id="button9" class="btn2_letter4" style="left:1057px; top:125px; width:64px; height:19px; ">
- <caption>출 력</caption>
- </button>
- <button id="button12" class="btn2_letter4" style="left:989px; top:125px; width:64px; height:19px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row_cnt = grd_chkdocuadjtdetl.rows;
- var count = 0;
- var savedocuflag = model.getValue("/root/send/savedocuflag");
-
- for(var i=1;i<=row_cnt;i++) {
- //alert(grd_chkdocuadjtdetl.rowStatus(i));
- if(grd_chkdocuadjtdetl.rowStatus(i)== "1" || grd_chkdocuadjtdetl.rowStatus(i)== "3" || grd_chkdocuadjtdetl.rowStatus(i)== "2") {
-
- count += 1;
- var ins01 = grd_chkdocuadjtdetl.valueMatrix(i,12); //조정사유
- var ins02 = grd_chkdocuadjtdetl.valueMatrix(i,13); //조정일투
- var ins03 = grd_chkdocuadjtdetl.valueMatrix(i,14); //조정총투
- var ins04 = grd_chkdocuadjtdetl.valueMatrix(i,15); //조정금액
- var ins05 = ipt_chkdocuacptdd.value; //검토서접수일자
-
- var unitcost = grd_chkdocuadjtdetl.valueMatrix(i,9); //처방단가
- var lnno = grd_chkdocuadjtdetl.valueMatrix(i,2); //줄번호
- if(ins01 == "" & ins02 == "" & ins03 == "") {
- continue;
- }
- if(ins01 == "") {
- alert("조정사유를 입력해 주세요");
- model.setFocus("grd_chkdocuadjtdetl.valueMatrix()");
- return false;
- }
- if(ins02 == "") {
- alert("조정일투를 입력해 주세요");
- return false;
- }
- if(ins03 == "") {
- alert("조정총투를 입력해 주세요");
- return false;
- }
- if(ins05 == "") {
- alert("검토서접수일자를 입력해 주세요");
- model.setFocus("ipt_chkdocuacptdd");
- return false;
- } else {
- grd_chkdocuadjtdetl.valueMatrix(i, grd_chkdocuadjtdetl.colRef("chkdocunotidd")) = ins05; //검토서접수일자 그리드에 세팅
- }
- if(ins02 > ins03) {
- alert("줄번호 " + lnno + "의 조정일투값은 조정총투값보다 클수 없습니다.");
- return false;
- }
-
- // grd_chkdocuadjtdetl.valueMatrix(i,15) = unitcost * ins03; // 수정가능하게 해 놓고 왜 다시 박아버리는 가???? 2010.02.03 주석처리
- model.setValue("/root/main/list01/gridchkdocuadjtdetl["+i+"]/savedocuflag",savedocuflag);
- }
- }
- if(count >0 ) {
- model.setValue("/root/main/list02/gridchkdocuadjtdetl", grd_chkdocuadjtdetl.getUpdateData());
- if(submit("TXPIF70411")) {
- model.resetInstanceNode("/root/main/list01");
- model.resetInstanceNode("/root/main/list02");
- model.resetInstanceNode("/root/temp/rem");
- submit("TRPIF70411");
-
- fCalcSumOfAdjtamt();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:6px; top:10px; width:147px; height:14px; ">환자기본정보</caption>
- <caption id="caption3" class="tit_2" style="left:6px; top:629px; width:152px; height:13px; ">검토서수신서 조정주석</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:644px; x2:800px; y2:644px; "/>
- <textarea id="txt_adjtcmt" ref="/root/temp/rem/adjtcmt" style="left:0px; top:649px; width:800px; height:92px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_chkdocuadjtdetl.row;
- model.setValue("/root/main/list01/gridchkdocuadjtdetl["+row+"]/adjtcmt", txt_adjtcmt.value);
- if(grd_chkdocuadjtdetl.rowStatus(row) != 1 || grd_chkdocuadjtdetl.rowStatus(row) != 3) {
- grd_chkdocuadjtdetl.rowStatus(row) = 2;
- }
- ]]>
- </script>
- </textarea>
- <select id="checkbox1" visibility="hidden" overflow="visible" appearance="full" cols="2" rows="5" style="left:805px; top:649px; width:190px; height:86px; border-style:none; ">
- <choices>
- <item>
- <label>응급실기록지</label>
- <value>1</value>
- </item>
- <item>
- <label>투약기록지</label>
- <value/>
- </item>
- <item>
- <label>경과기록지</label>
- <value/>
- </item>
- <item>
- <label>간호기록지</label>
- <value/>
- </item>
- <item>
- <label>의사명령지</label>
- <value/>
- </item>
- <item>
- <label>검사결과지</label>
- <value/>
- </item>
- <item>
- <label>수술기록지</label>
- <value/>
- </item>
- <item>
- <label>방사선결과지</label>
- <value/>
- </item>
- <item>
- <label>마취기록지</label>
- <value/>
- </item>
- <item>
- <label>기타</label>
- <value/>
- </item>
- </choices>
- </select>
- <caption id="caption5" class="tit_2" visibility="hidden" style="left:811px; top:629px; width:152px; height:13px; ">첨부자료</caption>
- <line id="line4" class="line_1" visibility="hidden" style="x1:805px; y1:644px; x2:995px; y2:644px; "/>
- <button id="button1" class="btn2_letter2" visibility="hidden" style="left:714px; top:623px; width:42px; height:19px; ">
- <caption>출력</caption>
- </button>
- <button id="button2" class="btn2_letter2" visibility="hidden" style="left:759px; top:623px; width:42px; height:19px; ">
- <caption>저장</caption>
- </button>
- <button id="button3" class="btn2_letter6" visibility="hidden" style="left:625px; top:623px; width:86px; height:19px; ">
- <caption>심사화면보기</caption>
- </button>
- <button id="button4" class="btn2_letter6" style="left:899px; top:125px; width:86px; height:19px; ">
- <caption>신규삭감등록</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SPPIF70400_검토서등록관리.xrw", "modal", "pop", "width:1140; height:640;", "/root/send", "/root/send");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" visibility="hidden" style="left:835px; top:125px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_chkdocuadjtdetl.rows-1;
- var cnt = 0;
- var row = grd_chkdocuadjtdetl.row;
- var cnt = 0;
-
- for( var i = rows; i > 0;i--) {
- var rowchkbox = grd_chkdocuadjtdetl.valueMatrix(i,1);
- if(rowchkbox == "true") {
- ++cnt;
- grd_chkdocuadjtdetl.deleteRow(i, false);
- }
- }
- if(cnt == 0) {
- grd_chkdocuadjtdetl.deleteRow(row, false);
- }
- grd_chkdocuadjtdetl.refresh();
- /* for(var j=0;j<row.length;j++) {
- grd_chkdocuadjtdetl.deleteRow(i);
- }*/
- //model.refresh();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_3" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
- <line id="line11" class="line_3" style="x1:0px; y1:119px; x2:1194px; y2:119px; "/>
- <caption id="caption38" class="cell_1" style="left:0px; top:96px; width:100px; height:23px; text-align:left; vertical-align:middle; ">검토서접수일자</caption>
- <datagrid id="grd_chkdocuadjtdetl" nodeset="/root/main/list01/gridchkdocuadjtdetl" class="datagrid2" caption="선택^줄번호^항목^그룹코드^수가코드^EDI코드^처방명칭^I/II구분^처방단가^청구
일투^청구
총투^조정
사유^조정
일투^조정
총투^조정액^이의
일투^이의
총투^이의신청액^동의
일투^동의
총투^동의액^청구번호^명일련^기관코드^접수번호^사고접수번호^청구월^청구차수^등록번호^수진자명^진료기간^EDI단가^인정단가^인정가능액^서식구분^청구액^검토서통보일자^SaveDocuFlag^조정주석^접수일자^보험사코드^보험사명^요양기관코드" colsep="^" colwidth="38, 54, 45, 80, 80, 75, 167, 56, 67, 42, 42, 35, 42, 42, 67, 42, 42, 81, 42, 42, 84, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 174, 100, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="35" rowsep="|" style="left:0px; top:152px; width:1194px; height:463px; ">
- <col ref="rowchkbox" type="checkbox" visibility="hidden">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- grd_chkdocuadjtdetl.rowStatus(grd_chkdocuadjtdetl.row) = 4;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- grd_chkdocuadjtdetl.rowStatus(grd_chkdocuadjtdetl.row) = 0;
- return false;
- ]]>
- </script>
- </col>
- <col ref="lnno" style="text-align:center; "/>
- <col ref="item" style="text-align:center; "/>
- <col ref="grupcalcscorcd" style="text-align:center; "/>
- <col ref="snglcalcscorcd" style="text-align:center; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="hngnm"/>
- <col ref="matractflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>재료</label>
- <value>1</value>
- </item>
- <item>
- <label>행위</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="unitcost" format="#,###" style="text-align:right; "/>
- <col ref="clamdayqty" style="text-align:right; "/>
- <col ref="clamtotqty" style="text-align:center; "/>
- <col imemode="alpha" ref="adjtcd" type="input" maxlength="2" style="text-align:center; "/>
- <!--
- <col ref="adjtcd" type="combo" maxlength="2" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0277list/P0277">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- -->
- <col ref="adjtdayqty" type="input" style="text-align:center; "/>
- <col ref="adjttotqty" type="input" style="text-align:center; "/>
- <col ref="adjtamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="obtappdayqty" style="text-align:center; "/>
- <col ref="obtapptotqty" style="text-align:center; "/>
- <col ref="obtappamt" format="#,###" style="text-align:right; "/>
- <col ref="aprvdayqty" style="text-align:center; "/>
- <col ref="aprvtotqty" style="text-align:center; "/>
- <col ref="aprvamt" format="#,###" style="text-align:right; "/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="docuseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="acptno" visibility="hidden"/>
- <col ref="acdacptno" visibility="hidden"/>
- <col ref="clamym" visibility="hidden"/>
- <col ref="clamdg" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="patnm" visibility="hidden"/>
- <col ref="ordterm" visibility="hidden"/>
- <col ref="ediunitcost" visibility="hidden"/>
- <col ref="rcogunitcost" visibility="hidden"/>
- <col ref="rcogpossamt" visibility="hidden"/>
- <col ref="docuflag" visibility="hidden"/>
- <col ref="clamamt" visibility="hidden"/>
- <col ref="chkdocunotidd" visibility="hidden"/>
- <col ref="savedocuflag" visibility="hidden"/>
- <col ref="adjtcmt"/>
- <col ref="acptdd" visibility="hidden"/>
- <col ref="insuno" visibility="hidden"/>
- <col ref="insunm" visibility="hidden"/>
- <col ref="certno" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCalcSumOfAdjtamt();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_chkdocuadjtdetl.row;
- model.setValue("/root/temp/rem/adjtcmt", model.getValue("/root/main/list01/gridchkdocuadjtdetl["+row+"]/adjtcmt"));
- model.refreshpart("/root/temp/rem/adjtcmt");
- ]]>
- </script>
- </datagrid>
- <input id="ipt_chkdocuacptdd" ref="/root/main/list01/gridchkdocuadjtdetl/chkdocunotidd" class="input_default" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:102px; top:98px; width:90px; height:19px; text-align:center; "/>
- <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/gridpatbaseinfo" class="datagrid" caption="손보사^청구월^내원유형^등록번호^수진자명^진료과^입원일^퇴원일^사고접수번호^검토서접수일자" colsep="^" colwidth="120, 120, 120, 120, 120, 120, 120, 120, 120, 120" dataheight="25" defaultrows="10" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="35" rowsep="|" style="left:0px; top:35px; width:1194px; height:49px; ">
- <col ref="insucdnm" style="text-align:center; "/>
- <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="acdacptno" style="text-align:center; "/>
- <col ref="chkdocunotidd" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- <button id="button7" class="btn2_letter4" style="left:1126px; top:126px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var today = new Date();
-
- var yy = today.getYear()+"";
- var mm = today.getMonth()+1;
- var dd = today.getDate();
-
- if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
- if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
-
- var tmp = yy+mm+dd;
- var fileName = window.fileDialog("save", ",", false, model.getValue("/root/send/title")+"_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_chkdocuadjtdetl.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:968px; top:615px; width:100px; height:20px; font-weight:bold; ">조정금액 합계 :</caption>
- <caption id="caption6" style="left:1173px; top:615px; width:20px; height:20px; font-weight:bold; ">원</caption>
- <output id="output1" ref="/root/hidden/gbvalue/sumadjtamt" style="left:1068px; top:615px; width:100px; height:19px; font-weight:bold; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:744px; width:1195px; height:27px; ">
- <button id="button41" class="btn4_letter2" visibility="hidden" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- </button>
- <button id="button42" class="btn4_letter2" visibility="hidden" style="left:1080px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- </button>
- <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|