123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLRR90200_분자생물학부의뢰서등록.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/>
- <inptitem02/>
- <inptitem03/>
- <inptitem04/>
- <inptitem05/>
- </reqfrminfo>
- </reqfrmtbl>
- </reqfrm>
- <rtnval>
- <rtnvalinfo>
- <reqno/>
- <instcd/>
- </rtnvalinfo>
- </rtnval>
- </main>
- <send>
- <pid/>
- <reqno/>
- <reqcnts/>
- <instcd/>
- <iptitem01/>
- <iptitem02/>
- </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", "1");
- model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02", "");
- model.setValue("/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts", "");
- 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="510" pageheight="420" guideline="1,1194;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:490px; height:400px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:11px; width:100px; height:13px; ">임상적 적응증</caption>
- <textarea id="textarea1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/reqcnts" style="left:0px; top:31px; width:490px; height:169px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:490px; y2:26px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:255px; width:100px; height:13px; ">인종</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:270px; x2:490px; y2:270px; "/>
- <line id="line4" class="line_6" style="x1:0px; y1:296px; x2:490px; y2:296px; "/>
- <select1 id="cmb_Injong" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem01" class="combo_default" appearance="minimal" style="left:103px; top:276px; width:117px; height:19px; ">
- <choices>
- <item>
- <label>한국인</label>
- <value>1</value>
- </item>
- <item>
- <label>아시안</label>
- <value>2</value>
- </item>
- <item>
- <label>남미</label>
- <value>4</value>
- </item>
- <item>
- <label>북미</label>
- <value>5</value>
- </item>
- <item>
- <label>유대인</label>
- <value>6</value>
- </item>
- <item>
- <label>유럽인</label>
- <value>7</value>
- </item>
- <item>
- <label>Other</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_text" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem02" class="input_default" style="left:223px; top:276px; width:267px; height:19px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:375px; top:353px; 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:434px; top:353px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetClose();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="cell_1" style="left:0px; top:275px; width:100px; height:23px; vertical-align:middle; ">인종</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:323px; width:100px; height:23px; vertical-align:middle; ">진단명</caption>
- <line id="line5" class="line_6" style="x1:0px; y1:320px; x2:490px; y2:320px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:299px; width:100px; height:23px; vertical-align:middle; ">가족력</caption>
- <line id="line3" class="line_3" style="x1:0px; y1:345px; x2:490px; y2:345px; "/>
- <input id="input1" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem03" style="left:102px; top:300px; width:385px; height:19px; "/>
- <input id="input2" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem04" style="left:102px; top:324px; width:385px; height:19px; "/>
- <caption id="caption5" class="tit_2" style="left:5px; top:205px; width:100px; height:13px; ">검사목적</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:220px; x2:490px; y2:220px; "/>
- <input id="input3" ref="/root/main/reqfrm/reqfrmtbl/reqfrminfo/inptitem05" style="left:0px; top:225px; width:488px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|