Browse Source

知识库

duhongyu 5 years ago
parent
commit
610d048066

+ 13 - 0
代码/System.IRepositories/IRepositoryCategoryRepository.cs

@@ -0,0 +1,13 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Common;
4
+using System.Model;
5
+using System.Text;
6
+
7
+namespace System.IRepositories
8
+{
9
+ 
10
+    public interface IRepositoryCategoryRepository : IRepository<T_RepositoryCategory>
11
+    {
12
+    }
13
+}

+ 13 - 0
代码/System.IRepositories/IRepositoryInformationRepository.cs

@@ -0,0 +1,13 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Common;
4
+using System.Model;
5
+using System.Text;
6
+
7
+namespace System.IRepositories
8
+{
9
+  
10
+    public interface IRepositoryInformationRepository : IRepository<T_RepositoryInformation>
11
+    {
12
+    }
13
+}

+ 152 - 0
代码/System.Model/T_RepositoryCategory.cs

@@ -0,0 +1,152 @@
1
+using System;
2
+namespace System.Model
3
+{
4
+
5
+        /// <summary>
6
+        /// T_RepositoryCategory:实体类(属性说明自动提取数据库字段的描述信息)
7
+        /// </summary>
8
+        [Serializable]
9
+        public partial class T_RepositoryCategory
10
+        {
11
+            public T_RepositoryCategory()
12
+            { }
13
+            #region Model
14
+            private int _f_categoryid;
15
+            private string _f_categorynumber;
16
+            private string _f_categoryname;
17
+            private string _f_categoryename;
18
+            private int? _f_layer;
19
+            private int? _f_parentid;
20
+            private int? _f_categorytype;
21
+            private int? _f_candelete;
22
+            private int? _f_iscommon = 0;
23
+            private int? _f_sort = 0;
24
+            private string _f_expand1;
25
+            private string _f_expand2;
26
+            private DateTime? _f_createon;
27
+            private int? _f_createby;
28
+            private int? _f_deleteflag = 0;
29
+            /// <summary>
30
+            /// 
31
+            /// </summary>
32
+            public int F_CategoryId
33
+            {
34
+                set { _f_categoryid = value; }
35
+                get { return _f_categoryid; }
36
+            }
37
+            /// <summary>
38
+            /// 
39
+            /// </summary>
40
+            public string F_CategoryNumber
41
+            {
42
+                set { _f_categorynumber = value; }
43
+                get { return _f_categorynumber; }
44
+            }
45
+            /// <summary>
46
+            /// 
47
+            /// </summary>
48
+            public string F_CategoryName
49
+            {
50
+                set { _f_categoryname = value; }
51
+                get { return _f_categoryname; }
52
+            }
53
+            /// <summary>
54
+            /// 
55
+            /// </summary>
56
+            public string F_CategoryEName
57
+            {
58
+                set { _f_categoryename = value; }
59
+                get { return _f_categoryename; }
60
+            }
61
+            /// <summary>
62
+            /// 
63
+            /// </summary>
64
+            public int? F_Layer
65
+            {
66
+                set { _f_layer = value; }
67
+                get { return _f_layer; }
68
+            }
69
+            /// <summary>
70
+            /// 
71
+            /// </summary>
72
+            public int? F_ParentId
73
+            {
74
+                set { _f_parentid = value; }
75
+                get { return _f_parentid; }
76
+            }
77
+            /// <summary>
78
+            /// F_CategoryType=1为工单类型
79
+            /// </summary>
80
+            public int? F_CategoryType
81
+            {
82
+                set { _f_categorytype = value; }
83
+                get { return _f_categorytype; }
84
+            }
85
+            /// <summary>
86
+            /// 
87
+            /// </summary>
88
+            public int? F_CanDelete
89
+            {
90
+                set { _f_candelete = value; }
91
+                get { return _f_candelete; }
92
+            }
93
+            /// <summary>
94
+            /// 
95
+            /// </summary>
96
+            public int? F_IsCommon
97
+            {
98
+                set { _f_iscommon = value; }
99
+                get { return _f_iscommon; }
100
+            }
101
+            /// <summary>
102
+            /// 
103
+            /// </summary>
104
+            public int? F_Sort
105
+            {
106
+                set { _f_sort = value; }
107
+                get { return _f_sort; }
108
+            }
109
+            /// <summary>
110
+            /// 
111
+            /// </summary>
112
+            public string F_Expand1
113
+            {
114
+                set { _f_expand1 = value; }
115
+                get { return _f_expand1; }
116
+            }
117
+            /// <summary>
118
+            /// 
119
+            /// </summary>
120
+            public string F_Expand2
121
+            {
122
+                set { _f_expand2 = value; }
123
+                get { return _f_expand2; }
124
+            }
125
+            /// <summary>
126
+            /// 
127
+            /// </summary>
128
+            public DateTime? F_CreateOn
129
+            {
130
+                set { _f_createon = value; }
131
+                get { return _f_createon; }
132
+            }
133
+            /// <summary>
134
+            /// 
135
+            /// </summary>
136
+            public int? F_CreateBy
137
+            {
138
+                set { _f_createby = value; }
139
+                get { return _f_createby; }
140
+            }
141
+            /// <summary>
142
+            /// 
143
+            /// </summary>
144
+            public int? F_DeleteFlag
145
+            {
146
+                set { _f_deleteflag = value; }
147
+                get { return _f_deleteflag; }
148
+            }
149
+            #endregion Model
150
+        }
151
+    
152
+}

+ 213 - 0
代码/System.Model/T_RepositoryInformation.cs

@@ -0,0 +1,213 @@
1
+using System;
2
+namespace System.Model
3
+{
4
+    /// <summary>
5
+    /// T_RepositoryInformation:实体类(属性说明自动提取数据库字段的描述信息)
6
+    /// </summary>
7
+    [Serializable]
8
+    public partial class T_RepositoryInformation
9
+    {
10
+        public T_RepositoryInformation()
11
+        { }
12
+        #region Model
13
+        private int _f_repositoryid;
14
+        private int? _f_categoryid;
15
+        private int? _f_customerid;
16
+        private string _f_customername;
17
+        private int? _f_manid;
18
+        private string _f_manname;
19
+        private string _f_title;
20
+        private string _f_content;
21
+        private string _f_description;
22
+        private string _f_comments;
23
+        private string _f_url;
24
+        private string _f_keywords;
25
+        private string _f_expand1;
26
+        private string _f_expand2;
27
+        private int? _f_intexpand1;
28
+        private DateTime? _f_createon;
29
+        private int? _f_createby;
30
+        private string _f_createname;
31
+        private DateTime? _f_modifyon;
32
+        private int? _f_modifyby;
33
+        private string _f_modifyname;
34
+        private int _f_deleteflag = 0;
35
+        /// <summary>
36
+        /// 
37
+        /// </summary>
38
+        public int F_RepositoryId
39
+        {
40
+            set { _f_repositoryid = value; }
41
+            get { return _f_repositoryid; }
42
+        }
43
+        /// <summary>
44
+        /// 
45
+        /// </summary>
46
+        public int? F_CategoryId
47
+        {
48
+            set { _f_categoryid = value; }
49
+            get { return _f_categoryid; }
50
+        }
51
+        /// <summary>
52
+        /// 
53
+        /// </summary>
54
+        public int? F_CustomerId
55
+        {
56
+            set { _f_customerid = value; }
57
+            get { return _f_customerid; }
58
+        }
59
+        /// <summary>
60
+        /// 
61
+        /// </summary>
62
+        public string F_CustomerName
63
+        {
64
+            set { _f_customername = value; }
65
+            get { return _f_customername; }
66
+        }
67
+        /// <summary>
68
+        /// 
69
+        /// </summary>
70
+        public int? F_ManId
71
+        {
72
+            set { _f_manid = value; }
73
+            get { return _f_manid; }
74
+        }
75
+        /// <summary>
76
+        /// 
77
+        /// </summary>
78
+        public string F_ManName
79
+        {
80
+            set { _f_manname = value; }
81
+            get { return _f_manname; }
82
+        }
83
+        /// <summary>
84
+        /// 
85
+        /// </summary>
86
+        public string F_Title
87
+        {
88
+            set { _f_title = value; }
89
+            get { return _f_title; }
90
+        }
91
+        /// <summary>
92
+        /// 
93
+        /// </summary>
94
+        public string F_Content
95
+        {
96
+            set { _f_content = value; }
97
+            get { return _f_content; }
98
+        }
99
+        /// <summary>
100
+        /// 
101
+        /// </summary>
102
+        public string F_Description
103
+        {
104
+            set { _f_description = value; }
105
+            get { return _f_description; }
106
+        }
107
+        /// <summary>
108
+        /// 
109
+        /// </summary>
110
+        public string F_Comments
111
+        {
112
+            set { _f_comments = value; }
113
+            get { return _f_comments; }
114
+        }
115
+        /// <summary>
116
+        /// 
117
+        /// </summary>
118
+        public string F_Url
119
+        {
120
+            set { _f_url = value; }
121
+            get { return _f_url; }
122
+        }
123
+        /// <summary>
124
+        /// 
125
+        /// </summary>
126
+        public string F_KeyWords
127
+        {
128
+            set { _f_keywords = value; }
129
+            get { return _f_keywords; }
130
+        }
131
+        /// <summary>
132
+        /// 
133
+        /// </summary>
134
+        public string F_Expand1
135
+        {
136
+            set { _f_expand1 = value; }
137
+            get { return _f_expand1; }
138
+        }
139
+        /// <summary>
140
+        /// 
141
+        /// </summary>
142
+        public string F_Expand2
143
+        {
144
+            set { _f_expand2 = value; }
145
+            get { return _f_expand2; }
146
+        }
147
+        /// <summary>
148
+        /// 
149
+        /// </summary>
150
+        public int? F_IntExpand1
151
+        {
152
+            set { _f_intexpand1 = value; }
153
+            get { return _f_intexpand1; }
154
+        }
155
+        /// <summary>
156
+        /// 
157
+        /// </summary>
158
+        public DateTime? F_CreateOn
159
+        {
160
+            set { _f_createon = value; }
161
+            get { return _f_createon; }
162
+        }
163
+        /// <summary>
164
+        /// 
165
+        /// </summary>
166
+        public int? F_CreateBy
167
+        {
168
+            set { _f_createby = value; }
169
+            get { return _f_createby; }
170
+        }
171
+        /// <summary>
172
+        /// 
173
+        /// </summary>
174
+        public string F_CreateName
175
+        {
176
+            set { _f_createname = value; }
177
+            get { return _f_createname; }
178
+        }
179
+        /// <summary>
180
+        /// 
181
+        /// </summary>
182
+        public DateTime? F_ModifyOn
183
+        {
184
+            set { _f_modifyon = value; }
185
+            get { return _f_modifyon; }
186
+        }
187
+        /// <summary>
188
+        /// 
189
+        /// </summary>
190
+        public int? F_ModifyBy
191
+        {
192
+            set { _f_modifyby = value; }
193
+            get { return _f_modifyby; }
194
+        }
195
+        /// <summary>
196
+        /// 
197
+        /// </summary>
198
+        public string F_ModifyName
199
+        {
200
+            set { _f_modifyname = value; }
201
+            get { return _f_modifyname; }
202
+        }
203
+        /// <summary>
204
+        /// 
205
+        /// </summary>
206
+        public int F_DeleteFlag
207
+        {
208
+            set { _f_deleteflag = value; }
209
+            get { return _f_deleteflag; }
210
+        }
211
+        #endregion Model
212
+    }
213
+}

+ 14 - 0
代码/System.Repositories/RepositoryCategoryRepository.cs

@@ -0,0 +1,14 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+using System.IRepositories;
5
+using System.Model;
6
+using System.Common;
7
+
8
+namespace System.Repositories
9
+{
10
+  
11
+    public class RepositoryCategoryRepository : BaseRepository<T_RepositoryCategory>, IRepositoryCategoryRepository
12
+    {
13
+    }
14
+}

+ 15 - 0
代码/System.Repositories/RepositoryInformationRepository.cs

@@ -0,0 +1,15 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+using System.IRepositories;
5
+using System.Model;
6
+using System.Common;
7
+
8
+namespace System.Repositories
9
+{
10
+
11
+    public class    RepositoryInformationRepository
12
+ : BaseRepository<T_RepositoryInformation>, IRepositoryInformationRepository
13
+    {
14
+    }
15
+}

+ 2 - 2
代码/TVShoppingCallCenter_ZLJ/Controllers/ManagementCenter/TodoManagementController.cs

@@ -55,7 +55,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.ManagementCenter
55 55
             if (res > 0)
56 56
             {    try
57 57
                 {
58
-                    bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, title, count, user, DateTime.Parse(input.F_Remindertime.ToString()) , 1, 1, 0, user, 1);
58
+                    bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, title, count, user, DateTime.Parse(input.F_Remindertime.ToString()) , 3, 1, 0, user, 1);
59 59
                 }
60 60
                 catch
61 61
                 {
@@ -116,7 +116,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.ManagementCenter
116 116
                     }
117 117
                     else
118 118
                     {
119
-                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, title, count, user, DateTime.Parse(input.F_Remindertime.ToString()), 1, 1, 0, user, 1);
119
+                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, title, count, user, DateTime.Parse(input.F_Remindertime.ToString()), 3, 1, 0, user, 1);
120 120
                     }
121 121
                   
122 122
                 }

+ 4 - 4
代码/TVShoppingCallCenter_ZLJ/Controllers/TaskManagement/TaskManagementController.cs

@@ -75,11 +75,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.TaskManagement
75 75
                     if (input .F_Tasker >0)
76 76
                     {
77 77
                         string usercode = _sys_useraccountRepository.GetSingle(x => x.F_UserId == input.F_Tasker).Result.F_UserCode;
78
-                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, "任务提醒", input.F_Name + "任务提醒", user, time, 1, 1, 0, usercode, 1);
78
+                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, "任务提醒", input.F_Name + "任务提醒", user, time, 2, 1, 0, usercode, 1);
79 79
                     }
80 80
                     else
81 81
                     {
82
-                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, "任务提醒", input.F_Name + "任务提醒", user, time, 1, 1, int.Parse(input.F_Deptid.Split(',')[input.F_Deptid.Split(',').Length - 1]), "", 0);
82
+                        bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(res, "任务提醒", input.F_Name + "任务提醒", user, time, 2, 1, int.Parse(input.F_Deptid.Split(',')[input.F_Deptid.Split(',').Length - 1]), "", 0);
83 83
                     }
84 84
                    
85 85
                 }
@@ -171,11 +171,11 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.TaskManagement
171 171
                         if (input.F_Tasker > 0)
172 172
                         {
173 173
                             string usercode = _sys_useraccountRepository.GetSingle(x => x.F_UserId == input.F_Tasker).Result.F_UserCode;
174
-                            bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, "任务提醒", input.F_Name + "任务提醒", user, time, 1, 1, 0, usercode, 1);
174
+                            bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, "任务提醒", input.F_Name + "任务提醒", user, time, 2, 1, 0, usercode, 1);
175 175
                         }
176 176
                         else
177 177
                         {
178
-                            bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, "任务提醒", input.F_Name + "任务提醒", user, time, 1, 1, int.Parse(input.F_Deptid.Split(',')[input.F_Deptid.Split(',').Length - 1]), "", 0);
178
+                            bool n = new InternalMessages.InternalMessagesController(_sys_internalMessagesrepository, _sys_useraccountRepository).AddInternalMessagesInfo(model.F_ID, "任务提醒", input.F_Name + "任务提醒", user, time, 2, 1, int.Parse(input.F_Deptid.Split(',')[input.F_Deptid.Split(',').Length - 1]), "", 0);
179 179
                         }
180 180
                     }
181 181
                     catch

+ 16 - 0
代码/TVShoppingCallCenter_ZLJ/Controllers/knowledge/KnowledgeClassController.cs

@@ -0,0 +1,16 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Threading.Tasks;
5
+using Microsoft.AspNetCore.Mvc;
6
+
7
+namespace TVShoppingCallCenter_ZLJ.Controllers.knowledge
8
+{
9
+    public class KnowledgeClassController : Controller
10
+    {
11
+        public IActionResult Index()
12
+        {
13
+            return View();
14
+        }
15
+    }
16
+}