namespace Oms.Application.Dtos.Finance; /// 供应商列表查询。 public class FinanceSupplierListInput { /// 关键词:编码/名称。 public string? Keyword { get; set; } /// 状态:1 停用 / 2 启用;空=全部。 public byte? Status { get; set; } public int Page { get; set; } = 1; public int PageSize { get; set; } = 50; } /// 供应商保存。 public class FinanceSupplierSaveInput { public int? Id { get; set; } /// 编码;新建必填。 public string SupplierCode { get; set; } = string.Empty; public string SupplierName { get; set; } = string.Empty; public string? ContactName { get; set; } public string? Phone { get; set; } public string? Email { get; set; } public string? BankAccountName { get; set; } public string? BankName { get; set; } public string? BankAccountNo { get; set; } public string? Currency { get; set; } /// 1 停用 / 2 启用。 public byte? Status { get; set; } public string? Remark { get; set; } } /// 供应商输出。 public class FinanceSupplierOutput { public int Id { get; set; } public string SupplierCode { get; set; } = string.Empty; public string SupplierName { get; set; } = string.Empty; public string? ContactName { get; set; } public string? Phone { get; set; } public string? Email { get; set; } public string? BankAccountName { get; set; } public string? BankName { get; set; } public string? BankAccountNo { get; set; } public string Currency { get; set; } = "CNY"; public byte Status { get; set; } public string? Remark { get; set; } public DateTime CreateTime { get; set; } public DateTime? UpdateTime { get; set; } } /// 供应商删除。 public class FinanceSupplierDeleteInput { public int Id { get; set; } } /// 公司账户列表查询。 public class FinanceCompanyAccountListInput { public string? Keyword { get; set; } public byte? Status { get; set; } public int Page { get; set; } = 1; public int PageSize { get; set; } = 50; } /// 公司账户保存。 public class FinanceCompanyAccountSaveInput { public int? Id { get; set; } public string AccountName { get; set; } = string.Empty; public string BankName { get; set; } = string.Empty; public string AccountNo { get; set; } = string.Empty; public string? Currency { get; set; } public bool IsDefault { get; set; } public byte? Status { get; set; } public string? Remark { get; set; } } /// 公司账户输出。 public class FinanceCompanyAccountOutput { public int Id { get; set; } public string AccountName { get; set; } = string.Empty; public string BankName { get; set; } = string.Empty; public string AccountNo { get; set; } = string.Empty; public string Currency { get; set; } = "CNY"; public bool IsDefault { get; set; } public byte Status { get; set; } public string? Remark { get; set; } public DateTime CreateTime { get; set; } public DateTime? UpdateTime { get; set; } } /// 公司账户删除。 public class FinanceCompanyAccountDeleteInput { public int Id { get; set; } }