/// <summary> /// btnBuscar_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnBuscar_Click(object sender, EventArgs e) { try { lblMensajeError.InnerText = ""; //WS IwsUtilClient owsUtilClient = new IwsUtilClient(); List <enProcurador> olEnPolizaResult = new List <enProcurador>(); //Parametros enProcurador oEnProcurador = new enProcurador(); oEnProcurador.NumProcurador = txtCodigoProcurador.Value; oEnProcurador.ApellidoPaterno = txtNombreProcurador.Value; oEnProcurador.Nombre = txtNombreProcurador.Value; oEnProcurador.ApellidoMaterno = txtNombreProcurador.Value; //Obtiene Listado List <enProcurador> olEnPoliza = owsUtilClient.ListarProcurador(oEnProcurador).Cast <enProcurador>().ToList(); /* * foreach (enProcurador procurador in olEnPoliza.Where(b => b.Disponible)) * { * olEnPolizaResult.Add(procurador); * }*/ rptListadoProcurador.DataSource = olEnPoliza; rptListadoProcurador.DataBind(); } catch (Exception ex) { //throw ex; lblMensajeError.InnerText = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { try { lblMensajeError.InnerText = ""; //IsPostBack if (!this.IsPostBack) { List <enProcurador> olEnPolizaResult = new List <enProcurador>(); //WS IwsUtilClient owsUtilClient = new IwsUtilClient(); //Parametros enProcurador oEnProcurador = new enProcurador(); //Obtiene Listado List <enProcurador> olEnPoliza = owsUtilClient.ListarProcurador(oEnProcurador).Cast <enProcurador>().ToList(); /* * foreach (enProcurador procurador in olEnPoliza.Where(b => b.Disponible)) * { * olEnPolizaResult.Add(procurador); * }*/ rptListadoProcurador.DataSource = olEnPoliza; rptListadoProcurador.DataBind(); } } catch (Exception ex) { //throw ex; lblMensajeError.InnerText = ex.Message; } }
/// <summary> /// btnBuscar_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnBuscar_Click(object sender, EventArgs e) { try { lblMensajeError.InnerText = ""; //DateTime Now = DateTime.Now; List <enPoliza> olEnPolizaResult = new List <enPoliza>(); //WS IwsUtilClient owsUtilClient = new IwsUtilClient(); //Parametros enPoliza oEnPoliza = new enPoliza(); oEnPoliza.DniAsegurado = txtDniAsegurado.Value; oEnPoliza.NumPoliza = txtNumeroPoliza.Value; oEnPoliza.Placa = txtNumeroPlaca.Value; //Obtiene Listado List <enPoliza> olEnPoliza = owsUtilClient.ListarPoliza(oEnPoliza).Cast <enPoliza>().ToList(); /* * foreach (enPoliza poliza in olEnPoliza.Where( * b => (b.FechaInicio <= Now && Now <= b.FechaFin))) * { * olEnPolizaResult.Add(poliza); * }*/ rptListadoPolizas.DataSource = olEnPoliza; rptListadoPolizas.DataBind(); } catch (Exception ex) { //throw ex; lblMensajeError.InnerText = ex.Message; } }
/// <summary> /// Page_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { try { lblMensajeError.InnerText = ""; //IsPostBack if (!this.IsPostBack) { //DateTime Now = DateTime.Now; List <enPoliza> olEnPolizaResult = new List <enPoliza>(); //WS-SINIESTRO IwsUtilClient owsUtilClient = new IwsUtilClient(); //Parametros enPoliza oEnPoliza = new enPoliza(); //Obtiene Listado de Siniestros List <enPoliza> olEnPoliza = owsUtilClient.ListarPoliza(oEnPoliza).Cast <enPoliza>().ToList(); /* * foreach (enPoliza poliza in olEnPoliza.Where( * b => (b.FechaInicio<=Now && Now <= b.FechaFin))) * { * olEnPolizaResult.Add(poliza); * }*/ rptListadoPolizas.DataSource = olEnPoliza; rptListadoPolizas.DataBind(); } } catch (Exception ex) { //throw ex; lblMensajeError.InnerText = ex.Message; } }