protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack && !Page.IsCallback) { lblError.Text = string.Empty; trMsg.Visible = false; trFrecuencia.Visible = false; trHoraFin.Visible = false; trHoraInicio.Visible = false; trIntervalo.Visible = false; FormsHelper.InicializarPropsGrilla(gv); FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.EspacioCont, gv); } ucIdentifFrecuencia.Inicializar(BusinessMapper.eEntities.Frecuencia); ucIdentifIntervalo.Inicializar(BusinessMapper.eEntities.Intervalo); ucIdentifMedio.Inicializar(BusinessMapper.eEntities.MediosPub); ucIdentifTipoEsp.Inicializar(BusinessMapper.eEntities.TipoEspacio, true); ucIdentifTipoEsp.ComboBox.SelectedIndexChanged += new EventHandler(TipoEspacio_SelectedIndexChanged); ASPxMenu1.ItemClick += new DevExpress.Web.ASPxMenu.MenuItemEventHandler(ASPxMenu1_ItemClick); RefreshGrid(gv); lblError.Text = string.Empty; }
protected void Page_Load(object sender, EventArgs e) { DAO = BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.PiezasArte); if (!Page.IsPostBack && !Page.IsCallback) { trMsg.Visible = false; trAbm.Visible = false; gvABM.SettingsBehavior.AllowSelectByRowClick = true; gvABM.SettingsBehavior.AllowSelectSingleRowOnly = true; FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.PiezasArte, gv); FormsHelper.InicializarPropsGrilla(gv); } ucIdentifAnun.Inicializar(BusinessMapper.eEntities.AnunInternos); ucIdentifTipoPieza.Inicializar(BusinessMapper.eEntities.TipoPieza); ucIdentifSKU.Inicializar(BusinessMapper.eEntities.SKU); ucIdentifTipoPieza.ComboBox.AutoPostBack = true; ucIdentifTipoPieza.ComboBox.SelectedIndexChanged += new EventHandler(TipoPieza_SelectedIndexChanged); gvABM.KeyFieldName = "RecId"; ASPxMenu1.ItemClick += new DevExpress.Web.ASPxMenu.MenuItemEventHandler(ASPxMenu1_ItemClick); rbTipoProd.AutoPostBack = true; rbTipoProd.SelectedIndexChanged += new EventHandler(rbTipoProd_SelectedIndexChanged); RefreshGrid(gv); RefreshAbmGrid(gvABM); lblError.Text = string.Empty; lblErrorProducto.Text = string.Empty; }
protected void Page_Load(object sender, EventArgs e) { DAO = BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.Avisos); lblError.Text = string.Empty; lblErrorProducto.Text = string.Empty; if (!Page.IsPostBack && !Page.IsCallback) { trMsg.Visible = false; trAbm.Visible = false; gvABM.SettingsBehavior.AllowSelectByRowClick = true; gvABM.SettingsBehavior.AllowSelectSingleRowOnly = true; FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.Avisos, gv); FormsHelper.InicializarPropsGrilla(gv); cbIdentifIdentAte.CallbackPageSize = 10; cbIdentifIdentAte.EnableCallbackMode = true; cbIdentifIdentAte.IncrementalFilteringMode = DevExpress.Web.ASPxEditors.IncrementalFilteringMode.Contains; cbIdentifIdentAte.ValueField = "IdentifIdentAte"; cbIdentifIdentAte.Columns.Add("IdentifIdentAte", "Codigo"); cbIdentifIdentAte.Columns.Add("Name", "Nombre"); cbIdentifIdentAte.Columns.Add("Asignado", "Asignado"); } ucIdentifEspacio.Inicializar(BusinessMapper.eEntities.EspacioCont); ucIdentifFormAviso.Inicializar(BusinessMapper.eEntities.FormAviso); ucIdentifPieza.Inicializar(BusinessMapper.eEntities.PiezasArte); ucIdentifPieza.ComboBox.AutoPostBack = true; ucIdentifPieza.ComboBox.SelectedIndexChanged += new EventHandler(Pieza_SelectedIndexChanged); gvABM.KeyFieldName = "RecId"; ASPxMenu1.ItemClick += new DevExpress.Web.ASPxMenu.MenuItemEventHandler(ASPxMenu1_ItemClick); btnAdd.Click += new EventHandler(btnAdd_Click); btnCancel.Click += new EventHandler(btnCancel_Click); btnDelete.Click += new EventHandler(btnDelete_Click); btnSave.Click += new EventHandler(btnSave_Click); btnAddAtencion.Click += new EventHandler(btnAddAtencion_Click); btnDeleteAtencion.Click += new EventHandler(btnDeleteAtencion_Click); RefreshGrid(gv); RefreshAbmGrid(gvABM); }
protected void Page_Load(object sender, EventArgs e) { //DAO = BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.Monedas); lblError.Text = string.Empty; lblErrorProducto.Text = string.Empty; if (!Page.IsPostBack && !Page.IsCallback) { trMsg.Visible = false; trAbm.Visible = false; gvABM.SettingsBehavior.AllowSelectByRowClick = true; gvABM.SettingsBehavior.AllowSelectSingleRowOnly = true; FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.Monedas, gv); FormsHelper.InicializarPropsGrilla(gv); } gvABM.KeyFieldName = "RecId"; RefreshGrid(gv); RefreshAbmGrid(gvABM); }
protected void Page_Load(object sender, EventArgs e) { //Invisibilizo los controles btnRefresh y btnAdd del ucIdentifEspacio0 UcIdentifEspacio0.Controls[0].Controls[0].Controls[3].Visible = false; UcIdentifEspacio0.Controls[0].Controls[0].Controls[5].Visible = false; // DAO = BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.Costos); lblError.Text = string.Empty; lblErrorProveedor.Text = string.Empty; lblErrorFrecuencia.Text = string.Empty; if (!Page.IsPostBack && !Page.IsCallback) { trMsg.Visible = false; trAbm.Visible = false; //Inicializo los controles del ABM trTipoHorario.Visible = false; trFrecuencia.Visible = false; trDia.Visible = false; trDiaSemana.Visible = false; trHoraDesde.Visible = false; trHoraHasta.Visible = false; //Inicializo las 3 grillas. FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.Costos, gv); FormsHelper.BuildColumnsByEntity(BusinessMapper.eEntities.Costos, gvVersiones); gvABMFrecuencia.Columns.Add(new GridViewDataColumn("Dia", "Día")); gvABMFrecuencia.Columns.Add(new GridViewDataComboBoxColumn() { Caption = "Día Semana", FieldName = "DiaSemana" }); gvABMFrecuencia.Columns.Add(new GridViewDataTimeEditColumn() { Caption = "Hora Desde", FieldName = "HoraDesde" }); gvABMFrecuencia.Columns.Add(new GridViewDataTimeEditColumn() { Caption = "Hora Hasta", FieldName = "HoraHasta" }); gvABMFrecuencia.Columns.Add(new GridViewDataColumn("Costo", "Costo")); FormsHelper.FillDias((gvABMFrecuencia.Columns["DiaSemana"] as GridViewDataComboBoxColumn).PropertiesComboBox.Items); gvABMProveedor.Columns.Add(FormsHelper.BuildComboColumn("Proveedor", "IdentifProv", BusinessMapper.eEntities.Proveedor)); gvABMProveedor.Columns.Add(FormsHelper.BuildComboColumn("Categoría de Costo", "Categoria", "Directo", "DIRECTO", "Indirecto", "INDIRECTO")); gvABMProveedor.Columns.Add(new GridViewDataCheckColumn() { Caption = "Incluido en Orden Publicidad", FieldName = "IncluidoOP" }); gvABMProveedor.Columns.Add(new GridViewDataCheckColumn() { Caption = "Estimado", FieldName = "Estimado" }); gvABMProveedor.Columns.Add(FormsHelper.BuildComboColumn("Tipo de Costo", "TipoCosto", "Fijo Mensual", "FIJO_MENSUAL", "Segundo Fijo", "SEGUNDO_FIJO", "Unidad Pautada", "UNIDAD_PAUTADA")); gvABMProveedor.Columns.Add(FormsHelper.BuildComboColumn("Moneda", "IdentifMon", BusinessMapper.eEntities.Monedas)); gvABMProveedor.Columns.Add(new GridViewDataColumn("GrossingUp", "Grossing Up")); gvABMProveedor.Columns.Add(new GridViewDataColumn("Costo", "Costo")); FormsHelper.InicializarPropsGrilla(gv); FormsHelper.InicializarPropsGrilla(gvABMFrecuencia); FormsHelper.InicializarPropsGrilla(gvABMProveedor); FormsHelper.InicializarPropsGrilla(gvVersiones); gvABMFrecuencia.Settings.ShowGroupPanel = false; gvABMProveedor.Settings.ShowGroupPanel = false; gvVersiones.Settings.ShowGroupPanel = false; } ucIdentifEspacio.Inicializar(BusinessMapper.eEntities.EspacioCont); UcIdentifEspacio0.Inicializar(BusinessMapper.eEntities.EspacioCont); UcIdentifEspacio0.ComboBox.AutoPostBack = true; UcIdentifEspacio0.ComboBox.SelectedIndexChanged += new EventHandler(IdentifEspacio0_SelectedIndexChanged); ucIdentifFrecuencia.Inicializar(BusinessMapper.eEntities.Frecuencia); ucIdentifMon.Inicializar(BusinessMapper.eEntities.Monedas); ucIdentifProv.Inicializar(BusinessMapper.eEntities.Proveedor); ucIdentifEspacio.ComboBox.AutoPostBack = true; ucIdentifEspacio.ComboBox.SelectedIndexChanged += new EventHandler(IdentifEspacio_SelectedIndexChanged); ucIdentifFrecuencia.ComboBox.AutoPostBack = true; ucIdentifFrecuencia.ComboBox.SelectedIndexChanged += new EventHandler(IdentifFrecuencia_SelectedIndexChanged); rbFrecuencia.AutoPostBack = true; rbFrecuencia.SelectedIndexChanged += new EventHandler(rbFrecuencia_SelectedIndexChanged); rbHorario.AutoPostBack = true; rbHorario.SelectedIndexChanged += new EventHandler(rbHorario_SelectedIndexChanged); gvABMFrecuencia.KeyFieldName = "RecId"; gvABMProveedor.KeyFieldName = "RecId"; gvVersiones.KeyFieldName = "RecId"; ASPxMenu1.ItemClick += new DevExpress.Web.ASPxMenu.MenuItemEventHandler(ASPxMenu1_ItemClick); RefreshGrid(gv); RefreshAbmGrid(gvABMProveedor); RefreshAbmGrid(gvABMFrecuencia); RefreshGrid(gvVersiones); }