|
|
@@ -44,13 +44,13 @@ namespace CallCenterApi.DAL
|
|
44
|
44
|
strSql.Append(@"F_RecCode,F_CusID,F_Type,F_Direction,F_Complained,F_Content,
|
|
45
|
45
|
F_Remark,F_CreateBy,F_CreateOn,F_IsDelete,F_DeleteOn,F_DeleteBy,F_Tel,F_CallId,
|
|
46
|
46
|
F_userName,F_userPhone,F_userSex,F_userProvince,F_userCity,F_userArea,F_ProblemType,F_Unit,
|
|
47
|
|
-F_UnitOffice,F_CaseParty,F_CitizensType,F_PutRecord,F_ZXZType,F_CasePartyId,F_ProblemTypeB
|
|
|
47
|
+F_UnitOffice,F_CaseParty,F_CitizensType,F_PutRecord,F_ZXZType,F_CasePartyId,F_ProblemTypeB,F_userAddress
|
|
48
|
48
|
)");
|
|
49
|
49
|
strSql.Append(" values (");
|
|
50
|
50
|
strSql.Append(@"@F_RecCode,@F_CusID,@F_Type,@F_Direction,@F_Complained,@F_Content,
|
|
51
|
51
|
@F_Remark,@F_CreateBy,@F_CreateOn,@F_IsDelete,@F_DeleteOn,@F_DeleteBy,@F_Tel,@F_CallId,
|
|
52
|
52
|
@F_userName,@F_userPhone,@F_userSex,@F_userProvince,@F_userCity,@F_userArea,@F_ProblemType,@F_Unit,
|
|
53
|
|
-@F_UnitOffice,@F_CaseParty,@F_CitizensType,@F_PutRecord,@F_ZXZType,@F_CasePartyId,@F_ProblemTypeB
|
|
|
53
|
+@F_UnitOffice,@F_CaseParty,@F_CitizensType,@F_PutRecord,@F_ZXZType,@F_CasePartyId,@F_ProblemTypeB,@F_userAddress
|
|
54
|
54
|
)");
|
|
55
|
55
|
strSql.Append(";select @@IDENTITY");
|
|
56
|
56
|
SqlParameter[] parameters = {
|
|
|
@@ -83,7 +83,9 @@ F_UnitOffice,F_CaseParty,F_CitizensType,F_PutRecord,F_ZXZType,F_CasePartyId,F_Pr
|
|
83
|
83
|
new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50) ,
|
|
84
|
84
|
new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
|
|
85
|
85
|
new SqlParameter("@F_CasePartyId", SqlDbType.Int,4),
|
|
86
|
|
-new SqlParameter("@F_ProblemTypeB", SqlDbType.VarChar,50)
|
|
|
86
|
+new SqlParameter("@F_ProblemTypeB", SqlDbType.VarChar,50),
|
|
|
87
|
+new SqlParameter("@F_userAddress", SqlDbType.VarChar,50)
|
|
|
88
|
+
|
|
87
|
89
|
};
|
|
88
|
90
|
parameters[0].Value = model.F_RecCode;
|
|
89
|
91
|
parameters[1].Value = model.F_CusID;
|
|
|
@@ -117,8 +119,8 @@ parameters[22].Value = model.F_UnitOffice;
|
|
117
|
119
|
parameters[26].Value = model.F_ZXZType;
|
|
118
|
120
|
|
|
119
|
121
|
parameters[27].Value = model.F_CasePartyId;
|
|
120
|
|
- parameters[28].Value = model.F_ProblemTypeB;
|
|
121
|
|
-
|
|
|
122
|
+ parameters[28].Value = model.F_ProblemTypeB;
|
|
|
123
|
+ parameters[29].Value = model.F_userAddress;
|
|
122
|
124
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
|
|
123
|
125
|
if (obj == null)
|
|
124
|
126
|
{
|
|
|
@@ -166,7 +168,8 @@ parameters[22].Value = model.F_UnitOffice;
|
|
166
|
168
|
strSql.Append("F_ZXZType =@F_ZXZType,");
|
|
167
|
169
|
strSql.Append("F_CasePartyId =@F_CasePartyId,");
|
|
168
|
170
|
strSql.Append("F_ProblemTypeB =@F_ProblemTypeB,");
|
|
169
|
|
-
|
|
|
171
|
+
|
|
|
172
|
+ strSql.Append("F_userAddress =@F_userAddress");
|
|
170
|
173
|
strSql.Append(" where F_ID=@F_ID");
|
|
171
|
174
|
SqlParameter[] parameters = {
|
|
172
|
175
|
new SqlParameter("@F_RecCode", SqlDbType.NVarChar,50),
|
|
|
@@ -200,8 +203,8 @@ parameters[22].Value = model.F_UnitOffice;
|
|
200
|
203
|
new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50),
|
|
201
|
204
|
new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
|
|
202
|
205
|
new SqlParameter("@F_CasePartyId", SqlDbType.Int,4),
|
|
203
|
|
- new SqlParameter("@F_ProblemTypeB", SqlDbType.VarChar,50)
|
|
204
|
|
-
|
|
|
206
|
+ new SqlParameter("@F_ProblemTypeB", SqlDbType.VarChar,50),
|
|
|
207
|
+ new SqlParameter("@F_userAddress", SqlDbType.VarChar,150)
|
|
205
|
208
|
};
|
|
206
|
209
|
parameters[0].Value = model.F_RecCode;
|
|
207
|
210
|
parameters[1].Value = model.F_CusID;
|
|
|
@@ -236,6 +239,7 @@ parameters[22].Value = model.F_UnitOffice;
|
|
236
|
239
|
|
|
237
|
240
|
parameters[27].Value = model.F_CasePartyId;
|
|
238
|
241
|
parameters[28].Value = model.F_ProblemTypeB;
|
|
|
242
|
+ parameters[29].Value = model.F_userAddress;
|
|
239
|
243
|
int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
|
|
240
|
244
|
if (rows > 0)
|
|
241
|
245
|
{
|
|
|
@@ -431,7 +435,9 @@ parameters[22].Value = model.F_UnitOffice;
|
|
431
|
435
|
}
|
|
432
|
436
|
if (row["F_ProblemTypeB"] != null && row["F_ProblemTypeB"].ToString() != "")
|
|
433
|
437
|
{ model.F_ProblemTypeB = row["F_ProblemTypeB"].ToString(); }
|
|
434
|
|
-
|
|
|
438
|
+
|
|
|
439
|
+ if (row["F_userAddress"] != null && row["F_userAddress"].ToString() != "")
|
|
|
440
|
+ { model.F_ProblemTypeB = row["F_userAddress"].ToString(); }
|
|
435
|
441
|
|
|
436
|
442
|
}
|
|
437
|
443
|
return model;
|