using System;
namespace FineUIPro.Web.TestRun.DriverReport
{
public partial class MonthReportPushView : PageBase
{
#region 页面加载
///
/// 页面加载
///
///
///
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
{
Model.TestRun_MonthReport data = BLL.TestRun_MonthReportService.GetMonthReportById(id);
if (data != null)
{
this.hdId.Text = id;
this.txtStartDate.Text = data.StartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.StartDate) : "";
this.txtEndDate.Text = data.EndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.EndDate) : "";
this.txtMilestone.Text = data.Milestone;
this.txtCompleteWork.Text = data.CompleteWork;
this.txtProblemSituation.Text = data.ProblemSituation;
this.txtNextMonthMilestone.Text = data.NextMonthMilestone;
this.txtNextMonthCompleteWork.Text = data.NextMonthCompleteWork;
this.txtNextMonthSchedule.Text = data.NextMonthSchedule;
this.txtNextMonthDrivingCost.Text = data.NextMonthDrivingCost;
GroupPanel8.Title = "下月开车计划要点(" + data.EndDate.Value.AddMonths(1).Month + "月份)";
}
}
}
}
#endregion
}
}