提交代码

This commit is contained in:
2024-03-05 11:22:03 +08:00
parent d28f7920d8
commit 8e60ae5b65
44 changed files with 4374 additions and 2209 deletions
@@ -31,6 +31,24 @@ namespace FineUIPro.Web.TestRun.DriverRun
if (!IsPostBack)
{
BLL.UnitService.InitUnitDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
ListItem[] list1 = new ListItem[3];
list1[0]= new ListItem("未开始","1");
list1[1] = new ListItem("进行中", "2");
list1[2] = new ListItem("已完成", "3");
this.drpStatus.DataTextField = "Text";
this.drpStatus.DataValueField = "Value";
this.drpStatus.DataSource = list1;
this.drpStatus.DataBind();
Funs.FineUIPleaseSelect(this.drpStatus);
ListItem[] list2 = new ListItem[3];
list2[0] = new ListItem("低", "1");
list2[1] = new ListItem("中", "2");
list2[2] = new ListItem("高", "3");
this.drpPriority.DataTextField = "Text";
this.drpPriority.DataValueField = "Value";
this.drpPriority.DataSource = list2;
this.drpPriority.DataBind();
Funs.FineUIPleaseSelect(this.drpPriority);
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkIds, this.CurrUser.LoginProjectId, true);
plApprove1.Hidden = true;
plApprove2.Hidden = true;
@@ -63,6 +81,14 @@ namespace FineUIPro.Web.TestRun.DriverRun
{
this.txtRealCompletedDate.Text = string.Format("{0:yyyy-MM-dd}", data.RealCompletedDate);
}
if (!string.IsNullOrEmpty(data.Status))
{
this.drpStatus.SelectedValue = data.Status;
}
if (!string.IsNullOrEmpty(data.Priority))
{
this.drpPriority.SelectedValue = data.Priority;
}
if (!string.IsNullOrEmpty(data.State))
{
State = data.State;
@@ -167,6 +193,16 @@ namespace FineUIPro.Web.TestRun.DriverRun
Alert.ShowInTop("请选择区域!", MessageBoxIcon.Warning);
return;
}
if (this.drpStatus.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择实施状态!", MessageBoxIcon.Warning);
return;
}
if (this.drpPriority.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择优先级!", MessageBoxIcon.Warning);
return;
}
if (State == BLL.Const.DriverRun_Audit4 && string.IsNullOrEmpty(this.txtRealCompletedDate.Text.Trim()))
{
Alert.ShowInTop("请选择实际完成时间!", MessageBoxIcon.Warning);
@@ -189,6 +225,16 @@ namespace FineUIPro.Web.TestRun.DriverRun
Alert.ShowInTop("请选择区域!", MessageBoxIcon.Warning);
return;
}
if (this.drpStatus.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择实施状态!", MessageBoxIcon.Warning);
return;
}
if (this.drpPriority.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择优先级!", MessageBoxIcon.Warning);
return;
}
if (State == BLL.Const.DriverRun_Audit4 && string.IsNullOrEmpty(this.txtRealCompletedDate.Text.Trim()))
{
Alert.ShowInTop("请选择实际完成时间!", MessageBoxIcon.Warning);
@@ -227,6 +273,14 @@ namespace FineUIPro.Web.TestRun.DriverRun
}
newData.Descriptions = this.txtDescriptions.Text.Trim();
newData.Objective = this.txtObjective.Text.Trim();
if (this.drpStatus.SelectedValue != BLL.Const._Null)
{
newData.Status = this.drpStatus.SelectedValue;
}
if (this.drpPriority.SelectedValue != BLL.Const._Null)
{
newData.Priority = this.drpPriority.SelectedValue;
}
newData.NeedCompletedDate = Funs.GetNewDateTime(this.txtNeedCompletedDate.Text.Trim());
newData.ProjectId = this.CurrUser.LoginProjectId;
newData.RealCompletedDate = Funs.GetNewDateTime(this.txtRealCompletedDate.Text.Trim());