1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user