15 changed files with 42914 additions and 47 deletions
-
43src/Shentun.Peis.Application.Contracts/MenuInfos/GetMyMenuInfoListDto.cs
-
1src/Shentun.Peis.Application.Contracts/MenuInfos/MenuInfoDto.cs
-
102src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
-
47src/Shentun.Peis.Application/MenuInfos/MenuInfoAppService.cs
-
2src/Shentun.Peis.Domain/L_JYTMXX_TJs/L_JYTMXX_TJ.cs
-
4src/Shentun.Peis.Domain/ReportFormatTemplates/ReportFormatTemplate.cs
-
2src/Shentun.Peis.Domain/ReportFormats/ReportFormat.cs
-
14089src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.Designer.cs
-
153src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.cs
-
14089src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.Designer.cs
-
36src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.cs
-
14089src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.Designer.cs
-
35src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.cs
-
259src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
-
8src/Shentun.Peis.HttpApi.Host/appsettings.json
@ -0,0 +1,43 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.MenuInfos |
||||
|
{ |
||||
|
public class GetMyMenuInfoListDto |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 名称
|
||||
|
/// </summary>
|
||||
|
public string DisplayName { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 路由地址
|
||||
|
/// </summary>
|
||||
|
public string? RouteUrl { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 菜单图标
|
||||
|
/// </summary>
|
||||
|
public string? IconName { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 父id
|
||||
|
/// </summary>
|
||||
|
public Guid? ParentId { get; set; } |
||||
|
|
||||
|
public int DisplayOrder { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 菜单类型 0 一级菜单 1 带路径的菜单 2 按钮
|
||||
|
/// </summary>
|
||||
|
public char MenuType { get; set; } |
||||
|
} |
||||
|
} |
||||
14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426142107_init20240426001.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,153 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240426001 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<Guid>( |
||||
|
name: "charge_request_id", |
||||
|
table: "register_check_asbitem", |
||||
|
type: "uuid", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "his_patient_id", |
||||
|
table: "patient_register", |
||||
|
type: "character varying(20)", |
||||
|
maxLength: 20, |
||||
|
nullable: true); |
||||
|
|
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "charge_request", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
id = table.Column<Guid>(type: "uuid", nullable: false, comment: "收据申请单号"), |
||||
|
patient_register_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "登记流水号"), |
||||
|
charge_request_no = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true), |
||||
|
his_charge_no = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true), |
||||
|
charge_request_flag = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "0"), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
||||
|
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_charge_request", x => x.id); |
||||
|
table.ForeignKey( |
||||
|
name: "FK_charge_request_patient_register_patient_register_id", |
||||
|
column: x => x.patient_register_id, |
||||
|
principalTable: "patient_register", |
||||
|
principalColumn: "id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}, |
||||
|
comment: "收费申请单主档"); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "third_interface", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"), |
||||
|
display_name = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, comment: "名称"), |
||||
|
third_interface_type = table.Column<string>(type: "character varying(2)", maxLength: 2, nullable: false, comment: "接口类型"), |
||||
|
parm_value = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true), |
||||
|
is_active = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, comment: "是否启用"), |
||||
|
display_order = table.Column<int>(type: "integer", nullable: false, comment: "显示顺序"), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
||||
|
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_third_interface", x => x.id); |
||||
|
}, |
||||
|
comment: "第三方接口表"); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "charge_request_asbitem", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
charge_request_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "收费申请单号"), |
||||
|
asbitem_id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "组合项目"), |
||||
|
charge_price = table.Column<decimal>(type: "numeric(10,2)", precision: 10, scale: 2, nullable: false, comment: "价格"), |
||||
|
amount = table.Column<short>(type: "smallint", nullable: false), |
||||
|
register_check_asbitem_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
is_charge = table.Column<char>(type: "character(1)", nullable: false), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
||||
|
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_charge_request_asbitem", x => x.id); |
||||
|
table.ForeignKey( |
||||
|
name: "fk_charge_request_asbitem_asbitem", |
||||
|
column: x => x.asbitem_id, |
||||
|
principalTable: "asbitem", |
||||
|
principalColumn: "id"); |
||||
|
table.ForeignKey( |
||||
|
name: "fk_charge_request_asbitem_charge", |
||||
|
column: x => x.charge_request_id, |
||||
|
principalTable: "charge_request", |
||||
|
principalColumn: "id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}, |
||||
|
comment: "收费申请包含组合项目"); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_charge_request_patient_register_id", |
||||
|
table: "charge_request", |
||||
|
column: "patient_register_id"); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_charge_request_asbitem_asbitem_id", |
||||
|
table: "charge_request_asbitem", |
||||
|
column: "asbitem_id"); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_charge_request_asbitem_charge_request_id", |
||||
|
table: "charge_request_asbitem", |
||||
|
column: "charge_request_id"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "charge_request_asbitem"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "third_interface"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "charge_request"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "charge_request_id", |
||||
|
table: "register_check_asbitem"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "his_patient_id", |
||||
|
table: "patient_register"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateOnly>( |
||||
|
name: "BRITHDAY", |
||||
|
table: "L_JYTMXX_TJ", |
||||
|
type: "date", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "timestamp without time zone"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426151955_init20240426002.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,36 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240426002 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "isDefault", |
||||
|
table: "report_format", |
||||
|
newName: "is_default"); |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "is_default", |
||||
|
table: "report_format", |
||||
|
newName: "isDefault"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "BRITHDAY", |
||||
|
table: "L_JYTMXX_TJ", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateOnly), |
||||
|
oldType: "date"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
14089
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240426153157_init20240426003.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 init20240426003 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "isSystem", |
||||
|
table: "report_format_template", |
||||
|
newName: "is_system"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "isDefault", |
||||
|
table: "report_format_template", |
||||
|
newName: "is_default"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "is_system", |
||||
|
table: "report_format_template", |
||||
|
newName: "isSystem"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "is_default", |
||||
|
table: "report_format_template", |
||||
|
newName: "isDefault"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue