生产单元表单添加类型字段
This commit is contained in:
parent
62c36967f3
commit
1ee90b9c40
@ -1,4 +1,5 @@
|
||||
using APT.Infrastructure.Core;
|
||||
using APT.BaseData.Domain.Enums;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@ -18,5 +19,11 @@ namespace APT.BaseData.Domain.Entities.FM
|
||||
|
||||
[Description("是否集团数据")]
|
||||
public Boolean JT_SYNC { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生产单元
|
||||
/// </summary>
|
||||
[Description("生产单元")]
|
||||
public PRODUCTIONEnum? PRODUCTION { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -654,4 +654,34 @@ namespace APT.BaseData.Domain.Enums
|
||||
[Description("API响应时间")]
|
||||
APITimeResponsenAPP = 601,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生产单元 选矿 10, 尾矿 20, 矿山 30, 地下矿 40,
|
||||
/// </summary>
|
||||
public enum PRODUCTIONEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 选矿
|
||||
/// </summary>
|
||||
[Description("选矿厂")]
|
||||
MineChoose = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 尾矿
|
||||
/// </summary>
|
||||
[Description("尾矿库")]
|
||||
Minelast = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 露天矿
|
||||
/// </summary>
|
||||
[Description("露天矿")]
|
||||
Mine = 30,
|
||||
|
||||
/// <summary>
|
||||
/// 地下矿
|
||||
/// </summary>
|
||||
[Description("地下矿")]
|
||||
MineUnderGround = 40,
|
||||
}
|
||||
}
|
||||
139655
APT.Data.Migrations/Migrations/20260518054753_wyw2026051801.Designer.cs
generated
Normal file
139655
APT.Data.Migrations/Migrations/20260518054753_wyw2026051801.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026051801 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PRODUCTION",
|
||||
table: "T_FM_USER_PRODUCTION_UNIT_SET",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PRODUCTION",
|
||||
table: "T_FM_USER_PRODUCTION_UNIT_SET");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -8313,6 +8313,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int?>("PRODUCTION")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user