Преглед на файлове

随访结果病人id修改为string

zhoufan преди 4 години
родител
ревизия
173c24a910

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.BLL/SF_TaskDetail.cs

@@ -180,7 +180,7 @@ namespace CallCenterApi.BLL
180 180
         }
181 181
 
182 182
 
183
-        public CallCenterApi.Model.SF_TaskDetail GetModelByTaskIdAndBingrenzyID(int taskID, int BINGRENZYID) {
183
+        public CallCenterApi.Model.SF_TaskDetail GetModelByTaskIdAndBingrenzyID(int taskID, string BINGRENZYID) {
184 184
 
185 185
             return dal.GetModelByTaskIdAndBingrenzyID(taskID, BINGRENZYID);
186 186
         }

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.BLL/T_Call_OutAnswers.cs

@@ -40,7 +40,7 @@ namespace CallCenterApi.BLL
40 40
 
41 41
             return dal.Delete(F_AnswerID);
42 42
         }
43
-        public bool DeleteByTelid(int F_CusTelID, int? F_TaskID)
43
+        public bool DeleteByTelid(string F_CusTelID, int? F_TaskID)
44 44
         {
45 45
             return dal.DeleteByTelid(F_CusTelID, F_TaskID);
46 46
         }

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/SF_TaskAnswers.cs

@@ -30,7 +30,7 @@ namespace CallCenterApi.DAL
30 30
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
31 31
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
32 32
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
33
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
33
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
34 34
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
35 35
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
36 36
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
@@ -86,7 +86,7 @@ namespace CallCenterApi.DAL
86 86
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
87 87
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
88 88
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
89
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
89
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
90 90
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
91 91
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
92 92
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
@@ -219,9 +219,9 @@ namespace CallCenterApi.DAL
219 219
                 {
220 220
                     model.F_Answer = row["F_Answer"].ToString();
221 221
                 }
222
-                if (row["F_CusTelID"] != null && row["F_CusTelID"].ToString() != "")
222
+                if (row["F_CusTelID"] != null)
223 223
                 {
224
-                    model.F_CusTelID = int.Parse(row["F_CusTelID"].ToString());
224
+                    model.F_CusTelID = row["F_CusTelID"].ToString();
225 225
                 }
226 226
                 if (row["F_CusID"] != null && row["F_CusID"].ToString() != "")
227 227
                 {

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

@@ -409,7 +409,7 @@ namespace CallCenterApi.DAL
409 409
         /// <summary>
410 410
         /// 得到一个对象实体
411 411
         /// </summary>
412
-        public CallCenterApi.Model.SF_TaskDetail GetModelByTaskIdAndBingrenzyID(int taskID,int BINGRENZYID)
412
+        public CallCenterApi.Model.SF_TaskDetail GetModelByTaskIdAndBingrenzyID(int taskID,string BINGRENZYID)
413 413
         {
414 414
 
415 415
             StringBuilder strSql = new StringBuilder();
@@ -418,7 +418,7 @@ namespace CallCenterApi.DAL
418 418
             strSql.Append("  and  BINGRENZYID=@BINGRENZYID");
419 419
             SqlParameter[] parameters = {
420 420
                     new SqlParameter("@taskID", SqlDbType.Int,4),
421
-                      new SqlParameter("@BINGRENZYID", SqlDbType.NVarChar,100),
421
+                      new SqlParameter("@BINGRENZYID", SqlDbType.VarChar,50),
422 422
             };
423 423
             parameters[0].Value = taskID;
424 424
             parameters[1].Value = BINGRENZYID;

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.DAL/T_Call_OutAnswers.cs

@@ -34,7 +34,7 @@ namespace CallCenterApi.DAL
34 34
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
35 35
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
36 36
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
37
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
37
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
38 38
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
39 39
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
40 40
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
@@ -90,7 +90,7 @@ namespace CallCenterApi.DAL
90 90
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
91 91
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
92 92
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
93
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
93
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
94 94
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
95 95
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
96 96
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
@@ -148,14 +148,14 @@ namespace CallCenterApi.DAL
148 148
                 return false;
149 149
             }
150 150
         }
151
-        public bool DeleteByTelid(int F_CusTelID,int? F_TaskID)
151
+        public bool DeleteByTelid(string F_CusTelID,int? F_TaskID)
152 152
         {
153 153
             StringBuilder strSql = new StringBuilder();
154 154
             strSql.Append("delete from T_Call_OutAnswers ");
155 155
             strSql.Append(" where F_CusTelID=@F_CusTelID ");
156 156
             strSql.Append(" and F_TaskID=@F_TaskID ");
157 157
             SqlParameter[] parameters = {
158
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
158
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
159 159
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
160 160
             };
161 161
             parameters[0].Value = F_CusTelID;
@@ -246,9 +246,9 @@ namespace CallCenterApi.DAL
246 246
                 {
247 247
                     model.F_Answer = row["F_Answer"].ToString();
248 248
                 }
249
-                if (row["F_CusTelID"] != null && row["F_CusTelID"].ToString() != "")
249
+                if (row["F_CusTelID"] != null)
250 250
                 {
251
-                    model.F_CusTelID = int.Parse(row["F_CusTelID"].ToString());
251
+                    model.F_CusTelID = row["F_CusTelID"].ToString();
252 252
                 }
253 253
                 if (row["F_CusID"] != null && row["F_CusID"].ToString() != "")
254 254
                 {

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

@@ -483,7 +483,7 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
483 483
         /// <param name="countryid">乡镇id</param>
484 484
         /// <param name="address">地址</param>
485 485
         /// <returns></returns>
486
-        public ActionResult Answers(int? taskid, int custelid, string[] ans, int hjjgid,
486
+        public ActionResult Answers(int? taskid, string custelid, string[] ans, int hjjgid,
487 487
             string name, string phone, string address, string advise, string satisfied, string praise, string criticism,string blfl, int pagerid = 0, int countryid = 0)
488 488
         {
489 489
             taskid = 0;
@@ -495,9 +495,9 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
495 495
                 return Error("提交结果配置不正常");
496 496
             }
497 497
 
498
-            if (custelid > 0)
498
+            if (!string.IsNullOrEmpty(custelid))
499 499
             {
500
-                var otnModel = busSF_BINGRENQK.GetModel(custelid.ToString());
500
+                var otnModel = busSF_BINGRENQK.GetModel(custelid);
501 501
                 if (otnModel != null)
502 502
                 {
503 503
                     if (!string.IsNullOrEmpty(blfl))
@@ -1149,7 +1149,7 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
1149 1149
         /// <param name="countryid">乡镇id</param>
1150 1150
         /// <param name="address">地址</param>
1151 1151
         /// <returns></returns>
1152
-        public ActionResult Answersnew(int taskid, int custelid, string[] ans, int hjjgid,
1152
+        public ActionResult Answersnew(int taskid, string custelid, string[] ans, int hjjgid,
1153 1153
             string name, string phone, string address, string advise, string satisfied, string praise, string criticism, string blfl, int pagerid = 0, int countryid = 0)
1154 1154
         {
1155 1155
             
@@ -1161,9 +1161,9 @@ namespace CallCenterApi.Interface.Controllers.MedicalFollowup
1161 1161
                 return Error("提交结果配置不正常");
1162 1162
             }
1163 1163
 
1164
-            if (custelid > 0)
1164
+            if (!string.IsNullOrEmpty(custelid))
1165 1165
             {
1166
-                var otnModel = busSF_BINGRENQK.GetModel(custelid.ToString());
1166
+                var otnModel = busSF_BINGRENQK.GetModel(custelid);
1167 1167
                 if (otnModel != null)
1168 1168
                 {
1169 1169
                     if (!string.IsNullOrEmpty(blfl))

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -1130,10 +1130,10 @@ namespace CallCenterApi.Interface.Controllers.callout
1130 1130
                     if (ans != null)
1131 1131
                     {
1132 1132
                         //先删除 后添加
1133
-                        ansBLL.DeleteByTelid(custelid, taskid);
1133
+                        ansBLL.DeleteByTelid(custelid.ToString(), taskid);
1134 1134
 
1135 1135
                         ansModel.F_TaskID = taskid;
1136
-                        ansModel.F_CusTelID = custelid;
1136
+                        ansModel.F_CusTelID = custelid.ToString();
1137 1137
                         ansModel.F_CusID = cusid;
1138 1138
                         ansModel.F_OptBy = CurrentUser.UserData.F_UserId;
1139 1139
                         ansModel.F_OptByName = CurrentUser.UserData.F_UserName;
@@ -1208,7 +1208,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1208 1208
                 }
1209 1209
                 else
1210 1210
                 {
1211
-                    ansBLL.DeleteByTelid(custelid, taskid);
1211
+                    ansBLL.DeleteByTelid(custelid.ToString(), taskid);
1212 1212
                     return Error("问卷答案提交失败!taskid=" + taskid + ",custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
1213 1213
                 }
1214 1214
             }

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Model/SF_TaskAnswers.cs

@@ -17,7 +17,7 @@ namespace CallCenterApi.Model
17 17
         private int? _f_qid;
18 18
         private int? _f_qiid;
19 19
         private string _f_answer;
20
-        private int? _f_custelid;
20
+        private string _f_custelid;
21 21
         private int? _f_cusid;
22 22
         private int? _f_optby;
23 23
         private string _f_optbyname;
@@ -68,7 +68,7 @@ namespace CallCenterApi.Model
68 68
         /// <summary>
69 69
         /// 病人住院id
70 70
         /// </summary>
71
-        public int? F_CusTelID
71
+        public string F_CusTelID
72 72
         {
73 73
             set { _f_custelid = value; }
74 74
             get { return _f_custelid; }

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Model/T_Call_OutAnswers.cs

@@ -20,7 +20,7 @@ namespace CallCenterApi.Model
20 20
         private int? _f_qid;
21 21
         private int? _f_qiid;
22 22
         private string _f_answer;
23
-        private int? _f_custelid;
23
+        private string _f_custelid;
24 24
         private int? _f_cusid;
25 25
         private int? _f_optby;
26 26
         private string _f_optbyname;
@@ -71,7 +71,7 @@ namespace CallCenterApi.Model
71 71
         /// <summary>
72 72
         /// 客户计划ID
73 73
         /// </summary>
74
-        public int? F_CusTelID
74
+        public string F_CusTelID
75 75
         {
76 76
             set { _f_custelid = value; }
77 77
             get { return _f_custelid; }