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

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Linkman.ListView" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>联系人列表</title>
  6. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <script>
  13. function selectAll()
  14. {
  15. var len=document.ListView.elements.length;
  16. var i;
  17.     for (i=0;i<len;i++){
  18. if (document.ListView.elements[i].type=="checkbox"){
  19.         document.ListView.elements[i].checked=!document.ListView.elements[i].checked;
  20.  }
  21. }
  22. }
  23. </script>
  24. </HEAD>
  25. <body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
  26. <form id="ListView" method="post" runat="server">
  27. <TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  28. <TR height="30">
  29. <TD class="GbText" width="24" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  30. style="HEIGHT: 29px"><FONT color="#003366" size="3"><IMG height="16" src="../../DataImages/myLinkMan.GIF" width="16"></FONT></TD>
  31. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6" width="80"
  32. align="right" style="HEIGHT: 29px"><font color="#006699">我的联系人</font></TD>
  33. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6" align="right"
  34. style="HEIGHT: 29px">
  35. <asp:dropdownlist id="ddl_CustomLinkmanType" runat="server" Visible="False" AutoPostBack="True" Width="100px"></asp:dropdownlist>&nbsp;<INPUT type="button" value="查 询" class="redbuttoncss" onclick="location.href='Search/index.aspx'">
  36. <INPUT id="btn_SelAll" onclick="selectAll()" type="button" value="全 选" class="redbuttoncss">&nbsp;
  37. <asp:button id="btn_Del" runat="server" Text="删 除" CssClass="redbuttoncss"></asp:button></TD>
  38. </TR>
  39. <tr>
  40. <td height="8" colspan="3"></td>
  41. <tr>
  42. </tr>
  43. </TABLE>
  44. <FONT face="宋体">
  45. <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  46. <TR>
  47. <TD>
  48. <TABLE class="gbtext" id="Table6" cellSpacing="0" cellPadding="0" width="100%" border="0">
  49. <TR>
  50. <TD align="center" width="90" background="../../images/maillistbutton1.gif" height="24"
  51. id="td_Staff" runat="server">&nbsp;&nbsp;<asp:linkbutton id="lbtn_Staff" runat="server" CommandArgument="1" CssClass="Newbutton">员工联系人</asp:linkbutton></TD>
  52. <TD align="center" width="90" background="../../images/maillistbutton1.gif" height="24"
  53. id="td_Client" runat="server">&nbsp;<asp:linkbutton id="lbtn_Client" runat="server" CommandArgument="2" CssClass="Newbutton">客户联系人</asp:linkbutton></TD>
  54. <TD align="center" width="90" background="../../images/maillistbutton1.gif" height="24"
  55. id="td_Custom" runat="server">&nbsp;<asp:linkbutton id="lbtn_Custom" runat="server" CommandArgument="3" CssClass="Newbutton">自定义联系人</asp:linkbutton></TD>
  56. <TD align="center" width="90" background="../../images/maillistbutton1.gif" height="24"
  57. id="td_Add" runat="server">&nbsp;<asp:hyperlink id="lbtn_AddLinkman" runat="server" NavigateUrl="AddLinkman.aspx"
  58. CssClass="Newbutton">添加联系人</asp:hyperlink></TD>
  59. <TD align="right">&nbsp;</TD>
  60. </TR>
  61. </TABLE>
  62. <asp:datagrid id="dgrd_CustomLinkman" runat="server" Width="100%" AutoGenerateColumns="False"
  63. AllowPaging="True" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3" PageSize="15">
  64. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  65. <ItemStyle Font-Size="X-Small"></ItemStyle>
  66. <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
  67. <Columns>
  68. <asp:TemplateColumn>
  69. <HeaderStyle Width="20px"></HeaderStyle>
  70. <ItemTemplate>
  71. <asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
  72. </ItemTemplate>
  73. </asp:TemplateColumn>
  74. <asp:TemplateColumn HeaderText="姓名">
  75. <ItemTemplate>
  76. <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "CustomLinkmanInfo.aspx?ID="+DataBinder.Eval(Container,"DataItem.ID") %>' Target=_blank>
  77. </asp:HyperLink>
  78. </ItemTemplate>
  79. </asp:TemplateColumn>
  80. <asp:BoundColumn DataField="sexname" HeaderText="性别"></asp:BoundColumn>
  81. <asp:TemplateColumn HeaderText="手机">
  82. <ItemTemplate>
  83. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
  84. </asp:Label>
  85. </ItemTemplate>
  86. <EditItemTemplate>
  87. <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
  88. </asp:TextBox>
  89. </EditItemTemplate>
  90. </asp:TemplateColumn>
  91. <asp:BoundColumn DataField="email" HeaderText="Email"></asp:BoundColumn>
  92. <asp:BoundColumn DataField="unitaddress" HeaderText="单位地址"></asp:BoundColumn>
  93. <asp:BoundColumn DataField="unittelephone" HeaderText="单位电话"></asp:BoundColumn>
  94. <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="CustomLinkmanInfo.aspx?ID={0}">
  95. <HeaderStyle Width="10px"></HeaderStyle>
  96. </asp:HyperLinkColumn>
  97. </Columns>
  98. <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  99. </asp:datagrid>
  100. <asp:datagrid id="dgrd_ClientLinkman" runat="server" Width="100%" AutoGenerateColumns="False"
  101. AllowPaging="True" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3" PageSize="15">
  102. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  103. <ItemStyle Font-Size="X-Small"></ItemStyle>
  104. <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
  105. <Columns>
  106. <asp:TemplateColumn>
  107. <HeaderStyle Width="20px"></HeaderStyle>
  108. <ItemTemplate>
  109. <asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
  110. </ItemTemplate>
  111. </asp:TemplateColumn>
  112. <asp:TemplateColumn HeaderText="姓名">
  113. <ItemTemplate>
  114. <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "../CM/Linkman.aspx?LinkmanID="+DataBinder.Eval(Container,"DataItem.ID")+"&from=mylinkman"%>' Target=_blank>
  115. </asp:HyperLink>
  116. </ItemTemplate>
  117. </asp:TemplateColumn>
  118. <asp:TemplateColumn HeaderText="手机">
  119. <ItemTemplate>
  120. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
  121. </asp:Label>
  122. </ItemTemplate>
  123. <EditItemTemplate>
  124. <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
  125. </asp:TextBox>
  126. </EditItemTemplate>
  127. </asp:TemplateColumn>
  128. <asp:BoundColumn DataField="telephone" HeaderText="电话"></asp:BoundColumn>
  129. <asp:BoundColumn DataField="email" HeaderText="Email"></asp:BoundColumn>
  130. <asp:BoundColumn DataField="unitname" HeaderText="单位"></asp:BoundColumn>
  131. <asp:BoundColumn DataField="position" HeaderText="职务"></asp:BoundColumn>
  132. <asp:BoundColumn DataField="address" HeaderText="家庭地址"></asp:BoundColumn>
  133. <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="../CM/Linkman.aspx?LinkmanID={0}&amp;from=mylinkman">
  134. <HeaderStyle Width="10px"></HeaderStyle>
  135. </asp:HyperLinkColumn>
  136. </Columns>
  137. <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  138. </asp:datagrid><asp:datagrid id="dgrd_StaffLinkman" runat="server" AllowPaging="True" AutoGenerateColumns="False"
  139. Width="100%" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3" PageSize="15">
  140. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  141. <ItemStyle Font-Size="X-Small"></ItemStyle>
  142. <HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  143. <Columns>
  144. <asp:TemplateColumn>
  145. <HeaderStyle Width="20px"></HeaderStyle>
  146. <ItemTemplate>
  147. <asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
  148. </ItemTemplate>
  149. </asp:TemplateColumn>
  150. <asp:TemplateColumn HeaderText="真实姓名">
  151. <ItemTemplate>
  152. <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.realname") %>' NavigateUrl='<%# "../UnitiveDocument/Mail/Compose.aspx?Action=3&ClassID=0&Username="+ DataBinder.Eval(Container.DataItem,"staff_Name")+"&Name="+DataBinder.Eval(Container,"DataItem.RealName") %>' Target=_blank >
  153. </asp:HyperLink>
  154. </ItemTemplate>
  155. </asp:TemplateColumn>
  156. <asp:TemplateColumn HeaderText="手机">
  157. <ItemTemplate>
  158. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
  159. </asp:Label>
  160. </ItemTemplate>
  161. </asp:TemplateColumn>
  162. <asp:BoundColumn DataField="Age" HeaderText="年龄"></asp:BoundColumn>
  163. <asp:BoundColumn DataField="SexName" HeaderText="性别"></asp:BoundColumn>
  164. <asp:BoundColumn DataField="Email" HeaderText="Email"></asp:BoundColumn>
  165. <asp:BoundColumn DataField="Position_Name" HeaderText="所属职位"></asp:BoundColumn>
  166. <asp:BoundColumn DataField="RQ" HeaderText="注册日期"></asp:BoundColumn>
  167. <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="StaffInfo.aspx?Staff_ID={0}">
  168. <HeaderStyle Width="10px"></HeaderStyle>
  169. </asp:HyperLinkColumn>
  170. </Columns>
  171. <PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
  172. </asp:datagrid>
  173. </TD>
  174. </TR>
  175. </TABLE>
  176. </FONT>
  177. </form>
  178. </body>
  179. </HTML>