コード例 #1
0
        private IEnumerable <ResultAccount> ConvertDataSetToObjectCollection(DataSet dataSet, int month, int year)
        {
            var results = new List <ResultAccount>();

            foreach (DataRow dataRow in dataSet.Tables[0].Rows)
            {
                var temp = new ResultAccount();
                if (dataRow[0].ToString() != "")
                {
                    temp.AccountNumber = Convert.ToInt32(dataRow[0]);
                    temp.Month         = month;
                    temp.Year          = year;
                    temp.AmountMonth   = Convert.ToDouble(dataRow[2]);
                    temp.AmountSoFar   = Convert.ToDouble(dataRow[3]);
                    temp.RealAccount   = 0;
                    results.Add(temp);
                }
            }
            return(results);
        }
コード例 #2
0
 public ResultAccountDTO ToDTO(ResultAccount model)
 {
     throw new NotImplementedException();
 }