提交代码
This commit is contained in:
+2
-1
@@ -96,7 +96,6 @@
|
||||
<Compile Include="API\APIUnitService.cs" />
|
||||
<Compile Include="API\APIUpLoadFileService.cs" />
|
||||
<Compile Include="API\APIUserService.cs" />
|
||||
<Compile Include="API\CQMS\Performance\PerformanceService.cs" />
|
||||
<Compile Include="API\HJGL\APIGetHJDataService.cs" />
|
||||
<Compile Include="API\HJGL\APIHotProcessHardService.cs" />
|
||||
<Compile Include="API\HJGL\APINDETrustService.cs" />
|
||||
@@ -259,6 +258,7 @@
|
||||
<Compile Include="CQMS\ManageReport\RowMaterialProblemService.cs" />
|
||||
<Compile Include="CQMS\ManageReport\ThisWeekOrMonthContentService.cs" />
|
||||
<Compile Include="CQMS\ManageReport\WeekAndMonthReportService.cs" />
|
||||
<Compile Include="CQMS\Performance\PerformanceService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\HotProessManageService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\InspectionManagementDetailService.cs" />
|
||||
<Compile Include="CQMS\ProcessControl\InspectionManagementService.cs" />
|
||||
@@ -1061,6 +1061,7 @@
|
||||
<Version>4.7.0</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
+5
-5
@@ -12,25 +12,25 @@ namespace BLL
|
||||
/// 根据年月删除
|
||||
/// </summary>
|
||||
/// <param name="CreateDateMonth"></param>
|
||||
public static void Delete(string CreateDateMonth)
|
||||
public static void Delete(string Gid)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
List<Model.CQMS_Performance> list = db.CQMS_Performance.Where(e => e.CreateDateMonth == CreateDateMonth).ToList();
|
||||
List<Model.CQMS_Performance> list = db.CQMS_Performance.Where(e => e.PerformanceGid == Gid).ToList();
|
||||
if (list.Count > 0)
|
||||
{
|
||||
///删除主表记录
|
||||
db.CQMS_Performance.DeleteAllOnSubmit(list);
|
||||
|
||||
//删除子表1数据
|
||||
var child1List = db.CQMS_Performance_Child1.Where(x => x.PerformanceGid == list[0].PerformanceGid).ToList();
|
||||
var child1List = db.CQMS_Performance_Child1.Where(x => x.PerformanceGid == Gid).ToList();
|
||||
if (child1List.Count > 0)
|
||||
{
|
||||
//删除子表2数据
|
||||
var child2List = db.CQMS_Performance_Child2.Where(x => x.PerformanceGid == list[0].PerformanceGid).ToList();
|
||||
var child2List = db.CQMS_Performance_Child2.Where(x => x.PerformanceGid == Gid).ToList();
|
||||
if (child2List.Count > 0)
|
||||
{
|
||||
//删除子表3数据
|
||||
var child3List = db.CQMS_Performance_Child3.Where(x => x.PerformanceGid == list[0].PerformanceGid).ToList();
|
||||
var child3List = db.CQMS_Performance_Child3.Where(x => x.PerformanceGid == Gid).ToList();
|
||||
if (child3List.Count > 0)
|
||||
{
|
||||
db.CQMS_Performance_Child3.DeleteAllOnSubmit(child3List);
|
||||
Reference in New Issue
Block a user