public override void fillLst() { try { this.comm = GenericDataAccess.CreateCommandSP("sp_Salida_documento"); addParameters(0); this.dt = GenericDataAccess.ExecuteSelectCommand(comm); this._lst = new List <Salida_documento>(); foreach (DataRow dr in dt.Rows) { Salida_documento o = new Salida_documento(); int.TryParse(dr["id"].ToString(), out entero); o.Id = entero; entero = 0; if (dr["id_salida"] != DBNull.Value) { int.TryParse(dr["id_salida"].ToString(), out entero); o.Id_salida = entero; entero = 0; } if (dr["id_documento"] != DBNull.Value) { int.TryParse(dr["id_documento"].ToString(), out entero); o.Id_documento = entero; entero = 0; } o.Referencia = dr["referencia"].ToString(); this._lst.Add(o); } } catch { throw; } }
public Salida_documentoMng() { this._oSalida_documento = new Salida_documento(); }