数据库变更CNPC_XJYJ
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BLL
|
||||
/// <param name="specifications"></param>
|
||||
public static void AddUnitStore(Model.Weld_UnitStore unitStore)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Weld_UnitStore newUnitStore = new Model.Weld_UnitStore();
|
||||
newUnitStore.UnitStoreId = unitStore.UnitStoreId;
|
||||
newUnitStore.ProjectId = unitStore.ProjectId;
|
||||
@@ -46,7 +46,7 @@ namespace BLL
|
||||
/// <param name="unitStore"></param>
|
||||
public static void UpdateUnitStore(Model.Weld_UnitStore unitStore)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Weld_UnitStore newUnitStore = db.Weld_UnitStore.FirstOrDefault(e => e.UnitStoreId == unitStore.UnitStoreId);
|
||||
if (newUnitStore != null)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ namespace BLL
|
||||
/// <param name="unitStoreId"></param>
|
||||
public static void DeleteUnitStoreById(string unitStoreId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Weld_UnitStore delUnitStore = db.Weld_UnitStore.FirstOrDefault(e => e.UnitStoreId == unitStoreId);
|
||||
if (delUnitStore != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user