ทำฟังก์ชันกลางคำนวณปีงบประมาณ
This commit is contained in:
parent
fe4a174bf7
commit
3d9f922fc9
2 changed files with 13 additions and 1 deletions
|
|
@ -424,6 +424,18 @@ namespace BMA.EHR.Domain.Extensions
|
|||
};
|
||||
}
|
||||
|
||||
public static int CalculateFisicalYear(this DateTime value)
|
||||
{
|
||||
if (value.Month >= 10)
|
||||
{
|
||||
return value.Year + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return value.Year;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue