Example #1
0
 public UltimosPedidos()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
Example #2
0
 public Catalogo()
 {
     _manager    = new ProductoCore();
     moneda      = new MonedaEntidad();
     _coremoneda = new MonedaCore();
     cotizacion  = new MonedaEmpresaEntidad();
 }
 public PedidosConfirmacion()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
Example #4
0
 public Contacto()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
 public ListaDeDeseos()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     _coreMoneda = new MonedaCore();
     moneda      = new MonedaEntidad();
 }
 public RegistroCliente()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
Example #7
0
 public QuienesSomos()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
Example #8
0
 public Tarjetas()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
 public DatosPersonales()
 {
     idioma      = new LenguajeEntidad();
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
 }
 public PedidosDireccion()
 {
     idioma          = new LenguajeEntidad();
     _usuarioManager = new UsuarioCore();
     cotizacion      = new MonedaEmpresaEntidad();
     moneda          = new MonedaEntidad();
     _coreMoneda     = new MonedaCore();
 }
Example #11
0
 public PedidosEnvio()
 {
     idioma        = new LenguajeEntidad();
     _sucursalCore = new SucursalCore();
     cotizacion    = new MonedaEmpresaEntidad();
     moneda        = new MonedaEntidad();
     _coreMoneda   = new MonedaCore();
 }
Example #12
0
 public Producto()
 {
     cotizacion  = new MonedaEmpresaEntidad();
     moneda      = new MonedaEntidad();
     _coreMoneda = new MonedaCore();
     _manager    = new ProductoCore();
     idioma      = new LenguajeEntidad();
 }
Example #13
0
 public Pedidos()
 {
     idioma        = new LenguajeEntidad();
     cotizacion    = new MonedaEmpresaEntidad();
     moneda        = new MonedaEntidad();
     _coreMoneda   = new MonedaCore();
     _coreProducto = new ProductoCore();
     _coreStock    = new StockCore();
 }
Example #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            idioma = new LenguajeEntidad();
            if (!IsPostBack)
            {
                idioma = (LenguajeEntidad)Session["Idioma"];
                if (idioma == null)
                {
                    idioma = new LenguajeEntidad();
                    idioma.DescripcionLenguaje = "es";
                    Session["Idioma"]          = idioma;
                }
            }
            else
            {
                idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo();
                Session["Idioma"]          = idioma;
            }

            DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages");

            if (lblIdioma != null)
            {
                lblIdioma.SelectedValue = idioma.DescripcionLenguaje;
            }
            usuarioLoeado = (UsuarioEntidad)Session["Usuario"];

            string[] unosPermisosTest = new string[] { "MonedaMod" };
            if (usuarioLoeado == null || !this.Master.Autenticar(unosPermisosTest))
            {
                Response.Redirect("/Areas/Public/Forms/Home.aspx");
            }

            _managerMoneda  = new MonedaCore();
            listaMonedas    = new List <MonedaEntidad>();
            listaCotizacion = new List <CotizacionDTO>();

            listaMonedas = _managerMoneda.FinAllMonedasByEmpresa();
            grillaCotizacion.DataSource          = CargarCotizaciones();
            grillaCotizacion.AutoGenerateColumns = false;
            if (!IsPostBack)
            {
                grillaCotizacion.DataBind();

                //grillaMoneda.DataBind();
            }
        }
 public LayoutBasico()
 {
     _manager            = new UsuarioCore();
     this._monedaManager = new MonedaCore();
     idioma = new LenguajeEntidad();
 }
        public static List <String> ObtenerDeseosSession()
        {
            var                  Current         = HttpContext.Current;
            MonedaEntidad        moneda          = new MonedaEntidad();
            MonedaCore           _coreMoneda     = new MonedaCore();
            MonedaEmpresaEntidad cotizacion      = (MonedaEmpresaEntidad)Current.Session["Cotizacion"];
            ProductoCore         ManagerProducto = new ProductoCore();

            if (cotizacion == null)
            {
                cotizacion                    = new MonedaEmpresaEntidad();
                cotizacion.IdMoneda           = 1;
                Current.Session["Cotizacion"] = cotizacion;
            }
            moneda = _coreMoneda.selectMoneda(cotizacion.IdMoneda);

            var plantilla =
                "<tr class=\"{0}\">" +
                "<td class=\"text-center\" style=\"padding: 7px;\">" +
                "<div class=\"img-thumbnail img-thumbnail-cart\">" +
                "<img class=\"img-responsive\" src=\"/Content/Images/Productos/{1}\" style=\"vertical-align: middle;\" />" +
                "</div>" +
                "</td>" +
                "<td class=\"product-descripcion\">" +
                "<h4>{2}</h4>" +
                "<small>SKU: {3}</small>" +
                "</td>" +
                "<td class=\"text-center\">" +
                "<p>" +
                "<span>{4}</span> <span>{5}</span>" +
                "</p>" +
                "</td>" +
                "<td class=\"text-center\">" +
                "<button class=\"btn btn-info\" id=\"btnComprar2\" data-producto2=\"{6}\" onclick=\"onBtnComprar(this)\">Comprar</button>" +
                "</td>" +
                "<td class=\"text-center\">" +
                "<button class=\"btn btn-danger\" id=\"btnEliminarDeseo\" data-prodeliminar=\"{7}\" onclick=\"onbtnEliminarDeseo(this)\">Eliminar</button>" +
                "</td>" +
                "</tr>";   //FIN Plantilla

            var pl = new List <String>();

            List <ProductoEntidad> unosDeseos = (List <ProductoEntidad>)Current.Session["ListaDeseos"];
            List <ProductoEntidad> unosDeseosPrecioCalculo = new List <ProductoEntidad>();

            if (unosDeseos != null && unosDeseos.Any())
            {
                foreach (ProductoEntidad unDeseo in unosDeseos)
                {
                    unosDeseosPrecioCalculo.Add(ManagerProducto.Find(unDeseo.IdProducto, moneda.IdMoneda));
                }


                //foreach (ProductoEntidad unDeseo in unosDeseos)
                //{
                //    if (cotizacion.Cotizacion > 1)
                //        unDeseo.PrecioUnitario = System.Decimal.Round(unDeseo.PrecioUnitario / cotizacion.Cotizacion, 2);
                //    else
                //        unDeseo.PrecioUnitario = System.Decimal.Round(unDeseo.PrecioUnitario * cotizacion.Cotizacion, 2);
                //}

                unosDeseosPrecioCalculo.ForEach(x => pl.Add(string.Format(plantilla, x.IdProducto, x.URL, x.DescripProducto, x.CodigoProducto, moneda.SimboloMoneda, x.PrecioUnitario, x.IdProducto, x.IdProducto)));
            }

            return(pl);
        }
Example #17
0
 public MiCuenta()
 {
     _manager            = new UsuarioCore();
     this._monedaManager = new MonedaCore();
     idioma = new LenguajeEntidad();
 }
Example #18
0
        ////Para mantener la sesión activa
        //[WebMethod(EnableSession = true)]
        //public static void MantenerSesion()
        //{

        //}


        protected void Page_Load(object sender, EventArgs e)
        {
            idioma        = new LenguajeEntidad();
            _coremoneda   = new MonedaCore();
            cotizacion    = new MonedaEmpresaEntidad();
            moneda        = new MonedaEntidad();
            listaRecursos = CargarRecursos();
            ProductoCore unProductoCore = new ProductoCore();

            if (!IsPostBack)
            {
                cotizacion = (MonedaEmpresaEntidad)Session["Cotizacion"];

                idioma = (LenguajeEntidad)Session["Idioma"];
                if (cotizacion == null)
                {
                    cotizacion            = new MonedaEmpresaEntidad();
                    cotizacion.IdMoneda   = 1;
                    Session["Cotizacion"] = cotizacion;
                }
                if (cotizacion != null)
                {
                    moneda = _coremoneda.selectMoneda(cotizacion.IdMoneda);
                }
                // ProductoCore unProductoCore = new ProductoCore();
                if (idioma == null)
                {
                    idioma = new LenguajeEntidad();
                    idioma.DescripcionLenguaje = "es";
                    Session["Idioma"]          = idioma;
                }



                //**************MOSTRAR PRODUCTOS DESTACADOS**********************************************************************
                //SI ESTA LOGUEADO
                //MUESTRA PRODUCTOS PRODUCTOS QUE ESTAN DENTRO DE LA MISMA CATEGORIA DE LOS ULTIMOS QUE COMPRO

                //SI NO
                //MUESTRA LOS ULTIMOS AGREGADOS AL ECOMMERCE
                unosProductosDestacados           = (List <ProductoEntidad>)unProductoCore.FindAllByCUIT(cotizacion.IdMoneda).Where(o => o.FecBaja == null).OrderByDescending(x => x.IdProducto).Take(2).ToList();
                lstProductosDestacados.DataSource = unosProductosDestacados;
                lstProductosDestacados.DataBind();


                //**************MOSTRAR PRODUCTOS MAS VENDIDOS (PARA LA SEGUNDA PESTAÑA)**********************************************************************
                unosProductosMasVendidos  = unProductoCore.ProductoSelectMasVendidosByCUIT(ConfigSection.Default.Site.Cuit, cotizacion.IdMoneda).Where(o => o.FecBaja == null).ToList();
                lstMasVendidos.DataSource = unosProductosMasVendidos;
                lstMasVendidos.DataBind();
            }
            else
            {
                //Response.Redirect("LayoutBasico.aspx");
                idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo();
                Session["Idioma"]          = idioma;
                cotizacion.IdMoneda        = Convert.ToInt16(Master.obtenerValorDropDown());
                Session["Cotizacion"]      = cotizacion;

                if (cotizacion != null)
                {
                    moneda = _coremoneda.selectMoneda(cotizacion.IdMoneda);
                }
                unosProductosDestacados = (List <ProductoEntidad>)unProductoCore.FindAllByCUIT(cotizacion.IdMoneda).Where(o => o.FecBaja == null).OrderByDescending(x => x.IdProducto).Take(2).ToList();
                // var miDropMoneda = Master.combo.SelectedItem.Value;

                // Master.FindControl("DRWMoneda");
                lstProductosDestacados.DataSource = unosProductosDestacados;
                // cotizacion.Cotizacion = this.Master.cotizacion.Cotizacion;
                lstProductosDestacados.DataBind();
                unosProductosMasVendidos  = unProductoCore.ProductoSelectMasVendidosByCUIT(ConfigSection.Default.Site.Cuit, cotizacion.IdMoneda).Where(o => o.FecBaja == null).ToList();
                lstMasVendidos.DataSource = unosProductosMasVendidos;
                lstMasVendidos.DataBind();
            }

            DropDownList lblStatus = FindControlFromMaster <DropDownList>("MonedaDRW");

            if (lblStatus != null)
            {
                if (cotizacion != null)
                {
                    lblStatus.SelectedValue = cotizacion.IdMoneda.ToString();
                }
            }

            //pruebo lo de idioma para que quede seteado el combo cuando vuelve a home desde cualquier otra pagina

            DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages");

            if (lblIdioma != null)
            {
                lblIdioma.SelectedValue = idioma.DescripcionLenguaje;
                //  lblIdioma.Items.FindByValue(CultureInfo.CurrentCulture.Name).Selected = true;
                //Thread.CurrentThread.CurrentCulture = new CultureInfo(idioma.DescripcionLenguaje);
                //Thread.CurrentThread.CurrentUICulture = new CultureInfo(idioma.DescripcionLenguaje);
            }
        }