// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
//
// SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
// 1.请不要删除和修改根目录下的LICENSE文件。
// 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
// 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
namespace SimpleAdmin.Application.Services.Statistics
{
///
/// 年度统计数据 DTO(对应前端 YearlyStatisticsDto)
///
public class YearlyStatisticsDto
{
/// 统计年份(如 "2025")
public string Year { get; set; }
/// 处方总花费(元)
public decimal TotalCost { get; set; }
/// 处方总数量(张)
public int TotalQty { get; set; }
/// 员工处方花费(元)
public decimal StaffCost { get; set; }
/// 家属处方花费(元)
public decimal FamilyCost { get; set; }
/// 员工处方数量(张)
public int StaffQty { get; set; }
/// 家属处方数量(张)
public int FamilyQty { get; set; }
/// 药材耗材花费(元)—— 当年所有入库药材总价
public decimal MaterialCost { get; set; }
/// 服务人数(当年有过处方记录的不重复人员数)
public int ServiceCount { get; set; }
// ---------- 同比趋势(百分比,正数为增长,负数为下降) ----------
/// 处方总花费同比趋势 (%)
public decimal TotalCostTrend { get; set; }
/// 处方总数量同比趋势 (%)
public decimal TotalQtyTrend { get; set; }
/// 药材花费同比趋势 (%)
public decimal MaterialCostTrend { get; set; }
/// 服务人数同比趋势 (%)
public decimal ServiceCountTrend { get; set; }
}
///
/// 月度明细数据 DTO(对应前端 MonthlyDetailDto)
///
public class MonthlyDetailDto
{
/// 月份显示(如 "1月")
public string Month { get; set; }
/// 员工处方花费(元)
public decimal StaffCost { get; set; }
/// 家属处方花费(元)
public decimal FamilyCost { get; set; }
/// 员工处方数量(张)
public int StaffQty { get; set; }
/// 家属处方数量(张)
public int FamilyQty { get; set; }
/// 药材耗材花费(元)—— 当月入库总价
public decimal MaterialCost { get; set; }
}
///
/// 全量总览 DTO(不区分年份,含剩余药材价值)
///
public class TotalOverviewDto
{
/// 处方总花费(元,含所有年份)
public decimal TotalCost { get; set; }
/// 处方总数量(张)
public int TotalQty { get; set; }
/// 员工处方花费(元)
public decimal StaffCost { get; set; }
/// 家属处方花费(元)
public decimal FamilyCost { get; set; }
/// 员工处方数量(张)
public int StaffQty { get; set; }
/// 家属处方数量(张)
public int FamilyQty { get; set; }
/// 药材采购总花费(元,历史所有入库总额)
public decimal MaterialCost { get; set; }
/// 累计服务人数(不重复人员)
public int ServiceCount { get; set; }
/// 当前剩余药材库存价值(元,按最新入库单价估算)
public decimal RemainingMedicinalValue { get; set; }
}
}