Commit 631269b8 by guanzhenshan

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

parent 341fee17
...@@ -5979,27 +5979,28 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -5979,27 +5979,28 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var amount = row["金额"].ToString(); var amount = row["金额"].ToString();
var note_one = row["备注1"].ToString(); var note_one = row["备注1"].ToString();
var note_two = row["备注2"].ToString(); var note_two = row["备注2"].ToString();
list.Add(new dc_month_sale_profit_details {
type = type,
amount = decimal.Parse(amount),
note_one = note_one,
note_two = note_two,
month = month,
colval = col,
colname = colname
});
if (type != "" && amount != "")
{
list.Add(new dc_month_sale_profit_details
{
type = type,
amount = decimal.Parse(amount),
note_one = note_one,
note_two = note_two,
month = month,
colval = col,
colname = colname
});
}
} }
catch (Exception ex) catch (Exception ex)
{ {
return Json(new return Json(new
{ {
success = false, 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