123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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="">
- <main>
- <result/>
- <serdiagspec>
- <serdiagspeclist/>
- </serdiagspec>
- </main>
- <send>
- <pid/>
- <insuflag/>
- <suppkind/>
- <fromdd/>
- <instcd/>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0317list>
- <P0317>
- <cdnm/>
- <cdid/>
- </P0317>
- </P0317list>
- <P0016list>
- <P0016>
- <cdnm/>
- <cdid/>
- </P0016>
- </P0016list>
- <P0315list>
- <P0315>
- <cdnm/>
- <cdid/>
- </P0315>
- </P0315list>
- </init>
- <hidden>
- <tmp/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/serdiagspec"/>
- <submission id="TXPMC01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden/tmp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("P0317", "P0016", "P0315"), new Array("/root/init/P0317list", "/root/init/P0016list", "/root/init/P0315list") );
-
- //2007.7.23 - 이동식 추가
- //다른곳에서 화면 호출 조회
- var pid = model.getValue("/root/source/pid");
- if( pid != ""){
- ipt_pid.currentText = pid;
- fSearchPatInfo();
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //중증도 내역 검색
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if( pid.length <= 0 ){
- messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- model.setValue("/root/send/pid", pid);
- submit("TRPMC01201");
-
- var rowCnt = grd_serDiag.rows - grd_serDiag.fixedRows + 1;
- if(rowCnt < 2){
- fAddRow();
- }
-
- }
-
- }
-
- //중증도내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
- function fAddRow(){
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if( pid.length >= 0 ){
- grd_serDiag.addRow();
- var bottom = grd_serDiag.bottomRow;
- model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/pid" , pid);
- var curDate = getCurrentDate();
- model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/fromdd", curDate);
- model.setValue("/root/main/serdiagspec/serdiagspeclist[" + bottom + "]/todd", getDateTime( curDate.toDate().getAddDate(5, "Y"), "D"));
- return true;
- }else{
- messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:5px; top:0px; width:189px; height:13px; ">중증도환자관리</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:197px; width:1195px; height:538px; ">
- <caption id="caption46" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">중증도내역 리스트</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_addRow" class="btn2_letter3" style="left:996px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_delRow" class="btn5_letter3" style="left:1052px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("선택된 행의 중증도내역을", "Q001") != 6) return;
-
- var cur_row = grd_serDiag.row;
- if( cur_row > 0 ){
- //디비에 저장되지 않은 데이타는 그냥 삭제한다.
- if (grd_serDiag.rowStatus(cur_row) == "1" || grd_serDiag.rowStatus(cur_row) == "3" ){
- grd_serDiag.deleteItem(cur_row);
- //grd_serDiag.rebuild();
- return;
- }
-
- grd_serDiag.addStatus( cur_row, "delete");
- model.setValue("/root/send/updatedata/datalist", grd_serDiag.getUpdateData("delete"));
-
- if ( submit("TXPMC01202") ) {
- grd_serDiag.deleteItem( cur_row );
- //grd_serDiag.rebuild();
- }else grd_serDiag.removeStatus( cur_row, "delete");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter6" style="left:1108px; top:4px; width:86px; height:19px; ">
- <caption>중증내역저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata/datalist",grd_serDiag.getUpdateData());
-
- if ( submit("TXPMC01202") ) {
- //grd_serDiag.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.copyNode("/root/main/serdiagspec", "/root/hidden/tmp");
- grd_serDiag.rebuild();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_serDiag" nodeset="/root/main/serdiagspec/serdiagspeclist" autoresize="true" caption="보험구분^보조유형^시작일자^종료일자^중증등록번호^신청자명^관계^참고사항^접수일자^접수시간^접수자ID^최종수정자ID^최종수정일시^환자등록번호^최초등록자ID^최초등록일시^일련번호" colsep="^" colwidth="80, 84, 84, 84, 100, 65, 60, 120, 84, 84, 80, 80, 120, 85, 85, 100, 67" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="byrowrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:30px; width:1194px; height:508px; ">
- <col disabled="true" ref="insuflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0315list/P0315">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0317list/P0317">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate"/>
- <col disabled="true" ref="todd" type="inputdate"/>
- <col ref="seridiagno" type="input"/>
- <col ref="apppsnnm" type="input"/>
- <col ref="rela" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0016list/P0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="remfact" type="input"/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="acpttm" format="hh:nn:ss"/>
- <col ref="acptid"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var cur_row = grd_serDiag.row;
- if(cur_row > 0 ){
- if( grd_serDiag.valueMatrix( cur_row, 7 ) == '1' ){
-
- grd_serDiag.valueMatrix( cur_row, 6 ) = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- }
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:0px; width:1195px; height:197px; "/>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_copyRow0" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/serdiagspec/serdiagspeclist");
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
-
- model.setFocus("ipt_pid");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <line id="line20" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|