예제 #1
0
        public ActionResult Disenar(int IdEmpresa = 0, int IdBanco = 0)
        {
            var model = bus_cuenta.get_info(IdEmpresa, IdBanco);

            if (model == null)
            {
                return(RedirectToAction("Index"));
            }

            if (!model.Imprimir_Solo_el_cheque)
            {
                model.ReporteCheque = model.ReporteChequeComprobante;
            }

            if (model.ReporteCheque == null)
            {
                MemoryStream ms = new MemoryStream();
                if (!model.Imprimir_Solo_el_cheque)
                {
                    BAN_006_Rpt rpt = new BAN_006_Rpt();
                    rpt.SaveLayoutToXml(ms);
                    ms.Position         = 0;
                    model.ReporteCheque = ms.ToArray();
                }
                else
                {
                    BAN_005_Rpt rpt = new BAN_005_Rpt();
                    rpt.SaveLayoutToXml(ms);
                    ms.Position         = 0;
                    model.ReporteCheque = ms.ToArray();
                }
            }

            return(View(model));
        }
예제 #2
0
        public ActionResult BAN_005_Masivo()
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdBanco   = 0,
                NumDesde  = 0,
                NumHasta  = 0
            };
            BAN_006_Rpt report = new BAN_006_Rpt();

            #region Cargo diseño desde base
            if (model.IdBanco != 0)
            {
                var banco = bus_banco.get_info(model.IdEmpresa, model.IdBanco);
                System.IO.File.WriteAllBytes(RootReporte, banco.ReporteChequeComprobante);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value  = Convert.ToInt32(SessionFixed.IdEmpresa);
            report.p_IdTipoCbte.Value = 0;
            report.p_IdCbteCble.Value = 0;
            report.p_NumDesde.Value   = model.NumDesde;
            report.p_NumHasta.Value   = model.NumHasta;
            report.p_IdBanco.Value    = model.IdBanco;
            cargar_banco(Convert.ToInt32(SessionFixed.IdEmpresa));
            bus_cbte.modificarDB_EstadoCheque(Convert.ToInt32(SessionFixed.IdEmpresa), 0, 0, "ESTCBENT");

            ViewBag.Report = report;
            return(View(model));
        }
예제 #3
0
        public ActionResult BAN_006(int IdTipoCbte = 0, decimal IdCbteCble = 0)
        {
            BAN_006_Rpt model = new BAN_006_Rpt();

            model.p_IdEmpresa.Value  = Convert.ToInt32(SessionFixed.IdEmpresa);
            model.p_IdTipoCbte.Value = IdTipoCbte;
            model.p_IdCbteCble.Value = IdCbteCble;
            bus_cbte.modificarDB_EstadoCheque(Convert.ToInt32(SessionFixed.IdEmpresa), IdTipoCbte, IdCbteCble, "ESTCBENT");
            return(View(model));
        }
예제 #4
0
        public ActionResult BAN_006(int IdEmpresa = 0, int IdTipoCbte = 0, decimal IdCbteCble = 0, int IdBanco = 0)
        {
            BAN_006_Rpt model = new BAN_006_Rpt();

            #region Cargo diseño desde base
            var banco = bus_banco.get_info(IdEmpresa, IdBanco);
            if (banco.ReporteChequeComprobante != null && banco.ReporteChequeComprobante.Length > 0)
            {
                System.IO.File.WriteAllBytes(RootReporte, banco.ReporteChequeComprobante);
                model.LoadLayout(RootReporte);
            }
            #endregion

            model.p_IdEmpresa.Value  = IdEmpresa;
            model.p_IdTipoCbte.Value = IdTipoCbte;
            model.p_IdCbteCble.Value = IdCbteCble;

            bus_cbte.modificarDB_EstadoCheque(IdEmpresa, IdTipoCbte, IdCbteCble, "ESTCBENT");
            return(View(model));
        }