20220908 人员培训记录保存错误修改。

This commit is contained in:
2022-09-08 14:15:28 +08:00
parent 2b07be5792
commit f38675c06a
7 changed files with 24 additions and 16 deletions
@@ -141,7 +141,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
+ @" FROM View_SitePerson_Person AS viewPerSon "
//+ @" LEFT JOIN EduTrain_TrainRecordDetail AS TrainRecordDetail ON viewPerSon.PersonId=TrainRecordDetail.PersonId "
//+ @" LEFT JOIN EduTrain_TrainRecord AS TrainRecord ON TrainRecord.TrainingId=TrainRecordDetail.TrainingId "
+ @" WHERE viewPerSon.ProjectId='" + this.ProjectId + "' AND viewPerSon.IsUsed='1' ";
+ @" WHERE viewPerSon.ProjectId='" + this.ProjectId + "' AND viewPerSon.States=" + Const.ProjectPersonStates_1;
List<SqlParameter> listStr = new List<SqlParameter>();
if (BLL.EduTrain_TrainRecordDetailService.GetTrainRecordDetailByTrainingId(this.TrainingId).Count() > 0)
@@ -14,7 +14,7 @@
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="培训记录" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="TrainingId" EnableColumnLines="true" DataIDField="TrainingId" AllowSorting="true"
SortField="TrainingCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" ForceFit="true"
SortField="TrainStartDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" ForceFit="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Flow">
@@ -351,7 +351,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
else
{
trainRecord.TrainingId = SQLHelper.GetNewID(typeof(Model.EduTrain_TrainRecord));
trainRecord.TrainingId = SQLHelper.GetNewID();
this.TrainingId = trainRecord.TrainingId;
trainRecord.CompileMan = this.CurrUser.PersonId;
BLL.EduTrain_TrainRecordService.AddTraining(trainRecord);
+4 -4
View File
@@ -586,10 +586,10 @@ namespace FineUIPro.Web
}
this.CurrUser.LastMenuType = type;
//if (!string.IsNullOrEmpty(type))
//{
// Person_PersonsService.UpdateLastUserInfo(this.CurrUser.PersonId, type, false, this.CurrUser.LoginProjectId);
//}
if (!string.IsNullOrEmpty(type))
{
Person_PersonsService.UpdateLastUserInfo(this.CurrUser.PersonId, type, false, this.CurrUser.LoginProjectId);
}
InitTreeMenu();
}