Przeglądaj źródła

来电弹屏加详细地址

gaobingyue 5 lat temu
rodzic
commit
cd94051d65

+ 15 - 9
codegit/CallCenterApi/CallCenterApi.DAL/T_Rec_RegRecords.cs

@@ -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;

+ 3 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RegRecords/RegRecordsController.cs

@@ -131,7 +131,7 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
131 131
             int direction,string complained, string content, string remark, 
132 132
             string userName, string userPhone, string userSex, string userProvince, string userCity,
133 133
 string userArea, string problemType, string unit, string unitOffice, string caseParty, 
134
-string citizensType, string putRecord,string  zXZType ,int CasePartyId,string ProblemTypeB, int id = 0
134
+string citizensType, string putRecord,string  zXZType ,int CasePartyId,string ProblemTypeB, string userAddress, int id = 0
135 135
             )
136 136
         {
137 137
             if (!Request.IsAuthenticated)
@@ -176,7 +176,8 @@ string citizensType, string putRecord,string  zXZType ,int CasePartyId,string Pr
176 176
             dModel.F_ZXZType = zXZType;
177 177
             dModel.F_CasePartyId = CasePartyId;
178 178
             dModel.F_ProblemTypeB = ProblemTypeB;
179
-            var res = false;
179
+            dModel.F_userAddress = userAddress; 
180
+             var res = false;
180 181
             if(id>0)
181 182
             {
182 183
                 res = dBLL.Update(dModel);

+ 7 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Rec_RegRecords.cs

@@ -37,6 +37,7 @@ namespace CallCenterApi.Model
37 37
         private string _F_userProvince;
38 38
         private string _F_userCity;
39 39
         private string _F_userArea;
40
+        private string _F_userAddress;
40 41
 
41 42
 
42 43
         private string _F_ProblemType;
@@ -61,6 +62,12 @@ namespace CallCenterApi.Model
61 62
             set { _F_CasePartyId = value; }
62 63
             get { return _F_CasePartyId; }
63 64
         }
65
+        //_F_userAddress
66
+        public string F_userAddress
67
+        {
68
+            set { _F_userAddress = value; }
69
+            get { return _F_userAddress; }
70
+        }
64 71
         public string F_ProblemTypeB
65 72
         {
66 73
             set { _F_ProblemTypeB = value; }