提交代码

This commit is contained in:
2023-12-20 15:48:05 +08:00
parent 2516cfbe69
commit f49eba5e5f
58 changed files with 8868 additions and 1411 deletions
@@ -28,6 +28,15 @@ namespace FineUIPro.Web.TestRun.TestRunManage
set { ViewState["WorkPackId"] = value; }
}
/// <summary>
/// 工作包名称
/// </summary>
public string WorkPackName
{
get { return (string)ViewState["WorkPackName"]; }
set { ViewState["WorkPackName"] = value; }
}
/// <summary>
/// 系统主键
/// </summary>
@@ -40,10 +49,10 @@ namespace FineUIPro.Web.TestRun.TestRunManage
/// <summary>
/// 分组主键
/// </summary>
public string GroupId
public string GroupName
{
get { return (string)ViewState["GroupId"]; }
set { ViewState["GroupId"] = value; }
get { return (string)ViewState["GroupName"]; }
set { ViewState["GroupName"] = value; }
}
/// <summary>
@@ -62,7 +71,7 @@ namespace FineUIPro.Web.TestRun.TestRunManage
this.TermItemId = Request.Params["TermItemId"];
this.WorkPackId = Request.Params["WorkPackId"];
this.SystemId = Request.Params["SystemId"];
this.GroupId = Request.Params["GroupId"];
this.GroupName = Request.Params["GroupName"];
this.WorkInspectName = Request.Params["WorkInspectName"];
PageInit();
}
@@ -73,22 +82,22 @@ namespace FineUIPro.Web.TestRun.TestRunManage
/// </summary>
public void PageInit()
{
//绑定分组
var groups = Funs.DB.TestRun_TemplateItemGroup.OrderBy(x => x.Sort).ToList();
ddlGroup.DataTextField = "GroupName";
ddlGroup.DataValueField = "GroupId";
ddlGroup.DataSource = groups;
ddlGroup.DataBind();
if (!string.IsNullOrWhiteSpace(this.TermItemId))
{
txtWorkInspectName.Text = this.WorkInspectName;
ddlGroup.SelectedValue = this.GroupId;
ddlGroup.SelectedValue = this.GroupName;
this.WorkPackName = this.GroupName;
}
var model = Funs.DB.TestRun_WorkPackage.FirstOrDefault(x => x.WorkPackId == this.WorkPackId);
if (model != null)
{
this.WorkPackName = model.WorkPackName;
lblgzbmc.Text = model.WorkPackName;
}
if (this.WorkPackName.Trim() == "联动试车")
{
group.Hidden = false;
}
}
/// <summary>
@@ -98,8 +107,17 @@ namespace FineUIPro.Web.TestRun.TestRunManage
{
try
{
var groupmodel = Funs.DB.TestRun_TemplateItemGroup.FirstOrDefault(x => x.GroupId == ddlGroup.SelectedValue);
var requestStr = this.TermItemId + "|" + this.WorkPackId + "|" + this.SystemId + "|" + this.txtWorkInspectName.Text + "|" + this.ddlGroup.SelectedValue + "|" + this.ddlGroup.SelectedText + "|" + groupmodel.Sort;
string groupName = string.Empty;
if (this.WorkPackName.Trim() == "联动试车")
{
groupName = this.ddlGroup.SelectedValue;
}
else
{
groupName = this.WorkPackName;
}
var requestStr = this.TermItemId + "|" + this.WorkPackId + "|" + this.SystemId + "|" + this.txtWorkInspectName.Text + "|" + groupName;
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(requestStr) + ActiveWindow.GetHidePostBackReference());
}
catch (Exception ex)