initproject

This commit is contained in:
2024-05-08 10:02:08 +08:00
commit 98f03b1780
3859 changed files with 348243 additions and 0 deletions
@@ -0,0 +1,77 @@
using System.Linq;
namespace BLL
{
/// <summary>
/// 公司相关规章制度标准
/// </summary>
public static class FileControl_CompanyStandardsService
{
/// <summary>
/// 根据主键获取公司相关规章制度标准
/// </summary>
/// <param name="companyStandardsId"></param>
/// <returns></returns>
public static Model.FileControl_CompanyStandards GetCompanyStandardsById(string companyStandardsId)
{
return Funs.DB.FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == companyStandardsId);
}
/// <summary>
/// 添加公司相关规章制度标准
/// </summary>
/// <param name="companyStandards"></param>
public static void AddCompanyStandards(Model.FileControl_CompanyStandards companyStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_CompanyStandards newCompanyStandards = new Model.FileControl_CompanyStandards();
newCompanyStandards.CompanyStandardsId = companyStandards.CompanyStandardsId;
newCompanyStandards.CompanyStandardsCode = companyStandards.CompanyStandardsCode;
newCompanyStandards.CompanyStandardsName = companyStandards.CompanyStandardsName;
newCompanyStandards.Abstract = companyStandards.Abstract;
newCompanyStandards.CompileMan = companyStandards.CompileMan;
newCompanyStandards.CompileDate = companyStandards.CompileDate;
newCompanyStandards.Remarks = companyStandards.Remarks;
newCompanyStandards.AttachUrl = companyStandards.AttachUrl;
db.FileControl_CompanyStandards.InsertOnSubmit(newCompanyStandards);
db.SubmitChanges();
}
/// <summary>
/// 修改公司相关规章制度标准
/// </summary>
/// <param name="companyStandards"></param>
public static void UpdateCompanyStandards(Model.FileControl_CompanyStandards companyStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_CompanyStandards newCompanyStandards = db.FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == companyStandards.CompanyStandardsId);
if (newCompanyStandards != null)
{
newCompanyStandards.CompanyStandardsCode = companyStandards.CompanyStandardsCode;
newCompanyStandards.CompanyStandardsName = companyStandards.CompanyStandardsName;
newCompanyStandards.Abstract = companyStandards.Abstract;
newCompanyStandards.CompileMan = companyStandards.CompileMan;
newCompanyStandards.CompileDate = companyStandards.CompileDate;
newCompanyStandards.Remarks = companyStandards.Remarks;
newCompanyStandards.AttachUrl = companyStandards.AttachUrl;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除公司相关规章制度标准
/// </summary>
/// <param name="companyStandardsId"></param>
public static void DeleteCompanyStandardsById(string companyStandardsId)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_CompanyStandards companyStandards = db.FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == companyStandardsId);
if (companyStandards != null)
{
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, companyStandardsId, Const.CompanyStandardsMenuId);//删除附件
db.FileControl_CompanyStandards.DeleteOnSubmit(companyStandards);
db.SubmitChanges();
}
}
}
}
@@ -0,0 +1,77 @@
using System.Linq;
namespace BLL
{
/// <summary>
/// 国内法律法规相关条款
/// </summary>
public static class FileControl_DomesticLawsRegulationsService
{
/// <summary>
/// 根据主键获取国内法律法规相关条款
/// </summary>
/// <param name="domesticLawsRegulationsId"></param>
/// <returns></returns>
public static Model.FileControl_DomesticLawsRegulations GetDomesticLawsRegulationsById(string domesticLawsRegulationsId)
{
return Funs.DB.FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulationsId);
}
/// <summary>
/// 添加国内法律法规相关条款
/// </summary>
/// <param name="domesticLawsRegulations"></param>
public static void AddDomesticLawsRegulations(Model.FileControl_DomesticLawsRegulations domesticLawsRegulations)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticLawsRegulations newDomesticLawsRegulations = new Model.FileControl_DomesticLawsRegulations();
newDomesticLawsRegulations.DomesticLawsRegulationsId = domesticLawsRegulations.DomesticLawsRegulationsId;
newDomesticLawsRegulations.DomesticLawsRegulationsCode = domesticLawsRegulations.DomesticLawsRegulationsCode;
newDomesticLawsRegulations.DomesticLawsRegulationsName = domesticLawsRegulations.DomesticLawsRegulationsName;
newDomesticLawsRegulations.Abstract = domesticLawsRegulations.Abstract;
newDomesticLawsRegulations.CompileMan = domesticLawsRegulations.CompileMan;
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
newDomesticLawsRegulations.Remarks = domesticLawsRegulations.Remarks;
newDomesticLawsRegulations.AttachUrl = domesticLawsRegulations.AttachUrl;
db.FileControl_DomesticLawsRegulations.InsertOnSubmit(newDomesticLawsRegulations);
db.SubmitChanges();
}
/// <summary>
/// 修改国内法律法规相关条款
/// </summary>
/// <param name="domesticLawsRegulations"></param>
public static void UpdateDomesticLawsRegulations(Model.FileControl_DomesticLawsRegulations domesticLawsRegulations)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticLawsRegulations newDomesticLawsRegulations = db.FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulations.DomesticLawsRegulationsId);
if (newDomesticLawsRegulations != null)
{
newDomesticLawsRegulations.DomesticLawsRegulationsCode = domesticLawsRegulations.DomesticLawsRegulationsCode;
newDomesticLawsRegulations.DomesticLawsRegulationsName = domesticLawsRegulations.DomesticLawsRegulationsName;
newDomesticLawsRegulations.Abstract = domesticLawsRegulations.Abstract;
newDomesticLawsRegulations.CompileMan = domesticLawsRegulations.CompileMan;
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
newDomesticLawsRegulations.Remarks = domesticLawsRegulations.Remarks;
newDomesticLawsRegulations.AttachUrl = domesticLawsRegulations.AttachUrl;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除国内法律法规相关条款
/// </summary>
/// <param name="domesticLawsRegulationsId"></param>
public static void DeleteDomesticLawsRegulationsById(string domesticLawsRegulationsId)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticLawsRegulations domesticLawsRegulations = db.FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulationsId);
if (domesticLawsRegulations != null)
{
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, domesticLawsRegulationsId, Const.DomesticLawsRegulationsMenuId);//删除附件
db.FileControl_DomesticLawsRegulations.DeleteOnSubmit(domesticLawsRegulations);
db.SubmitChanges();
}
}
}
}
@@ -0,0 +1,77 @@
using System.Linq;
namespace BLL
{
/// <summary>
/// 国内现行相关标准规范
/// </summary>
public static class FileControl_DomesticStandardsService
{
/// <summary>
/// 根据主键获取国内现行相关标准规范
/// </summary>
/// <param name="domesticStandardsId"></param>
/// <returns></returns>
public static Model.FileControl_DomesticStandards GetDomesticStandardsById(string domesticStandardsId)
{
return Funs.DB.FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == domesticStandardsId);
}
/// <summary>
/// 添加国内现行相关标准规范
/// </summary>
/// <param name="domesticStandards"></param>
public static void AddDomesticStandards(Model.FileControl_DomesticStandards domesticStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticStandards newDomesticStandards = new Model.FileControl_DomesticStandards();
newDomesticStandards.DomesticStandardsId = domesticStandards.DomesticStandardsId;
newDomesticStandards.DomesticStandardsCode = domesticStandards.DomesticStandardsCode;
newDomesticStandards.DomesticStandardsName = domesticStandards.DomesticStandardsName;
newDomesticStandards.Abstract = domesticStandards.Abstract;
newDomesticStandards.CompileMan = domesticStandards.CompileMan;
newDomesticStandards.CompileDate = domesticStandards.CompileDate;
newDomesticStandards.Remarks = domesticStandards.Remarks;
newDomesticStandards.AttachUrl = domesticStandards.AttachUrl;
db.FileControl_DomesticStandards.InsertOnSubmit(newDomesticStandards);
db.SubmitChanges();
}
/// <summary>
/// 修改国内现行相关标准规范
/// </summary>
/// <param name="domesticStandards"></param>
public static void UpdateDomesticStandards(Model.FileControl_DomesticStandards domesticStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticStandards newDomesticStandards = db.FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == domesticStandards.DomesticStandardsId);
if (newDomesticStandards != null)
{
newDomesticStandards.DomesticStandardsCode = domesticStandards.DomesticStandardsCode;
newDomesticStandards.DomesticStandardsName = domesticStandards.DomesticStandardsName;
newDomesticStandards.Abstract = domesticStandards.Abstract;
newDomesticStandards.CompileMan = domesticStandards.CompileMan;
newDomesticStandards.CompileDate = domesticStandards.CompileDate;
newDomesticStandards.Remarks = domesticStandards.Remarks;
newDomesticStandards.AttachUrl = domesticStandards.AttachUrl;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除国内现行相关标准规范
/// </summary>
/// <param name="domesticStandardsId"></param>
public static void DeleteDomesticStandardsById(string domesticStandardsId)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_DomesticStandards domesticStandards = db.FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == domesticStandardsId);
if (domesticStandards != null)
{
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, domesticStandardsId, Const.DomesticStandardsMenuId);//删除附件
db.FileControl_DomesticStandards.DeleteOnSubmit(domesticStandards);
db.SubmitChanges();
}
}
}
}
@@ -0,0 +1,77 @@
using System.Linq;
namespace BLL
{
/// <summary>
/// 国外现行相关标准规范表
/// </summary>
public static class FileControl_ForeignStandardsService
{
/// <summary>
/// 根据主键获取国外现行相关标准规范
/// </summary>
/// <param name="foreignStandardsId"></param>
/// <returns></returns>
public static Model.FileControl_ForeignStandards GetForeignStandardsById(string foreignStandardsId)
{
return Funs.DB.FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == foreignStandardsId);
}
/// <summary>
/// 添加国外现行相关标准规范
/// </summary>
/// <param name="foreignStandards"></param>
public static void AddForeignStandards(Model.FileControl_ForeignStandards foreignStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_ForeignStandards newForeignStandards = new Model.FileControl_ForeignStandards();
newForeignStandards.ForeignStandardsId = foreignStandards.ForeignStandardsId;
newForeignStandards.ForeignStandardsCode = foreignStandards.ForeignStandardsCode;
newForeignStandards.ForeignStandardsName = foreignStandards.ForeignStandardsName;
newForeignStandards.Abstract = foreignStandards.Abstract;
newForeignStandards.CompileMan = foreignStandards.CompileMan;
newForeignStandards.CompileDate = foreignStandards.CompileDate;
newForeignStandards.Remarks = foreignStandards.Remarks;
newForeignStandards.AttachUrl = foreignStandards.AttachUrl;
db.FileControl_ForeignStandards.InsertOnSubmit(newForeignStandards);
db.SubmitChanges();
}
/// <summary>
/// 修改国外现行相关标准规范
/// </summary>
/// <param name="foreignStandards"></param>
public static void UpdateForeignStandards(Model.FileControl_ForeignStandards foreignStandards)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_ForeignStandards newForeignStandards = db.FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == foreignStandards.ForeignStandardsId);
if (newForeignStandards != null)
{
newForeignStandards.ForeignStandardsCode = foreignStandards.ForeignStandardsCode;
newForeignStandards.ForeignStandardsName = foreignStandards.ForeignStandardsName;
newForeignStandards.Abstract = foreignStandards.Abstract;
newForeignStandards.CompileMan = foreignStandards.CompileMan;
newForeignStandards.CompileDate = foreignStandards.CompileDate;
newForeignStandards.Remarks = foreignStandards.Remarks;
newForeignStandards.AttachUrl = foreignStandards.AttachUrl;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除国外现行相关标准规范
/// </summary>
/// <param name="foreignStandardsId"></param>
public static void DeleteForeignStandards(string foreignStandardsId)
{
Model.HJGLDB db = Funs.DB;
Model.FileControl_ForeignStandards foreignStandards = db.FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == foreignStandardsId);
if (foreignStandards != null)
{
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, foreignStandardsId, Const.ForeignStandardsMenuId);//删除附件
db.FileControl_ForeignStandards.DeleteOnSubmit(foreignStandards);
db.SubmitChanges();
}
}
}
}