protected void CreaActivo_Click(object sender, EventArgs e) { String Vmodelo = Selectmodelo.Value; String Vfabricante = SelectFabricante.Value; llenavariableid(); String Varserial = txtserial.Value.ToUpper(); try { var registros = Controlasql.Ccreaactivo(txtaviso.InnerText, txtserial.Value.ToUpper(), txtnombre.Value.ToUpper(), Selectmodelo.Value, SelectFabricante.Value, SelectCategoria.Value, txtcoment.Value.ToUpper(), SelectTercero.Value.ToString(), txtgarantia.Value, txtfechacompra.Value, txtvalor.Value, Session["USUARIO"].ToString(), Session["BD"].ToString()); if (registros > 0) { serialcantidad.Value = txtserial.Value.ToUpper(); modal.Visible = true; } else { serialcantidad.Value = txtserial.Value.ToUpper(); alertaid.Visible = true; } } catch (Exception ex) { notificacion.Visible = false; excepcion.Visible = true; error.InnerText = "No Registro. Error: " + ex.Message; } }
protected void CreaActivo_Click(object sender, EventArgs e) { String Vmodelo = Select1.Value; String Vfabricante = Select2.Value; llenavariableid(); String Varserial = txtserial.Value.ToUpper(); try { var registros = Controlasql.Ccreaactivo(txtaviso.InnerText, txtserial.Value.ToUpper(), txtnombre.Value.ToUpper(), Select1.Value, Select2.Value, Select3.Value, txtcoment.Value.ToUpper(), Select4.Value.ToString(), txtgarantia.Value, txtfechacompra.Value, txtvalor.Value, Session["USUARIO"].ToString(), Session["BD"].ToString()); if (registros > 0) { serialcantidad.Value = txtserial.Value.ToUpper(); modal.Visible = true; } else { serialcantidad.Value = txtserial.Value.ToUpper(); alerta.Visible = true; } } catch (Exception ex) { throw ex; } }