예제 #1
0
        public List <AssetDTO> GetAllAssetListByTerm(string term, bool IsArchive)
        {
            DataTable       dt        = new DataTable();
            List <AssetDTO> assetList = new List <AssetDTO>();

            dt = assetDAO.GetAllAssetByTerm(term, IsArchive);
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                AssetDTO asset = new AssetDTO();
                asset.AssetID    = int.Parse(dt.Rows[i]["AssetID"].ToString());
                asset.FileName   = dt.Rows[i]["FileName"].ToString();
                asset.FileDate   = dt.Rows[i]["FileDate"].ToString();
                asset.Class_Code = dt.Rows[i]["Class_Code"].ToString();
                asset.Term       = dt.Rows[i]["Term"].ToString();
                assetList.Add(asset);
            }
            return(assetList);
        }