提交代码

This commit is contained in:
2024-06-06 16:00:57 +08:00
parent dd3f0cfafe
commit 1739e39d5b
13 changed files with 88 additions and 36 deletions
@@ -101,8 +101,9 @@ namespace FineUIPro.Web.TestRun.DriverReport
}
else
{
this.txtStartDate.Text = string.IsNullOrEmpty(Request.Params["startdate"]) ? string.Format("{0:yyyy-MM-dd}", DateTime.Now) : Request.Params["startdate"];
this.txtEndDate.Text = string.IsNullOrEmpty(Request.Params["enddate"]) ? string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(this.txtStartDate.Text).AddMonths(1).AddDays(-1)) : Request.Params["enddate"];
this.txtEndDate.Text = string.IsNullOrEmpty(Request.Params["enddate"]) ? (DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-25") : Request.Params["enddate"];
this.txtStartDate.Text = string.IsNullOrEmpty(Request.Params["startdate"]) ? string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(this.txtEndDate.Text.Trim()).AddMonths(-1).AddDays(1)) : Request.Params["startdate"];
//新增月报时填充上一条月报的项目概况内容
var report = BLL.TestRun_MonthReportService.GetReportByMaxDate(this.CurrUser.LoginProjectId);
if (report != null)
@@ -259,7 +260,7 @@ namespace FineUIPro.Web.TestRun.DriverReport
//newData.MonthReportDate = Funs.GetNewDateTime(this.txtStartDate.Text.Trim());
newData.SortId = this.txtPeriod.Text.Trim();
newData.StartDate = Funs.GetNewDateTime(this.txtStartDate.Text);
newData.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text);
newData.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text);
newData.ProjectId = this.CurrUser.LoginProjectId;
newData.ProjectOverview = this.txtProjectOverview.Text.Trim();
newData.ProjectBaseInfo = this.txtProjectBaseInfo.Text.Trim();