123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <codelist>
- <item>
- <cdid/>
- <cdnm/>
- <detldesc/>
- <dispseq/>
- <cmt1/>
- <cmt2/>
- <cdgrupid/>
- </item>
- </codelist>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srch>
- <cdgrupid/>
- </srch>
- <req/>
- <windowloadinstance>SPAEB00010</windowloadinstance>
- <instcd/>
- </send>
- <init>
- <cmb_info>
- <cditem>
- <cdgrupid/>
- <cdgrupnm/>
- </cditem>
- </cmb_info>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var instcd = getUserInfo("dutplceinstcd")
- model.setValue("/root/send/instcd", instcd);
- model.removenode("/root/main/codelist");
-
- submit("TRRSC10002");
- cmb_cdgrupid.select(0);
-
- ]]>
- </script>
- <submission id="TRRSC10002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRRSC10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
- <submission id="TXRSC10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="731" pageheight="555" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:700px; height:550px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:21px; width:690px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:4px; width:145px; height:15px; ">MIS 공통코드관리</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:700px; y2:85px; "/>
- <group id="group1" scroll="auto" style="left:0px; top:523px; width:700; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:512px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- var update = getGridUpdateData(grd_codelist);
-
- if (update == "" ) {
- messageBox("업데이트 정보가 없습니다.", "I");
- }
- else {
- model.setValue("/root/send/req", update);
- submit("TXRSC10001");
- }
- }
- submit("TRRSC10001");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:569px; top:5px; width:56px; height:22px; ">
- <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:700; y2:0px; "/>
- </group>
- <caption id="caption2" class="search_name" style="left:17px; top:30px; width:99px; height:17px; ">그룹코드 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:625px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( submit("TRRSC10001") ){
- grd_codelist.clearStatus();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_codelist" nodeset="/root/main/codelist/item" autoresize="true" caption="코드^코드명^설명^순번^비고1^비고2^그룹코드^" colsep="^" colwidth="71, 143, 183, 35, 65, 65, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:90px; width:700px; height:430px; ">
- <col ref="cdid" type="input"/>
- <col ref="cdnm" type="input"/>
- <col ref="detldesc" type="input" style="text-align:left; "/>
- <col ref="dispseq" type="input" style="text-align:center; "/>
- <col ref="cmt1" type="input"/>
- <col ref="cmt2" type="input"/>
- <col ref="cdgrupid" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_codelist.col;
-
- if( grd_codelist.colAttribute(colidx, "ref") == "detldesc" ){
- model.makeValue("/root/hidden/checkseq","23");
-
- var chkroom = "";
- chkroom = model.getValue("/root/main/codelist/item["+ grd_codelist.row +"]/detldesc");
- window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
-
- if( chkroom != model.getValue("/root/main/codelist/item["+ grd_codelist.row +"]/detldesc") ){
- grd_codelist.addStatus(grd_codelist.row,"update");
- }
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_cdgrupid" ref="/root/send/srch/cdgrupid" appearance="minimal" style="left:110px; top:30px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>담당자관리</label>
- <value>R0001</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRRSC10001");
- ]]>
- </script>
- </select1>
- <button id="btn_grddel" class="btn2_letter3" style="left:640px; top:65px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_codelist, true);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:584px; top:65px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cdgrupid = model.getValue("/root/send/srch/cdgrupid");
- grd_codelist.addRow();
- var row = grd_codelist.row;
- model.setValue("/root/main/codelist/item["+row+"]/cdgrupid", cdgrupid);
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn4_letter3" style="left:635px; top:528px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("초기화하시겠습니까?", "Q") == 6) {
- model.reset();
- model.removenode("/root/main/codelist");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|