1
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class PersonTotalService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_DutyService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
/// </summary>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_DutyTemplateService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取员工责任书模板信息
|
||||
/// </summary>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_QuarterCheckApproveService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_QuarterCheckItemService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_QuarterCheckService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class Person_ShuntApproveService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分流管理模板列表
|
||||
@@ -19,6 +19,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string ShuntId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.Person_ShuntApprove
|
||||
where x.ShuntId == ShuntId && x.ApproveDate != null
|
||||
orderby x.ApproveDate
|
||||
@@ -41,6 +42,7 @@ namespace BLL
|
||||
/// <returns>一个分流管理审批实体</returns>
|
||||
public static Model.Person_ShuntApprove GetShuntApproveByShuntApproveId(string ShuntApproveId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Person_ShuntApprove.FirstOrDefault(x => x.ShuntApproveId == ShuntApproveId);
|
||||
}
|
||||
|
||||
@@ -51,6 +53,7 @@ namespace BLL
|
||||
/// <returns>一个分流管理审批实体</returns>
|
||||
public static Model.Person_ShuntApprove GetShuntApproveByShuntId(string ShuntId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Person_ShuntApprove.FirstOrDefault(x => x.ShuntId == ShuntId && x.ApproveDate == null);
|
||||
}
|
||||
|
||||
@@ -61,16 +64,19 @@ namespace BLL
|
||||
/// <returns>一个分流管理审批实体</returns>
|
||||
public static Model.Person_ShuntApprove GetShuntApproveByApproveId(string approveId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Person_ShuntApprove.FirstOrDefault(x => x.ShuntApproveId == approveId);
|
||||
}
|
||||
|
||||
public static Model.Person_ShuntApprove GetComplie(string ShuntId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Person_ShuntApprove.FirstOrDefault(x => x.ShuntId == ShuntId && x.ApproveType == BLL.Const.Shunt_Compile);
|
||||
}
|
||||
|
||||
public static Model.Person_ShuntApprove GetAudit(string ShuntId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.Person_ShuntApprove.FirstOrDefault(x => x.ShuntId == ShuntId && x.ApproveType == BLL.Const.Shunt_Audit);
|
||||
}
|
||||
|
||||
@@ -81,6 +87,7 @@ namespace BLL
|
||||
/// <returns>分流管理审批集合</returns>
|
||||
public static List<Model.Person_ShuntApprove> GetShuntApprovesByShuntApproveId(string ShuntApproveId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return (from x in db.Person_ShuntApprove where x.ShuntApproveId == ShuntApproveId select x).ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class Person_TrainingPlanService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user