modify_address_list_process.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:2k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="com.vnex.intranet.addresslist.value.ContactXValueBean" %>
- <jsp:useBean id="addressProxy" scope="request" class="com.vnex.intranet.addresslist.proxy.AddressProxyBean" />
- <jsp:useBean id="avb" scope="request" class="com.vnex.intranet.addresslist.value.AddresslistValueBean" />
- <jsp:setProperty name="avb" property="*" />
- <%
- String[] cgs = request.getParameterValues("contactGrp");
- if(cgs != null)
- {
- Vector vect = new Vector();
- for(int i=0;i<cgs.length;i++)
- {
- if(cgs[i].equals("0"))
- continue;
- ContactXValueBean cvb = new ContactXValueBean();
- cvb.setContactId(Integer.parseInt(request.getParameter("contactId")));
- cvb.setGroupId(Integer.parseInt(cgs[i]));
- vect.add(cvb);
- }
- avb.setContactGroup(vect);
- }
- String bDate = request.getParameter("bDate");
- if(! bDate.equals(""))
- {
- bDate += " 00:00:00";
- Calendar cal = TimeStamp.convertTimestampToCalendar(TimeStamp.toTimestamp(bDate));
- avb.setBirthday(cal);
- }
- avb.setContactId(Integer.parseInt(request.getParameter("contactId")));
- addressProxy.modifyBook(avb);
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location = "/mainctrl/addressbook/home?start=<%=request.getParameter("start")%>";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- </body>
- <html>