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>
- <bodypartlist>
- <list>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts>C001</basecdcnts>
- </list>
- </bodypartlist>
- </main>
- <send>
- <req>
- </req>
- <basecd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <basecdnm/>
- <basecdflag>G</basecdflag>
- <basecdcnts/>
- </send>
- <init>
- <codelist>
- <basecd/>
- <basecdflagdesc/>
- <length/>
- </codelist>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <submission id="TRAEA03211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bodypartlist"/>
- <submission id="TRAEA03212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bodypartlist"/>
- <submission id="TXAEA03210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TXAEA03211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
- model.removeNodeset("/root/init/codelist");
- model.removeNodeset("/root/main/bodypartlist/list");
- model.removeNodeset("/root/init/codelist");
- model.setValue("/root/send/basecdcnts","000"); //마스터 코드 셋팅
- submit("TXAEA03210");
- model.refresh();
-
-
- // model.setFocus("ipt_basecd");
- ]]>
- </script>
- <submission id="TXAEA02308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- </model>
- </xhtml:head>
- <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" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <xhtml:body pagewidth="604" pageheight="493" 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:587px; height:465px; ">
- <group id="grp_sea" style="left:0px; top:0px; width:587px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:586px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">구분:</caption>
- <line id="line13" class="line_4" style="x1:500px; y1:5px; x2:500px; y2:28px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:515px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEA03212");
- ]]>
- </script>
- </button>
- <select1 id="cmb_codelist" ref="/root/send/basecd" appearance="minimal" style="left:85px; top:7px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/codelist">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/bodypartlist/list");
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:125px; height:14px; ">코드관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:586px; y2:61px; "/>
- <datagrid id="grd_bodypart" nodeset="/root/main/bodypartlist/list" caption="순번 ^코드^코드명^basecdflag^basesuppdeptcd" colsep="^" colwidth="35, 118, 388, 0, 0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:586px; height:360px; ">
- <col ref="sortno" type="input" visibility="hidden"/>
- <col ref="basecd" type="input" _chartype="upper" style="text-align:center; "/>
- <col ref="basecdflagdesc" type="input"/>
- <col ref="basecdcnts" visibility="hidden"/>
- <col ref="basesuppdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 정렬된 순서대로 인스턴스를 재정의 함
- grd_bodypart.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" style="left:521px; top:40px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_bodypart, true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:465px; top:40px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mastercode = model.getValue("/root/send/basecd");
- var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- grd_bodypart.addRow();
- var row = grd_bodypart.row;
- model.setValue("/root/main/bodypartlist/list["+row+"]/basecdcnts",mastercode);
- model.setValue("/root/main/bodypartlist/list["+row+"]/basesuppdeptcd",suppdeptcd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:445px; top:430px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- var update = getGridUpdateData(grd_bodypart);
-
- if (update == "" ) {
- messageBox("업데이트 정보가 없습니다.", "I");
- model.setFocus("ipt_basecd");
- }
- else {
- model.setValue("/root/send/req", update);
- submit("TXAEA03211");
- }
-
- //submit("TRAEA02308");
- model.setValue("/root/send/basecd", "");
- model.setValue("/root/send/basecdnm", "");
- }
- // model.refresh();
- model.reset();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:508px; top:430px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("초기화하시겠습니까?", "Q") == 6) {
- model.reset();
- }
- model.setFocus("ipt_basecd");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|