private List <Adenda> GetList() { try { Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; List <Adenda> listAdenda = new List <Adenda>(); CN_CatAdenda clsCatAdenda = new CN_CatAdenda(); Adenda tipoPrecio = new Adenda(); tipoPrecio.Id_Emp = sesion.Id_Emp; tipoPrecio.Id_Cd = sesion.Id_Cd_Ver; clsCatAdenda.ConsultaAdenda(tipoPrecio, sesion.Emp_Cnx, ref listAdenda); return(listAdenda); } catch (Exception ex) { throw ex; } }
private void CargarAdendas(int Id_Ade) { try { DataTable dt = DTAddendas; Sesion sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN_CatAdenda cnAdenda = new CN_CatAdenda(); Adenda adenda = new Adenda(); adenda.Id_Emp = sesion.Id_Emp; adenda.Id_Cd = sesion.Id_Cd_Ver; adenda.Id_Ade = Id_Ade; cnAdenda.ConsultaAdenda(adenda, ref dt, sesion.Emp_Cnx); DTAddendas = dt; } catch (Exception ex) { throw ex; } }