-
Notifications
You must be signed in to change notification settings - Fork 1
/
Front_ScoreInfo_Details.aspx.cs
executable file
·41 lines (40 loc) · 1.36 KB
/
Front_ScoreInfo_Details.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace shuangyulin.Front
{
public partial class Front_ScoreInfo_Details : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["scoreId"] != null)
{
LoadData();
}
}
}
/*如果是需要对记录进行编辑需要在界面初始化显示数据*/
private void LoadData()
{
if (!string.IsNullOrEmpty(Common.GetMes.GetRequestQuery(Request, "scoreId")))
{
ENTITY.ScoreInfo scoreInfo = BLL.bllScoreInfo.getSomeScoreInfo(Convert.ToInt32(Common.GetMes.GetRequestQuery(Request, "scoreId")));
studentNumber.Text = BLL.bllStudent.getSomeStudent(scoreInfo.studentNumber).studentName;
courseNumber.Text = BLL.bllCourseInfo.getSomeCourseInfo(scoreInfo.courseNumber).courseName;
scoreValue.Text = scoreInfo.scoreValue.ToString("0.00");
studentEvaluate.Text = scoreInfo.studentEvaluate;
}
}
}
}