migrate (add table ProfileComplaintInvestigate)
This commit is contained in:
parent
fec4095617
commit
fd17afb145
5 changed files with 19968 additions and 24 deletions
|
|
@ -1550,13 +1550,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ปลดออก
|
||||
var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "OFFICER" &&
|
||||
x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-19" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1565,13 +1564,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ไล่ออก
|
||||
var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "OFFICER" &&
|
||||
x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-20" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1678,13 +1676,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ปลดออก
|
||||
var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "OFFICER" &&
|
||||
x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-19" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1693,13 +1690,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ไล่ออก
|
||||
var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "OFFICER" &&
|
||||
x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-20" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1879,13 +1875,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ปลดออก
|
||||
var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "EMPLOYEE" &&
|
||||
x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-19" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1894,13 +1889,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ไล่ออก
|
||||
var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "EMPLOYEE" &&
|
||||
x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-20" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -1985,13 +1979,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ปลดออก
|
||||
var dl_cm19_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm19_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "EMPLOYEE" &&
|
||||
x.CommandTypeId == Guid.Parse("ef8db4d7-1472-4c1d-b73f-9114e618a96f") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-19" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
@ -2000,13 +1993,12 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
.Count();
|
||||
|
||||
//ไล่ออก
|
||||
var dl_cm20_count = _contextDiscipline.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||
var dl_cm20_count = _contextDiscipline.ProfileComplaintInvestigate
|
||||
.Where(x =>
|
||||
x.CreatedAt.Date >= startDate &&
|
||||
x.CreatedAt.Date <= endDate &&
|
||||
x.Status.Trim().ToUpper() == "DONE" &&
|
||||
x.profileType.Trim().ToUpper() == "EMPLOYEE" &&
|
||||
x.CommandTypeId == Guid.Parse("d9dee5c3-b75a-4927-9ce2-51e2233cf20b") &&
|
||||
x.commandType.Trim().ToUpper() == "C-PM-20" &&
|
||||
(node == 0 ? x.rootDnaId.Contains(org.rootDnaId) : true) &&
|
||||
(node == 1 ? x.child1DnaId.Contains(org.child1DnaId) : true) &&
|
||||
(node == 2 ? x.child2DnaId.Contains(org.child2DnaId) : true) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue