zhaozhiqiang 5 anni fa
parent
commit
62426095a4

+ 45 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Model/Dto/equipmentmanagementlist.cs

@@ -0,0 +1,45 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+namespace TestUserTypeApi.Model.Dto
6
+{
7
+   public  class equipmentmanagementlist
8
+    {
9
+        public string id { get; set; }
10
+        /// <summary>
11
+        /// 设备编号
12
+        /// </summary>
13
+        public string equipmentmanagementsid { get; set; }
14
+
15
+        /// <summary>
16
+        /// 设备名称
17
+        /// </summary>
18
+        public string equipmentmanagementsname { get; set; }
19
+        /// <summary>
20
+        /// 状态  0 闲置、 1在用、 2故障、 3等待维修
21
+        /// </summary>
22
+        public string equipmentmanagementstate { get; set; }
23
+        /// <summary>
24
+        /// 申请科室
25
+        /// </summary>
26
+        public string Qdepartment { get; set; }
27
+        /// <summary>
28
+        /// 申请时间
29
+        /// </summary>
30
+        public DateTime? Qqtime { get; set; }
31
+
32
+        /// <summary>
33
+        /// 出库时间
34
+        /// </summary>
35
+        public DateTime? Cktime { get; set; }
36
+        /// <summary>
37
+        /// 入库时间
38
+        /// </summary>
39
+        public DateTime? Rktime { get; set; }
40
+        /// <summary>
41
+        /// 是否删除
42
+        /// </summary>
43
+        public int isdelete { get; set; }
44
+    }
45
+}

+ 24 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Model/Dto/equipmentmanagements.cs

@@ -0,0 +1,24 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+namespace TestUserTypeApi.Model.Dto
6
+{
7
+   public  class equipmentmanagements
8
+    {
9
+        public string id { get; set; }
10
+        /// <summary>
11
+        /// 名称
12
+        /// </summary>
13
+        public string equipmentmanagementsname { get; set; }
14
+        /// <summary>
15
+        /// 状态  0 闲置、 1在用、 2故障、 3等待维修
16
+        /// </summary>
17
+        public string equipmentmanagementstate { get; set; }
18
+
19
+        /// <summary>
20
+        /// 是否删除
21
+        /// </summary>
22
+        public int isdelete { get; set; }
23
+    }
24
+}

+ 27 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Model/Dto/patient.cs

@@ -0,0 +1,27 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+namespace TestUserTypeApi.Model.Dto
6
+{
7
+    /// <summary>
8
+    /// 患者表
9
+    /// </summary>
10
+   public   class patient
11
+    {
12
+        public string id { get; set; }
13
+        /// <summary>
14
+        /// 患者姓名
15
+        /// </summary>
16
+        public string name { get; set; }
17
+
18
+        /// <summary>
19
+        /// 主治医生医生编号
20
+        /// </summary>
21
+        public string doctorid { get; set; }
22
+        /// <summary>
23
+        /// 主治医生姓名
24
+        /// </summary>
25
+        public string doctorname { get; set; }
26
+    }
27
+}

+ 24 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Repositories/equipmentmanagementlistRepository.cs

@@ -0,0 +1,24 @@
1
+using MadRunFabric.Common;
2
+using MadRunFabric.Common.Options;
3
+using MadRunFabric.Model.TestUserTypeApi;
4
+using Microsoft.Extensions.Logging;
5
+using Microsoft.Extensions.Options;
6
+using MongoDB.Driver;
7
+using System;
8
+using System.Collections.Generic;
9
+using System.Text;
10
+using TestUserTypeApi.IRepositories;
11
+
12
+namespace TestUserTypeApi.Repositories
13
+{
14
+  public   class equipmentmanagementlistRepository : BaseRepository<equipmentmanagementlist, string>, IequipmentmanagementlistRepository
15
+    {
16
+        protected readonly ILogger<BaseRepository<equipmentmanagementlist, string>> _logger;
17
+        protected readonly IMongoCollection<equipmentmanagementlist> _collection_MassageInfo;
18
+        public equipmentmanagementlistRepository(IOptions<MongodbOptions> settings, ILogger<BaseRepository<equipmentmanagementlist, string>> logger) : base(settings, logger)
19
+        {
20
+            _collection_MassageInfo = _context.GetCollection<equipmentmanagementlist>();
21
+            _logger = logger;
22
+        }
23
+    }
24
+}

+ 24 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Repositories/equipmentmanagementsRepository.cs

@@ -0,0 +1,24 @@
1
+using MadRunFabric.Common;
2
+using MadRunFabric.Common.Options;
3
+using MadRunFabric.Model.TestUserTypeApi;
4
+using Microsoft.Extensions.Logging;
5
+using Microsoft.Extensions.Options;
6
+using MongoDB.Driver;
7
+using System;
8
+using System.Collections.Generic;
9
+using System.Text;
10
+using TestUserTypeApi.IRepositories;
11
+
12
+namespace TestUserTypeApi.Repositories
13
+{
14
+   public  class equipmentmanagementsRepository : BaseRepository<equipmentmanagements, string>, IequipmentmanagementsRepository
15
+    {
16
+        protected readonly ILogger<BaseRepository<equipmentmanagements, string>> _logger;
17
+        protected readonly IMongoCollection<equipmentmanagements> _collection_MassageInfo;
18
+        public equipmentmanagementsRepository(IOptions<MongodbOptions> settings, ILogger<BaseRepository<equipmentmanagements, string>> logger) : base(settings, logger)
19
+        {
20
+            _collection_MassageInfo = _context.GetCollection<equipmentmanagements>();
21
+            _logger = logger;
22
+        }
23
+    }
24
+}

+ 24 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Repositories/patientRepository.cs

@@ -0,0 +1,24 @@
1
+using MadRunFabric.Common;
2
+using MadRunFabric.Common.Options;
3
+using MadRunFabric.Model.TestUserTypeApi;
4
+using Microsoft.Extensions.Logging;
5
+using Microsoft.Extensions.Options;
6
+using MongoDB.Driver;
7
+using System;
8
+using System.Collections.Generic;
9
+using System.Text;
10
+using TestUserTypeApi.IRepositories;
11
+
12
+namespace TestUserTypeApi.Repositories
13
+{
14
+  public   class patientRepository : BaseRepository<patient, string>, IpatientRepository
15
+    {
16
+        protected readonly ILogger<BaseRepository<patient, string>> _logger;
17
+        protected readonly IMongoCollection<patient> _collection_MassageInfo;
18
+        public patientRepository(IOptions<MongodbOptions> settings, ILogger<BaseRepository<patient, string>> logger) : base(settings, logger)
19
+        {
20
+            _collection_MassageInfo = _context.GetCollection<patient>();
21
+            _logger = logger;
22
+        }
23
+    }
24
+}