Как создать файл Excel из комплекса json с объединением строк и ячеек - PullRequest
0 голосов
/ 09 марта 2020

ниже приведены примеры классов из тех, которые json созданы. Я хочу создать файл Excel из вложенного json. Как динамически дать диапазон для слияния ячеек и строк?

public class DetailReport
    {
        public string CompanyName { get; set; }
        public List<DetailCodeList> detailCodeLists { get; set; }
        public decimal? CompanyTotal { get; set; }
    }
public class DetailCodeList
    {
        public string CodeModifier { get; set; }
        public List<DetailCareworkerList> detailCareworkerLists { get; set; }
        public decimal? CodeModifierTotal { get; set; }
        public int CodeRowSpan { get; set; }
    }
public class DetailCareworkerList
    {
        public string CareworkerName { get; set; }
        public List<DetailPatientList> detailPatientLists { get; set; }
        public decimal? total { get; set; }
        public int CareRowSpan { get; set; }
    }
 public class DetailPatientList
    {
        public string PatientName { get; set; }
        public List<DetailReportList> detailReportLists { get; set; }
        public decimal? Total { get; set; }
        public int PatientRowSpan { get; set; }
    }
public class DetailReportList
    {
        public string AppointmentDate { get; set; }
        public int Unit { get; set; }
        public decimal? Rates { get; set; } 
    }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...