/// <summary> /// 绑定数据 /// </summary> private void LoadTaskList() { m_dtbLeader = OAList.GetGSLDToTable(); //当前登录用户账号 String l_strUserName = CurrentUserInfo.UserName; //得到检索条件 M_EntityMenu l_entityTask = GetSearchCondition(); B_Circulate l_busTaskList = new B_Circulate(String.Empty); l_entityTask.Start = gvTaskList.PageIndex * gvTaskList.PageSize; l_entityTask.End = gvTaskList.PageIndex * gvTaskList.PageSize + gvTaskList.PageSize; l_entityTask.Sort = SortExpression; //得到待阅文件列表数据 DataTable l_dtbDataTable = l_busTaskList.GetWaitingReadList(l_entityTask); //绑定数据 this.gvTaskList.RecordCount = l_entityTask.RowCount; this.gvTaskList.DataSource = l_dtbDataTable; this.gvTaskList.DataBind(); }