|
|
@@ -15,6 +15,7 @@ using System.Web.Mvc;
|
|
15
|
15
|
|
|
16
|
16
|
namespace CallCenterApi.Interface.Controllers.callout
|
|
17
|
17
|
{
|
|
|
18
|
+ [Authority]
|
|
18
|
19
|
public class CallPlanController : BaseController
|
|
19
|
20
|
{
|
|
20
|
21
|
private readonly BLL.T_CTI_Task taskBLL = new BLL.T_CTI_Task();
|
|
|
@@ -32,7 +33,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
32
|
33
|
/// </summary>
|
|
33
|
34
|
/// <param name="filter"></param>
|
|
34
|
35
|
/// <returns></returns>
|
|
35
|
|
- [Authority]
|
|
|
36
|
+ //[Authority]
|
|
36
|
37
|
public ActionResult GetList(FilterCallPlan filter)
|
|
37
|
38
|
{
|
|
38
|
39
|
var sql = " and State>=0 ";
|
|
|
@@ -82,7 +83,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
82
|
83
|
/// </summary>
|
|
83
|
84
|
/// <param name="id"></param>
|
|
84
|
85
|
/// <returns></returns>
|
|
85
|
|
- [Authority]
|
|
|
86
|
+ //[Authority]
|
|
86
|
87
|
public ActionResult GetModel(int id)
|
|
87
|
88
|
{
|
|
88
|
89
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -121,7 +122,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
121
|
122
|
/// </summary>
|
|
122
|
123
|
/// <param name="input"></param>
|
|
123
|
124
|
/// <returns></returns>
|
|
124
|
|
- [Authority]
|
|
|
125
|
+ //[Authority]
|
|
125
|
126
|
public ActionResult CreateOrUpdate(CallPlanInput input)
|
|
126
|
127
|
{
|
|
127
|
128
|
// if (!Request.IsAuthenticated)
|
|
|
@@ -316,7 +317,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
316
|
317
|
/// <param name="id"></param>
|
|
317
|
318
|
/// <param name="state"></param>
|
|
318
|
319
|
/// <returns></returns>
|
|
319
|
|
- [Authority]
|
|
|
320
|
+ //[Authority]
|
|
320
|
321
|
public ActionResult Delete(int id)
|
|
321
|
322
|
{
|
|
322
|
323
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -334,7 +335,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
334
|
335
|
/// <param name="pageSize"></param>
|
|
335
|
336
|
/// <param name="pageIndex"></param>
|
|
336
|
337
|
/// <returns></returns>
|
|
337
|
|
- [Authority]
|
|
|
338
|
+ //[Authority]
|
|
338
|
339
|
public ActionResult GetPhoneList(FilterCallPhone filter)
|
|
339
|
340
|
{
|
|
340
|
341
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -428,7 +429,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
428
|
429
|
/// </summary>
|
|
429
|
430
|
/// <param name="filter"></param>
|
|
430
|
431
|
/// <returns></returns>
|
|
431
|
|
- [Authority]
|
|
|
432
|
+ //[Authority]
|
|
432
|
433
|
public ActionResult GetCategoryList(FilterVoiceCategory filter)
|
|
433
|
434
|
{
|
|
434
|
435
|
var sql = " ";
|
|
|
@@ -470,7 +471,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
470
|
471
|
/// 获取所有类别(包含顶级分类)
|
|
471
|
472
|
/// </summary>
|
|
472
|
473
|
/// <returns></returns>
|
|
473
|
|
- [Authority]
|
|
|
474
|
+ //[Authority]
|
|
474
|
475
|
public ActionResult GetCategoryAllList()
|
|
475
|
476
|
{
|
|
476
|
477
|
List<Model.T_CTI_TaskCategory> modelList = taskCategoryBLL.DataTableToList(taskCategoryBLL.GetList("").Tables[0]);
|
|
|
@@ -489,7 +490,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
489
|
490
|
/// 获取所有类别(不包含顶级分类)
|
|
490
|
491
|
/// </summary>
|
|
491
|
492
|
/// <returns></returns>
|
|
492
|
|
- [Authority]
|
|
|
493
|
+ //[Authority]
|
|
493
|
494
|
public ActionResult GetCategoryALLList2()
|
|
494
|
495
|
{
|
|
495
|
496
|
List<Model.T_CTI_TaskCategory> modelList = taskCategoryBLL.DataTableToList(taskCategoryBLL.GetList("").Tables[0]);
|
|
|
@@ -504,7 +505,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
504
|
505
|
/// </summary>
|
|
505
|
506
|
/// <param name="id"></param>
|
|
506
|
507
|
/// <returns></returns>
|
|
507
|
|
- [Authority]
|
|
|
508
|
+ //[Authority]
|
|
508
|
509
|
public ActionResult GetCategory(int id)
|
|
509
|
510
|
{
|
|
510
|
511
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -525,7 +526,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
525
|
526
|
/// </summary>
|
|
526
|
527
|
/// <param name="input"></param>
|
|
527
|
528
|
/// <returns></returns>
|
|
528
|
|
- [Authority]
|
|
|
529
|
+ //[Authority]
|
|
529
|
530
|
public ActionResult CreateOrUpdateCategory(VoiceCategoryInput input)
|
|
530
|
531
|
{
|
|
531
|
532
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -564,7 +565,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
564
|
565
|
/// <param name="id"></param>
|
|
565
|
566
|
/// <param name="state"></param>
|
|
566
|
567
|
/// <returns></returns>
|
|
567
|
|
- [Authority]
|
|
|
568
|
+ //[Authority]
|
|
568
|
569
|
public ActionResult DeleteCategory(int id)
|
|
569
|
570
|
{
|
|
570
|
571
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -581,7 +582,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
581
|
582
|
/// </summary>
|
|
582
|
583
|
/// <param name="filter"></param>
|
|
583
|
584
|
/// <returns></returns>
|
|
584
|
|
- [Authority]
|
|
|
585
|
+ //[Authority]
|
|
585
|
586
|
public ActionResult GetVoiceTempList(FilterVoiceTemp filter)
|
|
586
|
587
|
{
|
|
587
|
588
|
var sql = " ";
|
|
|
@@ -621,7 +622,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
621
|
622
|
};
|
|
622
|
623
|
return Content(obj.ToJson());
|
|
623
|
624
|
}
|
|
624
|
|
- [Authority]
|
|
|
625
|
+ //[Authority]
|
|
625
|
626
|
public ActionResult GetVoiceTempTitleList(FilterVoiceTemp filter)
|
|
626
|
627
|
{
|
|
627
|
628
|
var list = taskVoiceTempBLL.DataTableToList2(taskVoiceTempBLL.GetList("").Tables[0]);
|
|
|
@@ -636,7 +637,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
636
|
637
|
/// </summary>
|
|
637
|
638
|
/// <param name="id"></param>
|
|
638
|
639
|
/// <returns></returns>
|
|
639
|
|
- [Authority]
|
|
|
640
|
+ //[Authority]
|
|
640
|
641
|
public ActionResult GetVoiceTemp(int id)
|
|
641
|
642
|
{
|
|
642
|
643
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -659,7 +660,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
659
|
660
|
/// </summary>
|
|
660
|
661
|
/// <param name="input"></param>
|
|
661
|
662
|
/// <returns></returns>
|
|
662
|
|
- [Authority]
|
|
|
663
|
+ //[Authority]
|
|
663
|
664
|
public ActionResult CreateOrUpdateVoiceTemp(VoiceTempleteInput input)
|
|
664
|
665
|
{
|
|
665
|
666
|
//if (!Request.IsAuthenticated)
|
|
|
@@ -698,7 +699,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
698
|
699
|
/// <param name="id"></param>
|
|
699
|
700
|
/// <param name="state"></param>
|
|
700
|
701
|
/// <returns></returns>
|
|
701
|
|
- [Authority]
|
|
|
702
|
+ //[Authority]
|
|
702
|
703
|
public ActionResult DeleteVoiceTemp(int[] ids)
|
|
703
|
704
|
{
|
|
704
|
705
|
//if (!Request.IsAuthenticated)
|