This commit is contained in:
geh
2025-05-07 09:17:16 +08:00
parent 73f0842b7c
commit 85cf9b1dac
3 changed files with 18 additions and 10 deletions
@@ -131,18 +131,19 @@ namespace FineUIPro.Web.HSSE.EduTrain
if (!string.IsNullOrEmpty(q.TestType))
{
this.rblTestType.SelectedValue = q.TestType;
this.lbScore.Text = q.Score.ToString();
if (q.TestType == "1")
{
this.lbScore.Text = SValue.ToString();
// this.lbScore.Text = SValue.ToString();
this.trE.Hidden = true;
}
else if (q.TestType == "2")
{
this.lbScore.Text = MValue.ToString();
// this.lbScore.Text = MValue.ToString();
}
else if (q.TestType == "3")
{
this.lbScore.Text = JValue.ToString();
// this.lbScore.Text = JValue.ToString();
this.trC.Hidden = true;
this.trD.Hidden = true;
this.trE.Hidden = true;
@@ -183,7 +184,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
else
{
this.lbScore.Text = SValue.ToString();
// this.lbScore.Text = SValue.ToString();
this.trE.Hidden = true;
}
}
@@ -241,6 +242,11 @@ namespace FineUIPro.Web.HSSE.EduTrain
AttachUrl = this.AttachUrl,
};
if (!string.IsNullOrEmpty(lbScore.Text.Trim()))
{
trainingItem.Score = int.Parse(lbScore.Text.Trim());
}
if (!string.IsNullOrEmpty(DropDownBox1.Text))
{
trainingItem.WorkPostIds = String.Join(",", DropDownBox1.Values);
@@ -370,16 +376,16 @@ namespace FineUIPro.Web.HSSE.EduTrain
if (testType == "1")
{
this.lbScore.Text = SValue.ToString();
// this.lbScore.Text = SValue.ToString();
this.trE.Hidden = true;
}
else if (testType == "2")
{
this.lbScore.Text = MValue.ToString();
// this.lbScore.Text = MValue.ToString();
}
else if (testType == "3")
{
this.lbScore.Text = JValue.ToString();
// this.lbScore.Text = JValue.ToString();
this.trC.Hidden = true;
this.trD.Hidden = true;
this.trE.Hidden = true;