提交代码
This commit is contained in:
@@ -76,7 +76,8 @@ namespace BLL
|
|||||||
/// <param name="SpotCheckDetail"></param>
|
/// <param name="SpotCheckDetail"></param>
|
||||||
public static void UpdateSpotCheckDetail(Model.Check_SpotCheckDetail SpotCheckDetail)
|
public static void UpdateSpotCheckDetail(Model.Check_SpotCheckDetail SpotCheckDetail)
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.Check_SpotCheckDetail newSpotCheckDetail = db.Check_SpotCheckDetail.FirstOrDefault(e => e.SpotCheckDetailId == SpotCheckDetail.SpotCheckDetailId);
|
Model.Check_SpotCheckDetail newSpotCheckDetail = db.Check_SpotCheckDetail.FirstOrDefault(e => e.SpotCheckDetailId == SpotCheckDetail.SpotCheckDetailId);
|
||||||
if (newSpotCheckDetail != null)
|
if (newSpotCheckDetail != null)
|
||||||
{
|
{
|
||||||
@@ -96,6 +97,7 @@ namespace BLL
|
|||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据实体验收记录明细Id删除一个实体验收记录信息明细
|
/// 根据实体验收记录明细Id删除一个实体验收记录信息明细
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ namespace BLL
|
|||||||
/// <param name="SpotCheck"></param>
|
/// <param name="SpotCheck"></param>
|
||||||
public static void UpdateSpotCheck(Model.Check_SpotCheck SpotCheck)
|
public static void UpdateSpotCheck(Model.Check_SpotCheck SpotCheck)
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.Check_SpotCheck newSpotCheck = db.Check_SpotCheck.First(e => e.SpotCheckCode == SpotCheck.SpotCheckCode);
|
Model.Check_SpotCheck newSpotCheck = db.Check_SpotCheck.First(e => e.SpotCheckCode == SpotCheck.SpotCheckCode);
|
||||||
newSpotCheck.DocCode = SpotCheck.DocCode;
|
newSpotCheck.DocCode = SpotCheck.DocCode;
|
||||||
newSpotCheck.UnitId = SpotCheck.UnitId;
|
newSpotCheck.UnitId = SpotCheck.UnitId;
|
||||||
@@ -98,6 +99,7 @@ namespace BLL
|
|||||||
|
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据实体验收记录Id删除一个实体验收记录信息
|
/// 根据实体验收记录Id删除一个实体验收记录信息
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ namespace BLL
|
|||||||
/// <param name="ControlItemAndCycle"></param>
|
/// <param name="ControlItemAndCycle"></param>
|
||||||
public static void AddControlItemAndCycle(Model.WBS_ControlItemAndCycle ControlItemAndCycle)
|
public static void AddControlItemAndCycle(Model.WBS_ControlItemAndCycle ControlItemAndCycle)
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.WBS_ControlItemAndCycle newControlItemAndCycle = new Model.WBS_ControlItemAndCycle();
|
Model.WBS_ControlItemAndCycle newControlItemAndCycle = new Model.WBS_ControlItemAndCycle();
|
||||||
//string newKeyID = SQLHelper.GetNewID(typeof(Model.WBS_ControlItemAndCycle));
|
//string newKeyID = SQLHelper.GetNewID(typeof(Model.WBS_ControlItemAndCycle));
|
||||||
newControlItemAndCycle.ControlItemAndCycleId = ControlItemAndCycle.ControlItemAndCycleId;
|
newControlItemAndCycle.ControlItemAndCycleId = ControlItemAndCycle.ControlItemAndCycleId;
|
||||||
@@ -71,6 +72,7 @@ namespace BLL
|
|||||||
db.WBS_ControlItemAndCycle.InsertOnSubmit(newControlItemAndCycle);
|
db.WBS_ControlItemAndCycle.InsertOnSubmit(newControlItemAndCycle);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改工作包
|
/// 修改工作包
|
||||||
@@ -78,7 +80,8 @@ namespace BLL
|
|||||||
/// <param name="ControlItemAndCycle"></param>
|
/// <param name="ControlItemAndCycle"></param>
|
||||||
public static void UpdateControlItemAndCycle(Model.WBS_ControlItemAndCycle ControlItemAndCycle)
|
public static void UpdateControlItemAndCycle(Model.WBS_ControlItemAndCycle ControlItemAndCycle)
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||||
|
{
|
||||||
Model.WBS_ControlItemAndCycle newControlItemAndCycle = db.WBS_ControlItemAndCycle.First(e => e.ControlItemAndCycleId == ControlItemAndCycle.ControlItemAndCycleId);
|
Model.WBS_ControlItemAndCycle newControlItemAndCycle = db.WBS_ControlItemAndCycle.First(e => e.ControlItemAndCycleId == ControlItemAndCycle.ControlItemAndCycleId);
|
||||||
newControlItemAndCycle.ControlItemAndCycleCode = ControlItemAndCycle.ControlItemAndCycleCode;
|
newControlItemAndCycle.ControlItemAndCycleCode = ControlItemAndCycle.ControlItemAndCycleCode;
|
||||||
newControlItemAndCycle.WorkPackageId = ControlItemAndCycle.WorkPackageId;
|
newControlItemAndCycle.WorkPackageId = ControlItemAndCycle.WorkPackageId;
|
||||||
@@ -105,6 +108,7 @@ namespace BLL
|
|||||||
|
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据工作包Id删除一个工作包信息
|
/// 根据工作包Id删除一个工作包信息
|
||||||
|
|||||||
Reference in New Issue
Block a user