Sfoglia il codice sorgente

随访结果病人id修改为string

zhoufan 4 anni fa
parent
commit
173c24a910

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

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
             return dal.GetModelByTaskIdAndBingrenzyID(taskID, BINGRENZYID);
185
             return dal.GetModelByTaskIdAndBingrenzyID(taskID, BINGRENZYID);
186
         }
186
         }

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

40
 
40
 
41
             return dal.Delete(F_AnswerID);
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
             return dal.DeleteByTelid(F_CusTelID, F_TaskID);
45
             return dal.DeleteByTelid(F_CusTelID, F_TaskID);
46
         }
46
         }

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

30
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
30
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
31
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
31
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
32
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
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
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
34
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
35
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
35
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
36
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
36
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
86
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
86
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
87
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
87
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
88
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
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
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
90
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
91
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
91
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
92
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
92
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
219
                 {
219
                 {
220
                     model.F_Answer = row["F_Answer"].ToString();
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
                 if (row["F_CusID"] != null && row["F_CusID"].ToString() != "")
226
                 if (row["F_CusID"] != null && row["F_CusID"].ToString() != "")
227
                 {
227
                 {

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

409
         /// <summary>
409
         /// <summary>
410
         /// 得到一个对象实体
410
         /// 得到一个对象实体
411
         /// </summary>
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
             StringBuilder strSql = new StringBuilder();
415
             StringBuilder strSql = new StringBuilder();
418
             strSql.Append("  and  BINGRENZYID=@BINGRENZYID");
418
             strSql.Append("  and  BINGRENZYID=@BINGRENZYID");
419
             SqlParameter[] parameters = {
419
             SqlParameter[] parameters = {
420
                     new SqlParameter("@taskID", SqlDbType.Int,4),
420
                     new SqlParameter("@taskID", SqlDbType.Int,4),
421
-                      new SqlParameter("@BINGRENZYID", SqlDbType.NVarChar,100),
421
+                      new SqlParameter("@BINGRENZYID", SqlDbType.VarChar,50),
422
             };
422
             };
423
             parameters[0].Value = taskID;
423
             parameters[0].Value = taskID;
424
             parameters[1].Value = BINGRENZYID;
424
             parameters[1].Value = BINGRENZYID;

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

34
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
34
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
35
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
35
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
36
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
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
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
38
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
39
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
39
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
40
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
40
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
90
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
90
                     new SqlParameter("@F_QID", SqlDbType.Int,4),
91
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
91
                     new SqlParameter("@F_QIID", SqlDbType.Int,4),
92
                     new SqlParameter("@F_Answer", SqlDbType.NVarChar,3000),
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
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
94
                     new SqlParameter("@F_CusID", SqlDbType.Int,4),
95
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
95
                     new SqlParameter("@F_OptBy", SqlDbType.Int,4),
96
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
96
                     new SqlParameter("@F_OptByName", SqlDbType.NVarChar,50),
148
                 return false;
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
             StringBuilder strSql = new StringBuilder();
153
             StringBuilder strSql = new StringBuilder();
154
             strSql.Append("delete from T_Call_OutAnswers ");
154
             strSql.Append("delete from T_Call_OutAnswers ");
155
             strSql.Append(" where F_CusTelID=@F_CusTelID ");
155
             strSql.Append(" where F_CusTelID=@F_CusTelID ");
156
             strSql.Append(" and F_TaskID=@F_TaskID ");
156
             strSql.Append(" and F_TaskID=@F_TaskID ");
157
             SqlParameter[] parameters = {
157
             SqlParameter[] parameters = {
158
-                    new SqlParameter("@F_CusTelID", SqlDbType.Int,4),
158
+                    new SqlParameter("@F_CusTelID", SqlDbType.VarChar,50),
159
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
159
                     new SqlParameter("@F_TaskID", SqlDbType.Int,4)
160
             };
160
             };
161
             parameters[0].Value = F_CusTelID;
161
             parameters[0].Value = F_CusTelID;
246
                 {
246
                 {
247
                     model.F_Answer = row["F_Answer"].ToString();
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
                 if (row["F_CusID"] != null && row["F_CusID"].ToString() != "")
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
         /// <param name="countryid">乡镇id</param>
483
         /// <param name="countryid">乡镇id</param>
484
         /// <param name="address">地址</param>
484
         /// <param name="address">地址</param>
485
         /// <returns></returns>
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
             string name, string phone, string address, string advise, string satisfied, string praise, string criticism,string blfl, int pagerid = 0, int countryid = 0)
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
             taskid = 0;
489
             taskid = 0;
495
                 return Error("提交结果配置不正常");
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
                 if (otnModel != null)
501
                 if (otnModel != null)
502
                 {
502
                 {
503
                     if (!string.IsNullOrEmpty(blfl))
503
                     if (!string.IsNullOrEmpty(blfl))
1149
         /// <param name="countryid">乡镇id</param>
1149
         /// <param name="countryid">乡镇id</param>
1150
         /// <param name="address">地址</param>
1150
         /// <param name="address">地址</param>
1151
         /// <returns></returns>
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
             string name, string phone, string address, string advise, string satisfied, string praise, string criticism, string blfl, int pagerid = 0, int countryid = 0)
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
                 return Error("提交结果配置不正常");
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
                 if (otnModel != null)
1167
                 if (otnModel != null)
1168
                 {
1168
                 {
1169
                     if (!string.IsNullOrEmpty(blfl))
1169
                     if (!string.IsNullOrEmpty(blfl))

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

1130
                     if (ans != null)
1130
                     if (ans != null)
1131
                     {
1131
                     {
1132
                         //先删除 后添加
1132
                         //先删除 后添加
1133
-                        ansBLL.DeleteByTelid(custelid, taskid);
1133
+                        ansBLL.DeleteByTelid(custelid.ToString(), taskid);
1134
 
1134
 
1135
                         ansModel.F_TaskID = taskid;
1135
                         ansModel.F_TaskID = taskid;
1136
-                        ansModel.F_CusTelID = custelid;
1136
+                        ansModel.F_CusTelID = custelid.ToString();
1137
                         ansModel.F_CusID = cusid;
1137
                         ansModel.F_CusID = cusid;
1138
                         ansModel.F_OptBy = CurrentUser.UserData.F_UserId;
1138
                         ansModel.F_OptBy = CurrentUser.UserData.F_UserId;
1139
                         ansModel.F_OptByName = CurrentUser.UserData.F_UserName;
1139
                         ansModel.F_OptByName = CurrentUser.UserData.F_UserName;
1208
                 }
1208
                 }
1209
                 else
1209
                 else
1210
                 {
1210
                 {
1211
-                    ansBLL.DeleteByTelid(custelid, taskid);
1211
+                    ansBLL.DeleteByTelid(custelid.ToString(), taskid);
1212
                     return Error("问卷答案提交失败!taskid=" + taskid + ",custelid=" + custelid + ",操作人:" + CurrentUser.UserData.F_UserCode);
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
         private int? _f_qid;
17
         private int? _f_qid;
18
         private int? _f_qiid;
18
         private int? _f_qiid;
19
         private string _f_answer;
19
         private string _f_answer;
20
-        private int? _f_custelid;
20
+        private string _f_custelid;
21
         private int? _f_cusid;
21
         private int? _f_cusid;
22
         private int? _f_optby;
22
         private int? _f_optby;
23
         private string _f_optbyname;
23
         private string _f_optbyname;
68
         /// <summary>
68
         /// <summary>
69
         /// 病人住院id
69
         /// 病人住院id
70
         /// </summary>
70
         /// </summary>
71
-        public int? F_CusTelID
71
+        public string F_CusTelID
72
         {
72
         {
73
             set { _f_custelid = value; }
73
             set { _f_custelid = value; }
74
             get { return _f_custelid; }
74
             get { return _f_custelid; }

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

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