进度管理增加设备材料分类

This commit is contained in:
2023-05-26 10:24:02 +08:00
parent 64cce0e5b6
commit ea1634cbc7
29 changed files with 1866 additions and 64 deletions
@@ -20,6 +20,7 @@ namespace FineUIPro.Web.JDGL.WBS
LoadData();
string id = Request.Params["Id"];
string operating = Request.Params["operating"];
BLL.EquipmentMaterialTypeService.InitEquipmentMaterialTypeDownList(this.drpEquipmentMaterialType,true);
if (operating == "add")
{
@@ -31,6 +32,10 @@ namespace FineUIPro.Web.JDGL.WBS
{
this.txtCostControlCode.Text = costControl.CostControlCode;
this.txtCostControlName.Text = costControl.CostControlName;
if (!string.IsNullOrEmpty(costControl.EquipmentMaterialTypeId))
{
this.drpEquipmentMaterialType.SelectedValue = costControl.EquipmentMaterialTypeId;
}
this.txtUnit.Text = costControl.Unit;
//if (costControl.TotalNum != null)
//{
@@ -68,6 +73,10 @@ namespace FineUIPro.Web.JDGL.WBS
Model.WBS_CostControl costControl = new WBS_CostControl();
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
{
costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
}
costControl.ProjectId = wbsSet.ProjectId;
costControl.WbsSetId = wbsSet.WbsSetId;
costControl.Unit = txtUnit.Text.Trim();
@@ -99,6 +108,10 @@ namespace FineUIPro.Web.JDGL.WBS
}
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
{
costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
}
costControl.Unit = txtUnit.Text.Trim();
//costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
//costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());