📄 entetprise.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="ChinaedaCRM.ASPX.entetprise, App_Web_bsmann3t" enableeventvalidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>企业信息</title>
<script type="text/javascript" >
function CheckALL_onclick()
{
var GridView1 = document.getElementById("<%=gvEnlist.ClientID %>");
for(i = 1;i < GridView1.rows.length; i++)
{
GridView1.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = document.getElementById("CheckALL").checked;
}
}
function openeditwindow() {
document.getElementById("EnState").value="1";
var id=openeditwindow.arguments[0];
window.showModalDialog ("enterpriseinfo.aspx?state=1&EnListID="+id.toString(),"null","dialogHeight: 450px;dialogWidth: 550px;status:no;scroll:no;help:no");
document.form1.submit();
}
function openfollowwindow() {
document.getElementById("followState").value="1";
var id=openfollowwindow.arguments[0];
window.showModalDialog ("fillEnFollw.aspx?state=1&id="+id.toString(),"null","dialogHeight: 250px;dialogWidth: 500px;status:no;scroll:no;help:no");
}
function Addfollowwindow() {
var enid=Addfollowwindow.arguments[0];
window.showModalDialog ("fillEnFollw.aspx?state=0&enid="+enid.toString(),"null","dialogHeight: 250px;dialogWidth: 500px;status:no;scroll:no;help:no");
}
function openlinkpelope()
{
var enid=openlinkpelope.arguments[0];
window.showModalDialog("enlinkuserlist.aspx?enid="+enid.toString(),"null","dialogHeight: 500px;dialogWidth: 620px;status:no;scroll:no;help:no");
}
</script>
<style type="text/css" >
#mainDiv
{
margin-left: auto;
margin-right: auto;
width:800px;
height: 600px
}
body{font-size:12px;color:#3C4D82;margin:0;}
.mainTable
{
border:0px #3C4D82 solid;
border-collapse : collapse ;
cellpadding:0 ;
cellspacing:0;
width: 100%;
text-align: center;
}
.mainTable td
{ border:1px #3C4D82 solid;
border-collapse : collapse ;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="mainDiv">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td >
企业名称:<asp:TextBox ID="txtEnName" runat="server" Width="169px"></asp:TextBox>
<asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="搜 索" /></td>
</tr>
<tr>
<td >
<asp:GridView ID="gvEnlist" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvEnlist_RowDataBound" AllowPaging="True" PageSize="15" DataKeyNames="id" Width="95%" CssClass="mainTable" OnSelectedIndexChanging="gvEnlist_SelectedIndexChanging" OnSelectedIndexChanged="gvEnlist_SelectedIndexChanged">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="check" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="序号">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text="<%# this.gvEnlist.PageIndex * this.gvEnlist.PageSize + this.gvEnlist.Rows.Count+ 1 %>"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="EnterprisesName" HeaderText="企业名称" />
<asp:TemplateField HeaderText="客户类型">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EnRegion") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("EnRegion") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Tel" HeaderText="联系电话" />
<asp:BoundField DataField="Email" HeaderText="Email" />
<asp:BoundField DataField="PostNum" HeaderText="邮政编码" />
<asp:BoundField DataField="FollowUser" HeaderText="跟进者" />
<asp:CommandField SelectText="跟踪信息" ShowSelectButton="True" />
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("id", "javascript:openlinkpelope({0});") %>'
Text="联系人"></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="delete" runat="server" CommandArgument='<%# Eval("id") %>' OnClick="delete_Click">删除</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
NextPageText="下一页" PreviousPageText="上一页" />
<PagerStyle HorizontalAlign="Center" />
<PagerTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr >
<td align="left" width="15%" style="height: 34px" >
<input id="CheckALL" type="checkbox" language="javascript" onclick="return CheckALL_onclick()" /><label for=" CheckALL">全选</label>
</td>
<td align="left" width="15%" style="height: 34px">
<asp:LinkButton ID="deleteall" runat="server" OnClick="deleteall_Click">删除所选</asp:LinkButton></td>
<td colspan="4" align=right width="70%" style="height: 34px">
<asp:LinkButton ID="first" runat="server" OnClick="first_Click">第一页</asp:LinkButton> <asp:LinkButton ID="privor" runat="server" OnClick="privor_Click">前一页</asp:LinkButton> <asp:LinkButton ID="next" runat="server" OnClick="next_Click">下一页</asp:LinkButton> <asp:LinkButton ID="last" runat="server" OnClick="last_Click">最后一页</asp:LinkButton></td>
</tr>
</table>
</PagerTemplate>
<SelectedRowStyle BackColor="#C0C0FF" />
</asp:GridView>
</td>
</tr>
<tr>
<td style="height: 46px" >
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%" id="tabTitle" runat="server">
<tr>
<td style="width: 100px; height: 16px">
<asp:Label ID="lblEnName" runat="server"></asp:Label></td>
<td style="width: 100px; height: 16px">
<asp:LinkButton ID="btnFollow" runat="server">添加跟踪信息</asp:LinkButton></td>
<td style="width: 100px; height: 16px">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<asp:GridView ID="gvList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CssClass="mainTable" OnPageIndexChanging="gvList_PageIndexChanging" OnRowDataBound="gvList_RowDataBound"
ShowHeader="False" Width="95%">
<PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
NextPageText="下一页" PreviousPageText="上一页" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table border="1" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td align="left" style="width: 40%">
跟踪时间:<asp:Label ID="Label1" runat="server" Text='<%# Eval("FollowDate","{0:yyyy-MM-dd}") %>'></asp:Label></td>
<td align="left" style="width: 40%">
预约时间:<asp:Label ID="Label2" runat="server" Text='<%# Eval("BookingDate","{0:yyyy-MM-dd}") %>'></asp:Label></td>
<td align="right" style="width: 20%">
<asp:ImageButton ID="btnEdit" runat="server" CommandArgument='<%# Eval("id") %>'
ImageUrl="~/image/write.gif" />
<asp:ImageButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("id") %>'
ImageUrl="~/image/images.jpg" OnClick="btnDelete_Click" /></td>
</tr>
<tr>
<td colspan="3" style="height: 17px" align="left">
<asp:Literal ID="Literal1" runat="server" Text='<%# Eval("memo") %>'></asp:Literal><div>
</div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<asp:HiddenField ID="followState" runat="server" />
<asp:HiddenField ID="EnState" runat="server" />
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -