|
|
@@ -228,7 +228,7 @@ namespace CallCenterApi.DAL
|
|
228
|
228
|
if (dep.Contains(lddep))
|
|
229
|
229
|
lddepexists = true;
|
|
230
|
230
|
}
|
|
231
|
|
-
|
|
|
231
|
+
|
|
232
|
232
|
return lddepexists;
|
|
233
|
233
|
}
|
|
234
|
234
|
|
|
|
@@ -239,15 +239,19 @@ namespace CallCenterApi.DAL
|
|
239
|
239
|
public List<string> GetLDdep()
|
|
240
|
240
|
{
|
|
241
|
241
|
List<string> lddep = null;
|
|
242
|
|
- string str = "select F_CustomerIndustry from T_Cus_CustomerBase group by F_CustomerIndustry";
|
|
|
242
|
+ string str = "select F_CustomerIndustry,F_RelationShipClass from T_Cus_CustomerBase";
|
|
243
|
243
|
DataSet ds = DbHelperSQL.Query(str);
|
|
244
|
244
|
if (ds != null && ds.Tables[0].Rows.Count > 0)
|
|
245
|
245
|
{
|
|
246
|
246
|
foreach (DataRow dr in ds.Tables[0].Rows)
|
|
247
|
247
|
{
|
|
248
|
|
- if (!string.IsNullOrEmpty(dr[0].ToString()))
|
|
|
248
|
+ for (int i = 0; i < ds.Tables[0].Columns.Count; i++)
|
|
249
|
249
|
{
|
|
250
|
|
- lddep.Add(dr[0].ToString());
|
|
|
250
|
+ var ldname = dr[i].ToString();
|
|
|
251
|
+ if (!string.IsNullOrEmpty(ldname) && !lddep.Contains(ldname))
|
|
|
252
|
+ {
|
|
|
253
|
+ lddep.Add(ldname);
|
|
|
254
|
+ }
|
|
251
|
255
|
}
|
|
252
|
256
|
}
|
|
253
|
257
|
}
|