Пример #1
0
    void init()
    {
        rowCount        = mb.getmsgnum(modelCu.customerID, "");
        lblMessage.Text = (string)GetGlobalResourceObject("GResource", "total") + rowCount + (string)GetGlobalResourceObject("GResource", "items") + ",";
        unreadCount     = mb.getunread(modelCu.customerID);
        lblunread.Text  = unreadCount + (string)GetGlobalResourceObject("GResource", "unreaditems");

        if (this.DropDownList1.SelectedIndex == 1)
        {
            rowCount = mb.getmsgnum(modelCu.customerID, " and (Status is null or Status!=N'已读') ");
        }
        else if (this.DropDownList1.SelectedIndex == 2)
        {
            rowCount = mb.getmsgnum(modelCu.customerID, " and Status=N'已读' ");
        }
        pageCount         = (rowCount - 1) / pageSize + 1;
        currentPageNumber = 1;
        dropPage.Items.Clear();
        for (int i = 1; i <= pageCount; i++)
        {
            dropPage.Items.Add(new ListItem(i.ToString(), i.ToString()));
        }
        dropPage.SelectedValue = dropPage.Items.FindByValue(currentPageNumber.ToString()).Value;
    }
Пример #2
0
 void initpanel()
 {
     //this.LinkButton3.Text = "";
     this.LinkButton3.Text = (String)GetLocalResourceObject("LinkButton3Resource1.Text") + "(" + ob.getordernum(Convert.ToInt32(Session["id"])) + ")";
     this.LinkButton4.Text = (String)GetLocalResourceObject("LinkButton4Resource1.Text") + "(" + mb.getunread(Convert.ToInt32(Session["id"])) + ")";
 }
Пример #3
0
    void initpanel()
    {
        Bll.OrdersBll  ob    = new Bll.OrdersBll();
        Bll.messageBll mb    = new Bll.messageBll();
        int            cusid = Convert.ToInt32(Session["id"]);

        this.HyperLink2.Text  = (String)GetLocalResourceObject("LinkButton4Resource1.Text") + "(" + mb.getunread(cusid) + ")";
        this.HyperLink13.Text = (String)GetLocalResourceObject("myorder") + "(" + ob.getshopordernum(cusid) + ")";
    }