提交代码
This commit is contained in:
@@ -40,6 +40,7 @@ namespace BLL
|
||||
newWorkPackage.RealStartDate = WorkPackage.RealStartDate;
|
||||
newWorkPackage.RealEndDate = WorkPackage.RealEndDate;
|
||||
newWorkPackage.Unit = WorkPackage.Unit;
|
||||
newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity;
|
||||
|
||||
db.WBS_WorkPackage.InsertOnSubmit(newWorkPackage);
|
||||
db.SubmitChanges();
|
||||
@@ -76,6 +77,7 @@ namespace BLL
|
||||
newWorkPackage.PlanCost = WorkPackage.PlanCost;
|
||||
newWorkPackage.JDWeights = WorkPackage.JDWeights;
|
||||
newWorkPackage.PreWorkCode = WorkPackage.PreWorkCode;
|
||||
newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
@@ -505,6 +507,7 @@ namespace BLL
|
||||
table.Columns.Add(new DataColumn("JDWeights", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("Unit", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("PlanProjectQuantity", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("DrawProjectQuantity", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("RealProjectQuantity", typeof(String)));
|
||||
table.Columns.Add(new DataColumn("PlanStartDate", typeof(DateTime)));
|
||||
table.Columns.Add(new DataColumn("PlanEndDate", typeof(DateTime)));
|
||||
@@ -551,30 +554,31 @@ namespace BLL
|
||||
row[6] = item.JDWeights;
|
||||
row[7] = item.Unit;
|
||||
row[8] = item.PlanProjectQuantity;
|
||||
row[9] = item.RealProjectQuantity;
|
||||
row[9] = item.DrawProjectQuantity;
|
||||
row[10] = item.RealProjectQuantity;
|
||||
if (item.PlanStartDate != null)
|
||||
{
|
||||
row[10] = item.PlanStartDate;
|
||||
row[11] = item.PlanStartDate;
|
||||
}
|
||||
if (item.PlanEndDate != null)
|
||||
{
|
||||
row[11] = item.PlanEndDate;
|
||||
row[12] = item.PlanEndDate;
|
||||
}
|
||||
if (item.RealStartDate != null)
|
||||
{
|
||||
row[12] = item.RealStartDate;
|
||||
row[13] = item.RealStartDate;
|
||||
}
|
||||
if (item.RealEndDate != null)
|
||||
{
|
||||
row[13] = item.RealEndDate;
|
||||
row[14] = item.RealEndDate;
|
||||
}
|
||||
if (item.IsMileStone != null)
|
||||
{
|
||||
row[14] = item.IsMileStone;
|
||||
row[15] = item.IsMileStone;
|
||||
}
|
||||
row[15] = item.PlanCost;
|
||||
row[16] = item.PreWorkCode;
|
||||
row[17] = item.Code;
|
||||
row[16] = item.PlanCost;
|
||||
row[17] = item.PreWorkCode;
|
||||
row[18] = item.Code;
|
||||
if (!string.IsNullOrEmpty(item.ShowId))
|
||||
{
|
||||
var details = getDetails.Where(x => x.WorkPackageId == item.Id).ToList();
|
||||
@@ -583,11 +587,11 @@ namespace BLL
|
||||
var index = months.FindIndex(x => x.Equals(item1.Months));
|
||||
if (item1.PlanNum != 0)
|
||||
{
|
||||
row[18 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2);
|
||||
row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2);
|
||||
}
|
||||
if (item1.ThisNum != 0)
|
||||
{
|
||||
row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2);
|
||||
row[20 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user