123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?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/>
- <useyn/>
- <dispseq/>
- <cntlyn1/>
- <cntlcd1/>
- <grupcdid/>
- <suppdeptcd/>
- </item>
- </codelist>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srch>
- <grupcdid/>
- </srch>
- <req/>
- <windowloadinstance>SPAEB00010</windowloadinstance>
- </send>
- <init>
- <cmb_info>
- <cditem>
- <grupcdid/>
- <grupcdnm/>
- </cditem>
- </cmb_info>
- </init>
- <hidden>
- </hidden>
- <init2>
- <baseinfo>
- <emplinfo/>
- </baseinfo>
- </init2>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
- var openerid = model.getValue("/root/send/windowloadinstance");
- model.removenode("/root/main/codelist");
-
- astGetComboList( new Array("E0002"), new Array("/root/init2/baseinfo/emplinfo") );
- submit("TRAAA00001", false);
-
- submit("TRAEB00011");
-
-
- ]]>
- </script>
- <submission id="TRAEB00011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
- <submission id="TXAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAAA00001"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.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:14px; ">공통코드관리</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 ( model.getValue("/root/send/srch/grupcdid") == "" ) {
- // messageBox("[그룹코드]는 조회필수항목입니다.","I999");
- // return;
- // }
-
- var auth_id = getUserInfo("userid");
- var dev_id = auth_id.substr(0,3);
-
- // 2011.06.21 권한 공통코드(E0002)로 관리
- var idx_cncl = 0;
- var cnclidCnt = getNodesetCount("/root/init2/baseinfo/emplinfo/E0002");
- for( var i = 1 ; i<= cnclidCnt ; i++){
- if( model.getValue("/root/init2/baseinfo/emplinfo/E0002["+ i +"]/cdid") == auth_id ){
- idx_cncl++;
- }
- }
-
- if ( idx_cncl != 0 || dev_id == "DEV" || dev_id == "AST" ) {
- }else {
- messageBox("저장/수정/삭제권한은 전산실 관리자에게만 부여합니다.","I999");
- return;
- }
-
- if ( messageBox("", "Q002") == 6 ) {
- var update = getGridUpdateData(grd_codelist);
-
- if (update == "" ) {
- messageBox("업데이트 정보가 없습니다.", "I");
- }
- else {
- model.setValue("/root/send/req", update);
- submit("TXAEB00010");
- }
- }
- model.reset();
- submit("TRAEB00011");
- submit("TRAEB00010");
- ]]>
- </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("TRAEB00010") ){
- grd_codelist.clearStatus();
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_codelist" nodeset="/root/main/codelist/item" autoresize="true" caption="코드^코드명^설명^사용여부^순번^제어여부1^제어코드1^그룹코드^부서코드^" colsep="^" colwidth="71, 143, 183, 58, 35, 65, 65, 100, 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="useyn" type="input"/>
- <col ref="dispseq" type="input" style="text-align:center; "/>
- <col ref="cntlyn1" type="input"/>
- <col ref="cntlcd1" type="input"/>
- <col ref="grupcdid" type="input"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <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="combo1" ref="/root/send/srch/grupcdid" appearance="minimal" style="left:110px; top:30px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/cditem">
- <label ref="grupcdnm"/>
- <value ref="grupcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 2011.05.09 코드가 E0001일 경우 섦
- if( model.getValue("/root/send/srch/grupcdid") == "E0001" ){
- grd_codelist.colType(3) = "inputbutton";
- }else{
- grd_codelist.colType(3) = "input";
- }
- submit("TRAEB00010");
- ]]>
- </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 grupcdid = model.getValue("/root/send/srch/grupcdid");
- var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
- grd_codelist.addRow();
- var row = grd_codelist.row;
- model.setValue("/root/main/codelist/item["+row+"]/grupcdid", grupcdid);
- model.setValue("/root/main/codelist/item["+row+"]/suppdeptcd",suppdeptcd);
- 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>
|