////Para mantener la sesión activa //[WebMethod(EnableSession = true)] //public static void MantenerSesion() //{ //} protected void Page_Load(object sender, EventArgs e) { idioma = new LenguajeEntidad(); listaEmpresas = usuarioBLL.EmpresasConMasPedidos(TFI.CORE.Helpers.ConfigSection.Default.Site.Cuit); 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; } //**************MOSTRAR LAS 5 EMPRESAS CON MAS PEDIDOS FINALIZADOS DE CADA EMPRESA (PARA LA SEGUNDA PESTAÑA)********************************************************************** //unosProductosMasVendidos = unProductoCore.ProductoSelectMasVendidosByCUIT(TFI.CORE.Helpers.ConfigSection.Default.Site.Cuit); lstClientesConMasCompras.DataSource = listaEmpresas; lstClientesConMasCompras.DataBind(); }
public ListaDeDeseos() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); _coreMoneda = new MonedaCore(); moneda = new MonedaEntidad(); }
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; } CargarGrilladeNc(); }
public UltimosPedidos() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
public RegistroCliente() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
protected override void InitializeCulture() { var language = (LenguajeEntidad)HttpContext.Current.Session["Idioma"]; //string language = "es"; if (language == null) { language = new LenguajeEntidad(); language.DescripcionLenguaje = "es"; } //Detect User's Language. //if (Request.UserLanguages != null) //{ // //Set the Language. // //language.DescripcionLenguaje = Request.UserLanguages[0]; //} //Check if PostBack is caused by Language DropDownList. if (Request.Form["__EVENTTARGET"] != null && Request.Form["__EVENTTARGET"].Contains("ddlLanguages")) { //Set the Language. language.DescripcionLenguaje = Request.Form[Request.Form["__EVENTTARGET"]]; } //Set the Culture. Thread.CurrentThread.CurrentCulture = new CultureInfo(language.DescripcionLenguaje); Thread.CurrentThread.CurrentUICulture = new CultureInfo(language.DescripcionLenguaje); }
public QuienesSomos() { 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 Contacto() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
public Tarjetas() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
public PedidosConfirmacion() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; string[] unosPermisosTest = new string[] { "Factura", "NDebitoAlta" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } CargarGrillaDeFacturas(); }
////Para mantener la sesión activa //[WebMethod(EnableSession = true)] //public static void MantenerSesion() //{ //} protected void Page_Load(object sender, EventArgs e) { idioma = new LenguajeEntidad(); EmpresaCore EmpresaBLL = new EmpresaCore(); if (!IsPostBack) { idioma = (LenguajeEntidad)Session["Idioma"]; if (idioma == null) { idioma = new LenguajeEntidad(); idioma.DescripcionLenguaje = "es"; Session["Idioma"] = idioma; } cotizacion = new MonedaEmpresaEntidad(); cotizacion = (MonedaEmpresaEntidad)Session["Cotizacion"]; Session.Add("cotizacionAnterior", ""); } else { cotizacion.IdMoneda = Convert.ToInt16(Master.obtenerValorDropDown()); Session["Cotizacion"] = cotizacion; idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo(); Session["Idioma"] = idioma; } if (cotizacion != null) { moneda = _coreMoneda.selectMoneda(cotizacion.IdMoneda); } DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages"); if (lblIdioma != null) { lblIdioma.SelectedValue = idioma.DescripcionLenguaje; } DropDownList lblStatus = FindControlFromMaster <DropDownList>("MonedaDRW"); if (lblStatus != null) { if (cotizacion != null) { lblStatus.SelectedValue = cotizacion.IdMoneda.ToString(); } } nombreempresa.InnerHtml = EmpresaBLL.EmpresaSelectByCuit(ConfigSection.Default.Site.Cuit).NombreEmpresa; quienessomos.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "QuienesSomos", 1).Valor; mision.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "Mision", 1).Valor; vision.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "Vision", 1).Valor; TelEmpresa.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "TelEmpresa", 1).Valor; MailEmpresa.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "MailEmpresa", 1).Valor; }
public Producto() { cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); _manager = new ProductoCore(); idioma = new LenguajeEntidad(); }
public PedidosDireccion() { idioma = new LenguajeEntidad(); _usuarioManager = new UsuarioCore(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
public PedidosEnvio() { idioma = new LenguajeEntidad(); _sucursalCore = new SucursalCore(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); }
protected void Page_Load(object sender, EventArgs e) { idioma = new LenguajeEntidad(); usuarioentidad = (UsuarioEntidad)Session["Usuario"]; if (usuarioentidad == null) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (!IsPostBack) { idioma = (LenguajeEntidad)Session["Idioma"]; if (idioma == null) { idioma = new LenguajeEntidad(); idioma.DescripcionLenguaje = "es"; Session["Idioma"] = idioma; } cotizacion = new MonedaEmpresaEntidad(); cotizacion = (MonedaEmpresaEntidad)Session["Cotizacion"]; Session.Add("cotizacionAnterior", ""); } else { cotizacion.IdMoneda = Convert.ToInt16(Master.obtenerValorDropDown()); Session["Cotizacion"] = cotizacion; idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo(); Session["Idioma"] = idioma; } if (cotizacion != null) { moneda = _coreMoneda.selectMoneda(cotizacion.IdMoneda); } DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages"); if (lblIdioma != null) { lblIdioma.SelectedValue = idioma.DescripcionLenguaje; } DropDownList lblStatus = FindControlFromMaster <DropDownList>("MonedaDRW"); if (lblStatus != null) { if (cotizacion != null) { lblStatus.SelectedValue = cotizacion.IdMoneda.ToString(); } } CargarGrillaTarjetas(); if (!IsPostBack) { CargarDropdownTipoTarjeta(); } }
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; } usuarioentidad = (UsuarioEntidad)Current.Session["Usuario"]; string[] unosPermisosTest = new string[] { "ClienteVer", "ClienteMod" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } usuarioString = Page.Request.QueryString["Cli"]; if (!IsPostBack) { if (!string.IsNullOrEmpty(usuarioString)) { //cargarPermisos(); cargarDatosCliente(); cargarFiscal(); cargarProvincias(); cargarLocalidades(); cargarProvinciasEnvio(); cargarLocalidadesEnvio(); CargarDireccionesUsuario(); } else { Response.Redirect(Request.RawUrl); } } }
public Pedidos() { idioma = new LenguajeEntidad(); cotizacion = new MonedaEmpresaEntidad(); moneda = new MonedaEntidad(); _coreMoneda = new MonedaCore(); _coreProducto = new ProductoCore(); _coreStock = new StockCore(); }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; unosPermisosTest = new string[] { "UsuarioAlta" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (!IsPostBack) { LisAuxAsig = new List <IFamPat>(); LisAuxDisp = new List <IFamPat>(); LisAuxDisp = ManagerFamilia.PermisosTraerTodos(); ListarPermisos(LisAuxDisp, treeDisponibles); Current.Session["PermisosDisp"] = LisAuxDisp; treeDisponibles.CollapseAll(); } else { LisAuxDisp = new List <IFamPat>(); LisAuxDisp = (List <IFamPat>)Current.Session["PermisosDisp"]; LisAuxAsig = (List <IFamPat>)Current.Session["PermisosAsig"]; if (LisAuxAsig == null) { LisAuxAsig = new List <IFamPat>(); } } }
/// <summary> /// Saves a record to the Lenguaje table. /// </summary> public void Insert(LenguajeEntidad lenguaje) { ValidationUtility.ValidateArgument("lenguaje", lenguaje); SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@DescripcionLenguaje", lenguaje.DescripcionLenguaje) }; lenguaje.IdLenguaje = (int)SqlClientUtility.ExecuteScalar(SqlClientUtility.connectionStringName, CommandType.StoredProcedure, "LenguajeInsert", parameters); }
/// <summary> /// Updates a record in the Lenguaje table. /// </summary> public void Update(LenguajeEntidad lenguaje) { ValidationUtility.ValidateArgument("lenguaje", lenguaje); SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@IdLenguaje", lenguaje.IdLenguaje), new SqlParameter("@DescripcionLenguaje", lenguaje.DescripcionLenguaje) }; SqlClientUtility.ExecuteNonQuery(SqlClientUtility.connectionStringName, CommandType.StoredProcedure, "LenguajeUpdate", parameters); }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; string[] unosPermisosTest = new string[] { "StockVer", "StockAjustar" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (Consultas.Count > 0) { grillastock.DataSource = Consultas; grillastock.AutoGenerateColumns = false; if (!IsPostBack) { grillastock.DataBind(); } } if (!IsPostBack) { //CargarDropdownProductos(); CargarSucursales(); } }
/// <summary> /// Selects a single record from the Lenguaje table. /// </summary> public LenguajeEntidad Select(int idLenguaje) { SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@IdLenguaje", idLenguaje) }; using (DataTable dt = SqlClientUtility.ExecuteDataTable(SqlClientUtility.connectionStringName, CommandType.StoredProcedure, "LenguajeSelect", parameters)) { LenguajeEntidad LenguajeEntidad = new LenguajeEntidad(); LenguajeEntidad = Mapeador.MapearFirst <LenguajeEntidad>(dt); return(LenguajeEntidad); } }
protected void Page_Load(object sender, EventArgs e) { idioma = new LenguajeEntidad(); logueado = (UsuarioEntidad)Current.Session["Usuario"]; if (logueado == null) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (!IsPostBack) { idioma = (LenguajeEntidad)Current.Session["Idioma"]; if (idioma == null) { idioma = new LenguajeEntidad(); idioma.DescripcionLenguaje = "es"; Current.Session["Idioma"] = idioma; } } else { idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo(); Current.Session["Idioma"] = idioma; } DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages"); if (lblIdioma != null) { lblIdioma.SelectedValue = idioma.DescripcionLenguaje; } usuarioentidad = (UsuarioEntidad)Current.Session["Usuario"]; string[] unosPermisosTest = new string[] { "PedidoVer", "PedidoMod", "PedidoCancelar" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (!IsPostBack) { CargarGrillaUltimosPedidos(); CargarDropdownEstados(); } }
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(); } }
////Para mantener la sesión activa //[WebMethod(EnableSession = true)] //public static void MantenerSesion() //{ //} protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { idioma = (LenguajeEntidad)Session["Idioma"]; cargarFiscal(); cargarProvincias(); cargarLocalidades(); if (idioma == null) { idioma = new LenguajeEntidad(); idioma.DescripcionLenguaje = "es"; Session["Idioma"] = idioma; } cotizacion = new MonedaEmpresaEntidad(); cotizacion = (MonedaEmpresaEntidad)Session["Cotizacion"]; Session.Add("cotizacionAnterior", ""); } else { cotizacion.IdMoneda = Convert.ToInt16(Master.obtenerValorDropDown()); Session["Cotizacion"] = cotizacion; idioma.DescripcionLenguaje = Master.obtenerIdiomaCombo(); } if (cotizacion != null) { moneda = _coreMoneda.selectMoneda(cotizacion.IdMoneda); } DropDownList lblIdioma = FindControlFromMaster <DropDownList>("ddlLanguages"); if (lblIdioma != null) { lblIdioma.SelectedValue = idioma.DescripcionLenguaje; } DropDownList lblStatus = FindControlFromMaster <DropDownList>("MonedaDRW"); if (lblStatus != null) { if (cotizacion != null) { lblStatus.SelectedValue = cotizacion.IdMoneda.ToString(); } } }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; string[] unosPermisosTest = new string[] { "QuienesSomosMod" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } NombreEmpresa.Value = EmpresaBLL.EmpresaSelectByCuit(ConfigSection.Default.Site.Cuit).NombreEmpresa; QuienesSomos.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "QuienesSomos", 1).Valor; Mision.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "Mision", 1).Valor; Vision.InnerHtml = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "Vision", 1).Valor; TelefonoEmpresa.Value = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "TelEmpresa", 1).Valor; MailEmpresa.Value = EmpresaBLL.SeleccionarContenidoEmpresa(ConfigSection.Default.Site.Cuit, "MailEmpresa", 1).Valor; }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; string[] unosPermisosTest = new string[] { "AdquisicionRegistrar" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } if (!IsPostBack) { CargarSucursales(); } else { if (Current.Session["AdqEnTramite"] != null) { unaAdquisicion = (Adquisicion)Current.Session["AdqEnTramite"]; } } }
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; } usuarioentidad = (UsuarioEntidad)Session["Usuario"]; string[] unosPermisosTest = new string[] { "ClienteVer", "ClienteEliminar", "ClienteMod" }; if (usuarioentidad == null || !this.Master.Autenticar(unosPermisosTest)) { Response.Redirect("/Areas/Public/Forms/Home.aspx"); } //unosPermisosTest = new string[] { "Empleado" }; //if (this.Master.Autenticar(unosPermisosTest)) //{ // Response.Redirect("/Areas/Intranet/Forms/OrdenesPedido.aspx"); //} if (!IsPostBack) { cargarClientes(); } }