提交代码
This commit is contained in:
@@ -354,11 +354,10 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static ReturnData PushProjectHJGLData()
|
||||
{
|
||||
var db1 = Funs.DB;
|
||||
var items = (from x in db1.Project_HJGLData_HJGL
|
||||
var items = (from x in Funs.DB.Project_HJGLData_HJGL
|
||||
where x.ReportDate == DateTime.Now.Date
|
||||
select x).ToList();
|
||||
var defectItems = (from x in db1.Project_HJGLData_Defect
|
||||
var defectItems = (from x in Funs.DB.Project_HJGLData_Defect
|
||||
where x.ReportDate == DateTime.Now.Date
|
||||
select x).ToList();
|
||||
Model.ReturnData responeData = new Model.ReturnData();
|
||||
@@ -376,8 +375,22 @@ namespace BLL
|
||||
responeData.message = "当前没有项目焊接数据";
|
||||
}
|
||||
return responeData;
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public static void DeleteProject_HJGLData_HJGLByDate(DateTime? reportDate)
|
||||
{
|
||||
using (var db = new SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var table = db.Project_HJGLData_HJGL.Where(x => x.ReportDate.Value.Date.CompareTo(reportDate.Value.Date) == 0);
|
||||
if (table != null)
|
||||
{
|
||||
db.Project_HJGLData_HJGL.DeleteAllOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user