|
|
@@ -63,9 +63,9 @@ namespace CallCenterApi.DAL
|
|
63
|
63
|
{
|
|
64
|
64
|
StringBuilder strSql=new StringBuilder();
|
|
65
|
65
|
strSql.Append("insert into T_TypeResult(");
|
|
66
|
|
- strSql.Append("F_PhoneID,F_typeName1,F_typeValue1,F_typeName2,F_typeValue2,F_typeName3,F_typeValue3,F_typeName4,F_typeValue4,F_typeName5,F_typeValue5,F_typeName6,F_typeValue6,F_typeName7,F_typeValue7,F_CreateOn,F_userId)");
|
|
|
66
|
+ strSql.Append("F_PhoneID,F_typeName1,F_typeValue1,F_typeName2,F_typeValue2,F_typeName3,F_typeValue3,F_typeName4,F_typeValue4,F_typeName5,F_typeValue5,F_typeName6,F_typeValue6,F_typeName7,F_typeValue7,F_typeValue12 ,F_typeValue22 ,F_typeValue32 ,F_typeValue42 ,F_typeValue52 ,F_typeValue62,F_CreateOn,F_userId)");
|
|
67
|
67
|
strSql.Append(" values (");
|
|
68
|
|
- strSql.Append("@F_PhoneID,@F_typeName1,@F_typeValue1,@F_typeName2,@F_typeValue2,@F_typeName3,@F_typeValue3,@F_typeName4,@F_typeValue4,@F_typeName5,@F_typeValue5,@F_typeName6,@F_typeValue6,@F_typeName7,@F_typeValue7,@F_CreateOn,@F_userId)");
|
|
|
68
|
+ strSql.Append("@F_PhoneID,@F_typeName1,@F_typeValue1,@F_typeName2,@F_typeValue2,@F_typeName3,@F_typeValue3,@F_typeName4,@F_typeValue4,@F_typeName5,@F_typeValue5,@F_typeName6,@F_typeValue6,@F_typeName7,@F_typeValue7,@F_typeValue12 ,@F_typeValue22 ,@F_typeValue32 ,@F_typeValue42, @F_typeValue52 , @F_typeValue62, @F_CreateOn,@F_userId)");
|
|
69
|
69
|
strSql.Append(";select @@IDENTITY");
|
|
70
|
70
|
SqlParameter[] parameters = {
|
|
71
|
71
|
new SqlParameter("@F_PhoneID", SqlDbType.Int,4),
|
|
|
@@ -85,6 +85,18 @@ namespace CallCenterApi.DAL
|
|
85
|
85
|
new SqlParameter("@F_typeName7", SqlDbType.NVarChar,200),
|
|
86
|
86
|
new SqlParameter("@F_typeValue7", SqlDbType.NVarChar,1000),
|
|
87
|
87
|
|
|
|
88
|
+ new SqlParameter("@F_typeValue12", SqlDbType.NVarChar,100),
|
|
|
89
|
+ new SqlParameter("@F_typeValue22", SqlDbType.NVarChar,100),
|
|
|
90
|
+
|
|
|
91
|
+ new SqlParameter("@F_typeValue32", SqlDbType.NVarChar,100),
|
|
|
92
|
+
|
|
|
93
|
+ new SqlParameter("@F_typeValue42", SqlDbType.NVarChar,100),
|
|
|
94
|
+ new SqlParameter("@F_typeValue52", SqlDbType.NVarChar,100),
|
|
|
95
|
+
|
|
|
96
|
+ new SqlParameter("@F_typeValue62", SqlDbType.NVarChar,100),
|
|
|
97
|
+
|
|
|
98
|
+
|
|
|
99
|
+
|
|
88
|
100
|
new SqlParameter("@F_CreateOn", SqlDbType.DateTime),
|
|
89
|
101
|
new SqlParameter("@F_userId", SqlDbType.NVarChar,50)};
|
|
90
|
102
|
parameters[0].Value = model.F_PhoneID;
|
|
|
@@ -105,8 +117,16 @@ namespace CallCenterApi.DAL
|
|
105
|
117
|
parameters[14].Value = model.F_typeValue7;
|
|
106
|
118
|
|
|
107
|
119
|
|
|
108
|
|
- parameters[15].Value = model.F_CreateOn;
|
|
109
|
|
- parameters[16].Value = model.F_userId;
|
|
|
120
|
+ parameters[15].Value = model.F_typeValue12;
|
|
|
121
|
+ parameters[16].Value = model.F_typeValue22;
|
|
|
122
|
+ parameters[17].Value = model.F_typeValue32;
|
|
|
123
|
+ parameters[18].Value = model.F_typeValue42;
|
|
|
124
|
+ parameters[19].Value = model.F_typeValue52;
|
|
|
125
|
+ parameters[20].Value = model.F_typeValue62;
|
|
|
126
|
+
|
|
|
127
|
+
|
|
|
128
|
+ parameters[21].Value = model.F_CreateOn;
|
|
|
129
|
+ parameters[22].Value = model.F_userId;
|
|
110
|
130
|
|
|
111
|
131
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
|
|
112
|
132
|
if (obj == null)
|