private void FillAlert4(List<AlertSaleOrder> lstNoCumplimentadas, string customerCode) { GVSeguimientoOV.DataSource = lstNoCumplimentadas; GVSeguimientoOV.DataBind(); lblTotalCountAlert4.Text = "Total: " + lstNoCumplimentadas.Count + " registros"; pnSeguimientoOv.Visible = true; btnExportToExcel.Visible = (lstNoCumplimentadas.Count > 0); List<CustomerHelper> finalCustomerNames = new List<CustomerHelper>(); CustomerHelper def = new CustomerHelper("--Cliente--", "--00--"); def.Name = "--Cliente--"; finalCustomerNames.Add(def); finalCustomerNames.AddRange(ControllerManager.AlertSaleOrder.GetCustomers()); ddlClient.DataSource = finalCustomerNames; ddlClient.DataTextField = "Name"; ddlClient.DataValueField = "Code"; if(!string.IsNullOrEmpty(customerCode)) ddlClient.SelectedValue = customerCode; ddlClient.DataBind(); }
protected void GVNoCumplimentadas_PageIndexChanging(object sender, GridViewPageEventArgs e) { GVSeguimientoOV.PageIndex = e.NewPageIndex; GVSeguimientoOV.DataBind(); }