design report แนวนอน
This commit is contained in:
parent
786334d8bb
commit
4a383f251b
9 changed files with 17 additions and 6 deletions
|
|
@ -95,7 +95,9 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
Salary = p.Amount == null ? "0" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(),
|
Salary = p.Amount == null ? "0" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber().ToThaiNumber(),
|
||||||
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(),
|
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(),
|
||||||
ExamNumber = p.ExamNumber == null ? "0" : p.ExamNumber.Value.ToString().ToThaiNumber(),
|
ExamNumber = p.ExamNumber == null ? "0" : p.ExamNumber.Value.ToString().ToThaiNumber(),
|
||||||
PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}"
|
PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}",
|
||||||
|
RemarkHorizontal = p.RemarkHorizontal,
|
||||||
|
RemarkVertical = p.RemarkVertical,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
return report_data;
|
return report_data;
|
||||||
|
|
@ -147,7 +149,9 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
Salary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(),
|
Salary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(),
|
||||||
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(),
|
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(),
|
||||||
ExamNumber = p.ExamNumber == null ? "" : p.ExamNumber.Value.ToString().ToThaiNumber(),
|
ExamNumber = p.ExamNumber == null ? "" : p.ExamNumber.Value.ToString().ToThaiNumber(),
|
||||||
PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}"
|
PlacementName = $"{p.Placement.Name.ToThaiNumber()} ครั้งที่ {p.Placement.Round.ToThaiNumber()}/{p.Placement.Year.ToThaiYear().ToString().ToThaiNumber()}",
|
||||||
|
RemarkHorizontal = p.RemarkHorizontal,
|
||||||
|
RemarkVertical = p.RemarkVertical,
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
return report_data;
|
return report_data;
|
||||||
|
|
@ -208,7 +212,9 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
NewPositionType = p.PositionType == null ? "" : p.PositionType.Name,
|
NewPositionType = p.PositionType == null ? "" : p.PositionType.Name,
|
||||||
NewPositionNumber = p.PositionNumber == null ? "" : p.PositionNumber.Name.ToThaiNumber(),
|
NewPositionNumber = p.PositionNumber == null ? "" : p.PositionNumber.Name.ToThaiNumber(),
|
||||||
NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(),
|
NewSalary = p.Amount == null ? "" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(),
|
||||||
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber()
|
AppointDate = p.RecruitDate == null ? "" : p.RecruitDate.Value.ToThaiShortDate2().ToThaiNumber(),
|
||||||
|
RemarkHorizontal = p.RemarkHorizontal,
|
||||||
|
RemarkVertical = p.RemarkVertical,
|
||||||
})
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,12 @@
|
||||||
|
|
||||||
public string ExamNumber { get; set; } = "0";
|
public string ExamNumber { get; set; } = "0";
|
||||||
|
|
||||||
public string PlacementName { get; set;} = string.Empty;
|
public string PlacementName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Seq { get; set; } = string.Empty;
|
public string Seq { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Education { get; set; } = string.Empty;
|
public string Education { get; set; } = string.Empty;
|
||||||
|
public string? RemarkHorizontal { get; set; } = string.Empty;
|
||||||
|
public string? RemarkVertical { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,7 @@ namespace BMA.EHR.Application.Responses.Reports
|
||||||
public string? LeaveDate { get; set; } = string.Empty;
|
public string? LeaveDate { get; set; } = string.Empty;
|
||||||
public string? MilitaryDate { get; set; } = string.Empty;
|
public string? MilitaryDate { get; set; } = string.Empty;
|
||||||
public string? OldSalaryDate { get; set; } = string.Empty;
|
public string? OldSalaryDate { get; set; } = string.Empty;
|
||||||
|
public string? RemarkHorizontal { get; set; } = string.Empty;
|
||||||
|
public string? RemarkVertical { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1257,13 +1257,14 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
var person = await _context.PlacementProfiles
|
var person = await _context.PlacementProfiles
|
||||||
.Include(x => x.PlacementProfileDocs)
|
.Include(x => x.PlacementProfileDocs)
|
||||||
|
.ThenInclude(x => x.Document)
|
||||||
.FirstOrDefaultAsync(x => x.Id == personalId);
|
.FirstOrDefaultAsync(x => x.Id == personalId);
|
||||||
if (person == null)
|
if (person == null)
|
||||||
return Error(GlobalMessages.DataNotFound, 404);
|
return Error(GlobalMessages.DataNotFound, 404);
|
||||||
|
|
||||||
var profileDoc = person.PlacementProfileDocs.FirstOrDefault(x => x.Id == docId);
|
var profileDoc = person.PlacementProfileDocs.FirstOrDefault(x => x.Document.Id == docId);
|
||||||
if (profileDoc == null)
|
if (profileDoc == null)
|
||||||
return Error(GlobalMessages.CertificateNotFound, 404);
|
return Error(GlobalMessages.FileNotFoundOnServer, 404);
|
||||||
_context.PlacementProfileDocs.RemoveRange(profileDoc);
|
_context.PlacementProfileDocs.RemoveRange(profileDoc);
|
||||||
var _docId = profileDoc.Document.Id;
|
var _docId = profileDoc.Document.Id;
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue