AddressListAdd.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:11k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <!--jsp:include page="/CheckLogin.jsp" flush="true"/-->
- <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>名片夹管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js">
- </script>
- <script language="JavaScript" type="text/javascript">
- function checkAddAddressList()
- {
- if(document.addaddresslist.Name.value=="")
- {
- alert("请输入姓名!");
- document.addaddresslist.Name.focus();
- return false;
- }
- if(document.addaddresslist.BirthDate.value!="")
- {
- if(!isDate(document.addaddresslist.BirthDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addaddresslist.BirthDate.focus();
- return false;
- }
- }
- if(document.addaddresslist.KindsID.value=="0")
- {
- alert("请选择名片夹分类!");
- document.addaddresslist.KindsID.focus();
- return false;
- }
- }
- </script>
- </head>
- <body>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">新增名片</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- <%
- Request t_request = new Request(request);
- int intUserID = m_session.GetInt("UserID");
- int intKindsID = t_request.GetInt("KindsID");
- String strKindsIDs = "";
- Vector vtKinds = AddressKindManager.getAllRecord(intUserID);
- if(vtKinds.size()>0)
- {
- %>
- <form name="addaddresslist" action="AddAddressListAction.jsp" method="post" onSubmit="javascript:return checkAddAddressList();">
- <table border="1" cellpadding="1" cellspacing="1" width="90%">
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">姓 名: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="Name" type="text" maxlength="50">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">性 别: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <font color="#0A0A0A"><input name="Sex" type="radio" value="男" checked>男 <input name="Sex" type="radio" value="女" >女</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">名片夹分类: </font></td>
- <td align="left" valign="middle" nowrap>
- <select name="KindsID">
- <option value="0" <%if(intKindsID==0)out.print("selected");%>>请选择名片夹分类</option>
- <%
- Vector vt_Kinds = AddressKindManager.getAllRecord(intUserID);
- for(int i=0;i<vt_Kinds.size();i++)
- {
- if(((Vector)vt_Kinds.get(i)).get(0).toString().equalsIgnoreCase("" + intKindsID))
- out.println("<option value="" + ((Vector)vt_Kinds.get(i)).get(0).toString() + "" selected>" + ((Vector)vt_Kinds.get(i)).get(1).toString() + "</option>");
- else
- out.println("<option value="" + ((Vector)vt_Kinds.get(i)).get(0).toString() + "">" + ((Vector)vt_Kinds.get(i)).get(1).toString() + "</option>");
- }
- %>
- </select>
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">出生日期: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="BirthDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value,-100,-2);" maxlength="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value,-100,-2);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">移动电话: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="MobileNum" type="text" maxlength="50">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">家庭电话: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="HomeTel" type="text" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">单位电话: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="OfficeTel" type="text" maxlength="50">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">传真号码: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Fax" type="text" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">工作单位: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Company" type="text" maxlength="30">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">职 务: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Place" type="text" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">单位地址: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <input name="CompanyAddr" type="text" maxlength="100" size="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">家庭地址: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <input name="HomeAddr" type="text" maxlength="100" size="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">QQ号码: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="QQNumber" type="text" maxlength="50">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">MSN号码: </font></td>
- <td align="left" valign="middle" nowrap>
- <input name="MsnNumber" type="text" maxlength="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">电子信箱:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="E_mail" type="text" maxlength="30">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">是否共享: </font></td>
- <td align="left" valign="middle" nowrap>
- <font color="#0A0A0A"><input name="IsOpen" type="radio" value="1">公开共享 <input name="IsOpen" type="radio" value="0" checked>私人保密</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">备 注:</font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <textarea name="Remark" cols="70" rows="3"></textarea>
- </td>
- </tr>
- </table>
- <table width="90%" border="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td align="right" valign="middle" nowrap>
- <input type="submit" value="添 加" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- </tr>
- </table>
- </form>
- <%
- }
- else
- {
- out.println("<script language="javascript">alert("您还没有建立名片夹分类,请先建立名片夹分类!");window.location="AddressKindManage.jsp";</script>");
- }
- %>
- </td>
- </tr>
- </table>
- </body>
- </html>