0513
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.Perfomance
|
||||
{
|
||||
@@ -16,7 +17,7 @@ namespace FineUIPro.Web.Perfomance
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
initContent();
|
||||
string perfomanceRecordId = Request.Params["PerfomanceRecordId"];
|
||||
if (!string.IsNullOrEmpty(perfomanceRecordId))
|
||||
{
|
||||
@@ -105,5 +106,139 @@ namespace FineUIPro.Web.Perfomance
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void initContent()
|
||||
{
|
||||
var contents = Funs.DB.Perfomance_PerfomanceContent.Where(x => x.PerfomanceType == 1).OrderBy(x => x.ShowIndex).ToList();
|
||||
int i = 1;
|
||||
foreach (var content in contents)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
row1.Hidden = false;
|
||||
txtValue_1.Text = content.PerfomanceValue;
|
||||
txtContent_1.Text = content.PerfomanceContent;
|
||||
txtScore_1.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 2:
|
||||
row2.Hidden = false;
|
||||
txtValue_2.Text = content.PerfomanceValue;
|
||||
txtContent_2.Text = content.PerfomanceContent;
|
||||
txtScore_2.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 3:
|
||||
row3.Hidden = false;
|
||||
txtValue_3.Text = content.PerfomanceValue;
|
||||
txtContent_3.Text = content.PerfomanceContent;
|
||||
txtScore_3.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 4:
|
||||
row4.Hidden = false;
|
||||
txtValue_4.Text = content.PerfomanceValue;
|
||||
txtContent_4.Text = content.PerfomanceContent;
|
||||
txtScore_4.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 5:
|
||||
row5.Hidden = false;
|
||||
txtValue_5.Text = content.PerfomanceValue;
|
||||
txtContent_5.Text = content.PerfomanceContent;
|
||||
txtScore_5.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 6:
|
||||
row6.Hidden = false;
|
||||
txtValue_6.Text = content.PerfomanceValue;
|
||||
txtContent_6.Text = content.PerfomanceContent;
|
||||
txtScore_6.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 7:
|
||||
row7.Hidden = false;
|
||||
txtValue_7.Text = content.PerfomanceValue;
|
||||
txtContent_7.Text = content.PerfomanceContent;
|
||||
txtScore_7.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 8:
|
||||
row8.Hidden = false;
|
||||
txtValue_8.Text = content.PerfomanceValue;
|
||||
txtContent_8.Text = content.PerfomanceContent;
|
||||
txtScore_8.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 9:
|
||||
row9.Hidden = false;
|
||||
txtValue_9.Text = content.PerfomanceValue;
|
||||
txtContent_9.Text = content.PerfomanceContent;
|
||||
txtScore_9.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 10:
|
||||
row10.Hidden = false;
|
||||
txtValue_10.Text = content.PerfomanceValue;
|
||||
txtContent_10.Text = content.PerfomanceContent;
|
||||
txtScore_10.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 11:
|
||||
row11.Hidden = false;
|
||||
txtValue_11.Text = content.PerfomanceValue;
|
||||
txtContent_11.Text = content.PerfomanceContent;
|
||||
txtScore_11.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 12:
|
||||
row12.Hidden = false;
|
||||
txtValue_12.Text = content.PerfomanceValue;
|
||||
txtContent_12.Text = content.PerfomanceContent;
|
||||
txtScore_12.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 13:
|
||||
row13.Hidden = false;
|
||||
txtValue_13.Text = content.PerfomanceValue;
|
||||
txtContent_13.Text = content.PerfomanceContent;
|
||||
txtScore_13.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 14:
|
||||
row14.Hidden = false;
|
||||
txtValue_14.Text = content.PerfomanceValue;
|
||||
txtContent_14.Text = content.PerfomanceContent;
|
||||
txtScore_14.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 15:
|
||||
row15.Hidden = false;
|
||||
txtValue_15.Text = content.PerfomanceValue;
|
||||
txtContent_15.Text = content.PerfomanceContent;
|
||||
txtScore_15.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 16:
|
||||
row16.Hidden = false;
|
||||
txtValue_16.Text = content.PerfomanceValue;
|
||||
txtContent_16.Text = content.PerfomanceContent;
|
||||
txtScore_16.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 17:
|
||||
row17.Hidden = false;
|
||||
txtValue_17.Text = content.PerfomanceValue;
|
||||
txtContent_17.Text = content.PerfomanceContent;
|
||||
txtScore_17.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 18:
|
||||
row18.Hidden = false;
|
||||
txtValue_18.Text = content.PerfomanceValue;
|
||||
txtContent_18.Text = content.PerfomanceContent;
|
||||
txtScore_18.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 19:
|
||||
row19.Hidden = false;
|
||||
txtValue_19.Text = content.PerfomanceValue;
|
||||
txtContent_19.Text = content.PerfomanceContent;
|
||||
txtScore_19.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
case 20:
|
||||
row20.Hidden = false;
|
||||
txtValue_20.Text = content.PerfomanceValue;
|
||||
txtContent_20.Text = content.PerfomanceContent;
|
||||
txtScore_20.MaxValue = double.Parse(content.PerfomanceValue);
|
||||
break;
|
||||
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user