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.txtMonthReportCode.Text = data.MonthReportCode; this.txtMonthReportDate.Text = data.MonthReportDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.MonthReportDate) : ""; 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 = "下月开车计划要点(" + Convert.ToDateTime(this.txtMonthReportDate.Text).AddMonths(1).Month + "月份)"; } } #endregion } }