using BBWY.Client.Models.APIModel.Response.PackTask;
using BBWY.Client.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BBWY.Client.Models.PackTask
{
public class ShopTotal :NotifyObject
{
private FeesItemResponse feesItemResponse;
public FeesItemResponse FeesItemResponse { get => feesItemResponse; set { Set(ref feesItemResponse, value); } }
private long id;
public long Id { get => id; set { Set(ref id, value); } }
private bool taskChecked;
public bool TaskChecked { get => taskChecked; set { Set(ref taskChecked, value); } }
public string TaskIdRemark { get; set; }
///
/// 任务id
///
public long TaskId { get; set; }
///
/// 完成打包时间日期
///
public DateTime? CreateTime { get; set; }
///
/// 是否结清
///
public Settle IsSettle { get; set; }
///
/// 部门
///
public string DepartmentName { get; set; }
///
/// 店铺
///
public string ShopName { get; set; }
///
/// 对接人
///
public string AcceptUserName { get; set; }
///
/// sku标题
///
public string SkuName { get; set; }
///
/// sku数量(任务数量)
///
public int SkuCount { get; set; }
///
/// 耗材费
///
public decimal ConsumableFees { get; set; }
///
/// 到货数量
///
public int? ArrivalQuantity { get; set; }
///
/// 打包费(原价)
///
public decimal PackFees { get; set; }
///
/// 折扣系数
///
public decimal? DiscountFactor { get; set; }
///
/// 打包费用折扣价
///
public decimal? PackDisCountFees { get; set; }
/////
///// 折扣类型
/////
//public FeesMode? FeesMode { get; set; }
///
/// 总费用
///
public decimal? AllFees { get; set; }
///
/// 工序类型名称
///
public string ProcessTypeName { get; set; }
///
/// 工序套餐名称
///
public string ProcessComboName { get; set; }
///
/// 工序套餐单价
///
public decimal ProcessComboPrice { get; set; }
///
/// 工序套餐任务量
///
public int ProcessComboTaskCount { get; set; }
///
/// 耗材服务数据
///
public List ConsumableList { get; set; }
// string title = "任务ID,日期,是否结清,所属部门,所属店铺,包装数量,收货数量,耗材总价,工序类型,工序套餐,工序单价,打包原价,打包折扣系数,打包折扣价,总收费";
public override string ToString()
{
string ConsumableStr = string.Empty;
if (ConsumableList != null && ConsumableList.Count > 0)
ConsumableStr = string.Join(",", ConsumableList.Select(x => $"{x.ItemName} {x.ItemPrice}*{x.ItemCount}"));
return $"{TaskId},{CreateTime?.ToString("MM-dd")},{IsSettle},{DepartmentName},{ShopName}" +
$",{SkuCount},{ArrivalQuantity},\"{ConsumableStr}\" ,{ConsumableFees},{ProcessTypeName},{ProcessComboName},{ProcessComboPrice},{PackFees},{DiscountFactor},{PackDisCountFees},{AllFees}";
}
}
public class ShopTotalResponse
{
///
///
///
public int TotalCount { get; set; }
public ShopTotal[] ShopTotals { get; set; }
///
/// 总打包费用
///
public decimal TotalPackDiscountFees { get; set; }
///
/// 总耗材费
///
public decimal TotalConsumableFees { get; set; }
}
}