123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLC90200_환자특이사항등록.xrw
- * 설 명 : 환자특이사항 관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.05.01
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <getpatspcflist>
- <chk/>
- <spcfcntsregdt/>
- <spcfcnts/>
- <diagtestuseyn/>
- <pid/>
- </getpatspcflist>
- </main>
- <send>
- <getpatspcflist/>
- </send>
- <init>
- </init>
- <hidden>
- <choi/>
- <RsltRegDT/>
- <spcfcnts/>
- <diagtestuseyn>1</diagtestuseyn>
- <pid/>
- <default/>
- <use/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- grd_patspcflist.removeItem();
- model.makeValue("/root/send/pid" , model.getvalue("/root/hidden/pid"));
- submit("TRLLC90201");
- model.removeNodeset("/root/send/pid");
-
-
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <submission id="TXLLC90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLLC90202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLLC90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 추가 버튼 클릭시 그리드에 추가
- function fSetpatspcfflist(){
- if(model.getvalue("/root/hidden/spcfcnts") == ""){
- messageBox("환자특이사항을","C001","") ;
-
- model.setFocus("ipt_patspcfcnts");
- return;
- }
-
- grd_patspcflist.addRow();
-
- model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/spcfcntsregdt", getCurrentDate()+getCurrentTime());
- model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/spcfcnts", model.getvalue("/root/hidden/spcfcnts"));
- model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/diagtestuseyn", model.getvalue("/root/hidden/diagtestuseyn"));
- model.setValue("/root/main/getpatspcflist[" + grd_patspcflist.row + " ]/pid", model.getvalue("/root/hidden/pid"));
-
- model.copyNode("/root/send/getpatspcflist" , "/root/main/getpatspcflist[" + grd_patspcflist.row + " ]");
-
- submit("TXLLC90201");
- model.copyNode("/root/send/getpatspcflist","/root/hidden/default");
- model.setvalue("/root/hidden/spcfcnts","");
- model.refresh();
- grd_patspcflist.topRow = grd_patspcflist.row;
-
- }
-
- //삭제버튼 리스트에서 삭제 DB단까지
- function fDelpatspcflist(){
- grd_patspcflist.clearStatus();
- for(i=1; i< grd_patspcflist.rows; i++){
- if(model.getValue("/root/main/getpatspcflist["+i+"]/chk")=="true"){
-
- grd_patspcflist.addStatus( i, "update");
-
- }
- }
-
- model.setvalue("/root/send/getpatspcflist" , grd_patspcflist.getUpdateData());
-
- submit("TXLLC90202");
- model.copyNode("/root/send/getpatspcflist","/root/hidden/default");
- for(i=1; i<=grd_patspcflist.rows; i++){
- if(model.getValue("/root/main/getpatspcflist["+i+"]/chk")=="true"){
- grd_patspcflist.deleteItem(i);
- }
- }
-
-
- }
-
- // 확인버튼 클릭시
- function fSetpatspcflist(){
- var spcfcnts = "";
- for(i=1; i<=grd_patspcflist.rows; i++){
- spcfcnts = spcfcnts + model.getvalue("/root/main/getpatspcflist["+i+"]/spcfcnts") + "\n";
- }
- opener.model.setvalue("root/main/TestInfo/TestspcfInfo/spcfcnts",spcfcnts);
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="440" pageheight="390" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:415px; height:360px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:107px; width:121px; height:13px; ">환자특이사항내역</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:100px; height:13px; ">환자특이사항</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:26px; width:72px; height:23px; vertical-align:middle; ">상용구</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:122px; x2:414px; y2:122px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:414px; y2:26px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:415px; y2:53px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:53px; x2:414px; y2:53px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:75px; width:72px; height:23px; ">공유구분</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:97px; x2:414px; y2:97px; "/>
- <select1 id="combo1" ref="/root/hidden/diagtestuseyn" class="combo_default" appearance="minimal" style="left:75px; top:76px; width:180px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value>1</value>
- </item>
- <item>
- <label>진단검사</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_patspcflist" nodeset="/root/main/getpatspcflist" caption="^등록일시^특이사항^공유구분^등록번호" colsep="^" colwidth="30, 118, 270, 100, 100" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:127px; width:414px; height:213px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="spcfcntsregdt" format="9999-99-99 99:99:99"/>
- <col ref="spcfcnts"/>
- <col ref="diagtestuseyn"/>
- <col ref="pid"/>
- </datagrid>
- <button id="btn_add" class="btn2_letter2" style="left:372px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetpatspcfflist();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:72px; height:23px; ">특이사항</caption>
- <input id="ipt_patspcfcnts" ref="/root/hidden/spcfcnts" class="input_default" navindex="1" style="left:75px; top:52px; width:339px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:259px; top:74px; width:72px; height:23px; ">등록번호</caption>
- <output id="output1" ref="/root/hidden/pid" class="output_fix" style="left:335px; top:76px; width:79px; height:19px; "/>
- <select1 id="combo2" ref="/root/hidden/use" class="combo_default" appearance="minimal" style="left:75px; top:30px; width:180px; height:19px; ">
- <choices>
- <item>
- <label>CBC 타과 중복 처방</label>
- <value>CBC 타과 중복 처방</value>
- </item>
- <item>
- <label>PT 타과 중복 처방</label>
- <value>PT 타과 중복 처방</value>
- </item>
- <item>
- <label>URINE 타과 중복 처방</label>
- <value>URINE 타과 중복 처방</value>
- </item>
- <item>
- <label>검체부족</label>
- <value>검체부족</value>
- </item>
- <item>
- <label>기타()</label>
- <value>기타()</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var cntCR = instance1.selectNodes("/root/hidden/use").length;
-
- // if(cmb_resn.value == model.getValue("/root/init/cancelresn["+i+"]/resncd")){
- model.setValue("/root/hidden/spcfcnts", combo2.value);
- model.refresh();
- // }
- ]]>
- </script>
- </select1>
- </group>
- <group id="group2" style="left:0px; top:345px; width:415px; height:27px; ">
- <button id="button4" class="btn4_letter2" style="left:300px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDelpatspcflist();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:241px; top:5px; width:54px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetpatspcflist();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" style="left:359px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_6" style="x1:0px; y1:0px; x2:414px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|