修改进度录入
This commit is contained in:
parent
205b67e05e
commit
479f1d9d44
|
@ -465,8 +465,24 @@ namespace FineUIPro.Web.JDGL.WBS
|
||||||
Model.WBS_CnProfession cnProfession = BLL.CnProfessionService.GetCnProfessionByCnProfessionId(unitProject.CnProfessionId);
|
Model.WBS_CnProfession cnProfession = BLL.CnProfessionService.GetCnProfessionByCnProfessionId(unitProject.CnProfessionId);
|
||||||
if (cnProfession != null)
|
if (cnProfession != null)
|
||||||
{
|
{
|
||||||
cnProfession.IsSelected = e.Checked;
|
if (e.Checked == false)
|
||||||
cnProfession.IsApprove = e.Checked;
|
{
|
||||||
|
var selectedUnitProject = Funs.DB.Wbs_UnitProject.FirstOrDefault(x => x.CnProfessionId == cnProfession.CnProfessionId && x.IsSelected == true);
|
||||||
|
if (selectedUnitProject != null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cnProfession.IsSelected = e.Checked;
|
||||||
|
cnProfession.IsApprove = e.Checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cnProfession.IsSelected = e.Checked;
|
||||||
|
cnProfession.IsApprove = e.Checked;
|
||||||
|
}
|
||||||
BLL.CnProfessionService.UpdateCnProfession(cnProfession);
|
BLL.CnProfessionService.UpdateCnProfession(cnProfession);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue