employee_group_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex"%>
- <%@ taglib uri="/vnex_employee_group.tld" prefix="employee"%>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="employeeGroupProxy" scope="application" class="com.vnex.intranet.employee.proxy.EmployeeGroupProxyBean" />
- <jsp:useBean id="egvb" scope="request" class="com.vnex.intranet.employee.value.EmployeeGroupValueBean" />
- <%
- int groupId = Integer.parseInt(request.getParameter("groupId"));
- egvb = employeeGroupProxy.getGroupDetail(groupId);
- String condition = egvb.generateCondition(false);
- String employeeCondition = egvb.generateCondition(true);
- String backStart = request.getParameter("backStart");
- String start = "1";
- String pageTo = "/mainctrl/employeegroup/detail?groupId="+groupId+"&backStart="+backStart;
- if(request.getParameter("start") != null)
- start = request.getParameter("start");
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language="JavaScript">
- function modify(form)
- {
- if(checkIt(form))
- {
- form.action = "/mainctrl/employeegroup/modify?groupId=<%=groupId%>&start=<%=start%>";
- form.submit();
- }
- }
- function releaseAll(listObj)
- {
- for(i=0;i<listObj.length;i++)
- {
- listObj.options[i].selected = false;
- }
- }
- function checkIt(form)
- {
- if(isEmpty(form.groupName.value) || isEmptyStr(form.groupName.value))
- {
- alert("组名不能为空.");
- form.groupName.focus();
- return false;
- }
- if(isContainInvalidChar(form.groupName.value, "'"))
- {
- alert("组名中不能包含单引号");
- form.groupName.focus();
- return false;
- }
- if("<%=egvb.getGroupName()%>" == form.groupName.value)
- {
- alert("你没有做任何改动");
- form.groupName.focus();
- return false;
- }
- return true;
- }
- function addMember(form)
- {
- if(isSelectedFromList(form.employeeId))
- {
- form.action="/mainctrl/employeegroup/addmember?groupId=<%=groupId%>";
- form.submit();
- }
- else
- alert("请选择至少一位成员再进行添加操作");
- }
- function removeMember(form)
- {
- if(form.empIds == null)
- {
- alert("目前尚未有成员可供删除");
- return;
- }
- if(!isChecked(form.empIds))
- {
- alert("请至少选择一位成员再进行删除");
- return;
- }
- if(confirm("是否删除所选成员?"))
- {
- form.action="/mainctrl/employeegroup/deletemember?groupId=<%=groupId%>"
- form.submit();
- }
- }
- function deleteIt(form)
- {
- if(confirm("是否删除本记录?"))
- {
- form.action="/mainctrl/employeegroup/deleteOne?groupId=<%=groupId%>";
- form.submit();
- }
- }
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- </script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <DIV align=center>
- <form name="form1" method="post" action="">
- <input type="hidden" name="backStart" value="<%=backStart%>">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/public/main"><font color="#ffffff">公用信息</font></a>>>
- <a href="/mainctrl/employeegroup/home"><font color="#ffffff">员工通讯组</font></a>>>
- 组别详细信息</font>
- </td>
- </tr>
- <tr bgcolor="#ffffff" height="30">
- <td><strong> 组名:</strong>
- <input type="text" name="groupName" maxlength="50" size="20" class="text" value="<%=FieldUtil.filterQuotTag(egvb.getGroupName())%>">
- <input type="button" name="button1" value="修改组名" class="text" onclick="modify(this.form)" style="width:60px">
-
- <input type="button" name="button2" value="删除" class="text" onclick="deleteIt(this.form)">
-
- <input type="button" name="button5" value="返回" class="text" onclick="location='/mainctrl/employeegroup/home?start=<%=backStart%>'">
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa">
- <td width="33%"><strong> 请为此通讯组选择组内成员:</strong><br> <<按住Ctrl键可多选>></td>
- <td>
- <select name="employeeId" size="8" multiple style="width:144px">
- <employee:employeeTag queryStr="<%=condition%>" />
- </select>
- <input type="button" class="text" name="button3" value="添加新成员" onclick="addMember(this.form)" style="width:70px">
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa" height="30">
- <td colspan="6">
- <input type="button" class="text" name="button4" value="删除成员" onclick="removeMember(this.form)" style="width:60px">
- </td>
- </tr>
- <tr align="center">
- <td width="7%"><strong>选择</strong></td>
- <td align="center"><strong>姓名</strong></td>
- <td align="center"><strong>办公室电话</strong></td>
- <td align="center"><strong>手机</strong></td>
- <td align="center"><strong>传真</strong></td>
- <td align="center"><strong>E-Mail</strong></td>
- </tr>
- <employee:employeeList queryStr="<%=employeeCondition%>">
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td width="7%"><input type="checkbox" name="empIds" value="<employee:employeeAttribute attribute="id"/>"></td>
- <td align="center"><employee:employeeAttribute attribute="name"/></td>
- <td align="center"><employee:employeeAttribute attribute="office_telephone"/></td>
- <td align="center"><employee:employeeAttribute attribute="mobile"/></td>
- <td align="center"><employee:employeeAttribute attribute="fax"/></td>
- <td align="center"><a href="mailto:<employee:employeeAttribute attribute="email"/>"><employee:employeeAttribute attribute="email"/></a></td>
- </tr>
- </vnex:items>
- <tr bgcolor="#e0e0e0">
- <td width="7%" align="center"><input type="checkbox" name="C1" onclick="SelectAll(this.form)"></td>
- <td colspan="5"> 全选
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="6">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </employee:employeeList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>