protected void RadComboBox1_DataBound(object sender, EventArgs e) { DateTime?day0 = DateTime.Parse(RadComboBox1.SelectedValue.ToString()); DateTime?day1 = day0.Value.AddDays(1); DateTime?day2 = day0.Value.AddDays(2); DateTime?day3 = day0.Value.AddDays(3); DateTime?day4 = day0.Value.AddDays(4); DateTime?day5 = day0.Value.AddDays(5); DateTime?day6 = day0.Value.AddDays(6); SqlDataSource2.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid2.MasterTableView.Columns[3].HeaderText = day0.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[4].HeaderText = day1.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[5].HeaderText = day2.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[6].HeaderText = day3.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[7].HeaderText = day4.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[8].HeaderText = day5.Value.ToShortDateString(); RadGrid2.MasterTableView.Columns[9].HeaderText = day6.Value.ToShortDateString(); RadGrid2.Rebind(); SqlDataSource3.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid3.Rebind(); SqlDataSource4.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid4.Rebind(); SqlDataSource5.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid5.Rebind(); }
protected void RadGrid3_PreRender(object sender, EventArgs e) { foreach (GridColumn column in RadGrid3.Columns) { if (column.UniqueName == "CarrierServiceGroup" || column.UniqueName == "ServiceGroupDescr") { if (_itemStatusCode == null || _itemStatusCode == 150 || _itemStatusCode == 170 || _itemStatusCode == 180 || _itemStatusCode == 190) { (column as GridBoundColumn).Visible = false; } } else if (column.UniqueName == "ServiceTypeDescr") { if (_itemStatusCode == null || _itemStatusCode == 40 || _itemStatusCode == 50 || _itemStatusCode == 90 || _itemStatusCode == 110 || _itemStatusCode == 120 || _itemStatusCode == 130) { (column as GridBoundColumn).Visible = false; } } } RadGrid3.Rebind(); }
protected void RadGrid2_SelectedIndexChanged(object sender, EventArgs e) { SqlDataSource3.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid3.Rebind(); SqlDataSource4.SelectParameters[0].DefaultValue = RadComboBox1.SelectedValue.ToString(); RadGrid4.Rebind(); //RadGrid5.Rebind(); }
protected void RadGrid2_ItemCommand(object sender, GridCommandEventArgs e) { try { RadGrid3.Rebind(); lblError.Text = ""; object valor = RadGrid2.SelectedValues["idServicio"]; object valorProd = RadGrid2.SelectedValues["servicio"]; imgLogo.ImageUrl = string.Format("DisplayLogo.ashx?id={0};{1};1", RadGrid1.SelectedValue, valor.ToString()); imgReference.ImageUrl = string.Format("DisplayLogo.ashx?id={0};{1};2", RadGrid1.SelectedValue, valor.ToString()); lblIdCatTipoServicio.Text = RadGrid1.SelectedValue.ToString(); lblIdServicio.Text = valor.ToString(); lblServicio.Text = valorProd.ToString(); lblTipoFront.Text = lblIdProducto.Text = "0"; txtTelefono.Text = txtReferencia.Text = txtMonto.Text = ""; Label1.Visible = Label2.Visible = Label4.Visible = Label5.Visible = Label6.Visible = false; txtTelefono.Visible = txtTelefonoConfirm.Visible = txtDigito.Visible = txtReferencia.Visible = txtMonto.Visible = false; lnkAbonar.Visible = false; lblReferenciaInfo.Text = ""; lblDescripcion.Text = ""; imgReference.Visible = false; } catch (Exception) { lblIdServicio.Text = lblTipoFront.Text = lblIdProducto.Text = "0"; lblServicio.Text = ""; } }
protected void RadGrid3_ItemUpdated(object sender, GridUpdatedEventArgs e) { RadGrid3.Rebind(); }
protected void RadTextBox1_TextChanged(object sender, EventArgs e) { RadGrid3.Rebind(); }