123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <?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>
- <list1>
- <item>
- <efcycd/>
- <efcynm/>
- <efcylevel/>
- <dispno/>
- </item>
- </list1>
- </main>
- <send>
- <srchcomcd/>
- <srchcomnm/>
- <data1/>
- </send>
- <init/>
- <hidden>
- <item/>
- </hidden>
- <temp>
- <item>
- <count/>
- </item>
- </temp>
- </root>
- </instance>
- <submission id="TRADB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
- <submission id="TXADB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
- <script type="javascript">
- <![CDATA[
- function rownullchk(){
- for(var i = 1; i < grd_efficacylist1.rows; i++){
- if(grd_efficacylist1.rowStatus(i) !=0 && grd_efficacylist1.rowStatus(i) !=5){
- if(model.getValue("/root/main/list1/item["+i+"]/efcycd").getTrim() == "") {
- messageBox("코드는","I003");
- return false;
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 권한 관리
- btn_save.disabled =! checkAuth("X"); // 저장
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:15px; ">효능분류관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <button id="button49" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; letter-spacing:1; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_efficacylist1.addStatus(grd_efficacylist1.row,"delete");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1029px; top:50px; width:53px; height:19px; letter-spacing:1; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_efficacylist1.insertItem(grd_efficacylist1.row,"below");
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:30px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:230px; top:5px; width:60px; height:17px; ">명칭 :</caption>
- <line id="line13" class="line_4" style="x1:1125px; y1:5px; x2:1125px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:5px; width:60px; height:17px; ">코드 :</caption>
- <input id="input1" ref="/root/send/srchcomnm" class="input_search" maxlength="70" style="left:295px; top:5px; width:420px; height:19px; "/>
- <input id="input2" ref="/root/send/srchcomcd" class="input_search" maxlength="11" style="left:75px; top:5px; width:130px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1133px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADB00501");
- setTree(grd_efficacylist1, grd_efficacylist1.colRef("efcylevel"),grd_efficacylist1.colRef("efcycd"), false );
- ]]>
- </script>
- </button>
- </group>
- <button id="button50" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; letter-spacing:1; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grdrow = grd_efficacylist1.row;
- model.copyNode("/root/hidden/item","/root/main/list1/item["+ grdrow +"]");
- grd_efficacylist1.insertItem(grdrow, "below");
- model.copyNode("/root/main/list1/item["+ (grdrow+1) +"]","/root/hidden/item");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_efficacylist1" nodeset="/root/main/list1/item" allowselection="true" backcoloralternate="#f0f0f0" caption="코드^효능분류명^레벨^조회순서" colsep="^" colwidth="194, 776, 82, 96" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:0px; top:75px; width:1194px; height:660px; ">
- <col autonext="false" key="true" ref="efcycd" type="input" maxlength="11"/>
- <col autonext="false" ref="efcynm" type="input" maxlength="49"/>
- <col autonext="false" ref="efcylevel" type="input" maxlength="5"/>
- <col ref="dispno" type="input" style="text-align:right; "/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1132px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(rownullchk()){
- model.setValue("/root/send/data1",grd_efficacylist1.getUpdateData());
-
- submit("TXADB00501");
- submit("TRADB00501");
- setTree(grd_efficacylist1, grd_efficacylist1.colRef("efcylevel"),grd_efficacylist1.colRef("efcycd"), false );
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|