数据库变更CNPC_XJYJ
This commit is contained in:
@@ -17,7 +17,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.ConstructSolutionItem getConstructSolutionByConstructSolutionId(string constructSolutionId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getInfo = from x in db.Solution_ConstructSolution
|
||||
where x.ConstructSolutionId == constructSolutionId
|
||||
@@ -56,7 +56,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.ConstructSolutionItem> getConstructSolutionList(string projectId, string unitId, string strParam, string states)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getConstructSolution = from x in db.Solution_ConstructSolution
|
||||
where x.ProjectId == projectId && (x.UnitId == unitId || unitId == null)
|
||||
@@ -96,7 +96,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static void SaveConstructSolution(Model.ConstructSolutionItem newItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Solution_ConstructSolution newConstructSolution = new Model.Solution_ConstructSolution
|
||||
{
|
||||
ConstructSolutionId = newItem.ConstructSolutionId,
|
||||
|
||||
Reference in New Issue
Block a user