public void bind()
    {
        long   CurrPage   = 0;
        long   TotalCount = 0;
        string strWhere   = " ReportMan=''";

        if (Request.QueryString["InfoID"] != null)
        {
            strWhere = "  InfoID='" + Request.QueryString["InfoID"].ToString() + "'";
        }
        DataTable dt = dal.GetList("InfoReportViw", "ID", "*", strWhere, "ID desc", ref CurrPage, 15, ref TotalCount);

        InfoList.DataSource = dt;
        InfoList.DataBind();
    }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //绑定工作计划
                Repeater1.DataSource = WebBLL.Tbl_InfoManager.GetDataTableByPage(5, 1, "(classid='院级工作' or classid='部门工作')", "id desc");
                Repeater1.DataBind();

                //绑定内部消息
                InfoList.DataSource = WebBLL.Tbl_MessageManager.GetDataTableByPage(5, 1, "UserNameTo like '%" + WebCommon.Public.GetUserName() + "%'", "");
                InfoList.DataBind();

                //绑定新闻公告
                InfoList2.DataSource = WebBLL.Tbl_InfoManager.GetDataTableByPage(5, 1, "(classid<>'院级工作' and classid<>'部门工作' and status='已审核')", "AddDate desc");
                InfoList2.DataBind();
            }
        }