แยกประเภทขรก
This commit is contained in:
parent
306a5da602
commit
26b3f43c16
6 changed files with 33 additions and 32 deletions
|
|
@ -281,38 +281,39 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
}
|
||||
report.DataSource = org.result;
|
||||
CitizenId = org.result.CitizenId;
|
||||
var tblEducation = (Telerik.Reporting.Table)report.Items["groupHeaderSection"].Items["tblEducation"];
|
||||
Console.WriteLine("ssssssssssssssssssssss");
|
||||
Console.WriteLine(org.result.Education);
|
||||
tblEducation.DataSource = org.result.Education;
|
||||
Console.WriteLine("aaaaaaaaaaaaaaaaaaaaaa");
|
||||
// report.DataSource = data;
|
||||
|
||||
// if (profile.AvatarId != "")
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// // Get avatar Image
|
||||
// var picContent = (await _minioService.DownloadFileAsync(Guid.Parse("00000000-0000-0000-0000-000000000000"))).FileContent;
|
||||
// var pictureBox = (Telerik.Reporting.PictureBox)report.Items["groupHeaderSection"].Items["picAvatar"];
|
||||
// pictureBox.Value = Image.FromStream(new MemoryStream(picContent));
|
||||
// }
|
||||
// catch { }
|
||||
// }
|
||||
|
||||
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
|
||||
|
||||
InstanceReportSource instanceReportSource = new InstanceReportSource()
|
||||
{
|
||||
ReportDocument = report
|
||||
};
|
||||
|
||||
|
||||
ReportProcessor reportProcessor = new ReportProcessor(_configuration);
|
||||
RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo);
|
||||
|
||||
var content = result.DocumentBytes;
|
||||
return File(content, "application/pdf", $"ประวัติการรับราชการอย่างย่อ_.pdf");
|
||||
}
|
||||
|
||||
// report.DataSource = data;
|
||||
|
||||
// if (profile.AvatarId != "")
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// // Get avatar Image
|
||||
// var picContent = (await _minioService.DownloadFileAsync(Guid.Parse("00000000-0000-0000-0000-000000000000"))).FileContent;
|
||||
// var pictureBox = (Telerik.Reporting.PictureBox)report.Items["groupHeaderSection"].Items["picAvatar"];
|
||||
// pictureBox.Value = Image.FromStream(new MemoryStream(picContent));
|
||||
// }
|
||||
// catch { }
|
||||
// }
|
||||
|
||||
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
|
||||
|
||||
InstanceReportSource instanceReportSource = new InstanceReportSource()
|
||||
{
|
||||
ReportDocument = report
|
||||
};
|
||||
|
||||
|
||||
ReportProcessor reportProcessor = new ReportProcessor(_configuration);
|
||||
RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo);
|
||||
|
||||
var content = result.DocumentBytes;
|
||||
return File(content, "application/pdf", $"ประวัติการรับราชการอย่างย่อ_{CitizenId}.pdf");
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -16,7 +16,7 @@ namespace BMA.EHR.Report.Service.Responses
|
|||
public string? DateRetire { get; set; }
|
||||
public string? RegistrationAddress { get; set; }
|
||||
public string? SalaryAmount { get; set; }
|
||||
public string? Education { get; set; }
|
||||
public List<dynamic> Education { get; set; }
|
||||
public string? AppointText { get; set; }
|
||||
public string? SalaryDate { get; set; }
|
||||
public string? PositionName { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue