数据库变更CNPC_XJYJ
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public class HJGL_EMaterialRegistService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -101,7 +101,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_EMaterialRegist GetEMaterialRegistByID(string eMaterialRegistId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var eMaterialRegist = db.HJGL_EMaterialRegist.FirstOrDefault(e => e.EMaterialRegistId == eMaterialRegistId);
|
||||
return eMaterialRegist;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ namespace BLL
|
||||
/// <param name="eMaterialRegist"></param>
|
||||
public static void AddEMaterialRegist(Model.HJGL_EMaterialRegist eMaterialRegist)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_EMaterialRegist newEMaterialRegist = new Model.HJGL_EMaterialRegist();
|
||||
|
||||
newEMaterialRegist.EMaterialRegistId = eMaterialRegist.EMaterialRegistId;
|
||||
@@ -170,7 +170,7 @@ namespace BLL
|
||||
/// <param name="eMaterialRegist"></param>
|
||||
public static void UpdateEMaterialRegist(Model.HJGL_EMaterialRegist eMaterialRegist)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_EMaterialRegist newEMaterialRegist = db.HJGL_EMaterialRegist.First(e => e.EMaterialRegistId == eMaterialRegist.EMaterialRegistId);
|
||||
|
||||
newEMaterialRegist.EMaterialRegistCode = eMaterialRegist.EMaterialRegistCode;
|
||||
@@ -208,7 +208,7 @@ namespace BLL
|
||||
/// <param name="eMaterialRegistId"></param>
|
||||
public static void DeleteEMaterialRegist(string eMaterialRegistId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_EMaterialRegist eMaterialRegist = db.HJGL_EMaterialRegist.First(e => e.EMaterialRegistId == eMaterialRegistId);
|
||||
|
||||
db.HJGL_EMaterialRegist.DeleteOnSubmit(eMaterialRegist);
|
||||
@@ -221,7 +221,7 @@ namespace BLL
|
||||
/// <param name="item"></param>
|
||||
public static void AddEMaterialRegistItem(Model.HJGL_EMaterialRegistItem item)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_EMaterialRegistItem newItem = new Model.HJGL_EMaterialRegistItem();
|
||||
|
||||
newItem.EMaterialRegistItemId = item.EMaterialRegistItemId;
|
||||
@@ -244,7 +244,7 @@ namespace BLL
|
||||
/// <param name="eMaterialRegistId"></param>
|
||||
public static void DeleteEMaterialRegistItem(string projectId,string unitId, string eMaterialRegistId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var deleteItem = from x in db.HJGL_EMaterialRegistItem where x.EMaterialRegistId == eMaterialRegistId select x;
|
||||
/// 取到货明细 库存减去明细值
|
||||
|
||||
|
||||
Reference in New Issue
Block a user