template ลูกจ้าง

This commit is contained in:
mamoss 2025-05-02 09:39:53 +07:00
parent d8a47d88bc
commit a0c4c8a27c
2 changed files with 906 additions and 4 deletions

View file

@ -168,6 +168,7 @@ class Extension {
}
public static ToThaiNumber(value: string) {
if (value == null) return "";
let arabicNumbers = "0123456789";
let thaiNumbers = "๐๑๒๓๔๕๖๗๘๙";
let result = "";
@ -230,9 +231,7 @@ class Extension {
public static ToThaiShortDate_monthYear2(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
value.getDate() + " " + Extension.ToThaiMonth(value.getMonth() + 1) + " พ.ศ. " + yy
);
return value.getDate() + " " + Extension.ToThaiMonth(value.getMonth() + 1) + " พ.ศ. " + yy;
}
public static ToThaiShortYear(value: Date) {