123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <pid/>
- </data1>
- <data2>
- <grd_pdtt/>
- <s_pdtt>
- <pid/>
- </s_pdtt>
- </data2>
- </send>
- <main>
- <ptbs>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_sex/>
- <ptbs_age/>
- </ptbs>
- <pdttlist>
- <grdpatdetlinfo/>
- </pdttlist>
- </main>
- <hidden>
- <temp/>
- </hidden>
- <init>
- <P0016list>
- <P0016>
- <cdnm/>
- <cdid/>
- </P0016>
- </P0016list>
- </init>
- </root>
- </instance>
- <submission id="TRPMI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main"/>
- <script ev:event="xforms-ready" type="javascript">
- <![CDATA[
-
- zbcfGetCodeList(new Array("P0016"),new Array("/root/init/P0016list"));
-
- fPatTelInfoRef();
- model.refresh();
- ]]>
- </script>
- <submission id="TXPMI02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
- <script src="../../../com/zipcodeweb/js/ZBP001.js" type="javascript"/>
- <script type="javascript">
- <![CDATA[
- function fPatTelInfoRef()
- {
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/send/data1/pid"));
-
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
- messageBox("환자번호가","I004");
- return false;
- } else {
- if (submit("TRPMI02401")) {
- }
- }
- }
- function fSetGridNextCell(keyCode)
- {
- // 현재 event Target이 combo일 경우 처리
- model.setFocus("body");
- model.setFocus("grd_list");
-
- if( keyCode == null) {
- var grdCol = grd_patinfolist.col +1;
- grd_patinfolist.col = grdCol;
- grd_patinfolist.dispatch("onentercell");
- grd_patinfolist.editCell();
- }
-
- if( event.keyCode == keyCode ) {
- var grdCol = grd_patinfolist.col +1;
- grd_patinfolist.col = grdCol;
- grd_patinfolist.dispatch("onentercell");
- grd_patinfolist.editCell();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="597" pageheight="290" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:581px; height:290px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:161px; height:14px; ">환자상세정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:581px; y2:25px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:52px; x2:581px; y2:52px; "/>
- <group id="group1" style="left:0px; top:263px; width:581px; height:27px; ">
- <button id="button1" class="btn4_letter2" style="left:466px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var cur_row = grd_patinfolist.row;
-
- if (cur_row > 0) {
- // (tfHelper.js) 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환
- var updtdata = getGridUpdateData(grd_patinfolist);
- model.setValue("/root/send/data2/grd_pdtt",updtdata);
- var updchk = model.getValue("/root/send/data2/grd_pdtt");
- // alert(updchk);
-
- if (updchk == null || updchk == "" || updchk == " ") {
- messageBox("변경사항이","I004");
- return false;
- } else {
- model.setValue("/root/send/data2/s_pdtt/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data2/grd_pdtt",grd_patinfolist.getUpdateData());
- submit("TXPMI02401");
- fPatTelInfoRef();
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:525px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_6" style="x1:0px; y1:0px; x2:581px; y2:0px; "/>
- </group>
- <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption2" class="cell_1" style="left:203px; top:30px; width:94px; height:23px; vertical-align:middle; ">환자성명</caption>
- <caption id="caption3" class="cell_1" style="left:415px; top:30px; width:74px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <button id="button3" class="btn2_letter3" style="left:416px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- grd_patinfolist.addItem();
- //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
- grd_patinfolist.selectionMode = "free";
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:472px; top:5px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var cur_row = grd_patinfolist.row;
- grd_patinfolist.insertItem(cur_row,"after");
- grd_patinfolist.selectionMode = "free";
- ]]>
- </script>
- </button>
- <datagrid id="grd_patinfolist" nodeset="/root/main/pdttlist/grdpatdetlinfo" caption="관계^전화번호^특기사항^순서" colsep="^" colwidth="78, 104, 375, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:57px; width:581px; height:206px; ">
- <col ref="patrela" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0016list/P0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="tel" type="input"/>
- <col ref="etcremfact" type="input"/>
- <col ref="seqno" visibility="hidden"/>
- <script ev:event="xforms-select" type="javascript">
- <![CDATA[
- fSetGridNextCell();
- ]]>
- </script>
- <script ev:event="onendedit" type="javascript">
- <![CDATA[
- fSetGridNextCell(13);
- ]]>
- </script>
- </datagrid>
- <output id="output1" ref="/root/main/ptbs/ptbs_hngnm" class="output_fix" style="left:300px; top:31px; width:112px; height:19px; "/>
- <output id="output2" ref="/root/main/ptbs/ptbs_sex" class="output_fix" style="left:492px; top:31px; width:43px; height:19px; "/>
- <output id="output3" ref="/root/main/ptbs/ptbs_age" class="output_fix" style="left:538px; top:31px; width:43px; height:19px; "/>
- <output id="output4" ref="/root/main/ptbs/ptbs_pid" class="output_fix" style="left:88px; top:31px; width:112px; height:19px; "/>
- </group>
- <button id="button4" class="btn2_letter3" style="left:528px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
- var cur_row = grd_patinfolist.row;
- grd_patinfolist.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|