using DS.Module.Core;
using DS.Module.UserModule;
using DS.WMS.Core.Op.Entity;
using SqlSugar;
namespace DS.WMS.Core.Fee.Dtos
{
///
/// 报表生成上下文
///
public class ReportContext
{
///
/// 服务提供程序
///
public IServiceProvider ServiceProvider { get; internal set; }
///
/// 获取主库访问对象
///
public ISqlSugarClient Db { get; internal set; }
///
/// 获取租户库访问对象
///
public ISqlSugarClient TenantDb { get; internal set; }
///
/// 请求用户
///
public IUser User { get; internal set; }
///
/// 操作结果,用于记录错误信息
///
public DataResult? ErrorResult { get; set; }
///
/// 业务类型
///
public BusinessType BusinessType { get; set; } = BusinessType.OceanShippingExport;
///
/// 业务ID
///
public long[] Ids { get; set; } = [];
}
}