You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
553 B
23 lines
553 B
using System.Collections.Generic; |
|
using System.Linq; |
|
|
|
|
|
namespace ET |
|
{ |
|
public partial class CropConfigCategory |
|
{ |
|
public List<int> GetAllSeasonCrop(int season) |
|
{ |
|
List<int> result = new List<int>(); |
|
foreach(var item in CropConfigCategory.Instance.GetAll().Values) |
|
{ |
|
var s = item.Season.ToList<int>(); |
|
if (s.Contains(season)) |
|
{ |
|
result.Add(item.Id); |
|
} |
|
} |
|
return result; |
|
} |
|
} |
|
}
|
|
|