protected void ImgEfectivo_Click(object sender, ImageClickEventArgs e) { try { GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent; foreach (GridViewRow fr in GrdvLost.Rows) { fr.Cells[0].BackColor = System.Drawing.Color.White; } GrdvLost.Rows[gvRow.RowIndex].Cells[0].BackColor = System.Drawing.Color.Coral; _codigoproy = int.Parse(GrdvLost.DataKeys[gvRow.RowIndex].Values["CodigoPROY"].ToString()); _dts = new ConsultaDatosDAO().FunConsultaDatos(245, int.Parse(Session["usuCodigo"].ToString()), _codigoproy, 0, "", "PGR", "", ViewState["Conectar"].ToString()); _dts = new PagoCarteraDAO().FunGetPagoCartera(23, int.Parse(DdlCedente.SelectedValue), int.Parse(DdlCatalogo.SelectedValue), "", "", "", "", "", "PPR", "", "", "", _year, _mes, int.Parse(DdlGestor.SelectedValue), 0, "", ViewState["Conectar"].ToString()); ViewState["PagosLost"] = _dts.Tables[0]; GrdvLost.DataSource = _dts.Tables[0]; GrdvLost.DataBind(); if (_dts.Tables[0].Rows.Count == 0) { DivPagos.Visible = false; } } catch (Exception ex) { Lblerror.Text = ex.ToString(); } }
protected void BtnProcesar_Click(object sender, EventArgs e) { try { if (DdlCedente.SelectedValue == "0") { new FuncionesDAO().FunShowJSMessage("Seleccione Cedente..!", this); return; } if (DdlCatalogo.SelectedValue.ToString() == "0") { new FuncionesDAO().FunShowJSMessage("Seleccione Catalogo/Producto..!", this); return; } if (DdlGestor.SelectedValue.ToString() == "0") { new FuncionesDAO().FunShowJSMessage("Seleccione Gestor..!", this); return; } _dts = new ConsultaDatosDAO().FunConsultaDatos(227, int.Parse(DdlGestor.SelectedValue), 0, 0, "", "", "", ViewState["Conectar"].ToString()); if (_dts.Tables[0].Rows.Count > 0) { _codigobrmc = int.Parse(_dts.Tables[0].Rows[0]["CodigoBRMC"].ToString()); _dts = new ConsultaDatosDAO().FunConsultaDatos(228, _codigobrmc, 0, 0, "", "", "", ViewState["Conectar"].ToString()); _meslabel = _dts.Tables[0].Rows[0]["MesLabel"].ToString(); _mes = int.Parse(_dts.Tables[0].Rows[0]["Mes"].ToString()); _year = int.Parse(_dts.Tables[0].Rows[0]["Anio"].ToString()); Lbltitulo.Text = "EFECTIVIZAR PROYECCION " + _meslabel + " " + _year.ToString(); DivPagos.Visible = false; _dts = new PagoCarteraDAO().FunGetPagoCartera(23, int.Parse(DdlCedente.SelectedValue), int.Parse(DdlCatalogo.SelectedValue), "", "", "", "", "", "PPR", "", "", "", _year, _mes, int.Parse(DdlGestor.SelectedValue), 0, "", ViewState["Conectar"].ToString()); ViewState["PagosLost"] = _dts.Tables[0]; GrdvLost.DataSource = _dts.Tables[0]; GrdvLost.DataBind(); if (_dts.Tables[0].Rows.Count > 0) { DivPagos.Visible = true; } } } catch (Exception ex) { Lblerror.Text = ex.ToString(); } }
protected void DdlCedente_SelectedIndexChanged(object sender, EventArgs e) { try { FunCargarCombos(2); FunCargarCombos(1); GrdvLost.DataSource = null; GrdvLost.DataBind(); } catch (Exception ex) { Lblerror.Text = ex.ToString(); } }