AddLinkman.aspx
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:13k
源码类别:

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="AddLinkman.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Linkman.AddLinkman" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>添加联系人</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. </HEAD>
  12. <body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
  13. <form id="AddLinkman" method="post" runat="server">
  14. <TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  15. <TR height="30">
  16. <TD class="GbText" width="24" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"><FONT color="#003366" size="3"><IMG height="16" src="../../Images/icon/057.GIF" width="16"></FONT></TD>
  17. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6" width="80"
  18. align="right"><font color="#006699">我的联系人</font></TD>
  19. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6" align="right">
  20. 选择联系人类别
  21. <asp:dropdownlist id="ddl_LinkmanType" runat="server" AutoPostBack="True">
  22. <asp:ListItem Value="staff">公司员工</asp:ListItem>
  23. <asp:ListItem Value="client">客户联系人</asp:ListItem>
  24. <asp:ListItem Value="custom">自定义</asp:ListItem>
  25. </asp:dropdownlist>&nbsp;
  26. <asp:Button id="btn_Back" runat="server" Text="返 回" CssClass="redbuttoncss" CausesValidation="False"></asp:Button>&nbsp;
  27. <asp:button id="btn_AddList" runat="server" Text="添 加" CssClass="redbuttoncss"></asp:button></TD>
  28. </TR>
  29. <tr>
  30. <td height="8" colspan="3"></td>
  31. <tr>
  32. </tr>
  33. </TABLE>
  34. <FONT face="宋体">
  35. <TABLE style="BORDER-COLLAPSE: collapse" borderColor="#93bee2" cellSpacing="0" cellPadding="0"
  36. width="100%" align="center" border="0" class="gbtext">
  37. <TR>
  38. <TD width="100%" colSpan="3">
  39. <TABLE class="gbtext" id="Table6" cellSpacing="0" cellPadding="0" width="100%" border="0">
  40. <TR>
  41. <TD align="center" width="90" background="../../images/maillistbutton2.gif" height="24"
  42. class="Newbutton">&nbsp;添加联系人</TD>
  43. <TD align="right" style="WIDTH: 211px">&nbsp;&nbsp;&nbsp;</TD>
  44. <TD align="right">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
  45. </TD>
  46. </TR>
  47. </TABLE>
  48. </TD>
  49. </TR>
  50. <TR>
  51. <TD align="right" width="100%" colSpan="3">
  52. <TABLE id="tbl_Select" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server">
  53. <TR>
  54. <TD width="100%" colSpan="2"><asp:datagrid id="dgrd_List" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True"
  55. Visible="False" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3" PageSize="15">
  56. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  57. <ItemStyle Font-Size="X-Small"></ItemStyle>
  58. <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
  59. <Columns>
  60. <asp:TemplateColumn>
  61. <ItemTemplate>
  62. <asp:CheckBox Runat="server"></asp:CheckBox>
  63. </ItemTemplate>
  64. </asp:TemplateColumn>
  65. <asp:TemplateColumn HeaderText="真实姓名">
  66. <ItemTemplate>
  67. <%#  DataBinder.Eval(Container.DataItem,"Realname")%>
  68. </ItemTemplate>
  69. </asp:TemplateColumn>
  70. <asp:TemplateColumn HeaderText="手机">
  71. <ItemTemplate>
  72. <%#  DataBinder.Eval(Container.DataItem,"Mobile")%>
  73. </ItemTemplate>
  74. </asp:TemplateColumn>
  75. <asp:TemplateColumn HeaderText="年龄">
  76. <ItemTemplate>
  77. <%#  DataBinder.Eval(Container.DataItem,"Age")%>
  78. </ItemTemplate>
  79. </asp:TemplateColumn>
  80. <asp:TemplateColumn HeaderText="性别">
  81. <ItemTemplate>
  82. <%#  DataBinder.Eval(Container.DataItem,"SexName")%>
  83. </ItemTemplate>
  84. </asp:TemplateColumn>
  85. <asp:TemplateColumn HeaderText="Email">
  86. <ItemTemplate>
  87. <%#  DataBinder.Eval(Container.DataItem,"Email")%>
  88. </ItemTemplate>
  89. </asp:TemplateColumn>
  90. <asp:TemplateColumn HeaderText="所在职位">
  91. <ItemTemplate>
  92. <%#  DataBinder.Eval(Container.DataItem,"Position_Name")%>
  93. </ItemTemplate>
  94. </asp:TemplateColumn>
  95. <asp:TemplateColumn HeaderText="注册日期">
  96. <ItemTemplate>
  97. <%#  DataBinder.Eval(Container.DataItem,"RQ")%>
  98. </ItemTemplate>
  99. </asp:TemplateColumn>
  100. </Columns>
  101. <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  102. </asp:datagrid><asp:datagrid id="dgrd_Linkman" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True"
  103. Visible="False" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3">
  104. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  105. <ItemStyle Font-Size="X-Small"></ItemStyle>
  106. <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
  107. <Columns>
  108. <asp:TemplateColumn>
  109. <ItemTemplate>
  110. <asp:CheckBox Runat="server" ID="Checkbox1"></asp:CheckBox>
  111. </ItemTemplate>
  112. </asp:TemplateColumn>
  113. <asp:TemplateColumn HeaderText="姓名">
  114. <ItemTemplate>
  115. <%#  DataBinder.Eval(Container.DataItem,"Name")%>
  116. </ItemTemplate>
  117. </asp:TemplateColumn>
  118. <asp:TemplateColumn HeaderText="手机">
  119. <ItemTemplate>
  120. <%#  DataBinder.Eval(Container.DataItem,"Mobile")%>
  121. </ItemTemplate>
  122. </asp:TemplateColumn>
  123. <asp:TemplateColumn HeaderText="电话">
  124. <ItemTemplate>
  125. <%#  DataBinder.Eval(Container.DataItem,"Telephone")%>
  126. </ItemTemplate>
  127. </asp:TemplateColumn>
  128. <asp:TemplateColumn HeaderText="Email">
  129. <ItemTemplate>
  130. <%#  DataBinder.Eval(Container.DataItem,"Email")%>
  131. </ItemTemplate>
  132. </asp:TemplateColumn>
  133. <asp:TemplateColumn HeaderText="单位">
  134. <ItemTemplate>
  135. <%#  DataBinder.Eval(Container.DataItem,"UnitName")%>
  136. </ItemTemplate>
  137. </asp:TemplateColumn>
  138. <asp:TemplateColumn HeaderText="职务">
  139. <ItemTemplate>
  140. <%#  DataBinder.Eval(Container.DataItem,"Position")%>
  141. </ItemTemplate>
  142. </asp:TemplateColumn>
  143. <asp:TemplateColumn HeaderText="家庭住址">
  144. <ItemTemplate>
  145. <%#  DataBinder.Eval(Container.DataItem,"Address")%>
  146. </ItemTemplate>
  147. </asp:TemplateColumn>
  148. </Columns>
  149. <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  150. </asp:datagrid></TD>
  151. </TR>
  152. <TR>
  153. </TR>
  154. </TABLE>
  155. <TABLE id="tbl_Custom" style="BORDER-COLLAPSE: collapse" borderColor="#93bee2" cellSpacing="0"
  156. cellPadding="0" width="100%" align="center" border="1" class="gbtext" runat="server">
  157. <TR>
  158. <TD style="WIDTH: 73px" height="24" bgcolor="#e8f4ff">&nbsp;姓名</TD>
  159. <TD height="24" style="WIDTH: 82px">&nbsp;<asp:textbox id="tbx_Name" runat="server" CssClass="inputcss"></asp:textbox>
  160. <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="不能为空" ControlToValidate="tbx_Name"
  161. Display="Dynamic"></asp:RequiredFieldValidator></TD>
  162. <TD height="24" bgcolor="#e8f4ff">&nbsp;性别</TD>
  163. <TD height="24" style="WIDTH: 128px">&nbsp;<SELECT id="ddl_Gender" name="Select1" runat="server">
  164. <OPTION value="1" selected>男</OPTION>
  165. <OPTION value="0">女</OPTION>
  166. </SELECT></TD>
  167. <TD height="24" bgcolor="#e8f4ff">&nbsp;年&nbsp;&nbsp;&nbsp; 龄</TD>
  168. <TD height="24">&nbsp;<asp:textbox id="tbx_Age" runat="server" CssClass="inputcss" Width="56px"></asp:textbox>
  169. <asp:RangeValidator id="RangeValidator1" runat="server" Display="Dynamic" ControlToValidate="tbx_Age"
  170. ErrorMessage="年龄错误" MinimumValue="1" MaximumValue="200" Type="Integer"></asp:RangeValidator></TD>
  171. </TR>
  172. <TR>
  173. <TD style="WIDTH: 73px" height="24" bgcolor="#e8f4ff">&nbsp;单位地址</TD>
  174. <TD height="24" style="WIDTH: 82px">&nbsp;<asp:textbox id="tbx_UnitAddress" runat="server" CssClass="inputcss"></asp:textbox></TD>
  175. <TD height="24" bgcolor="#e8f4ff">&nbsp;单位电话</TD>
  176. <TD height="24" style="WIDTH: 128px">&nbsp;<asp:textbox id="tbx_UnitTelephone" runat="server" CssClass="inputcss"></asp:textbox>
  177. <asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ErrorMessage="输入数字" ControlToValidate="tbx_UnitTelephone"
  178. Display="Dynamic" ValidationExpression="d*"></asp:RegularExpressionValidator></TD>
  179. <TD align="left" height="24" bgcolor="#e8f4ff">&nbsp;单位邮编</TD>
  180. <TD height="24">&nbsp;<asp:textbox id="tbx_UnitZip" runat="server" CssClass="inputcss" Width="57px"></asp:textbox>
  181. <asp:RegularExpressionValidator id="RegularExpressionValidator6" runat="server" ErrorMessage="邮编错误" ControlToValidate="tbx_UnitZip"
  182. Display="Dynamic" ValidationExpression="d{6}"></asp:RegularExpressionValidator></TD>
  183. </TR>
  184. <TR>
  185. <TD style="WIDTH: 73px" height="24" bgcolor="#e8f4ff">&nbsp;家庭地址</TD>
  186. <TD height="24" style="WIDTH: 82px">&nbsp;<asp:textbox id="tbx_FamilyAddress" runat="server" CssClass="inputcss"></asp:textbox></TD>
  187. <TD height="24" bgcolor="#e8f4ff">&nbsp;家庭电话</TD>
  188. <TD height="24" style="WIDTH: 128px">&nbsp;<asp:textbox id="tbx_FamilyTelephone" runat="server" CssClass="inputcss"></asp:textbox>
  189. <asp:RegularExpressionValidator id="RegularExpressionValidator3" runat="server" ErrorMessage="输入数字" ControlToValidate="tbx_FamilyTelephone"
  190. Display="Dynamic" ValidationExpression="d*"></asp:RegularExpressionValidator></TD>
  191. <TD height="24" bgcolor="#e8f4ff">&nbsp;家庭邮编</TD>
  192. <TD height="24">&nbsp;<asp:textbox id="tbx_FamilyZip" runat="server" CssClass="inputcss" Width="59px"></asp:textbox>
  193. <asp:RegularExpressionValidator id="RegularExpressionValidator7" runat="server" ErrorMessage="邮编错误" ControlToValidate="tbx_FamilyZip"
  194. Display="Dynamic" ValidationExpression="d{6}"></asp:RegularExpressionValidator></TD>
  195. </TR>
  196. <TR>
  197. <TD style="WIDTH: 73px" height="24" bgcolor="#e8f4ff">&nbsp;手机</TD>
  198. <TD height="24" style="WIDTH: 82px">&nbsp;<asp:textbox id="tbx_Mobile" runat="server" CssClass="inputcss"></asp:textbox>
  199. <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="输入数字" ControlToValidate="tbx_Mobile"
  200. ValidationExpression="d*" Display="Dynamic"></asp:RegularExpressionValidator></TD>
  201. <TD height="24" bgcolor="#e8f4ff">&nbsp;E-Mail</TD>
  202. <TD height="24" style="WIDTH: 128px">&nbsp;<asp:textbox id="tbx_Email" runat="server" CssClass="inputcss"></asp:textbox>
  203. <asp:RegularExpressionValidator id="RegularExpressionValidator4" runat="server" ErrorMessage="格式错误" Display="Dynamic"
  204. ControlToValidate="tbx_Email" ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"></asp:RegularExpressionValidator></TD>
  205. <TD height="24"></TD>
  206. <TD height="24"></TD>
  207. </TR>
  208. <TR>
  209. <TD style="WIDTH: 73px" height="24" bgcolor="#e8f4ff">&nbsp;类别</TD>
  210. <TD colSpan="5" height="24"><asp:datalist id="dlt_Type" runat="server" RepeatDirection="Horizontal" RepeatColumns="10" HorizontalAlign="Left"
  211. Font-Size="X-Small">
  212. <ItemTemplate>
  213. <asp:CheckBox Runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Type") %>' EnableViewState=True>
  214. </asp:CheckBox>
  215. </ItemTemplate>
  216. </asp:datalist></TD>
  217. </TR>
  218. <TR>
  219. <TD style="WIDTH: 73px; HEIGHT: 99px" vAlign="top" align="left" bgcolor="#e8f4ff">&nbsp;备注</TD>
  220. <TD style="HEIGHT: 99px" vAlign="top" colSpan="5"><asp:textbox id="tbx_Memo" runat="server" Width="581px" Height="95px" TextMode="MultiLine"></asp:textbox></TD>
  221. </TR>
  222. <TR>
  223. <TD align="center" colSpan="6" height="40"><asp:button id="btn_OK" runat="server" Text=" 确 认 " CssClass="buttoncss"></asp:button></TD>
  224. </TR>
  225. </TABLE>
  226. </TD>
  227. </TR>
  228. </TABLE>
  229. </FONT>
  230. </form>
  231. </body>
  232. </HTML>