123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHB00400.xrw
- * 설 명 : 검체코드선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.07.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>검체코드선택</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <spccdlst>
- <item>
- <spccd/>
- <spcnm/>
- <engnm/>
- </item>
- </spccdlst>
- </main>
- <send>
- <srchtestcd/>
- <srchtestnm/>
- </send>
- <init/>
- <hidden>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- if( checkOpener() ){
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag" , "");
- fGetSpcCdList();
- if( grd_spccdlst.rows < 2 ){
- messageBox("검체코드내역이 존재하지 않습니다!", "E999" );
- window.close();
- }
- }
- ]]>
- </script>
- <submission id="TRAHB00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spccdlst"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /**
- * SPAHB00400_PARAM1 : 검사코드
- * SPAHB00400_PARAM2 : 검사명
- * SPAHB00400_PARAM3 : code값을 setting할 목적노드
- * SPAHB00400_PARAM4 : name값을 setting할 목적노드
- */
- function fInit(){
- model.removeNodeset(grd_spccdlst.nodeset);
- if( checkOpener() ){
- model.setValue("/root/send/srchtestcd" , opener.javascript.getParameter("SPAHB00400_PARAM1"));
- model.setValue("/root/send/srchtestnm" , opener.javascript.getParameter("SPAHB00400_PARAM2"));
- }
- model.refresh();
- }
- /**==================================================================================================================================
- * 검사코드별 검체코드내역조회
- *==================================================================================================================================*/
- function fGetSpcCdList(){
- if( model.getValue("/root/send/srchtestcd" ) == ""){
- messageBox("수가코드를 " , "C001");
- window.close();
- return ;
- }
- submit("TRAHB00105");
- }
- /***==================================================================================================================================
- * 선택항목 setting
- *==================================================================================================================================*/
- function fSetData(){
- if( checkOpener() ){
- var sDestXPathCd = opener.javascript.getParameter("SPAHB00400_PARAM3");
- var sDestXPathNm = opener.javascript.getParameter("SPAHB00400_PARAM4");
- var idx = 0 ;
- idx = grd_spccdlst.row;
- if( idx < 1) {
- messageBox("항목을 " , "C002");
- return -1;
- }
- opener.model.setValue( sDestXPathCd , model.getValue("/root/main/spccdlst/item[" + idx + "]/spccd" ) );
- opener.model.setValue(sDestXPathNm , model.getValue("/root/main/spccdlst/item[" + idx + "]/spcnm" ) );
- opener.model.setValue("/root/temp/okflag" , "ok");
- return 1;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
- <datagrid id="grd_spccdlst" nodeset="/root/main/spccdlst/item" caption="검체코드^검체명" colsep="^" colwidth="104, 362" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:517px; height:463px; ">
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spccdlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검사코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpcCdList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchtestnm" ref="/root/send/srchtestnm" class="input_search" disabled="true" style="left:182px; top:11px; width:240px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_srchtestcd" ref="/root/send/srchtestcd" class="input_search" disabled="true" style="left:105px; top:11px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
- <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fSetData() == 1){
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|