fix:接口

This commit is contained in:
geh
2025-02-20 17:21:35 +08:00
parent 0a70ab9af7
commit edda376377
12 changed files with 778 additions and 38 deletions
@@ -19,7 +19,28 @@ public class AwardStandardsService
e.AwardStandardsId == AwardStandardsId);
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="AwardStandardsId"></param>
/// <returns></returns>
public static List<AwardStandardsItem> GetAwardStandardsList()
{
List<AwardStandardsItem> getDataLists = (from x in Funs.DB.Technique_AwardStandards
select new AwardStandardsItem
{
AwardStandardsId = x.AwardStandardsId,
AwardStandardsCode = x.AwardStandardsCode,
AwardStandardsName = x.AwardStandardsName,
AttachUrl = x.AttachUrl,
CompileMan = x.CompileMan,
CompileDate = x.CompileDate,
IsPass = x.IsPass,
UpState = x.UpState,
Remark = x.Remark
}).ToList();
return getDataLists;
}
/// <summary>
/// 添加
@@ -93,4 +114,64 @@ public class AwardStandardsService
db.SubmitChanges();
}
}
public class AwardStandardsItem
{
public string AwardStandardsId
{
get;
set;
}
public string AwardStandardsCode
{
get;
set;
}
public string AwardStandardsName
{
get;
set;
}
public string AttachUrl
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileDate
{
get;
set;
}
public System.Nullable<bool> IsPass
{
get;
set;
}
public string UpState
{
get;
set;
}
public string Remark
{
get;
set;
}
}
}
@@ -19,6 +19,28 @@ public class ConstructionStandardsService
e.ConstructionStandardsId == ConstructionStandardsId);
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="ConstructionStandardsId"></param>
/// <returns></returns>
public static List<ConstructionStandardsItem> GetConstructionStandardsList()
{
List<ConstructionStandardsItem> getDataLists = (from x in Funs.DB.Technique_ConstructionStandards
select new ConstructionStandardsItem
{
ConstructionStandardsId = x.ConstructionStandardsId,
ConstructionStandardsCode = x.ConstructionStandardsCode,
ConstructionStandardsName = x.ConstructionStandardsName,
AttachUrl = x.AttachUrl,
CompileMan = x.CompileMan,
CompileDate = x.CompileDate,
IsPass = x.IsPass,
UpState = x.UpState,
Remark = x.Remark
}).ToList();
return getDataLists;
}
/// <summary>
/// 添加
@@ -93,4 +115,63 @@ public class ConstructionStandardsService
db.SubmitChanges();
}
}
public class ConstructionStandardsItem
{
public string ConstructionStandardsId
{
get;
set;
}
public string ConstructionStandardsCode
{
get;
set;
}
public string ConstructionStandardsName
{
get;
set;
}
public string AttachUrl
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileDate
{
get;
set;
}
public System.Nullable<bool> IsPass
{
get;
set;
}
public string UpState
{
get;
set;
}
public string Remark
{
get;
set;
}
}
}
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
namespace BLL;
@@ -19,6 +20,29 @@ public class ProtectionStandardsService
return Funs.DB.Technique_ProtectionStandards.FirstOrDefault(e =>
e.ProtectionStandardsId == ProtectionStandardsId);
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="ProtectionStandardsId"></param>
/// <returns></returns>
public static List<ProtectionStandardsItem> GetProtectionStandardsList()
{
List<ProtectionStandardsItem> getDataLists = (from x in Funs.DB.Technique_ProtectionStandards
select new ProtectionStandardsItem
{
ProtectionStandardsId = x.ProtectionStandardsId,
ProtectionStandardsCode = x.ProtectionStandardsCode,
ProtectionStandardsName = x.ProtectionStandardsName,
AttachUrl = x.AttachUrl,
CompileMan = x.CompileMan,
CompileDate = x.CompileDate,
IsPass = x.IsPass,
UpState = x.UpState,
Remark = x.Remark
}).ToList();
return getDataLists;
}
/// <summary>
/// 添加
@@ -92,4 +116,65 @@ public class ProtectionStandardsService
db.SubmitChanges();
}
}
public class ProtectionStandardsItem
{
public string ProtectionStandardsId
{
get;
set;
}
public string ProtectionStandardsCode
{
get;
set;
}
public string ProtectionStandardsName
{
get;
set;
}
public string AttachUrl
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileDate
{
get;
set;
}
public System.Nullable<bool> IsPass
{
get;
set;
}
public string UpState
{
get;
set;
}
public string Remark
{
get;
set;
}
}
}
@@ -19,7 +19,28 @@ public class SafetyResponsibilitiesService
e.SafetyResponsibilitiesId == SafetyResponsibilitiesId);
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="SafetyResponsibilitiesId"></param>
/// <returns></returns>
public static List<SafetyResponsibilitiesItem> GetSafetyResponsibilitiesList()
{
List<SafetyResponsibilitiesItem> getDataLists = (from x in Funs.DB.Technique_SafetyResponsibilities
select new SafetyResponsibilitiesItem
{
SafetyResponsibilitiesId = x.SafetyResponsibilitiesId,
SafetyResponsibilitiesCode = x.SafetyResponsibilitiesCode,
SafetyResponsibilitiesName = x.SafetyResponsibilitiesName,
AttachUrl = x.AttachUrl,
CompileMan = x.CompileMan,
CompileDate = x.CompileDate,
IsPass = x.IsPass,
UpState = x.UpState,
Remark = x.Remark
}).ToList();
return getDataLists;
}
/// <summary>
/// 添加专项方案
@@ -94,4 +115,64 @@ public class SafetyResponsibilitiesService
db.SubmitChanges();
}
}
public class SafetyResponsibilitiesItem
{
public string SafetyResponsibilitiesId
{
get;
set;
}
public string SafetyResponsibilitiesCode
{
get;
set;
}
public string SafetyResponsibilitiesName
{
get;
set;
}
public string AttachUrl
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileDate
{
get;
set;
}
public System.Nullable<bool> IsPass
{
get;
set;
}
public string UpState
{
get;
set;
}
public string Remark
{
get;
set;
}
}
}