private void CargarCosecha() { TIPO_COSECHA oT = new TIPO_COSECHA(); var lstT = _TablaGeneralClient.usp_Mant_TIPO_COSECHA(1, oT).ToList(); cboCosecha.ItemsSource = lstT.Where(_ => _.IdEstado == 1); /*estado==1 cosecha vigente*/ cboCosecha.DisplayMemberPath = "DESCRIPCION"; cboCosecha.SelectedValuePath = "IdCosecha"; cboCosecha.SelectedIndex = 0; }
public ICollection <usp_Mant_TIPO_COSECHA_Result> usp_Mant_TIPO_COSECHA(int bus, TIPO_COSECHA oP) { return(iRTablaGeneral.usp_Mant_TIPO_COSECHA(bus, oP)); }
public ICollection <usp_Mant_TIPO_COSECHA_Result> usp_Mant_TIPO_COSECHA(int bus, TIPO_COSECHA oP) { using (var db = new ApplicationDbContextSGO()) { var response = db.usp_Mant_TIPO_COSECHA(bus, oP.IdCosecha, oP.vcCosecha, oP.vcComentario, oP.IdEstado, oP.UsuarioRegistro, oP.UsuarioModifica).ToList(); return(response); } }
public ICollection <usp_Mant_TIPO_COSECHA_Result> usp_Mant_TIPO_COSECHA(int bus, TIPO_COSECHA oP) { ICollection <usp_Mant_TIPO_COSECHA_Result> retorno = new List <usp_Mant_TIPO_COSECHA_Result>(); try { retorno = iSTablaGeneral.usp_Mant_TIPO_COSECHA(bus, oP); } catch (Exception ex) { iLogService.SetLog(string.Concat("WPF => usp_Mant_TIPO_COSECHA | ", ex.Message, " | ", ex.Source.ToString(), " | ", ex.StackTrace.ToString()), null); } return(retorno); }