Pārlūkot izejas kodu

新增 司兼导,导游,车,景点 数据表及实体类

leiy 2 gadi atpakaļ
vecāks
revīzija
a73fc3130e

+ 8 - 4
OASystem/EntitySync/Program.cs

@@ -62,9 +62,13 @@ db.CodeFirst.SetStringDefaultLength(50).BackupTable().InitTables(new Type[]
     //typeof(Grp_HotelReservations),
     //typeof(Grp_VisaProgress),
     //typeof(Grp_DeleClientNeeds),
-    typeof(Res_AirCompany),
-    typeof(Res_AirTicketAgent),
-    typeof(Res_HotelData),
-    typeof(Res_ThreeCode)
+    //typeof(Res_AirCompany),
+    //typeof(Res_AirTicketAgent),
+    //typeof(Res_HotelData),
+    //typeof(Res_ThreeCode)
+    //typeof(Res_ScenicSpotInfo),
+    //typeof(Res_CarGuides),
+    //typeof(Res_CarInfo),
+    //typeof(Res_GuidesInfo)
 });
 Console.WriteLine("数据库结构同步完成!");

+ 77 - 0
OASystem/OASystem.Domain/Entities/Resource/Res_CarGuides.cs

@@ -0,0 +1,77 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.Entities.Resource
+{
+    /// <summary>
+    /// 
+    /// 团组成本 司兼导资料表
+    /// </summary>
+    [SugarTable("Res_CarGuides")]
+    public class Res_CarGuides : EntityBase
+    {
+        /// <summary>
+        /// 国家
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string Country { get; set; }
+
+        /// <summary>
+        /// 城市
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string City { get; set; }
+
+        /// <summary>
+        /// 服务类型
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string ServiceType { get; set; }
+
+        /// <summary>
+        /// 车类型
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string CarType { get; set; }
+
+        /// <summary>
+        /// 用车报价
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "decimal(10,2)")]
+        public decimal Offer { get; set; }
+
+        /// <summary>
+        /// 司兼导费用
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "decimal(10,2)")]
+        public decimal CGCost { get; set; }
+
+        /// <summary>
+        /// 用车时长
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
+        public int RuningTime { get; set; }
+
+        /// <summary>
+        /// 车超时费用/时
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "decimal(10,2)")]
+        public decimal OvertimeFee { get; set; }
+
+        /// <summary>
+        /// 司兼导超时费/时
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal CGOvertimeFee { get; set; }
+
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "varchar(10)")]
+        public string Currency { get; set; }
+
+    }
+}

+ 62 - 0
OASystem/OASystem.Domain/Entities/Resource/Res_CarInfo.cs

@@ -0,0 +1,62 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.Entities.Resource
+{
+    /// <summary>
+    /// 团组数据 车数据
+    /// </summary>
+    public class Res_CarInfo :EntityBase
+    {
+        /// <summary>
+        /// 国家
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string Country { get; set; }
+
+        /// <summary>
+        /// 城市
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string City { get; set; }
+
+        /// <summary>
+        /// 服务类型
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string ServiceType { get; set; }
+
+        /// <summary>
+        /// 车类型
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string CarType { get; set; }
+
+        /// <summary>
+        /// 用车时长
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
+        public int RuningTime { get; set; }
+
+        /// <summary>
+        /// 用车报价
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal Price { get; set; }
+
+        /// <summary>
+        /// 车超时费用/时
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal OvertimeFee { get; set; }
+
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(10)")]
+        public string Currency { get; set; }
+    }
+}

+ 62 - 0
OASystem/OASystem.Domain/Entities/Resource/Res_GuidesInfo.cs

@@ -0,0 +1,62 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.Entities.Resource
+{
+    /// <summary>
+    /// 团组数据 导游数据
+    /// </summary>
+    public class Res_GuidesInfo:EntityBase
+    {
+        /// <summary>
+        /// 国家
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "varchar(50)")]
+        public string Country { get; set; }
+
+        /// <summary>
+        /// 城市
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "varchar(50)")]
+        public string City { get; set; }
+
+        /// <summary>
+        ///导游服务类型
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string ServiceType { get; set; }
+
+        /// <summary>
+        /// 工作时间
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "int")]
+        public int When { get; set; }
+
+        /// <summary>
+        /// 导游工资
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal Price { get; set; }
+
+        /// <summary>
+        /// 翻译工资
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "decimal(10,2)")]
+        public decimal TranslationPrice { get; set; }
+
+        /// <summary>
+        /// 超时费用
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "decimal(10,2)")]
+        public decimal OvertimeFee { get; set; }
+
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [SugarColumn(IsNullable = true,ColumnDataType = "varchar(10)")]
+        public string Currency { get; set; }
+    }
+}

+ 61 - 0
OASystem/OASystem.Domain/Entities/Resource/Res_ScenicSpotInfo.cs

@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace OASystem.Domain.Entities.Resource
+{
+    /// <summary>
+    /// 团组数据 景点数据
+    /// </summary>
+    public class Res_ScenicSpotInfo:EntityBase
+    {
+        /// <summary>
+        /// 国家
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string Country { get; set; }
+
+        /// <summary>
+        /// 城市
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
+        public string City { get; set; }
+
+        /// <summary>
+        /// 景点
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
+        public string ScenicSpot { get; set; }
+
+        /// <summary>
+        /// 景点项目描述
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
+        public string ScenicSpotDetail { get; set; }
+
+        /// <summary>
+        /// 景点价格
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal Price { get; set; }
+
+        /// <summary>
+        /// 汇率
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(10,2)")]
+        public decimal Rate { get; set; }
+
+        /// <summary>
+        /// 币种
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(10)")]
+        public string Currency { get; set; }
+        /// <summary>
+        /// 景点地址
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
+        public string Address { get; set; }
+    }
+}