duhongyu лет назад: 5
Родитель
Сommit
882c50ab92

+ 25 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/ConversationController.cs

@@ -127,13 +127,13 @@ namespace CallCenterApi.Interface.Controllers
127 127
                 int cid = Utils.StrToInt(RequestString.GetQueryString("id"), 0);
128 128
                 if (cid != 0)
129 129
                 {
130
-
131
-            
130
+                  
131
+                   
132 132
                     Model.T_Con_Conversation model = new BLL.T_Con_Conversation().GetModel(cid);
133
-                 
133
+               
134 134
                     if (model != null)
135 135
                     {
136
-                        res = Success("获取成功", model);
136
+                        res = Success("获取成功", ModelConversation(model));
137 137
                     }
138 138
                     else
139 139
                     {
@@ -147,15 +147,35 @@ namespace CallCenterApi.Interface.Controllers
147 147
             }
148 148
             return res;
149 149
         }
150
+       private Conversation ModelConversation(Model.T_Con_Conversation model)
151
+        {
152
+            var list_Dep = bll_Dep.DataTableToList(bll_Dep.GetList(" 1=1").Tables[0]).ToList();
153
+            Conversation conversation = new Conversation();
154
+            conversation.ID = (int)model.ID;
155
+            conversation.F_Type =(int ) model.F_Type;
156
+            conversation.F_Department = model.F_Department;
157
+            conversation.F_Section = model.F_Section;
158
+            conversation.F_Telephone = model.F_Telephone;
159
+            conversation.F_Physician = model.F_Physician;
160
+            conversation.F_Title = model.F_Title;
161
+            var model_Dept = list_Dep.SingleOrDefault(x => x.F_DeptId.Equals(model.F_Department));
162
+            conversation. F_DepartmentName = model_Dept != null ? model_Dept.F_DeptName  : "";
163
+            var model_Sec = list_Dep.SingleOrDefault(x => x.F_DeptId.Equals(model.F_Section));
164
+            conversation.F_SectionName = model_Sec != null ? model_Sec.F_DeptName : "";
165
+            return conversation;
166
+        }
150 167
         public class Conversation
151 168
         {
152
-            public int ID { get; set; }
169
+            public int    ID { get; set; }
153 170
             public int  F_Type { get; set; }// 1内线2外线
154 171
             public int F_Department { get; set; }// 部门
155 172
             public int F_Section { get; set; }//科室
156 173
             public string F_Telephone { get; set; }//电话
157 174
             public string F_Physician { get; set; }//医师
158 175
             public string F_Title { get; set; }//职称
176
+            public string F_DepartmentName { get; set; }
177
+            public string F_SectionName { get; set; }
178
+            
159 179
         }
160 180
         /// <summary>
161 181
         /// 验证客户电话是否唯一

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/YearContrastController.cs

@@ -109,10 +109,10 @@ namespace CallCenterApi.Interface.Controllers.report
109 109
                 DataColumn dc1 = new DataColumn("月份", Type.GetType("System.String"));
110 110
                 DataColumn dc2 = new DataColumn(beginyear + "年客户呼叫数", Type.GetType("System.String"));
111 111
                 DataColumn dc3 = new DataColumn(beginyear + "年坐席接听数", Type.GetType("System.String"));
112
-                DataColumn dc4 = new DataColumn(beginyear + "年坐席接率", Type.GetType("System.String"));
112
+                DataColumn dc4 = new DataColumn(beginyear + "年坐席接率", Type.GetType("System.String"));
113 113
                 DataColumn dc5 = new DataColumn(endyear + "年客户呼叫数", Type.GetType("System.String"));
114 114
                 DataColumn dc6 = new DataColumn(endyear + "年坐席接听数", Type.GetType("System.String"));
115
-                DataColumn dc7 = new DataColumn(endyear + "年坐席接率", Type.GetType("System.String"));
115
+                DataColumn dc7 = new DataColumn(endyear + "年坐席接率", Type.GetType("System.String"));
116 116
 
117 117
                 dtNew.Columns.Add(dc1);
118 118
                 dtNew.Columns.Add(dc2);
@@ -136,10 +136,10 @@ namespace CallCenterApi.Interface.Controllers.report
136 136
                     drNew["月份"] = (i + 1).ToString() + "月";
137 137
                     drNew[beginyear + "年客户呼叫数"] = bkhcall[i];
138 138
                     drNew[beginyear + "年坐席接听数"] = bzxjt[i];
139
-                    drNew[beginyear + "年接听率"] = bjtl[i];
139
+                    drNew[beginyear + "年坐席接通率"] = bjtl[i];
140 140
                     drNew[endyear + "年客户呼叫数"] = ekhcall[i];
141 141
                     drNew[endyear + "年坐席接听数"] = ezxjt[i];
142
-                    drNew[endyear + "年接听率"] = ejtl[i];
142
+                    drNew[endyear + "年坐席接通率"] = ejtl[i];
143 143
                     dtNew.Rows.Add(drNew);
144 144
                 }
145 145
             }

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/ZuoXiManYiDuController.cs

@@ -190,7 +190,7 @@ namespace CallCenterApi.Interface.Controllers.report
190 190
                         }
191 191
                         catch
192 192
                         {
193
-                            dr["未评价占比"] = string.Format("{0:f2}%", 0 * 100);
193
+                            dr["未评价占比"] = string.Format("{0:f2}%", 1 * 100);
194 194
                         }
195 195
                     }
196 196
                     dtNew.Rows.Add(dr);