Exemplo n.º 1
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) + ")";
    }
Exemplo n.º 2
0
    protected void Button3_Click(object sender, EventArgs e)
    {
        modelCu = Cb.getCustomer(modelCu);
        if (false && modelCu.customerMobile != this.TextBox1.Text)
        {
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('" + (string)GetGlobalResourceObject("GResource", "oldmobilewrong") + "');</script>");
            this.TextBox1.Focus();
            return;
        }

        modelCu.customerMobile = this.TextBox4.Text;
        Cb.update(modelCu);
        this.Panel2.Visible = false;
        this.Label1.Text    = this.TextBox4.Text;
        this.Panel3.Visible = true;

        Bll.messageBll mb = new Bll.messageBll();
        mb.sendmsg(1008, modelCu);
    }