瀏覽代碼

来电弹屏加详细地址

gaobingyue 5 年之前
父節點
當前提交
cd94051d65

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

44
             strSql.Append(@"F_RecCode,F_CusID,F_Type,F_Direction,F_Complained,F_Content,
44
             strSql.Append(@"F_RecCode,F_CusID,F_Type,F_Direction,F_Complained,F_Content,
45
 F_Remark,F_CreateBy,F_CreateOn,F_IsDelete,F_DeleteOn,F_DeleteBy,F_Tel,F_CallId,
45
 F_Remark,F_CreateBy,F_CreateOn,F_IsDelete,F_DeleteOn,F_DeleteBy,F_Tel,F_CallId,
46
 F_userName,F_userPhone,F_userSex,F_userProvince,F_userCity,F_userArea,F_ProblemType,F_Unit,
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
             strSql.Append(" values (");
49
             strSql.Append(" values (");
50
             strSql.Append(@"@F_RecCode,@F_CusID,@F_Type,@F_Direction,@F_Complained,@F_Content,
50
             strSql.Append(@"@F_RecCode,@F_CusID,@F_Type,@F_Direction,@F_Complained,@F_Content,
51
 @F_Remark,@F_CreateBy,@F_CreateOn,@F_IsDelete,@F_DeleteOn,@F_DeleteBy,@F_Tel,@F_CallId,
51
 @F_Remark,@F_CreateBy,@F_CreateOn,@F_IsDelete,@F_DeleteOn,@F_DeleteBy,@F_Tel,@F_CallId,
52
 @F_userName,@F_userPhone,@F_userSex,@F_userProvince,@F_userCity,@F_userArea,@F_ProblemType,@F_Unit,
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
             strSql.Append(";select @@IDENTITY");
55
             strSql.Append(";select @@IDENTITY");
56
             SqlParameter[] parameters = {
56
             SqlParameter[] parameters = {
83
  new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50) ,
83
  new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50) ,
84
   new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
84
   new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
85
     new SqlParameter("@F_CasePartyId", SqlDbType.Int,4),
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
             parameters[0].Value = model.F_RecCode;
90
             parameters[0].Value = model.F_RecCode;
89
             parameters[1].Value = model.F_CusID;
91
             parameters[1].Value = model.F_CusID;
117
  parameters[26].Value = model.F_ZXZType;
119
  parameters[26].Value = model.F_ZXZType;
118
 
120
 
119
             parameters[27].Value = model.F_CasePartyId;
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
             object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
124
             object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
123
             if (obj == null)
125
             if (obj == null)
124
             {
126
             {
166
                  strSql.Append("F_ZXZType   =@F_ZXZType,");
168
                  strSql.Append("F_ZXZType   =@F_ZXZType,");
167
             strSql.Append("F_CasePartyId   =@F_CasePartyId,");
169
             strSql.Append("F_CasePartyId   =@F_CasePartyId,");
168
             strSql.Append("F_ProblemTypeB   =@F_ProblemTypeB,");
170
             strSql.Append("F_ProblemTypeB   =@F_ProblemTypeB,");
169
-
171
+     
172
+                 strSql.Append("F_userAddress   =@F_userAddress");
170
             strSql.Append(" where F_ID=@F_ID");
173
             strSql.Append(" where F_ID=@F_ID");
171
             SqlParameter[] parameters = {
174
             SqlParameter[] parameters = {
172
                     new SqlParameter("@F_RecCode", SqlDbType.NVarChar,50),
175
                     new SqlParameter("@F_RecCode", SqlDbType.NVarChar,50),
200
  new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50),
203
  new SqlParameter("@F_PutRecord", SqlDbType.VarChar,50),
201
   new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
204
   new SqlParameter("@F_ZXZType", SqlDbType.VarChar,50),
202
    new SqlParameter("@F_CasePartyId", SqlDbType.Int,4),
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
             parameters[0].Value = model.F_RecCode;
209
             parameters[0].Value = model.F_RecCode;
207
             parameters[1].Value = model.F_CusID;
210
             parameters[1].Value = model.F_CusID;
236
 
239
 
237
             parameters[27].Value = model.F_CasePartyId;
240
             parameters[27].Value = model.F_CasePartyId;
238
             parameters[28].Value = model.F_ProblemTypeB;
241
             parameters[28].Value = model.F_ProblemTypeB;
242
+            parameters[29].Value = model.F_userAddress; 
239
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
243
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
240
             if (rows > 0)
244
             if (rows > 0)
241
             {
245
             {
431
                 }
435
                 }
432
                 if (row["F_ProblemTypeB"] != null && row["F_ProblemTypeB"].ToString() != "")
436
                 if (row["F_ProblemTypeB"] != null && row["F_ProblemTypeB"].ToString() != "")
433
                 { model.F_ProblemTypeB = row["F_ProblemTypeB"].ToString(); }
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
             return model;
443
             return model;

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

131
             int direction,string complained, string content, string remark, 
131
             int direction,string complained, string content, string remark, 
132
             string userName, string userPhone, string userSex, string userProvince, string userCity,
132
             string userName, string userPhone, string userSex, string userProvince, string userCity,
133
 string userArea, string problemType, string unit, string unitOffice, string caseParty, 
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
             if (!Request.IsAuthenticated)
137
             if (!Request.IsAuthenticated)
176
             dModel.F_ZXZType = zXZType;
176
             dModel.F_ZXZType = zXZType;
177
             dModel.F_CasePartyId = CasePartyId;
177
             dModel.F_CasePartyId = CasePartyId;
178
             dModel.F_ProblemTypeB = ProblemTypeB;
178
             dModel.F_ProblemTypeB = ProblemTypeB;
179
-            var res = false;
179
+            dModel.F_userAddress = userAddress; 
180
+             var res = false;
180
             if(id>0)
181
             if(id>0)
181
             {
182
             {
182
                 res = dBLL.Update(dModel);
183
                 res = dBLL.Update(dModel);

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

37
         private string _F_userProvince;
37
         private string _F_userProvince;
38
         private string _F_userCity;
38
         private string _F_userCity;
39
         private string _F_userArea;
39
         private string _F_userArea;
40
+        private string _F_userAddress;
40
 
41
 
41
 
42
 
42
         private string _F_ProblemType;
43
         private string _F_ProblemType;
61
             set { _F_CasePartyId = value; }
62
             set { _F_CasePartyId = value; }
62
             get { return _F_CasePartyId; }
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
         public string F_ProblemTypeB
71
         public string F_ProblemTypeB
65
         {
72
         {
66
             set { _F_ProblemTypeB = value; }
73
             set { _F_ProblemTypeB = value; }