แก้ไขรายงานประกาศเกษียณ, เพิ่มtemplateลูกจ้างประจำ, ตัดคำนำหน้ารายงานทดลองงาน
This commit is contained in:
parent
679cc2cfc2
commit
097888244d
12 changed files with 45 additions and 7 deletions
|
|
@ -71,8 +71,27 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
}
|
||||
break;
|
||||
case "EMPLOYEE":
|
||||
reportfile = $"32-ประกาศเกษียณลูกจ้างประจำ.trdp";
|
||||
returnfile = $"ประกาศเกษียณลูกจ้าง.{exportType}";
|
||||
//reportfile = $"32-ประกาศเกษียณลูกจ้างประจำ.trdp";
|
||||
//returnfile = $"ประกาศเกษียณลูกจ้าง.{exportType}";
|
||||
if (string.IsNullOrEmpty(retire.GetType().GetProperty("TypeReport").GetValue(retire)))
|
||||
{
|
||||
reportfile = $"32-ประกาศเกษียณลูกจ้างประจำ-1.trdp";
|
||||
returnfile = $"ประกาศเกษียณลูกจ้างประจำ.{exportType}";
|
||||
}
|
||||
else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "ADD" || retire.GetType().GetProperty("TypeReport").GetValue(retire) == "EDIT")
|
||||
{
|
||||
reportfile = $"32-ประกาศเกษียณลูกจ้างประจำ-2.trdp";
|
||||
returnfile = $"แก้ไขประกาศเกษียณลูกจ้างประจำ.{exportType}";
|
||||
}
|
||||
else if (retire.GetType().GetProperty("TypeReport").GetValue(retire) == "REMOVE")
|
||||
{
|
||||
reportfile = $"32-ประกาศเกษียณลูกจ้างประจำ-3.trdp";
|
||||
returnfile = $"ยกเลิกประกาศเกษียณลูกจ้างประจำ.{exportType}";
|
||||
}
|
||||
else
|
||||
{
|
||||
return Error(retire.GetType().GetProperty("TypeReport").GetValue(retire));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return Error(retire.GetType().GetProperty("Type").GetValue(retire));
|
||||
|
|
@ -89,15 +108,17 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
////Add Parameter
|
||||
//report.ReportParameters["Year"].Value = retire.GetType().GetProperty("Year").GetValue(retire);
|
||||
//report.ReportParameters["Total"].Value = retire.GetType().GetProperty("Total").GetValue(retire);
|
||||
report.ReportParameters["Type"].Value = returnfile != "ยกเลิกประกาศเกษียณข้าราชการ.pdf" && returnfile != "แก้ไขประกาศเกษียณข้าราชการ.pdf" ? "1" : "0";
|
||||
|
||||
var _profileList = new List<dynamic>();
|
||||
|
||||
foreach (var profile in retire.GetType().GetProperty("profile").GetValue(retire))
|
||||
{
|
||||
string thaiOrder = profile.GetType().GetProperty("order").GetValue(profile).ToString() + ".";
|
||||
thaiOrder = thaiOrder.ToThaiNumber();
|
||||
string thaiOrder = profile.GetType().GetProperty("order").GetValue(profile).ToString();
|
||||
thaiOrder = $"ลำดับที่ {thaiOrder.ToThaiNumber()}";
|
||||
_profileList.Add(new
|
||||
{
|
||||
{
|
||||
no = $"{(_profileList.Count() + 1).ToString().ToThaiNumber()}.",
|
||||
order = thaiOrder,
|
||||
fullName = profile.GetType().GetProperty("fullName").GetValue(profile).ToString(),
|
||||
position = profile.GetType().GetProperty("position").GetValue(profile).ToString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue