Commit 4440698b by 1391696987

手工录入粘贴数据缺少数据的话只展示缺少数据报错

parent ad1f7c6a
...@@ -1587,6 +1587,7 @@ public ApiResponse SaveGatherHands(int allotId, SaveGatherData saveGather) ...@@ -1587,6 +1587,7 @@ public ApiResponse SaveGatherHands(int allotId, SaveGatherData saveGather)
|| string.IsNullOrEmpty(newGather[i].PersonnelNumber) || string.IsNullOrEmpty(newGather[i].PersonnelNumber)
|| string.IsNullOrEmpty(newGather[i].DoctorName) || string.IsNullOrEmpty(newGather[i].DoctorName)
) )
{
error.Add(new Dictionary<string, string> error.Add(new Dictionary<string, string>
{ {
{ "行号", $"第{i+1}行" }, { "行号", $"第{i+1}行" },
...@@ -1597,6 +1598,9 @@ public ApiResponse SaveGatherHands(int allotId, SaveGatherData saveGather) ...@@ -1597,6 +1598,9 @@ public ApiResponse SaveGatherHands(int allotId, SaveGatherData saveGather)
{ "来源", "粘贴数据" }, { "来源", "粘贴数据" },
{ "错误原因", "关键信息缺失”请补全或删除" }, { "错误原因", "关键信息缺失”请补全或删除" },
}); });
break;
}
if (newGather[i].Fee == 0) if (newGather[i].Fee == 0)
error.Add(new Dictionary<string, string> error.Add(new Dictionary<string, string>
......
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