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