update ef-model
This commit is contained in:
Binary file not shown.
@@ -79,8 +79,17 @@ namespace Model
|
||||
public virtual DbSet<family_members> family_members { get; set; }
|
||||
public virtual DbSet<PostCity> PostCitiy { get; set; }
|
||||
public virtual DbSet<PostNumber> PostNumber { get; set; }
|
||||
public virtual DbSet<ShuWen> ShuWens { get; set; }
|
||||
public virtual DbSet<ShuWen> ShuWen { get; set; }
|
||||
public virtual DbSet<transfer_register> transfer_register { get; set; }
|
||||
public virtual DbSet<GuaDanOrder> GuaDanOrder { get; set; }
|
||||
public virtual DbSet<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
|
||||
public virtual DbSet<GuadanTimeSetting> GuadanTimeSetting { get; set; }
|
||||
public virtual DbSet<Region> Region { get; set; }
|
||||
public virtual DbSet<RegionAndRoomAndBedSchedule> RegionAndRoomAndBedSchedule { get; set; }
|
||||
public virtual DbSet<RegionRoomBed> RegionRoomBed { get; set; }
|
||||
public virtual DbSet<RegionRoomBedStatus> RegionRoomBedStatus { get; set; }
|
||||
public virtual DbSet<RegionType> RegionType { get; set; }
|
||||
public virtual DbSet<Room> Room { get; set; }
|
||||
|
||||
public virtual int pager_eztrust(Nullable<int> startRowIndex, Nullable<int> pageSize, string tableName, string columnName, string sqlWhere, string orderBy, ObjectParameter rowCount)
|
||||
{
|
||||
|
||||
2
web/App_Code/Model/Model.Designer.cs
generated
2
web/App_Code/Model/Model.Designer.cs
generated
@@ -1,4 +1,4 @@
|
||||
// T4 code generation is enabled for model 'D:\dev\ez\17168erp\git_gitea\web\App_Code\Model\Model.edmx'.
|
||||
// T4 code generation is enabled for model 'D:\dev\ez\17168erp\git_17888\web\App_Code\Model\Model.edmx'.
|
||||
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
|
||||
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
|
||||
// is open in the designer.
|
||||
|
||||
@@ -441,6 +441,7 @@ namespace Model
|
||||
{
|
||||
this.members = new HashSet<member>();
|
||||
this.news = new HashSet<news>();
|
||||
this.GuaDanOrders = new HashSet<GuaDanOrder>();
|
||||
}
|
||||
|
||||
public int num { get; set; }
|
||||
@@ -475,6 +476,8 @@ namespace Model
|
||||
public virtual ICollection<member> members { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<news> news { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrder> GuaDanOrders { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
@@ -765,6 +768,8 @@ namespace Model
|
||||
this.family_members = new HashSet<family_members>();
|
||||
this.transfer_register = new HashSet<transfer_register>();
|
||||
this.transfer_register1 = new HashSet<transfer_register>();
|
||||
this.GuaDanOrders = new HashSet<GuaDanOrder>();
|
||||
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
|
||||
}
|
||||
|
||||
public int num { get; set; }
|
||||
@@ -824,6 +829,10 @@ namespace Model
|
||||
public virtual ICollection<transfer_register> transfer_register { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<transfer_register> transfer_register1 { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrder> GuaDanOrders { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
@@ -846,6 +855,68 @@ namespace Model
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class GuaDanOrder
|
||||
{
|
||||
public Nullable<System.DateTime> StartDate { get; set; }
|
||||
public Nullable<System.DateTime> EndDate { get; set; }
|
||||
public Nullable<int> CreateUser { get; set; }
|
||||
public Nullable<System.DateTime> CreatedAt { get; set; }
|
||||
public Nullable<System.DateTime> UpdatedAt { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string GuaDanOrderNo { get; set; }
|
||||
public Nullable<int> BookerFollowerNum { get; set; }
|
||||
public string BookerName { get; set; }
|
||||
public string BookerPhone { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
|
||||
public virtual admin admin { get; set; }
|
||||
public virtual follower follower { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class GuaDanOrderGuest
|
||||
{
|
||||
public string GuaDanOrderNo { get; set; }
|
||||
public Nullable<int> FollowerNum { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
public Nullable<System.Guid> RoomUuid { get; set; }
|
||||
public Nullable<System.Guid> BedUuid { get; set; }
|
||||
public Nullable<System.DateTime> CheckInAt { get; set; }
|
||||
public Nullable<System.DateTime> CheckOutAt { get; set; }
|
||||
public Nullable<System.Guid> statusUuid { get; set; }
|
||||
|
||||
public virtual follower follower { get; set; }
|
||||
public virtual RegionRoomBed RegionRoomBed { get; set; }
|
||||
public virtual Room Room { get; set; }
|
||||
public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class GuadanTimeSetting
|
||||
{
|
||||
public System.Guid Id { get; set; }
|
||||
public string EarliestCheckIn { get; set; }
|
||||
public string LatestCheckOut { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public Nullable<System.DateTime> CreatedAt { get; set; }
|
||||
public Nullable<System.DateTime> UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class item
|
||||
{
|
||||
public int num { get; set; }
|
||||
@@ -1274,6 +1345,171 @@ namespace Model
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Region
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Region()
|
||||
{
|
||||
this.Region1 = new HashSet<Region>();
|
||||
this.Room = new HashSet<Room>();
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public Nullable<int> SortOrder { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public Nullable<System.DateTime> CreatedAt { get; set; }
|
||||
public Nullable<System.DateTime> UpdatedAt { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public Nullable<int> RoomCount { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
public Nullable<System.Guid> ParentUuid { get; set; }
|
||||
public Nullable<System.Guid> RegionTypeUuid { get; set; }
|
||||
public Nullable<bool> Gender { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Region> Region1 { get; set; }
|
||||
public virtual Region Region2 { get; set; }
|
||||
public virtual RegionType RegionType { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Room> Room { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class RegionAndRoomAndBedSchedule
|
||||
{
|
||||
public int UseType { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public Nullable<System.DateTime> CreatedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
public Nullable<System.Guid> TargetUuid { get; set; }
|
||||
public string GuaDanOrderNo { get; set; }
|
||||
public Nullable<System.DateTime> ScheduleDate { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class RegionRoomBed
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public RegionRoomBed()
|
||||
{
|
||||
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public bool Gender { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
public System.Guid RoomUuid { get; set; }
|
||||
public Nullable<System.Guid> StatusUuid { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
|
||||
public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; }
|
||||
public virtual Room Room { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class RegionRoomBedStatus
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public RegionRoomBedStatus()
|
||||
{
|
||||
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
|
||||
this.RegionRoomBeds = new HashSet<RegionRoomBed>();
|
||||
}
|
||||
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public Nullable<int> Category { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<RegionRoomBed> RegionRoomBeds { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class RegionType
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public RegionType()
|
||||
{
|
||||
this.Regions = new HashSet<Region>();
|
||||
}
|
||||
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public Nullable<System.DateTime> CreateAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Region> Regions { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Room
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public Room()
|
||||
{
|
||||
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
|
||||
this.RegionRoomBed = new HashSet<RegionRoomBed>();
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public bool Gender { get; set; }
|
||||
public Nullable<int> BedCount { get; set; }
|
||||
public Nullable<bool> IsActive { get; set; }
|
||||
public Nullable<System.DateTime> CreatedAt { get; set; }
|
||||
public Nullable<System.DateTime> UpdatedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public System.Guid Uuid { get; set; }
|
||||
public System.Guid RegionUuid { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
|
||||
public virtual Region Region { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<RegionRoomBed> RegionRoomBed { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class ShuWen
|
||||
{
|
||||
public int ID { get; set; }
|
||||
|
||||
@@ -422,6 +422,48 @@
|
||||
<Property Name="type" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="title" Type="nvarchar(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="GuaDanOrder">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="StartDate" Type="date" />
|
||||
<Property Name="EndDate" Type="date" />
|
||||
<Property Name="CreateUser" Type="int" />
|
||||
<Property Name="CreatedAt" Type="datetime2" Precision="7" />
|
||||
<Property Name="UpdatedAt" Type="datetime2" Precision="7" />
|
||||
<Property Name="Notes" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="GuaDanOrderNo" Type="nvarchar" MaxLength="20" Nullable="false" />
|
||||
<Property Name="BookerFollowerNum" Type="int" />
|
||||
<Property Name="BookerName" Type="nvarchar" MaxLength="20" />
|
||||
<Property Name="BookerPhone" Type="nvarchar" MaxLength="12" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="GuaDanOrderGuest">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="GuaDanOrderNo" Type="nvarchar" MaxLength="20" Nullable="false" />
|
||||
<Property Name="FollowerNum" Type="int" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="RoomUuid" Type="uniqueidentifier" />
|
||||
<Property Name="BedUuid" Type="uniqueidentifier" />
|
||||
<Property Name="CheckInAt" Type="date" />
|
||||
<Property Name="CheckOutAt" Type="date" />
|
||||
<Property Name="statusUuid" Type="uniqueidentifier" />
|
||||
</EntityType>
|
||||
<EntityType Name="GuadanTimeSetting">
|
||||
<Key>
|
||||
<PropertyRef Name="Id" />
|
||||
</Key>
|
||||
<Property Name="Id" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="EarliestCheckIn" Type="nvarchar" MaxLength="5" Nullable="false" />
|
||||
<Property Name="LatestCheckOut" Type="nvarchar" MaxLength="5" Nullable="false" />
|
||||
<Property Name="IsActive" Type="bit" Nullable="false" />
|
||||
<Property Name="CreatedAt" Type="datetime" />
|
||||
<Property Name="UpdatedAt" Type="datetime" />
|
||||
</EntityType>
|
||||
<EntityType Name="item">
|
||||
<Key>
|
||||
<PropertyRef Name="num" />
|
||||
@@ -659,6 +701,88 @@
|
||||
<Property Name="pic1" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="pro_id" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Region">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
||||
<Property Name="Description" Type="nvarchar" MaxLength="200" />
|
||||
<Property Name="SortOrder" Type="int" />
|
||||
<Property Name="CreatedBy" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="CreatedAt" Type="datetime" />
|
||||
<Property Name="UpdatedAt" Type="datetime" />
|
||||
<Property Name="IsActive" Type="bit" Nullable="false" />
|
||||
<Property Name="RoomCount" Type="int" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="ParentUuid" Type="uniqueidentifier" />
|
||||
<Property Name="RegionTypeUuid" Type="uniqueidentifier" />
|
||||
<Property Name="Gender" Type="bit" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionAndRoomAndBedSchedule">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="UseType" Type="int" Nullable="false" />
|
||||
<Property Name="Title" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="Description" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="CreatedBy" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="CreatedAt" Type="datetime2" Precision="7" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="TargetUuid" Type="uniqueidentifier" />
|
||||
<Property Name="GuaDanOrderNo" Type="nvarchar" MaxLength="20" />
|
||||
<Property Name="ScheduleDate" Type="date" />
|
||||
<Property Name="IsActive" Type="bit" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionRoomBed">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="IsActive" Type="bit" Nullable="false" />
|
||||
<Property Name="Gender" Type="bit" Nullable="false" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="RoomUuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="StatusUuid" Type="uniqueidentifier" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionRoomBedStatus">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Code" Type="nvarchar" MaxLength="20" />
|
||||
<Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="Description" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Category" Type="int" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionType">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Code" Type="varchar" MaxLength="20" Nullable="false" />
|
||||
<Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="IsActive" Type="bit" Nullable="false" />
|
||||
<Property Name="CreateAt" Type="datetime" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Room">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="nvarchar" MaxLength="50" />
|
||||
<Property Name="Gender" Type="bit" Nullable="false" />
|
||||
<Property Name="BedCount" Type="int" />
|
||||
<Property Name="IsActive" Type="bit" />
|
||||
<Property Name="CreatedAt" Type="datetime" />
|
||||
<Property Name="UpdatedAt" Type="datetime" />
|
||||
<Property Name="IsDeleted" Type="bit" Nullable="false" />
|
||||
<Property Name="Uuid" Type="uniqueidentifier" Nullable="false" />
|
||||
<Property Name="RegionUuid" Type="uniqueidentifier" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="ShuWen">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
@@ -1208,6 +1332,78 @@
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrder_Admin_CreateUser">
|
||||
<End Role="admin" Type="Self.admin" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrder" Type="Self.GuaDanOrder" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="admin">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrder">
|
||||
<PropertyRef Name="CreateUser" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrder_Followers">
|
||||
<End Role="followers" Type="Self.followers" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrder" Type="Self.GuaDanOrder" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="followers">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrder">
|
||||
<PropertyRef Name="BookerFollowerNum" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_BedUuid">
|
||||
<End Role="RegionRoomBed" Type="Self.RegionRoomBed" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrderGuest" Type="Self.GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBed">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="BedUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_FOLLOWERS">
|
||||
<End Role="followers" Type="Self.followers" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrderGuest" Type="Self.GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="followers">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="FollowerNum" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_RoomUuid">
|
||||
<End Role="Room" Type="Self.Room" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrderGuest" Type="Self.GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Room">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="RoomUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_Status">
|
||||
<End Role="RegionRoomBedStatus" Type="Self.RegionRoomBedStatus" Multiplicity="0..1" />
|
||||
<End Role="GuaDanOrderGuest" Type="Self.GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBedStatus">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="statusUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_member_admin">
|
||||
<End Role="admin" Type="Self.admin" Multiplicity="0..1" />
|
||||
<End Role="member" Type="Self.member" Multiplicity="*" />
|
||||
@@ -1482,6 +1678,66 @@
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Region_ParentUuid">
|
||||
<End Role="Region" Type="Self.Region" Multiplicity="0..1" />
|
||||
<End Role="Region1" Type="Self.Region" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Region">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Region1">
|
||||
<PropertyRef Name="ParentUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Region_RegionTypeUuid">
|
||||
<End Role="RegionType" Type="Self.RegionType" Multiplicity="0..1" />
|
||||
<End Role="Region" Type="Self.Region" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionType">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Region">
|
||||
<PropertyRef Name="RegionTypeUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_RegionRoomBed_RegionRoomBedStatus">
|
||||
<End Role="RegionRoomBedStatus" Type="Self.RegionRoomBedStatus" Multiplicity="0..1" />
|
||||
<End Role="RegionRoomBed" Type="Self.RegionRoomBed" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBedStatus">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="RegionRoomBed">
|
||||
<PropertyRef Name="StatusUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_RegionRoomBed_RoomUuid">
|
||||
<End Role="Room" Type="Self.Room" Multiplicity="1" />
|
||||
<End Role="RegionRoomBed" Type="Self.RegionRoomBed" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Room">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="RegionRoomBed">
|
||||
<PropertyRef Name="RoomUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Room_Region">
|
||||
<End Role="Region" Type="Self.Region" Multiplicity="1" />
|
||||
<End Role="Room" Type="Self.Room" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Region">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Room">
|
||||
<PropertyRef Name="RegionUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_stock_actItem">
|
||||
<End Role="actItem" Type="Self.actItem" Multiplicity="0..1">
|
||||
<OnDelete Action="Cascade" />
|
||||
@@ -1748,6 +2004,9 @@
|
||||
<EntitySet Name="files" EntityType="Self.files" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="followers" EntityType="Self.followers" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="followers_tablet" EntityType="Self.followers_tablet" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="GuaDanOrder" EntityType="Self.GuaDanOrder" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="GuaDanOrderGuest" EntityType="Self.GuaDanOrderGuest" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="GuadanTimeSetting" EntityType="Self.GuadanTimeSetting" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="item" EntityType="Self.item" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="member" EntityType="Self.member" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="member_check" EntityType="Self.member_check" Schema="dbo" store:Type="Tables" />
|
||||
@@ -1764,6 +2023,12 @@
|
||||
<EntitySet Name="project" EntityType="Self.project" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="project_kind" EntityType="Self.project_kind" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="project_sub" EntityType="Self.project_sub" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Region" EntityType="Self.Region" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RegionAndRoomAndBedSchedule" EntityType="Self.RegionAndRoomAndBedSchedule" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RegionRoomBed" EntityType="Self.RegionRoomBed" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RegionRoomBedStatus" EntityType="Self.RegionRoomBedStatus" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RegionType" EntityType="Self.RegionType" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Room" EntityType="Self.Room" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="ShuWen" EntityType="Self.ShuWen" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="stock" EntityType="Self.stock" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="stock_files" EntityType="Self.stock_files" Schema="dbo" store:Type="Tables" />
|
||||
@@ -1905,6 +2170,30 @@
|
||||
<End Role="followers" EntitySet="followers" />
|
||||
<End Role="followers_tablet" EntitySet="followers_tablet" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrder_Admin_CreateUser" Association="Self.FK_GuaDanOrder_Admin_CreateUser">
|
||||
<End Role="admin" EntitySet="admin" />
|
||||
<End Role="GuaDanOrder" EntitySet="GuaDanOrder" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrder_Followers" Association="Self.FK_GuaDanOrder_Followers">
|
||||
<End Role="followers" EntitySet="followers" />
|
||||
<End Role="GuaDanOrder" EntitySet="GuaDanOrder" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_BedUuid" Association="Self.FK_GuaDanOrderGuest_BedUuid">
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_FOLLOWERS" Association="Self.FK_GuaDanOrderGuest_FOLLOWERS">
|
||||
<End Role="followers" EntitySet="followers" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_RoomUuid" Association="Self.FK_GuaDanOrderGuest_RoomUuid">
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_Status" Association="Self.FK_GuaDanOrderGuest_Status">
|
||||
<End Role="RegionRoomBedStatus" EntitySet="RegionRoomBedStatus" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_member_admin" Association="Self.FK_member_admin">
|
||||
<End Role="admin" EntitySet="admin" />
|
||||
<End Role="member" EntitySet="member" />
|
||||
@@ -1993,6 +2282,26 @@
|
||||
<End Role="project" EntitySet="project" />
|
||||
<End Role="project_sub" EntitySet="project_sub" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Region_ParentUuid" Association="Self.FK_Region_ParentUuid">
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
<End Role="Region1" EntitySet="Region" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Region_RegionTypeUuid" Association="Self.FK_Region_RegionTypeUuid">
|
||||
<End Role="RegionType" EntitySet="RegionType" />
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_RegionRoomBed_RegionRoomBedStatus" Association="Self.FK_RegionRoomBed_RegionRoomBedStatus">
|
||||
<End Role="RegionRoomBedStatus" EntitySet="RegionRoomBedStatus" />
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_RegionRoomBed_RoomUuid" Association="Self.FK_RegionRoomBed_RoomUuid">
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Room_Region" Association="Self.FK_Room_Region">
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_stock_actItem" Association="Self.FK_stock_actItem">
|
||||
<End Role="actItem" EntitySet="actItem" />
|
||||
<End Role="stock" EntitySet="stock" />
|
||||
@@ -2325,6 +2634,7 @@
|
||||
<NavigationProperty Name="admin_group" Relationship="Self.FK_admin_admin_group" FromRole="admin" ToRole="admin_group" />
|
||||
<NavigationProperty Name="members" Relationship="Self.FK_member_admin" FromRole="admin" ToRole="member" />
|
||||
<NavigationProperty Name="news" Relationship="Self.FK_news_admin" FromRole="admin" ToRole="news" />
|
||||
<NavigationProperty Name="GuaDanOrders" Relationship="Model.FK_GuaDanOrder_Admin_CreateUser" FromRole="admin" ToRole="GuaDanOrder" />
|
||||
</EntityType>
|
||||
<EntityType Name="admin_group">
|
||||
<Key>
|
||||
@@ -2514,6 +2824,8 @@
|
||||
<NavigationProperty Name="family_members" Relationship="Model.FK_family_members_followers" FromRole="follower" ToRole="family_members" />
|
||||
<NavigationProperty Name="transfer_register" Relationship="Model.FK_transfer_register_followers" FromRole="follower" ToRole="transfer_register" />
|
||||
<NavigationProperty Name="transfer_register1" Relationship="Model.FK_transfer_register_followers_match" FromRole="follower" ToRole="transfer_register" />
|
||||
<NavigationProperty Name="GuaDanOrders" Relationship="Model.FK_GuaDanOrder_Followers" FromRole="follower" ToRole="GuaDanOrder" />
|
||||
<NavigationProperty Name="GuaDanOrderGuests" Relationship="Model.FK_GuaDanOrderGuest_FOLLOWERS" FromRole="follower" ToRole="GuaDanOrderGuest" />
|
||||
</EntityType>
|
||||
<EntityType Name="followers_tablet">
|
||||
<Key>
|
||||
@@ -3972,7 +4284,7 @@
|
||||
</AssociationSet>
|
||||
<EntitySet Name="PostCitiy" EntityType="Model.PostCity" />
|
||||
<EntitySet Name="PostNumber" EntityType="Model.PostNumber" />
|
||||
<EntitySet Name="ShuWens" EntityType="Model.ShuWen" />
|
||||
<EntitySet Name="ShuWen" EntityType="Model.ShuWen" />
|
||||
<EntitySet Name="transfer_register" EntityType="Model.transfer_register" />
|
||||
<AssociationSet Name="FK_transfer_register_accountings" Association="Model.FK_transfer_register_accountings">
|
||||
<End Role="accounting" EntitySet="accountings" />
|
||||
@@ -4014,6 +4326,59 @@
|
||||
<End Role="transfer_register" EntitySet="transfer_register" />
|
||||
<End Role="pro_order_record" EntitySet="pro_order_record" />
|
||||
</AssociationSet>
|
||||
<EntitySet Name="GuaDanOrder" EntityType="Model.GuaDanOrder" />
|
||||
<EntitySet Name="GuaDanOrderGuest" EntityType="Model.GuaDanOrderGuest" />
|
||||
<EntitySet Name="GuadanTimeSetting" EntityType="Model.GuadanTimeSetting" />
|
||||
<EntitySet Name="Region" EntityType="Model.Region" />
|
||||
<EntitySet Name="RegionAndRoomAndBedSchedule" EntityType="Model.RegionAndRoomAndBedSchedule" />
|
||||
<EntitySet Name="RegionRoomBed" EntityType="Model.RegionRoomBed" />
|
||||
<EntitySet Name="RegionRoomBedStatus" EntityType="Model.RegionRoomBedStatus" />
|
||||
<EntitySet Name="RegionType" EntityType="Model.RegionType" />
|
||||
<EntitySet Name="Room" EntityType="Model.Room" />
|
||||
<AssociationSet Name="FK_GuaDanOrder_Admin_CreateUser" Association="Model.FK_GuaDanOrder_Admin_CreateUser">
|
||||
<End Role="admin" EntitySet="admins" />
|
||||
<End Role="GuaDanOrder" EntitySet="GuaDanOrder" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrder_Followers" Association="Model.FK_GuaDanOrder_Followers">
|
||||
<End Role="follower" EntitySet="followers" />
|
||||
<End Role="GuaDanOrder" EntitySet="GuaDanOrder" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_FOLLOWERS" Association="Model.FK_GuaDanOrderGuest_FOLLOWERS">
|
||||
<End Role="follower" EntitySet="followers" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_BedUuid" Association="Model.FK_GuaDanOrderGuest_BedUuid">
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_RoomUuid" Association="Model.FK_GuaDanOrderGuest_RoomUuid">
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_GuaDanOrderGuest_Status" Association="Model.FK_GuaDanOrderGuest_Status">
|
||||
<End Role="RegionRoomBedStatus" EntitySet="RegionRoomBedStatus" />
|
||||
<End Role="GuaDanOrderGuest" EntitySet="GuaDanOrderGuest" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Region_ParentUuid" Association="Model.FK_Region_ParentUuid">
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
<End Role="Region1" EntitySet="Region" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Region_RegionTypeUuid" Association="Model.FK_Region_RegionTypeUuid">
|
||||
<End Role="RegionType" EntitySet="RegionType" />
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_Room_Region" Association="Model.FK_Room_Region">
|
||||
<End Role="Region" EntitySet="Region" />
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_RegionRoomBed_RegionRoomBedStatus" Association="Model.FK_RegionRoomBed_RegionRoomBedStatus">
|
||||
<End Role="RegionRoomBedStatus" EntitySet="RegionRoomBedStatus" />
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
</AssociationSet>
|
||||
<AssociationSet Name="FK_RegionRoomBed_RoomUuid" Association="Model.FK_RegionRoomBed_RoomUuid">
|
||||
<End Role="Room" EntitySet="Room" />
|
||||
<End Role="RegionRoomBed" EntitySet="RegionRoomBed" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
<ComplexType Name="sp_helpdiagramdefinition_Result">
|
||||
<Property Type="Int32" Name="version" Nullable="true" />
|
||||
@@ -4287,6 +4652,281 @@
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<EntityType Name="GuaDanOrder">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="StartDate" Type="DateTime" Precision="0" />
|
||||
<Property Name="EndDate" Type="DateTime" Precision="0" />
|
||||
<Property Name="CreateUser" Type="Int32" />
|
||||
<Property Name="CreatedAt" Type="DateTime" Precision="7" />
|
||||
<Property Name="UpdatedAt" Type="DateTime" Precision="7" />
|
||||
<Property Name="Notes" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="GuaDanOrderNo" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
|
||||
<Property Name="BookerFollowerNum" Type="Int32" />
|
||||
<Property Name="BookerName" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
|
||||
<Property Name="BookerPhone" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<NavigationProperty Name="admin" Relationship="Model.FK_GuaDanOrder_Admin_CreateUser" FromRole="GuaDanOrder" ToRole="admin" />
|
||||
<NavigationProperty Name="follower" Relationship="Model.FK_GuaDanOrder_Followers" FromRole="GuaDanOrder" ToRole="follower" />
|
||||
</EntityType>
|
||||
<EntityType Name="GuaDanOrderGuest">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="GuaDanOrderNo" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
|
||||
<Property Name="FollowerNum" Type="Int32" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="RoomUuid" Type="Guid" />
|
||||
<Property Name="BedUuid" Type="Guid" />
|
||||
<Property Name="CheckInAt" Type="DateTime" Precision="0" />
|
||||
<Property Name="CheckOutAt" Type="DateTime" Precision="0" />
|
||||
<Property Name="statusUuid" Type="Guid" />
|
||||
<NavigationProperty Name="follower" Relationship="Model.FK_GuaDanOrderGuest_FOLLOWERS" FromRole="GuaDanOrderGuest" ToRole="follower" />
|
||||
<NavigationProperty Name="RegionRoomBed" Relationship="Model.FK_GuaDanOrderGuest_BedUuid" FromRole="GuaDanOrderGuest" ToRole="RegionRoomBed" />
|
||||
<NavigationProperty Name="Room" Relationship="Model.FK_GuaDanOrderGuest_RoomUuid" FromRole="GuaDanOrderGuest" ToRole="Room" />
|
||||
<NavigationProperty Name="RegionRoomBedStatus" Relationship="Model.FK_GuaDanOrderGuest_Status" FromRole="GuaDanOrderGuest" ToRole="RegionRoomBedStatus" />
|
||||
</EntityType>
|
||||
<EntityType Name="GuadanTimeSetting">
|
||||
<Key>
|
||||
<PropertyRef Name="Id" />
|
||||
</Key>
|
||||
<Property Name="Id" Type="Guid" Nullable="false" />
|
||||
<Property Name="EarliestCheckIn" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
|
||||
<Property Name="LatestCheckOut" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
|
||||
<Property Name="IsActive" Type="Boolean" Nullable="false" />
|
||||
<Property Name="CreatedAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="UpdatedAt" Type="DateTime" Precision="3" />
|
||||
</EntityType>
|
||||
<EntityType Name="Region">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Description" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
|
||||
<Property Name="SortOrder" Type="Int32" />
|
||||
<Property Name="CreatedBy" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="CreatedAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="UpdatedAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="IsActive" Type="Boolean" Nullable="false" />
|
||||
<Property Name="RoomCount" Type="Int32" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="ParentUuid" Type="Guid" />
|
||||
<Property Name="RegionTypeUuid" Type="Guid" />
|
||||
<Property Name="Gender" Type="Boolean" />
|
||||
<NavigationProperty Name="Region1" Relationship="Model.FK_Region_ParentUuid" FromRole="Region" ToRole="Region1" />
|
||||
<NavigationProperty Name="Region2" Relationship="Model.FK_Region_ParentUuid" FromRole="Region1" ToRole="Region" />
|
||||
<NavigationProperty Name="RegionType" Relationship="Model.FK_Region_RegionTypeUuid" FromRole="Region" ToRole="RegionType" />
|
||||
<NavigationProperty Name="Room" Relationship="Model.FK_Room_Region" FromRole="Region" ToRole="Room" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionAndRoomAndBedSchedule">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="UseType" Type="Int32" Nullable="false" />
|
||||
<Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Description" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="CreatedBy" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="CreatedAt" Type="DateTime" Precision="7" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="TargetUuid" Type="Guid" />
|
||||
<Property Name="GuaDanOrderNo" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
|
||||
<Property Name="ScheduleDate" Type="DateTime" Precision="0" />
|
||||
<Property Name="IsActive" Type="Boolean" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionRoomBed">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="IsActive" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Gender" Type="Boolean" Nullable="false" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="RoomUuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="StatusUuid" Type="Guid" />
|
||||
<NavigationProperty Name="GuaDanOrderGuests" Relationship="Model.FK_GuaDanOrderGuest_BedUuid" FromRole="RegionRoomBed" ToRole="GuaDanOrderGuest" />
|
||||
<NavigationProperty Name="RegionRoomBedStatus" Relationship="Model.FK_RegionRoomBed_RegionRoomBedStatus" FromRole="RegionRoomBed" ToRole="RegionRoomBedStatus" />
|
||||
<NavigationProperty Name="Room" Relationship="Model.FK_RegionRoomBed_RoomUuid" FromRole="RegionRoomBed" ToRole="Room" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionRoomBedStatus">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Code" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Description" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Category" Type="Int32" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<NavigationProperty Name="GuaDanOrderGuests" Relationship="Model.FK_GuaDanOrderGuest_Status" FromRole="RegionRoomBedStatus" ToRole="GuaDanOrderGuest" />
|
||||
<NavigationProperty Name="RegionRoomBeds" Relationship="Model.FK_RegionRoomBed_RegionRoomBedStatus" FromRole="RegionRoomBedStatus" ToRole="RegionRoomBed" />
|
||||
</EntityType>
|
||||
<EntityType Name="RegionType">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Code" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="IsActive" Type="Boolean" Nullable="false" />
|
||||
<Property Name="CreateAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<NavigationProperty Name="Regions" Relationship="Model.FK_Region_RegionTypeUuid" FromRole="RegionType" ToRole="Region" />
|
||||
</EntityType>
|
||||
<EntityType Name="Room">
|
||||
<Key>
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Key>
|
||||
<Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
<Property Name="Gender" Type="Boolean" Nullable="false" />
|
||||
<Property Name="BedCount" Type="Int32" />
|
||||
<Property Name="IsActive" Type="Boolean" />
|
||||
<Property Name="CreatedAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="UpdatedAt" Type="DateTime" Precision="3" />
|
||||
<Property Name="IsDeleted" Type="Boolean" Nullable="false" />
|
||||
<Property Name="Uuid" Type="Guid" Nullable="false" />
|
||||
<Property Name="RegionUuid" Type="Guid" Nullable="false" />
|
||||
<NavigationProperty Name="GuaDanOrderGuests" Relationship="Model.FK_GuaDanOrderGuest_RoomUuid" FromRole="Room" ToRole="GuaDanOrderGuest" />
|
||||
<NavigationProperty Name="Region" Relationship="Model.FK_Room_Region" FromRole="Room" ToRole="Region" />
|
||||
<NavigationProperty Name="RegionRoomBed" Relationship="Model.FK_RegionRoomBed_RoomUuid" FromRole="Room" ToRole="RegionRoomBed" />
|
||||
</EntityType>
|
||||
<Association Name="FK_GuaDanOrder_Admin_CreateUser">
|
||||
<End Type="Model.admin" Role="admin" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrder" Role="GuaDanOrder" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="admin">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrder">
|
||||
<PropertyRef Name="CreateUser" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrder_Followers">
|
||||
<End Type="Model.follower" Role="follower" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrder" Role="GuaDanOrder" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="follower">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrder">
|
||||
<PropertyRef Name="BookerFollowerNum" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_FOLLOWERS">
|
||||
<End Type="Model.follower" Role="follower" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrderGuest" Role="GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="follower">
|
||||
<PropertyRef Name="num" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="FollowerNum" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_BedUuid">
|
||||
<End Type="Model.RegionRoomBed" Role="RegionRoomBed" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrderGuest" Role="GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBed">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="BedUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_RoomUuid">
|
||||
<End Type="Model.Room" Role="Room" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrderGuest" Role="GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Room">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="RoomUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_GuaDanOrderGuest_Status">
|
||||
<End Type="Model.RegionRoomBedStatus" Role="RegionRoomBedStatus" Multiplicity="0..1" />
|
||||
<End Type="Model.GuaDanOrderGuest" Role="GuaDanOrderGuest" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBedStatus">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="GuaDanOrderGuest">
|
||||
<PropertyRef Name="statusUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Region_ParentUuid">
|
||||
<End Type="Model.Region" Role="Region" Multiplicity="0..1" />
|
||||
<End Type="Model.Region" Role="Region1" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Region">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Region1">
|
||||
<PropertyRef Name="ParentUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Region_RegionTypeUuid">
|
||||
<End Type="Model.RegionType" Role="RegionType" Multiplicity="0..1" />
|
||||
<End Type="Model.Region" Role="Region" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionType">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Region">
|
||||
<PropertyRef Name="RegionTypeUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_Room_Region">
|
||||
<End Type="Model.Region" Role="Region" Multiplicity="1" />
|
||||
<End Type="Model.Room" Role="Room" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Region">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="Room">
|
||||
<PropertyRef Name="RegionUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_RegionRoomBed_RegionRoomBedStatus">
|
||||
<End Type="Model.RegionRoomBedStatus" Role="RegionRoomBedStatus" Multiplicity="0..1" />
|
||||
<End Type="Model.RegionRoomBed" Role="RegionRoomBed" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="RegionRoomBedStatus">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="RegionRoomBed">
|
||||
<PropertyRef Name="StatusUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
<Association Name="FK_RegionRoomBed_RoomUuid">
|
||||
<End Type="Model.Room" Role="Room" Multiplicity="1" />
|
||||
<End Type="Model.RegionRoomBed" Role="RegionRoomBed" Multiplicity="*" />
|
||||
<ReferentialConstraint>
|
||||
<Principal Role="Room">
|
||||
<PropertyRef Name="Uuid" />
|
||||
</Principal>
|
||||
<Dependent Role="RegionRoomBed">
|
||||
<PropertyRef Name="RoomUuid" />
|
||||
</Dependent>
|
||||
</ReferentialConstraint>
|
||||
</Association>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
@@ -5115,7 +5755,7 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="ShuWens">
|
||||
<EntitySetMapping Name="ShuWen">
|
||||
<EntityTypeMapping TypeName="Model.ShuWen">
|
||||
<MappingFragment StoreEntitySet="ShuWen">
|
||||
<ScalarProperty Name="IsGenerating" ColumnName="IsGenerating" />
|
||||
@@ -5160,6 +5800,139 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="GuaDanOrder">
|
||||
<EntityTypeMapping TypeName="Model.GuaDanOrder">
|
||||
<MappingFragment StoreEntitySet="GuaDanOrder">
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="BookerPhone" ColumnName="BookerPhone" />
|
||||
<ScalarProperty Name="BookerName" ColumnName="BookerName" />
|
||||
<ScalarProperty Name="BookerFollowerNum" ColumnName="BookerFollowerNum" />
|
||||
<ScalarProperty Name="GuaDanOrderNo" ColumnName="GuaDanOrderNo" />
|
||||
<ScalarProperty Name="Notes" ColumnName="Notes" />
|
||||
<ScalarProperty Name="UpdatedAt" ColumnName="UpdatedAt" />
|
||||
<ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
||||
<ScalarProperty Name="CreateUser" ColumnName="CreateUser" />
|
||||
<ScalarProperty Name="EndDate" ColumnName="EndDate" />
|
||||
<ScalarProperty Name="StartDate" ColumnName="StartDate" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="GuaDanOrderGuest">
|
||||
<EntityTypeMapping TypeName="Model.GuaDanOrderGuest">
|
||||
<MappingFragment StoreEntitySet="GuaDanOrderGuest">
|
||||
<ScalarProperty Name="statusUuid" ColumnName="statusUuid" />
|
||||
<ScalarProperty Name="CheckOutAt" ColumnName="CheckOutAt" />
|
||||
<ScalarProperty Name="CheckInAt" ColumnName="CheckInAt" />
|
||||
<ScalarProperty Name="BedUuid" ColumnName="BedUuid" />
|
||||
<ScalarProperty Name="RoomUuid" ColumnName="RoomUuid" />
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="FollowerNum" ColumnName="FollowerNum" />
|
||||
<ScalarProperty Name="GuaDanOrderNo" ColumnName="GuaDanOrderNo" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="GuadanTimeSetting">
|
||||
<EntityTypeMapping TypeName="Model.GuadanTimeSetting">
|
||||
<MappingFragment StoreEntitySet="GuadanTimeSetting">
|
||||
<ScalarProperty Name="UpdatedAt" ColumnName="UpdatedAt" />
|
||||
<ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="LatestCheckOut" ColumnName="LatestCheckOut" />
|
||||
<ScalarProperty Name="EarliestCheckIn" ColumnName="EarliestCheckIn" />
|
||||
<ScalarProperty Name="Id" ColumnName="Id" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Region">
|
||||
<EntityTypeMapping TypeName="Model.Region">
|
||||
<MappingFragment StoreEntitySet="Region">
|
||||
<ScalarProperty Name="Gender" ColumnName="Gender" />
|
||||
<ScalarProperty Name="RegionTypeUuid" ColumnName="RegionTypeUuid" />
|
||||
<ScalarProperty Name="ParentUuid" ColumnName="ParentUuid" />
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="RoomCount" ColumnName="RoomCount" />
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="UpdatedAt" ColumnName="UpdatedAt" />
|
||||
<ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
||||
<ScalarProperty Name="CreatedBy" ColumnName="CreatedBy" />
|
||||
<ScalarProperty Name="SortOrder" ColumnName="SortOrder" />
|
||||
<ScalarProperty Name="Description" ColumnName="Description" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RegionAndRoomAndBedSchedule">
|
||||
<EntityTypeMapping TypeName="Model.RegionAndRoomAndBedSchedule">
|
||||
<MappingFragment StoreEntitySet="RegionAndRoomAndBedSchedule">
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="ScheduleDate" ColumnName="ScheduleDate" />
|
||||
<ScalarProperty Name="GuaDanOrderNo" ColumnName="GuaDanOrderNo" />
|
||||
<ScalarProperty Name="TargetUuid" ColumnName="TargetUuid" />
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
||||
<ScalarProperty Name="CreatedBy" ColumnName="CreatedBy" />
|
||||
<ScalarProperty Name="Description" ColumnName="Description" />
|
||||
<ScalarProperty Name="Title" ColumnName="Title" />
|
||||
<ScalarProperty Name="UseType" ColumnName="UseType" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RegionRoomBed">
|
||||
<EntityTypeMapping TypeName="Model.RegionRoomBed">
|
||||
<MappingFragment StoreEntitySet="RegionRoomBed">
|
||||
<ScalarProperty Name="StatusUuid" ColumnName="StatusUuid" />
|
||||
<ScalarProperty Name="RoomUuid" ColumnName="RoomUuid" />
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="Gender" ColumnName="Gender" />
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RegionRoomBedStatus">
|
||||
<EntityTypeMapping TypeName="Model.RegionRoomBedStatus">
|
||||
<MappingFragment StoreEntitySet="RegionRoomBedStatus">
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="Category" ColumnName="Category" />
|
||||
<ScalarProperty Name="Description" ColumnName="Description" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Code" ColumnName="Code" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RegionType">
|
||||
<EntityTypeMapping TypeName="Model.RegionType">
|
||||
<MappingFragment StoreEntitySet="RegionType">
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="CreateAt" ColumnName="CreateAt" />
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
<ScalarProperty Name="Code" ColumnName="Code" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Room">
|
||||
<EntityTypeMapping TypeName="Model.Room">
|
||||
<MappingFragment StoreEntitySet="Room">
|
||||
<ScalarProperty Name="RegionUuid" ColumnName="RegionUuid" />
|
||||
<ScalarProperty Name="Uuid" ColumnName="Uuid" />
|
||||
<ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
|
||||
<ScalarProperty Name="UpdatedAt" ColumnName="UpdatedAt" />
|
||||
<ScalarProperty Name="CreatedAt" ColumnName="CreatedAt" />
|
||||
<ScalarProperty Name="IsActive" ColumnName="IsActive" />
|
||||
<ScalarProperty Name="BedCount" ColumnName="BedCount" />
|
||||
<ScalarProperty Name="Gender" ColumnName="Gender" />
|
||||
<ScalarProperty Name="Name" ColumnName="Name" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
<AssociationConnector Association="Model.FK_transfer_register_actItem" />
|
||||
<AssociationConnector Association="Model.FK_transfer_register_pro_order_detail" />
|
||||
<AssociationConnector Association="Model.FK_pro_order_record_transfer_register" />
|
||||
<EntityTypeShape EntityType="Model.GuaDanOrder" Width="1.5" PointX="13.375" PointY="21.25" />
|
||||
<EntityTypeShape EntityType="Model.GuaDanOrderGuest" Width="2.125" PointX="30.375" PointY="13.75" />
|
||||
<EntityTypeShape EntityType="Model.GuadanTimeSetting" Width="1.5" PointX="21.375" PointY="9.125" />
|
||||
<EntityTypeShape EntityType="Model.Region" Width="1.5" PointX="23.625" PointY="3.875" />
|
||||
<EntityTypeShape EntityType="Model.RegionAndRoomAndBedSchedule" Width="1.5" PointX="23.375" PointY="9.125" />
|
||||
<EntityTypeShape EntityType="Model.RegionRoomBed" Width="2.125" PointX="28.125" PointY="4.625" />
|
||||
<EntityTypeShape EntityType="Model.RegionRoomBedStatus" Width="1.5" PointX="25.875" PointY="0.75" />
|
||||
<EntityTypeShape EntityType="Model.RegionType" Width="1.5" PointX="21.375" PointY="4.875" />
|
||||
<EntityTypeShape EntityType="Model.Room" Width="1.5" PointX="25.875" PointY="4.375" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrder_Admin_CreateUser" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrder_Followers" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_FOLLOWERS" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_BedUuid" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_RoomUuid" />
|
||||
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_Status" />
|
||||
<AssociationConnector Association="Model.FK_Region_ParentUuid" />
|
||||
<AssociationConnector Association="Model.FK_Region_RegionTypeUuid" />
|
||||
<AssociationConnector Association="Model.FK_Room_Region" />
|
||||
<AssociationConnector Association="Model.FK_RegionRoomBed_RegionRoomBedStatus" />
|
||||
<AssociationConnector Association="Model.FK_RegionRoomBed_RoomUuid" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
|
||||
@@ -36,7 +36,7 @@ public class ShuWenController : ApiController
|
||||
{
|
||||
return BadRequest("請提供有效的 activitynum 參數。");
|
||||
}
|
||||
var shuwen = _db.ShuWens.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
var shuwen = _db.ShuWen.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
if(shuwen == null)
|
||||
{
|
||||
return Ok(new { message = "1", data = shuwen, latest = false });
|
||||
@@ -53,7 +53,7 @@ public class ShuWenController : ApiController
|
||||
{
|
||||
return BadRequest("請提供有效的 activitynum 參數。");
|
||||
}
|
||||
var shuwen = _db.ShuWens.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
var shuwen = _db.ShuWen.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
if (shuwen == null)
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
@@ -62,7 +62,7 @@ public class ShuWenController : ApiController
|
||||
shuwen.CreateTime = now;
|
||||
shuwen.UpdateTime = now;
|
||||
shuwen.IsGenerating = true;
|
||||
_db.ShuWens.Add(shuwen);
|
||||
_db.ShuWen.Add(shuwen);
|
||||
}
|
||||
else if (shuwen.IsGenerating)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ public class ShuWenController : ApiController
|
||||
[Route("api/shuwen/download")]
|
||||
public HttpResponseMessage DownloadShuWenWord(int? activitynum)
|
||||
{
|
||||
var data = _db.ShuWens.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
var data = _db.ShuWen.Where(a => a.ActivityNum == activitynum).FirstOrDefault();
|
||||
if (data == null)
|
||||
{
|
||||
//return;
|
||||
|
||||
@@ -46,7 +46,7 @@ public class guadanOrderController: ApiController
|
||||
var result = new
|
||||
{
|
||||
order.admin,
|
||||
order.followers,
|
||||
order.follower,
|
||||
StartDate = order.StartDate?.ToString("yyyy-MM-dd"),
|
||||
EndDate = order.EndDate?.ToString("yyyy-MM-dd"),
|
||||
order.CreateUser,
|
||||
|
||||
@@ -44,7 +44,7 @@ public class guadanOrderGuestController: ApiController
|
||||
roomName = a.Room.Name,
|
||||
bedName = a.RegionRoomBed.Name,
|
||||
orderNo = a.GuaDanOrderNo,
|
||||
follower = a.followers,
|
||||
follower = a.follower,
|
||||
statusUuid = a.statusUuid,
|
||||
statusName = a.RegionRoomBedStatus?.Name,
|
||||
}).ToList();
|
||||
|
||||
@@ -33,13 +33,13 @@ public class guadanStatisticsController: ApiController
|
||||
|
||||
var guadanTotalCount = await _db.GuaDanOrder.Where(a => a.IsDeleted == false).CountAsync();
|
||||
var guadanPeopleTotal = await _db.GuaDanOrderGuest.Where(a => a.IsDeleted == false).CountAsync();
|
||||
var guadanPeopleMale = await _db.GuaDanOrderGuest.Where(a => a.IsDeleted == false && a.followers.sex == "男眾").CountAsync();
|
||||
var guadanPeopleFemale = await _db.GuaDanOrderGuest.Where(a => a.IsDeleted == false && a.followers.sex == "女眾").CountAsync();
|
||||
var guadanPeopleMale = await _db.GuaDanOrderGuest.Where(a => a.IsDeleted == false && a.follower.sex == "男眾").CountAsync();
|
||||
var guadanPeopleFemale = await _db.GuaDanOrderGuest.Where(a => a.IsDeleted == false && a.follower.sex == "女眾").CountAsync();
|
||||
dynamic bedCounts = await RegionAndRoomAndBedSchedule.GetAvailableBedCountsAsync(_db, DateTime.Now, DateTime.Now);
|
||||
var guadanCurrentCount = await _db.GuaDanOrder.Where(a => now < a.EndDate).CountAsync();
|
||||
var guadanPeopleCurrent = await _db.GuaDanOrderGuest.Where( a => a.CheckOutAt > now).CountAsync();
|
||||
var guadanPeopleCurrentMale = await _db.GuaDanOrderGuest.Where(a => a.CheckOutAt > now && a.followers.sex == "男眾").CountAsync();
|
||||
var guadanPeopleCurrentFemale = await _db.GuaDanOrderGuest.Where(a => a.CheckOutAt > now && a.followers.sex == "女眾").CountAsync();
|
||||
var guadanPeopleCurrentMale = await _db.GuaDanOrderGuest.Where(a => a.CheckOutAt > now && a.follower.sex == "男眾").CountAsync();
|
||||
var guadanPeopleCurrentFemale = await _db.GuaDanOrderGuest.Where(a => a.CheckOutAt > now && a.follower.sex == "女眾").CountAsync();
|
||||
|
||||
var result = new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user