|
|
@@ -306,8 +306,8 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
306
|
306
|
#endregion
|
|
307
|
307
|
#region 根据问题id获取问题的查询条件
|
|
308
|
308
|
string sqlques = "F_QuestionId IN (select ta.F_QuestionId from T_Ask_PagerItems ta where ta.F_PagerId=(select F_PagerID from T_Call_OutTask where isnull(F_TaskID,'')='" + TaskID + "') ) and F_Type!=1";
|
|
309
|
|
- if (!string.IsNullOrWhiteSpace(quesid))
|
|
310
|
|
- sqlques = "F_QuestionId=" + quesid;
|
|
|
309
|
+ //if (!string.IsNullOrWhiteSpace(quesid))
|
|
|
310
|
+ // sqlques = "F_QuestionId=" + quesid;
|
|
311
|
311
|
#endregion
|
|
312
|
312
|
|
|
313
|
313
|
var queslist = questionBLL.GetModelList(sqlques);
|
|
|
@@ -317,24 +317,31 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
317
|
317
|
{
|
|
318
|
318
|
DataRow dr = dtCol.NewRow();
|
|
319
|
319
|
dr["wenti"] = itemquestion.F_Title;
|
|
320
|
|
-
|
|
321
|
|
- //根据问题ID查询问题项
|
|
322
|
|
- var dsi = questionItemBLL.GetModelList(" isnull(F_QuestionId,'') = '" + itemquestion.F_QuestionId + "' ");
|
|
323
|
|
- if (dsi.Count > 0)
|
|
|
320
|
+ if (itemquestion.F_QuestionId.ToString().Equals(quesid))
|
|
324
|
321
|
{
|
|
325
|
|
- foreach (var itemqi in dsi)
|
|
|
322
|
+ //根据问题ID查询问题项
|
|
|
323
|
+ var dsi = questionItemBLL.GetModelList(" isnull(F_QuestionId,'') = '" + itemquestion.F_QuestionId + "' ");
|
|
|
324
|
+ if (dsi.Count > 0)
|
|
326
|
325
|
{
|
|
327
|
|
- if (itemquestion.F_QuestionId.ToString().Equals(quesid))
|
|
|
326
|
+ foreach (var itemqi in dsi)
|
|
328
|
327
|
{
|
|
329
|
328
|
arlist.Add(itemqi.F_ItemName);
|
|
330
|
329
|
columnsnum++;
|
|
331
|
330
|
}
|
|
332
|
|
- else
|
|
|
331
|
+ dr["fenxiangshu"] = dsi.Count;
|
|
|
332
|
+ }
|
|
|
333
|
+ }
|
|
|
334
|
+ else
|
|
|
335
|
+ {
|
|
|
336
|
+ //根据问题ID查询问题项
|
|
|
337
|
+ var dsi = questionItemBLL.GetModelList(" isnull(F_QuestionId,'') = '" + itemquestion.F_QuestionId + "' ");
|
|
|
338
|
+ if (dsi.Count > 0)
|
|
|
339
|
+ {
|
|
|
340
|
+ foreach (var itemqi in dsi)
|
|
333
|
341
|
{
|
|
334
|
342
|
checklist.Add(itemqi.F_ItemName);
|
|
335
|
343
|
}
|
|
336
|
344
|
}
|
|
337
|
|
- dr["fenxiangshu"] = dsi.Count;
|
|
338
|
345
|
}
|
|
339
|
346
|
dr["wentiid"] = quesid;
|
|
340
|
347
|
dtCol.Rows.Add(dr);
|
|
|
@@ -393,7 +400,8 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
393
|
400
|
int num = 0;
|
|
394
|
401
|
totalnum = ansBLL.GetRecordCount(sqlans + " and isnull(F_QIID,'')='" + dtCol.Rows[m]["wentiid"].ToString() + "' ");
|
|
395
|
402
|
|
|
396
|
|
- int fenxiang = Convert.ToInt32(dtCol.Rows[m]["fenxiangshu"].ToString());
|
|
|
403
|
+ string fenxiangshu = dtCol.Rows[m]["fenxiangshu"].ToString();
|
|
|
404
|
+ int fenxiang = fenxiangshu == "" ? 0 : Convert.ToInt32(fenxiangshu);
|
|
397
|
405
|
len = len + fenxiang;
|
|
398
|
406
|
while (n < len)
|
|
399
|
407
|
{
|