数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class RowMaterialProblemService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取原材料问题
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="rowMaterialProblem"></param>
|
||||
public static void AddRowMaterialProblem(Model.Report_RowMaterialProblem rowMaterialProblem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Report_RowMaterialProblem newRowMaterialProblem = new Model.Report_RowMaterialProblem();
|
||||
newRowMaterialProblem.RowMaterialProblemId = rowMaterialProblem.RowMaterialProblemId;
|
||||
newRowMaterialProblem.ReportId = rowMaterialProblem.ReportId;
|
||||
@@ -57,7 +57,7 @@ namespace BLL
|
||||
/// <param name="reportId"></param>
|
||||
public static void DeleteRowMaterialProbleByReportId(string reportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Report_RowMaterialProblem where x.ReportId == reportId select x).ToList();
|
||||
if (q.Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user