示例#1
0
        public void si_Click(object sender, EventArgs e)
        {
            serialcantidad.Value = txtserial.Value.ToUpper();
            llenavariablecant_articulo();
            try
            {
                var registros = Controlasql.Ccreacantidadactivo(txtaviso.InnerText, serialcantidad.Value,
                                                                canti.Value, Session["BD"].ToString());
                if (registros > 0)
                {
                    modal.Visible         = false;
                    notificacion.Visible  = true;
                    txtnotifica.InnerText = "Registro Exitoso";
                }
                else
                {
                    alertaid.Visible = true;
                }


                //aqui limpia la pantalla
            }
            catch (Exception ex)
            {
                notificacion.Visible = false;
                excepcion.Visible    = true;
                error.InnerText      = "No se Registro la Cantidad. Error: " + ex.Message;
            }
        }
示例#2
0
        public void si_Click(object sender, EventArgs e)
        {
            serialcantidad.Value = txtserial.Value.ToUpper();
            llenavariablecant_articulo();
            try
            {
                var registros = Controlasql.Ccreacantidadactivo(txtaviso.InnerText, serialcantidad.Value,
                                                                canti.Value, Session["BD"].ToString());
                if (registros > 0)
                {
                    modal.Visible = false;

                    txtaviso.Visible   = true;
                    txtaviso.InnerText = "Registro Guardado Correctamente";
                }
                else
                {
                    alerta.Visible = true;
                }


                //aqui limpia la pantalla
                Select1.Value        = "";
                Select2.Value        = "";
                Select3.Value        = "";
                Select4.Value        = "";
                txtserial.Value      = "";
                txtnombre.Value      = "";
                txtcoment.Value      = "";
                txtfechacompra.Value = "";
                txtvalor.Value       = "";
                txtgarantia.Value    = "";
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }