bool AplicarLibras()
        {
            foreach (var dr in dg.Rows)
            {
                int     bltNumero = Convert.ToInt32(((System.Windows.Forms.DataGridViewRow)(dr)).Cells[0].Value);   //blt_numero
                decimal bltPeso   = Convert.ToDecimal(((System.Windows.Forms.DataGridViewRow)(dr)).Cells[3].Value); //blt_peso

                string bltCodigobarra = ((System.Windows.Forms.DataGridViewRow)(dr)).Cells[1].Value.ToString();     //codigo de barra

                int bltLibrasGratis = Convert.ToInt32(((System.Windows.Forms.DataGridViewRow)(dr)).Cells[5].Value); //Libras a aplicar

                if (bltPeso < 1)
                {
                    bltPeso = 1;
                }

                if (bltLibrasGratis > 0 && bltLibrasGratis <= bltPeso)
                {
                    string sMensaje            = "";
                    BO.BO.CalculoTafiras oFact = new BO.BO.CalculoTafiras();

                    if (oFact.AplicarLibrasGratis(bltNumero, bltLibrasGratis, liCteId, Parametros.Parametros.UsuarioId, ref sMensaje) == false)
                    {
                        MessageBox.Show("Error aplicando libras \n" + sMensaje, "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        break;
                    }
                    ;
                }
            }


            return(false);
        }