using DS.Module.Core;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Code.Dtos
{
///
/// 对账模板详情返回
///
public class CheckBillTemplateInfoRes
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 对账模板名称
///
public string Name { get; set; }
///
/// 对账模板英文名称
///
public string EnName { get; set; }
///
/// 录入时间
///
public DateTime CreateTime { get; set; }
///
/// 录入人Id
///
public long CreateBy { get; set; }
///
/// 录入人
///
public string CreateByName { get; set; }
///
/// 备注
///
public string Note { get; set; } = "";
///
/// 状态
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 模板明细
///
public List FeeList { get; set; }
///
/// 模板排序
///
public List SortList { get; set; }
}
///
/// 模板明细
///
public class CheckBillTemplateFeeRes
{
///
/// 主键Id
///
public long Id { get; set; }
public long TemplateId { get; set; }
///
/// 收付类型(收、付) 1应收 2 应付
///
public FeeType FeeType { get; set; }
///
/// 收付类型名
///
public string FeeTypeName
{
get { return FeeType == FeeType.Receivable ? "应收" : "应付"; }
}
///
/// 费用Id
///
public long FeeId { get; set; }
///
/// 费用名称
///
public string FeeName { get; set; }
///
/// 币别
///
public string Currency { get; set; }
}
///
/// 模板排序
///
public class CheckBillTemplateSortRes
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 模板Id
///
public long TemplateId { get; set; }
///
/// 排序字段
///
public string FieldName { get; set; }
///
/// 排序类型 0 升序 1降序
///
public ListSortDirection FieldSort { get; set; } = ListSortDirection.Ascending;
///
/// 收付类型名
///
public string FieldSortName
{
get { return FieldSort == ListSortDirection.Ascending ? "升序" : "降序"; }
}
///
/// 排序号
///
public int? OrderNo { get; set; } = 100;
}
}