Beispiel #1
0
        protected void RefreshButton_Click(object sender, EventArgs e)
        {
            Inversionn inversion = InversionBLL.Buscar(1);

            MontoLabel.Text = 0.ToString();
            MontoLabel.Text = $"${inversion.Monto.ToString()}";
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Inversionn inversion = InversionBLL.Buscar(1);

            MontoLabel.Text = 0.ToString();
            MontoLabel.Text = $"${inversion.Monto.ToString()}";
        }
Beispiel #3
0
        private void Refrescarbutton_Click(object sender, EventArgs e)
        {
            Inversion inversion = InversionBLL.Buscar(1);

            Montolabel.Text      = 0.ToString();
            Montolabel.Text      = $"${inversion.Monto.ToString()}";
            Montolabel.ForeColor = Color.Green;
        }
Beispiel #4
0
        private void InversionEmpresa_Load(object sender, EventArgs e)
        {
            Inversion inversion = InversionBLL.Buscar(1);

            Montolabel.Text      = 0.ToString();
            Montolabel.Text      = $"${inversion.Monto.ToString()}";
            Montolabel.ForeColor = Color.Green;
        }
Beispiel #5
0
        protected void ButtonBuscar_Click1(object sender, EventArgs e)
        {
            PrestamoGridView.DataBind();
            Expression <Func <Inversionn, bool> > filtro = x => true;
            InversionBLL entrada = new InversionBLL();

            int id;



            switch (TipodeFiltro.SelectedIndex)
            {
            case 0:        //ID
                id     = Utilities.Utils.ToInt(TextCriterio.Text);
                filtro = c => c.InversionID == id;
                if (InversionBLL.GetList(filtro).Count() == 0)
                {
                    Utilities.Utils.ShowToastr(this, " Prestamo ID No Existe", "Fallido", "success");
                    return;
                }

                break;

            case 1:        // Monto

                int balance = Utilities.Utils.ToInt(TextCriterio.Text);

                filtro = c => c.Monto == balance;

                if (InversionBLL.GetList(filtro).Count() == 0)
                {
                    Utilities.Utils.ShowToastr(this, "Dicho Balance No existe", "Fallido", "success");
                    return;
                }
                break;


            case 2:        //Todos

                filtro = x => true;
                if (InversionBLL.GetList(filtro).Count() == 0)
                {
                    Utilities.Utils.ShowToastr(this, "No existen Dichas Cuentas", "Fallido", "success");
                }
                break;
            }
            PrestamoGridView.DataSource = InversionBLL.GetList(filtro);
            PrestamoGridView.DataBind();
        }
Beispiel #6
0
        private void InversionEmpresa_Load(object sender, EventArgs e)
        {
            Inversion inversion = InversionBLL.Buscar(1);

            if (inversion == null)
            {
                inversion = new Inversion();
                InversionBLL.Guardar(new Inversion(0, 0, DateTime.Now));
            }
            Montolabel.Text = 0.ToString();
            if (inversion.Monto == 0)
            {
                return;
            }
            Montolabel.Text      = $"${inversion.Monto.ToString()}";
            Montolabel.ForeColor = Color.Green;
            Refrescarbutton_Click(sender, e);
        }