示例#1
0
        private void CantidadnumericUpDown_ValueChanged(object sender, EventArgs e)
        {
            decimal cantidad = Convert.ToInt32(CantidadnumericUpDown.Value);
            decimal precio   = Convert.ToInt32(PrecionumericUpDown.Value);

            ImportetextBox.Text = FacturacionBLL.CalcularImporte(precio, cantidad).ToString();
        }
示例#2
0
        protected void PrecioVentaTextbox_TextChanged(object sender, EventArgs e)
        {
            int cantidad = Convert.ToInt32(CantidadTexbox.Text.ToString());
            int precio   = Convert.ToInt32(PrecioVentaTextbox.Text.ToString());
            int importe  = Utilities.Utils.ToInt(ImporteTextbox.Text.ToString());

            importe             = FacturacionBLL.CalcularImporte(precio, cantidad);
            ImporteTextbox.Text = importe.ToString();
        }