14 changed files with 12105 additions and 33 deletions
-
18src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs
-
2src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs
-
2src/Shentun.Peis.Application/SysParmValues/SysParmValueAppService.cs
-
13src/Shentun.Peis.Domain/Models/Report.cs
-
16src/Shentun.Peis.Domain/Models/ReportFormat.cs
-
5src/Shentun.Peis.Domain/Models/ReportFormatTemplate.cs
-
5src/Shentun.Peis.Domain/Models/ReportPrinter.cs
-
2src/Shentun.Peis.Domain/PrintReports/PatientRegisterGuideReportDto.cs
-
33src/Shentun.Peis.Domain/SysParmValues/SysParmValueManager.cs
-
26src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
-
11572src/Shentun.Peis.EntityFrameworkCore/Migrations/20230817102124_i0817002.Designer.cs
-
140src/Shentun.Peis.EntityFrameworkCore/Migrations/20230817102124_i0817002.cs
-
279src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
-
25src/Shentun.Peis.EntityFrameworkCore/PrintReports/PatientRegisterGuideReportRepository.cs
11572
src/Shentun.Peis.EntityFrameworkCore/Migrations/20230817102124_i0817002.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,140 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class i0817002 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "report", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: false, comment: "主键Id"), |
|||
display_name = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true, comment: "报表名称"), |
|||
isActive = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValue: 'N', comment: "启用标志(N:禁用,Y:启用)"), |
|||
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false, defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)"), |
|||
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_report", x => x.Id); |
|||
}, |
|||
comment: "自定义报表主表"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "report_format", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: false, comment: "主键Id"), |
|||
display_name = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true, comment: "格式名称"), |
|||
isDefault = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValue: 'N', comment: "默认标志(N:不默认,Y:默认)"), |
|||
report_id = table.Column<string>(type: "character(16)", fixedLength: true, nullable: true, comment: "报表ID"), |
|||
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false, defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)"), |
|||
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_report_format", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "fk_reportformat_report_1", |
|||
column: x => x.report_id, |
|||
principalTable: "report", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}, |
|||
comment: "自定义报表格式表"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "report_printer", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: false, comment: "主键Id"), |
|||
pc_name = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true, comment: "计算机名称"), |
|||
printer_name = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true, comment: "打印机名称"), |
|||
report_id = table.Column<string>(type: "character varying(16)", nullable: true, comment: "报表ID"), |
|||
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false, defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)"), |
|||
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_report_printer", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "fk_reportprinter_report_1", |
|||
column: x => x.report_id, |
|||
principalTable: "report", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}, |
|||
comment: "自定义报表客户端打印机设置表"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "report_format_template", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<string>(type: "character varying(16)", maxLength: 16, nullable: false, comment: "主键Id"), |
|||
report_format_id = table.Column<string>(type: "character varying(16)", nullable: true, comment: "报表格式ID"), |
|||
display_name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true, comment: "模板名称"), |
|||
template_file_type = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValueSql: "1", comment: "模板文件类型(0:FastReport,1:Grid++Report)"), |
|||
template_file = table.Column<string>(type: "text", nullable: true, comment: "模板文件"), |
|||
data_set_json = table.Column<string>(type: "text", nullable: true, comment: "模板文件"), |
|||
isSystem = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValue: 'N', comment: "是否系统自定义(N:停用,Y:启用)"), |
|||
isDefault = table.Column<char>(type: "character(1)", maxLength: 1, nullable: false, defaultValue: 'N', comment: "是否默认(N:不默认,Y:默认)"), |
|||
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false, defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)"), |
|||
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_report_format_template", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "fk_reportformattemplate_reportprinter_1", |
|||
column: x => x.report_format_id, |
|||
principalTable: "report_format", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}, |
|||
comment: "自定义报表格式模板表"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_report_format_report_id", |
|||
table: "report_format", |
|||
column: "report_id"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_report_format_template_report_format_id", |
|||
table: "report_format_template", |
|||
column: "report_format_id"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_report_printer_report_id", |
|||
table: "report_printer", |
|||
column: "report_id"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "report_format_template"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "report_printer"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "report_format"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "report"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue