Sfoglia il codice sorgente

质检的分数改成double,报表修改

liyuanyuan 3 anni fa
parent
commit
83b92d7acf

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

@@ -114,7 +114,7 @@ namespace CallCenterApi.BLL
114 114
                     }
115 115
                     if (dt.Rows[n]["F_Score"] != null && dt.Rows[n]["F_Score"].ToString() != "")
116 116
                     {
117
-                        model.F_Score = int.Parse(dt.Rows[n]["F_Score"].ToString());
117
+                        model.F_Score = double.Parse(dt.Rows[n]["F_Score"].ToString());
118 118
                     }
119 119
                     if (dt.Rows[n]["F_Title"] != null && dt.Rows[n]["F_Title"].ToString() != "")
120 120
                     {

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_QC_IndexBase.cs

@@ -221,7 +221,7 @@ namespace CallCenterApi.DAL
221 221
                 }
222 222
                 if (ds.Tables[0].Rows[0]["F_Score"] != null && ds.Tables[0].Rows[0]["F_Score"].ToString() != "")
223 223
                 {
224
-                    model.F_Score = int.Parse(ds.Tables[0].Rows[0]["F_Score"].ToString());
224
+                    model.F_Score = double.Parse(ds.Tables[0].Rows[0]["F_Score"].ToString());
225 225
                 }
226 226
                 if (ds.Tables[0].Rows[0]["F_Title"] != null && ds.Tables[0].Rows[0]["F_Title"].ToString() != "")
227 227
                 {

+ 6 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/quality/IndexBaseController.cs

@@ -101,10 +101,10 @@ namespace CallCenterApi.Interface.Controllers.quality
101 101
             {
102 102
                 dModel.F_Sort = Convert.ToInt32(sort.Trim());
103 103
             }
104
-            if (!string.IsNullOrWhiteSpace(sort.Trim()))
105
-            {
106
-                dModel.F_Score = Convert.ToInt32(sort.Trim());
107
-            }
104
+            //if (!string.IsNullOrWhiteSpace(sort.Trim()))
105
+            //{
106
+            //    dModel.F_Score = Convert.ToInt32(sort.Trim());
107
+            //}
108 108
             if (!string.IsNullOrWhiteSpace(title.Trim()))
109 109
             {
110 110
                 dModel.F_Title = WebHelper.UrlDecode(title.Trim());
@@ -116,7 +116,7 @@ namespace CallCenterApi.Interface.Controllers.quality
116 116
 
117 117
             if (!string.IsNullOrWhiteSpace(score))
118 118
             {
119
-                dModel.F_Score = Convert.ToInt32( score.Trim());
119
+                dModel.F_Score = Convert.ToDouble( score.Trim());
120 120
             }
121 121
 
122 122
 
@@ -156,7 +156,7 @@ namespace CallCenterApi.Interface.Controllers.quality
156 156
                     }
157 157
                     if (!string.IsNullOrWhiteSpace(score.Trim()))
158 158
                     {
159
-                        dModel.F_Score = Convert.ToInt32(score);
159
+                        dModel.F_Score = Convert.ToDouble(score);
160 160
                     }
161 161
                     if (!string.IsNullOrWhiteSpace(title.Trim()))
162 162
                     {

File diff suppressed because it is too large
+ 14 - 13
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/QCResultController.cs


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

@@ -18,7 +18,7 @@ namespace CallCenterApi.Model
18 18
         private int _f_indexid;
19 19
         private int? _f_categoryid;
20 20
         private int? _f_type;
21
-        private int? _f_score = 0;
21
+        private double? _f_score = 0;
22 22
         private string _f_title;
23 23
         private string _f_content;
24 24
         private string _f_remark;
@@ -65,7 +65,7 @@ namespace CallCenterApi.Model
65 65
         /// <summary>
66 66
         /// 分值
67 67
         /// </summary>
68
-        public int? F_Score
68
+        public double? F_Score
69 69
         {
70 70
             set { _f_score = value; }
71 71
             get { return _f_score; }