123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <?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="">
- <main>
- <spcfpat>
- <spcfpatlist/>
- </spcfpat>
- <result/>
- </main>
- <send>
- <pid/>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0314list>
- <P0314>
- <cdnm/>
- <cdid/>
- </P0314>
- </P0314list>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0314"),
- new Array("/root/init/P0314list"));
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
-
- //2008-09-04 LEEDS
- //원목팀에서 화면을 호출할경우 조회만 가능하도록 저장/삭제 버튼 비활성화
- var parm = getScreenMenuParameter();
- if( parm == '4050400000' ){
- button8.visible = false;
- button14.visible = false;
- button4.visible = false;
- }
-
- // //다른곳에서 화면 호출 조회
- // var pid = model.getValue("/root/source/pid");
- // if( pid != ""){
- // ipt_pid.currentText = pid;
- // fSearchPatInfo();
- // }
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC01300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/spcfpat"/>
- <submission id="TXPMC01300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/spcfpat"/>
- </model>
- <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/dateHelper.js"/>
- <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 < 1 ){
- messageBox("환자번호가 정확히 입력되지", "E007");
- return false;
- }
- model.setValue("/root/send/pid", pid);
- submit("TRPMC01300");
-
- datagrid2.rebuildStyle();
-
- // 메르스 환자 배경표시
- for(var i = 0 ; i < datagrid2.rows ; i++) {
- if(datagrid2.valueMatrix(i, datagrid2.colRef("workflag")) == "2") {
- datagrid2.rowStyle(i,"data","background-color") = "#ff00ff"; //빨강
- }
- }
-
- var rowCnt = datagrid2.rows - datagrid2.fixedRows + 1;
- if(rowCnt < 2){
- fAddRow();
- }
- }else model.refresh();
-
- }
-
- //특이내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
- function fAddRow(){
-
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if( pid.length >= 1 ){
- datagrid2.addRow();
- var bottom = datagrid2.bottomRow;
- model.setValue("/root/main/spcfpat/spcfpatlist[" + bottom + "]/pid" , pid);
- var curDate = getCurrentDate();
- model.setValue("/root/main/spcfpat/spcfpatlist[" + bottom + "]/fromdd", curDate);
- model.setValue("/root/main/spcfpat/spcfpatlist[" + bottom + "]/todd", "99991231");
-
-
- return true;
- }else{
- messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- }
-
- function fInitialize() {
- //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/spcfpat/spcfpatlist");
-
- //날자 입력 항목에 오늘 날자 세팅
- //var curDate = getCurrentDate();
- //model.setValue("/root/send/fromdd", curDate);
- //model.setValue("/root/send/todd", curDate);
- //odel.setFocus("cmb_insukind");
-
- model.refresh();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width: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; ">
- <line id="line5" class="line_2" style="x1:0px; y1:200px; x2:1194px; y2:200px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:95px; height:13px; ">전표등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:76px; width:100px; height:23px; vertical-align:middle; ">약품코드</caption>
- <caption id="caption8" class="cell_1" style="left:428px; top:76px; width:100px; height:23px; vertical-align:middle; ">전표종류</caption>
- <button id="button12" class="btn2_letter4" style="left:1085px; top:50px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- </button>
- <button id="button13" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- </button>
- <select1 id="radio1" appearance="full" overflow="visible" style="left:103px; top:79px; width:44px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>대체</label>
- <value>radio1</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" appearance="full" overflow="visible" style="left:203px; top:79px; width:44px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>입금</label>
- <value>radio1</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio3" appearance="full" overflow="visible" style="left:303px; top:79px; width:44px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>출금</label>
- <value>radio1</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" class="combo_default" appearance="minimal" style="left:531px; top:77px; width:322px; height:19px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:100px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
- <caption id="caption5" class="cell_1" style="left:428px; top:100px; width:100px; height:23px; vertical-align:middle; ">작성자</caption>
- <input id="input1" class="input_essential" style="left:103px; top:101px; width:100px; height:19px; "/>
- <button id="button2" class="icon_search" style="left:206px; top:102px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="input2" class="input_default" appearance="input" style="left:225px; top:101px; width:200px; height:19px; "/>
- <button id="button3" class="icon_search" style="left:634px; top:102px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="input3" class="input_essential" style="left:531px; top:101px; width:100px; height:19px; "/>
- <input id="input4" class="input_default" appearance="input" style="left:653px; top:101px; width:200px; height:19px; "/>
- <select1 id="radio4" appearance="full" overflow="visible" style="left:103px; top:127px; width:44px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>차변</label>
- <value>radio1</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio5" appearance="full" overflow="visible" style="left:203px; top:127px; width:44px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>대변</label>
- <value>radio1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:0px; top:124px; width:100px; height:23px; vertical-align:middle; ">차대구분</caption>
- <caption id="caption10" class="cell_1" style="left:428px; top:124px; width:100px; height:23px; vertical-align:middle; ">계정코드</caption>
- <button id="button6" class="icon_search" style="left:634px; top:126px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="input5" class="input_essential" style="left:531px; top:125px; width:100px; height:19px; "/>
- <input id="input6" class="input_default" appearance="input" style="left:653px; top:125px; width:200px; height:19px; "/>
- <button id="button7" class="icon_search" style="left:408px; top:150px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="caption11" class="cell_1" style="left:0px; top:148px; width:100px; height:23px; vertical-align:middle; ">상대처구분</caption>
- <input id="input7" class="input_essential" style="left:256px; top:149px; width:149px; height:19px; "/>
- <input id="input8" class="input_default" appearance="input" style="left:427px; top:149px; width:426px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:856px; top:124px; width:100px; height:23px; vertical-align:middle; "/>
- <caption id="caption13" class="cell_1" style="left:856px; top:100px; width:100px; height:23px; vertical-align:middle; "/>
- <caption id="caption14" class="cell_1" style="left:856px; top:76px; width:100px; height:23px; vertical-align:middle; ">금액</caption>
- <input id="input9" class="input_default" appearance="input" style="left:959px; top:101px; width:235px; height:19px; "/>
- <input id="input10" class="input_default" appearance="input" style="left:959px; top:77px; width:235px; height:19px; "/>
- <input id="input11" class="input_default" appearance="input" style="left:959px; top:125px; width:235px; height:19px; "/>
- <select1 id="combo2" class="combo_essential" appearance="minimal" style="left:103px; top:149px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:856px; top:148px; width:100px; height:23px; vertical-align:middle; "/>
- <input id="input12" class="input_default" appearance="input" style="left:103px; top:173px; width:321px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:0px; top:172px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
- <caption id="caption17" class="cell_1" style="left:856px; top:172px; width:100px; height:23px; vertical-align:middle; ">증빙구분</caption>
- <input id="input13" class="input_default" appearance="input" style="left:959px; top:149px; width:235px; height:19px; "/>
- <button id="button15" class="icon_search" style="left:634px; top:174px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="caption18" class="cell_1" style="left:428px; top:172px; width:100px; height:23px; vertical-align:middle; ">계좌번호</caption>
- <input id="input15" class="input_default" style="left:531px; top:173px; width:100px; height:19px; "/>
- <input id="input16" class="input_default" appearance="input" style="left:653px; top:173px; width:200px; height:19px; "/>
- <caption id="caption19" class="cell_1" style="left:0px; top:196px; width:100px; height:47px; vertical-align:middle; ">기재사항</caption>
- <textarea id="textarea1" style="left:103px; top:197px; width:750px; height:43px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:254px; width:100px; height:13px; ">전표 등록내역</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:269px; x2:1194px; y2:269px; "/>
- <input id="output3" class="input_default" inputtype="date" appearance="input" style="left:959px; top:221px; width:235px; height:19px; "/>
- <datagrid id="datagrid1" caption="연번^계정명^상대처^기재사항1^기재사항2^기재사항3^기재사항4^적요^증빙^차변금액^대변금액" colsep="^" colwidth="48, 100, 100, 100, 100, 100, 100, 100, 100, 100, 154" dataheight="25" defaultrows="17" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:274px; width:1194px; height:425px; ">
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- </datagrid>
- <select1 id="combo3" class="combo_default" appearance="minimal" style="left:959px; top:173px; width:235px; height:19px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- <input id="input14" class="input_default" appearance="input" style="left:958px; top:705px; width:116px; height:19px; "/>
- <caption id="caption24" class="cell_1" style="left:855px; top:704px; width:100px; height:23px; vertical-align:middle; ">금액합계</caption>
- <line id="line9" class="line_3" style="x1:855px; y1:726px; x2:1194px; y2:726px; "/>
- <line id="line10" class="line_3" style="x1:855px; y1:702px; x2:1194px; y2:702px; "/>
- <output id="input17" class="output_fix" appearance="output" style="left:1077px; top:705px; width:117px; height:19px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:702px; width:305px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
- <caption id="caption25" class="cell_2" style="left:5px; top:707px; width:70px; height:20px; vertical-align:middle; ">범 례</caption>
- <caption id="caption26" class="color_1" style="left:95px; top:709px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="caption27" style="left:113px; top:710px; width:50px; height:14px; vertical-align:middle; ">차대구분</caption>
- <caption id="caption30" class="color_3" style="left:180px; top:708px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="caption31" style="left:198px; top:709px; width:26px; height:14px; vertical-align:middle; ">차변</caption>
- <caption id="caption32" class="color_4" style="left:245px; top:708px; width:15px; height:15px; vertical-align:middle; "/>
- <caption id="caption33" style="left:263px; top:709px; width:26px; height:14px; vertical-align:middle; ">대변</caption>
- <line id="line11" class="line_2" style="x1:856px; y1:224px; x2:1194px; y2:224px; "/>
- <caption id="caption29" class="cell_1" style="left:856px; top:220px; width:100px; height:23px; vertical-align:middle; ">전표승인일자</caption>
- <line id="line7" class="line_3" style="x1:0px; y1:242px; x2:1194px; y2:242px; "/>
- <caption id="caption28" class="cell_1" style="left:856px; top:196px; width:100px; height:23px; vertical-align:middle; ">승인정보</caption>
- <output id="output4" class="output_fix" style="left:959px; top:197px; width:235px; height:19px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:197px; width:1195px; height:544px; ">
- <!-- 수정이력 20100325 JHP 홍옥현 선생님 요청 특이내역 크게 보여주세요. 뒤에 날짜는 작게해주세요 -->
- <datagrid id="datagrid2" nodeset="/root/main/spcfpat/spcfpatlist" autoresize="true" caption="구분^공개구분^시작일자^종료[완료]일자^종결(완료)사유^특이내역^진료(Y/N)^최초등록자^최초등록일자^최종수정자^최종수정일시^seqno^환자번호" colsep="^" colwidth="60, 70, 86, 90, 119, 708, 64, 80, 105, 80, 103, 43, 30" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:33px; width:1194px; height:508px; ">
- <col ref="workflag" 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="opengrde" type="combo" maxlength="1" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0314list/P0314">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate" style="text-align:center; "/>
- <col ref="todd" type="inputdate" style="text-align:center; "/>
- <col imemode="hangul" ref="endresn" type="input"/>
- <col imemode="hangul" ref="acptresn" type="input"/>
- <col imemode="disabled" ref="ordpossyn" type="combo" maxlength="1" _chartype="upper" style="text-align:center; ">
- <choices>
- <item>
- <label>진료가능</label>
- <value>Y</value>
- </item>
- <item>
- <label>진료불가</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="fstrgstrid" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- </datagrid>
- <caption id="caption46" class="tit_2" style="left:5px; top:12px; width:139px; height:13px; ">환자특이내역 리스트</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:169px; top:9px; width:17px; height:17px; background-color:#ff00ff; border-color:#ffffff; "/>
- <caption id="caption2" style="left:187px; top:9px; width:326px; height:20px; ">※ 메르스 접촉자입니다.</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:28px; x2:1194px; y2:28px; "/>
- <button id="button8" class="btn2_letter3" style="left:1029px; top:8px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="button14" class="btn2_letter3" style="left:1085px; top:8px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("선택된 행의 특이환자 내역를", "Q001") != 6) return;
-
- var cur_row = datagrid2.row;
- if( cur_row > 0 ){
- //디비에 저장되지 않은 데이타는 그냥 삭제한다.
- if (datagrid2.rowStatus(cur_row) == "1" || datagrid2.rowStatus(cur_row) == "3" ){
- datagrid2.deleteItem(cur_row);
- model.refresh();
- return;
- }
-
- datagrid2.addStatus( cur_row, "delete");
- model.setValue("/root/send/updatedata/datalist", datagrid2.getUpdateData("delete"));
-
- if ( submit("TXPMC01300") ) {
- //grd_serDiag.deleteItem( cur_row );
- }else datagrid2.removeStatus( cur_row, "delete");
-
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter3" style="left:1141px; top:8px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata/datalist",datagrid2.getUpdateData());
- if(model.getValue("/root/main/patinfo/patinfolist/pid") == ''){
- messageBox("환자번호를 ", "C001");
- return ;
- }else if(model.getValue("/root/main/spcfpat/spcfpatlist/opengrde") == ''){
- messageBox("특이구분을 ", "C001");
- return;
- }
-
- if ( submit("TXPMC01300") ) {
- datagrid2.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </group>
- <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:0px; width:1195px; height:197px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //function fInitialize() {
- //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/desc");
- model.resetInstanceNode("/root/main/patinfo");
- model.resetInstanceNode("/root/main/spcfpat/spcfpatlist");
- // model.setFocus("ipt_pid");
- model.refresh();
- //}
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|