Commit b2065c69 by Neo Turing

优化

parent 170f4447
...@@ -888,7 +888,7 @@ namespace Kivii.Domain.Lac.Lims.Transforms ...@@ -888,7 +888,7 @@ namespace Kivii.Domain.Lac.Lims.Transforms
//获取当前报告信息 //获取当前报告信息
var report = connLims.SingleById<Report>(ReportKvid); var report = connLims.SingleById<Report>(ReportKvid);
report.ThrowIfNull("未找到对应报告!"); report.ThrowIfNull("未找到对应报告!");
if (report.StatusType != ReportStatusType.CommissionAccept) throw new Exception("当前报告不在委托受理,无法添加项目!"); if (report.StatusType > ReportStatusType.CommissionAccept) throw new Exception("当前报告不在委托受理,无法添加项目!");
//获取当前报告关联的样品集合 //获取当前报告关联的样品集合
var querySamples = connLims.From<Sample>(); var querySamples = connLims.From<Sample>();
querySamples.Where(o => o.RootKvid == report.SampleKvid); querySamples.Where(o => o.RootKvid == report.SampleKvid);
...@@ -1226,7 +1226,7 @@ namespace Kivii.Domain.Lac.Lims.Transforms ...@@ -1226,7 +1226,7 @@ namespace Kivii.Domain.Lac.Lims.Transforms
} }
//设置检验组信息 //设置检验组信息
if (detection.TestGroupFullName.IsNullOrEmpty() || detection.TestGroupKvid == Guid.Empty) if (detection.TestGroupFullName.IsNullOrEmpty())
{ {
reportItemParent.WorkGroupName = "暂未关联检验组"; reportItemParent.WorkGroupName = "暂未关联检验组";
reportItemParent.WorkGroupKvid = Guid.Empty; reportItemParent.WorkGroupKvid = Guid.Empty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment