宁波既有建筑外墙脱落问卷调查
This commit is contained in:
96
20220330_Vote/Vote.Services/Dto/OutsideWallInput.cs
Normal file
96
20220330_Vote/Vote.Services/Dto/OutsideWallInput.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using Furion.DatabaseAccessor;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Vote.Services.Entities;
|
||||
|
||||
namespace Vote.Services.Dto
|
||||
{
|
||||
public class aaaaa
|
||||
{
|
||||
public string appid { get; set; }
|
||||
public OutsideWallInput wall { get; set; }
|
||||
public FormFileCollection file { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class OutsideWallInput
|
||||
{
|
||||
public string communityId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string communityName { get; set; }
|
||||
public string deliveryear { get; set; }
|
||||
public List<string> fileList { get; set; }
|
||||
public decimal buildcount { get; set; }
|
||||
public decimal householdcount { get; set; }
|
||||
public decimal totalfloorage { get; set; }
|
||||
public int isExistProblem { get; set; }
|
||||
public int problemismodify { get; set; }
|
||||
public string problemmodifyunitname { get; set; }
|
||||
public string problemmodifyisagain { get; set; }
|
||||
public string contract { get; set; }
|
||||
public List<SanjuBuilding> buildings { get; set; }
|
||||
}
|
||||
public class SanjuCommunity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string ID { get; set; }
|
||||
public string Code { get; set; }
|
||||
}
|
||||
public class SanjuBuilding
|
||||
{
|
||||
public string ID { get; set; }
|
||||
public string AreaName { get; set; }
|
||||
public string RoadName { get; set; }
|
||||
public string CompletedDate { get; set; }
|
||||
public string BuildingName { get; set; }
|
||||
public string Address { get; set; }
|
||||
public int LevelCount { get; set; }
|
||||
public int HouseHolds { get; set; }
|
||||
public string BuildingUnit { get; set; }
|
||||
public string DesingerUnit { get; set; }
|
||||
public string ConstructionUnit { get; set; }
|
||||
public string MonitorUnit { get; set; }
|
||||
public string WuYeUnit { get; set; }
|
||||
public decimal AreaCount { get; set; }
|
||||
public List<string> curwallproblems { get; set; } = new List<string>();
|
||||
public string curwallproblemother { get; set; }
|
||||
public string wallproblemsfirst { get; set; }
|
||||
public string firstproblemdate { get; set; }
|
||||
public string problemfrequency { get; set; }
|
||||
public List<string> problemseason { get; set; } = new List<string>();
|
||||
public List<string> wallproblemtoward { get; set; } = new List<string>();
|
||||
public List<ProblemToward> problemfiles { get; set; } = new List<ProblemToward>();
|
||||
//public List<string> problemfiles2 { get; set; }
|
||||
//public List<string> problemfiles3 { get; set; }
|
||||
//public List<string> problemfiles4 { get; set; }
|
||||
public string problemfanwei { get; set; }
|
||||
public List<string> problemheight { get; set; } = new List<string>();
|
||||
public List<string> diaoluowu { get; set; } = new List<string>();
|
||||
}
|
||||
public class ProblemToward
|
||||
{
|
||||
public string Toward { get; set; }
|
||||
public string file { get; set; }
|
||||
}
|
||||
public class Mapper : IRegister
|
||||
{
|
||||
public void Register(TypeAdapterConfig config)
|
||||
{
|
||||
config.ForType<SanjuBuilding, outside_wall_building>()
|
||||
.Map(dest => dest.curwallproblems, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.curwallproblems))
|
||||
.Map(dest => dest.problemseason, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemseason))
|
||||
.Map(dest => dest.wallproblemtoward, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.wallproblemtoward))
|
||||
//.Map(dest => dest.problemfiles, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemfiles))
|
||||
.Map(dest => dest.problemheight, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.problemheight))
|
||||
.Map(dest => dest.diaoluowu, src => Newtonsoft.Json.JsonConvert.SerializeObject(src.diaoluowu));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user