123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLRR90300_산전검사의뢰서등록.xrw
- * 설 명 : 산전검사 의뢰서 등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 박정은
- * 작 성 일 : 2007.5.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <reqfrm>
- <reqfrmtbl>
- <reqfrminfo>
- <choispc>
- <choispclist>
- <choi/>
- <spcseqno/>
- <spccd/>
- <spccd2/>
- </choispclist>
- </choispc>
- <reqcnts/>
- <inptitem01>
- <bdwt/>
- <LPM/>
- <week/>
- <day/>
- <glycosyn/>
- <hypetsyn/>
- </inptitem01>
- </reqfrminfo>
- </reqfrmtbl>
- </reqfrm>
- <rtnval>
- <rtnvalinfo>
- <reqno/>
- <instcd/>
- </rtnvalinfo>
- </rtnval>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden>
- <reqfrminfo>
- <pid/>
- <prcpcd/>
- <prcpnm/>
- <opnm/>
- <spccd/>
- <spcnm/>
- <reqno/>
- <reqhistno/>
- </reqfrminfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TXLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rtnval/rtnvalinfo"/>
- <submission id="TRLRR90201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/reqfrm"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 산전검사 의뢰서 팝업화면
- * @ver : 2007.05.21
- * @by : 박정은(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 Initialize함수
- */
- function fExeInitialize() {
- //----------------------------------------------------------------
- // 처방등록 화면에서 호출되지 않는 경우는 "저장" 기능을 비 활성화 처리
- if (model.getValue("/root/hidden/reqfrminfo/scrnno") == "10") {
- btn_save.visible = true;
- } else {
- btn_save.visible = false;
- }
-
- //-------------
- // Test용 자료
- //model.setValue("/root/hidden/reqfrminfo/pid", "56605");
- //model.setValue("/root/hidden/reqfrminfo/prcpcd", "T2");
- //model.setValue("/root/hidden/reqfrminfo/spccd", "TC2003");
- //model.setValue("/root/hidden/reqfrminfo/reqno", "27");
-
-
- //----------------------------------------------
- // 의뢰지번호가 존재할 경우 의뢰지내용을 조회한다.
- if(getNodesetCount("/root/hidden/reqfrminfo/reqcnts") <= 0) { //내용이 없다
- if (model.getValue("/root/hidden/reqfrminfo/reqno") != "0") { //의뢰지번호 존재시
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
- model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
- submit("TRLRR90201");
- } else { //의뢰지번호 없다..!!
- model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01", "");
- model.setValue("/root/hidden/reqfrminfo/reqno", "0");
- }
- }else { //내용이 있다(ex> 특수에서 의뢰서 띄울때 처럼)
- model.removeNodeset("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
- model.makeNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
-
- copyNodesetType("/root/main/reqfrm/reqfrmtbl/reqfrminfo", "/root/hidden/reqfrminfo/reqcnts/reqfrminfo"); //의뢰서 내용 main으로 복사
- }
- //-------------
- model.refresh();
- }
-
-
- // 확인버튼 클릭시 저장
- function fExeClinicSave(){
- var strNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
- var node = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo"); //xml 저장을 위해 노드로 만듬
- // 검체 추가정보 설정
- model.makeValue(strNode + "/choi", "true");
- model.makeValue(strNode + "/spcseqno", "001");
- model.makeValue(strNode + "/spccd", model.getValue("/root/hidden/reqfrminfo/spccd"));
- model.makeValue(strNode + "/spccd2", model.getValue("/root/hidden/reqfrminfo/spccd"));
-
- model.removeNodeset("/root/send");
-
- model.makeValue("/root/send/pid", model.getValue("/root/hidden/reqfrminfo/pid"));
- model.makeValue("/root/send/reqno", model.getValue("/root/hidden/reqfrminfo/reqno"));
- model.makeValue("/root/send/reqcnts", node.xml, true);
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
-
-
- //------------------------
- if (!submit("TXLRR90201")) {
- messageBox("의뢰지 저장을", "E009");
- return false;
- }
-
- //------------------
- // 의뢰지번호 Return
- opener.model.setValue("/root/hidden/reqfrminfo/reqno", model.getValue("/root/main/rtnval/rtnvalinfo/reqno"));
-
- //------------
- model.close();
- }
-
- // 닫기
- function fSetClose(){
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="310" pageheight="200" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:290px; height:152px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:280px; y2:26px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:113px; height:14px; ">산전검사 의뢰서</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:31px; width:150; height:23px; vertical-align:middle; ">현재 체중</caption>
- <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/bdwt" class="input_essential" style="left:153px; top:32px; width:100px; height:19px; "/>
- <caption id="caption8" style="left:255px; top:35px; width:30px; height:13px; ">Kg</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:55px; width:150; height:23px; vertical-align:middle; ">LMP (최종월경일)</caption>
- <input id="input4" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/LPM" class="input_essential" inputtype="date" format="yyyy-mm-dd" style="left:153px; top:56px; width:100px; height:19px; "/>
- <input id="input5" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/week" class="input_default" style="left:153px; top:80px; width:40px; height:19px; text-align:right; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:79px; width:150px; height:23px; vertical-align:middle; ">초음파검사상 임신주수</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:103px; width:150; height:23px; vertical-align:middle; ">당뇨병 여부</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:127px; width:150; height:23px; vertical-align:middle; ">고혈압 여부</caption>
- <line id="line5" class="line_3" style="x1:0px; y1:149px; x2:280px; y2:149px; "/>
- <caption id="caption1" style="left:195px; top:82px; width:16px; height:14px; ">주</caption>
- <caption id="caption2" style="left:254px; top:82px; width:20px; height:14px; ">일</caption>
- <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/day" class="input_default" style="left:212px; top:80px; width:40px; height:19px; text-align:right; "/>
- <select id="checkbox1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/glycosyn" overflow="visible" appearance="full" style="left:153px; top:107px; width:45px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01/hypetsyn" overflow="visible" appearance="full" style="left:153px; top:130px; width:45px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group3" style="left:0px; top:152px; width:290px; height:27px; ">
- <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:280px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:166px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClinicSave();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:225px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetClose();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|