123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCMZ00300_내부고객그룹관리
- * Summary : 내부고객그룹관리
- * Programmer : 최정환
- * Date Written : 2007.09.05
- * History : 2007.09.05
- * Remark :
- -->
- <?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>
- <innrgrupattr>
- <innrgrupid/>
- <innrgrupnm/>
- <publyn>N</publyn>
- <cretuserid/>
- <savemode/>
- </innrgrupattr>
- <innrgruplist>
- <innrgrupid/>
- <innrgrupnm/>
- <publyn/>
- <cretuserid/>
- </innrgruplist>
- </main>
- <send>
- <innrgrupattr/>
- </send>
- <hidden/>
- </root>
- </instance>
- <submission id="TRCMZ00301" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/inngrupattr"/>
- <submission id="TXCMZ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/innrgrupattr" replace="instance"/>
- <submission id="TXCMZ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/innrgrupattr" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("x")) {
- btn_del.disabled = true;
- btn_save.disabled = true;
- }
- }
- // 입력모드로 표시
- model.setValue("/root/main/innrgrupattr/savemode","I");
-
- // 내부고객리스트 조회 호출
- fGetInnrgrup();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fGetInnrgrup() {
- model.removeNodeset("/root/main/innrgruplist");
- // 내부고객그룹리스트
- submit("TRCMZ00301");
- }
-
- function fSaveInnrGrup() {
- var innrgrupnm = model.getValue("/root/main/innrgrupattr/innrgrupnm");
-
- if (innrgrupnm == "" ) {
- messageBox("내부고객그룹명을 ","C001");
- } else {
- model.copyNode( "/root/send/innrgrupattr", "/root/main/innrgrupattr" );
- submit("TXCMZ00301");
- fGetInnrgrup();
- }
- }
-
- function fDelInnrGrup() {
- var innrgrupid = model.getValue("/root/main/innrgrupattr/innrgrupid");
-
- if (innrgrupid == "" ) {
- messageBox("삭제할 내부고객그룹을 ","C002");
- } else {
- model.copyNode( "/root/send/innrgrupattr", "/root/main/innrgrupattr" );
- submit("TXCMZ00302");
- fGetInnrgrup();
- }
- }
-
- function fInitInnrGrup() {
- model.setValue("/root/main/innrgrupattr/savemode","I");
- model.setValue("/root/main/innrgrupattr/innrgrupid","")
- model.setValue("/root/main/innrgrupattr/innrgrupnm","")
- model.setValue("/root/main/innrgrupattr/publyn","N")
- model.setValue("/root/main/innrgrupattr/cretuserid","")
- model.refresh();
- }
-
- function fGetInnrGrupAttr() {
- var row = grd_innrgrup.row;
-
- // 선택한 내부고객그룹 리스트항목의 내용을 뿌려준다.
- var userid = getUserId();
-
- var innrgrupid = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("innrgrupid"));
- model.setValue("/root/main/innrgrupattr/innrgrupid",innrgrupid);
- var innrgrupnm = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("innrgrupnm"));
- model.setValue("/root/main/innrgrupattr/innrgrupnm",innrgrupnm);
- var publyn = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("publyn"));
- model.setValue("/root/main/innrgrupattr/publyn",publyn);
- var cretuserid = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("cretuserid"));
- model.setValue("/root/main/innrgrupattr/cretuserid",cretuserid);
-
- // 수정모드로 표시
- model.setValue("/root/main/innrgrupattr/savemode","U");
-
- model.refresh();
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="521" pageheight="375" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tmpl" scroll="auto" style="left:0px; top:0px; width:501px; height:338px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">내부고객그룹리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
- <datagrid id="grd_innrgrup" nodeset="/root/main/innrgruplist" caption="내부그룹ID^내부그룹명^공유여부^" colwidth="100, 250, 100," dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" tooltip="true" style="left:0px; top:30px; width:499px; height:204px; ">
- <col ref="innrgrupid"/>
- <col ref="innrgrupnm"/>
- <col ref="publyn"/>
- <col ref="cretuserid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_innrgrup.isCell(event.target) && grd_innrgrup.row >= grd_innrgrup.fixedRows ){
- fGetInnrGrupAttr(); //내부고객그룹 정보조회
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:244px; width:130px; height:13px; ">내부고객그룹정보</caption>
- <button id="btn_init" class="btn5_letter3" style="left:332px; top:238px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInnrGrup(); // 내부고객그룹초기화
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn5_letter2" style="left:388px; top:238px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelInnrGrup(); // 내부고객그룹삭제
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter4" style="left:433px; top:238px; width:64px; height:19px; ">
- <caption>그룹저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveInnrGrup(); // 내부고객그룹저장
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:259px; x2:500px; y2:259px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:286px; x2:499px; y2:286px; "/>
- <caption id="cap_innrgrupnm" class="cell_1" style="left:0px; top:263px; width:105px; height:23px; text-align:center; vertical-align:middle; ">내부고객그룹명</caption>
- <input id="ipt_innrgrupnm" ref="/root/main/innrgrupattr/innrgrupnm" class="input_essential" navindex="1" style="left:108px; top:264px; width:187px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:311px; x2:499px; y2:311px; "/>
- <caption id="cap_publyn" class="cell_1" style="left:0px; top:288px; width:105px; height:23px; text-align:center; vertical-align:middle; ">공유여부</caption>
- <select1 id="rdo_useyn" ref="/root/main/innrgrupattr/publyn" overflow="visible" appearance="full" cellspacing="15" cols="2" style="left:108px; top:289px; width:112px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:313px; width:105px; height:23px; text-align:center; vertical-align:middle; ">생성자ID</caption>
- <line id="line2" class="line_3" style="x1:0px; y1:336px; x2:499px; y2:336px; "/>
- <output id="opt_cretuserid" ref="/root/main/innrgrupattr/cretuserid" class="output_fix" navindex="1" style="left:108px; top:314px; width:187px; height:19px; "/>
- <caption id="output1" style="left:225px; top:290px; width:172px; height:20px; ">(동일 근무지 부서내 공유 여부)</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:338px; width:501px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|