protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); if (sesion.CalendarioIni >= txtFecha1.MinDate && sesion.CalendarioIni <= txtFecha1.MaxDate) { txtFecha1.DbSelectedDate = sesion.CalendarioIni; } if (sesion.CalendarioFin >= txtFecha2.MinDate && sesion.CalendarioFin <= txtFecha2.MaxDate) { txtFecha2.DbSelectedDate = sesion.CalendarioFin; } Session["Sesion" + Session.SessionID] = sesion; rgOrdCompra.Rebind(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { CN__Comun comun = new CN__Comun(); Sesion sesion2 = (Sesion)Session["Sesion" + Session.SessionID]; comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); if (sesion2.CalendarioIni >= txtFecha1.MinDate && sesion2.CalendarioIni <= txtFecha1.MaxDate) { txtFecha1.DbSelectedDate = sesion2.CalendarioIni; } if (sesion2.CalendarioFin >= txtFecha2.MinDate && sesion2.CalendarioFin <= txtFecha2.MaxDate) { txtFecha2.DbSelectedDate = sesion2.CalendarioFin; } Session["Sesion" + Session.SessionID] = sesion2; //this.CargarCliente(ref cmbCliente); //txtCliente.Text = string.Empty; //cmbCliente.SelectedIndex = cmbCliente.FindItemIndexByValue("-1"); rgFacturaSvtaAlmacen.Rebind(); } catch (Exception ex) { this.DisplayMensajeAlerta(string.Concat(ex.Message, "Cmb_CentroDistribucion_IndexChanging_error")); } }
protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); //this.CargarCliente(); txtCliente.Text = string.Empty; //cmbCliente.SelectedIndex = cmbCliente.FindItemIndexByValue("-1"); List <Territorios> listaTerr = new List <Territorios>(); Territorios ter = new Territorios(); ter.Descripcion = "-- Seleccionar --"; ter.Id_Ter = -1; listaTerr.Insert(0, ter); txtTerritorio.Text = string.Empty; } catch (Exception ex) { this.DisplayMensajeAlerta(string.Concat(ex.Message, "Cmb_CentroDistribucion_IndexChanging_error")); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); if (sesion.CalendarioIni >= dpFecha1.MinDate && sesion.CalendarioIni <= dpFecha1.MaxDate) { dpFecha1.DbSelectedDate = sesion.CalendarioIni; } if (sesion.CalendarioFin >= dpFecha2.MinDate && sesion.CalendarioFin <= dpFecha2.MaxDate) { dpFecha2.DbSelectedDate = sesion.CalendarioFin; } Session["Sesion" + Session.SessionID] = sesion; rgReclamaciones.Rebind(); } catch (Exception ex) { ErrorManager(ex, "cmbCentro_SelectedIndexChanged1"); } }
protected void CmbCentro_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { if (session == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); Sesion sesion2 = session; comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); session = sesion2; Limpiar(); cmbTipo.SelectedIndex = 0; txtDocumento.Value = null; cmbSerie.SelectedIndex = 0; rgDocumentos.Rebind(); rgLogDocumento.Rebind(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void CmbCentro_SelectedIndexChanged(object sender, EventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); if (sesion.CalendarioIni >= dpFecha1.MinDate && sesion.CalendarioIni <= dpFecha1.MaxDate) { dpFecha1.DbSelectedDate = sesion.CalendarioIni; } if (sesion.CalendarioFin >= dpFecha2.MinDate && sesion.CalendarioFin <= dpFecha2.MaxDate) { dpFecha2.DbSelectedDate = sesion.CalendarioFin; } Session["Sesion" + Session.SessionID] = sesion; rgEntSal.Rebind(); limpiarCamposBusqueda(); } catch (Exception ex) { throw ex; } }
protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); //this.CargarCliente(ref cmbCliente); this.CargarTerritorios(ref cmbTerritorio); txtCliente.Text = string.Empty; txtTerritorio.Text = string.Empty; txtClienteNombre.Text = string.Empty; //cmbCliente.SelectedIndex = cmbCliente.FindItemIndexByValue("-1"); cmbTerritorio.SelectedIndex = cmbTerritorio.FindItemIndexByValue("-1"); txtFecha1.SelectedDate = null; txtFecha2.SelectedDate = null; rgBase.DataSource = new List <ContratoComodato>(); rgBase.DataBind(); } catch (Exception ex) { this.DisplayMensajeAlerta(string.Concat(ex.Message, "Cmb_CentroDistribucion_IndexChanging_error")); } }
protected void CmbCentro_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) {//combos de menu de pantalla try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); if (sesion.CalendarioIni >= dpFechaini.MinDate && sesion.CalendarioIni <= dpFechaini.MaxDate) { dpFechaini.DbSelectedDate = sesion.CalendarioIni; } if (sesion.CalendarioFin >= dpFechafin.MinDate && sesion.CalendarioFin <= dpFechafin.MaxDate) { dpFechafin.DbSelectedDate = sesion.CalendarioFin; } Session["Sesion" + Session.SessionID] = sesion; Inicializar(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void CmbCentro_SelectedIndexChanged1(object o, RadComboBoxSelectedIndexChangedEventArgs e) { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); }
protected void CmbCentro_SelectedIndexChanged(object sender, EventArgs e) { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); } catch (Exception ex) { ErrorManager(ex, "CmbCentro_SelectedIndexChanged1"); } }
protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); } catch (Exception ex) { this.DisplayMensajeAlerta(string.Concat(ex.Message, "Cmb_CentroDistribucion_IndexChanging_error")); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { CN__Comun comun = new CN__Comun(); Sesion sesion2 = session; comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); session = sesion2; Inicializar(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void ddlCDS_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { try { CN__Comun comun = new CN__Comun(); Sesion sesion2 = (Sesion)Session["Sesion" + Session.SessionID]; comun.CambiarCdVer(ddlCDS.SelectedItem, ref sesion2); Session["Sesion" + Session.SessionID] = sesion2; CargarMetas(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); Inicializar(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void CmbCentro_SelectedIndexChanged1(object o, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); CargarComboTipoU(); Nuevo(); RadGrid1.Rebind(); } catch (Exception ex) { ErrorManager(ex, "CmbCentro_SelectedIndexChanged1"); } }
protected void CmbCentro_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { //Sesion Sesion = new Sesion(); //Sesion = (Sesion)Session["Sesion" + Session.SessionID]; //Sesion.Id_Cd_Ver = Convert.ToInt32(CmbCentro.SelectedItem.Value); try { CN__Comun comun = new CN__Comun(); Sesion sesion2 = sesion; comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); sesion = sesion2; } catch (Exception ex) { throw ex; } }
protected void cdsCambio() { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(ddlCDS.SelectedItem, ref sesion); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void cmbCentrosDist_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion Sesion = new Sesion(); Sesion = (Sesion)Session["Sesion" + Session.SessionID]; Sesion.Id_Cd_Ver = Convert.ToInt32(CmbCentro.SelectedItem.Value); if (Sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref Sesion); } catch (Exception ex) { ErrorManager(ex, "CmbCentro_SelectedIndexChanged1"); } }
protected void CmbCentro_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); dpFecha1.SelectedDate = sesion.CalendarioIni; dpFecha2.SelectedDate = sesion.CalendarioFin; } catch (Exception ex) { throw ex; } }
protected void cmbCentrosDist_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); Session["Sesion" + Session.SessionID] = sesion; rgGestionRentabilidad.Rebind(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void cmbCentrosDist_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); CargarAño(); int año = !string.IsNullOrEmpty(cmbAño.SelectedValue) ? Convert.ToInt32(cmbAño.SelectedValue) : -1; CargarMes(año); } catch (Exception ex) { throw ex; } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Server.Transfer("Login.aspx"); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); RAM1.ResponseScripts.Add("ObtenerCentroVer(" + CmbCentro.SelectedValue + ");"); this.rgFacturaRuta.Rebind(); } catch (Exception ex) { ErrorManager(ex, "cmbCentro_SelectedIndexChanged1"); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion = new Sesion(); sesion = (Sesion)Session["Sesion" + Session.SessionID]; if (sesion == null) { string[] pag = Page.Request.Url.ToString().Split(new string[] { "/", @"\" }, StringSplitOptions.RemoveEmptyEntries); Session["dir" + Session.SessionID] = pag[pag.Length - 1]; Response.Redirect("login.aspx", false); } CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion); Nuevo(); rgProducto.Rebind(); } catch (Exception ex) { ErrorManager(ex, "CmbCentro_SelectedIndexChanged1"); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { CN__Comun comun = new CN__Comun(); Sesion sesion2 = sesion; comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); if (sesion2.CalendarioIni >= txtFecha1.MinDate && sesion2.CalendarioIni <= txtFecha1.MaxDate) { txtFecha1.DbSelectedDate = sesion2.CalendarioIni; } if (sesion2.CalendarioFin >= txtFecha2.MinDate && sesion2.CalendarioFin <= txtFecha2.MaxDate) { txtFecha2.DbSelectedDate = sesion2.CalendarioFin; } sesion = sesion2; rgPedido.Rebind(); } catch (Exception ex) { ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name); } }
protected void CmbCentro_SelectedIndexChanged1(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) { try { Sesion sesion2 = sesion; CN__Comun comun = new CN__Comun(); comun.CambiarCdVer(CmbCentro.SelectedItem, ref sesion2); if (sesion2.CalendarioIni >= txtFecha1.MinDate && sesion2.CalendarioIni <= txtFecha1.MaxDate) { txtFecha1.DbSelectedDate = sesion2.CalendarioIni; } if (sesion2.CalendarioFin >= txtFecha2.MinDate && sesion2.CalendarioFin <= txtFecha2.MaxDate) { txtFecha2.DbSelectedDate = sesion2.CalendarioFin; } sesion = sesion2; rgPago.Rebind(); } catch (Exception ex) { ErrorManager(ex, "CmbCentro_SelectedIndexChanged1"); } }