ibms-dome/Backend/Models/RescueDevice.cs

68 lines
1.7 KiB
C#
Raw Permalink Normal View History

2022-10-14 16:08:54 +08:00
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Backend.Models
{
public class RescueDevice
{
public string rescue_device_guid { get; set; }
public string rescue_device_id { get; set; }
public string floor_guid { get; set; }
public string floor_name { get; set; }
public string location { get; set; }
}
public class SaveFireExtinguisher
{
public string guid { get; set; }
public string location { get; set; }
}
public class RescueDeviceTableUse
{
public string build { get; set; }
public List<string> floors { get; set; }
public byte kind { get; set; }
}
public class ImportRescueDevice
{
public IFormFile import_file { get; set; }
public byte kind { get; set; }
public string building { get; set; }
}
public class RescueDeviceTable
{
public string rescue_device_guid { get; set; }
public string rescue_device_id { get; set; }
public string building_guid { get; set; }
public string floor_guid { get; set; }
public string floor_name { get; set; }
public string location { get; set; }
}
public class Excel
{
public string build { get; set; }
public byte kind { get; set; }
public string buildname { get; set; }
}
public class NpoiMemoryStream : MemoryStream
{
public NpoiMemoryStream()
{
AllowClose = true;
}
public bool AllowClose { get; set; }
public override void Close()
{
if (AllowClose)
base.Close();
}
}
}