Commit e2fbb4e6 by lizefeng

修复缺货明细导出异常

parent 71b59f1d
......@@ -180,14 +180,15 @@ namespace AutoTurnOver.Models.Report
{
var temp_sry = buy_str.Replace("【", "").Replace("】", "");
var buy_array = temp_sry.Split('|');// Trim()
var buy_array_length = buy_array.Count();
datas.Add(new buy_ontheway_detail_dto {
no = buy_array[0].Trim(),
count = int.Parse(buy_array[1].Trim()),
inbound = int.Parse(buy_array[2].Trim()),
arrival_date = DateTime.Parse(buy_array[3].Trim()),
supplier_name = buy_array[4].Trim(),
alibaba_order_id = buy_array[5].Trim(),
logistics_order_id = buy_array[6].Trim(),
supplier_name = buy_array_length < 5 ? "" : buy_array[4].Trim(),
alibaba_order_id = buy_array_length < 6 ? "" : buy_array[5].Trim(),
logistics_order_id = buy_array_length<7?"": buy_array[6].Trim(),
});
}
......
......@@ -515,7 +515,7 @@ namespace AutoTurnOver.Models
/// <summary>
/// 与dc_auto_config_promotion的id关联,以逗号分隔
/// </summary>
public string promotions { get; set; }
//public string promotions { get; set; }
/// <summary>
/// 供应商交期
......
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