19 changed files with 28657 additions and 62 deletions
-
8src/Shentun.Peis.Application.Contracts/Asbitems/AsbitemDto.cs
-
2src/Shentun.Peis.Application/Asbitems/AsbitemAppService.cs
-
19src/Shentun.Peis.Application/ChargeReports/ChargeReportAppService.cs
-
2src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
-
2src/Shentun.Peis.Application/MedicalPackageDetails/MedicalPackageDetailAppService.cs
-
2src/Shentun.Peis.Application/SampleGroupDetails/SampleGroupDetailAppService.cs
-
24src/Shentun.Peis.Domain/Asbitems/Asbitem.cs
-
8src/Shentun.Peis.Domain/Asbitems/AsbitemEntity.cs
-
9src/Shentun.Peis.Domain/Asbitems/AsbitemManager.cs
-
63src/Shentun.Peis.Domain/CollectItemTypes/CollectItemType.cs
-
11src/Shentun.Peis.Domain/InvoiceItemTypes/InvoiceItemType.cs
-
12src/Shentun.Peis.Domain/InvoiceItemTypes/InvoiceItemTypeManager.cs
-
2src/Shentun.Peis.EntityFrameworkCore/CustomerOrgGroupDetails/CustomerOrgGroupDetailRepository.cs
-
8src/Shentun.Peis.EntityFrameworkCore/DbMapping/Asbitems/AsbitemDbMapping.cs
-
14136src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.Designer.cs
-
114src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.cs
-
14151src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.Designer.cs
-
35src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.cs
-
111src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
@ -0,0 +1,63 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
using Volo.Abp.Domain.Entities; |
|||
using System.ComponentModel.DataAnnotations.Schema; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Shentun.Peis.Models; |
|||
|
|||
namespace Shentun.Peis.CollectItemTypes |
|||
{ |
|||
/// <summary>
|
|||
/// 汇总项目类别
|
|||
/// </summary>
|
|||
[Table("collect_item_type")] |
|||
public class CollectItemType : AuditedEntity<Guid>, IDisplayName, IDisplayOrder, IHasConcurrencyStamp |
|||
{ |
|||
|
|||
public CollectItemType(Guid id) : base(id) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public CollectItemType() |
|||
{ |
|||
Asbitems = new HashSet<Asbitem>(); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 名称
|
|||
/// </summary>
|
|||
[Column("display_name")] |
|||
[StringLength(50)] |
|||
public string DisplayName { get; set; } |
|||
|
|||
[Column("simple_code")] |
|||
[StringLength(50)] |
|||
public string SimpleCode { get; set; } |
|||
|
|||
|
|||
[Column("display_order")] |
|||
public int DisplayOrder { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 发票项目类别ID
|
|||
/// </summary>
|
|||
[Column("invoice_item_type_id")] |
|||
public Guid InvoiceItemTypeId { get; set; } |
|||
|
|||
|
|||
[Column("concurrency_stamp")] |
|||
public string ConcurrencyStamp { get; set; } |
|||
|
|||
[ForeignKey(nameof(InvoiceItemTypeId))] |
|||
public virtual InvoiceItemType InvoiceItemType { get; set; } |
|||
|
|||
|
|||
[InverseProperty(nameof(Asbitem.CollectItemType))] |
|||
public virtual ICollection<Asbitem> Asbitems { get; set; } |
|||
} |
|||
} |
|||
14136
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112155_init20240502001.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,114 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240502001 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "fk_asbitem_invoice_item_type", |
|||
table: "asbitem"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_third_interface", |
|||
table: "third_interface"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_asbitem_invoice_item_type_id", |
|||
table: "asbitem"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "invoice_item_type_id", |
|||
table: "asbitem"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "collect_item_type_id", |
|||
table: "asbitem", |
|||
type: "uuid", |
|||
fixedLength: true, |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
comment: "汇总项目类别"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_third_interface", |
|||
table: "third_interface", |
|||
column: "id"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "collect_item_type", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
display_name = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true), |
|||
simple_code = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true), |
|||
display_order = table.Column<int>(type: "integer", nullable: false), |
|||
invoice_item_type_id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uuid", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uuid", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_collect_item_type", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_collect_item_type_invoice_item_type_invoice_item_type_id", |
|||
column: x => x.invoice_item_type_id, |
|||
principalTable: "invoice_item_type", |
|||
principalColumn: "id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_collect_item_type_invoice_item_type_id", |
|||
table: "collect_item_type", |
|||
column: "invoice_item_type_id"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "collect_item_type"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_third_interface", |
|||
table: "third_interface"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "collect_item_type_id", |
|||
table: "asbitem"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "invoice_item_type_id", |
|||
table: "asbitem", |
|||
type: "uuid", |
|||
fixedLength: true, |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
comment: "发票类别"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_third_interface", |
|||
table: "third_interface", |
|||
column: "medical_center_id"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_asbitem_invoice_item_type_id", |
|||
table: "asbitem", |
|||
column: "invoice_item_type_id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "fk_asbitem_invoice_item_type", |
|||
table: "asbitem", |
|||
column: "invoice_item_type_id", |
|||
principalTable: "invoice_item_type", |
|||
principalColumn: "id"); |
|||
} |
|||
} |
|||
} |
|||
14151
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240502112642_init20240502002.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,35 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240502002 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_asbitem_collect_item_type_id", |
|||
table: "asbitem", |
|||
column: "collect_item_type_id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "fk_asbitem_collect_item_type", |
|||
table: "asbitem", |
|||
column: "collect_item_type_id", |
|||
principalTable: "collect_item_type", |
|||
principalColumn: "Id"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "fk_asbitem_collect_item_type", |
|||
table: "asbitem"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_asbitem_collect_item_type_id", |
|||
table: "asbitem"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue