Add usage to ProcessMap

This commit is contained in:
ngfrolov 2023-03-21 17:51:34 +05:00
parent 99687c495f
commit 14d8221917
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7
5 changed files with 7884 additions and 0 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudApp.Data.ProcessMap
{
@ -77,5 +78,15 @@ namespace AsbCloudApp.Data.ProcessMap
/// Плановая механическая скорость, м/ч
/// </summary>
public double RopPlan { get; set; }
/// <summary>
/// Плановый процент использования АКБ
/// </summary>
public double UsageSaub { get; set; }
/// <summary>
/// Плановый процент использования spin master
/// </summary>
public double UsageSpin { get; set; }
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,39 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_Usage_to_ProcessMap : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "usage_saub",
table: "t_process_map",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Плановый процент использования АКБ");
migrationBuilder.AddColumn<double>(
name: "usage_spin",
table: "t_process_map",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Плановый процент использования spin master");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "usage_saub",
table: "t_process_map");
migrationBuilder.DropColumn(
name: "usage_spin",
table: "t_process_map");
}
}
}

View File

@ -2025,6 +2025,16 @@ namespace AsbCloudDb.Migrations
.HasColumnName("top_drive_torque_plan")
.HasComment("Момент на ВСП, план");
b.Property<double>("UsageSaub")
.HasColumnType("double precision")
.HasColumnName("usage_saub")
.HasComment("Плановый процент использования АКБ");
b.Property<double>("UsageSpin")
.HasColumnType("double precision")
.HasColumnName("usage_spin")
.HasComment("Плановый процент использования spin master");
b.HasKey("Id");
b.HasIndex("IdWell");

View File

@ -67,6 +67,12 @@ namespace AsbCloudDb.Model
[Column("rop_plan"), Comment("Плановая механическая скорость, м/ч")]
public double RopPlan { get; set; }
[Column("usage_saub"), Comment("Плановый процент использования АКБ")]
public double UsageSaub { get; set; }
[Column("usage_spin"), Comment("Плановый процент использования spin master")]
public double UsageSpin { get; set; }
[JsonIgnore]
[ForeignKey(nameof(IdWell))]
public virtual Well Well { get; set; } = null!;