37 lines
976 B
C#
37 lines
976 B
C#
|
|
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Collections;
|
|
using System.Web;
|
|
using System.Linq;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class DocFile_PeiXunRiJi : System.Web.UI.Page
|
|
{
|
|
public List<ERPPeiXunRiJi> EmailList = new List<ERPPeiXunRiJi>();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|
|
|
DataBindToGridview();
|
|
|
|
}
|
|
}
|
|
public void DataBindToGridview()
|
|
{
|
|
DataEntityDataContext context = new DataEntityDataContext();
|
|
ZWL.BLL.ERPPeiXunRiJi MyLanEmail = new ZWL.BLL.ERPPeiXunRiJi();
|
|
var T = context.ERPPeiXunRiJi.Where(p => p.ID > 0).OrderByDescending(p => p.ID);
|
|
EmailList = T.ToList();
|
|
|
|
}
|
|
}
|