protected void Page_Load(object sender, EventArgs e) { try { if (IsPostBack == false) { DataTable t = new DataTable(); String codigo = "10000007826"; //servicioweb.cod.ToString(); String nombre = "FRANKLIN BENARD CASTRO"; //servicioweb.nom.ToString(); String fechai = "2018-12-25"; //servicioweb.fechainicial.ToString(); String fechaf = "2019-09-24"; //servicioweb.fechafinal.ToString(); String todo = "False"; //servicioweb.todos.ToString(); String saldoa; List <ReportParameter> parametros = new List <ReportParameter>(); if (todo == "True") { miclase.reportes("movahorro", "reportes/cooplinea/estadoahorro.rdlc", " fecha,cuenta,transanccion,depositos,retiros,numerooperacion", "movahorro", visor, "cuenta='" + codigo + "' ORDER BY fecha, transanccion"); } else { miclase.reportes("movahorro", "reportes/cooplinea/estadoahorro.rdlc", " fecha,cuenta,transanccion,depositos,retiros,numerooperacion", "movahorro", visor, "cuenta='" + codigo + "' AND fecha>='" + fechai + "' AND fecha<='" + fechaf + "' ORDER BY fecha, transanccion"); } // t = miclase.saldoa("movahorro", " SUM(depositos)-SUM(retiros) as saldoi", " fecha<'" + fechai + "' AND cuenta='" + codigo +"'"); saldoa = t.Rows[0][0].ToString(); parametros.Add(new ReportParameter("codigo", codigo)); parametros.Add(new ReportParameter("nombre", nombre)); parametros.Add(new ReportParameter("saldoa", saldoa)); visor.LocalReport.SetParameters(parametros); } }catch (Exception ex) { String error = ex.Message; } }
protected void cmdaceptar_Click(object sender, EventArgs e) { try { if (txtcircun.SelectedItem.Text == "TODAS LAS CIRCUNSCRIPCIONES") { miclase.reportes("vcliente", "reportes/cliente/lisclientecircun.rdlc", "circun,nombre,iden,telefono,dir", "vcliente", visor); } else { miclase.reportes("vcliente", "reportes/cliente/lisclientecircun.rdlc", "circun,nombre,iden,telefono,dir", "vcliente", visor, "circun='" + txtcircun.SelectedItem.Text + "'"); } } catch (Exception ex) { String error = ex.Message; } }
protected void cmdaceptar_Click(object sender, EventArgs e) { try { if (txtsucursal.SelectedItem.Text == "TODAS LAS SUCURSALES") { miclase.reportes("vcliente", "reportes/cliente/lisdelegadossucursal.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "esdelegado='SI'"); } else { miclase.reportes("vcliente", "reportes/cliente/lisdelegadossucursal.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "sucursal='" + txtsucursal.SelectedItem.Text + "' AND esdelegado='SI'"); } } catch (Exception ex) { String error = ex.Message; } }
protected void cmdlisto_Click(object sender, EventArgs e) { try { miclase.reportes("vapertura", "reportes/ahorro/cuentasnuevas.rdlc", "nombre,telefono,text,codigo,saldoi,fechaa", " detalleahorro ", visor, "fechaa>='" + txtfechas1.Text + "' AND fechaa<='" + txtfechas2.Text + "'"); } catch (Exception ex) { String error = ex.Message; } }
protected void cmdlisto_Click(object sender, EventArgs e) { try { miclase.reportes("vapertura", "reportes/ahorro/resumendesaldos.rdlc", "text, saldo,mvalor,interes,moneda", " resumenahorro ", visor); } catch (Exception ex) { String error = ex.Message; } }
protected void cmdlisto_Click(object sender, EventArgs e) { try { miclase.reportes("vapertura", "reportes/ahorro/saldosdeahorro.rdlc", "nombre,text,codigo,fechaa,saldo,mvalor,interes,sexo", " detalleahorro ", visor); } catch (Exception ex) { String error = ex.Message; } }
protected void cmdaceptar_Click(object sender, EventArgs e) { try { ReportParameter[] parameters = new ReportParameter[1]; if (txtins.SelectedItem.Text == "INSCRITOS") { if (txtsucursal.SelectedItem.Text == "TODAS LAS SUCURSALES") { miclase.reportes("vcliente", "reportes/cliente/lisinscritos.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "inscrito='SI'"); } else { miclase.reportes("vcliente", "reportes/cliente/lisinscritos.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "sucursal='" + txtsucursal.SelectedItem.Text + "' AND inscrito='SI'"); } parameters[0] = new ReportParameter("ins", "INSCRITO"); this.visor.LocalReport.SetParameters(parameters); this.visor.LocalReport.Refresh(); } else if (txtins.SelectedItem.Text == "NO INSCRITOS") { parameters[0] = new ReportParameter("ins", "NO INSCRITO"); this.visor.LocalReport.SetParameters(parameters); this.visor.LocalReport.Refresh(); if (txtsucursal.SelectedItem.Text == "TODAS LAS SUCURSALES") { miclase.reportes("vcliente", "reportes/cliente/lisinscritos.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "inscrito='NO'"); } else { miclase.reportes("vcliente", "reportes/cliente/lisinscritos.rdlc", "sucursal,nombre,iden,telefono,dir", "vcliente", visor, "sucursal='" + txtsucursal.SelectedItem.Text + "' AND inscrito='NO'"); } } } catch (Exception ex) { String error = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { try { if (IsPostBack == false) { DataTable t = new DataTable(); String codigo = servicioahorro.codcliente.ToString(); t = miclase.datos("vcliente ", " fecha,nombre,iden,fechana,dir,zona,telefono,correo,pais,ciudad,conyugue,hijos,escolaridad,ocupacion,estadocivil,profesion,lugartrabajo,dirtrabajo,teletrabajo,referente,dirreferente,telereferente ", " id='" + codigo + "'"); // saldoa = t.Rows[0][0].ToString(); miclase.reportes("vapertura", "reportes/ahorro/pia.rdlc", "text,codigo,saldoi,moneda,fechaa", " vapertura ", visor, "codcliente='" + codigo + "'"); ReportParameter[] parameters = new ReportParameter[22]; parameters[0] = new ReportParameter("fechaingreso", t.Rows[0][0].ToString()); parameters[1] = new ReportParameter("nombre", t.Rows[0][1].ToString()); parameters[2] = new ReportParameter("cedula", t.Rows[0][2].ToString()); parameters[3] = new ReportParameter("fechana", t.Rows[0][3].ToString()); parameters[4] = new ReportParameter("dir", t.Rows[0][4].ToString()); parameters[5] = new ReportParameter("zona", t.Rows[0][5].ToString()); parameters[6] = new ReportParameter("telefono", t.Rows[0][6].ToString()); parameters[7] = new ReportParameter("correo", t.Rows[0][7].ToString()); parameters[8] = new ReportParameter("nacionalidad", t.Rows[0][8].ToString()); parameters[9] = new ReportParameter("ciudad", t.Rows[0][9].ToString()); parameters[10] = new ReportParameter("nomconyugue", t.Rows[0][10].ToString()); parameters[11] = new ReportParameter("hijos", t.Rows[0][11].ToString()); parameters[12] = new ReportParameter("escolaridad", t.Rows[0][12].ToString()); parameters[13] = new ReportParameter("ocupacion", t.Rows[0][13].ToString()); parameters[14] = new ReportParameter("estadocivil", t.Rows[0][14].ToString()); parameters[15] = new ReportParameter("profesion", t.Rows[0][15].ToString()); parameters[16] = new ReportParameter("lugartrabajo", t.Rows[0][16].ToString()); parameters[17] = new ReportParameter("dirtrabajo", t.Rows[0][17].ToString()); parameters[18] = new ReportParameter("teletrabajo", t.Rows[0][18].ToString()); parameters[19] = new ReportParameter("referente", t.Rows[0][19].ToString()); parameters[20] = new ReportParameter("dirreferente", t.Rows[0][20].ToString()); parameters[21] = new ReportParameter("telereferente", t.Rows[0][21].ToString()); //parameters[19] = new ReportParameter("ingresom", t.Rows[0][2].ToString()); this.visor.LocalReport.SetParameters(parameters); this.visor.LocalReport.Refresh(); } }catch (Exception ex) { String error = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { try { if (IsPostBack == false) { String codigo = servicioweb.cod.ToString(); String nombre = servicioweb.nom.ToString(); miclase.reportes("cplanpago", "reportes/cooplinea/planpago.rdlc", "fecha,numcuota,principal,mantvalor,interes,total,saldofinal,dias", "cplanpago", visor, "codigo='" + codigo + "'"); List <ReportParameter> parametros = new List <ReportParameter>(); parametros.Add(new ReportParameter("codigo", codigo)); parametros.Add(new ReportParameter("nombre", nombre)); visor.LocalReport.SetParameters(parametros); } }catch (Exception ex) { String error = ex.Message; } }