tycrm/Fenxi/Gengzong/JiaoWangTop.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using qpsmartweb.Public;
namespace tycrm.Fenxi.Gengzong
{
public partial class JiaoWangTop : System.Web.UI.Page
{
Db List = new Db();
BindDrowDownList list = new BindDrowDownList();
protected void Page_Load(object sender, EventArgs e)
{
if (this.Session["username"] == null)
{
this.Response.Write("<script language=javascript>alert('登陆超时!');window.parent.location = '/main_d.aspx'</script>");
return;
}
if (!Page.IsPostBack)
{
DataBindToGridview(SortText.Value);
}
}
public void DataBindToGridview(string Sqlsort)
{
string SqlStrStart = "select top 10 A.id,A.ZhuJiJc,A.Name,A.SetTimes,A.Realname,A.Username, (select count(id) from [qp_crm_JiaoWang] where [KhId] = [A].id) as allPoint from [qp_crm_Customer] as [A] where (select count(id) from [qp_crm_JiaoWang] where [KhId] = [A].id)!='0' and A.IfDel=0 and CHARINDEX(','+A.Username+',',','+(select RyUsername from qp_crm_JianKong where ZgUsername='" + Session["username"] + "')+',') > 0 order by allPoint desc";
GridView1.DataSource = List.GetGrid_Pages_not(SqlStrStart);
GridView1.DataBind();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
DataControlRowType itemType = e.Row.RowType;
if (e.Row.RowType == DataControlRowType.Header || e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "javascript:setMouseOverColor(this);";
e.Row.Attributes["onmouseout"] = "javascript:setMouseOutColor(this);";
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
