【优化】导出订单信息里加产品编号,方便产品多的情况下,可以获取到订单的购买商品序列,去直接查询商品信息。
【优化】商品列表增加可按序列查询的筛选。
This commit is contained in:
@@ -230,6 +230,9 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
};
|
||||
//查询筛选
|
||||
|
||||
//商品序列
|
||||
var id = Request.Form["id"].FirstOrDefault().ObjectToInt(0);
|
||||
if (id > 0) @where = @where.And(p => p.id == id);
|
||||
//商品编码 nvarchar
|
||||
var bn = Request.Form["bn"].FirstOrDefault();
|
||||
if (!string.IsNullOrEmpty(bn)) @where = @where.And(p => p.bn.Contains(bn));
|
||||
|
||||
@@ -930,7 +930,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
items.Add(new CellValueItem() { name = "支付方式", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "支付时间", width = 20 });
|
||||
|
||||
items.Add(new CellValueItem() { name = "货品名称", width = 40 });
|
||||
items.Add(new CellValueItem() { name = "货品名称", width = 50 });
|
||||
items.Add(new CellValueItem() { name = "数量", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "单价", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "优惠", width = 12 });
|
||||
@@ -1021,7 +1021,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
rowTemp.CreateCell(10).SetCellValue(order.paymentTime.ToString());
|
||||
|
||||
|
||||
rowTemp.CreateCell(11).SetCellValue(!string.IsNullOrEmpty(t.addon) ? t.addon : t.name);
|
||||
rowTemp.CreateCell(11).SetCellValue(!string.IsNullOrEmpty(t.addon) ? "【" + t.goodsId + "】" + t.addon : "【" + t.goodsId + "】" + t.name);
|
||||
rowTemp.CreateCell(12).SetCellValue(t.nums);
|
||||
rowTemp.CreateCell(13).SetCellValue(t.price + "元");
|
||||
rowTemp.CreateCell(14).SetCellValue(t.promotionAmount + "元");
|
||||
@@ -1335,7 +1335,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
items.Add(new CellValueItem() { name = "支付方式", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "支付时间", width = 20 });
|
||||
|
||||
items.Add(new CellValueItem() { name = "货品名称", width = 40 });
|
||||
items.Add(new CellValueItem() { name = "货品名称", width = 50 });
|
||||
items.Add(new CellValueItem() { name = "数量", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "单价", width = 12 });
|
||||
items.Add(new CellValueItem() { name = "优惠", width = 12 });
|
||||
@@ -1426,7 +1426,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
rowTemp.CreateCell(10).SetCellValue(order.paymentTime.ToString());
|
||||
|
||||
|
||||
rowTemp.CreateCell(11).SetCellValue(!string.IsNullOrEmpty(t.addon) ? t.addon : t.name);
|
||||
rowTemp.CreateCell(11).SetCellValue(!string.IsNullOrEmpty(t.addon) ? "【" + t.goodsId + "】" + t.addon : "【" + t.goodsId + "】" + t.name);
|
||||
rowTemp.CreateCell(12).SetCellValue(t.nums);
|
||||
rowTemp.CreateCell(13).SetCellValue(t.price + "元");
|
||||
rowTemp.CreateCell(14).SetCellValue(t.promotionAmount + "元");
|
||||
|
||||
Reference in New Issue
Block a user