|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Security;
|
|
|
|
|
using System.Web.UI;
|
|
|
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
using System.Web.UI.WebControls.WebParts;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using DSWeb.DataAccess;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using DSWeb.EntityDA;
|
|
|
|
|
using System.Web.Script.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.CRM
|
|
|
|
|
{
|
|
|
|
|
public partial class CRMClientSaleIndex : System.Web.UI.Page
|
|
|
|
|
{
|
|
|
|
|
public string strHandleType = String.Empty;
|
|
|
|
|
public string sSQL = String.Empty;
|
|
|
|
|
public string gvid = String.Empty;
|
|
|
|
|
public string strUserID = String.Empty;
|
|
|
|
|
public string strCompanyID;//公司GID
|
|
|
|
|
public string strShowName;//用户显示名
|
|
|
|
|
public string strDeptName;//部门名称
|
|
|
|
|
MoneyConvert MoneyConvert = new MoneyConvert();
|
|
|
|
|
TopSeaeEntity TopSeaeEntity = new TopSeaeEntity();
|
|
|
|
|
SeaExportInfoDA SeaExportInfoDA = new SeaExportInfoDA();
|
|
|
|
|
RangeDA RangeDA = new RangeDA();
|
|
|
|
|
T_ALL_DA T_ALL_DA = new T_ALL_DA();
|
|
|
|
|
public int isOpenAnnounce;
|
|
|
|
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (Session["USERID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strUserID = Session["USERID"].ToString().Trim();
|
|
|
|
|
this.hdUserID.Value = strUserID.Trim();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Server.Transfer("~/Error/FriendError.aspx");
|
|
|
|
|
return;
|
|
|
|
|
//strUserID = "1BEC90E1-9780-472F-90C2-0C6390C044A4";
|
|
|
|
|
//Session["USERID"] = "1BEC90E1-9780-472F-90C2-0C6390C044A4";
|
|
|
|
|
}
|
|
|
|
|
if (Session["SHOWNAME"] != null)
|
|
|
|
|
{
|
|
|
|
|
strShowName = Session["SHOWNAME"].ToString();
|
|
|
|
|
}
|
|
|
|
|
if (Session["COMPANYID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strCompanyID = Session["COMPANYID"].ToString();
|
|
|
|
|
}
|
|
|
|
|
if (Session["DEPTNAME"] != null)
|
|
|
|
|
{
|
|
|
|
|
strDeptName = Session["DEPTNAME"].ToString();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
getdl();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void getdl()
|
|
|
|
|
{
|
|
|
|
|
//T_ALL_DA T_ALL_DA = new T_ALL_DA();
|
|
|
|
|
////消息
|
|
|
|
|
//string sSQL = "select top 3 * from sys_message where RECEIVER='" + strUserID.Trim() + "' and ISREAD=0 order by CREATETIME desc";
|
|
|
|
|
//DataSet DS = T_ALL_DA.GetAllSQL(sSQL);
|
|
|
|
|
//dlGong.DataSource = DS;
|
|
|
|
|
//dlGong.DataBind();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 截取字符串
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="o"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string GetTitle(string o, int num)
|
|
|
|
|
{
|
|
|
|
|
if (o.Length > num)
|
|
|
|
|
{
|
|
|
|
|
o = o.Substring(0, num) + "...";
|
|
|
|
|
}
|
|
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
public string GetTitle(object o, int num)
|
|
|
|
|
{
|
|
|
|
|
string str = o.ToString();
|
|
|
|
|
if (str.Length > num)
|
|
|
|
|
{
|
|
|
|
|
str = str.Substring(0, num) + "...";
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|