Beispiel #1
0
    private void LoadPannel(string MatrimonialID)
    {
        HF_ID.Value = MatrimonialID;

        switch (HF_Type.Value)
        {
        case "1":
            B_App.Visible   = true;
            B_Renew.Visible = false;

            PN_Search.Visible     = false;
            PN_NoRecords.Visible  = false;
            PN_RenewPaid.Visible  = true;
            PN_Activate.Visible   = false;
            RB_MemberFree.Visible = false;
            MemberPannel_Renew.Bind(MatrimonialID);
            break;

        case "2":
            PN_Search.Visible    = false;
            PN_NoRecords.Visible = false;
            PN_RenewPaid.Visible = false;
            PN_Activate.Visible  = true;
            MemberPannel_Activate.Bind(MatrimonialID);
            break;

        case "3":
            B_App.Visible         = false;
            B_Renew.Visible       = true;
            RB_MemberFree.Visible = true;
            switch (MatrimonialMemberShip.GetMemberShipType(MatrimonialID))
            {
            case 1:
                PN_Search.Visible      = false;
                PN_NoRecords.Visible   = false;
                PN_RenewPaid.Visible   = true;
                PN_Activate.Visible    = false;
                RB_MemberPlan1.Checked = true;
                MemberPannel_Renew.Bind(MatrimonialID);
                break;

            case 2:
                PN_Search.Visible      = false;
                PN_NoRecords.Visible   = false;
                PN_RenewPaid.Visible   = true;
                PN_Activate.Visible    = false;
                RB_MemberPlan2.Checked = true;
                MemberPannel_Renew.Bind(MatrimonialID);
                break;

            case 3:
                PN_Search.Visible      = false;
                PN_NoRecords.Visible   = false;
                PN_RenewPaid.Visible   = true;
                PN_Activate.Visible    = false;
                RB_MemberPlan3.Checked = true;
                MemberPannel_Renew.Bind(MatrimonialID);
                break;

            default:
                PN_NoRecords.Visible = true;
                PN_Search.Visible    = false;
                PN_RenewPaid.Visible = false;
                break;
            }
            break;

        default:
            PN_NoRecords.Visible = true;
            PN_Search.Visible    = false;
            PN_RenewPaid.Visible = false;
            break;
        }
    }