コード例 #1
0
        public void GuardarDesglose(string prIdAbono, string prIdcobranza, string prgastos)
        {
            if (string.IsNullOrEmpty(prgastos))
            {
                prgastos = "0";
            }

            foreach (GridViewRow objFila in this.grillapagletras.Rows)
            {
                if (((CheckBox)objFila.FindControl("chkSeleccionaFila")).Checked)
                {
                    // intCuota = ALCSA.FWK.Texto.ConvertirTextoEnEntero(objFila.Cells[2].Text);

                    Transaccion.InsertaDesglose(
                        prIdAbono,
                        prIdcobranza,
                        ((Label)objFila.FindControl("lblCodigo")).Text,
                        objFila.Cells[1].Text,
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[2].Text),
                        objFila.Cells[3].Text,
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[4].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[5].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[6].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[7].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[8].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[9].Text),
                        ALCSA.FWK.Texto.ConvertirTextoEnDouble(objFila.Cells[10].Text),
                        ALCSA.FWK.Web.Control.ExtraerValorComoEntero((Label)objFila.FindControl("lblcuota")),
                        prgastos);
                }
            }
        }