예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int count = CloudSQL.GetMsg().Count;

        if (count > 0)
        {
            MsgCount = count + "";
        }
        View_PCList condition = new View_PCList();
        View_PCList value     = new View_PCList();

        condition.ExhibitionID = AdminMethod.ExhibitionID;
        m_tableManageList      = TableOperate <View_PCList> .Select(value, condition);

        DataBind();
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        View_PCList condition = new View_PCList();
        string      title     = GetstringKey("name");

        AreaID = GetIntKey("AreaID");
        if (AreaID != 0)
        {
            condition.AreaID = AreaID;
        }
        condition.ExhibitionID = AdminMethod.ExhibitionID;
        if (title != "")
        {
            condition.Title = "%" + title + "%";
            condition.AddAttach("Title", "like");
        }
        m_tableManageList = TableOperate <View_PCList> .SelectByPage(condition, PageSize, PageIndex, ref Count);

        DataBind();
        name.Value = title;
    }