20240318 开车报告 总结
This commit is contained in:
@@ -15,7 +15,7 @@ namespace FineUIPro.Web.TestRun.DriverReport
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
|
||||
//BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
|
||||
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
@@ -24,15 +24,15 @@ namespace FineUIPro.Web.TestRun.DriverReport
|
||||
if (data != null)
|
||||
{
|
||||
this.hdId.Text = id;
|
||||
if (!string.IsNullOrEmpty(data.UnitWorkId))
|
||||
{
|
||||
this.drpUnitWorkId.SelectedValue = data.UnitWorkId;
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(data.UnitWorkId))
|
||||
//{
|
||||
// this.drpUnitWorkId.SelectedValue = data.UnitWorkId;
|
||||
//}
|
||||
this.txtDriverReportCode.Text = data.DriverReportCode;
|
||||
this.txtDriverReporName.Text = data.DriverReporName;
|
||||
this.txtCompilePerson.Text = BLL.UserService.GetUserNameByUserId(data.CompilePerson);
|
||||
this.txtSubmitDate.Text = data.SubmitDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.SubmitDate) : "";
|
||||
this.txtNumber.Text = data.Number;
|
||||
//this.txtNumber.Text = data.Number;
|
||||
this.txtRemark.Text = data.Remark;
|
||||
}
|
||||
}
|
||||
@@ -71,15 +71,15 @@ namespace FineUIPro.Web.TestRun.DriverReport
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
Model.Driver_DriverReport newData = new Model.Driver_DriverReport();
|
||||
if (this.drpUnitWorkId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newData.UnitWorkId = this.drpUnitWorkId.SelectedValue;
|
||||
}
|
||||
//if (this.drpUnitWorkId.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// newData.UnitWorkId = this.drpUnitWorkId.SelectedValue;
|
||||
//}
|
||||
newData.DriverReportCode = this.txtDriverReportCode.Text.Trim();
|
||||
newData.DriverReporName = this.txtDriverReporName.Text.Trim();
|
||||
newData.CompilePerson = this.CurrUser.UserId;
|
||||
newData.SubmitDate = Funs.GetNewDateTime(this.txtSubmitDate.Text.Trim());
|
||||
newData.Number = this.txtNumber.Text.Trim();
|
||||
//newData.Number = this.txtNumber.Text.Trim();
|
||||
newData.Remark = this.txtRemark.Text.Trim();
|
||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
|
||||
Reference in New Issue
Block a user