数据库变更CNPC_XJYJ
This commit is contained in:
@@ -5,7 +5,7 @@ namespace BLL
|
||||
{
|
||||
public class HSSEStandardsListService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据id查询标准规范信息
|
||||
@@ -129,7 +129,7 @@ namespace BLL
|
||||
/// <param name="lawRegulationList"></param>
|
||||
public static void UpdateHSSEStandardsListIsPass(Model.Law_HSSEStandardsList standardsList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_HSSEStandardsList newHSSEStandardsList = db.Law_HSSEStandardsList.FirstOrDefault(e => e.StandardId == standardsList.StandardId);
|
||||
if (newHSSEStandardsList != null)
|
||||
{
|
||||
@@ -183,7 +183,7 @@ namespace BLL
|
||||
/// <param name="EDU_ID"></param>
|
||||
public static void DeleteHSSEStandardsList(string standardId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_HSSEStandardsList hSSEStandardsList = db.Law_HSSEStandardsList.FirstOrDefault(e => e.StandardId == standardId);
|
||||
if (hSSEStandardsList != null)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class LawRegulationListService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取法律法规
|
||||
@@ -48,7 +48,7 @@ namespace BLL
|
||||
/// <param name="lawRegulationList"></param>
|
||||
public static void AddLawRegulationList(Model.Law_LawRegulationList lawRegulationList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_LawRegulationList newLawRegulationList = new Model.Law_LawRegulationList
|
||||
{
|
||||
LawRegulationId = lawRegulationList.LawRegulationId,
|
||||
@@ -76,7 +76,7 @@ namespace BLL
|
||||
/// <param name="lawRegulationList"></param>
|
||||
public static void UpdateLawRegulationList(Model.Law_LawRegulationList lawRegulationList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_LawRegulationList newLawRegulationList = db.Law_LawRegulationList.FirstOrDefault(e => e.LawRegulationId == lawRegulationList.LawRegulationId);
|
||||
if (newLawRegulationList != null)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ namespace BLL
|
||||
/// <param name="lawRegulationList"></param>
|
||||
public static void UpdateLawRegulationListIsPass(Model.Law_LawRegulationList lawRegulationList)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_LawRegulationList newLawRegulationList = db.Law_LawRegulationList.FirstOrDefault(e => e.LawRegulationId == lawRegulationList.LawRegulationId);
|
||||
if (newLawRegulationList != null)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace BLL
|
||||
/// <param name="lawRegulationId"></param>
|
||||
public static void DeleteLawRegulationListById(string lawRegulationId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_LawRegulationList lawRegulationList = db.Law_LawRegulationList.FirstOrDefault(e => e.LawRegulationId == lawRegulationId);
|
||||
if (lawRegulationList!=null)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ManageRuleService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取管理规定
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="manageRule"></param>
|
||||
public static void AddManageRule(Model.Law_ManageRule manageRule)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_ManageRule newManageRule = new Model.Law_ManageRule
|
||||
{
|
||||
ManageRuleId = manageRule.ManageRuleId,
|
||||
@@ -65,7 +65,7 @@ namespace BLL
|
||||
/// <param name="manageRule"></param>
|
||||
public static void UpdateManageRule(Model.Law_ManageRule manageRule)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_ManageRule newManageRule = db.Law_ManageRule.FirstOrDefault(e => e.ManageRuleId == manageRule.ManageRuleId);
|
||||
if (newManageRule != null)
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace BLL
|
||||
/// <param name="manageRule"></param>
|
||||
public static void UpdateManageRuleIsPass(Model.Law_ManageRule manageRule)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_ManageRule newManageRule = db.Law_ManageRule.FirstOrDefault(e => e.ManageRuleId == manageRule.ManageRuleId);
|
||||
if (newManageRule!=null)
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace BLL
|
||||
/// <param name="manageRuleId"></param>
|
||||
public static void DeleteManageRuleById(string manageRuleId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_ManageRule manageRule = db.Law_ManageRule.FirstOrDefault(e => e.ManageRuleId == manageRuleId);
|
||||
if (manageRule != null)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class RulesRegulationsService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取生产规章制度
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="rulesRegulations"></param>
|
||||
public static void AddRulesRegulations(Model.Law_RulesRegulations rulesRegulations)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_RulesRegulations newRuleRegulations = new Model.Law_RulesRegulations
|
||||
{
|
||||
RulesRegulationsId = rulesRegulations.RulesRegulationsId,
|
||||
@@ -65,7 +65,7 @@ namespace BLL
|
||||
/// <param name="rulesRegulations"></param>
|
||||
public static void UpdateRulesRegulations(Model.Law_RulesRegulations rulesRegulations)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_RulesRegulations newRuleRegulations = db.Law_RulesRegulations.FirstOrDefault(e => e.RulesRegulationsId == rulesRegulations.RulesRegulationsId);
|
||||
if (newRuleRegulations != null)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace BLL
|
||||
/// <param name="rulesRegulations"></param>
|
||||
public static void UpdateRulesRegulationsIsPass(Model.Law_RulesRegulations rulesRegulations)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_RulesRegulations newRuleRegulations = db.Law_RulesRegulations.FirstOrDefault(e => e.RulesRegulationsId == rulesRegulations.RulesRegulationsId);
|
||||
if (newRuleRegulations != null)
|
||||
{
|
||||
@@ -104,7 +104,7 @@ namespace BLL
|
||||
/// <param name="ruleRegulationsId"></param>
|
||||
public static void DeleteRuleRegulationsById(string ruleRegulationsId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Law_RulesRegulations rulesRegulations = db.Law_RulesRegulations.FirstOrDefault(e => e.RulesRegulationsId == ruleRegulationsId);
|
||||
if (rulesRegulations != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user