提交试车代码

This commit is contained in:
2023-11-06 11:16:46 +08:00
parent 5a130a619b
commit 0b84177640
30 changed files with 2021 additions and 146 deletions
@@ -78,6 +78,13 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
/// </summary>
public void BindGrid(int isPass = -1)
{
var term = Funs.DB.PreRun_SubInspectTerm.FirstOrDefault(x => x.SubInspectId == this.SubInspectId);
if (term != null)
{
lblIsUnifyWanderAbout.Text = term.IsUnifyWanderAbout == 1 ? "是" : "否";
lblUnifyWanderAboutData.Text = term.UnifyWanderAboutData != null ? term.UnifyWanderAboutData.Value.ToString("yyyy-MM-dd") : string.Empty;
unifyfile.Hidden = term.IsUnifyWanderAbout == 1 ? false : true;
}
//获取子系统
var data = new List<ConfirmIsPass>();
var list = Funs.DB.PreRun_SubInspectTermItem.Where(x => x.SubInspectId == this.SubInspectId).OrderBy(x => x.Sort).ToList();
@@ -119,7 +126,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
}
Grid1.DataSource = data;
Grid1.DataBind();
Grid1.Title = this.ConfirmType == 1 ? "分包商确认签字" : this.ConfirmType == 2 ? "承包商确认签字" : this.ConfirmType == 3 ? "监理确认签字" : this.ConfirmType == 4 ? "业主确认签字" : "";
titleName.Title = this.ConfirmType == 1 ? "分包商确认签字" : this.ConfirmType == 2 ? "承包商确认签字" : this.ConfirmType == 3 ? "监理确认签字" : this.ConfirmType == 4 ? "业主确认签字" : "";
}
/// <summary>
@@ -212,7 +219,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
else
{
subModel.ContractorIsAllPass = 0;
subModel.SubcontractorAllPassData = null;
subModel.ContractorAllPassData = null;
}
}
else if (this.ConfirmType == 3)
@@ -225,7 +232,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
else
{
subModel.SupervisionIsAllPass = 0;
subModel.SubcontractorAllPassData = null;
subModel.SupervisionAllPassData = null;
}
}
else if (this.ConfirmType == 4)
@@ -238,7 +245,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
else
{
subModel.OwnerIsAllPass = 0;
subModel.SubcontractorAllPassData = null;
subModel.OwnerAllPassData = null;
}
}
//判断是否全部通过
@@ -800,6 +807,14 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CheckControl&menuId={1}", $"{this.SubInspectId}_{this.ConfirmType}", Const.TestRunMenuId)));
}
/// <summary>
/// 统一流转通过附件查看
/// </summary>
protected void btnUnifyUpload_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CheckControl&menuId={1}", this.SubInspectId + "_unify", Const.TestRunMenuId)));
}
#endregion
#region
@@ -885,6 +900,5 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
}
#endregion
}
}