API การลา 01-03
This commit is contained in:
parent
32686c3e0b
commit
cffb53c1f5
29 changed files with 6391 additions and 4 deletions
|
|
@ -1,9 +1,17 @@
|
|||
using System.Text;
|
||||
using GreatFriends.ThaiBahtText;
|
||||
|
||||
namespace BMA.EHR.Domain.Extensions
|
||||
{
|
||||
public static class IntegerExtension
|
||||
{
|
||||
public static string ToThaiBahtText(this int value, bool appendBahtOnly)
|
||||
{
|
||||
var decValue = (decimal)value;
|
||||
|
||||
return decValue.ThaiBahtText(appendBahtOnly: appendBahtOnly);
|
||||
}
|
||||
|
||||
public static string ToThaiMonth(this int value)
|
||||
{
|
||||
switch (value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue