|
|
@@ -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
|
/// 验证客户电话是否唯一
|