|
|
|
@ -533,7 +533,7 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
var Lawyerdata = await _db.Queryable<App_LawyerServicesModel>() |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.Id).ToArrayAsync(); |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
|
Lawyerdata.ToList().ForEach(q => |
|
|
|
|
{ |
|
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
@ -571,7 +571,7 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
var Remotedata = await _db.Queryable<App_RemoteModel>() |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.Id).ToArrayAsync(); |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
|
Remotedata.ToList().ForEach(q => |
|
|
|
|
{ |
|
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
@ -610,7 +610,7 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
var Receptiondata = await _db.Queryable<App_ReceptionModel>() |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.Id).ToArrayAsync(); |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.meetwitId == _userdata.department).ToArrayAsync(); |
|
|
|
|
Receptiondata.ToList().ForEach(q => |
|
|
|
|
{ |
|
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
@ -649,7 +649,7 @@ namespace _24Hour.Controllers.Common
|
|
|
|
|
var Hearingdata = await _db.Queryable<App_HearingModel>() |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state != 0, x => x.state == Commondata.state) |
|
|
|
|
.WhereIF(Commondata.state != null && Commondata.state == 0, x => x.state == Commondata.state || x.state == 1) |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.Id).ToArrayAsync(); |
|
|
|
|
.Where(q => q.IsDeleted == 0 && q.receptionuser == _userdata.department).ToArrayAsync(); |
|
|
|
|
Hearingdata.ToList().ForEach(q => |
|
|
|
|
{ |
|
|
|
|
var da = Stagingdata.Where(x => x.Id == q.reservationId).FirstOrDefault(); |
|
|
|
|