123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCMZ00400_내부고객등록
- * Summary : 내부고객드록
- * Programmer : 최정환
- * Date Written : 2007.09.06
- * History : 2007.09.06
- * Remark :
- -->
- <?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>
- <list>
- <userlist/>
- </list>
- <innrgrupid/>
- </main>
- <init>
- <innrgruplist>
- <innrgrupid/>
- <innrgrupnm/>
- </innrgruplist>
- </init>
- <send>
- <innrgruplist/>
- </send>
- <hidden/>
- </root>
- </instance>
- <submission id="TRCMZ00301" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/innrgruplist"/>
- <submission id="TXCMZ00401" ref="/root/send/innrgruplist" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRCMZ00301");
-
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 권한체크
- function fCheckAuth() {
- if (!checkAuth("x")) {
- btn_save.disabled = true;
- }
- }
-
- function fSaveInnrGrup() {
- var innrgrupid = model.getValue("/root/main/innrgrupid");
-
- if (grd_userbaseinfo.rows > 1){
- if (innrgrupid == "" || innrgrupid == null) {
- messageBox("내부고객그룹명 ","C002");
- model.setFocus("cmb_msglrgcd");
- } else {
- var rtn = messageBox("아래 목록 전체에 대하여선택한 내부고객 그룹에 추가되게 됩니다.", "Q004");
- if(rtn == 6){
- var count = 0;
- for (i=1; i < grd_userbaseinfo.rows; i++) {
- count = count + 1
- model.makeValue("/root/main/list/userlist[" + count + "]/innrgrupid", innrgrupid);
- }
- grd_userbaseinfo.refresh();
- model.setValue("/root/send/innrgruplist", grd_userbaseinfo.getUpdateDataAll("i"));
- if ( submit("TXCMZ00401") ) {
- messageBox("대상 고객이 선택하신 그룹에 추가 ", "I002");
- }
- }
- }
- } else {
- messageBox("그룹을 추가할 대상 고객이 없습니다. 창을 닫고 고객을 조회하여 선택하신 후 다시 그룹추가를 ","C002");
- model.SetFocus("btn_close");
- }
- }
- ]]>
- </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; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:54px; x2:499px; y2:54px; "/>
- <caption id="cap_innrgrupnm" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">내부고객그룹명</caption>
- <select1 id="cmb_msglrgcd" ref="/root/main/innrgrupid" class="combo_default" appearance="minimal" style="left:108px; top:31px; width:322px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/innrgruplist">
- <label ref="innrgrupnm"/>
- <value ref="innrgrupid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <button id="btn_save" class="btn5_letter4" style="left:433px; top:31px; width:64px; height:19px; ">
- <caption>고객추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveInnrGrup(); // 내부고객그룹저장
- ]]>
- </script>
- </button>
- <datagrid id="grd_userbaseinfo" nodeset="/root/main/list/userlist" caption="사용자ID^사용자명^주민번호^소속기관명^소속기관코드^소속부서명^소속부서코드^E-Mail^휴대전화^내부그룹ID" colwidth="105, 105, 105, 105, 105, 105, 105, 105, 105, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:55px; width:499px; height:283px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col ref="innrclntid"/>
- <col ref="innrclntnm"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="posinstnm"/>
- <col ref="posinstcd" visibility="hidden"/>
- <col ref="posdeptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="email"/>
- <col ref="mpphonno"/>
- <col ref="innrgrupid" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:338px; width:501px; height:27px; ">
- <button id="btn_close" 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>
|