mahao
1 year ago
17 changed files with 4336 additions and 69 deletions
@ -0,0 +1,40 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win.Sfs.SettleAccount |
|||
{ |
|||
/// <summary>
|
|||
/// 业务类别
|
|||
/// </summary>
|
|||
public enum EnumBusinessType |
|||
{ |
|||
/// <summary>
|
|||
///未定义
|
|||
/// </summary>
|
|||
[Display(Name = "未定义")] |
|||
None = 0, |
|||
|
|||
/// <summary>
|
|||
///直供件
|
|||
/// </summary>
|
|||
[Display(Name = "直供件")] |
|||
ZhiGongJian = 1, |
|||
|
|||
/// <summary>
|
|||
///买单件
|
|||
/// </summary>
|
|||
[Display(Name = "买单件")] |
|||
MaiDanJian = 2, |
|||
|
|||
/// <summary>
|
|||
///备件
|
|||
/// </summary>
|
|||
[Display(Name = "备件")] |
|||
BeiJian = 3, |
|||
|
|||
/// <summary>
|
|||
///印度件
|
|||
/// </summary>
|
|||
[Display(Name = "印度件")] |
|||
YingDuJian = 4 |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,181 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202307143 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_TB_RePartsRelationship", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_SE_DETAIL", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_NOT_SA_DETAIL", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_CAN_SA_DETAIL", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_CAN_SA", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_PriceList", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "BusinessType", |
|||
table: "Set_INVOICE_GRP", |
|||
type: "int", |
|||
maxLength: 50, |
|||
nullable: false, |
|||
defaultValue: 0, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(50)", |
|||
oldMaxLength: 50, |
|||
oldNullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_TB_RePartsRelationship", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_SE_DETAIL", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_PD_DETAIL", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PUB_CAN_SA", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_PriceList", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "BusinessType", |
|||
table: "Set_INVOICE_GRP", |
|||
type: "nvarchar(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int", |
|||
oldMaxLength: 50); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue