diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 22f7a4401..ec3b62da9 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -1310,6 +1310,13 @@
+
+
+ 获取是否休假
+
+
+
+
TrialEmailNoticeConfigService
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
index 30f41bd07..734c4cbb4 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/EducationModel.cs
@@ -31,8 +31,8 @@
{
public DateTime? CreateTime { get; set; }
- public string BeginDateStr => BeginDate?.ToString("yyyy-MM");
- public string EndDateStr => EndDate?.ToString("yyyy-MM");
+ public string BeginDateStr => BeginDate?.ToString("yyyy/MM");
+ public string EndDateStr => EndDate?.ToString("yyyy/MM");
}
public class PostgraduateCommand
@@ -81,9 +81,9 @@
{
public DateTime? CreateTime { get; set; }
- public string BeginDateStr => BeginDate?.ToString("yyyy-MM");
+ public string BeginDateStr => BeginDate?.ToString("yyyy/MM");
- public string EndDateStr => EndDate?.ToString("yyyy-MM");
+ public string EndDateStr => EndDate?.ToString("yyyy/MM");
}
public class DoctorEducationExperienceDTO
{
diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
index 6c6a372ea..d422a605c 100644
--- a/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/DTO/HolidayModel.cs
@@ -8,4 +8,15 @@
public DateTime EndDate { get; set; }
public int Status { get; set; } = 1;
}
+
+ public class GetIsVacationInDto
+ {
+ public Guid DoctorId { get; set; }
+ }
+
+
+ public class GetIsVacationOutDto
+ {
+ public bool IsVacation { get; set; }
+ }
}
diff --git a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
index 879bbf542..ed128144e 100644
--- a/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/VacationService.cs
@@ -70,6 +70,36 @@ namespace IRaCIS.Core.Application.Service
}
+ ///
+ /// 获取是否休假
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task GetIsVacation(GetIsVacationInDto inDto)
+ {
+ var query = await _vacationRepository.Where(u => u.DoctorId == inDto.DoctorId).ToListAsync();
+
+ bool isVacation = false;
+
+ var now = DateTime.Now;
+ foreach (var item in query)
+ {
+ if (item.StartDate <= now && now <= item.EndDate)
+ {
+ isVacation = true;
+ break;
+ }
+ }
+
+
+ return new GetIsVacationOutDto() {
+
+ IsVacation= isVacation
+ };
+
+ }
+
[NonDynamicMethod]
public async Task OnVacation(Guid doctorId)
{
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
index fa89dc852..59e746a5e 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs
@@ -578,7 +578,8 @@ namespace IRaCIS.Core.Application.Service
"select","radio","class",
};
var questionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.ReadingQuestionCriterionTrialId)
- .Where(x => types.Contains(x.Type))
+ .Where(x => types.Contains(x.Type)||(x.Type=="number"&&x.TypeValue!=string.Empty))
+
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.Where(x => x.ReadingCriterionPageId == inDto.ReadingCriterionPageId)
@@ -672,10 +673,10 @@ namespace IRaCIS.Core.Application.Service
var types = new List()
{
- "select","radio"
+ "select","radio","class"
};
var questionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
- .Where(x => types.Contains(x.Type))
+ .Where(x => types.Contains(x.Type) || (x.Type == "number" && x.TypeValue != string.Empty))
.WhereIf(inDto.Id != null, x => x.Id != inDto.Id && x.ParentId != inDto.Id)
.Select(x => new CriterionOtherQuestionOutDto()