Exemplo n.º 1
0
    /// <summary>
    /// 页面加载事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string    searchMode = Request.QueryString["SearchMode"].ToString();
            int       userID     = (Session["UserInfo"] as GeneralUser).Id;
            DataTable tempDt;
            switch (searchMode)
            {
            case "UnSend":          //草稿箱
                tempDt = ArticleManager.GetArticleInfoByUserIDAndArticleState(userID, 15);
                //this.lblTitle.Text = "草稿箱";
                break;

            case "Work":            //审理中的稿件
                tempDt = ArticleManager.GetWorkArticleInfoByUserID(userID);
                //this.lblTitle.Text = "审理中的稿件";
                break;

            case "Publish":         //发布的稿件
                tempDt = ArticleManager.GetArticleInfoByUserIDAndArticleState(userID, 14);
                //this.lblTitle.Text = "发布的稿件";
                break;

            default:
                throw new Exception("Rosy:不存在的稿件类型");
            }
            //绑定数据
            gvArticleList.DataSource = tempDt;
            gvArticleList.DataBind();
        }
    }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.LbInfo.Text = "提示:请详细查看评审意见中明确表明的“退回修改”或“不予录取”,若为“退回修改”请及时进入‘修改稿件’条目。";
         int       userID = (Session["UserInfo"] as GeneralUser).Id;
         DataTable tempDt;
         tempDt = ArticleManager.GetArticleInfoByUserIDAndArticleState(userID, 13);
         //绑定数据
         gvArticleList.DataSource = tempDt;
         gvArticleList.DataBind();
     }
 }