123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLR90100.xrw
- * 설 명 : 특이결과등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.07.02
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <spcfrsltlist>
- <testcd/>
- <spccd/>
- <rsltstat/>
- <tclsscrnnm/>
- <reptrslt/>
- <judgmark/>
- <panicmark/>
- <deltamark/>
- <criticalmark/>
- <alertmark/>
- <patnm/>
- <pid/>
- <roomcd/>
- <orddeptnm/>
- <chk/>
- <dt/>
- <tclscd/>
- <bcno/>
- <rec/>
- </spcfrsltlist>
- <getuserAnm>
- <acceptnm/>
- </getuserAnm>
- <getUsernm>
- <usernm/>
- </getUsernm>
- <getRecnm>
- <rec/>
- </getRecnm>
- </main>
- <send>
- <bcno/>
- <data1/>
- <data2/>
- <acceptid/>
- </send>
- <init>
- </init>
- <hidden>
- <refparam>
- <rcpnm/>
- <rmk/>
- <bcno/>
- <dt/>
- <rcpid/>
- <notiid/>
- <notinm/>
- <recnm/>
- </refparam>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- if(getPatientInfoDetail("orddrnm") != "") {
-
- model.setValue("/root/main/getRecnm/rec", getPatientInfoDetail("orddrnm"));
- model.setValue("/root/hidden/refparam/recnm", model.getValue("/root/main/getRecnm/rec"));
-
- //model.setValue("/root/main/getuserAnm/acceptnm", getPatientInfoDetail("orddrnm"));
- //model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
- }
-
- model.setvalue("/root/send/bcno", model.getvalue("/root/hidden/refparam/bcno"));
- submit("TRLLR90201");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <submission id="TRLLR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcfrsltlist"/>
- <submission id="TXLLR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TRLBT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getuserAnm"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fExeCancel(){
- window.close();
- }
-
- function fSpclResultSave(){
-
- if(model.getvalue("/root/main/getUsernm/usernm") == ""){
- messageBox("통보자를", "C001");
- return;
- }
-
- if(model.getvalue("/root/hidden/refparam/recnm") == ""){
- messageBox("수신인을", "C001");
- return;
- }
-
- var isSpcl = false;
- datagrid1.clearStatus();
- for(i=1;i< datagrid1.rows ; i++){
- if(model.getvalue("/root/main/spcfrsltlist["+i+"]/chk") == "true"){
- datagrid1.addStatus(i , "insert");
- isSpcl = true;
- }
- }
-
- if(isSpcl){
- model.setvalue("/root/hidden/refparam/dt" , model.getvalue("/root/main/spcfrsltlist/dt"));
- model.setValue("/root/hidden/refparam/notinm", model.getValue("/root/main/getUsernm/usernm"));
- model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
-
- if(model.getValue("/root/hidden/refparam/rcpid") == "") {
- model.setValue("/root/hidden/refparam/rcpid", "-");
- }
-
- if(model.getValue("/root/hidden/refparam/notiid") == "") {
- model.setValue("/root/hidden/refparam/notiid", "-");
- }
-
- model.copyNode("/root/send/data1" , "/root/hidden/refparam");
- model.setvalue("/root/send/data2" , datagrid1.getUpdateData());
-
- if(submit("TXLLR90201")) {
- window.close();
- }
-
- }
- }
-
- function fKeyEvent(){
- if(event.keyCode == "13"){
- // 검사자 바코드 리딩시
- if(event.target == "ipt_repid"){
- model.setvalue("/root/hidden/refparam/rcpid", ipt_repid.currentText);
- fGetusernm("R");
-
- ipt_repid.selBegin = 0;
- ipt_repid.selEnd = ipt_repid.currentText.length;
- }
-
- if(event.target == "ipt_notiid"){
- model.setvalue("/root/hidden/refparam/notiid", ipt_notiid.currentText);
- fGetusernm("N");
-
- ipt_notiid.selBegin = 0;
- ipt_notiid.selEnd = ipt_notiid.currentText.length;
- }
- }
- }
-
- function fGetusernm(flag){
- if(flag == "R") {
- if(model.getValue("/root/hidden/refparam/rcpid")==""){
- messageBox("피통보자ID를", "C001");
- return;
- }
-
- model.makeValue("/root/send/acceptid", model.getvalue("/root/hidden/refparam/rcpid"));
- submit("TRLBT10404");
-
- // model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getuserAnm/acceptnm"));
- ipt_repid.refresh();
-
- model.setFocus("textarea1");
-
- } else if(flag == "N") {
- if(model.getValue("/root/hidden/refparam/notiid")==""){
- messageBox("통보자ID를", "C001");
- return;
- }
-
- model.makeValue("/root/send/userid", model.getvalue("/root/hidden/refparam/notiid"));
- submit("TRLZZ00104");
-
- ipt_notiid.refresh();
-
- model.setFocus("ipt_repid");
- }
- //model.makeValue("/root/send/userid", model.getValue("/root/hidden/refparam/rcpid"));
- //submit("TRLZZ00104");
-
- //if(model.getValue("/root/main/getUsernm/usernm")!=""){
- // model.setValue("/root/hidden/refparam/rcpnm", model.getValue("/root/main/getUsernm/usernm")) ;
- //}
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="590" pageheight="340" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:571px; height:292px; ">
- <caption id="caption1" class="tit_2" style="left:210px; top:11px; width:95px; height:13px; ">특이결과내역</caption>
- <caption id="caption2" class="tit_2" style="left:5px; top:11px; width:115px; height:13px; ">환자정보</caption>
- <line id="line1" class="line_1" style="x1:205px; y1:26px; x2:570px; y2:26px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:200; y2:26px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/spcfrsltlist" caption="^검사항목명^결과^N^P^D^C^A^testcd^spccd^tclscd^bcno" colsep="^" colwidth="19, 154, 50, 20, 20, 20, 20, 20, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:205px; top:31px; width:365px; height:257px; ">
- <col checkvalue="true,false" ref="chk" type="checkbox"/>
- <col ref="tclsscrnnm"/>
- <col ref="reptrslt"/>
- <col ref="judgmark"/>
- <col ref="panicmark"/>
- <col ref="deltamark"/>
- <col ref="criticalmark"/>
- <col ref="alertmark"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="tclscd"/>
- <col ref="bcno"/>
- </datagrid>
- <caption id="caption5" class="cell_1" style="left:0px; top:-140px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
- <output id="output1" ref="/root/main/spcfrsltlist/patnm" class="output_fix" style="left:75px; top:32px; width:125px; height:19px; "/>
- <output id="output2" ref="/root/main/spcfrsltlist/pid" class="output_fix" style="left:75px; top:56px; width:125px; height:19px; "/>
- <output id="output3" ref="/root/main/spcfrsltlist/orddeptnm" class="output_fix" style="left:75px; top:80px; width:125px; height:19px; "/>
- <output id="output4" ref="/root/main/spcfrsltlist/roomcd" class="output_fix" style="left:75px; top:104px; width:125px; height:19px; "/>
- <output id="output5" ref="/root/main/spcfrsltlist/dt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:75px; top:199px; width:125px; height:19px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:200px; y2:53px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:77px; x2:200px; y2:77px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:101px; x2:200px; y2:101px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:125px; x2:200px; y2:125px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:149px; x2:200px; y2:149px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:287px; x2:200px; y2:287px; "/>
- <textarea id="textarea1" ref="/root/hidden/refparam/rmk" style="left:75px; top:224px; width:125px; height:61px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:223px; width:72px; height:63px; vertical-align:middle; ">조치사항</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:72px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:79px; width:72px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:103px; width:72px; height:23px; vertical-align:middle; ">병실</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:127px; width:72px; height:23px; vertical-align:middle; ">통보자</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:199px; width:72px; height:23px; vertical-align:middle; ">통보시간</caption>
- <line id="line11" class="line_2" style="x1:0px; y1:173px; x2:200px; y2:173px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:175px; width:72px; height:23px; vertical-align:middle; ">피통보자</caption>
- <input id="ipt_repid" ref="/root/hidden/refparam/rcpid" imemode="disabled" _chartype="upper" style="left:75px; top:175px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <input id="ipt_repnm" ref="/root/main/getuserAnm/acceptnm" class="input_essential" style="left:142px; top:175px; width:57px; height:19px; "/>
- <input id="ipt_notinm" ref="/root/main/getUsernm/usernm" class="input_essential" style="left:142px; top:128px; width:57px; height:19px; "/>
- <input id="ipt_notiid" ref="/root/hidden/refparam/notiid" imemode="disabled" _chartype="upper" style="left:75px; top:128px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- <caption id="caption12" class="cell_1" style="left:0px; top:151px; width:72px; height:23px; vertical-align:middle; ">수신인</caption>
- <input id="ipt_rec" ref="/root/main/getRecnm/rec" class="input_default" disabled="true" style="left:75px; top:152px; width:124px; height:19px; "/>
- </group>
- <group id="group2" style="left:0px; top:291px; width:571px; height:27px; ">
- <line id="line10" class="line_6" style="x1:0px; y1:0px; x2:570px; y2:0px; "/>
- <button id="button4" class="btn4_letter2" style="left:456px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpclResultSave();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" style="left:515px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeCancel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|