diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEdit.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEdit.aspx.cs index 4d41321f..ae94bb1a 100644 --- a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEdit.aspx.cs @@ -361,6 +361,8 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControl costControl = BLL.CostControlService.GetCostControlByCostControlId(costControlId); if (costControl != null) { + decimal oldPlanPrice = costControl.PlanPrice ?? 0; + decimal oldRealPrice = costControl.RealPrice ?? 0; string totalNum = values.Value("TotalNum"); string planPrice = values.Value("PlanPrice"); string realPrice = values.Value("RealPrice"); @@ -381,9 +383,9 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControlDetail costControlDetail = BLL.CostControlDetailService.GetCostControlDetailByCostControlIdAndMonths(costControlId, months[j]); if (costControlDetail != null) { - oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); - oldThisRealCost = (costControlDetail.ThisNum ?? 0) * (costControl.RealPrice ?? 0); - oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * (costControl.PlanPrice ?? 0); + oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * oldPlanPrice; + oldThisRealCost = (costControlDetail.ThisNum ?? 0) * oldRealPrice; + oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * oldPlanPrice; costControlDetail.PlanNum = Funs.GetNewDecimalOrZero(planNum); costControlDetail.ThisNum = Funs.GetNewDecimalOrZero(thisNum); thisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx.cs index 0dce77fa..9152e0e7 100644 --- a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx.cs +++ b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputEditAll.aspx.cs @@ -174,6 +174,7 @@ namespace FineUIPro.Web.JDGL.WBS where x.ProjectId == this.CurrUser.LoginProjectId select x; foreach (JObject mergedRow in Grid1.GetMergedData()) + //foreach (JObject mergedRow in Grid1.GetModifiedData()) { JObject values = mergedRow.Value("values"); int i = mergedRow.Value("index"); @@ -182,6 +183,8 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControl costControl = oldViewInfos.FirstOrDefault(x => x.CostControlId == this.Grid1.Rows[i].DataKeys[2].ToString()); if (costControl != null) { + decimal oldPlanPrice = costControl.PlanPrice ?? 0; + decimal oldRealPrice = costControl.RealPrice ?? 0; string costControlId = costControl.CostControlId; string totalNum = values.Value("TotalNum"); string planPrice = values.Value("PlanPrice"); @@ -211,9 +214,9 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControlDetail costControlDetail = BLL.CostControlDetailService.GetCostControlDetailByCostControlIdAndMonths(costControlId, months[j]); if (costControlDetail != null) { - oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); - oldThisRealCost = (costControlDetail.ThisNum ?? 0) * (costControl.RealPrice ?? 0); - oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * (costControl.PlanPrice ?? 0); + oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * oldPlanPrice; + oldThisRealCost = (costControlDetail.ThisNum ?? 0) * oldRealPrice; + oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * oldPlanPrice; costControlDetail.PlanNum = Funs.GetNewDecimalOrZero(planNum); costControlDetail.ThisNum = Funs.GetNewDecimalOrZero(thisNum); thisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); diff --git a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputIn.aspx.cs b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputIn.aspx.cs index 552800af..5f0eff3c 100644 --- a/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputIn.aspx.cs +++ b/SGGL/FineUIPro.Web/JDGL/WBS/WorkloadInputIn.aspx.cs @@ -337,7 +337,7 @@ namespace FineUIPro.Web.JDGL.WBS { result += "第" + (i + 2).ToString() + "行," + "实际开始时间" + "," + "[" + row + "]格式错误!" + "|"; } - else if (j == 8) + else if (j == 8) { result += "第" + (i + 2).ToString() + "行," + "实际完成时间" + "," + "[" + row + "]格式错误!" + "|"; } @@ -480,6 +480,8 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControl costControl = oldViewInfos.FirstOrDefault(x => x.CostControlId == pds.Rows[i][Cols - 1].ToString()); if (costControl != null) { + decimal oldPlanPrice = costControl.PlanPrice ?? 0; + decimal oldRealPrice = costControl.RealPrice ?? 0; costControl.TotalNum = Funs.GetNewDecimal(pds.Rows[i][2].ToString().Trim()); costControl.PlanPrice = Funs.GetNewDecimal(pds.Rows[i][3].ToString().Trim()); costControl.RealPrice = Funs.GetNewDecimal(pds.Rows[i][4].ToString().Trim()); @@ -501,9 +503,9 @@ namespace FineUIPro.Web.JDGL.WBS Model.WBS_CostControlDetail costControlDetail = BLL.CostControlDetailService.GetCostControlDetailByCostControlIdAndMonths(costControl.CostControlId, months[j]); if (costControlDetail != null) { - oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); - oldThisRealCost = (costControlDetail.ThisNum ?? 0) * (costControl.RealPrice ?? 0); - oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * (costControl.PlanPrice ?? 0); + oldThisPlanValue = (costControlDetail.PlanNum ?? 0) * oldPlanPrice; + oldThisRealCost = (costControlDetail.ThisNum ?? 0) * oldRealPrice; + oldThisPlanCost = (costControlDetail.ThisNum ?? 0) * oldPlanPrice; costControlDetail.PlanNum = Funs.GetNewDecimalOrZero(planNum); costControlDetail.ThisNum = Funs.GetNewDecimalOrZero(thisNum); thisPlanValue = (costControlDetail.PlanNum ?? 0) * (costControl.PlanPrice ?? 0); diff --git a/SGGL/SgManager.AI/SgManager.AI.csproj b/SGGL/SgManager.AI/SgManager.AI.csproj index b8835614..3f8eebc9 100644 --- a/SGGL/SgManager.AI/SgManager.AI.csproj +++ b/SGGL/SgManager.AI/SgManager.AI.csproj @@ -31,16 +31,15 @@ 4 - - False - ..\FineUIPro\Reference BLL\AipSdk.dll + + ..\packages\Baidu.AI.4.15.9\lib\net45\AipSdk.dll - + + False bin\Debug\AOP.Common.dll - - False - ..\packages\Newtonsoft.Json.12.0.1\lib\net40\Newtonsoft.Json.dll + + ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll @@ -73,6 +72,12 @@ + + + + + +