Example #1
0
 protected void chkRecibos_Click(object sender, EventArgs e)
 {
     if ((bool)chkRecibos.Checked)
     {
         var lstRoles = (List <Roles>)Session["CCFNRoles"];
         var rolesCSV = "";
         lstRoles.ForEach(rol => rolesCSV += (rol.Name + ", "));
         rolesCSV            = rolesCSV.TrimEnd(',', ' ');
         RadGrid1.DataSource = GeneralBL.GetInvoicesRecibos(rolesCSV.Contains("ADMINISTRADOR"), ((Users)Session["CCFNUser"]).RFC, txtSerie.Text, txtFolio.Text, dteDesde.SelectedDate, dteHasta.SelectedDate, ((Users)Session["CCFNUser"]).UserId, txtSucursal.Text, txtCodigoCliente.Text, txtRFC.Text);
     }
     else
     {
         GetDataSourceInvoices();
     }
     RadGrid1.DataBind();
     //Response.Write("<script language='javascript'>alert('"+ chkRecibos.Checked + "');</script>");
 }