Ejemplo n.º 1
0
        public bool InsertarHerramienta()
        {
            bool        Resultado = false;
            Herramienta he        = new Herramienta();
            string      Fecha     = Utilitario.FormatoFecha(DateTime.Now.ToString());

            he.UsuarioId = Convert.ToInt32(Session["UsuarioId"]);

            he.Fecha = Fecha;

            he.Cantidad    = Convert.ToSingle(tbxPorcientoMora.Text);
            he.Descripcion = "Porciento Mora";
            he.Valor       = 0;
            Resultado      = he.Insertar();

            he.Cantidad    = Convert.ToSingle(tbxMes.Text);
            he.Descripcion = "Dias Corte (Mes)";
            he.Valor       = 1;
            Resultado      = he.Insertar();

            he.Cantidad    = Convert.ToSingle(tbxQuincena.Text);
            he.Descripcion = "Dias Corte (Quincena)";
            he.Valor       = 2;
            Resultado      = he.Insertar();

            he.Cantidad    = Convert.ToSingle(tbxDia.Text);
            he.Descripcion = "Dias Corte (Dia)";
            he.Valor       = 3;
            Resultado      = he.Insertar();


            he.Cantidad    = 5;
            he.Descripcion = "Actualizacion de Moras y Abonos";
            he.Valor       = 4;
            Resultado      = he.Insertar();


            he.Cantidad    = 5;
            he.Descripcion = tbxNombreEmpresa.Text;
            he.Valor       = 5;
            Resultado      = he.Insertar();


            return(Resultado);
        }