This commit is contained in:
2025-11-19 17:32:27 +08:00
parent 65c465ed67
commit 85089988bd
9 changed files with 111 additions and 8 deletions
@@ -120,6 +120,20 @@ namespace BLL
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据项目Id删除项目用户信息
/// </summary>
/// <param name="projectId"></param>
public static void DeleteAllCQMS_Law_ConstructionStandardListByProjectId(string projectId)
{
var dellist = from x in Funs.DB.CQMS_Law_ConstructionStandardListProject where x.ProjectId == projectId select x;
if (dellist.Count() > 0)
{
Funs.DB.CQMS_Law_ConstructionStandardListProject.DeleteAllOnSubmit(dellist);
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据项目ID删除所有标准规范
@@ -9,7 +9,7 @@ namespace BLL
{
public class DataTypeProjectService
{
public static Model.CNPCDB db = Funs.DB;
//public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -23,7 +23,7 @@ namespace BLL
/// <summary>
/// 定义变量
/// </summary>
private static IQueryable<Model.DataBase_DataTypeProject> qq = from x in db.DataBase_DataTypeProject orderby x.SortIndex select x;
private static IQueryable<Model.DataBase_DataTypeProject> qq = from x in Funs.DB.DataBase_DataTypeProject orderby x.SortIndex select x;
/// <summary>
/// 获取项目列表
@@ -129,6 +129,20 @@ namespace BLL
db.DataBase_DataTypeProject.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
/// <summary>
/// 根据项目Id删除所有对应资料库类别信息
/// </summary>
/// <param name="monthReportId"></param>
public static void DeleteAllDataTypeProjectByProjectId(string projectId)
{
var dellist = from x in Funs.DB.DataBase_DataTypeProject where x.ProjectId == projectId select x;
if (dellist.Count() > 0)
{
Funs.DB.DataBase_DataTypeProject.DeleteAllOnSubmit(dellist);
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 获取施工资料库类别项