123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPC02000_기본파트팝업.xrw
- * 설 명 : 기본파트 선택 공통 팝업화면
- * 설 계 자 : (주)에이씨케이 - 황상미
- * 작 성 자 : (주)에이씨케이 - 황상미
- * 작 성 일 : 2007.02.01
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <spccdlist>
- <spccdlistinfo>
- <instcd/>
- <spccd/>
- <spcnm/>
- <spcabbr/>
- <reprspccd/>
- <reprspcnm/>
- </spccdlistinfo>
- </spccdlist>
- </main>
- <send>
- </send>
- <init>
- <spcnm/>
- </init>
- <hidden>
- </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="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <!-- public Script Start -->
- <script type="javascript">
- <![CDATA[
-
- /* @group : 검체코드선택 공통 팝업화면
- * @ver : 2007.02.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
- model.removeNodeset("/root/main/spccdlist/spccdlistinfo");
- fGetRefData();
- }
-
- /* @group : 검체코드선택 공통 팝업화면
- * @ver : 2007.02.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 기초코드조회 함수
- */
- function fGetRefData(){
-
- model.removeNodeset("/root/send");
-
- model.makeValue("/root/send/spcnm", model.getValue("/root/init/spcnm"));
-
- if(opener.model.getValue("/root/hidden/scrndata/scrnflagcd") == "BASE"){
-
- if(opener.model.getValue("/root/hidden/scrnid") == "SMLPC00700") {
- model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
- model.makeValue("/root/send/spccd", ""); // 검체코드
- model.makeValue("/root/send/spcflagcd", "9"); // 대표검체구분(9:대표,세부 모두 조회)
- model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
- model.makeValue("/root/send/reprspccd", ""); // delflag(0:사용가능)
- } else {
- model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
- model.makeValue("/root/send/spccd", ""); // 검체코드
- model.makeValue("/root/send/spcflagcd", "0"); // 대표검체구분(0:대표검체)
- model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
- model.makeValue("/root/send/reprspccd", ""); // delflag(0:사용가능)
- }
-
- }else if(opener.model.getValue("/root/hidden/scrndata/scrnflagcd") == "ACPT"){
- model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
- model.makeValue("/root/send/spccd", ""); // 검체코드
- model.makeValue("/root/send/spcflagcd", "1"); // 대표검체구분(1:SUB검체)
- model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
- model.makeValue("/root/send/reprspccd", opener.model.getValue("root/hidden/scrndata/reprspccd")); // 대표검체코드
- }
-
- submit("TRLPC02201");
-
- }
-
- /* @group : 검체코드선택 공통 팝업화면
- * @ver : 2007.02.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체코드선택 확인 함수
- */
- function fExeChoiSpcCd(){
-
- var curRow = grd_spccdlist.row;
-
- //MainWindow ReprSpcCd Value Change
- model.setValue(opener.root.hidden.scrndata.spccd,
- model.getValue("/root/main/spccdlist/spccdlistinfo[" + curRow + "]/spccd"));
- model.setValue(opener.root.hidden.scrndata.spcnm,
- model.getValue("/root/main/spccdlist/spccdlistinfo[" + curRow + "]/spcnm"));
- model.close();
- }
-
- /* @group : 검체코드선택 공통 팝업화면
- * @ver : 2007.02.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 함수
- */
- function fExeClsScrn(){
- model.close();
- }
- ]]>
- </script>
- <!-- public Script End -->
- <submission id="TRLPC02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spccdlist/spccdlistinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="345" pageheight="610" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:560px; width:325px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:325px; y2:0px; "/>
- <button id="btn_cls" class="btn4_letter2" style="left:269px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeClsScrn();
- ]]>
- </script>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:210px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeChoiSpcCd();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_popup" style="left:0px; top:0px; width:325px; height:560px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:7px; width:325px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:121px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검체코드 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:325px; y2:65px; "/>
- <datagrid id="grd_spccdlist" nodeset="/root/main/spccdlist/spccdlistinfo" caption="기관코드^검체코드^검체명^검체약어^대표검체^대표검체명" colsep="^" colwidth="0, 100, 200, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:325px; height:490px; border-color:#c0c0c0; ">
- <col ref="instcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <col ref="spcabbr"/>
- <col ref="reprspccd"/>
- <col ref="reprspcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeChoiSpcCd();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spccdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_syts_ref" class="btn1_letter2" navindex="4" style="left:255px; top:14px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRefData();
- ]]>
- </script>
- </button>
- <input id="ipt_spcnm" ref="/root/init/spcnm" class="input_search" navindex="3" style="left:90px; top:15px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == 13) {
- model.makeValue("/root/init/spcnm", ipt_spcnm.currentText);
- fGetRefData();
- }
- ]]>
- </script>
- </input>
- <caption id="cap_spcnm" class="search_name" style="left:9px; top:16px; width:81px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검체명 :</caption>
- <line id="line3" class="line_4" style="x1:240px; y1:13px; x2:240px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|