feat:增加焊前管理,材料管理条码扫码接口,材料信息导入支持无炉批号/有炉批号 多种导入方式
This commit is contained in:
@@ -247,6 +247,12 @@ namespace BLL
|
||||
try
|
||||
{
|
||||
temeplateDtoIns = MiniExcel.Query<Tw_InputDataIn>(path, startCell: "A1").ToList();
|
||||
foreach (var item in temeplateDtoIns)
|
||||
{
|
||||
item.MaterialCode = item.MaterialCode.Trim();
|
||||
item.HeatNo = item.HeatNo.Trim();
|
||||
item.BatchNo = item.BatchNo.Trim();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -621,12 +627,12 @@ namespace BLL
|
||||
|
||||
private static string CleanImportText(string value)
|
||||
{
|
||||
return Convert.ToString(value).Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", "").Trim();
|
||||
return (value ?? string.Empty).Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", "").Trim();
|
||||
}
|
||||
|
||||
private static string CleanImportDateText(string value)
|
||||
{
|
||||
return Convert.ToString(value).Replace("\n", "").Replace("\t", " ").Replace("\r", "").Trim();
|
||||
return (value ?? string.Empty).Replace("\n", "").Replace("\t", " ").Replace("\r", "").Trim();
|
||||
}
|
||||
|
||||
private static bool TryParseImportDate(string value, out DateTime date)
|
||||
|
||||
Reference in New Issue
Block a user