Bladeren bron

新增知识库政策法规

zhoufan 4 jaren geleden
bovenliggende
commit
af049af6c2

+ 1 - 0
CallCenterApi/CallCenterApi.BLL/CallCenterApi.BLL.csproj

@@ -159,6 +159,7 @@
159 159
     <Compile Include="T_Web_WorkRelease.cs" />
160 160
     <Compile Include="T_Wiki_HotspotGlossary.cs" />
161 161
     <Compile Include="T_Wiki_LawGuide.cs" />
162
+    <Compile Include="T_Wiki_Policy.cs" />
162 163
     <Compile Include="T_Wiki_Professor.cs" />
163 164
     <Compile Include="UserAccount.cs" />
164 165
   </ItemGroup>

+ 128 - 0
CallCenterApi/CallCenterApi.BLL/T_Wiki_Policy.cs

@@ -0,0 +1,128 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using CallCenterApi.Model;
5
+namespace CallCenterApi.BLL
6
+{
7
+    /// <summary>
8
+    /// T_Wiki_Policy
9
+    /// </summary>
10
+    public partial class T_Wiki_Policy
11
+    {
12
+        private readonly CallCenterApi.DAL.T_Wiki_Policy dal = new CallCenterApi.DAL.T_Wiki_Policy();
13
+        public T_Wiki_Policy()
14
+        { }
15
+        #region  BasicMethod
16
+        /// <summary>
17
+        /// 是否存在该记录
18
+        /// </summary>
19
+        public bool Exists(int F_Id)
20
+        {
21
+            return dal.Exists(F_Id);
22
+        }
23
+
24
+        /// <summary>
25
+        /// 增加一条数据
26
+        /// </summary>
27
+        public int Add(CallCenterApi.Model.T_Wiki_Policy model)
28
+        {
29
+            return dal.Add(model);
30
+        }
31
+
32
+        /// <summary>
33
+        /// 更新一条数据
34
+        /// </summary>
35
+        public bool Update(CallCenterApi.Model.T_Wiki_Policy model)
36
+        {
37
+            return dal.Update(model);
38
+        }
39
+
40
+        /// <summary>
41
+        /// 删除一条数据
42
+        /// </summary>
43
+        public bool Delete(int F_Id)
44
+        {
45
+
46
+            return dal.Delete(F_Id);
47
+        }
48
+        /// <summary>
49
+        /// 删除一条数据
50
+        /// </summary>
51
+        public bool DeleteList(string F_Idlist)
52
+        {
53
+            return dal.DeleteList(F_Idlist);
54
+        }
55
+
56
+        /// <summary>
57
+        /// 得到一个对象实体
58
+        /// </summary>
59
+        public CallCenterApi.Model.T_Wiki_Policy GetModel(int F_Id)
60
+        {
61
+
62
+            return dal.GetModel(F_Id);
63
+        }
64
+
65
+        /// <summary>
66
+        /// 获得数据列表
67
+        /// </summary>
68
+        public DataSet GetList(string strWhere)
69
+        {
70
+            return dal.GetList(strWhere);
71
+        }
72
+        /// <summary>
73
+        /// 获得前几行数据
74
+        /// </summary>
75
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
76
+        {
77
+            return dal.GetList(Top, strWhere, filedOrder);
78
+        }
79
+        /// <summary>
80
+        /// 获得数据列表
81
+        /// </summary>
82
+        public List<CallCenterApi.Model.T_Wiki_Policy> GetModelList(string strWhere)
83
+        {
84
+            DataSet ds = dal.GetList(strWhere);
85
+            return DataTableToList(ds.Tables[0]);
86
+        }
87
+        /// <summary>
88
+        /// 获得数据列表
89
+        /// </summary>
90
+        public List<CallCenterApi.Model.T_Wiki_Policy> DataTableToList(DataTable dt)
91
+        {
92
+            List<CallCenterApi.Model.T_Wiki_Policy> modelList = new List<CallCenterApi.Model.T_Wiki_Policy>();
93
+            int rowsCount = dt.Rows.Count;
94
+            if (rowsCount > 0)
95
+            {
96
+                CallCenterApi.Model.T_Wiki_Policy model;
97
+                for (int n = 0; n < rowsCount; n++)
98
+                {
99
+                    model = dal.DataRowToModel(dt.Rows[n]);
100
+                    if (model != null)
101
+                    {
102
+                        modelList.Add(model);
103
+                    }
104
+                }
105
+            }
106
+            return modelList;
107
+        }
108
+
109
+        /// <summary>
110
+        /// 获得数据列表
111
+        /// </summary>
112
+        public DataSet GetAllList()
113
+        {
114
+            return GetList("");
115
+        }
116
+
117
+        /// <summary>
118
+        /// 分页获取数据列表
119
+        /// </summary>
120
+        public int GetRecordCount(string strWhere)
121
+        {
122
+            return dal.GetRecordCount(strWhere);
123
+        }
124
+
125
+        #endregion  BasicMethod
126
+    }
127
+}
128
+

+ 1 - 0
CallCenterApi/CallCenterApi.DAL/CallCenterApi.DAL.csproj

@@ -159,6 +159,7 @@
159 159
     <Compile Include="T_Web_WorkRelease.cs" />
160 160
     <Compile Include="T_Wiki_HotspotGlossary.cs" />
161 161
     <Compile Include="T_Wiki_LawGuide.cs" />
162
+    <Compile Include="T_Wiki_Policy.cs" />
162 163
     <Compile Include="T_Wiki_Professor.cs" />
163 164
     <Compile Include="UserAccount.cs" />
164 165
   </ItemGroup>

+ 417 - 0
CallCenterApi/CallCenterApi.DAL/T_Wiki_Policy.cs

@@ -0,0 +1,417 @@
1
+using System;
2
+using System.Data;
3
+using System.Text;
4
+using System.Data.SqlClient;
5
+using CallCenterApi.DB;
6
+
7
+namespace CallCenterApi.DAL
8
+{
9
+    /// <summary>
10
+    /// 数据访问类:T_Wiki_Policy
11
+    /// </summary>
12
+    public partial class T_Wiki_Policy
13
+    {
14
+        public T_Wiki_Policy()
15
+        { }
16
+        #region  BasicMethod
17
+        /// <summary>
18
+        /// 是否存在该记录
19
+        /// </summary>
20
+        public bool Exists(int F_Id)
21
+        {
22
+            StringBuilder strSql = new StringBuilder();
23
+            strSql.Append("select count(1) from T_Wiki_Policy with(nolock)");
24
+            strSql.Append(" where F_Id=@F_Id");
25
+            SqlParameter[] parameters = {
26
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)
27
+            };
28
+            parameters[0].Value = F_Id;
29
+
30
+            return DbHelperSQL.Exists(strSql.ToString(), parameters);
31
+        }
32
+
33
+
34
+        /// <summary>
35
+        /// 增加一条数据
36
+        /// </summary>
37
+        public int Add(CallCenterApi.Model.T_Wiki_Policy model)
38
+        {
39
+            StringBuilder strSql = new StringBuilder();
40
+            strSql.Append("insert into T_Wiki_Policy(");
41
+            strSql.Append("F_FaBuDanWei,F_FaBuRen,F_HangYe,F_DiQu,F_ShengXiaoShiJian,F_ShiXiaoShiJian,F_FaBuShiJian,F_Key,F_FaWenWenHao,F_FaWenDanWei,F_BiaoShiBianMa,F_ZhiNengBuMen,F_File,F_WenJianMingCheng,F_WenJianNeiRong,F_DianJiLiang,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime)");
42
+            strSql.Append(" values (");
43
+            strSql.Append("@F_FaBuDanWei,@F_FaBuRen,@F_HangYe,@F_DiQu,@F_ShengXiaoShiJian,@F_ShiXiaoShiJian,@F_FaBuShiJian,@F_Key,@F_FaWenWenHao,@F_FaWenDanWei,@F_BiaoShiBianMa,@F_ZhiNengBuMen,@F_File,@F_WenJianMingCheng,@F_WenJianNeiRong,@F_DianJiLiang,@F_CreateUser,@F_CreateTime,@F_IsDelete,@F_DeleteUser,@F_DeleteTime)");
44
+            strSql.Append(";select @@IDENTITY");
45
+            SqlParameter[] parameters = {
46
+                    new SqlParameter("@F_FaBuDanWei", SqlDbType.NVarChar,255),
47
+                    new SqlParameter("@F_FaBuRen", SqlDbType.NVarChar,50),
48
+                    new SqlParameter("@F_HangYe", SqlDbType.NVarChar,50),
49
+                    new SqlParameter("@F_DiQu", SqlDbType.NVarChar,50),
50
+                    new SqlParameter("@F_ShengXiaoShiJian", SqlDbType.DateTime),
51
+                    new SqlParameter("@F_ShiXiaoShiJian", SqlDbType.DateTime),
52
+                    new SqlParameter("@F_FaBuShiJian", SqlDbType.DateTime),
53
+                    new SqlParameter("@F_Key", SqlDbType.Int,4),
54
+                    new SqlParameter("@F_FaWenWenHao", SqlDbType.VarChar,50),
55
+                    new SqlParameter("@F_FaWenDanWei", SqlDbType.NVarChar,255),
56
+                    new SqlParameter("@F_BiaoShiBianMa", SqlDbType.VarChar,50),
57
+                    new SqlParameter("@F_ZhiNengBuMen", SqlDbType.NVarChar,255),
58
+                    new SqlParameter("@F_File", SqlDbType.VarChar,500),
59
+                    new SqlParameter("@F_WenJianMingCheng", SqlDbType.NVarChar,255),
60
+                    new SqlParameter("@F_WenJianNeiRong", SqlDbType.NVarChar,-1),
61
+                    new SqlParameter("@F_DianJiLiang", SqlDbType.BigInt,8),
62
+                    new SqlParameter("@F_CreateUser", SqlDbType.VarChar,50),
63
+                    new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
64
+                    new SqlParameter("@F_IsDelete", SqlDbType.Int,4),
65
+                    new SqlParameter("@F_DeleteUser", SqlDbType.VarChar,50),
66
+                    new SqlParameter("@F_DeleteTime", SqlDbType.DateTime)};
67
+            parameters[0].Value = model.F_FaBuDanWei;
68
+            parameters[1].Value = model.F_FaBuRen;
69
+            parameters[2].Value = model.F_HangYe;
70
+            parameters[3].Value = model.F_DiQu;
71
+            parameters[4].Value = model.F_ShengXiaoShiJian;
72
+            parameters[5].Value = model.F_ShiXiaoShiJian;
73
+            parameters[6].Value = model.F_FaBuShiJian;
74
+            parameters[7].Value = model.F_Key;
75
+            parameters[8].Value = model.F_FaWenWenHao;
76
+            parameters[9].Value = model.F_FaWenDanWei;
77
+            parameters[10].Value = model.F_BiaoShiBianMa;
78
+            parameters[11].Value = model.F_ZhiNengBuMen;
79
+            parameters[12].Value = model.F_File;
80
+            parameters[13].Value = model.F_WenJianMingCheng;
81
+            parameters[14].Value = model.F_WenJianNeiRong;
82
+            parameters[15].Value = model.F_DianJiLiang;
83
+            parameters[16].Value = model.F_CreateUser;
84
+            parameters[17].Value = model.F_CreateTime;
85
+            parameters[18].Value = model.F_IsDelete;
86
+            parameters[19].Value = model.F_DeleteUser;
87
+            parameters[20].Value = model.F_DeleteTime;
88
+
89
+            object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
90
+            if (obj == null)
91
+            {
92
+                return 0;
93
+            }
94
+            else
95
+            {
96
+                return Convert.ToInt32(obj);
97
+            }
98
+        }
99
+        /// <summary>
100
+        /// 更新一条数据
101
+        /// </summary>
102
+        public bool Update(CallCenterApi.Model.T_Wiki_Policy model)
103
+        {
104
+            StringBuilder strSql = new StringBuilder();
105
+            strSql.Append("update T_Wiki_Policy set ");
106
+            strSql.Append("F_FaBuDanWei=@F_FaBuDanWei,");
107
+            strSql.Append("F_FaBuRen=@F_FaBuRen,");
108
+            strSql.Append("F_HangYe=@F_HangYe,");
109
+            strSql.Append("F_DiQu=@F_DiQu,");
110
+            strSql.Append("F_ShengXiaoShiJian=@F_ShengXiaoShiJian,");
111
+            strSql.Append("F_ShiXiaoShiJian=@F_ShiXiaoShiJian,");
112
+            strSql.Append("F_FaBuShiJian=@F_FaBuShiJian,");
113
+            strSql.Append("F_Key=@F_Key,");
114
+            strSql.Append("F_FaWenWenHao=@F_FaWenWenHao,");
115
+            strSql.Append("F_FaWenDanWei=@F_FaWenDanWei,");
116
+            strSql.Append("F_BiaoShiBianMa=@F_BiaoShiBianMa,");
117
+            strSql.Append("F_ZhiNengBuMen=@F_ZhiNengBuMen,");
118
+            strSql.Append("F_File=@F_File,");
119
+            strSql.Append("F_WenJianMingCheng=@F_WenJianMingCheng,");
120
+            strSql.Append("F_WenJianNeiRong=@F_WenJianNeiRong,");
121
+            strSql.Append("F_DianJiLiang=@F_DianJiLiang,");
122
+            strSql.Append("F_CreateUser=@F_CreateUser,");
123
+            strSql.Append("F_CreateTime=@F_CreateTime,");
124
+            strSql.Append("F_IsDelete=@F_IsDelete,");
125
+            strSql.Append("F_DeleteUser=@F_DeleteUser,");
126
+            strSql.Append("F_DeleteTime=@F_DeleteTime");
127
+            strSql.Append(" where F_Id=@F_Id");
128
+            SqlParameter[] parameters = {
129
+                    new SqlParameter("@F_FaBuDanWei", SqlDbType.NVarChar,255),
130
+                    new SqlParameter("@F_FaBuRen", SqlDbType.NVarChar,50),
131
+                    new SqlParameter("@F_HangYe", SqlDbType.NVarChar,50),
132
+                    new SqlParameter("@F_DiQu", SqlDbType.NVarChar,50),
133
+                    new SqlParameter("@F_ShengXiaoShiJian", SqlDbType.DateTime),
134
+                    new SqlParameter("@F_ShiXiaoShiJian", SqlDbType.DateTime),
135
+                    new SqlParameter("@F_FaBuShiJian", SqlDbType.DateTime),
136
+                    new SqlParameter("@F_Key", SqlDbType.Int,4),
137
+                    new SqlParameter("@F_FaWenWenHao", SqlDbType.VarChar,50),
138
+                    new SqlParameter("@F_FaWenDanWei", SqlDbType.NVarChar,255),
139
+                    new SqlParameter("@F_BiaoShiBianMa", SqlDbType.VarChar,50),
140
+                    new SqlParameter("@F_ZhiNengBuMen", SqlDbType.NVarChar,255),
141
+                    new SqlParameter("@F_File", SqlDbType.VarChar,500),
142
+                    new SqlParameter("@F_WenJianMingCheng", SqlDbType.NVarChar,255),
143
+                    new SqlParameter("@F_WenJianNeiRong", SqlDbType.NVarChar,-1),
144
+                    new SqlParameter("@F_DianJiLiang", SqlDbType.BigInt,8),
145
+                    new SqlParameter("@F_CreateUser", SqlDbType.VarChar,50),
146
+                    new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
147
+                    new SqlParameter("@F_IsDelete", SqlDbType.Int,4),
148
+                    new SqlParameter("@F_DeleteUser", SqlDbType.VarChar,50),
149
+                    new SqlParameter("@F_DeleteTime", SqlDbType.DateTime),
150
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)};
151
+            parameters[0].Value = model.F_FaBuDanWei;
152
+            parameters[1].Value = model.F_FaBuRen;
153
+            parameters[2].Value = model.F_HangYe;
154
+            parameters[3].Value = model.F_DiQu;
155
+            parameters[4].Value = model.F_ShengXiaoShiJian;
156
+            parameters[5].Value = model.F_ShiXiaoShiJian;
157
+            parameters[6].Value = model.F_FaBuShiJian;
158
+            parameters[7].Value = model.F_Key;
159
+            parameters[8].Value = model.F_FaWenWenHao;
160
+            parameters[9].Value = model.F_FaWenDanWei;
161
+            parameters[10].Value = model.F_BiaoShiBianMa;
162
+            parameters[11].Value = model.F_ZhiNengBuMen;
163
+            parameters[12].Value = model.F_File;
164
+            parameters[13].Value = model.F_WenJianMingCheng;
165
+            parameters[14].Value = model.F_WenJianNeiRong;
166
+            parameters[15].Value = model.F_DianJiLiang;
167
+            parameters[16].Value = model.F_CreateUser;
168
+            parameters[17].Value = model.F_CreateTime;
169
+            parameters[18].Value = model.F_IsDelete;
170
+            parameters[19].Value = model.F_DeleteUser;
171
+            parameters[20].Value = model.F_DeleteTime;
172
+            parameters[21].Value = model.F_Id;
173
+
174
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
175
+            if (rows > 0)
176
+            {
177
+                return true;
178
+            }
179
+            else
180
+            {
181
+                return false;
182
+            }
183
+        }
184
+
185
+        /// <summary>
186
+        /// 删除一条数据
187
+        /// </summary>
188
+        public bool Delete(int F_Id)
189
+        {
190
+
191
+            StringBuilder strSql = new StringBuilder();
192
+            strSql.Append("delete from T_Wiki_Policy ");
193
+            strSql.Append(" where F_Id=@F_Id");
194
+            SqlParameter[] parameters = {
195
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)
196
+            };
197
+            parameters[0].Value = F_Id;
198
+
199
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
200
+            if (rows > 0)
201
+            {
202
+                return true;
203
+            }
204
+            else
205
+            {
206
+                return false;
207
+            }
208
+        }
209
+        /// <summary>
210
+        /// 批量删除数据
211
+        /// </summary>
212
+        public bool DeleteList(string F_Idlist)
213
+        {
214
+            StringBuilder strSql = new StringBuilder();
215
+            strSql.Append("delete from T_Wiki_Policy ");
216
+            strSql.Append(" where F_Id in (" + F_Idlist + ")  ");
217
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
218
+            if (rows > 0)
219
+            {
220
+                return true;
221
+            }
222
+            else
223
+            {
224
+                return false;
225
+            }
226
+        }
227
+
228
+
229
+        /// <summary>
230
+        /// 得到一个对象实体
231
+        /// </summary>
232
+        public CallCenterApi.Model.T_Wiki_Policy GetModel(int F_Id)
233
+        {
234
+
235
+            StringBuilder strSql = new StringBuilder();
236
+            strSql.Append("select  top 1 F_Id,F_FaBuDanWei,F_FaBuRen,F_HangYe,F_DiQu,F_ShengXiaoShiJian,F_ShiXiaoShiJian,F_FaBuShiJian,F_Key,F_FaWenWenHao,F_FaWenDanWei,F_BiaoShiBianMa,F_ZhiNengBuMen,F_File,F_WenJianMingCheng,F_WenJianNeiRong,F_DianJiLiang,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime from T_Wiki_Policy with(nolock)");
237
+            strSql.Append(" where F_Id=@F_Id");
238
+            SqlParameter[] parameters = {
239
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)
240
+            };
241
+            parameters[0].Value = F_Id;
242
+
243
+            CallCenterApi.Model.T_Wiki_Policy model = new CallCenterApi.Model.T_Wiki_Policy();
244
+            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
245
+            if (ds.Tables[0].Rows.Count > 0)
246
+            {
247
+                return DataRowToModel(ds.Tables[0].Rows[0]);
248
+            }
249
+            else
250
+            {
251
+                return null;
252
+            }
253
+        }
254
+
255
+
256
+        /// <summary>
257
+        /// 得到一个对象实体
258
+        /// </summary>
259
+        public CallCenterApi.Model.T_Wiki_Policy DataRowToModel(DataRow row)
260
+        {
261
+            CallCenterApi.Model.T_Wiki_Policy model = new CallCenterApi.Model.T_Wiki_Policy();
262
+            if (row != null)
263
+            {
264
+                if (row["F_Id"] != null && row["F_Id"].ToString() != "")
265
+                {
266
+                    model.F_Id = int.Parse(row["F_Id"].ToString());
267
+                }
268
+                if (row["F_FaBuDanWei"] != null)
269
+                {
270
+                    model.F_FaBuDanWei = row["F_FaBuDanWei"].ToString();
271
+                }
272
+                if (row["F_FaBuRen"] != null)
273
+                {
274
+                    model.F_FaBuRen = row["F_FaBuRen"].ToString();
275
+                }
276
+                if (row["F_HangYe"] != null)
277
+                {
278
+                    model.F_HangYe = row["F_HangYe"].ToString();
279
+                }
280
+                if (row["F_DiQu"] != null)
281
+                {
282
+                    model.F_DiQu = row["F_DiQu"].ToString();
283
+                }
284
+                if (row["F_ShengXiaoShiJian"] != null && row["F_ShengXiaoShiJian"].ToString() != "")
285
+                {
286
+                    model.F_ShengXiaoShiJian = DateTime.Parse(row["F_ShengXiaoShiJian"].ToString());
287
+                }
288
+                if (row["F_ShiXiaoShiJian"] != null && row["F_ShiXiaoShiJian"].ToString() != "")
289
+                {
290
+                    model.F_ShiXiaoShiJian = DateTime.Parse(row["F_ShiXiaoShiJian"].ToString());
291
+                }
292
+                if (row["F_FaBuShiJian"] != null && row["F_FaBuShiJian"].ToString() != "")
293
+                {
294
+                    model.F_FaBuShiJian = DateTime.Parse(row["F_FaBuShiJian"].ToString());
295
+                }
296
+                if (row["F_Key"] != null && row["F_Key"].ToString() != "")
297
+                {
298
+                    model.F_Key = int.Parse(row["F_Key"].ToString());
299
+                }
300
+                if (row["F_FaWenWenHao"] != null)
301
+                {
302
+                    model.F_FaWenWenHao = row["F_FaWenWenHao"].ToString();
303
+                }
304
+                if (row["F_FaWenDanWei"] != null)
305
+                {
306
+                    model.F_FaWenDanWei = row["F_FaWenDanWei"].ToString();
307
+                }
308
+                if (row["F_BiaoShiBianMa"] != null)
309
+                {
310
+                    model.F_BiaoShiBianMa = row["F_BiaoShiBianMa"].ToString();
311
+                }
312
+                if (row["F_ZhiNengBuMen"] != null)
313
+                {
314
+                    model.F_ZhiNengBuMen = row["F_ZhiNengBuMen"].ToString();
315
+                }
316
+                if (row["F_File"] != null)
317
+                {
318
+                    model.F_File = row["F_File"].ToString();
319
+                }
320
+                if (row["F_WenJianMingCheng"] != null)
321
+                {
322
+                    model.F_WenJianMingCheng = row["F_WenJianMingCheng"].ToString();
323
+                }
324
+                if (row["F_WenJianNeiRong"] != null)
325
+                {
326
+                    model.F_WenJianNeiRong = row["F_WenJianNeiRong"].ToString();
327
+                }
328
+                if (row["F_DianJiLiang"] != null && row["F_DianJiLiang"].ToString() != "")
329
+                {
330
+                    model.F_DianJiLiang = long.Parse(row["F_DianJiLiang"].ToString());
331
+                }
332
+                if (row["F_CreateUser"] != null)
333
+                {
334
+                    model.F_CreateUser = row["F_CreateUser"].ToString();
335
+                }
336
+                if (row["F_CreateTime"] != null && row["F_CreateTime"].ToString() != "")
337
+                {
338
+                    model.F_CreateTime = DateTime.Parse(row["F_CreateTime"].ToString());
339
+                }
340
+                if (row["F_IsDelete"] != null && row["F_IsDelete"].ToString() != "")
341
+                {
342
+                    model.F_IsDelete = int.Parse(row["F_IsDelete"].ToString());
343
+                }
344
+                if (row["F_DeleteUser"] != null)
345
+                {
346
+                    model.F_DeleteUser = row["F_DeleteUser"].ToString();
347
+                }
348
+                if (row["F_DeleteTime"] != null && row["F_DeleteTime"].ToString() != "")
349
+                {
350
+                    model.F_DeleteTime = DateTime.Parse(row["F_DeleteTime"].ToString());
351
+                }
352
+            }
353
+            return model;
354
+        }
355
+
356
+        /// <summary>
357
+        /// 获得数据列表
358
+        /// </summary>
359
+        public DataSet GetList(string strWhere)
360
+        {
361
+            StringBuilder strSql = new StringBuilder();
362
+            strSql.Append("select F_Id,F_FaBuDanWei,F_FaBuRen,F_HangYe,F_DiQu,F_ShengXiaoShiJian,F_ShiXiaoShiJian,F_FaBuShiJian,F_Key,F_FaWenWenHao,F_FaWenDanWei,F_BiaoShiBianMa,F_ZhiNengBuMen,F_File,F_WenJianMingCheng,F_WenJianNeiRong,F_DianJiLiang,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
363
+            strSql.Append(" FROM T_Wiki_Policy with(nolock)");
364
+            if (strWhere.Trim() != "")
365
+            {
366
+                strSql.Append(" where " + strWhere);
367
+            }
368
+            return DbHelperSQL.Query(strSql.ToString());
369
+        }
370
+
371
+        /// <summary>
372
+        /// 获得前几行数据
373
+        /// </summary>
374
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
375
+        {
376
+            StringBuilder strSql = new StringBuilder();
377
+            strSql.Append("select ");
378
+            if (Top > 0)
379
+            {
380
+                strSql.Append(" top " + Top.ToString());
381
+            }
382
+            strSql.Append(" F_Id,F_FaBuDanWei,F_FaBuRen,F_HangYe,F_DiQu,F_ShengXiaoShiJian,F_ShiXiaoShiJian,F_FaBuShiJian,F_Key,F_FaWenWenHao,F_FaWenDanWei,F_BiaoShiBianMa,F_ZhiNengBuMen,F_File,F_WenJianMingCheng,F_WenJianNeiRong,F_DianJiLiang,F_CreateUser,F_CreateTime,F_IsDelete,F_DeleteUser,F_DeleteTime ");
383
+            strSql.Append(" FROM T_Wiki_Policy with(nolock)");
384
+            if (strWhere.Trim() != "")
385
+            {
386
+                strSql.Append(" where " + strWhere);
387
+            }
388
+            strSql.Append(" order by " + filedOrder);
389
+            return DbHelperSQL.Query(strSql.ToString());
390
+        }
391
+
392
+        /// <summary>
393
+        /// 获取记录总数
394
+        /// </summary>
395
+        public int GetRecordCount(string strWhere)
396
+        {
397
+            StringBuilder strSql = new StringBuilder();
398
+            strSql.Append("select count(1) FROM T_Wiki_Policy with(nolock)");
399
+            if (strWhere.Trim() != "")
400
+            {
401
+                strSql.Append(" where " + strWhere);
402
+            }
403
+            object obj = DbHelperSQL.GetSingle(strSql.ToString());
404
+            if (obj == null)
405
+            {
406
+                return 0;
407
+            }
408
+            else
409
+            {
410
+                return Convert.ToInt32(obj);
411
+            }
412
+        }
413
+
414
+        #endregion  BasicMethod
415
+    }
416
+}
417
+

+ 2 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/CallCenterApi.Interface.csproj

@@ -262,6 +262,7 @@
262 262
     <Compile Include="Controllers\weixin\WxReceiveController.cs" />
263 263
     <Compile Include="Controllers\Wiki\HotspotGlossaryController.cs" />
264 264
     <Compile Include="Controllers\Wiki\LawGuideController.cs" />
265
+    <Compile Include="Controllers\Wiki\PolicyController.cs" />
265 266
     <Compile Include="Controllers\Wiki\ProfessorController.cs" />
266 267
     <Compile Include="Controllers\workorder\APPSController.cs" />
267 268
     <Compile Include="Controllers\workorder\AYWorkOrderController.cs" />
@@ -340,6 +341,7 @@
340 341
   <ItemGroup>
341 342
     <Folder Include="App_Data\" />
342 343
     <Folder Include="Views\Achievements\" />
344
+    <Folder Include="Views\Policy\" />
343 345
   </ItemGroup>
344 346
   <ItemGroup>
345 347
     <ProjectReference Include="..\..\..\CallCenterCommon\CallCenter.QuartzService\CallCenter.QuartzService.csproj">

+ 6 - 9
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/HotspotGlossaryController.cs

@@ -58,24 +58,21 @@ namespace CallCenterApi.Interface.Controllers.Wiki
58 58
         /// <param name="pagesize"></param>
59 59
         /// <param name="isdc"></param>
60 60
         /// <returns></returns>
61
-        public ActionResult GetList(string keyvalue, int page = 1, int pagesize = 10, int isdc = 0)
61
+        public ActionResult GetList(string keyvalue, string stime, string etime, int key = 0, int page = 1, int pagesize = 10, int isdc = 0)
62 62
         {
63 63
             DataTable dt = new DataTable();
64 64
             string sql = " and F_IsDelete=0 ";
65 65
             string sqldt = "";
66 66
 
67
-            string strzhengcemingci = HttpUtility.UrlDecode(RequestString.GetQueryString("zhengcemingci"));
68
-            string strhangye = HttpUtility.UrlDecode(RequestString.GetQueryString("hangye"));
69
-            int key = RequestString.GetInt("key", 0);
70
-
71
-            if (strhangye.Trim() != "" && strhangye != "undefined")
67
+            if (stime.Trim() != "" && stime != "undefined")
72 68
             {
73
-                sql += " and F_FaBuDanWei like '%" + strhangye + "%' ";
69
+                sql += " and F_FaBuShiJian >= '" + stime + " 00:00:00" + "' ";
74 70
             }
75
-            if (strzhengcemingci.Trim() != "" && strzhengcemingci != "undefined")
71
+            if (etime.Trim() != "" && etime != "undefined")
76 72
             {
77
-                sql += " and F_ZhengCeMingCi like '%" + strzhengcemingci + "%' ";
73
+                sql += " and F_FaBuShiJian <= '" + etime + " 23:59:59" + "' ";
78 74
             }
75
+
79 76
             if (key > 0)
80 77
             {
81 78
                 //sql += " and F_Key = " + key;

+ 6 - 9
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/LawGuideController.cs

@@ -58,24 +58,21 @@ namespace CallCenterApi.Interface.Controllers.Wiki
58 58
         /// <param name="pagesize"></param>
59 59
         /// <param name="isdc"></param>
60 60
         /// <returns></returns>
61
-        public ActionResult GetList(string keyvalue, int page = 1, int pagesize = 10, int isdc = 0)
61
+        public ActionResult GetList(string keyvalue, string stime, string etime, int key = 0, int page = 1, int pagesize = 10, int isdc = 0)
62 62
         {
63 63
             DataTable dt = new DataTable();
64 64
             string sql = " and F_IsDelete=0 ";
65 65
             string sqldt = "";
66 66
 
67
-            string stryewumingcheng = HttpUtility.UrlDecode(RequestString.GetQueryString("yewumingcheng"));
68
-            string strhangye = HttpUtility.UrlDecode(RequestString.GetQueryString("hangye"));
69
-            int key = RequestString.GetInt("key",0);
70
-
71
-            if (strhangye.Trim() != "" && strhangye != "undefined")
67
+            if (stime.Trim() != "" && stime != "undefined")
72 68
             {
73
-                sql += " and F_FaBuDanWei like '%" + strhangye + "%' ";
69
+                sql += " and F_FaBuShiJian >= '" + stime + " 00:00:00" + "' ";
74 70
             }
75
-            if (stryewumingcheng.Trim() != "" && stryewumingcheng != "undefined")
71
+            if (etime.Trim() != "" && etime != "undefined")
76 72
             {
77
-                sql += " and F_YeWuMingCheng like '%" + stryewumingcheng + "%' ";
73
+                sql += " and F_FaBuShiJian <= '" + etime + " 23:59:59" + "' ";
78 74
             }
75
+
79 76
             if (key>0)
80 77
             {
81 78
                 //sql += " and F_Key = " + key;

+ 317 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/PolicyController.cs

@@ -0,0 +1,317 @@
1
+using CallCenter.Utility;
2
+using CallCenterApi.Interface.Controllers.Base;
3
+using System;
4
+using System.Collections.Generic;
5
+using System.Data;
6
+using System.Linq;
7
+using System.Web;
8
+using System.Web.Mvc;
9
+
10
+namespace CallCenterApi.Interface.Controllers.Wiki
11
+{
12
+    public class PolicyController : BaseController
13
+    {
14
+        // GET: Policy
15
+        /// <summary>
16
+        /// 上传附件
17
+        /// </summary>
18
+        /// <returns></returns>
19
+        public ActionResult UploadFile()
20
+        {
21
+            HttpFileCollection files = RequestString.GetFiles();
22
+            if (files.Count > 0)
23
+            {
24
+                List<Model.T_Sys_Accessories> acs = new List<Model.T_Sys_Accessories>();
25
+                string path = "/Upload/Wiki/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
26
+                for (int i = 0; i < files.Count; i++)
27
+                {
28
+                    HttpPostedFile file = files[i];
29
+                    FileUp fu = new FileUp();
30
+
31
+                    string name = fu.Upload(file, path);
32
+
33
+                    Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
34
+                    model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
35
+                    model_T_Sys_Accessories.F_FileName = name;//附件名称
36
+                    model_T_Sys_Accessories.F_FileType = System.IO.Path.GetExtension(file.FileName);//附件类型
37
+                    model_T_Sys_Accessories.F_FileUrl = path + name;//附件地址
38
+                    model_T_Sys_Accessories.F_Size = file.ContentLength;
39
+                    model_T_Sys_Accessories.F_UserCode = User.F_UserCode;//上传人  
40
+                    int id = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
41
+                    model_T_Sys_Accessories.F_FileId = id;
42
+                    acs.Add(model_T_Sys_Accessories);
43
+                }
44
+
45
+                return Success("成功", acs);
46
+            }
47
+            else
48
+            {
49
+                return Error("请选择要上传的文件");
50
+            }
51
+        }
52
+
53
+        /// <summary>
54
+        /// 列表
55
+        /// </summary>
56
+        /// <param name="page"></param>
57
+        /// <param name="pagesize"></param>
58
+        /// <param name="isdc"></param>
59
+        /// <returns></returns>
60
+        public ActionResult GetList(string keyvalue, string stime, string etime, int key = 0, int page = 1, int pagesize = 10, int isdc = 0)
61
+        {
62
+            DataTable dt = new DataTable();
63
+            string sql = " and F_IsDelete=0 ";
64
+            string sqldt = "";
65
+
66
+            if (stime.Trim() != "" && stime != "undefined")
67
+            {
68
+                sql += " and F_FaBuShiJian >= '" + stime + " 00:00:00" + "' ";
69
+            }
70
+            if (etime.Trim() != "" && etime != "undefined")
71
+            {
72
+                sql += " and F_FaBuShiJian <= '" + etime + " 23:59:59" + "' ";
73
+            }
74
+            if (key > 0)
75
+            {
76
+                //sql += " and F_Key = " + key;
77
+
78
+                sqldt = " INNER JOIN [GetValueId]('" + key + "') Value on a.F_Key = Value.F_ValueId";
79
+            }
80
+            if (!string.IsNullOrEmpty(keyvalue))
81
+            {
82
+                sql += " and (F_FaWenWenHao like '%" + keyvalue + "%' or F_FaWenDanWei like '%" + keyvalue + "%' orF_BiaoShiBianMa like '%" + keyvalue + "%' or F_ZhiNengBuMen like '%" + keyvalue + "%' or F_WenJianMingCheng like '%" + keyvalue + "%' or F_WenJianNeiRong like '%" + keyvalue + "%')";
83
+            }
84
+
85
+            string cols = "a.*,dbo.GetDictionaryName(F_Key) as KeyName";
86
+
87
+            if (isdc > 0)
88
+            {
89
+                var dtdc = DB.DbHelperSQL.Query(" select " + cols + " from T_Wiki_Policy a with(nolock) " + sqldt + " where 1=1 " + sql).Tables[0];
90
+                var msg = new NPOIHelper().ExportToExcel("办事指南", dtdc);
91
+                if (msg == "")
92
+                {
93
+                    return Success("导出成功");
94
+                }
95
+                else
96
+                {
97
+                    return Error("导出失败");
98
+                }
99
+            }
100
+
101
+            int recordCount = 0;
102
+            dt = BLL.PagerBLL.GetListPager(
103
+                "T_Wiki_Policy a with(nolock) " + sqldt,
104
+                "F_Id",
105
+                cols,
106
+                sql,
107
+                "ORDER BY F_DianJiLiang,F_CreateTime DESC",
108
+                pagesize,
109
+                page,
110
+                true,
111
+                out recordCount);
112
+
113
+            var obj = new
114
+            {
115
+                state = "success",
116
+                message = "成功",
117
+                rows = dt,
118
+                total = recordCount
119
+            };
120
+            return Content(obj.ToJson());
121
+        }
122
+
123
+        /// <summary>
124
+        /// 获取
125
+        /// </summary>
126
+        /// <param name="id"></param>
127
+        /// <returns></returns>
128
+        public ActionResult GetModel(int id = 0)
129
+        {
130
+            if (id != 0)
131
+            {
132
+                var model = new BLL.T_Wiki_Policy().GetModel(id);
133
+                if (model != null)
134
+                {
135
+                    DB.DbHelperSQL.ExecuteSql(" update T_Wiki_Policy set F_DianJiLiang=F_DianJiLiang+1 where F_Id=" + id);
136
+                    DataTable dtkey = new DataTable();
137
+                    if (model.F_Key > 0)
138
+                    {
139
+                        dtkey = DB.DbHelperSQL.Query(" select * from View_KeysSplit where id=" + model.F_Key).Tables[0];
140
+                    }
141
+
142
+                    DataTable dtfile = new DataTable();
143
+                    var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
144
+                    if (!string.IsNullOrEmpty(model.F_File) && configfj != null)
145
+                    {
146
+                        dtfile = DB.DbHelperSQL.Query("select * from T_Sys_Accessories WITH(NOLOCK) where F_FileId in (" + model.F_File + ")").Tables[0];
147
+                        foreach (DataRow dr in dtfile.Rows)
148
+                        {
149
+                            dr["F_FileUrl"] = configfj.F_ParamValue + dr["F_FileUrl"].ToString();
150
+                        }
151
+                    }
152
+                    var obj = new { model, dtkey, dtfile };
153
+                    return Success("成功", obj);
154
+                }
155
+                return Error("参数错误");
156
+            }
157
+            else
158
+            {
159
+                return Error("参数错误");
160
+            }
161
+        }
162
+
163
+        /// <summary>
164
+        /// 添加
165
+        /// </summary>
166
+        /// <param name="input"></param>
167
+        /// <returns></returns>
168
+        [HttpPost]
169
+        public ActionResult AddModel(int id = 0, int key = 0)
170
+        {
171
+            string fabudanwei = RequestString.GetFormString("fabudanwei");
172
+            string faburen = RequestString.GetFormString("faburen");
173
+            string hangye = RequestString.GetFormString("hangye");
174
+            string diqu = RequestString.GetFormString("diqu");
175
+            string shengxiaoshijian = RequestString.GetFormString("shengxiaoshijian");
176
+            string shixiaoshijian = RequestString.GetFormString("shixiaoshijian");
177
+            string fabushijian = RequestString.GetFormString("fabushijian");
178
+            string fawenwenhao = RequestString.GetFormString("fawenwenhao");
179
+            string fawendanwei = RequestString.GetFormString("fawendanwei");
180
+            string biaoshibianma = RequestString.GetFormString("biaoshibianma");
181
+            string zhinengbumen = RequestString.GetFormString("zhinengbumen");
182
+            string file = RequestString.GetFormString("file");
183
+            string wenjianmingcheng = RequestString.GetFormString("wenjianmingcheng");
184
+            string wenjianneirong = RequestString.GetFormString("wenjianneirong");
185
+
186
+            Model.T_Wiki_Policy dModel = new Model.T_Wiki_Policy();
187
+            if (id == 0)
188
+            {
189
+                //var list = new BLL.T_Wiki_Policy().GetList(" F_FaBuDanWei='" + fabudanwei + "' and F_IsDelete=0 ").Tables[0];
190
+                //if (list.Rows.Count > 0)
191
+                //{
192
+                //    return Error("已经存在");
193
+                //}
194
+                //else
195
+                //{
196
+
197
+                dModel.F_FaBuRen = faburen;
198
+                dModel.F_FaBuDanWei = fabudanwei;
199
+                dModel.F_HangYe = hangye;
200
+                dModel.F_DiQu = diqu;
201
+                try
202
+                {
203
+                    dModel.F_ShengXiaoShiJian = DateTime.Parse(shengxiaoshijian);
204
+                }
205
+                catch { };
206
+                try
207
+                {
208
+                    dModel.F_ShiXiaoShiJian = DateTime.Parse(shixiaoshijian);
209
+                }
210
+                catch { };
211
+                try
212
+                {
213
+                    dModel.F_FaBuShiJian = DateTime.Parse(fabushijian);
214
+                }
215
+                catch { };
216
+
217
+                dModel.F_Key = key;
218
+                dModel.F_FaWenWenHao = fawenwenhao;
219
+                dModel.F_FaWenDanWei = fawendanwei;
220
+                dModel.F_BiaoShiBianMa = biaoshibianma;
221
+                dModel.F_ZhiNengBuMen = zhinengbumen;
222
+                dModel.F_File = file;
223
+                dModel.F_WenJianMingCheng = wenjianmingcheng;
224
+                dModel.F_WenJianNeiRong = wenjianneirong;
225
+
226
+                dModel.F_DianJiLiang = 0;
227
+                dModel.F_IsDelete = 0;
228
+                dModel.F_CreateUser = User.F_UserCode;
229
+                dModel.F_CreateTime = DateTime.Now;
230
+                int n = new BLL.T_Wiki_Policy().Add(dModel);
231
+                if (n > 0)
232
+                    return Success("添加成功", n);
233
+                else
234
+                    return Error("添加失败");
235
+                //}
236
+            }
237
+            else
238
+            {
239
+                dModel = new BLL.T_Wiki_Policy().GetModel(id);
240
+                if (dModel != null)
241
+                {
242
+                    //var list = new BLL.T_Wiki_Policy().GetList(" F_FaBuDanWei='" + fabudanwei + "' and F_IsDelete=0 and F_Id!='" + id + "' ").Tables[0];
243
+                    //if (list.Rows.Count > 0)
244
+                    //{
245
+                    //    return Error("已经存在");
246
+                    //}
247
+                    //else
248
+                    //{
249
+
250
+                    dModel.F_FaBuRen = faburen;
251
+                    dModel.F_FaBuDanWei = fabudanwei;
252
+                    dModel.F_HangYe = hangye;
253
+                    dModel.F_DiQu = diqu;
254
+                    try
255
+                    {
256
+                        dModel.F_ShengXiaoShiJian = DateTime.Parse(shengxiaoshijian);
257
+                    }
258
+                    catch { };
259
+                    try
260
+                    {
261
+                        dModel.F_ShiXiaoShiJian = DateTime.Parse(shixiaoshijian);
262
+                    }
263
+                    catch { };
264
+                    try
265
+                    {
266
+                        dModel.F_FaBuShiJian = DateTime.Parse(fabushijian);
267
+                    }
268
+                    catch { };
269
+
270
+                    dModel.F_Key = key;
271
+                    dModel.F_FaWenWenHao = fawenwenhao;
272
+                    dModel.F_FaWenDanWei = fawendanwei;
273
+                    dModel.F_BiaoShiBianMa = biaoshibianma;
274
+                    dModel.F_ZhiNengBuMen = zhinengbumen;
275
+                    dModel.F_File = file;
276
+                    dModel.F_WenJianMingCheng = wenjianmingcheng;
277
+                    dModel.F_WenJianNeiRong = wenjianneirong;
278
+
279
+                    if (new BLL.T_Wiki_Policy().Update(dModel))
280
+                        return Success("修改成功");
281
+                    else
282
+                        return Error("修改失败");
283
+                    //}
284
+                }
285
+                else
286
+                {
287
+                    return Error("修改失败");
288
+                }
289
+            }
290
+        }
291
+
292
+        /// <summary>
293
+        /// 删除
294
+        /// </summary>
295
+        /// <param name="ids"></param>
296
+        /// <returns></returns>
297
+        public ActionResult DelModel(string[] ids)
298
+        {
299
+            if (ids == null || ids.Length <= 0)
300
+            {
301
+                return Error("请选择要删除的选项");
302
+            }
303
+
304
+            var idStr = string.Join(",", ids);
305
+            if (string.IsNullOrEmpty(idStr.Trim()))
306
+            {
307
+                return Error("请选择要删除的选项");
308
+            }
309
+            int n = DB.DbHelperSQL.ExecuteSql(" update T_Wiki_Policy set F_IsDelete=1,F_DeleteUser='" + User.F_UserCode + "',F_DeleteTime=getdate() where F_Id in (" + idStr + ")");
310
+            if (n > 0)
311
+            {
312
+                return Success("删除成功");
313
+            }
314
+            return Error("删除失败");
315
+        }
316
+    }
317
+}

+ 6 - 18
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/ProfessorController.cs

@@ -51,32 +51,20 @@ namespace CallCenterApi.Interface.Controllers.Wiki
51 51
         /// <param name="pagesize"></param>
52 52
         /// <param name="isdc"></param>
53 53
         /// <returns></returns>
54
-        public ActionResult GetList(string keyvalue,int page = 1, int pagesize = 10, int isdc = 0)
54
+        public ActionResult GetList(string keyvalue, string stime, string etime, int page = 1, int pagesize = 10, int isdc = 0)
55 55
         {
56 56
             DataTable dt = new DataTable();
57 57
             string sql = " and F_IsDelete=0 ";
58 58
 
59
-            string strxingming = HttpUtility.UrlDecode(RequestString.GetQueryString("xingming"));
60
-            string strdanwei = HttpUtility.UrlDecode(RequestString.GetQueryString("danwei"));
61
-            string strkeshi = HttpUtility.UrlDecode(RequestString.GetQueryString("keshi"));
62
-            string strshouji = HttpUtility.UrlDecode(RequestString.GetQueryString("shouji"));
63
-
64
-            if (strxingming.Trim() != "" && strxingming != "undefined")
65
-            {
66
-                sql += " and F_XingMing like '%" + strxingming + "%' ";
67
-            }
68
-            if (strdanwei.Trim() != "" && strdanwei != "undefined")
59
+            if (stime.Trim() != "" && stime != "undefined")
69 60
             {
70
-                sql += " and F_DanWei like '%" + strdanwei + "%' ";
61
+                sql += " and F_FaBuShiJian >= '" + stime + " 00:00:00" + "' ";
71 62
             }
72
-            if (strkeshi.Trim() != "" && strkeshi != "undefined")
63
+            if (etime.Trim() != "" && etime != "undefined")
73 64
             {
74
-                sql += " and F_KeShi like '%" + strkeshi + "%' ";
75
-            }
76
-            if (strshouji.Trim() != "" && strshouji != "undefined")
77
-            {
78
-                sql += " and F_ShouJi like '%" + strshouji + "%' ";
65
+                sql += " and F_FaBuShiJian <= '" + etime + " 23:59:59" + "' ";
79 66
             }
67
+
80 68
             if (!string.IsNullOrEmpty(keyvalue))
81 69
             {
82 70
                 sql += " and (F_XingMing like '%" + keyvalue + "%' or F_ShouJi like '%" + keyvalue + "%' )";

+ 1 - 0
CallCenterApi/CallCenterApi.Model/CallCenterApi.Model.csproj

@@ -103,6 +103,7 @@
103 103
     <Compile Include="T_Vis_Files.cs" />
104 104
     <Compile Include="T_Wiki_HotspotGlossary.cs" />
105 105
     <Compile Include="T_Wiki_LawGuide.cs" />
106
+    <Compile Include="T_Wiki_Policy.cs" />
106 107
     <Compile Include="T_Wiki_Professor.cs" />
107 108
     <Compile Include="WeiBoCommentList.cs" />
108 109
     <Compile Include="PageData.cs" />

+ 215 - 0
CallCenterApi/CallCenterApi.Model/T_Wiki_Policy.cs

@@ -0,0 +1,215 @@
1
+using System;
2
+namespace CallCenterApi.Model
3
+{
4
+    /// <summary>
5
+    /// T_Wiki_Policy:实体类(属性说明自动提取数据库字段的描述信息)
6
+    /// </summary>
7
+    [Serializable]
8
+    public partial class T_Wiki_Policy
9
+    {
10
+        public T_Wiki_Policy()
11
+        { }
12
+        #region Model
13
+        private int _f_id;
14
+        private string _f_fabudanwei;
15
+        private string _f_faburen;
16
+        private string _f_hangye;
17
+        private string _f_diqu;
18
+        private DateTime? _f_shengxiaoshijian;
19
+        private DateTime? _f_shixiaoshijian;
20
+        private DateTime? _f_fabushijian;
21
+        private int? _f_key;
22
+        private string _f_fawenwenhao;
23
+        private string _f_fawendanwei;
24
+        private string _f_biaoshibianma;
25
+        private string _f_zhinengbumen;
26
+        private string _f_file;
27
+        private string _f_wenjianmingcheng;
28
+        private string _f_wenjianneirong;
29
+        private long? _f_dianjiliang;
30
+        private string _f_createuser;
31
+        private DateTime? _f_createtime;
32
+        private int? _f_isdelete;
33
+        private string _f_deleteuser;
34
+        private DateTime? _f_deletetime;
35
+        /// <summary>
36
+        /// 
37
+        /// </summary>
38
+        public int F_Id
39
+        {
40
+            set { _f_id = value; }
41
+            get { return _f_id; }
42
+        }
43
+        /// <summary>
44
+        /// 
45
+        /// </summary>
46
+        public string F_FaBuDanWei
47
+        {
48
+            set { _f_fabudanwei = value; }
49
+            get { return _f_fabudanwei; }
50
+        }
51
+        /// <summary>
52
+        /// 
53
+        /// </summary>
54
+        public string F_FaBuRen
55
+        {
56
+            set { _f_faburen = value; }
57
+            get { return _f_faburen; }
58
+        }
59
+        /// <summary>
60
+        /// 
61
+        /// </summary>
62
+        public string F_HangYe
63
+        {
64
+            set { _f_hangye = value; }
65
+            get { return _f_hangye; }
66
+        }
67
+        /// <summary>
68
+        /// 
69
+        /// </summary>
70
+        public string F_DiQu
71
+        {
72
+            set { _f_diqu = value; }
73
+            get { return _f_diqu; }
74
+        }
75
+        /// <summary>
76
+        /// 
77
+        /// </summary>
78
+        public DateTime? F_ShengXiaoShiJian
79
+        {
80
+            set { _f_shengxiaoshijian = value; }
81
+            get { return _f_shengxiaoshijian; }
82
+        }
83
+        /// <summary>
84
+        /// 
85
+        /// </summary>
86
+        public DateTime? F_ShiXiaoShiJian
87
+        {
88
+            set { _f_shixiaoshijian = value; }
89
+            get { return _f_shixiaoshijian; }
90
+        }
91
+        /// <summary>
92
+        /// 
93
+        /// </summary>
94
+        public DateTime? F_FaBuShiJian
95
+        {
96
+            set { _f_fabushijian = value; }
97
+            get { return _f_fabushijian; }
98
+        }
99
+        /// <summary>
100
+        /// 
101
+        /// </summary>
102
+        public int? F_Key
103
+        {
104
+            set { _f_key = value; }
105
+            get { return _f_key; }
106
+        }
107
+        /// <summary>
108
+        /// 
109
+        /// </summary>
110
+        public string F_FaWenWenHao
111
+        {
112
+            set { _f_fawenwenhao = value; }
113
+            get { return _f_fawenwenhao; }
114
+        }
115
+        /// <summary>
116
+        /// 
117
+        /// </summary>
118
+        public string F_FaWenDanWei
119
+        {
120
+            set { _f_fawendanwei = value; }
121
+            get { return _f_fawendanwei; }
122
+        }
123
+        /// <summary>
124
+        /// 
125
+        /// </summary>
126
+        public string F_BiaoShiBianMa
127
+        {
128
+            set { _f_biaoshibianma = value; }
129
+            get { return _f_biaoshibianma; }
130
+        }
131
+        /// <summary>
132
+        /// 
133
+        /// </summary>
134
+        public string F_ZhiNengBuMen
135
+        {
136
+            set { _f_zhinengbumen = value; }
137
+            get { return _f_zhinengbumen; }
138
+        }
139
+        /// <summary>
140
+        /// 
141
+        /// </summary>
142
+        public string F_File
143
+        {
144
+            set { _f_file = value; }
145
+            get { return _f_file; }
146
+        }
147
+        /// <summary>
148
+        /// 
149
+        /// </summary>
150
+        public string F_WenJianMingCheng
151
+        {
152
+            set { _f_wenjianmingcheng = value; }
153
+            get { return _f_wenjianmingcheng; }
154
+        }
155
+        /// <summary>
156
+        /// 
157
+        /// </summary>
158
+        public string F_WenJianNeiRong
159
+        {
160
+            set { _f_wenjianneirong = value; }
161
+            get { return _f_wenjianneirong; }
162
+        }
163
+        /// <summary>
164
+        /// 
165
+        /// </summary>
166
+        public long? F_DianJiLiang
167
+        {
168
+            set { _f_dianjiliang = value; }
169
+            get { return _f_dianjiliang; }
170
+        }
171
+        /// <summary>
172
+        /// 
173
+        /// </summary>
174
+        public string F_CreateUser
175
+        {
176
+            set { _f_createuser = value; }
177
+            get { return _f_createuser; }
178
+        }
179
+        /// <summary>
180
+        /// 
181
+        /// </summary>
182
+        public DateTime? F_CreateTime
183
+        {
184
+            set { _f_createtime = value; }
185
+            get { return _f_createtime; }
186
+        }
187
+        /// <summary>
188
+        /// 
189
+        /// </summary>
190
+        public int? F_IsDelete
191
+        {
192
+            set { _f_isdelete = value; }
193
+            get { return _f_isdelete; }
194
+        }
195
+        /// <summary>
196
+        /// 
197
+        /// </summary>
198
+        public string F_DeleteUser
199
+        {
200
+            set { _f_deleteuser = value; }
201
+            get { return _f_deleteuser; }
202
+        }
203
+        /// <summary>
204
+        /// 
205
+        /// </summary>
206
+        public DateTime? F_DeleteTime
207
+        {
208
+            set { _f_deletetime = value; }
209
+            get { return _f_deletetime; }
210
+        }
211
+        #endregion Model
212
+
213
+    }
214
+}
215
+