Beispiel #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));
        }
Beispiel #2
0
        public ActionResult BAN_005(int IdTipocbte = 0, decimal IdCbteCble = 0)
        {
            BAN_005_Rpt model = new BAN_005_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));
        }
Beispiel #3
0
        public ActionResult BAN_005(int IdEmpresa = 0, int IdTipocbte = 0, decimal IdCbteCble = 0, int IdBanco = 0)
        {
            BAN_005_Rpt model = new BAN_005_Rpt();

            #region Cargo diseño desde base
            var banco = bus_banco.get_info(IdEmpresa, IdBanco);
            if (banco.ReporteCheque != null && banco.ReporteCheque.Length > 0)
            {
                System.IO.File.WriteAllBytes(RootReporte, banco.ReporteCheque);
                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));
        }