1221-002-gaofei

This commit is contained in:
gaofei
2021-12-21 16:10:02 +08:00
parent 6887e55225
commit 0bf6d1efd7
22 changed files with 1553 additions and 548 deletions
@@ -32,14 +32,14 @@ namespace FineUIPro.Web.JDGL.WBS
this.txtCostControlCode.Text = costControl.CostControlCode;
this.txtCostControlName.Text = costControl.CostControlName;
this.txtUnit.Text = costControl.Unit;
if (costControl.TotalNum != null)
{
this.txtTotalNum.Text = costControl.TotalNum.ToString();
}
if (costControl.RealPrice != null)
{
this.txtRealPrice.Text = costControl.RealPrice.ToString();
}
//if (costControl.TotalNum != null)
//{
// this.txtTotalNum.Text = costControl.TotalNum.ToString();
//}
//if (costControl.RealPrice != null)
//{
// this.txtRealPrice.Text = costControl.RealPrice.ToString();
//}
}
}
}
@@ -71,8 +71,9 @@ namespace FineUIPro.Web.JDGL.WBS
costControl.ProjectId = wbsSet.ProjectId;
costControl.WbsSetId = wbsSet.WbsSetId;
costControl.Unit = txtUnit.Text.Trim();
costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());
costControl.IsSelected = true;
//costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
//costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());
BLL.CostControlService.AddCostControl(costControl);
//增加对应关系内容
Model.WBS_WbsSetMatchCostControl wbsSetMatchCostControl = new WBS_WbsSetMatchCostControl();
@@ -99,8 +100,8 @@ namespace FineUIPro.Web.JDGL.WBS
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
costControl.Unit = txtUnit.Text.Trim();
costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());
//costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
//costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());
BLL.CostControlService.UpdateCostControl(costControl);
}
BLL.LogService.AddSys_Log(this.CurrUser, id, id, BLL.Const.WBSSetMenuId, "修改费用清单项!");