20221114知识竞赛人员类型抽取优化
This commit is contained in:
parent
a0a3f525ab
commit
419320e354
|
|
@ -163,7 +163,7 @@ namespace BLL
|
|||
{
|
||||
if (getTestPlan.TestEndTime > DateTime.Now)
|
||||
{
|
||||
var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == getTestPlan.TestPlanId && x.UserType == testRecord.UserType);
|
||||
var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == getTestPlan.TestPlanId && (x.UserType == testRecord.UserType || x.UserType == null));
|
||||
if (getTestPlanTraining.Count() > 0)
|
||||
{
|
||||
int cout1 = getTestPlanTraining.Sum(x => x.TestType1Count ?? 0);
|
||||
|
|
@ -294,7 +294,7 @@ namespace BLL
|
|||
var item = db.Test_TestRecordItem.FirstOrDefault(x => x.TestRecordId == testRecordId);
|
||||
if (item == null)
|
||||
{
|
||||
var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == testPlanId && x.UserType == getTestRecord.ManType);
|
||||
var getTestPlanTraining = db.Test_TestPlanTraining.Where(x => x.TestPlanId == testPlanId && (x.UserType == getTestRecord.ManType || x.UserType == null));
|
||||
if (getTestPlanTraining.Count() > 0)
|
||||
{
|
||||
List<Model.Training_TestTrainingItem> getTestTrainingItemList = new List<Model.Training_TestTrainingItem>();
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HiddenField runat="server" ID="hdTestPlanTrainingId"></f:HiddenField>
|
||||
<f:DropDownList runat="server" ID="drpUserType" Label="人员" LabelWidth="90px">
|
||||
<f:DropDownList runat="server" ID="drpUserType" Label="按人员类型" LabelWidth="90px" ShowRedStar="true">
|
||||
<f:ListItem Text="管理人员" Value="1" />
|
||||
<f:ListItem Text="临时用户" Value="2" />
|
||||
<f:ListItem Text="作业人员" Value="3" />
|
||||
|
|
|
|||
|
|
@ -353,9 +353,9 @@
|
|||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>7040</DevelopmentServerPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:7040/</IISUrl>
|
||||
<IISUrl>http://localhost:3070/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
|
|
|||
Loading…
Reference in New Issue