|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// 此代码由工具生成。
|
|
|
|
|
// 运行时版本:4.0.30319.42000
|
|
|
|
|
// Website: http://www.freesql.net
|
|
|
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
|
|
|
// 重新生成代码,这些更改将会丢失。
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using FreeSql.DataAnnotations;
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
namespace Txgy.EWS.Client.Models
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
public class postproeventresult
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "varchar(254)")]
|
|
|
|
|
public string EventTime { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "int")]
|
|
|
|
|
public int LocSta { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public double ML { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "int")]
|
|
|
|
|
public int MLSta { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "varchar(254)")]
|
|
|
|
|
public string OriginTime { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "int")]
|
|
|
|
|
public int PostEventID { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public double RMS { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty, Column(DbType = "int")]
|
|
|
|
|
public int WorkAreaID { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public double X { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public double Y { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
public double Z { get; set; }
|
|
|
|
|
[Column(IsIgnore = true)]
|
|
|
|
|
public double Energy { get; set; }
|
|
|
|
|
public void SetEnergy()
|
|
|
|
|
{
|
|
|
|
|
Energy = Math.Round(63000.0 * Math.Pow(10, 1.47 * ML), 2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|