This commit is contained in:
李鹏飞 2022-11-15 17:45:06 +08:00
commit 0352866cea
3 changed files with 5 additions and 5 deletions

View File

@ -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>();

View File

@ -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" />

View File

@ -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>