1
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class HseCostCService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -16,6 +16,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.Manager_HseCostC
|
||||
where x.MonthReportId == monthReportId
|
||||
orderby x.UnitId
|
||||
@@ -77,6 +78,7 @@ namespace BLL
|
||||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteHseCostsByMonthReportId(string monthReportId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Manager_HseCostC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_HseCostC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user