fix:接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user