add ข้อ 13
This commit is contained in:
@@ -56,32 +56,37 @@ namespace rmutr_report.Controllers
|
||||
|
||||
}
|
||||
|
||||
foreach (var bb in building_fours.material_construction_labor)
|
||||
foreach (var bb in building_fours.material_construction_labor1)
|
||||
{
|
||||
if (bb != null)
|
||||
{
|
||||
// var a = building_fours.material_construction_labor.Where(d => d.amount == d.amount)
|
||||
// .Sum(o => o.amount);
|
||||
// building_fours.material_amount = a;
|
||||
// var b = building_fours.material_construction_labor.Where(d => d.material_unit == d.material_unit)
|
||||
// .Sum(o => o.material_unit);
|
||||
// building_fours.material_unit = b;
|
||||
// var c = building_fours.material_construction_labor.Where(d => d.material_cost == d.material_cost)
|
||||
// .Sum(o => o.material_cost);
|
||||
// building_fours.material_cost = c;
|
||||
// var d = building_fours.material_construction_labor.Where(d => d.labor_unit == d.labor_unit)
|
||||
// .Sum(o => o.labor_unit);
|
||||
// building_fours.labor_unit = d;
|
||||
// var e = building_fours.material_construction_labor.Where(d => d.labor_cost == d.labor_cost)
|
||||
// .Sum(o => o.labor_cost);
|
||||
// building_fours.labor_cost = e;
|
||||
bb.total_amount = bb.material_cost + bb.labor_unit;
|
||||
var f = building_fours.material_construction_labor.Where(d => d.total_amount == d.total_amount)
|
||||
var f = building_fours.material_construction_labor1.Where(d => d.total_amount == d.total_amount)
|
||||
.Sum(o => o.total_amount);
|
||||
building_fours.material_total_amount = f;
|
||||
building_fours.material_total_amount1 = f;
|
||||
}
|
||||
|
||||
foreach (var cc in building_fours.budget_limit)
|
||||
}
|
||||
foreach (var bb in building_fours.material_construction_labor2)
|
||||
{
|
||||
if (bb != null)
|
||||
{
|
||||
bb.total_amount = bb.material_cost + bb.labor_unit;
|
||||
var f = building_fours.material_construction_labor2.Where(d => d.total_amount == d.total_amount)
|
||||
.Sum(o => o.total_amount);
|
||||
building_fours.material_total_amount2 = f;
|
||||
}
|
||||
}
|
||||
foreach (var bb in building_fours.material_construction_labor3)
|
||||
{
|
||||
if (bb != null)
|
||||
{
|
||||
bb.total_amount = bb.material_cost + bb.labor_unit;
|
||||
var f = building_fours.material_construction_labor3.Where(d => d.total_amount == d.total_amount)
|
||||
.Sum(o => o.total_amount);
|
||||
building_fours.material_total_amount3 = f;
|
||||
}
|
||||
}
|
||||
foreach (var cc in building_fours.budget_limit)
|
||||
{
|
||||
if (cc != null)
|
||||
{
|
||||
@@ -106,9 +111,6 @@ namespace rmutr_report.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
foreach (var boqPrice in building_fours.boq)
|
||||
{
|
||||
if (boqPrice.is_data == "1")
|
||||
|
||||
Reference in New Issue
Block a user