提交代码
This commit is contained in:
@@ -655,6 +655,7 @@
|
||||
<Compile Include="Person\Person_ShuntApproveService.cs" />
|
||||
<Compile Include="Person\Person_ShuntDetailService.cs" />
|
||||
<Compile Include="Person\Person_ShuntService.cs" />
|
||||
<Compile Include="Person\Person_TestRunMonthSummaryService.cs" />
|
||||
<Compile Include="Person\Person_TestRunPerformanceService.cs" />
|
||||
<Compile Include="Person\Person_TrainingPlanService.cs" />
|
||||
<Compile Include="ProjectData\MainItemService.cs" />
|
||||
@@ -874,6 +875,7 @@
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportService.cs" />
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportService.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -809,6 +809,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string TestRunPerformanceMenuId = "16229932-671B-4E04-BB61-A5C7DE4CE47F";
|
||||
|
||||
/// <summary>
|
||||
/// 开车月技术总结
|
||||
/// </summary>
|
||||
public const string TestRunMonthSummaryMenuId = "F0792B77-AEE4-4834-82C2-E5B75D0B0AB7";
|
||||
|
||||
/// <summary>
|
||||
/// HSSE公司管理规定发布
|
||||
/// </summary>
|
||||
@@ -4910,6 +4915,11 @@ namespace BLL
|
||||
/// 开车人员月绩效报告
|
||||
/// </summary>
|
||||
public const string TestRunPerformanceMonthReportMenuId = "C1240FCB-4C72-445E-82B5-EBFAA87D0AC6";
|
||||
|
||||
/// <summary>
|
||||
/// 开车月技术总结
|
||||
/// </summary>
|
||||
public const string TestRunMonthSummaryReportMenuId = "0C6BB051-6BD1-4E35-90CE-9376F3C2D454";
|
||||
#endregion
|
||||
|
||||
#region 施工综合流程定义
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class Person_TestRunMonthSummaryService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryId">人员Id</param>
|
||||
/// <returns>人员信息</returns>
|
||||
public static Model.Person_TestRunMonthSummary GetPersonTestRunMonthSummaryById(string TestRunMonthSummaryId)
|
||||
{
|
||||
return Funs.DB.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加人员总结信息
|
||||
/// </summary>
|
||||
/// <param name="user">人员实体</param>
|
||||
public static void AddPersonTestRunMonthSummary(Model.Person_TestRunMonthSummary TestRunMonthSummary)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary newTestRunMonthSummary = new Model.Person_TestRunMonthSummary
|
||||
{
|
||||
TestRunMonthSummaryId = TestRunMonthSummary.TestRunMonthSummaryId,
|
||||
ProjectId = TestRunMonthSummary.ProjectId,
|
||||
UserId = TestRunMonthSummary.UserId,
|
||||
ProcessName = TestRunMonthSummary.ProcessName,
|
||||
RaiseDate = TestRunMonthSummary.RaiseDate,
|
||||
ProblemDescription = TestRunMonthSummary.ProblemDescription,
|
||||
HandleMethod = TestRunMonthSummary.HandleMethod,
|
||||
ExperienceOrSuggestion = TestRunMonthSummary.ExperienceOrSuggestion,
|
||||
};
|
||||
db.Person_TestRunMonthSummary.InsertOnSubmit(newTestRunMonthSummary);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人员总结信息
|
||||
/// </summary>
|
||||
/// <param name="user">实体</param>
|
||||
public static void UpdatePersonTestRunMonthSummary(Model.Person_TestRunMonthSummary TestRunMonthSummary)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary newTestRunMonthSummary = db.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummary.TestRunMonthSummaryId);
|
||||
if (newTestRunMonthSummary != null)
|
||||
{
|
||||
newTestRunMonthSummary.ProcessName = TestRunMonthSummary.ProcessName;
|
||||
newTestRunMonthSummary.RaiseDate = TestRunMonthSummary.RaiseDate;
|
||||
newTestRunMonthSummary.ProblemDescription = TestRunMonthSummary.ProblemDescription;
|
||||
newTestRunMonthSummary.HandleMethod = TestRunMonthSummary.HandleMethod;
|
||||
newTestRunMonthSummary.ExperienceOrSuggestion = TestRunMonthSummary.ExperienceOrSuggestion;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据人员Id删除一个人员信息
|
||||
/// </summary>
|
||||
/// <param name="Person_TestRunMonthSummaryId"></param>
|
||||
public static void DeletePersonTestRunMonthSummary(string TestRunMonthSummaryId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary user = db.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummaryId);
|
||||
if (user != null)
|
||||
{
|
||||
db.Person_TestRunMonthSummary.DeleteOnSubmit(user);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,7 @@ namespace BLL
|
||||
JobContent = TestRunPerformance.JobContent,
|
||||
TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId,
|
||||
Days = TestRunPerformance.Days,
|
||||
Num = TestRunPerformance.Num,
|
||||
};
|
||||
db.Person_TestRunPerformance.InsertOnSubmit(newTestRunPerformance);
|
||||
db.SubmitChanges();
|
||||
@@ -53,6 +54,7 @@ namespace BLL
|
||||
newTestRunPerformance.JobContent = TestRunPerformance.JobContent;
|
||||
newTestRunPerformance.TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId;
|
||||
newTestRunPerformance.Days = TestRunPerformance.Days;
|
||||
newTestRunPerformance.Num = TestRunPerformance.Num;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class TestRunMonthSummaryReportService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReportId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.ZHGL_TestRunMonthSummaryReport GetTestRunMonthSummaryReportById(string TestRunMonthSummaryReportId)
|
||||
{
|
||||
return Funs.DB.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReportId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReport"></param>
|
||||
public static void AddTestRunMonthSummaryReport(Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport newTestRunMonthSummaryReport = new Model.ZHGL_TestRunMonthSummaryReport
|
||||
{
|
||||
TestRunMonthSummaryReportId = TestRunMonthSummaryReport.TestRunMonthSummaryReportId,
|
||||
Year = TestRunMonthSummaryReport.Year,
|
||||
UserId = TestRunMonthSummaryReport.UserId,
|
||||
CompileMan = TestRunMonthSummaryReport.CompileMan,
|
||||
CompileDate = TestRunMonthSummaryReport.CompileDate
|
||||
};
|
||||
db.ZHGL_TestRunMonthSummaryReport.InsertOnSubmit(newTestRunMonthSummaryReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReport"></param>
|
||||
public static void UpdateTestRunMonthSummaryReport(Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport newTestRunMonthSummaryReport = db.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReport.TestRunMonthSummaryReportId);
|
||||
if (newTestRunMonthSummaryReport != null)
|
||||
{
|
||||
newTestRunMonthSummaryReport.Year = TestRunMonthSummaryReport.Year;
|
||||
newTestRunMonthSummaryReport.UserId = TestRunMonthSummaryReport.UserId;
|
||||
newTestRunMonthSummaryReport.CompileMan = TestRunMonthSummaryReport.CompileMan;
|
||||
newTestRunMonthSummaryReport.CompileDate = TestRunMonthSummaryReport.CompileDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReportId"></param>
|
||||
public static void DeleteTestRunMonthSummaryReportById(string TestRunMonthSummaryReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport = db.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReportId);
|
||||
if (TestRunMonthSummaryReport != null)
|
||||
{
|
||||
db.ZHGL_TestRunMonthSummaryReport.DeleteOnSubmit(TestRunMonthSummaryReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user