123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?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>
- <condition>
- <srchflag/>
- <srchnm/>
- <scrid>SPMMD2700</scrid>
- </condition>
- <masterinfo>
- </masterinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.makeNode( rdo_srchflag.attribute("ref"));
- model.setValue(rdo_srchflag.attribute("ref"), "C");
- submit("TRMMD02801");
- //submit("TRADB00201");
- // grd_masterinfo.insertColumn(0, "ref:chk; type:checkbox;checkvalue:Y,N;", "before");
- // grd_masterinfo.caption = "선택^성분코드^성분명^레벨";
- // grd_masterinfo.colWidth(0)= "38";
- // grd_masterinfo.colWidth(1)= "164";
- // grd_masterinfo.colWidth(2)= "310";
- // grd_masterinfo.colWidth(3)= "52";
- grd_masterinfo.fixedcellcheckbox(0, grd_masterinfo.colRef("chk")) = true;
- //setTree(grd_masterinfo, grd_masterinfo.colRef("comlevel"),grd_masterinfo.colRef("comcd"), true );
-
- ]]>
- </script>
- <submission id="TRADB00201" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/masterinfo"/>
- <submission id="TRMMD02801" ref="/root/main/condition" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/masterinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fAddOpener(){
- var checkNodeList = instance1.selectNodes("/root/main/masterinfo/list2700[chk='Y']");
- if( checkNodeList != null && checkNodeList.length > 0 ){
- var csv = getNodeListCSV(checkNodeList);
- opener.javascript.setParameter("saveparam", csv);
- }
-
- opener.javascript.fSetAntibioComcd();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="626" pageheight="705" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:610px; height:675px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:25px; width:605px; height:30px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:115px; height:13px; ">성분코드조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:57px; x2:605px; y2:57px; "/>
- <datagrid id="grd_masterinfo" nodeset="/root/main/masterinfo/list2700" allowselection="true" autoresize="true" caption="^성분코드^본원사용여부^성분명^확장코드" colwidth="35, 94, 87, 324, 52" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" selectionmode="byrow" rowsep="|" colsep="^" style="left:0px; top:60px; width:605px; height:615px; ">
- <col ref="chk" type="checkbox" checkvalue="Y,N"/>
- <col ref="comcd"/>
- <col ref="hospuseyn"/>
- <col ref="comnm"/>
- <col ref="comexcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selRow = grd_masterinfo.row;
- if( selRow > 0 && selRow <= grd_masterinfo.rows ){
- model.setValue("/root/main/masterinfo/list2700["+selRow+"]/chk", "Y");
- model.refresh();
- fAddOpener();
-
- model.setValue("/root/main/masterinfo/list2700["+selRow+"]/chk", "N");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line13" style="x1:529px; y1:30px; x2:529px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:31px; width:86px; height:17px; ">검색조건 :</caption>
- <input id="ipt_srchnm" ref="/root/main/condition/srchnm" navindex="2" class="input_search" style="left:230px; top:31px; width:290px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchflag" ref="/root/main/condition/srchflag" visibility="1" overflow="visible" appearance="full" cols="3" style="left:105px; top:31px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>성분코드</label>
- <value>C</value>
- </item>
- <item>
- <label>성분명</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/main/condition/srchnm","");
- model.setFocus("ipt_srchnm");
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_search" navindex="3" class="btn1_letter2" style="left:540px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var strCdNm = model.getValue("/root/main/condition/srchnm");
- if( strCdNm.length > 0 && strCdNm.length < 2 ){
- messageBox("두자리 이상 ","C001");
- return;
- }
- submit("TRMMD02801");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:676px; width:610px; height:27px; ">
- <button id="button4" class="btn4_letter2" style="left:490px; top:3px; width:56px; height:17px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddOpener();
- window.close();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" style="left:549px; top:3px; width:56px; height:17px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:610px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|