Browse Source

微信上传图片

duhongyu 6 years ago
parent
commit
fef4bebac6

+ 34 - 88
codegit/CallCenterApi/CallCenterApi.BLL/T_Ask_QuestionItems.cs

@@ -1,20 +1,26 @@
1 1
 using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Text;
5 2
 using System.Data;
6
-
7
-namespace CallCenterApi.BLL
3
+using System.Collections.Generic;
4
+ namespace CallCenterApi.BLL
8 5
 {
9 6
     /// <summary>
10 7
     /// T_Ask_QuestionItems
11 8
     /// </summary>
12 9
     public partial class T_Ask_QuestionItems
13 10
     {
14
-        private readonly CallCenterApi.DAL.T_Ask_QuestionItems dal = new CallCenterApi.DAL.T_Ask_QuestionItems();
11
+        private readonly DAL.T_Ask_QuestionItems dal = new DAL.T_Ask_QuestionItems();
15 12
         public T_Ask_QuestionItems()
16 13
         { }
17
-        #region  Method
14
+        #region  BasicMethod
15
+
16
+        /// <summary>
17
+        /// 得到最大ID
18
+        /// </summary>
19
+        public int GetMaxId()
20
+        {
21
+            return dal.GetMaxId();
22
+        }
23
+
18 24
         /// <summary>
19 25
         /// 是否存在该记录
20 26
         /// </summary>
@@ -26,7 +32,7 @@ namespace CallCenterApi.BLL
26 32
         /// <summary>
27 33
         /// 增加一条数据
28 34
         /// </summary>
29
-        public int Add(CallCenterApi.Model.T_Ask_QuestionItems model)
35
+        public int Add(Model.T_Ask_QuestionItems model)
30 36
         {
31 37
             return dal.Add(model);
32 38
         }
@@ -34,7 +40,7 @@ namespace CallCenterApi.BLL
34 40
         /// <summary>
35 41
         /// 更新一条数据
36 42
         /// </summary>
37
-        public bool Update(CallCenterApi.Model.T_Ask_QuestionItems model)
43
+        public bool Update(Model.T_Ask_QuestionItems model)
38 44
         {
39 45
             return dal.Update(model);
40 46
         }
@@ -47,32 +53,32 @@ namespace CallCenterApi.BLL
47 53
 
48 54
             return dal.Delete(F_ItemId);
49 55
         }
50
-
51 56
         /// <summary>
52 57
         /// 删除一条数据
53 58
         /// </summary>
54
-        public bool DeleteByQuestionId(int F_QuestionId)
59
+        public bool DeleteList(string F_ItemIdlist)
55 60
         {
56
-
57
-            return dal.DeleteByQuestionId(F_QuestionId);
61
+            return dal.DeleteList(F_ItemIdlist);
58 62
         }
59 63
         /// <summary>
60 64
         /// 删除一条数据
61 65
         /// </summary>
62
-        public bool DeleteList(string F_ItemIdlist)
66
+        public bool DeleteByQuestionId(int F_QuestionId)
63 67
         {
64
-            return dal.DeleteList(F_ItemIdlist);
65
-        }
66 68
 
69
+            return dal.DeleteByQuestionId(F_QuestionId);
70
+        }
67 71
         /// <summary>
68 72
         /// 得到一个对象实体
69 73
         /// </summary>
70
-        public CallCenterApi.Model.T_Ask_QuestionItems GetModel(int F_ItemId)
74
+        public Model.T_Ask_QuestionItems GetModel(int F_ItemId)
71 75
         {
72 76
 
73 77
             return dal.GetModel(F_ItemId);
74 78
         }
75 79
 
80
+   
81
+
76 82
         /// <summary>
77 83
         /// 获得数据列表
78 84
         /// </summary>
@@ -90,7 +96,7 @@ namespace CallCenterApi.BLL
90 96
         /// <summary>
91 97
         /// 获得数据列表
92 98
         /// </summary>
93
-        public List<CallCenterApi.Model.T_Ask_QuestionItems> GetModelList(string strWhere)
99
+        public List<Model.T_Ask_QuestionItems> GetModelList(string strWhere)
94 100
         {
95 101
             DataSet ds = dal.GetList(strWhere);
96 102
             return DataTableToList(ds.Tables[0]);
@@ -98,83 +104,20 @@ namespace CallCenterApi.BLL
98 104
         /// <summary>
99 105
         /// 获得数据列表
100 106
         /// </summary>
101
-        public List<CallCenterApi.Model.T_Ask_QuestionItems> DataTableToList(DataTable dt)
107
+        public List<Model.T_Ask_QuestionItems> DataTableToList(DataTable dt)
102 108
         {
103
-            List<CallCenterApi.Model.T_Ask_QuestionItems> modelList = new List<CallCenterApi.Model.T_Ask_QuestionItems>();
109
+            List<Model.T_Ask_QuestionItems> modelList = new List<Model.T_Ask_QuestionItems>();
104 110
             int rowsCount = dt.Rows.Count;
105 111
             if (rowsCount > 0)
106 112
             {
107
-                CallCenterApi.Model.T_Ask_QuestionItems model;
113
+                Model.T_Ask_QuestionItems model;
108 114
                 for (int n = 0; n < rowsCount; n++)
109 115
                 {
110
-                    model = new CallCenterApi.Model.T_Ask_QuestionItems();
111
-                    if (dt.Rows[n]["F_ItemId"] != null && dt.Rows[n]["F_ItemId"].ToString() != "")
116
+                    model = dal.DataRowToModel(dt.Rows[n]);
117
+                    if (model != null)
112 118
                     {
113
-                        model.F_ItemId = int.Parse(dt.Rows[n]["F_ItemId"].ToString());
119
+                        modelList.Add(model);
114 120
                     }
115
-                    if (dt.Rows[n]["F_QuestionId"] != null && dt.Rows[n]["F_QuestionId"].ToString() != "")
116
-                    {
117
-                        model.F_QuestionId = int.Parse(dt.Rows[n]["F_QuestionId"].ToString());
118
-                    }
119
-                    model.F_ItemName = dt.Rows[n]["F_ItemName"].ToString();
120
-                    if (dt.Rows[n]["F_IsAnswer"] != null && dt.Rows[n]["F_IsAnswer"].ToString() != "")
121
-                    {
122
-                        model.F_IsAnswer = int.Parse(dt.Rows[n]["F_IsAnswer"].ToString());
123
-                    }
124
-                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
125
-                    {
126
-                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
127
-                    }
128
-                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
129
-                    {
130
-                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
131
-                    }
132
-                    if (dt.Rows[n]["F_SortModel"] != null && dt.Rows[n]["F_SortModel"].ToString() != "")
133
-                    {
134
-                        model.F_SortModel = int.Parse(dt.Rows[n]["F_SortModel"].ToString());
135
-                    }
136
-                    modelList.Add(model);
137
-                }
138
-            }
139
-            return modelList;
140
-        }
141
-
142
-        /// <summary>
143
-        /// 获得数据列表
144
-        /// </summary>
145
-        public List<CallCenterApi.Model.T_Ask_QuestionItems> TempDataTableToList(DataTable dt)
146
-        {
147
-            List<CallCenterApi.Model.T_Ask_QuestionItems> modelList = new List<CallCenterApi.Model.T_Ask_QuestionItems>();
148
-            int rowsCount = dt.Rows.Count;
149
-            if (rowsCount > 0)
150
-            {
151
-                CallCenterApi.Model.T_Ask_QuestionItems model;
152
-                for (int n = 0; n < rowsCount; n++)
153
-                {
154
-                    model = new CallCenterApi.Model.T_Ask_QuestionItems();
155
-                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
156
-                    {
157
-                        model.F_ItemId = int.Parse(dt.Rows[n]["F_Id"].ToString());
158
-                    }
159
-                    if (dt.Rows[n]["ExpandIntField1"] != null && dt.Rows[n]["ExpandIntField1"].ToString() != "")
160
-                    {
161
-                        model.F_QuestionId = int.Parse(dt.Rows[n]["ExpandIntField1"].ToString());
162
-                    }
163
-                    model.F_ItemName = dt.Rows[n]["ExpandVchField1"].ToString();
164
-                    if (dt.Rows[n]["ExpandIntField2"] != null && dt.Rows[n]["ExpandIntField2"].ToString() != "")
165
-                    {
166
-                        model.F_IsAnswer = int.Parse(dt.Rows[n]["ExpandIntField2"].ToString());
167
-                    }
168
-                    model.F_Remark = dt.Rows[n]["ExpandVchField2"].ToString();
169
-                    if (dt.Rows[n]["ExpandIntField3"] != null && dt.Rows[n]["ExpandIntField3"].ToString() != "")
170
-                    {
171
-                        model.F_Sort = int.Parse(dt.Rows[n]["ExpandIntField3"].ToString());
172
-                    }
173
-                    if (dt.Rows[n]["ExpandIntField4"] != null && dt.Rows[n]["ExpandIntField4"].ToString() != "")
174
-                    {
175
-                        model.F_SortModel = int.Parse(dt.Rows[n]["ExpandIntField4"].ToString());
176
-                    }
177
-                    modelList.Add(model);
178 121
                 }
179 122
             }
180 123
             return modelList;
@@ -210,7 +153,10 @@ namespace CallCenterApi.BLL
210 153
         //return dal.GetList(PageSize,PageIndex,strWhere);
211 154
         //}
212 155
 
213
-        #endregion  Method
156
+        #endregion  BasicMethod
157
+        #region  ExtensionMethod
158
+
159
+        #endregion  ExtensionMethod
214 160
     }
215 161
 }
216 162
 

+ 108 - 86
codegit/CallCenterApi/CallCenterApi.DAL/T_Ask_QuestionItems.cs

@@ -1,9 +1,8 @@
1 1
 using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
2
+using System.Data;
4 3
 using System.Text;
5 4
 using System.Data.SqlClient;
6
-using System.Data;
5
+
7 6
 using CallCenterApi.DB;
8 7
 
9 8
 namespace CallCenterApi.DAL
@@ -15,7 +14,16 @@ namespace CallCenterApi.DAL
15 14
     {
16 15
         public T_Ask_QuestionItems()
17 16
         { }
18
-        #region  Method
17
+        #region  BasicMethod
18
+
19
+        /// <summary>
20
+        /// 得到最大ID
21
+        /// </summary>
22
+        public int GetMaxId()
23
+        {
24
+            return DbHelperSQL.GetMaxID("F_ItemId", "T_Ask_QuestionItems");
25
+        }
26
+
19 27
         /// <summary>
20 28
         /// 是否存在该记录
21 29
         /// </summary>
@@ -25,8 +33,8 @@ namespace CallCenterApi.DAL
25 33
             strSql.Append("select count(1) from T_Ask_QuestionItems");
26 34
             strSql.Append(" where F_ItemId=@F_ItemId");
27 35
             SqlParameter[] parameters = {
28
-					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
29
-			};
36
+                    new SqlParameter("@F_ItemId", SqlDbType.Int,4)
37
+            };
30 38
             parameters[0].Value = F_ItemId;
31 39
 
32 40
             return DbHelperSQL.Exists(strSql.ToString(), parameters);
@@ -36,7 +44,7 @@ namespace CallCenterApi.DAL
36 44
         /// <summary>
37 45
         /// 增加一条数据
38 46
         /// </summary>
39
-        public int Add(CallCenterApi.Model.T_Ask_QuestionItems model)
47
+        public int Add(Model.T_Ask_QuestionItems model)
40 48
         {
41 49
             StringBuilder strSql = new StringBuilder();
42 50
             strSql.Append("insert into T_Ask_QuestionItems(");
@@ -45,12 +53,12 @@ namespace CallCenterApi.DAL
45 53
             strSql.Append("@F_QuestionId,@F_ItemName,@F_IsAnswer,@F_Remark,@F_Sort,@F_SortModel)");
46 54
             strSql.Append(";select @@IDENTITY");
47 55
             SqlParameter[] parameters = {
48
-					new SqlParameter("@F_QuestionId", SqlDbType.Int,4),
49
-					new SqlParameter("@F_ItemName", SqlDbType.VarChar,3000),
50
-					new SqlParameter("@F_IsAnswer", SqlDbType.SmallInt,2),
51
-					new SqlParameter("@F_Remark", SqlDbType.VarChar,200),
52
-					new SqlParameter("@F_Sort", SqlDbType.Int,4),
53
-					new SqlParameter("@F_SortModel", SqlDbType.SmallInt,2)};
56
+                    new SqlParameter("@F_QuestionId", SqlDbType.Int,4),
57
+                    new SqlParameter("@F_ItemName", SqlDbType.VarChar,50),
58
+                    new SqlParameter("@F_IsAnswer", SqlDbType.SmallInt,2),
59
+                    new SqlParameter("@F_Remark", SqlDbType.VarChar,200),
60
+                    new SqlParameter("@F_Sort", SqlDbType.Int,4),
61
+                    new SqlParameter("@F_SortModel", SqlDbType.SmallInt,2)};
54 62
             parameters[0].Value = model.F_QuestionId;
55 63
             parameters[1].Value = model.F_ItemName;
56 64
             parameters[2].Value = model.F_IsAnswer;
@@ -71,7 +79,7 @@ namespace CallCenterApi.DAL
71 79
         /// <summary>
72 80
         /// 更新一条数据
73 81
         /// </summary>
74
-        public bool Update(CallCenterApi.Model.T_Ask_QuestionItems model)
82
+        public bool Update(Model.T_Ask_QuestionItems model)
75 83
         {
76 84
             StringBuilder strSql = new StringBuilder();
77 85
             strSql.Append("update T_Ask_QuestionItems set ");
@@ -83,13 +91,13 @@ namespace CallCenterApi.DAL
83 91
             strSql.Append("F_SortModel=@F_SortModel");
84 92
             strSql.Append(" where F_ItemId=@F_ItemId");
85 93
             SqlParameter[] parameters = {
86
-					new SqlParameter("@F_QuestionId", SqlDbType.Int,4),
87
-					new SqlParameter("@F_ItemName", SqlDbType.VarChar,3000),
88
-					new SqlParameter("@F_IsAnswer", SqlDbType.SmallInt,2),
89
-					new SqlParameter("@F_Remark", SqlDbType.VarChar,200),
90
-					new SqlParameter("@F_Sort", SqlDbType.Int,4),
91
-					new SqlParameter("@F_SortModel", SqlDbType.SmallInt,2),
92
-					new SqlParameter("@F_ItemId", SqlDbType.Int,4)};
94
+                    new SqlParameter("@F_QuestionId", SqlDbType.Int,4),
95
+                    new SqlParameter("@F_ItemName", SqlDbType.VarChar,50),
96
+                    new SqlParameter("@F_IsAnswer", SqlDbType.SmallInt,2),
97
+                    new SqlParameter("@F_Remark", SqlDbType.VarChar,200),
98
+                    new SqlParameter("@F_Sort", SqlDbType.Int,4),
99
+                    new SqlParameter("@F_SortModel", SqlDbType.SmallInt,2),
100
+                    new SqlParameter("@F_ItemId", SqlDbType.Int,4)};
93 101
             parameters[0].Value = model.F_QuestionId;
94 102
             parameters[1].Value = model.F_ItemName;
95 103
             parameters[2].Value = model.F_IsAnswer;
@@ -119,8 +127,8 @@ namespace CallCenterApi.DAL
119 127
             strSql.Append("delete from T_Ask_QuestionItems ");
120 128
             strSql.Append(" where F_ItemId=@F_ItemId");
121 129
             SqlParameter[] parameters = {
122
-					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
123
-			};
130
+                    new SqlParameter("@F_ItemId", SqlDbType.Int,4)
131
+            };
124 132
             parameters[0].Value = F_ItemId;
125 133
 
126 134
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
@@ -133,22 +141,15 @@ namespace CallCenterApi.DAL
133 141
                 return false;
134 142
             }
135 143
         }
136
-
137 144
         /// <summary>
138
-        /// 删除一条数据
145
+        /// 批量删除数据
139 146
         /// </summary>
140
-        public bool DeleteByQuestionId(int F_QuestionId)
147
+        public bool DeleteList(string F_ItemIdlist)
141 148
         {
142
-
143 149
             StringBuilder strSql = new StringBuilder();
144 150
             strSql.Append("delete from T_Ask_QuestionItems ");
145
-            strSql.Append(" where F_QuestionId=@F_QuestionId");
146
-            SqlParameter[] parameters = {
147
-					new SqlParameter("@F_QuestionId", SqlDbType.Int,4)
148
-			};
149
-            parameters[0].Value = F_QuestionId;
150
-
151
-            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
151
+            strSql.Append(" where F_ItemId in (" + F_ItemIdlist + ")  ");
152
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
152 153
             if (rows > 0)
153 154
             {
154 155
                 return true;
@@ -158,16 +159,21 @@ namespace CallCenterApi.DAL
158 159
                 return false;
159 160
             }
160 161
         }
161
-
162 162
         /// <summary>
163
-        /// 批量删除数据
163
+        /// 删除一条数据
164 164
         /// </summary>
165
-        public bool DeleteList(string F_ItemIdlist)
165
+        public bool DeleteByQuestionId(int F_QuestionId)
166 166
         {
167
+
167 168
             StringBuilder strSql = new StringBuilder();
168 169
             strSql.Append("delete from T_Ask_QuestionItems ");
169
-            strSql.Append(" where F_ItemId in (" + F_ItemIdlist + ")  ");
170
-            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
170
+            strSql.Append(" where F_QuestionId=@F_QuestionId");
171
+            SqlParameter[] parameters = {
172
+                    new SqlParameter("@F_QuestionId", SqlDbType.Int,4)
173
+            };
174
+            parameters[0].Value = F_QuestionId;
175
+
176
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
171 177
             if (rows > 0)
172 178
             {
173 179
                 return true;
@@ -182,55 +188,68 @@ namespace CallCenterApi.DAL
182 188
         /// <summary>
183 189
         /// 得到一个对象实体
184 190
         /// </summary>
185
-        public CallCenterApi.Model.T_Ask_QuestionItems GetModel(int F_ItemId)
191
+        public Model.T_Ask_QuestionItems GetModel(int F_ItemId)
186 192
         {
187 193
 
188 194
             StringBuilder strSql = new StringBuilder();
189 195
             strSql.Append("select  top 1 F_ItemId,F_QuestionId,F_ItemName,F_IsAnswer,F_Remark,F_Sort,F_SortModel from T_Ask_QuestionItems ");
190 196
             strSql.Append(" where F_ItemId=@F_ItemId");
191 197
             SqlParameter[] parameters = {
192
-					new SqlParameter("@F_ItemId", SqlDbType.Int,4)
193
-			};
198
+                    new SqlParameter("@F_ItemId", SqlDbType.Int,4)
199
+            };
194 200
             parameters[0].Value = F_ItemId;
195 201
 
196
-            CallCenterApi.Model.T_Ask_QuestionItems model = new CallCenterApi.Model.T_Ask_QuestionItems();
202
+            Model.T_Ask_QuestionItems model = new Model.T_Ask_QuestionItems();
197 203
             DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
198 204
             if (ds.Tables[0].Rows.Count > 0)
199 205
             {
200
-                if (ds.Tables[0].Rows[0]["F_ItemId"] != null && ds.Tables[0].Rows[0]["F_ItemId"].ToString() != "")
206
+                return DataRowToModel(ds.Tables[0].Rows[0]);
207
+            }
208
+            else
209
+            {
210
+                return null;
211
+            }
212
+        }
213
+
214
+
215
+        /// <summary>
216
+        /// 得到一个对象实体
217
+        /// </summary>
218
+        public Model.T_Ask_QuestionItems DataRowToModel(DataRow row)
219
+        {
220
+            Model.T_Ask_QuestionItems model = new Model.T_Ask_QuestionItems();
221
+            if (row != null)
222
+            {
223
+                if (row["F_ItemId"] != null && row["F_ItemId"].ToString() != "")
201 224
                 {
202
-                    model.F_ItemId = int.Parse(ds.Tables[0].Rows[0]["F_ItemId"].ToString());
225
+                    model.F_ItemId = int.Parse(row["F_ItemId"].ToString());
203 226
                 }
204
-                if (ds.Tables[0].Rows[0]["F_QuestionId"] != null && ds.Tables[0].Rows[0]["F_QuestionId"].ToString() != "")
227
+                if (row["F_QuestionId"] != null && row["F_QuestionId"].ToString() != "")
205 228
                 {
206
-                    model.F_QuestionId = int.Parse(ds.Tables[0].Rows[0]["F_QuestionId"].ToString());
229
+                    model.F_QuestionId = int.Parse(row["F_QuestionId"].ToString());
207 230
                 }
208
-                if (ds.Tables[0].Rows[0]["F_ItemName"] != null && ds.Tables[0].Rows[0]["F_ItemName"].ToString() != "")
231
+                if (row["F_ItemName"] != null)
209 232
                 {
210
-                    model.F_ItemName = ds.Tables[0].Rows[0]["F_ItemName"].ToString();
233
+                    model.F_ItemName = row["F_ItemName"].ToString();
211 234
                 }
212
-                if (ds.Tables[0].Rows[0]["F_IsAnswer"] != null && ds.Tables[0].Rows[0]["F_IsAnswer"].ToString() != "")
235
+                if (row["F_IsAnswer"] != null && row["F_IsAnswer"].ToString() != "")
213 236
                 {
214
-                    model.F_IsAnswer = int.Parse(ds.Tables[0].Rows[0]["F_IsAnswer"].ToString());
237
+                    model.F_IsAnswer = int.Parse(row["F_IsAnswer"].ToString());
215 238
                 }
216
-                if (ds.Tables[0].Rows[0]["F_Remark"] != null && ds.Tables[0].Rows[0]["F_Remark"].ToString() != "")
239
+                if (row["F_Remark"] != null)
217 240
                 {
218
-                    model.F_Remark = ds.Tables[0].Rows[0]["F_Remark"].ToString();
241
+                    model.F_Remark = row["F_Remark"].ToString();
219 242
                 }
220
-                if (ds.Tables[0].Rows[0]["F_Sort"] != null && ds.Tables[0].Rows[0]["F_Sort"].ToString() != "")
243
+                if (row["F_Sort"] != null && row["F_Sort"].ToString() != "")
221 244
                 {
222
-                    model.F_Sort = int.Parse(ds.Tables[0].Rows[0]["F_Sort"].ToString());
245
+                    model.F_Sort = int.Parse(row["F_Sort"].ToString());
223 246
                 }
224
-                if (ds.Tables[0].Rows[0]["F_SortModel"] != null && ds.Tables[0].Rows[0]["F_SortModel"].ToString() != "")
247
+                if (row["F_SortModel"] != null && row["F_SortModel"].ToString() != "")
225 248
                 {
226
-                    model.F_SortModel = int.Parse(ds.Tables[0].Rows[0]["F_SortModel"].ToString());
249
+                    model.F_SortModel = int.Parse(row["F_SortModel"].ToString());
227 250
                 }
228
-                return model;
229
-            }
230
-            else
231
-            {
232
-                return null;
233 251
             }
252
+            return model;
234 253
         }
235 254
 
236 255
         /// <summary>
@@ -317,31 +336,34 @@ namespace CallCenterApi.DAL
317 336
         }
318 337
 
319 338
         /*
320
-        /// <summary>
321
-        /// 分页获取数据列表
322
-        /// </summary>
323
-        public DataSet GetList(int PageSize,int PageIndex,string strWhere)
324
-        {
325
-            SqlParameter[] parameters = {
326
-                    new SqlParameter("@tblName", SqlDbType.VarChar, 255),
327
-                    new SqlParameter("@fldName", SqlDbType.VarChar, 255),
328
-                    new SqlParameter("@PageSize", SqlDbType.Int),
329
-                    new SqlParameter("@PageIndex", SqlDbType.Int),
330
-                    new SqlParameter("@IsReCount", SqlDbType.Bit),
331
-                    new SqlParameter("@OrderType", SqlDbType.Bit),
332
-                    new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
333
-                    };
334
-            parameters[0].Value = "T_Ask_QuestionItems";
335
-            parameters[1].Value = "F_ItemId";
336
-            parameters[2].Value = PageSize;
337
-            parameters[3].Value = PageIndex;
338
-            parameters[4].Value = 0;
339
-            parameters[5].Value = 0;
340
-            parameters[6].Value = strWhere;	
341
-            return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
342
-        }*/
339
+		/// <summary>
340
+		/// 分页获取数据列表
341
+		/// </summary>
342
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
343
+		{
344
+			SqlParameter[] parameters = {
345
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
346
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
347
+					new SqlParameter("@PageSize", SqlDbType.Int),
348
+					new SqlParameter("@PageIndex", SqlDbType.Int),
349
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
350
+					new SqlParameter("@OrderType", SqlDbType.Bit),
351
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
352
+					};
353
+			parameters[0].Value = "T_Ask_QuestionItems";
354
+			parameters[1].Value = "F_ItemId";
355
+			parameters[2].Value = PageSize;
356
+			parameters[3].Value = PageIndex;
357
+			parameters[4].Value = 0;
358
+			parameters[5].Value = 0;
359
+			parameters[6].Value = strWhere;	
360
+			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
361
+		}*/
362
+
363
+        #endregion  BasicMethod
364
+        #region  ExtensionMethod
343 365
 
344
-        #endregion  Method
366
+        #endregion  ExtensionMethod
345 367
     }
346 368
 }
347 369
 

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Sys_SeatGroup.cs

@@ -40,7 +40,7 @@ namespace CallCenterApi.DAL
40 40
                     new SqlParameter("@F_Des", SqlDbType.NText),
41 41
                     new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
42 42
                     new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
43
-                     new SqlParameter("@F_Region", SqlDbType.NVarChar,500),
43
+                     new SqlParameter("@F_Region", SqlDbType.NVarChar),
44 44
                     new SqlParameter("@F_CreateByName", SqlDbType.NVarChar,50)};
45 45
             parameters[0].Value = model.F_ZXZCode;
46 46
             parameters[1].Value = model.F_ZXZName;
@@ -93,7 +93,7 @@ namespace CallCenterApi.DAL
93 93
                     new SqlParameter("@F_Des", SqlDbType.NText),
94 94
                     new SqlParameter("@F_CreateTime", SqlDbType.DateTime),
95 95
                     new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
96
-                     new SqlParameter("@F_Region", SqlDbType.NVarChar,500),
96
+                     new SqlParameter("@F_Region", SqlDbType.NVarChar),
97 97
                     new SqlParameter("@F_CreateByName", SqlDbType.NVarChar,50),
98 98
                     new SqlParameter("@F_ZXZID", SqlDbType.Int,4)};
99 99
             parameters[0].Value = model.F_ZXZCode;

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -37,9 +37,9 @@ namespace CallCenterApi.Interface.Controllers
37 37
                     return Error("请输入联系人电话");
38 38
                 if (string.IsNullOrEmpty(cusphone))
39 39
                     return Error("请输入发送号码");
40
-                string msg = "您好,感谢您来电反馈,后续详细咨询也可直接拨打市场经理电话:" + phone + ",姓名:" + name + ",祝您生活愉快!";
40
+                string msg = "您好!感谢您的来电,有关化肥详细问题可联系市场经理,姓名:" + name + ",电话:" + phone + "。您也可以微信关注“心连心集团营销服务”公众号进行咨询。祝您生活愉快!";
41 41
                 string[] mag = { name, phone };
42
-                SmsSingleSenderResult result = SMSSingleshot(429907, mag, cusphone);
42
+                SmsSingleSenderResult result = SMSSingleshot(466863, mag, cusphone);
43 43
 
44 44
                 if (result != null)
45 45
                 {

+ 16 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SeatGroupController.cs

@@ -89,6 +89,7 @@ namespace CallCenterApi.Interface.Controllers
89 89
         {
90 90
             if (Request.IsAuthenticated)
91 91
             {
92
+               
92 93
                 Model.T_Sys_SeatGroup sModel = seatBLL.GetModel(ZXZID);
93 94
                 string Region="";
94 95
                 if (sModel != null)
@@ -100,17 +101,26 @@ namespace CallCenterApi.Interface.Controllers
100 101
                         {
101 102
                             foreach (var it in mRegion)
102 103
                             {
103
-                                if (int.Parse(it) < 32)
104
-                                {
105
-                                    var model = new BLL.T_RegionCategory().GetModel(int.Parse(it));
106
-                                    if (model != null)
104
+                                    try
105
+                                    {
106
+                                    if (int.Parse(it) < 32)
107 107
                                     {
108
+                                        var model = new BLL.T_RegionCategory().GetModel(int.Parse(it));
109
+                                        if (model != null)
110
+                                        {
108 111
                                             if (Region == "")
109
-                                                Region = model.F_RegionName ;
112
+                                                Region = model.F_RegionName;
110 113
                                             else
111 114
                                                 Region = Region + "," + model.F_RegionName;
115
+                                        }
116
+                                      }
117
+                                   }
118
+                                    catch
119
+                                    {
120
+
112 121
                                     }
113
-                                }
122
+                                   
123
+                               
114 124
                                
115 125
                             }
116 126
                         }

+ 82 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs

@@ -492,7 +492,89 @@ namespace CallCenterApi.Interface.Controllers.knowledge
492 492
             }
493 493
             return dt;
494 494
         }
495
+        /// <summary>
496
+        /// 上传base64图片
497
+        /// </summary>
498
+        /// <returns></returns>
499
+        public ActionResult Upload64()
500
+        {
501
+            //string dataurl = HttpUtility.UrlDecode(RequestString.GetFormString("dataurl"));
502
+            string dataurl = RequestString.GetFormString("dataurl");
503
+            string filename = RequestString.GetFormString("filename");
504
+            if (!string.IsNullOrEmpty(dataurl))
505
+            {
506
+                string stropenid = HttpUtility.UrlDecode(RequestString.GetFormString("openid"));
507
+                #region 保存文件到本地路径
508
+                string path = "/Upload/APP/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
509
+                ImageUpload iu = new ImageUpload();
510
+                iu.SavePath = path;
511
+                iu.DataUrl = dataurl;
512
+                if (!string.IsNullOrEmpty(filename))
513
+                {
514
+                    iu.SaveType = 1;
515
+                    iu.InFileName = filename;
516
+                }
517
+                iu.Upload64();
495 518
 
519
+                if (!string.IsNullOrEmpty(iu.SavePath))
520
+                {
521
+                    uploadFile upfile = new uploadFile();
522
+                    //通过读取配置文件,获取数据库
523
+                    string _ftp = Configs.GetValue("ftp");
524
+                    string _acc = Configs.GetValue("account");
525
+                    string _pwd = Configs.GetValue("password");
526
+                    upfile.ftpPath = _ftp;
527
+                    upfile.ftpUserID = _acc;
528
+                    upfile.ftpPassword = _pwd;
529
+                    //20180207 原文件同时保存
530
+                    string uploadBeforres = upfile.UploadLocalToFtp(iu.SavePath+ filename);
531
+                    int n = iu.Error;
532
+                    if (n == 0)
533
+                    {
534
+                        path = path + iu.OutFileName;
535
+                        Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
536
+                        model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
537
+                        model_T_Sys_Accessories.F_FileName = filename;//附件名称
538
+                        model_T_Sys_Accessories.F_FileType = ".jpg";//附件类型
539
+                        model_T_Sys_Accessories.F_FileUrl = (filename).Replace('\\', '/');//附件地址
540
+                        model_T_Sys_Accessories.F_Size = iu.FileSize;
541
+                        model_T_Sys_Accessories.F_UserCode = stropenid;//上传人  
542
+                        model_T_Sys_Accessories.F_OriName = filename;
543
+                        int fid = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
544
+                        #endregion
545
+                        if (fid > 0)
546
+                        {
547
+                            //返回附件的ID
548
+                            model_T_Sys_Accessories.F_FileId = fid;//修改为返回对象以便查看图片
549
+                            return Success("文件上传成功", model_T_Sys_Accessories);
550
+                        }
551
+                        else
552
+                            return Success("文件上传成功,日志记录失败");
553
+
554
+                    }
555
+                    else
556
+                    {
557
+                        string msg = string.Empty;
558
+                        switch (n)
559
+                        {
560
+                            case 1: msg = "请选择要上传的文件"; break;
561
+                            case 2: msg = "上传的文件类型不支持"; break;
562
+                            case 3: msg = "上传的文件过大"; break;
563
+                            case 4: msg = "未知错误"; break;
564
+                        }
565
+                        return Error(msg);
566
+                    }
567
+                }
568
+                else
569
+                    return Error("格式修改出错,请重新上传");
570
+            }
571
+            else
572
+            {
573
+                return Error("请选择要上传的文件");
574
+            }
575
+        }
576
+           
577
+        
496 578
         /// <summary>
497 579
         /// 上传附件
498 580
         /// </summary>

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WOReportController.cs

@@ -733,7 +733,7 @@ namespace CallCenterApi.Interface.Controllers.report
733 733
             List<Category> markets = new List<Category>();
734 734
             for (int i = 0; i < ConsultingNeedslist.Count + Complaintlist.Count + SpotChecklist.Count + 5; i++)
735 735
             {
736
-                int urea = 0, compound=0, fertilizer=0, vehicle=0, total=0, melamine=0, methanol=0, furfuryl=0
736
+                float  urea = 0, compound=0, fertilizer=0, vehicle=0, total=0, melamine=0, methanol=0, furfuryl=0
737 737
                     , humic=0, dimethyl=0, furfural=0, liquid=0, other=0;
738 738
                 urea = workercount(i, workerurea, ConsultingNeedslist, Complaintlist, SpotChecklist);
739 739
                 compound = workercount(i, workercompound, ConsultingNeedslist, Complaintlist, SpotChecklist);

+ 50 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -1,4 +1,5 @@
1 1
 using CallCenter.Utility;
2
+using CallCenterApi.DB;
2 3
 using CallCenterApi.Interface.Controllers.Base;
3 4
 using CallCenterApi.Interface.Controllers.workorder;
4 5
 using CallCenterApi.Interface.Models.Enum;
@@ -369,7 +370,19 @@ namespace CallCenterApi.Interface.Controllers.tel
369 370
             }
370 371
             return res;
371 372
         }
372
-
373
+        public DataTable GetFileData(string ids, string prefix)
374
+        {
375
+            DataTable dt = new DataTable();
376
+            if (!string.IsNullOrEmpty(ids))
377
+            {
378
+                dt = DbHelperSQL.Query("select * from T_Sys_Accessories where F_FileId in (" + ids + ")").Tables[0];
379
+                foreach (DataRow dr in dt.Rows)
380
+                {
381
+                    dr["F_FileUrl"] = prefix + dr["F_FileUrl"].ToString();
382
+                }
383
+            }
384
+            return dt;
385
+        }
373 386
         /// <summary>
374 387
         /// 获取最新知识库
375 388
         /// </summary>
@@ -383,7 +396,9 @@ namespace CallCenterApi.Interface.Controllers.tel
383 396
                 DataTable dt = new DataTable();
384 397
                 string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
385 398
                 string keywords = HttpUtility.UrlDecode(RequestString.GetQueryString("keywords"));
386
-
399
+                var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
400
+                DataTable FileUrl = new DataTable();
401
+               
387 402
                 string sql = " F_DeleteFlag=0";
388 403
                 if (pid.Trim() != "")
389 404
                 {
@@ -396,8 +411,40 @@ namespace CallCenterApi.Interface.Controllers.tel
396 411
                 }
397 412
 
398 413
                 dt = new BLL.T_RepositoryInformation().GetList(8, sql, " F_RepositoryId desc").Tables[0];
414
+               List <Model.T_RepositoryInformation> modellist= new BLL.T_RepositoryInformation().DataTableToList(dt);
415
+               
416
+             
417
+                var obj=new 
418
+                {
419
+                    rows = modellist.Select(x => new
420
+                    {
421
+                        F_RepositoryId = x.F_RepositoryId,
422
+                        F_CategoryId = x.F_CategoryId,
423
+                        F_CustomerId = x.F_CustomerId,
424
+                        F_CustomerName = x.F_CustomerName,
425
+                        F_ManId = x.F_ManId,
426
+                        F_ManName = x.F_ManName,
427
+                        F_Title = x.F_Title,
428
+                        F_Content = x.F_Content,
429
+                        F_Description = x.F_Description,
430
+                        F_Comments = x.F_Comments,
431
+                        F_Url = x.F_Url,
432
+                        F_KeyWords = x.F_KeyWords,
433
+                        F_Expand1 = x.F_Expand1,
434
+                        F_Expand2 = x.F_Expand2,
435
+                        F_IntExpand1 = x.F_IntExpand1,
436
+                        F_CreateOn = x.F_CreateOn,
437
+                        F_CreateBy = x.F_CreateBy,
438
+                        F_CreateName = x.F_CreateName,
439
+                        F_ModifyOn = x.F_ModifyOn,
440
+                        F_ModifyBy = x.F_ModifyBy,
441
+                        F_ModifyName = x.F_ModifyName,
442
+                        F_DeleteFlag = x.F_DeleteFlag,
443
+                        FileUrl = GetFileData(x.F_Expand2, configfj.F_ParamValue)
444
+                    }),
399 445
 
400
-                res = Success("加载成功", dt);
446
+                };
447
+                res = Success("加载成功", obj);
401 448
 
402 449
             }
403 450
             return res;

+ 12 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallleaveController.cs

@@ -47,6 +47,10 @@ namespace CallCenterApi.Interface.Controllers.tel
47 47
                     {
48 48
                         sql += " and F_Status = " + Convert.ToInt32(status);
49 49
                     }
50
+                    else
51
+                   {
52
+                    sql += " and F_Status = " +0;
53
+                   }
50 54
 
51 55
                     if (strpageindex.Trim() != "")
52 56
                     {
@@ -68,7 +72,7 @@ namespace CallCenterApi.Interface.Controllers.tel
68 72
                         pageindex,
69 73
                         true,
70 74
                         out recordCount);
71
-
75
+               
72 76
                     var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayLeaveVoice' ").FirstOrDefault();
73 77
                     foreach (DataRow dr in dt.Rows)
74 78
                     {
@@ -77,7 +81,13 @@ namespace CallCenterApi.Interface.Controllers.tel
77 81
                         {
78 82
                             dr["F_RecFileUrl"] = config.F_ParamValue + path;
79 83
                         }
80
-                    }
84
+                       
85
+                      var prono =dr["F_Phone"].ToString().Substring(0, 7);
86
+                    var MobileData = new BLL.T_Sys_MobileData().GetModelList("F_MobileNum='"+ prono+"'").FirstOrDefault ();
87
+                    if (MobileData != null)
88
+                        dr["F_Remark"] = MobileData.F_CityDes;
89
+   
90
+                   }
81 91
 
82 92
                     var obj = new
83 93
                     {

File diff suppressed because it is too large
+ 838 - 511
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs


+ 61 - 22
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -2473,21 +2473,21 @@ namespace CallCenterApi.Interface.Controllers.workorder
2473 2473
         {
2474 2474
             string str = "";
2475 2475
             string str1 = " select F_Id from T_Wo_QuestionManage where F_QuestionName in(" + msg + ")";
2476
-            string str3 = " select F_Id from T_Wo_QuestionManage where F_ParentId in(" + str1 + ")";
2477
-            var dept = quesBLL.GetModelList("F_ParentId in(" + str3 + ")");
2476
+          string str3 = " select F_Id from T_Wo_QuestionManage where F_ParentId in(" + str1 + ")";
2477
+        var dept = quesBLL.GetModelList("F_ParentId in(" + str3 + ")");
2478 2478
             if (dept != null)
2479
-            {
2479
+           {
2480 2480
                 foreach (var it in dept)
2481
-                {
2481
+               {
2482 2482
 
2483 2483
                     if (str != "")
2484
-                        str += "','" + it.F_Id;
2485
-                    else
2486
-                        str += it.F_Id;
2487
-
2484
+                      str += "','" + it.F_Id;
2485
+                   else
2486
+                       str += it.F_Id;
2487
+           
2488 2488
                 }
2489
-            }
2490
-            //  string str4 = " select F_Id from T_Wo_QuestionManage where F_ParentId in(" + str3 + ")";
2489
+           }
2490
+           //  string str4 = " select F_Id from T_Wo_QuestionManage where F_ParentId in(" + str3 + ")";
2491 2491
             return str;
2492 2492
         }
2493 2493
 
@@ -2521,14 +2521,29 @@ namespace CallCenterApi.Interface.Controllers.workorder
2521 2521
                     {
2522 2522
                         sql += $" and F_State in (10,11)";
2523 2523
                     }
2524
+                    else if (state ==12)
2525
+                    {
2526
+                        sql += $" and F_State=" + (int)EnumWorkOrderState.finish + " and F_IsVisit = '" + "1" + "' "  ;
2527
+                    }
2524 2528
                     else
2525 2529
                     {
2526 2530
                         sql += $" and F_State=" + state;
2527 2531
                     }
2532
+
2528 2533
                 }
2529 2534
                 if (!string.IsNullOrEmpty(question))
2530 2535
                 {
2531
-                    sql += $"  and T_Wo_WorkOrder.F_QuestionType in ( '" + GetComplaint("'"+question+"'") + "') "; ;
2536
+                    var QuestionManage = quesBLL.GetModelList("F_QuestionName='" + question + "'").FirstOrDefault ();
2537
+                    if (QuestionManage!=null )
2538
+                    {
2539
+                        if (QuestionManage.F_Type == EnumWOType.Complaint.ToString())
2540
+                        {
2541
+                            sql += $"  and T_Wo_WorkOrder.F_QuestionType in ('" + GetComplaint("'"+ question+"'") + "')"; ; 
2542
+                        }
2543
+                        else
2544
+                            sql += $"  and T_Wo_WorkOrder.F_QuestionType  ='"+QuestionManage .F_Id +"'"; ;
2545
+                    }
2546
+                  //  
2532 2547
                 }
2533 2548
                 if (source > 0)//工单来源
2534 2549
                     sql += $" and F_Source=" + source;
@@ -5194,7 +5209,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
5194 5209
                 deptid = touser.F_DeptId;
5195 5210
             }
5196 5211
          
5197
-            var itemid = AddLog((int)model.F_ID, 2, content, (int)EnumItemType.deal, 2, creatuser, deptid, nowUser, model.F_limit, sms);
5212
+            var itemid = AddLog((int)model.F_ID, 3, content, (int)EnumItemType.deal, 4, creatuser, deptid, nowUser, model.F_limit, sms);
5198 5213
             if (itemid > 0)
5199 5214
             {
5200 5215
                 #region 处理工单
@@ -5427,14 +5442,22 @@ namespace CallCenterApi.Interface.Controllers.workorder
5427 5442
                             return Error("请选择接收部门");
5428 5443
                         }
5429 5444
                     }
5430
-                   
5445
+
5431 5446
                     if (model != null)
5432 5447
                     {
5433
-                        var res = AssignWO(ua, model, input,cont, F_Files,clbm, clid, overtime, sms, isApprovalp, hclbm, hclid);
5434
-                        if (res)
5435
-                            return Success("转派成功");
5448
+                        if (model.F_State == 1)
5449
+                        {
5450
+                            return Error("工单已转派请勿重复操作!");
5451
+                        }
5436 5452
                         else
5437
-                            return Error("转派失败!");
5453
+                        {
5454
+                            var res = AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid);
5455
+                            if (res)
5456
+                                return Success("转派成功");
5457
+                            else
5458
+                                return Error("转派失败!");
5459
+                        }
5460
+                       
5438 5461
                     }
5439 5462
                     else
5440 5463
                         return Error("工单不存在!");
@@ -5604,11 +5627,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
5604 5627
                     }
5605 5628
                     if (model != null)
5606 5629
                     {
5607
-                        var res = DealWO(ua, model, input, cont, isover, uncont);
5608
-                        if (res)
5609
-                            return Success("处理成功");
5630
+                        if (model.F_State ==10)
5631
+                            return Error("工单已处理请勿重复操作!");
5610 5632
                         else
5611
-                            return Error("处理失败!");
5633
+                        {
5634
+
5635
+                            var res = DealWO(ua, model, input, cont, isover, uncont);
5636
+
5637
+                            if (res)
5638
+                                return Success("处理成功");
5639
+                            else
5640
+                                return Error("处理失败!");
5641
+                        }
5642
+                       
5612 5643
                     }
5613 5644
                     else
5614 5645
                         return Error("工单不存在!");
@@ -5968,7 +5999,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
5968 5999
             #endregion
5969 6000
             var content = deptname + nowUser.F_UserName + "(" + nowUser.F_WorkNumber + ")" + opt + "工单,退回说明:" + cont;
5970 6001
             //获取上一级处理人员
6002
+
5971 6003
             var touser = ""; var deptid=0;
6004
+
5972 6005
             var itemlast = itembll.GetModelList(" F_ItemType=" + (int)EnumItemType.deal + " and F_NextDept =" + nowUser.F_DeptId + " and F_WoState =" + F_OptType + " and  F_WoID='" + model.F_ID  + "' order by F_CreateTime desc").FirstOrDefault();
5973 6006
             if (itemlast != null)
5974 6007
             {
@@ -6541,8 +6574,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
6541 6574
                 if (!string.IsNullOrEmpty(cont))
6542 6575
                     model.F_DealContent += cont + ";";
6543 6576
                 InToworkModel(model, input);
6577
+                
6544 6578
                 if (!string.IsNullOrEmpty(F_Files))
6545
-                    model.F_Files = F_Files;
6579
+                {
6580
+                    if (!string.IsNullOrEmpty(model.F_Files))
6581
+                        model.F_Files = model.F_Files + "," + F_Files;
6582
+                    else
6583
+                        model.F_Files = F_Files;
6584
+                }
6546 6585
                 workOrder.Update(model);
6547 6586
                 #endregion
6548 6587
                 #region 推送消息

+ 0 - 4
codegit/CallCenterApi/CallCenterApi.Model/T_Ask_QuestionItems.cs

@@ -1,8 +1,4 @@
1 1
 using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Text;
5
-
6 2
 namespace CallCenterApi.Model
7 3
 {
8 4
     /// <summary>

+ 1 - 1
codegit/CallCenterCommon/CallCenter.Utility/ImageUpload.cs

@@ -158,7 +158,7 @@ namespace CallCenter.Utility
158 158
     {
159 159
         #region 私有成员
160 160
         private int _Error = 0;//返回上传状态。 
161
-        private int _MaxSize = 1024 * 1024;//最大单个上传文件 (默认)
161
+        private int _MaxSize = 20 * 1024 * 1024;//最大单个上传文件 (默认)
162 162
         private string _FileType = "jpg;gif;bmp;png";//所支持的上传类型用"/"隔开 
163 163
         private string _SavePath = System.Web.HttpContext.Current.Server.MapPath(".") + "\\";//保存文件的实际路径 
164 164
         private int _SaveType = 0;//上传文件的类型,0代表自动生成文件名