public List <pManuAr> RelatorioFinanceiroManu(DateTime DataSaida) { Dao D = new Dao(); DataTable DT = D.RelatorioFinanceiroManu(DataSaida); List <pManuAr> LC = new List <pManuAr>(); for (int i = 0; i < DT.Rows.Count; i++) { pManuAr P = new pManuAr(); P.Cod_Manutencao = Convert.ToInt32(DT.Rows[i]["Cod_Manutencao"]); P.ValorMObra = Convert.ToDecimal(DT.Rows[i]["ValorMObra"]); P.FormaPagamento = DT.Rows[i]["FormaPagamento"].ToString(); LC.Add(P); } return(LC); }
public List<pManuAr> RelatorioFinanceiroManu(DateTime DataSaida) { Dao D = new Dao(); DataTable DT = D.RelatorioFinanceiroManu(DataSaida); List<pManuAr> LC = new List<pManuAr>(); for (int i = 0; i < DT.Rows.Count; i++) { pManuAr P = new pManuAr(); P.Cod_Manutencao = Convert.ToInt32(DT.Rows[i]["Cod_Manutencao"]); P.ValorMObra = Convert.ToDecimal(DT.Rows[i]["ValorMObra"]); P.FormaPagamento = DT.Rows[i]["FormaPagamento"].ToString(); LC.Add(P); } return LC; }