public void getMessage(int ApplyID)
    {
        Tz888.BLL.Register.VIPMemberRegister   obj   = new Tz888.BLL.Register.VIPMemberRegister();
        Tz888.Model.Register.VIPMemberRegister model = new Tz888.Model.Register.VIPMemberRegister();
        try
        {
            model             = obj.GetVIPMemberModel(ApplyID);
            lbOrgName.Text    = model.OrgName;
            lbtbRealName.Text = model.RealName;
            lbSex.Text        = model.Sex ? "男士" : "女士";

            if (model.BuyTerm.ToString().Trim() == "1")
            {
                lbBuyTerm.Text = "三个月";
            }
            else if (model.BuyTerm.ToString().Trim() == "2")
            {
                lbBuyTerm.Text = "半年";
            }
            else if (model.BuyTerm.ToString().Trim() == "3")
            {
                lbBuyTerm.Text = "一年";
            }

            switch (model.ManageTypeID.Trim())
            {
            case "1001":
                lbManageType.Text = "个人";
                lbPrice.Text      = obj.getPriceByType("1001", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
                break;

            case "1003":
                lbManageType.Text = "企业";
                lbPrice.Text      = obj.getPriceByType("1003", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
                break;

            case "1004":
                lbManageType.Text = "政府";
                lbPrice.Text      = obj.getPriceByType("1004", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
                break;
            }
        }
        catch { }

        lbTel.Text   = model.TelCountryCode + "-" + model.TelStateCode + "-" + model.TelNum;
        lbEmail.Text = model.Email;
    }
Beispiel #2
0
    public void getMessage(int ApplyID)
    {
        Tz888.BLL.Register.VIPMemberRegister   obj   = new Tz888.BLL.Register.VIPMemberRegister();
        Tz888.Model.Register.VIPMemberRegister model = new Tz888.Model.Register.VIPMemberRegister();
        model             = obj.GetVIPMemberModel(ApplyID);
        lbOrgName.Text    = model.OrgName;
        lbtbRealName.Text = model.RealName;
        lbSex.Text        = model.Sex ? "男士" : "女士";
        switch (model.BuyTerm.ToString())
        {
        case "1":
            lbBuyTerm.Text = "3个月";
            break;

        case "2":
            lbBuyTerm.Text = "半年";
            break;

        case "3":
            lbBuyTerm.Text = "一年";
            break;

        default:
            break;
        }
        switch (model.ManageTypeID.Trim())
        {
        case "1001":
            lbManageType.Text = "[个人]";
            lbPrice.Text      = obj.getPriceByType("1001", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
            break;

        case "1003":
            lbManageType.Text = "[企业]";
            lbPrice.Text      = obj.getPriceByType("1003", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
            break;

        case "1004":
            lbManageType.Text = "[政府]";
            lbPrice.Text      = obj.getPriceByType("1004", Convert.ToInt32(model.BuyTerm.ToString().Trim()));
            break;
        }

        lbTel.Text   = model.TelCountryCode + "-" + model.TelStateCode + "-" + model.TelNum;
        lbEmail.Text = model.Email;
    }