20210621
This commit is contained in:
@@ -553,6 +553,13 @@
|
||||
<Compile Include="OpenService\MonitorService.cs" />
|
||||
<Compile Include="DynamicTHeaderHepler.cs" />
|
||||
<Compile Include="OpenService\GetDataService.cs" />
|
||||
<Compile Include="Party\LastWorkSummaryService.cs" />
|
||||
<Compile Include="Party\OrganizingLifeService.cs" />
|
||||
<Compile Include="Party\PartyCommitteeService.cs" />
|
||||
<Compile Include="Party\PartyCongressService.cs" />
|
||||
<Compile Include="Party\PartyLectureService.cs" />
|
||||
<Compile Include="Party\PartyMeetingService.cs" />
|
||||
<Compile Include="Party\WorkPlanService.cs" />
|
||||
<Compile Include="Person\PersonTotalService.cs" />
|
||||
<Compile Include="Person\Person_DutyService.cs" />
|
||||
<Compile Include="Person\Person_DutyTemplateService.cs" />
|
||||
|
||||
@@ -305,7 +305,24 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
public static List<Model.ProcessControl_InspectionManagement> getInspectionManagementListByCNProfessionalIdAndDate(string projectId, string cNProfessionalId, DateTime startDate, DateTime SoptDate, bool isOnceQualified)
|
||||
{
|
||||
List<Model.ProcessControl_InspectionManagement> InspectionMangementList = (from x in Funs.DB.ProcessControl_InspectionManagement where x.ProjectId == projectId select x).ToList();
|
||||
if (!string.IsNullOrEmpty(cNProfessionalId) && cNProfessionalId != "0")
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.CNProfessionalId == cNProfessionalId select x).ToList();
|
||||
}
|
||||
if (isOnceQualified == true)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.IsOnceQualified == isOnceQualified select x).ToList();
|
||||
}
|
||||
if (startDate != null && SoptDate != null)
|
||||
{
|
||||
InspectionMangementList = (from x in InspectionMangementList where x.InspectionDate >= startDate && x.InspectionDate <= SoptDate select x).ToList();
|
||||
}
|
||||
|
||||
return InspectionMangementList;
|
||||
}
|
||||
public static List<Model.View_CQMS_InspectionManagementDetail> getInspectionManagementDetailListByCNProfessionalIdAndDate(string projectId, string cNProfessionalId, DateTime startDate, DateTime SoptDate, bool isOnceQualified)
|
||||
{
|
||||
List<Model.View_CQMS_InspectionManagementDetail> InspectionMangementList = (from x in Funs.DB.View_CQMS_InspectionManagementDetail where x.ProjectId == projectId select x).ToList();
|
||||
|
||||
@@ -677,7 +677,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string Menu_ZHGL = "Menu_ZHGL";
|
||||
/// <summary>
|
||||
/// 党建群团
|
||||
/// 智慧党建
|
||||
/// </summary>
|
||||
public const string Menu_Party = "Menu_Party";
|
||||
|
||||
@@ -4314,6 +4314,43 @@ namespace BLL
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 智慧党建
|
||||
/// <summary>
|
||||
/// 上年度党建工作总结
|
||||
/// </summary>
|
||||
public const string LastWorkSummaryMenuId = "AA2BCCC3-24C7-4766-BF67-90F852E9922B";
|
||||
|
||||
/// <summary>
|
||||
/// 本年度党建工作计划
|
||||
/// </summary>
|
||||
public const string WorkPlanMenuId = "5430460E-C495-4699-B039-B457587BBB60";
|
||||
|
||||
/// <summary>
|
||||
/// 党支部党员大会
|
||||
/// </summary>
|
||||
public const string PartyCongressMenuId = "89815103-D31B-4FD1-89FD-15F47F132C5C";
|
||||
|
||||
/// <summary>
|
||||
/// 党支部委员会
|
||||
/// </summary>
|
||||
public const string PartyCommitteeMenuId = "5EEBBF63-CCE2-4D53-ACD4-B21C3A06B97D";
|
||||
|
||||
/// <summary>
|
||||
/// 支部党小组会
|
||||
/// </summary>
|
||||
public const string PartyMeetingMenuId = "FD3FE3DF-7CF4-4472-AC11-CB93FAA7044F";
|
||||
|
||||
/// <summary>
|
||||
/// 党课
|
||||
/// </summary>
|
||||
public const string PartyLectureMenuId = "5D85CB4D-357D-42AF-9A23-8BF908C9A92F";
|
||||
|
||||
/// <summary>
|
||||
/// 组织生活会
|
||||
/// </summary>
|
||||
public const string OrganizingLifeMenuId = "FA19FBD7-6458-4A40-9D2E-9CBCBF5CDBDB";
|
||||
#endregion
|
||||
|
||||
#region 试车管理
|
||||
/// <summary>
|
||||
/// 开车资料收集
|
||||
|
||||
@@ -96,6 +96,23 @@ namespace BLL
|
||||
return Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstValue == constValue && e.GroupId == groupId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据值、组ID获取常量字段信息
|
||||
/// </summary>
|
||||
/// <param name="constValue"></param>
|
||||
/// <param name="groupId"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetConstTextByConstValueAndGroupId(string constValue, string groupId)
|
||||
{
|
||||
string text = string.Empty;
|
||||
var c = Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstValue == constValue && e.GroupId == groupId);
|
||||
if (c != null)
|
||||
{
|
||||
text = c.ConstText;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
#region 根据多ID得到名称字符串
|
||||
/// <summary>
|
||||
/// 根据多ID得到名称字符串
|
||||
@@ -174,7 +191,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 季度 组id
|
||||
/// </summary>
|
||||
public const string Group_0011 = "0011";
|
||||
public const string Group_0011 = "0011";
|
||||
/// <summary>
|
||||
/// 事故类型 组id
|
||||
/// </summary>
|
||||
@@ -202,11 +219,11 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 资源上传审核状态:未审核,未通过,已通过
|
||||
/// </summary>
|
||||
public const string Group_UploadResources = "UploadResources";
|
||||
public const string Group_UploadResources = "UploadResources";
|
||||
/// <summary>
|
||||
/// 图表类型:组id
|
||||
/// </summary>
|
||||
public const string Group_ChartType = "ChartType";
|
||||
public const string Group_ChartType = "ChartType";
|
||||
/// <summary>
|
||||
/// 资源上报状态:组id
|
||||
/// </summary>
|
||||
@@ -230,7 +247,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// -菜单类型:组id
|
||||
/// </summary>
|
||||
public const string Group_MenuType = "MenuType";
|
||||
public const string Group_MenuType = "MenuType";
|
||||
/// <summary>
|
||||
/// -项目单位类型:组id
|
||||
/// </summary>
|
||||
|
||||
@@ -25,11 +25,11 @@ namespace BLL
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.T_d_facerecord> qq = from x in db.T_d_facerecord
|
||||
orderby x.DateTimeRecord descending
|
||||
orderby x.DateTimeRecord descending
|
||||
select x;
|
||||
private static IQueryable<Model.T_d_validcardevent> qq1 = from x in db.T_d_validcardevent
|
||||
orderby x.RecordDateTime descending
|
||||
select x;
|
||||
private static IQueryable<Model.T_d_validcardevent> qq1= from x in db.T_d_validcardevent
|
||||
orderby x.RecordDateTime descending
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -42,7 +42,7 @@ namespace BLL
|
||||
if (type == "1")
|
||||
{
|
||||
IQueryable<Model.T_d_validcardevent> q1 = qq1.Where(x => x.ProjectId == projectId);
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(startDate))
|
||||
{
|
||||
q1 = q1.Where(e => e.RecordDateTime >= Funs.GetNewDateTime(startDate));
|
||||
@@ -55,8 +55,8 @@ namespace BLL
|
||||
{
|
||||
q1 = from x in q1
|
||||
join y in db.SitePerson_Person on x.IDCardNo equals y.IdentityCard
|
||||
where y.UnitId == unitId
|
||||
select x;
|
||||
where y.UnitId == unitId
|
||||
select x;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
@@ -75,14 +75,14 @@ namespace BLL
|
||||
x.ProjectId,
|
||||
x.EmployName,
|
||||
x.DepartmentID,
|
||||
DepartName = x.DepartmentName,
|
||||
DepartName=x.DepartmentName,
|
||||
x.AreaID,
|
||||
x.AreaName,
|
||||
x.EmployNO,
|
||||
CardID = x.CardNO,
|
||||
DateTimeRecord = x.RecordDateTime,
|
||||
RecordDes = x.RecordAll,
|
||||
InOrOut = (x.InOrOut == 2 ? "出门" : "进门"),
|
||||
CardID=x.CardNO,
|
||||
DateTimeRecord=x.RecordDateTime,
|
||||
RecordDes=x.RecordAll,
|
||||
InOrOut=(x.InOrOut ==2? "出门" : "进门"),
|
||||
};
|
||||
}
|
||||
else
|
||||
@@ -107,9 +107,9 @@ namespace BLL
|
||||
if (!string.IsNullOrEmpty(unitId))
|
||||
{
|
||||
q = from x in q
|
||||
join y in db.SitePerson_Person on x.EmployNO equals y.IdentityCard
|
||||
where y.UnitId == unitId
|
||||
select x;
|
||||
join y in db.SitePerson_Person on x.EmployNO equals y.IdentityCard
|
||||
where y.UnitId == unitId
|
||||
select x;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace BLL
|
||||
x.CardID,
|
||||
x.DateTimeRecord,
|
||||
x.RecordDes,
|
||||
x.InOrOut,
|
||||
x.InOrOut,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 上年度党建工作总结
|
||||
/// </summary>
|
||||
public class LastWorkSummaryService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取上年度党建工作总结
|
||||
/// </summary>
|
||||
/// <param name="lastWorkSummaryId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_LastWorkSummary GetLastWorkSummaryById(string lastWorkSummaryId)
|
||||
{
|
||||
return Funs.DB.Party_LastWorkSummary.FirstOrDefault(e => e.LastWorkSummaryId == lastWorkSummaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加上年度党建工作总结
|
||||
/// </summary>
|
||||
/// <param name="lastWorkSummary"></param>
|
||||
public static void AddLastWorkSummary(Model.Party_LastWorkSummary lastWorkSummary)
|
||||
{
|
||||
Model.Party_LastWorkSummary newLastWorkSummary = new Model.Party_LastWorkSummary
|
||||
{
|
||||
LastWorkSummaryId = lastWorkSummary.LastWorkSummaryId,
|
||||
Year = lastWorkSummary.Year,
|
||||
CompileMan = lastWorkSummary.CompileMan,
|
||||
CompileDate = lastWorkSummary.CompileDate
|
||||
};
|
||||
Funs.DB.Party_LastWorkSummary.InsertOnSubmit(newLastWorkSummary);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改上年度党建工作总结
|
||||
/// </summary>
|
||||
/// <param name="lastWorkSummary"></param>
|
||||
public static void UpdateLastWorkSummary(Model.Party_LastWorkSummary lastWorkSummary)
|
||||
{
|
||||
Model.Party_LastWorkSummary newLastWorkSummary = Funs.DB.Party_LastWorkSummary.FirstOrDefault(e => e.LastWorkSummaryId == lastWorkSummary.LastWorkSummaryId);
|
||||
if (newLastWorkSummary != null)
|
||||
{
|
||||
newLastWorkSummary.CompileMan = lastWorkSummary.CompileMan;
|
||||
newLastWorkSummary.CompileDate = lastWorkSummary.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除上年度党建工作总结
|
||||
/// </summary>
|
||||
/// <param name="lastWorkSummaryId"></param>
|
||||
public static void DeleteLastWorkSummaryById(string lastWorkSummaryId)
|
||||
{
|
||||
Model.Party_LastWorkSummary lastWorkSummary = Funs.DB.Party_LastWorkSummary.FirstOrDefault(e => e.LastWorkSummaryId == lastWorkSummaryId);
|
||||
if (lastWorkSummary != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(lastWorkSummaryId);
|
||||
Funs.DB.Party_LastWorkSummary.DeleteOnSubmit(lastWorkSummary);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织生活会
|
||||
/// </summary>
|
||||
public class OrganizingLifeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取组织生活会
|
||||
/// </summary>
|
||||
/// <param name="organizingLifeId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_OrganizingLife GetOrganizingLifeById(string organizingLifeId)
|
||||
{
|
||||
return Funs.DB.Party_OrganizingLife.FirstOrDefault(e => e.OrganizingLifeId == organizingLifeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加组织生活会
|
||||
/// </summary>
|
||||
/// <param name="organizingLife"></param>
|
||||
public static void AddOrganizingLife(Model.Party_OrganizingLife organizingLife)
|
||||
{
|
||||
Model.Party_OrganizingLife newOrganizingLife = new Model.Party_OrganizingLife
|
||||
{
|
||||
OrganizingLifeId = organizingLife.OrganizingLifeId,
|
||||
Year = organizingLife.Year,
|
||||
Quarter = organizingLife.Quarter,
|
||||
Theme = organizingLife.Theme,
|
||||
OrganizingLifeDate = organizingLife.OrganizingLifeDate,
|
||||
Partyers = organizingLife.Partyers,
|
||||
CompileMan = organizingLife.CompileMan,
|
||||
CompileDate = organizingLife.CompileDate
|
||||
};
|
||||
Funs.DB.Party_OrganizingLife.InsertOnSubmit(newOrganizingLife);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改组织生活会
|
||||
/// </summary>
|
||||
/// <param name="organizingLife"></param>
|
||||
public static void UpdateOrganizingLife(Model.Party_OrganizingLife organizingLife)
|
||||
{
|
||||
Model.Party_OrganizingLife newOrganizingLife = Funs.DB.Party_OrganizingLife.FirstOrDefault(e => e.OrganizingLifeId == organizingLife.OrganizingLifeId);
|
||||
if (newOrganizingLife != null)
|
||||
{
|
||||
newOrganizingLife.Quarter = organizingLife.Quarter;
|
||||
newOrganizingLife.Theme = organizingLife.Theme;
|
||||
newOrganizingLife.OrganizingLifeDate = organizingLife.OrganizingLifeDate;
|
||||
newOrganizingLife.Partyers = organizingLife.Partyers;
|
||||
newOrganizingLife.CompileMan = organizingLife.CompileMan;
|
||||
newOrganizingLife.CompileDate = organizingLife.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除组织生活会
|
||||
/// </summary>
|
||||
/// <param name="organizingLifeId"></param>
|
||||
public static void DeleteOrganizingLifeById(string organizingLifeId)
|
||||
{
|
||||
Model.Party_OrganizingLife organizingLife = Funs.DB.Party_OrganizingLife.FirstOrDefault(e => e.OrganizingLifeId == organizingLifeId);
|
||||
if (organizingLife != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(organizingLifeId);
|
||||
Funs.DB.Party_OrganizingLife.DeleteOnSubmit(organizingLife);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党支部委员会
|
||||
/// </summary>
|
||||
public class PartyCommitteeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党支部委员会
|
||||
/// </summary>
|
||||
/// <param name="partyCommitteeId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyCommittee GetPartyCommitteeById(string partyCommitteeId)
|
||||
{
|
||||
return Funs.DB.Party_PartyCommittee.FirstOrDefault(e => e.PartyCommitteeId == partyCommitteeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党支部委员会
|
||||
/// </summary>
|
||||
/// <param name="partyCommittee"></param>
|
||||
public static void AddPartyCommittee(Model.Party_PartyCommittee partyCommittee)
|
||||
{
|
||||
Model.Party_PartyCommittee newPartyCommittee = new Model.Party_PartyCommittee
|
||||
{
|
||||
PartyCommitteeId = partyCommittee.PartyCommitteeId,
|
||||
Year = partyCommittee.Year,
|
||||
Month = partyCommittee.Month,
|
||||
CompileMan = partyCommittee.CompileMan,
|
||||
CompileDate = partyCommittee.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyCommittee.InsertOnSubmit(newPartyCommittee);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党支部委员会
|
||||
/// </summary>
|
||||
/// <param name="partyCommittee"></param>
|
||||
public static void UpdatePartyCommittee(Model.Party_PartyCommittee partyCommittee)
|
||||
{
|
||||
Model.Party_PartyCommittee newPartyCommittee = Funs.DB.Party_PartyCommittee.FirstOrDefault(e => e.PartyCommitteeId == partyCommittee.PartyCommitteeId);
|
||||
if (newPartyCommittee != null)
|
||||
{
|
||||
newPartyCommittee.Month = partyCommittee.Month;
|
||||
newPartyCommittee.CompileMan = partyCommittee.CompileMan;
|
||||
newPartyCommittee.CompileDate = partyCommittee.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党支部委员会
|
||||
/// </summary>
|
||||
/// <param name="partyCommitteeId"></param>
|
||||
public static void DeletePartyCommitteeById(string partyCommitteeId)
|
||||
{
|
||||
Model.Party_PartyCommittee partyCommittee = Funs.DB.Party_PartyCommittee.FirstOrDefault(e => e.PartyCommitteeId == partyCommitteeId);
|
||||
if (partyCommittee != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyCommitteeId);
|
||||
CommonService.DeleteAttachFileById(partyCommitteeId + "2");
|
||||
CommonService.DeleteAttachFileById(partyCommitteeId + "3");
|
||||
Funs.DB.Party_PartyCommittee.DeleteOnSubmit(partyCommittee);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党支部党员大会
|
||||
/// </summary>
|
||||
public class PartyCongressService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党支部党员大会
|
||||
/// </summary>
|
||||
/// <param name="partyCongressId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyCongress GetPartyCongressById(string partyCongressId)
|
||||
{
|
||||
return Funs.DB.Party_PartyCongress.FirstOrDefault(e => e.PartyCongressId == partyCongressId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党支部党员大会
|
||||
/// </summary>
|
||||
/// <param name="partyCongress"></param>
|
||||
public static void AddPartyCongress(Model.Party_PartyCongress partyCongress)
|
||||
{
|
||||
Model.Party_PartyCongress newPartyCongress = new Model.Party_PartyCongress
|
||||
{
|
||||
PartyCongressId = partyCongress.PartyCongressId,
|
||||
Year = partyCongress.Year,
|
||||
Quarter = partyCongress.Quarter,
|
||||
CompileMan = partyCongress.CompileMan,
|
||||
CompileDate = partyCongress.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyCongress.InsertOnSubmit(newPartyCongress);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党支部党员大会
|
||||
/// </summary>
|
||||
/// <param name="partyCongress"></param>
|
||||
public static void UpdatePartyCongress(Model.Party_PartyCongress partyCongress)
|
||||
{
|
||||
Model.Party_PartyCongress newPartyCongress = Funs.DB.Party_PartyCongress.FirstOrDefault(e => e.PartyCongressId == partyCongress.PartyCongressId);
|
||||
if (newPartyCongress != null)
|
||||
{
|
||||
newPartyCongress.Quarter = partyCongress.Quarter;
|
||||
newPartyCongress.CompileMan = partyCongress.CompileMan;
|
||||
newPartyCongress.CompileDate = partyCongress.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党支部党员大会
|
||||
/// </summary>
|
||||
/// <param name="partyCongressId"></param>
|
||||
public static void DeletePartyCongressById(string partyCongressId)
|
||||
{
|
||||
Model.Party_PartyCongress partyCongress = Funs.DB.Party_PartyCongress.FirstOrDefault(e => e.PartyCongressId == partyCongressId);
|
||||
if (partyCongress != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyCongressId);
|
||||
CommonService.DeleteAttachFileById(partyCongressId + "2");
|
||||
CommonService.DeleteAttachFileById(partyCongressId + "3");
|
||||
Funs.DB.Party_PartyCongress.DeleteOnSubmit(partyCongress);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 党课
|
||||
/// </summary>
|
||||
public class PartyLectureService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取党课
|
||||
/// </summary>
|
||||
/// <param name="partyLectureId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyLecture GetPartyLectureById(string partyLectureId)
|
||||
{
|
||||
return Funs.DB.Party_PartyLecture.FirstOrDefault(e => e.PartyLectureId == partyLectureId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加党课
|
||||
/// </summary>
|
||||
/// <param name="partyLecture"></param>
|
||||
public static void AddPartyLecture(Model.Party_PartyLecture partyLecture)
|
||||
{
|
||||
Model.Party_PartyLecture newPartyLecture = new Model.Party_PartyLecture
|
||||
{
|
||||
PartyLectureId = partyLecture.PartyLectureId,
|
||||
Year = partyLecture.Year,
|
||||
Quarter = partyLecture.Quarter,
|
||||
CompileMan = partyLecture.CompileMan,
|
||||
CompileDate = partyLecture.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyLecture.InsertOnSubmit(newPartyLecture);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改党课
|
||||
/// </summary>
|
||||
/// <param name="partyLecture"></param>
|
||||
public static void UpdatePartyLecture(Model.Party_PartyLecture partyLecture)
|
||||
{
|
||||
Model.Party_PartyLecture newPartyLecture = Funs.DB.Party_PartyLecture.FirstOrDefault(e => e.PartyLectureId == partyLecture.PartyLectureId);
|
||||
if (newPartyLecture != null)
|
||||
{
|
||||
newPartyLecture.Quarter = partyLecture.Quarter;
|
||||
newPartyLecture.CompileMan = partyLecture.CompileMan;
|
||||
newPartyLecture.CompileDate = partyLecture.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除党课
|
||||
/// </summary>
|
||||
/// <param name="partyLectureId"></param>
|
||||
public static void DeletePartyLectureById(string partyLectureId)
|
||||
{
|
||||
Model.Party_PartyLecture partyLecture = Funs.DB.Party_PartyLecture.FirstOrDefault(e => e.PartyLectureId == partyLectureId);
|
||||
if (partyLecture != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyLectureId);
|
||||
CommonService.DeleteAttachFileById(partyLectureId + "2");
|
||||
CommonService.DeleteAttachFileById(partyLectureId + "3");
|
||||
Funs.DB.Party_PartyLecture.DeleteOnSubmit(partyLecture);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 支部党小组会
|
||||
/// </summary>
|
||||
public class PartyMeetingService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取支部党小组会
|
||||
/// </summary>
|
||||
/// <param name="partyMeetingId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_PartyMeeting GetPartyMeetingById(string partyMeetingId)
|
||||
{
|
||||
return Funs.DB.Party_PartyMeeting.FirstOrDefault(e => e.PartyMeetingId == partyMeetingId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加支部党小组会
|
||||
/// </summary>
|
||||
/// <param name="partyMeeting"></param>
|
||||
public static void AddPartyMeeting(Model.Party_PartyMeeting partyMeeting)
|
||||
{
|
||||
Model.Party_PartyMeeting newPartyMeeting = new Model.Party_PartyMeeting
|
||||
{
|
||||
PartyMeetingId = partyMeeting.PartyMeetingId,
|
||||
Year = partyMeeting.Year,
|
||||
Month = partyMeeting.Month,
|
||||
CompileMan = partyMeeting.CompileMan,
|
||||
CompileDate = partyMeeting.CompileDate
|
||||
};
|
||||
Funs.DB.Party_PartyMeeting.InsertOnSubmit(newPartyMeeting);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改支部党小组会
|
||||
/// </summary>
|
||||
/// <param name="partyMeeting"></param>
|
||||
public static void UpdatePartyMeeting(Model.Party_PartyMeeting partyMeeting)
|
||||
{
|
||||
Model.Party_PartyMeeting newPartyMeeting = Funs.DB.Party_PartyMeeting.FirstOrDefault(e => e.PartyMeetingId == partyMeeting.PartyMeetingId);
|
||||
if (newPartyMeeting != null)
|
||||
{
|
||||
newPartyMeeting.Month = partyMeeting.Month;
|
||||
newPartyMeeting.CompileMan = partyMeeting.CompileMan;
|
||||
newPartyMeeting.CompileDate = partyMeeting.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除支部党小组会
|
||||
/// </summary>
|
||||
/// <param name="partyMeetingId"></param>
|
||||
public static void DeletePartyMeetingById(string partyMeetingId)
|
||||
{
|
||||
Model.Party_PartyMeeting partyMeeting = Funs.DB.Party_PartyMeeting.FirstOrDefault(e => e.PartyMeetingId == partyMeetingId);
|
||||
if (partyMeeting != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(partyMeetingId);
|
||||
CommonService.DeleteAttachFileById(partyMeetingId + "2");
|
||||
CommonService.DeleteAttachFileById(partyMeetingId + "3");
|
||||
Funs.DB.Party_PartyMeeting.DeleteOnSubmit(partyMeeting);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 本年度党建工作计划
|
||||
/// </summary>
|
||||
public class WorkPlanService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取本年度党建工作计划
|
||||
/// </summary>
|
||||
/// <param name="workPlanId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Party_WorkPlan GetWorkPlanById(string workPlanId)
|
||||
{
|
||||
return Funs.DB.Party_WorkPlan.FirstOrDefault(e => e.WorkPlanId == workPlanId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加本年度党建工作计划
|
||||
/// </summary>
|
||||
/// <param name="workPlan"></param>
|
||||
public static void AddWorkPlan(Model.Party_WorkPlan workPlan)
|
||||
{
|
||||
Model.Party_WorkPlan newWorkPlan = new Model.Party_WorkPlan
|
||||
{
|
||||
WorkPlanId = workPlan.WorkPlanId,
|
||||
Year = workPlan.Year,
|
||||
CompileMan = workPlan.CompileMan,
|
||||
CompileDate = workPlan.CompileDate
|
||||
};
|
||||
Funs.DB.Party_WorkPlan.InsertOnSubmit(newWorkPlan);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改本年度党建工作计划
|
||||
/// </summary>
|
||||
/// <param name="workPlan"></param>
|
||||
public static void UpdateWorkPlan(Model.Party_WorkPlan workPlan)
|
||||
{
|
||||
Model.Party_WorkPlan newWorkPlan = Funs.DB.Party_WorkPlan.FirstOrDefault(e => e.WorkPlanId == workPlan.WorkPlanId);
|
||||
if (newWorkPlan != null)
|
||||
{
|
||||
newWorkPlan.CompileMan = workPlan.CompileMan;
|
||||
newWorkPlan.CompileDate = workPlan.CompileDate;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除本年度党建工作计划
|
||||
/// </summary>
|
||||
/// <param name="workPlanId"></param>
|
||||
public static void DeleteWorkPlanById(string workPlanId)
|
||||
{
|
||||
Model.Party_WorkPlan workPlan = Funs.DB.Party_WorkPlan.FirstOrDefault(e => e.WorkPlanId == workPlanId);
|
||||
if (workPlan != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(workPlanId);
|
||||
Funs.DB.Party_WorkPlan.DeleteOnSubmit(workPlan);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user