123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <mode/>
- <grid>
- <item>
- <comcd/>
- <comexcd/>
- <comnm/>
- <comlevel/>
- </item>
- </grid>
- </main>
- <send>
- <srchcomcd/>
- <srchcomnm/>
- <data>
- <comcd/>
- <comexcd/>
- <comnm/>
- <dddunit/>
- <ddd/>
- <dddkg/>
- <dddchild/>
- <childdayno/>
- <childage/>
- </data>
- </send>
- <init>
- </init>
- <hidden>
- <temp/>
- <receiveref>
- <srchtype/>
- </receiveref>
- </hidden>
- </root>
- </instance>
- <submission id="TRADB61301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //submit("TRADB61301");
- //setTree(grd_com, grd_com.colRef("comlevel"),grd_com.colRef("comcd"), false );
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
- <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" src="../../../ast/commonweb/js/AST.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="654" pageheight="586" guideline="1,1194;1,673;2,576;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:630px; height:550px; ">
- <group id="group2" ref="/root/send/srchcomflag" style="left:0px; top:0px; width:625px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:620px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:555px; y1:6px; x2:555px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:560px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRADB61301");
- setTree(grd_com, grd_com.colRef("comlevel"),grd_com.colRef("comcd"), false );
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:225px; top:8px; width:60px; height:17px; ">명칭</caption>
- <caption id="caption4" class="search_name" style="left:5px; top:8px; width:60px; height:17px; ">코드</caption>
- <input id="input1" ref="/root/send/srchcomnm" class="input_search" style="left:295px; top:8px; width:210px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/srchcomcd" class="input_search" style="left:80px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:95px; height:14px; ">성분조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:625px; y2:61px; "/>
- <datagrid id="grd_com" nodeset="/root/main/grid/item" caption="코드^확장^명칭^레벨" colsep="^" colwidth="162, 49, 351, 37" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:66px; width:625px; height:484px; ">
- <col ref="comcd"/>
- <col ref="comexcd"/>
- <col ref="comnm"/>
- <col ref="comlevel"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var srchtype = model.getValue("/root/hidden/receiveref/srchtype");
-
- if ( checkOpener() ) {
- if (srchtype == "I") {
- opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd"));
- opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comexcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"));
- opener.model.setValue("/root/main/cominfo/comlist["+opener.grd_com.row+"]/comnm",model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"));
- } else if (srchtype == "I2") {
- opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd"));
- opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comexcd",model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"));
- opener.model.setValue("/root/main/hbookinfo/druglist["+opener.grd_drugcdlist.row+"]/comnm",model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"));
- } else if (srchtype == "O") {
- var comcd = opener.window.javascript.getParameter("comcd"); // 성분분류
- var comexcd = opener.window.javascript.getParameter("comexcd"); //
- var comnm = opener.window.javascript.getParameter("comnm"); //
-
- if(isNull(comcd)) {
- comcd = "'" + model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm") + "'";
- } else {
- // 성분조회 화면에서 '조회' 버튼을 누르지 않고 비어있는 데이터 선택했을 경우
- if(isNull(model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"))) {
- comcd = "";
- } else {
- comcd += "," + "'" + model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm") + "'";
- }
- }
-
- comexcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd");
- comnm = model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm");
-
- opener.window.javascript.setParameter("comcd" , comcd);
- opener.window.javascript.setParameter("comexcd" , comexcd);
- opener.window.javascript.setParameter("comnm" , comnm);
- } else if (srchtype == "B") { // 20101105_laboru_경북대병원_병용금기화면에서 팝업
- var comcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comcd") // 성분분류
- var comexcd = model.getValue("/root/main/grid/item["+grd_com.row+"]/comexcd"); //
- var comnm = model.getValue("/root/main/grid/item["+grd_com.row+"]/comnm"); //
-
- opener.window.javascript.setParameter("comcd" , comcd);
- opener.window.javascript.setParameter("comexcd" , comexcd);
- opener.window.javascript.setParameter("comnm" , comnm);
-
- }else {
- //opener.javascript.fSetComCode(model.getValue( "/root/main/grid/item["+grd_com.row+"]/comcd"),model.getValue( "/root/main/grid/item["+grd_com.row+"]/comnm"));
-
- astfInsertGridData(grd_com, opener.grd_com, "1", "", "", "comcd,comexcd,comcd,comexcd");
- }
-
- opener.model.refresh();
- window.close();
- } else {
- alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:550px; width:630px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" visibility="hidden" style="left:511px; top:4px; width:56px; height:22px; ">
- <caption>확인</caption>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:570px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|