修改质量验收穿透数据统计

This commit is contained in:
2023-07-21 14:51:05 +08:00
parent 500cb73a84
commit df904cd642
41 changed files with 774 additions and 73 deletions
@@ -73,6 +73,7 @@ namespace FineUIPro.Web.CQMS.WBS
if (!IsPostBack)
{
WorkPackageCode = Request.Params["Id"];
Funs.FineUIPleaseSelect(this.drpSubItemType);
if (Request.Params["type"] == "add")
{
List<String> codelist = null;
@@ -130,6 +131,10 @@ namespace FineUIPro.Web.CQMS.WBS
{
this.drpIsChild.SelectedValue = "False";
}
if (!string.IsNullOrEmpty(workPackageProject.SubItemType))
{
this.drpSubItemType.SelectedValue = workPackageProject.SubItemType;
}
SuperWorkPack = workPackageProject.SuperWorkPack;
}
}
@@ -140,6 +145,11 @@ namespace FineUIPro.Web.CQMS.WBS
{
if (BLL.CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.ControlItemProjectSetMenuId, BLL.Const.BtnSave))
{
if (this.drpSubItemType.SelectedValue == BLL.Const._Null)
{
ShowNotify("请选择分部分项类型!", MessageBoxIcon.Warning);
return;
}
if (!BLL.WorkPackageProjectService.IsExistWorkPackageProjectName(this.SuperWorkPack, this.txtWorkPackageName.Text.Trim(), this.txtWorkPackageCode.Text.Trim(), this.CurrUser.LoginProjectId))
{
Model.WBS_WorkPackageProject newWorkPackage = new Model.WBS_WorkPackageProject();
@@ -147,6 +157,7 @@ namespace FineUIPro.Web.CQMS.WBS
newWorkPackage.ProjectId = this.CurrUser.LoginProjectId;
newWorkPackage.PackageContent = this.txtWorkPackageName.Text.Trim();
newWorkPackage.SuperWorkPack = SuperWorkPack;
newWorkPackage.SubItemType = this.drpSubItemType.SelectedValue;
newWorkPackage.IsChild = Convert.ToBoolean(this.drpIsChild.SelectedValue.Trim());
newWorkPackage.ProjectType = ProjectType;
if (Request.Params["type"] == "add")