Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (((MultiView)WebUserControl_ServicioPago1.FindControl("MVWPago")).ActiveViewIndex == 1)
        {
            MultiView1.ActiveViewIndex = 2;
            ImageButton8.Visible       = true;
            ImageButton7.Visible       = false;
        }



        Label1.Text = Convert.ToString(DateTime.Today.Year);
        InitializeComponent();
        try
        {
            if (!this.IsPostBack)
            {
                MultiView1.ActiveViewIndex = 0;
            }

            if (Servicio == null)
            {
                if (Session["Servicio"] != null)
                {
                    Servicio = (TeleBancaWS.TeleBancaWS)Session["Servicio"];
                }
            }

            LblShowNombre.Text = Servicio.getUsuariActivo()[2];
        }
        catch (Exception ex)
        { Errores.Alert(this, ex.Message); }
    }
Beispiel #2
0
    protected void ImageButton7_Click(object sender, ImageClickEventArgs e)
    {
        ((MultiView)WebUserControl_ServicioPago1.FindControl("MVWPago")).ActiveViewIndex = 1;

        MultiView1.ActiveViewIndex = 2;
        ImageButton8.Visible       = true;
        ImageButton7.Visible       = false;
    }
Beispiel #3
0
    protected void ImageButton8_Click(object sender, ImageClickEventArgs e)
    {
        ((MultiView)WebUserControl_ServicioPago1.FindControl("MVWPago")).ActiveViewIndex = 41;
        MultiView1.ActiveViewIndex = 2;
        ImageButton7.Visible       = true;
        ImageButton8.Visible       = false;
        int CountMenu = ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items.Count;

        for (int i = 0; i < CountMenu; i++)
        {
            if (((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "38" || ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "8" ||
                ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "50" || ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Value == "25")
            {
                ((Menu)WebUserControl_ServicioInformacion1.FindControl("Menu1")).Items[i].Enabled = false;
            }
        }
    }