dd
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 公司相关规章制度标准
|
||||
/// </summary>
|
||||
public static class HJGL_FileControl_CompanyStandardsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取公司相关规章制度标准
|
||||
/// </summary>
|
||||
/// <param name="CompanyStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FileControl_CompanyStandards GetCompanyStandardsById(string CompanyStandardsId)
|
||||
{
|
||||
return Funs.DB.HJGL_FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == CompanyStandardsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加公司相关规章制度标准
|
||||
/// </summary>
|
||||
/// <param name="CompanyStandards"></param>
|
||||
public static void AddCompanyStandards(Model.HJGL_FileControl_CompanyStandards CompanyStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_CompanyStandards newCompanyStandards = new Model.HJGL_FileControl_CompanyStandards();
|
||||
newCompanyStandards.CompanyStandardsId = CompanyStandards.CompanyStandardsId;
|
||||
newCompanyStandards.CompanyStandardsCode = CompanyStandards.CompanyStandardsCode;
|
||||
newCompanyStandards.CompanyStandardsName = CompanyStandards.CompanyStandardsName;
|
||||
newCompanyStandards.Summary = CompanyStandards.Summary;
|
||||
newCompanyStandards.CompileDate = CompanyStandards.CompileDate;
|
||||
newCompanyStandards.AttachUrl = CompanyStandards.AttachUrl;
|
||||
newCompanyStandards.CompileMan = CompanyStandards.CompileMan;
|
||||
newCompanyStandards.CompileDate = CompanyStandards.CompileDate;
|
||||
newCompanyStandards.Remarks = CompanyStandards.Remarks;
|
||||
db.HJGL_FileControl_CompanyStandards.InsertOnSubmit(newCompanyStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改公司相关规章制度标准
|
||||
/// </summary>
|
||||
/// <param name="CompanyStandards"></param>
|
||||
public static void UpdateCompanyStandards(Model.HJGL_FileControl_CompanyStandards CompanyStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_CompanyStandards newCompanyStandards = db.HJGL_FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == CompanyStandards.CompanyStandardsId);
|
||||
if (newCompanyStandards != null)
|
||||
{
|
||||
newCompanyStandards.CompanyStandardsCode = CompanyStandards.CompanyStandardsCode;
|
||||
newCompanyStandards.CompanyStandardsName = CompanyStandards.CompanyStandardsName;
|
||||
newCompanyStandards.Summary = CompanyStandards.Summary;
|
||||
newCompanyStandards.CompileDate = CompanyStandards.CompileDate;
|
||||
newCompanyStandards.AttachUrl = CompanyStandards.AttachUrl;
|
||||
newCompanyStandards.CompileMan = CompanyStandards.CompileMan;
|
||||
newCompanyStandards.CompileDate = CompanyStandards.CompileDate;
|
||||
newCompanyStandards.Remarks = CompanyStandards.Remarks;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除公司相关规章制度标准
|
||||
/// </summary>
|
||||
/// <param name="CompanyStandardsId"></param>
|
||||
public static void DeleteCompanyStandardsById(string CompanyStandardsId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_CompanyStandards CompanyStandards = db.HJGL_FileControl_CompanyStandards.FirstOrDefault(e => e.CompanyStandardsId == CompanyStandardsId);
|
||||
if (CompanyStandards != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CompanyStandards.AttachUrl))
|
||||
{
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, CompanyStandards.AttachUrl);//删除附件
|
||||
}
|
||||
|
||||
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, CompanyStandardsId, Const.HJGLServer_CompanyStandardsMenuId);//删除附件
|
||||
db.HJGL_FileControl_CompanyStandards.DeleteOnSubmit(CompanyStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 国内法律法规相关条款表
|
||||
/// </summary>
|
||||
public static class HJGL_FileControl_DomesticLawsRegulationsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取国内法律法规相关条款
|
||||
/// </summary>
|
||||
/// <param name="domesticLawsRegulationsId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FileControl_DomesticLawsRegulations GetDomesticLawsRegulationsById(string domesticLawsRegulationsId)
|
||||
{
|
||||
return Funs.DB.HJGL_FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulationsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加国内法律法规相关条款
|
||||
/// </summary>
|
||||
/// <param name="domesticLawsRegulations"></param>
|
||||
public static void AddDomesticLawsRegulations(Model.HJGL_FileControl_DomesticLawsRegulations domesticLawsRegulations)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticLawsRegulations newDomesticLawsRegulations = new Model.HJGL_FileControl_DomesticLawsRegulations();
|
||||
newDomesticLawsRegulations.DomesticLawsRegulationsId = domesticLawsRegulations.DomesticLawsRegulationsId;
|
||||
newDomesticLawsRegulations.DomesticLawsRegulationsCode = domesticLawsRegulations.DomesticLawsRegulationsCode;
|
||||
newDomesticLawsRegulations.DomesticLawsRegulationsName = domesticLawsRegulations.DomesticLawsRegulationsName;
|
||||
newDomesticLawsRegulations.Summary = domesticLawsRegulations.Summary;
|
||||
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
|
||||
newDomesticLawsRegulations.AttachUrl = domesticLawsRegulations.AttachUrl;
|
||||
newDomesticLawsRegulations.CompileMan = domesticLawsRegulations.CompileMan;
|
||||
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
|
||||
newDomesticLawsRegulations.Remarks = domesticLawsRegulations.Remarks;
|
||||
db.HJGL_FileControl_DomesticLawsRegulations.InsertOnSubmit(newDomesticLawsRegulations);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改国内法律法规相关条款
|
||||
/// </summary>
|
||||
/// <param name="domesticLawsRegulations"></param>
|
||||
public static void UpdateDomesticLawsRegulations(Model.HJGL_FileControl_DomesticLawsRegulations domesticLawsRegulations)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticLawsRegulations newDomesticLawsRegulations = db.HJGL_FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulations.DomesticLawsRegulationsId);
|
||||
if (newDomesticLawsRegulations != null)
|
||||
{
|
||||
newDomesticLawsRegulations.DomesticLawsRegulationsCode = domesticLawsRegulations.DomesticLawsRegulationsCode;
|
||||
newDomesticLawsRegulations.DomesticLawsRegulationsName = domesticLawsRegulations.DomesticLawsRegulationsName;
|
||||
newDomesticLawsRegulations.Summary = domesticLawsRegulations.Summary;
|
||||
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
|
||||
newDomesticLawsRegulations.AttachUrl = domesticLawsRegulations.AttachUrl;
|
||||
newDomesticLawsRegulations.CompileMan = domesticLawsRegulations.CompileMan;
|
||||
newDomesticLawsRegulations.CompileDate = domesticLawsRegulations.CompileDate;
|
||||
newDomesticLawsRegulations.Remarks = domesticLawsRegulations.Remarks;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除国内法律法规相关条款
|
||||
/// </summary>
|
||||
/// <param name="domesticLawsRegulationsId"></param>
|
||||
public static void DeleteDomesticLawsRegulationsById(string domesticLawsRegulationsId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticLawsRegulations DomesticLawsRegulations = db.HJGL_FileControl_DomesticLawsRegulations.FirstOrDefault(e => e.DomesticLawsRegulationsId == domesticLawsRegulationsId);
|
||||
if (DomesticLawsRegulations != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(DomesticLawsRegulations.AttachUrl))
|
||||
{
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, DomesticLawsRegulations.AttachUrl);//删除附件
|
||||
}
|
||||
|
||||
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, domesticLawsRegulationsId, Const.HJGLServer_DomesticLawsRegulationsMenuId);//删除附件
|
||||
db.HJGL_FileControl_DomesticLawsRegulations.DeleteOnSubmit(DomesticLawsRegulations);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 国内现行相关标准规范
|
||||
/// </summary>
|
||||
public static class HJGL_FileControl_DomesticStandardsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取国内现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="DomesticStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FileControl_DomesticStandards GetDomesticStandardsById(string DomesticStandardsId)
|
||||
{
|
||||
return Funs.DB.HJGL_FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == DomesticStandardsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加国内现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="DomesticStandards"></param>
|
||||
public static void AddDomesticStandards(Model.HJGL_FileControl_DomesticStandards DomesticStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticStandards newDomesticStandards = new Model.HJGL_FileControl_DomesticStandards();
|
||||
newDomesticStandards.DomesticStandardsId = DomesticStandards.DomesticStandardsId;
|
||||
newDomesticStandards.DomesticStandardsCode = DomesticStandards.DomesticStandardsCode;
|
||||
newDomesticStandards.DomesticStandardsName = DomesticStandards.DomesticStandardsName;
|
||||
newDomesticStandards.Summary = DomesticStandards.Summary;
|
||||
newDomesticStandards.CompileDate = DomesticStandards.CompileDate;
|
||||
newDomesticStandards.AttachUrl = DomesticStandards.AttachUrl;
|
||||
newDomesticStandards.CompileMan = DomesticStandards.CompileMan;
|
||||
newDomesticStandards.CompileDate = DomesticStandards.CompileDate;
|
||||
newDomesticStandards.Remarks = DomesticStandards.Remarks;
|
||||
db.HJGL_FileControl_DomesticStandards.InsertOnSubmit(newDomesticStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改国内现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="DomesticStandards"></param>
|
||||
public static void UpdateDomesticStandards(Model.HJGL_FileControl_DomesticStandards DomesticStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticStandards newDomesticStandards = db.HJGL_FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == DomesticStandards.DomesticStandardsId);
|
||||
if (newDomesticStandards != null)
|
||||
{
|
||||
newDomesticStandards.DomesticStandardsCode = DomesticStandards.DomesticStandardsCode;
|
||||
newDomesticStandards.DomesticStandardsName = DomesticStandards.DomesticStandardsName;
|
||||
newDomesticStandards.Summary = DomesticStandards.Summary;
|
||||
newDomesticStandards.CompileDate = DomesticStandards.CompileDate;
|
||||
newDomesticStandards.AttachUrl = DomesticStandards.AttachUrl;
|
||||
newDomesticStandards.CompileMan = DomesticStandards.CompileMan;
|
||||
newDomesticStandards.CompileDate = DomesticStandards.CompileDate;
|
||||
newDomesticStandards.Remarks = DomesticStandards.Remarks;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除国内现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="DomesticStandardsId"></param>
|
||||
public static void DeleteDomesticStandardsById(string DomesticStandardsId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_DomesticStandards DomesticStandards = db.HJGL_FileControl_DomesticStandards.FirstOrDefault(e => e.DomesticStandardsId == DomesticStandardsId);
|
||||
if (DomesticStandards != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(DomesticStandards.AttachUrl))
|
||||
{
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, DomesticStandards.AttachUrl);//删除附件
|
||||
}
|
||||
|
||||
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, DomesticStandardsId, Const.HJGLServer_DomesticStandardsMenuId);//删除附件
|
||||
db.HJGL_FileControl_DomesticStandards.DeleteOnSubmit(DomesticStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 国外现行相关标准规范
|
||||
/// </summary>
|
||||
public static class HJGL_FileControl_ForeignStandardsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取国外现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="ForeignStandardsId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FileControl_ForeignStandards GetForeignStandardsById(string ForeignStandardsId)
|
||||
{
|
||||
return Funs.DB.HJGL_FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == ForeignStandardsId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加国外现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="ForeignStandards"></param>
|
||||
public static void AddForeignStandards(Model.HJGL_FileControl_ForeignStandards ForeignStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_ForeignStandards newForeignStandards = new Model.HJGL_FileControl_ForeignStandards();
|
||||
newForeignStandards.ForeignStandardsId = ForeignStandards.ForeignStandardsId;
|
||||
newForeignStandards.ForeignStandardsCode = ForeignStandards.ForeignStandardsCode;
|
||||
newForeignStandards.ForeignStandardsName = ForeignStandards.ForeignStandardsName;
|
||||
newForeignStandards.Summary = ForeignStandards.Summary;
|
||||
newForeignStandards.CompileDate = ForeignStandards.CompileDate;
|
||||
newForeignStandards.AttachUrl = ForeignStandards.AttachUrl;
|
||||
newForeignStandards.CompileMan = ForeignStandards.CompileMan;
|
||||
newForeignStandards.CompileDate = ForeignStandards.CompileDate;
|
||||
newForeignStandards.Remarks = ForeignStandards.Remarks;
|
||||
db.HJGL_FileControl_ForeignStandards.InsertOnSubmit(newForeignStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改国外现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="ForeignStandards"></param>
|
||||
public static void UpdateForeignStandards(Model.HJGL_FileControl_ForeignStandards ForeignStandards)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_ForeignStandards newForeignStandards = db.HJGL_FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == ForeignStandards.ForeignStandardsId);
|
||||
if (newForeignStandards != null)
|
||||
{
|
||||
newForeignStandards.ForeignStandardsCode = ForeignStandards.ForeignStandardsCode;
|
||||
newForeignStandards.ForeignStandardsName = ForeignStandards.ForeignStandardsName;
|
||||
newForeignStandards.Summary = ForeignStandards.Summary;
|
||||
newForeignStandards.CompileDate = ForeignStandards.CompileDate;
|
||||
newForeignStandards.AttachUrl = ForeignStandards.AttachUrl;
|
||||
newForeignStandards.CompileMan = ForeignStandards.CompileMan;
|
||||
newForeignStandards.CompileDate = ForeignStandards.CompileDate;
|
||||
newForeignStandards.Remarks = ForeignStandards.Remarks;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除国外现行相关标准规范
|
||||
/// </summary>
|
||||
/// <param name="ForeignStandardsId"></param>
|
||||
public static void DeleteForeignStandardsById(string ForeignStandardsId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FileControl_ForeignStandards ForeignStandards = db.HJGL_FileControl_ForeignStandards.FirstOrDefault(e => e.ForeignStandardsId == ForeignStandardsId);
|
||||
if (ForeignStandards != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ForeignStandards.AttachUrl))
|
||||
{
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, ForeignStandards.AttachUrl);//删除附件
|
||||
}
|
||||
|
||||
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, ForeignStandardsId, Const.HJGLServer_ForeignStandardsMenuId);//删除附件
|
||||
db.HJGL_FileControl_ForeignStandards.DeleteOnSubmit(ForeignStandards);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user