//private void FormaPago_ComboBox() //{ // FormaPagoWCFClient objFormaPagoWCF; // VBG00890Result objFormaPago; // List<VBG00890Result> lstFormaPago; // try // { // objFormaPagoWCF = new FormaPagoWCFClient(); // objFormaPago = new VBG00890Result(); // objFormaPago.ID = -1; // objFormaPago.Nombre = "Todos"; // lstFormaPago = objFormaPagoWCF.FormaPago_Listar(((Usuario_LoginResult)Session["Usuario"]).idEmpresa, // ((Usuario_LoginResult)Session["Usuario"]).codigoUsuario).ToList(); // lstFormaPago.Insert(0, objFormaPago); // cboFormaPago.DataSource = lstFormaPago; // cboFormaPago.DataValueField = "ID"; // cboFormaPago.DataTextField = "Nombre"; // cboFormaPago.DataBind(); // if (cboFormaPago.Items.Count > 0) // cboFormaPago.SelectedIndex = 0; // } // catch (Exception ex) // { // throw ex; // } //} private void OrdenVenta_Listar(string ID_Agenda, DateTime fechaInicial, DateTime fechaFinal, string ID_Vendedor) { try { OrdenVentaWCFClient objOrdenVentaWCF = new OrdenVentaWCFClient(); List <gsOV_ListarResult> lst = objOrdenVentaWCF.OrdenVenta_Listar(((Usuario_LoginResult)Session["Usuario"]).idEmpresa, ((Usuario_LoginResult)Session["Usuario"]).codigoUsuario, ID_Agenda, fechaInicial, fechaFinal, ID_Vendedor, ((Usuario_LoginResult)Session["Usuario"]).modificarPedido).ToList(); ViewState["lstOrdenVenta"] = JsonHelper.JsonSerializer(lst); grdOrdenVenta.DataSource = lst; grdOrdenVenta.DataBind(); ViewState["fechaInicial"] = fechaInicial; ViewState["fechaFinal"] = fechaFinal; } catch (Exception ex) { throw ex; } }