修改试车管理
This commit is contained in:
@@ -67,6 +67,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
num = Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == this.CurrUser.LoginProjectId && p.PreRunLevel == 2) + 1;
|
||||
txtRunCode.Text = string.Format("PA{0}", string.Format("{0:d2}", num));
|
||||
txtSort.Text = num.ToString();
|
||||
}
|
||||
txtRunName.Label = "工序名称";
|
||||
txtRunCode.Label = "工序编码";
|
||||
@@ -92,6 +93,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
num = Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == this.CurrUser.LoginProjectId && p.PreRunLevel == 3) + 1;
|
||||
txtRunCode.Text = string.Format("S{0}", string.Format("{0:d2}", num));
|
||||
txtSort.Text = num.ToString();
|
||||
}
|
||||
txtRunName.Label = "S系统名称";
|
||||
txtRunCode.Label = "S系统编码";
|
||||
@@ -123,6 +125,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
num = Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == this.CurrUser.LoginProjectId && p.PreRunLevel == 4) + 1;
|
||||
txtRunCode.Text = string.Format("SS{0}", string.Format("{0:d2}", num));
|
||||
txtSort.Text = num.ToString();
|
||||
}
|
||||
txtRunName.Label = "SS子系统名称";
|
||||
txtRunCode.Label = "SS子系统编码";
|
||||
@@ -138,6 +141,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
txtRunCode.Label = "装置编码";
|
||||
num = Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == this.CurrUser.LoginProjectId && p.PreRunLevel == 1) + 1;
|
||||
txtRunCode.Text = string.Format("P{0}", string.Format("{0:d2}", num));
|
||||
txtSort.Text = num.ToString();
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(this.RunId))
|
||||
@@ -148,6 +152,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
txtRunCode.Text = deviceModel.PreRunCode;
|
||||
txtRunName.Text = deviceModel.PreRunName;
|
||||
txtRemark.Text = deviceModel.Remark;
|
||||
txtSort.Text = deviceModel.Sort.ToString();
|
||||
|
||||
if (deviceModel.PreRunLevel == 1)
|
||||
{
|
||||
@@ -208,6 +213,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
model.InstallationId = oneModel.PreRunId;
|
||||
model.ParentId = oneModel.PreRunId;
|
||||
model.ProcessesId = model.PreRunId;
|
||||
model.PreRunLevel = 2;
|
||||
}
|
||||
var twoModel = parenLs.FirstOrDefault(p => p.PreRunLevel == 2);
|
||||
@@ -215,6 +221,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
{
|
||||
model.ProcessesId = twoModel.PreRunId;
|
||||
model.ParentId = twoModel.PreRunId;
|
||||
model.SystemId = model.PreRunId;
|
||||
model.PreRunLevel = 3;
|
||||
}
|
||||
var threeModel = parenLs.FirstOrDefault(p => p.PreRunLevel == 3);
|
||||
@@ -233,7 +240,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
}
|
||||
model.AddUser = CurrUser.Account;
|
||||
model.OperateTime = DateTime.Now;
|
||||
model.Sort = Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == CurrUser.LoginProjectId) + 1;
|
||||
model.Sort = !string.IsNullOrEmpty(txtSort.Text) ? int.Parse(txtSort.Text) : Funs.DB.PreRun_SysDevice.Count(p => p.ProjectId == CurrUser.LoginProjectId && p.PreRunLevel == model.PreRunLevel) + 1;
|
||||
model.PreRunCode = txtRunCode.Text;
|
||||
model.PreRunName = txtRunName.Text;
|
||||
model.Remark = txtRemark.Text;
|
||||
|
||||
Reference in New Issue
Block a user