提交代码

This commit is contained in:
2024-04-01 10:29:19 +08:00
parent 0ae4143492
commit 8df0e06e6b
23 changed files with 27332 additions and 53 deletions
+11
View File
@@ -92,6 +92,17 @@ namespace BLL
return fileUrl;
}
/// <summary>
/// 根据对应主键和菜单获取文件信息
/// </summary>
/// <param name="toKey">对应主键</param>
/// <param name="menuId">对应菜单</param>
/// <returns>文件信息</returns>
public static Model.AttachFile GetAttachFileByToKeyId(string toKey)
{
return Funs.DB.AttachFile.FirstOrDefault(e => e.ToKeyId == toKey);
}
/// <summary>
///
/// </summary>
@@ -30,6 +30,7 @@ namespace BLL
TestRunMonthSummaryId = TestRunMonthSummary.TestRunMonthSummaryId,
ProjectId = TestRunMonthSummary.ProjectId,
UserId = TestRunMonthSummary.UserId,
Major = TestRunMonthSummary.Major,
ProcessName = TestRunMonthSummary.ProcessName,
RaiseDate = TestRunMonthSummary.RaiseDate,
ProblemDescription = TestRunMonthSummary.ProblemDescription,
@@ -50,6 +51,7 @@ namespace BLL
Model.Person_TestRunMonthSummary newTestRunMonthSummary = db.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummary.TestRunMonthSummaryId);
if (newTestRunMonthSummary != null)
{
newTestRunMonthSummary.Major = TestRunMonthSummary.Major;
newTestRunMonthSummary.ProcessName = TestRunMonthSummary.ProcessName;
newTestRunMonthSummary.RaiseDate = TestRunMonthSummary.RaiseDate;
newTestRunMonthSummary.ProblemDescription = TestRunMonthSummary.ProblemDescription;