Commit 631269b8 by guanzhenshan

解决月销售利润无法导入明细的问题

parent 341fee17
......@@ -5980,9 +5980,10 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var note_one = row["备注1"].ToString();
var note_two = row["备注2"].ToString();
list.Add(new dc_month_sale_profit_details {
if (type != "" && amount != "")
{
list.Add(new dc_month_sale_profit_details
{
type = type,
amount = decimal.Parse(amount),
note_one = note_one,
......@@ -5992,14 +5993,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
colval = col,
colname = colname
});
}
}
catch (Exception ex)
{
return Json(new
{
success = false,
msg = "导入失败,异常信息:" + ex.Message
msg = "导入失败,第"+(i+1)+"行报错,异常信息:" + ex.Message
});
}
}
......
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