123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <send01>
- <ioflag>1</ioflag>
- <insucompnm/>
- <termflag>1</termflag>
- <fromdate/>
- <todate/>
- <endyn>1</endyn>
- <pid/>
- <patnm/>
- <clamdg/>
- <chk401/>
- </send01>
- <send02>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <acptno/>
- </send02>
- <send03>
- <clamno/>
- <docuseqno/>
- <docuflag/>
- <savedocuflag/>
- <title/>
- <cnt401/>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <chk401/>
- <patnm/>
- </send03>
- </send>
- <main>
- <list01>
- <patbaseinfo>
- <gridpatbaseinfo>
- <insucdnm/>
- <clamym/>
- <ioflag/>
- <pid/>
- <patnm/>
- <orddeptnm/>
- <orddeptcd/>
- <indd/>
- <dschdd/>
- <interm/>
- <acdacptno/>
- <clamno/>
- <docuseqno/>
- <clamdg/>
- <pidsn/>
- <docuflag/>
- </gridpatbaseinfo>
- </patbaseinfo>
- <tdinfodetl>
- <tdinfo>
- <tdacptdd/>
- <tdacptno/>
- <perchrgnm/>
- <perchrgid/>
- <chrgjudgnm/>
- </tdinfo>
- <gridpifmtrds>
- <lnno/>
- <item/>
- <adjtcd/>
- <matractflag/>
- <grupcalcscorcd/>
- <snglcalcscorcd/>
- <edicd/>
- <hngnm/>
- <unitcost/>
- <clamdayqty/>
- <clamtotqty/>
- <adjtdayqty/>
- <adjttotqty/>
- <adjtamt/>
- <aprvdayqty/>
- <aprvtotqty/>
- <aprvamt/>
- <tddayqty/>
- <tdtotqty/>
- <trobamt/>
- <clamno/>
- <docuseqno/>
- <instcd/>
- <acptno/>
- <ediunitcost/>
- <docuflag/>
- <attdocu/>
- <attetc/>
- <answdocucnts/>
- <tdacptdd/>
- <tdacptno/>
- <chrgjudgnm/>
- <perchrgnm/>
- <perchrgid/>
- <insucmpymark/>
- <dg/>
- </gridpifmtrds>
- </tdinfodetl>
- </list01>
- <list02>
- <gridpifmtrds/>
- </list02>
- <list03>
- <attdocu/>
- <attetc/>
- <answdocucnts/>
- </list03>
- <result/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <gbvalue>
- <sumtrobamt/>
- </gbvalue>
- </hidden>
- <init>
- <P0028list>
- <P0028>
- <cdid/>
- <cdnm/>
- </P0028>
- </P0028list>
- <P0103list>
- <P0103>
- <cdid/>
- <cdnm/>
- </P0103>
- </P0103list>
- <U0001list>
- <U0001>
- <cd/>
- <nm/>
- </U0001>
- </U0001list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01"/>
- <submission id="TRPIF70602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send01" resultref="/root/main/list01/patbaseinfo"/>
- <submission id="TRPIF70603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send03" resultref="/root/main/list01/tdinfodetl"/>
- <submission id="TXPIF70601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/main/result"/>
- <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0028"), new Array( "/root/init/P0028list"));
- //손보사 ID및 NM을 조회한다.
- submit("TRPIF70305");
- // 공통코드 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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function Node_Init() {
- }
-
- // 공통코드 Load작업
- function CommCode_Load() {
- chkbox_attdocu.disabled = true;
-
- // 팝업오픈시 자동조회
- if(window.parent != null) {
-
- model.setValue("/root/send/send01/pid",model.getValue("/root/send/send03/pid"));
- model.setValue("/root/send/send01/patnm",model.getValue("/root/send/send03/patnm"));
- model.setValue("/root/send/send01/insucompnm",model.getValue("/root/send/send03/insuno"));
- model.setValue("/root/send/send01/fromdate",model.getValue("/root/send/send03/clamym"));
- model.setValue("/root/send/send01/todate",model.getValue("/root/send/send03/clamym"));
-
- if ( submit("TRPIF70601") ) {
- fCheckPreData();
- }
- var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/indd");
- var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/dschdd");
-
- var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno");
-
- if(indd != "" & dschdd != "") {
- var interm = getDateInterval(indd,dschdd)+1;
- model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm);
- }
-
- // 2010.03.09 체크된 행만 저장되게 변경
- // 분심접수번호가 없는것 = 분심등록된 데이터가 없다는 뜻.
- // if(tdacptno == "") {
- // for(var i=1;i<grd_pifmtrds.rows;i++) {
- // grd_pifmtrds.rowStatus(i) = "1"; // 행의 업데이트 상태를 입력(1)으로 세팅
- // }
- // } else {
- // for(var i=1;i<grd_pifmtrds.rows;i++) {
- // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
- // grd_pifmtrds.rowStatus(i) = "1";
- // }
- // }
- // }
-
- fCalcSumOfTrobamt();
-
- // 첨부자료 및 기타 첨부자료 Box 비활성 및 값 초기화
- chkbox_attdocu.value= "";
- txtbox_attetc.value= "";
- chkbox_attdocu.disabled=true;
- txtbox_attetc.disabled=true;
- }
- }
-
- //조정금액 합계를 구한다. 2010.02.02 다른 화면에서 함수 참조해서 붙여 넣음.
- function fCalcSumOfTrobamt(){
-
- var sumTrobamt = 0;
- var cnt = getNodesetCount("/root/main/list01/tdinfodetl/gridpifmtrds/lnno"); // 카운트를 왜 이렇게 새는지 모르겠다.
- var tmpTrobAmt = 0;
- for( var i = 1; i <= cnt; i++ ){
- tmpTrobAmt = model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds["+ i +"]/trobamt");
- if( tmpTrobAmt == "" ) {
- tmpTrobAmt = 0;
- }
- sumTrobamt = parseInt(sumTrobamt) + parseInt(tmpTrobAmt);
- }
-
- model.setValue("/root/hidden/gbvalue/sumtrobamt", sumTrobamt);
- otp_trobsum.refresh();
- }
-
- function fCheckPreData(){
- // 최초 조회시 이미 등록된 건은 선택박스 비활성화
- // 선택박스 체크시 입력상태로 바뀌고 분심이 자동 셋팅 된다.
- for(var i = 1; i < grd_pifmtrds.rows ; i++) {
- if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) != "") {
- grd_pifmtrds.isReadOnly(i, grd_pifmtrds.colRef("chkbox")) = true;
- }
- }
- grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tddayqty"), "data","background-color") = "#ffff00";
- grd_pifmtrds.colStyle(grd_pifmtrds.colRef("tdtotqty"), "data","background-color") = "#ffff00";
- grd_pifmtrds.colStyle(grd_pifmtrds.colRef("trobamt"), "data","background-color") = "#ffff00";
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:265px; height:14px; ">분심 및 답변서등록관리</caption>
- </group>
- <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line33" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
- <caption id="caption86" class="tit_2" style="left:6px; top:85px; width:147px; height:14px; ">환자기본정보</caption>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:605px; top:9px; width:86px; height:17px; ">손보사명 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/list01/tdinfodetl");
- if(submit("TRPIF70602")) {
- var rows = grd_patbaseinfo.rows;
- for(var i=1;i<rows;i++) {
- var indd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/indd");
- var dschdd = model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+i+"]/dschdd");
- var interm = getDateInterval(indd,dschdd);
- model.setValue("/root/main/list01/patbaseinfo/gridpatbaseinfo/interm", interm);
- }
- }
- chkbox_attdocu.value = "";
- chkbox_attdocu.disabled = true;
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption10" class="search_name" style="left:605px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption2" class="search_name" style="left:830px; top:9px; width:87px; height:17px; ">청구차수 :</caption>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">내원유형 :</caption>
- <caption id="caption7" class="search_name" style="left:15px; top:33px; width:112px; height:17px; ">종결구분 :</caption>
- <select1 id="combo5" ref="/root/send/send01/insucompnm" class="combo_search" appearance="minimal" style="left:694px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/U0001list/U0001">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" style="left:465px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="input5" ref="/root/send/send01/clamdg" class="input_search" style="left:920px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_fromdate" ref="/root/send/send01/fromdate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:375px; top:9px; width:85px; height:19px; "/>
- <input id="ipt_todate" ref="/root/send/send01/todate" class="input_search" inputtype="date" maxlength="6" format="yyyy-mm" style="left:480px; top:9px; width:85px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/send01/patnm" class="input_search" inputtype="button" style="left:694px; top:32px; width:100px; height:19px; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (ipt_pid.value) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid.value);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
- ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.refresh();
- ]]>
- </script>
- <input id="ipt_patnm" ref="/root/send/send01/pid" style="left:800px; top:32px; width:59px; height:19px; "/>
- <select id="chk401" ref="/root/send/send01/chk401" overflow="visible" appearance="full" style="left:918px; top:33px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>동의서 없음</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- </group>
- <select1 id="radio1" ref="/root/send/send01/ioflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:21px; width:143px; height:16px; font-weight:bold; 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>
- <select1 id="radio2" ref="/root/send/send01/endyn" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:102px; top:45px; width:153px; height:15px; font-weight:bold; 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="caption4" class="tit_2" style="left:6px; top:310px; width:79px; height:13px; ">분심내역</caption>
- <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1040px; top:248px; width:42px; height:19px; ">
- <caption>출력</caption>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:325px; x2:1194px; y2:325px; "/>
- <line id="line10" class="line_3" style="x1:0px; y1:298px; x2:1194px; y2:298px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:254px; width:80px; height:13px; ">분심정보</caption>
- <caption id="caption27" class="cell_1" style="left:0px; top:275px; width:85px; height:21px; vertical-align:middle; ">분심접수일자</caption>
- <caption id="caption16" class="cell_1" style="left:193px; top:275px; width:84px; height:21px; vertical-align:middle; ">분심접수번호</caption>
- <caption id="caption9" class="cell_1" style="left:385px; top:275px; width:48px; height:21px; vertical-align:middle; ">담당자</caption>
- <caption id="caption12" class="cell_1" style="left:541px; top:276px; width:72px; height:20px; vertical-align:middle; ">담당심사역</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:269px; x2:1194px; y2:269px; "/>
- <caption id="caption11" class="tit_2" style="left:6px; top:635px; width:147px; height:14px; ">답변서내용</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:650px; x2:800px; y2:650px; "/>
- <caption id="caption13" class="tit_2" style="left:811px; top:635px; width:152px; height:13px; ">첨부자료</caption>
- <line id="line5" class="line_1" style="x1:805px; y1:650px; x2:995px; y2:650px; "/>
- <button id="button13" class="btn2_letter2" style="left:1084px; top:248px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(ipt_tdacptdd.value == "") {
- messageBox("분심접수일자를","C001");
- model.setFocus("ipt_tdacptdd");
- return false;
- }
- if(ipt_tdacptno.value == "") {
- messageBox("분심접수번호를","C001");
- model.setFocus("ipt_tdacptno");
- return false;
- }
- if(ipt_perchrgnm.value == "") {
- messageBox("담당자를","C001");
- model.setFocus("ipt_perchrgnm");
- return false;
- }
- if(ipt_chrgjudgnm.value == "") {
- messageBox("담당심사역을","C001");
- model.setFocus("ipt_chrgjudgnm");
- return false;
- }
-
- for(var i=1;i<grd_pifmtrds.rows;i++) {
- if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" && grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
- var lnno = grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("lnno"));
- messageBox("줄번호 "+lnno+"의 분심일투를","C001");
- return false;
- }
- if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chkbox")) == "Y" ) {
- grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptdd")) = ipt_tdacptdd.value;
- grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tdacptno")) = ipt_tdacptno.value;
- grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("chrgjudgnm")) = ipt_chrgjudgnm.value;
- //grd_pifmtrds.valueMatrix(i,30) = ipt_perchrgid.value;
- }
- }
-
- model.setValue("/root/main/list02/gridpifmtrds", grd_pifmtrds.getUpdateData());
-
- // var nodeList = instance1.selectNodes("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']");
- // alert(model.getValue("/root/main/list01/tdinfodetl/gridpifmtrds[chkbox = 'Y']"));
- // var rCSV = getNodeListCSV(nodeList);
- //
- // model.destroy("/root/main/list02/gridpifmtrds");
- // model.makeNode("/root/main/list02/gridpifmtrds");
- //
- // setCSVToNode("/root/main/list02/gridpifmtrds", rCSV);
-
- submit("TXPIF70601"); // Insert 또는 Update
-
- model.resetInstanceNode("/root/main/list01");
-
- // 재조회
- if (submit("TRPIF70601") ) {
- fCheckPreData();
- }
-
- // 첨부자료 및 기타 첨부자료 Box 비활성 및 값 초기화
- chkbox_attdocu.value= "";
- txtbox_attetc.value= "";
- txtar_answdocucnts.value= "";
- chkbox_attdocu.disabled=true;
- txtbox_attetc.disabled=true;
- ]]>
- </script>
- </button>
- <button id="btn_newreg" class="btn2_letter6" visibility="hidden" style="left:897px; top:248px; width:86px; height:19px; ">
- <caption>신규삭감등록</caption>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" visibility="hidden" style="left:985px; top:248px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- </button>
- <input id="ipt_perchrgnm" ref="/root/main/list01/tdinfodetl/tdinfo/perchrgnm" class="input_search" disabled="true" style="left:437px; top:276px; width:100px; height:19px; "/>
- <input id="ipt_chrgjudgnm" ref="/root/main/list01/tdinfodetl/tdinfo/chrgjudgnm" class="input_s_essential" style="left:617px; top:276px; width:100px; height:19px; "/>
- <input id="ipt_tdacptdd" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:276px; width:100px; height:19px; "/>
- <input id="ipt_tdacptno" ref="/root/main/list01/tdinfodetl/tdinfo/tdacptno" class="input_s_essential" style="left:281px; top:276px; width:100px; height:19px; "/>
- <datagrid id="grd_pifmtrds" nodeset="/root/main/list01/tdinfodetl/gridpifmtrds" class="datagrid2" caption="^줄
번호^항목^조정
사유^구분^그룹코드^수가코드^EDI코드^처방명칭^단가^청구
일투^청구
총투^청구액^조정
일투^조정
총투^조정
금액^동의
일투^동의
총투^동의액^분심
일투^분심
총투^분쟁가액^caption1^caption2^caption3" colsep="^" colwidth="24, 32, 33, 36, 33, 78, 78, 75, 186, 57, 34, 34, 68, 34, 34, 66, 34, 34, 67, 34, 34, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="35" rowsep="|" style="left:0px; top:330px; width:1194px; height:290px; ">
- <col checkvalue="Y,N" ref="chkbox" type="checkbox"/>
- <col ref="lnno" style="text-align:center; "/>
- <col ref="item" style="text-align:center; "/>
- <col ref="adjtcd" style="text-align:center; "/>
- <col ref="matractflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>재료</label>
- <value>1</value>
- </item>
- <item>
- <label>행위</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="grupcalcscorcd"/>
- <col ref="snglcalcscorcd"/>
- <col ref="edicd"/>
- <col ref="hngnm"/>
- <col ref="unitcost" format="#,###" style="text-align:right; "/>
- <col ref="clamdayqty" style="text-align:center; "/>
- <col ref="clamtotqty" style="text-align:center; "/>
- <col ref="clamamt" format="#,###" style="text-align:right; "/>
- <col ref="adjtdayqty" style="text-align:center; "/>
- <col ref="adjttotqty" style="text-align:center; "/>
- <col ref="adjtamt" 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="tddayqty" type="input" style="text-align:center; "/>
- <col ref="tdtotqty" type="input" style="text-align:center; "/>
- <col ref="trobamt" type="input" 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="ediunitcost" visibility="hidden"/>
- <col ref="docuflag" visibility="hidden"/>
- <col ref="attdocu" visibility="hidden"/>
- <col ref="attetc" visibility="hidden"/>
- <col ref="answdocucnts" visibility="hidden"/>
- <col ref="tdacptdd" visibility="hidden"/>
- <col ref="tdacptno" visibility="hidden"/>
- <col ref="chrgjudgnm" visibility="hidden"/>
- <col ref="perchrgnm" visibility="hidden"/>
- <col ref="perchrgid" visibility="hidden"/>
- <col ref="insucmpymark" visibility="hidden"/>
- <col ref="dg" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // onrowchanged - 그리드 로우를 클릭하면 하단 답변서 내용, 첨부자료, 기타 첨부자료 TEXT 값을 셋팅하기 위한 이벤트
- chkbox_attdocu.disabled = false;
- var row_cnt = grd_pifmtrds.row;
- if(row_cnt <= 0) { return false; }
-
- chkbox_attdocu.value = "";
- model.setValue("/root/main/list03/attdocu", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attdocu")));
- model.setValue("/root/main/list03/attetc", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("attetc")));
- model.setValue("/root/main/list03/answdocucnts", grd_pifmtrds.valueMatrix(row_cnt, grd_pifmtrds.colRef("answdocucnts")));
-
- var attdocu = chkbox_attdocu.value;
- var size = attdocu.length;
- var cnt = 0;
-
- for(var i=0;i<=size;i++) {
- var temp = attdocu.substring(i,i+1);
- if(temp == "0") {
- cnt++;
- }
- }
-
- if(cnt > 0) {
- txtbox_attetc.disabled = false;
- } else {
- txtbox_attetc.disabled = true;
- }
-
- chkbox_attdocu.refresh();
- txtar_answdocucnts.refresh();
- txtbox_attetc.refresh();
-
- // model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[// onrowchanged 에서 이벤트가 발생 안 하길레 새로 이벤트 추가
- if ( grd_pifmtrds.col == grd_pifmtrds.colRef("chkbox") ) {
- if ( grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("chkbox")) == "Y" ) {
- grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 3;
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtdayqty"));
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjttotqty"));
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("adjtamt"));
- } else {
- grd_pifmtrds.rowStatus(grd_pifmtrds.row) = 0;
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tddayqty")) = "";
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("tdtotqty")) = "";
- grd_pifmtrds.valueMatrix(grd_pifmtrds.row, grd_pifmtrds.colRef("trobamt")) = "";
- }
- }
-
- fCalcSumOfTrobamt();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 2010.04.19 기능 추가
- if(event.keyCode == "13") {
-
- var cur_col = grd_pifmtrds.col; // col을 미리 저장해 두지 않으면 if문 타고 내려가면서 현재 col로 바껴서 삐꾸 납니다.
-
- model.setFocus("body");
- model.setFocus("grd_pifmtrds");
-
- if ( cur_col == grd_pifmtrds.colRef("tddayqty") ) {
- grd_pifmtrds.col = grd_pifmtrds.colRef("tdtotqty");
- grd_pifmtrds.dispatch("onentercell");
- grd_pifmtrds.editCell();
- }
- if ( cur_col == grd_pifmtrds.colRef("tdtotqty") ) {
- grd_pifmtrds.col = grd_pifmtrds.colRef("trobamt");
- grd_pifmtrds.dispatch("onentercell");
- grd_pifmtrds.editCell();
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_termflag" ref="/root/send/send01/termflag" class="radio_search" appearance="full" cols="1" rows="3" overflow="visible" style="left:295px; top:14px; width:75px; height:48px; font-weight:bold; 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-select">
- <![CDATA[
- if(rdo_termflag.value == "3") {
- ipt_fromdate.attribute("format") = "yyyy-mm-dd";
- ipt_todate.attribute("format") = "yyyy-mm-dd";
- ipt_todate.attribute("maxlength") = 8;
- model.refresh();
- }
- if(rdo_termflag.value == "1" || rdo_termflag.value == "2") {
- ipt_fromdate.attribute("format") = "yyyy-mm";
- ipt_todate.attribute("format") = "yyyy-mm";
- ipt_todate.attribute("maxlength") = 6;
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <datagrid id="grd_patbaseinfo" nodeset="/root/main/list01/patbaseinfo/gridpatbaseinfo" class="datagrid" caption="손보사^청구월^내원유형^등록번호^수진자명^진료과^입원일^퇴원일^재원기간^사고접수번호" colsep="^" colwidth="120, 110, 110, 110, 110, 110, 110, 110, 110, 122" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:105px; width:1194px; height:135px; ">
- <col ref="insucdnm" 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 ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="orddeptnm" 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="interm" style="text-align:center; "/>
- <col ref="acdacptno" style="text-align:center; "/>
- <col ref="clamno" visibility="hidden"/>
- <col ref="docuseqno" visibility="hidden"/>
- <col ref="clamdg" visibility="hidden"/>
- <col ref="pidsn" visibility="hidden"/>
- <col ref="docuflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if( grd_patbaseinfo.isCell(event.target) && grd_patbaseinfo.row >= grd_patbaseinfo.fixedRows ){
-
- model.removenode("/root/main/list01/tdinfodetl");
- var row = grd_patbaseinfo.row;
- if(row < 1) return false; // 환자기본정보 그리드에 조회결과가 하나도 없을시 바로 리턴.
-
- model.setValue("/root/send/send03/clamno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamno"));
- model.setValue("/root/send/send03/docuseqno", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuseqno"));
- model.setValue("/root/send/send03/docuflag", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/docuflag"));
- model.setValue("/root/send/send03/clamym", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamym"));
- model.setValue("/root/send/send03/clamdg", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/clamdg"));
- model.setValue("/root/send/send03/pid", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pid"));
- model.setValue("/root/send/send03/pidsn", model.getValue("/root/main/list01/patbaseinfo/gridpatbaseinfo["+row+"]/pidsn"));
- model.setValue("/root/send/send03/chk401", model.getValue("/root/send/send01/chk401"));
-
- if ( submit("TRPIF70603") ) {
- fCheckPreData();
- }
-
- var tdacptno = model.getValue("root/main/list01/tdinfodetl/tdinfo/tdacptno");
-
- // 2010.03.09 체크된 행만 저장되게 변경
- // 분심접수번호가 없는것 = 분심등록된 데이터가 없다는 뜻.
- // if(tdacptno == "") {
- // for(var i=1;i<grd_pifmtrds.rows;i++) {
- // grd_pifmtrds.rowStatus(i) = "1"; // 행의 업데이트 상태를 입력(1)으로 세팅
- // }
- // } else {
- // for(var i=1;i<grd_pifmtrds.rows;i++) {
- // if(grd_pifmtrds.valueMatrix(i, grd_pifmtrds.colRef("tddayqty")) == "") {
- // grd_pifmtrds.rowStatus(i) = "1";
- // }
- // }
- // }
- chkbox_attdocu.value = "";
- chkbox_attdocu.disabled = true;
- }
- ]]>
- </script>
- </datagrid>
- <select id="chkbox_attdocu" ref="/root/main/list03/attdocu" overflow="visible" appearance="full" cols="2" rows="5" style="left:805px; top:655px; width:190px; height:86px; 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>
- <item>
- <label>간호기록지</label>
- <value>4</value>
- </item>
- <item>
- <label>의사명령지</label>
- <value>5</value>
- </item>
- <item>
- <label>검사결과지</label>
- <value>6</value>
- </item>
- <item>
- <label>수술기록지</label>
- <value>7</value>
- </item>
- <item>
- <label>방사선결과지</label>
- <value>8</value>
- </item>
- <item>
- <label>마취기록지</label>
- <value>9</value>
- </item>
- <item>
- <label>기타</label>
- <value>0</value>
- </item>
- </choices>
- <!-- 첨부자료 체크해제시-->
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- var attdocu = chkbox_attdocu.value;
- var size = attdocu.length;
- var cnt = 0;
- var row = grd_pifmtrds.row;
-
- for(var i=0;i<=size;i++) {
- var temp = attdocu.substring(i,i+1);
- if(temp == "0") {
- cnt++;
- }
- }
-
- if(cnt > 0) {
- if(txtbox_attetc.value == "") {
- messageBox("기타 첨부자료를 수기","C001");
- txtbox_attetc.disabled = false;
- model.setFocus("txtbox_attetc");
- }
- } else {
- txtbox_attetc.value = "";
- txtbox_attetc.disabled = false;
- }
-
- model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attdocu",chkbox_attdocu.value); // 첨부자료 인스턴스에 변경된 값 저장
- model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/attetc",txtbox_attetc.value); // 첨부자료 인스턴스에 변경된 값 저장
- if(grd_pifmtrds.rowStatus(row) == "0") {
- grd_pifmtrds.rowStatus(row) = "2";
- }
- ]]>
- </script>
- <!-- 첨부자료 체크시-->
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var attdocu = chkbox_attdocu.value;
- var row_cnt = grd_pifmtrds.row;
-
- if(grd_pifmtrds.rowStatus(row_cnt) == "0") {
- grd_pifmtrds.rowStatus(row_cnt) = "2";
- }
-
- model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attdocu",attdocu);
-
- var attdocu = chkbox_attdocu.value;
- var size = attdocu.length;
- var cnt = 0;
-
- for(var i=0;i<size;i++) {
- var temp = attdocu.substring(i,i+1);
- if(temp == "0") {
- cnt++;
- }
- }
-
- if(cnt > 0) {
- if(txtbox_attetc.value == "") {
- messageBox("기타 첨부자료를 수기","C001");
- txtbox_attetc.disabled = false;
- model.setFocus("txtbox_attetc");
- }
- }
- /*
- if(attdocu.substring(attdocu.length-1,attdocu.length)== "0") {
- if(txtbox_attetc.value == "") {
- messageBox("기타 첨부자료를 수기","C001");
- txtbox_attetc.disabled = false;
- model.setFocus("txtbox_attetc");
- }
- }
- */
- ]]>
- </script>
- </select>
- <textarea id="txtbox_attetc" ref="/root/main/list03/attetc" disabled="true" style="left:1000px; top:655px; width:193px; height:86px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row_cnt = grd_pifmtrds.row;
- model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row_cnt+"]/attetc",txtbox_attetc.value);
- ]]>
- </script>
- </textarea>
- <caption id="caption14" class="tit_2" style="left:1004px; top:635px; width:147px; height:13px; ">기타 첨부자료 TEXT</caption>
- <line id="line6" class="line_1" style="x1:1000px; y1:650px; x2:1193px; y2:650px; "/>
- <textarea id="txtar_answdocucnts" ref="/root/main/list03/answdocucnts" style="left:0px; top:655px; width:800px; height:86px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_pifmtrds.row;
- if(row > 0) {
- if(grd_pifmtrds.rowStatus(row) == "0") {
- grd_pifmtrds.rowStatus(row) = "2";
- }
- model.setValue("/root/main/list01/tdinfodetl/gridpifmtrds["+row+"]/answdocucnts",txtar_answdocucnts.value);
- }
- ]]>
- </script>
- </textarea>
- <button id="button3" class="btn2_letter4" style="left:1128px; top:248px; 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, "분심및답변서등록관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_pifmtrds.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
- ]]>
- </script>
- </button>
- <caption id="caption15" style="left:940px; top:305px; width:100px; height:20px; font-weight:bold; ">분쟁가액 합계 :</caption>
- <caption id="caption17" style="left:1145px; top:305px; width:20px; height:20px; font-weight:bold; ">원</caption>
- <output id="otp_trobsum" ref="/root/hidden/gbvalue/sumtrobamt" format="(-)#,###" style="left:1040px; top:305px; width:100px; height:19px; font-weight:bold; text-align:right; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button45" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|