数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ProjectAccidentCauseReportItemService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 职工伤亡事故原因分析报表明细表
|
||||
@@ -28,7 +28,7 @@ namespace BLL
|
||||
/// <param name="AccidentCauseReportItem">职工伤亡事故原因分析报表明细表实体</param>
|
||||
public static void AddAccidentCauseReportItem(Model.InformationProject_AccidentCauseReportItem AccidentCauseReportItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InformationProject_AccidentCauseReportItem newAccidentCauseReportItem = new Model.InformationProject_AccidentCauseReportItem
|
||||
{
|
||||
AccidentCauseReportItemId = AccidentCauseReportItem.AccidentCauseReportItemId,
|
||||
@@ -82,7 +82,7 @@ namespace BLL
|
||||
/// <param name="AccidentCauseReportItem">职工伤亡事故原因分析报表明细表实体</param>
|
||||
public static void UpdateAccidentCauseReportItem(Model.InformationProject_AccidentCauseReportItem AccidentCauseReportItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InformationProject_AccidentCauseReportItem newAccidentCauseReportItem = db.InformationProject_AccidentCauseReportItem.FirstOrDefault(e => e.AccidentCauseReportItemId == AccidentCauseReportItem.AccidentCauseReportItemId);
|
||||
newAccidentCauseReportItem.AccidentType = AccidentCauseReportItem.AccidentType;
|
||||
newAccidentCauseReportItem.TotalDeath = AccidentCauseReportItem.TotalDeath;
|
||||
@@ -131,7 +131,7 @@ namespace BLL
|
||||
/// <param name="AccidentCauseReportItemId"></param>
|
||||
public static void DeleteAccidentCauseReportItemByAccidentCauseReportId(string AccidentCauseReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = from x in db.InformationProject_AccidentCauseReportItem where x.AccidentCauseReportId == AccidentCauseReportId select x;
|
||||
if (q != null)
|
||||
{
|
||||
@@ -147,7 +147,7 @@ namespace BLL
|
||||
/// <returns>明细记录集合</returns>
|
||||
public static List<Model.InformationProject_AccidentCauseReportItem> GetItemsNoSum(string AccidentCauseReportId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
return (from x in db.InformationProject_AccidentCauseReportItem
|
||||
join y in db.Sys_Const on x.AccidentType equals y.ConstText
|
||||
|
||||
Reference in New Issue
Block a user