Browse Source

无纸化

master
wxd 2 days ago
parent
commit
2f8412722f
  1. 2
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/GiveUpCheckTemplates/GiveUpCheckTemplateDbMapping.cs
  2. 17335
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.Designer.cs
  3. 126
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.cs
  4. 290
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

2
src/Shentun.Peis.EntityFrameworkCore/DbMapping/GiveUpCheckTemplates/GiveUpCheckTemplateDbMapping.cs

@ -16,7 +16,7 @@ namespace Shentun.Peis.DbMapping
{
entity.HasComment("弃检模板");
entity.Property(t => t.DisplayName).HasComment("模板名称").IsRequired();
entity.Property(t => t.InformedConsentTemplateFile).HasComment("模板路径").IsRequired();
entity.Property(t => t.GiveUpCheckTemplateFile).HasComment("模板路径").IsRequired();
entity.Property(t => t.IsActive).HasComment("是否启用 只能启用一个").IsRequired().HasDefaultValueSql("'N'"); ;
entity.ConfigureByConvention();

17335
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.Designer.cs
File diff suppressed because it is too large
View File

126
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.cs

@ -0,0 +1,126 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class add_kaipiao_update_lis_request_add_biaoben : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "informed_consent_template_file",
table: "give_up_check_template",
newName: "give_up_check_template_file");
migrationBuilder.AddColumn<string>(
name: "specimen_status",
table: "lis_request",
type: "character varying(50)",
maxLength: 50,
nullable: true,
comment: "标本状态 蓝豚用");
migrationBuilder.CreateTable(
name: "invoice_apply",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
customer_org_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "单位编号"),
customer_org_register_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "单位体检次数id"),
sales_person = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "业务员"),
apply_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "申请时间"),
apply_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "申请金额"),
invoice_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "开票名称"),
country_org_code = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "税号"),
bank = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "业务银行"),
accounts = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "银行帐号"),
contact = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "联系人"),
contact_phone = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true, comment: "联系电话"),
is_complete_invoicing = table.Column<char>(type: "character(1)", nullable: false, defaultValueSql: "'N'", comment: "是否完成开票"),
is_complete_payment = table.Column<char>(type: "character(1)", nullable: false, defaultValueSql: "'N'", comment: "是否完成收款"),
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, 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_invoice_apply", x => x.id);
},
comment: "发票申请");
migrationBuilder.CreateTable(
name: "invoice_record",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
invoice_apply_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "发票申请表id"),
invoice_person = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "开票人"),
invoice_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "开票时间"),
invoice_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "开票金额"),
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, 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_invoice_record", x => x.id);
},
comment: "开票记录");
migrationBuilder.CreateTable(
name: "payment_record",
columns: table => new
{
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"),
invoice_apply_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "发票申请表id"),
payment_account = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "付款账户"),
payment_bank = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "付款银行"),
payment_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "付款金额"),
payment_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "付款时间"),
collection_account = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "收款账户"),
collection_bank = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "收款银行"),
Transaction_Id = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "交易流水号"),
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, 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_payment_record", x => x.id);
},
comment: "收款记录");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "invoice_apply");
migrationBuilder.DropTable(
name: "invoice_record");
migrationBuilder.DropTable(
name: "payment_record");
migrationBuilder.DropColumn(
name: "specimen_status",
table: "lis_request");
migrationBuilder.RenameColumn(
name: "give_up_check_template_file",
table: "give_up_check_template",
newName: "informed_consent_template_file");
}
}
}

290
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -4956,11 +4956,11 @@ namespace Shentun.Peis.Migrations
.HasColumnName("display_name")
.HasComment("模板名称");
b.Property<string>("InformedConsentTemplateFile")
b.Property<string>("GiveUpCheckTemplateFile")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("informed_consent_template_file")
.HasColumnName("give_up_check_template_file")
.HasComment("模板路径");
b.Property<char>("IsActive")
@ -5462,6 +5462,128 @@ namespace Shentun.Peis.Migrations
b.HasComment("知情同意书模板表");
});
modelBuilder.Entity("Shentun.Peis.Models.InvoiceApply", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id")
.IsFixedLength()
.HasComment("编号");
b.Property<string>("Accounts")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("accounts")
.HasComment("银行帐号");
b.Property<decimal>("ApplyAmount")
.HasColumnType("numeric")
.HasColumnName("apply_amount")
.HasComment("申请金额");
b.Property<DateTime?>("ApplyTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("apply_time")
.HasComment("申请时间");
b.Property<string>("Bank")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("bank")
.HasComment("业务银行");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<string>("Contact")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("contact")
.HasComment("联系人");
b.Property<string>("ContactPhone")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("contact_phone")
.HasComment("联系电话");
b.Property<string>("CountryOrgCode")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("country_org_code")
.HasComment("税号");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid>("CustomerOrgId")
.HasColumnType("uuid")
.HasColumnName("customer_org_id")
.HasComment("单位编号");
b.Property<Guid>("CustomerOrgRegisterId")
.HasColumnType("uuid")
.HasColumnName("customer_org_register_id")
.HasComment("单位体检次数id");
b.Property<string>("InvoiceName")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("invoice_name")
.HasComment("开票名称");
b.Property<char>("IsCompleteInvoicing")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("is_complete_invoicing")
.HasDefaultValueSql("'N'")
.HasComment("是否完成开票");
b.Property<char>("IsCompletePayment")
.ValueGeneratedOnAdd()
.HasColumnType("character(1)")
.HasColumnName("is_complete_payment")
.HasDefaultValueSql("'N'")
.HasComment("是否完成收款");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("SalesPerson")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("sales_person")
.HasComment("业务员");
b.HasKey("Id");
b.ToTable("invoice_apply");
b.HasComment("发票申请");
});
modelBuilder.Entity("Shentun.Peis.Models.InvoiceItemType", b =>
{
b.Property<Guid>("Id")
@ -5580,6 +5702,73 @@ namespace Shentun.Peis.Migrations
b.HasComment("发票单位设置");
});
modelBuilder.Entity("Shentun.Peis.Models.InvoiceRecord", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id")
.IsFixedLength()
.HasComment("编号");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<decimal>("InvoiceAmount")
.HasColumnType("numeric")
.HasColumnName("invoice_amount")
.HasComment("开票金额");
b.Property<Guid>("InvoiceApplyId")
.HasColumnType("uuid")
.HasColumnName("invoice_apply_id")
.HasComment("发票申请表id");
b.Property<string>("InvoicePerson")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("invoice_person")
.HasComment("开票人");
b.Property<DateTime?>("InvoiceTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("invoice_time")
.HasComment("开票时间");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("remark")
.HasComment("备注");
b.HasKey("Id");
b.ToTable("invoice_record");
b.HasComment("开票记录");
});
modelBuilder.Entity("Shentun.Peis.Models.Item", b =>
{
b.Property<Guid>("Id")
@ -6433,6 +6622,12 @@ namespace Shentun.Peis.Migrations
.HasColumnName("sign_in_time")
.HasComment("签收时间");
b.Property<string>("SpecimenStatus")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("specimen_status")
.HasComment("标本状态 蓝豚用");
b.HasKey("Id");
b.HasIndex("SampleContainerId");
@ -8537,6 +8732,97 @@ namespace Shentun.Peis.Migrations
b.HasComment("职业病-体检病人症状");
});
modelBuilder.Entity("Shentun.Peis.Models.PaymentRecord", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id")
.IsFixedLength()
.HasComment("编号");
b.Property<string>("CollectionAccount")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("collection_account")
.HasComment("收款账户");
b.Property<string>("CollectionBank")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("collection_bank")
.HasComment("收款银行");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<Guid>("InvoiceApplyId")
.HasColumnType("uuid")
.HasColumnName("invoice_apply_id")
.HasComment("发票申请表id");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PaymentAccount")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("payment_account")
.HasComment("付款账户");
b.Property<decimal>("PaymentAmount")
.HasColumnType("numeric")
.HasColumnName("payment_amount")
.HasComment("付款金额");
b.Property<string>("PaymentBank")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("payment_bank")
.HasComment("付款银行");
b.Property<DateTime?>("PaymentTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("payment_time")
.HasComment("付款时间");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("remark")
.HasComment("备注");
b.Property<string>("TransactionId")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("Transaction_Id")
.HasComment("交易流水号");
b.HasKey("Id");
b.ToTable("payment_record");
b.HasComment("收款记录");
});
modelBuilder.Entity("Shentun.Peis.Models.PayMode", b =>
{
b.Property<string>("Id")

Loading…
Cancel
Save