private void ingreso_financiero_Load(object sender, EventArgs e) { _price_calculing = false; _padre = P.Auxiliar.FindPadre(this); _page = P.Auxiliar.FindPage(this); _residuo = 0; _salidasOBC = null; }
private void btn_guardar_Click(Object sender, EventArgs e) //Handles btn_guardar.Click { int cantidad; //validamos campos if (Tcantidad.Text == string.Empty) { P.Mensaje.Advert("Ingrese un monto para cantidad de articulos"); Tcantidad.Focus(); return; } else { if (!int.TryParse(Tcantidad.Text, out cantidad)) { P.Mensaje.Advert("Valor ingresado no corresponde a un número"); Tcantidad.Focus(); return; } } if (LvalorAF.Text == "0" || LvalorAF.Text == string.Empty) { P.Mensaje.Advert("Seleccione entradas para formar el valor del Activo Fijo"); Tsaldos.Focus(); return; } //fin validacion int valorAF, valor_uni, diferencia; valorAF = int.Parse(LvalorAF.Text.Replace(sMil, "")); valor_uni = (int)(valorAF / cantidad); diferencia = valorAF - (valor_uni * cantidad); //form_ingreso.Show(); //Me.Hide() var nextStep = new ingreso(); nextStep.ShowFrom(this); nextStep.LoadOBC(valorAF, cantidad, GetSalidasBinding()); //nextStep.LoadOBC(valor_uni, cantidad, diferencia, GetSalidasBinding()); //this.Close(); }
private void ingreso_invent_grup_Load(object sender, EventArgs e) { _padre = P.Auxiliar.FindPadre(this); _page = P.Auxiliar.FindPage(this); }
private void ingreso_ifrs_Load(object sender, EventArgs e) { _padre = P.Auxiliar.FindPadre(this); _page = P.Auxiliar.FindPage(this); Nval_resI.Maximum = decimal.MaxValue; }