public DsConsultaPlanillaRemito GetPlanillaRemitoCliente(DateTime fechaDesde, DateTime fechaHasta, int clienteID) { DsConsultaPlanillaRemito ds = new DsConsultaPlanillaRemito(); SqlParameter pFechaDesde = new SqlParameter("@FechaDesde", fechaDesde); SqlParameter pFechaHasta = new SqlParameter("@FechaHasta", fechaHasta); SqlParameter pClienteID = new SqlParameter("@ClienteID", Utiles.BaseDatos.IntToSql(clienteID)); Config.Conexion.LlenarTypeDataSet(ds.Datos, System.Data.CommandType.StoredProcedure, "ConsultaPlanillaRemitoClienteSEL", pClienteID, pFechaDesde, pFechaHasta); return(ds); }
private void BindGrid() { SisPackController.AdministrarGrillas.Configurar(this.dtgPlanillaRemito, "PlanillaRemitoClienteID", this.CantidadOpciones); DateTime fechaDesde = this.txtFechaDesde.Text != "" ? Utiles.Fechas.FormatFechaDDMMYYYY(this.txtFechaDesde.Text) : Utiles.Fechas.FormatFechaDDMMYYYY("01/01/1900"), fechaHasta = this.txtFechaHasta.Text != "" ? Utiles.Fechas.FormatFechaDDMMYYYY(this.txtFechaHasta.Text) : DateTime.Today; IConsultaPlanillaRemito consulta = ConsultaPlanillaRemitoFactory.GetPlanillaRemitoCliente(); DsConsultaPlanillaRemito ds = consulta.GetPlanillaRemitoCliente(fechaDesde, fechaHasta, this.clienteIDplanilla); this.dtgPlanillaRemito.DataSource = ds; this.dtgPlanillaRemito.DataBind(); }