コード例 #1
0
        public List <AssetDTO> GetAssetListByTerm(string term, bool IsArchive)
        {
            DataTable       dt        = new DataTable();
            List <AssetDTO> assetList = new List <AssetDTO>();

            dt = assetDAO.GetAssetByTerm(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.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);
        }