增加公司平均工效统计
This commit is contained in:
+13
-2
@@ -82,6 +82,9 @@ namespace FineUIPro.Web.PZHGL.InformationProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
orderby x.ContractNum
|
||||
select x).ToList();
|
||||
var workEfficiencyProjects = from x in db.ZHGL_ConstructionLogWorkEfficiencyProject
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
select x;
|
||||
DataTable table = new DataTable();
|
||||
table.Columns.Add(new DataColumn("Id", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("Code", typeof(String)));
|
||||
@@ -146,7 +149,11 @@ namespace FineUIPro.Web.PZHGL.InformationProject
|
||||
row[1] = a;
|
||||
row[2] = person.WorkPostName;
|
||||
row[3] = person.UnitOfMeasurement;
|
||||
|
||||
var workEfficiencyProject = workEfficiencyProjects.FirstOrDefault(x=> x.TypeId == person.TypeId && x.UnitOfMeasurement == person.UnitOfMeasurement);
|
||||
if (workEfficiencyProject != null)
|
||||
{
|
||||
row[4] = workEfficiencyProject.BaseWorkEfficiency;
|
||||
}
|
||||
int b = 0;
|
||||
List<decimal> list = new List<decimal>();
|
||||
foreach (var contract in contracts)
|
||||
@@ -185,7 +192,11 @@ namespace FineUIPro.Web.PZHGL.InformationProject
|
||||
row[1] = a;
|
||||
row[2] = machine.SpecialEquipmentName;
|
||||
row[3] = machine.UnitOfMeasurement;
|
||||
|
||||
var workEfficiencyProject = workEfficiencyProjects.FirstOrDefault(x => x.TypeId == machine.TypeId && x.UnitOfMeasurement == machine.UnitOfMeasurement);
|
||||
if (workEfficiencyProject != null)
|
||||
{
|
||||
row[4] = workEfficiencyProject.BaseWorkEfficiency;
|
||||
}
|
||||
int b = 0;
|
||||
List<decimal> list = new List<decimal>();
|
||||
foreach (var contract in contracts)
|
||||
|
||||
Reference in New Issue
Block a user