LookupSource List logic adjust

This commit is contained in:
Tsanie Lily 2020-04-29 15:28:38 +08:00
parent 990370777d
commit 6242642238
2 changed files with 7 additions and 3 deletions

View File

@ -275,10 +275,14 @@ namespace IronIntel.Contractor.Site
hasJobsite = true; hasJobsite = true;
} }
} }
else if (q.QuestionType == QuestionTypes.EmailList)
{
hasEmail = true;
}
} }
} }
} }
if (hasEmail) //if (hasEmail)
{ {
ir.EmailList = aic.GetInspectEmailList(companyId, string.Empty); ir.EmailList = aic.GetInspectEmailList(companyId, string.Empty);
} }
@ -287,7 +291,7 @@ namespace IronIntel.Contractor.Site
var ac = CreateClient<AssetQueryClient>(); var ac = CreateClient<AssetQueryClient>();
ir.AssetList = ac.GetAssetBasicInfoByUser(companyId, string.Empty, session.User.UID); ir.AssetList = ac.GetAssetBasicInfoByUser(companyId, string.Empty, session.User.UID);
} }
if (hasJobsite) //if (hasJobsite)
{ {
var jc = CreateClient<JobSiteProvider>(); var jc = CreateClient<JobSiteProvider>();
ir.JobSiteList = jc.GetJobSiteLimitItems(companyId, string.Empty); ir.JobSiteList = jc.GetJobSiteLimitItems(companyId, string.Empty);

2
Site

@ -1 +1 @@
Subproject commit a8a97bfcdfac1921d43bf49c635b8c5de25e78f9 Subproject commit 23d7c999d9beda312a7190dcca40c1f172af3840