|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Infrastructure.Excel.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace Application.Shared.Dtos.Units.Imports
|
|
|
|
|
{
|
|
|
|
|
[TableDto(Name = "学校")]
|
|
|
|
|
[TableHeader(Title = "学校统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
|
|
|
|
|
public class School
|
|
|
|
|
{
|
|
|
|
|
[ExcelColumn(Name = "序号", Sort = 1)]
|
|
|
|
|
public int Index { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "单位名称", Sort = 2)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
|
|
|
|
|
public string Area { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
|
|
|
|
|
public string RegulatoryLevel { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "概况", Sort = 5)]
|
|
|
|
|
public SchoolSurvey Survey { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
|
|
|
|
|
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
|
|
|
|
|
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "经度", Sort = 8)]
|
|
|
|
|
public string Longitude { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "纬度", Sort = 9)]
|
|
|
|
|
public string Latitude { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[TableColumnDto]
|
|
|
|
|
public class SchoolSurvey
|
|
|
|
|
{
|
|
|
|
|
[ExcelColumn(Name = "类别(大学、中学、小学、幼儿园)", Sort = 1,Enums = new []{ "幼儿园", "小学", "中学", "大学"})]
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "学生人数 (人)", Sort = 2)]
|
|
|
|
|
public string StudentCount { get; set; }
|
|
|
|
|
public int StudentCountValue { get; set; }
|
|
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "建筑层数 (层)", Sort = 3)]
|
|
|
|
|
public string UsageNature { get; set; }
|
|
|
|
|
public string UsageNatureValue { get; set; }
|
|
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "建筑高度 (米)", Sort = 4)]
|
|
|
|
|
public string Height { get; set; }
|
|
|
|
|
public int HeightValue { get; set; }
|
|
|
|
|
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 5)]
|
|
|
|
|
public string Area { get; set; }
|
|
|
|
|
public double AreaValue { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|