Parcourir la Source

Merge branch 'master' of http://192.168.1.222:3000/duhongyu/Anyang_api

duhongyu il y a 4 ans
Parent
commit
b33f6a0bbb

+ 1 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Question/QuestionnaireController.cs

14
 
14
 
15
 namespace CallCenterApi.Interface.Controllers.Question
15
 namespace CallCenterApi.Interface.Controllers.Question
16
 {
16
 {
17
+    [Authority]
17
     public class QuestionnaireController : BaseController
18
     public class QuestionnaireController : BaseController
18
     {
19
     {
19
         private readonly BLL.T_Ask_QuestionCategory qCategoryBLL = new BLL.T_Ask_QuestionCategory();
20
         private readonly BLL.T_Ask_QuestionCategory qCategoryBLL = new BLL.T_Ask_QuestionCategory();

+ 10 - 10
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/UserAccountController.cs

13
 
13
 
14
 namespace CallCenterApi.Interface.Controllers
14
 namespace CallCenterApi.Interface.Controllers
15
 {
15
 {
16
-
16
+    [Authority]
17
     public class UserAccountController : BaseController
17
     public class UserAccountController : BaseController
18
     {
18
     {
19
         private BLL.T_Sys_UserAccount sysUserAccountBll = new BLL.T_Sys_UserAccount();
19
         private BLL.T_Sys_UserAccount sysUserAccountBll = new BLL.T_Sys_UserAccount();
21
         private BLL.T_Sys_DictionaryValue dicValueBLL = new BLL.T_Sys_DictionaryValue();
21
         private BLL.T_Sys_DictionaryValue dicValueBLL = new BLL.T_Sys_DictionaryValue();
22
 
22
 
23
         //用户列表
23
         //用户列表
24
-        [Authority]
24
+        //[Authority]
25
         public ActionResult GetList(int isdc=0)
25
         public ActionResult GetList(int isdc=0)
26
         {
26
         {
27
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
27
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
177
 
177
 
178
 
178
 
179
         //获取用户信息
179
         //获取用户信息
180
-        [Authority]
180
+        //[Authority]
181
         public ActionResult GetUser(int userId = 0, string userCode = "")
181
         public ActionResult GetUser(int userId = 0, string userCode = "")
182
         {
182
         {
183
             string sql = "";
183
             string sql = "";
234
             });
234
             });
235
 
235
 
236
         }
236
         }
237
-        [Authority]
237
+        //[Authority]
238
         //添加用户信息
238
         //添加用户信息
239
         public ActionResult AddUsers(UserAccountInput input)
239
         public ActionResult AddUsers(UserAccountInput input)
240
         {
240
         {
298
             else
298
             else
299
                 return Error("新增失败!");
299
                 return Error("新增失败!");
300
         }
300
         }
301
-        [Authority]
301
+        //[Authority]
302
         //修改用户信息
302
         //修改用户信息
303
         public ActionResult EditUsers(UserAccountInput input)
303
         public ActionResult EditUsers(UserAccountInput input)
304
         {
304
         {
358
             else
358
             else
359
                 return Error("编辑失败!");
359
                 return Error("编辑失败!");
360
         }
360
         }
361
-        [Authority]
361
+        //[Authority]
362
         //删除/禁用/启用 用户
362
         //删除/禁用/启用 用户
363
         public ActionResult DelUsers(string[] ids, int state = 0)
363
         public ActionResult DelUsers(string[] ids, int state = 0)
364
         {
364
         {
389
                 return Error("设置失败");
389
                 return Error("设置失败");
390
         }
390
         }
391
 
391
 
392
-        [Authority]
392
+        //[Authority]
393
         //删除用户
393
         //删除用户
394
         public ActionResult WLDelUsers(string[] ids)
394
         public ActionResult WLDelUsers(string[] ids)
395
         {
395
         {
439
 
439
 
440
         }
440
         }
441
 
441
 
442
-        [Authority]
442
+        //[Authority]
443
         //获取当前用户信息
443
         //获取当前用户信息
444
         public ActionResult GetNowUser()
444
         public ActionResult GetNowUser()
445
         {
445
         {
455
             return Success("获取成功", obj);
455
             return Success("获取成功", obj);
456
 
456
 
457
         }
457
         }
458
-        [Authority]
458
+        //[Authority]
459
         /// <summary>
459
         /// <summary>
460
         /// 重置密码
460
         /// 重置密码
461
         /// </summary>
461
         /// </summary>
575
         /// App手机端 用户列表
575
         /// App手机端 用户列表
576
         /// </summary>
576
         /// </summary>
577
         /// <returns></returns>
577
         /// <returns></returns>
578
-        [Authority]
578
+        //[Authority]
579
         public ActionResult GetAppUserList()
579
         public ActionResult GetAppUserList()
580
         {
580
         {
581
             DataTable dt = new DataTable();
581
             DataTable dt = new DataTable();

+ 3 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

1205
             Model.T_Cus_CustomerBase cusmodel = new Model.T_Cus_CustomerBase();
1205
             Model.T_Cus_CustomerBase cusmodel = new Model.T_Cus_CustomerBase();
1206
             if (!string.IsNullOrWhiteSpace(telphone))
1206
             if (!string.IsNullOrWhiteSpace(telphone))
1207
             {
1207
             {
1208
-                var fkconfig = new BLL.T_Sys_DictionaryValue().GetModel(countryid);
1208
+                var fkconfig = new BLL.T_Sys_Area().GetModel(countryid);
1209
                 
1209
                 
1210
                 cusmodel = cusBLL.GetModelByPhone(telphone);
1210
                 cusmodel = cusBLL.GetModelByPhone(telphone);
1211
 
1211
 
1213
                 {
1213
                 {
1214
                     cusmodel.F_Address = address;
1214
                     cusmodel.F_Address = address;
1215
                     if (fkconfig != null)
1215
                     if (fkconfig != null)
1216
-                        cusmodel.F_City = fkconfig.F_Value;
1216
+                        cusmodel.F_City = fkconfig.F_AreaName;
1217
                     cusmodel.F_CityID = countryid;
1217
                     cusmodel.F_CityID = countryid;
1218
                     cusmodel.F_CustomerName = name;
1218
                     cusmodel.F_CustomerName = name;
1219
                     cusmodel.F_Telephone = phone;
1219
                     cusmodel.F_Telephone = phone;
1225
                     cusmodel = new Model.T_Cus_CustomerBase();
1225
                     cusmodel = new Model.T_Cus_CustomerBase();
1226
                     cusmodel.F_Address = address;
1226
                     cusmodel.F_Address = address;
1227
                     if (fkconfig != null)
1227
                     if (fkconfig != null)
1228
-                        cusmodel.F_City = fkconfig.F_Value;
1228
+                        cusmodel.F_City = fkconfig.F_AreaName;
1229
                     cusmodel.F_CityID = countryid;
1229
                     cusmodel.F_CityID = countryid;
1230
                     cusmodel.F_CustomerName = name;
1230
                     cusmodel.F_CustomerName = name;
1231
                     cusmodel.F_Telephone = phone;
1231
                     cusmodel.F_Telephone = phone;

+ 17 - 16
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallPlanController.cs

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

+ 11 - 9
CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs

1564
                 var cp0 = table.GetRow(0).GetCell(0).GetCTTc().AddNewTcPr();
1564
                 var cp0 = table.GetRow(0).GetCell(0).GetCTTc().AddNewTcPr();
1565
                 cp0.AddNewVMerge().val = ST_Merge.restart;
1565
                 cp0.AddNewVMerge().val = ST_Merge.restart;
1566
                 cp0.AddNewVAlign().val = ST_VerticalJc.center;
1566
                 cp0.AddNewVAlign().val = ST_VerticalJc.center;
1567
+                cp0.tcW = new CT_TblWidth();cp0.tcW.w = "650";cp0.tcW.type = ST_TblWidth.dxa;
1567
                 table.GetRow(0).GetCell(0).SetParagraph(GetParagraph(table, true, "事项编号"));
1568
                 table.GetRow(0).GetCell(0).SetParagraph(GetParagraph(table, true, "事项编号"));
1569
+
1568
                 var cp1 = table.GetRow(0).GetCell(1).GetCTTc().AddNewTcPr();
1570
                 var cp1 = table.GetRow(0).GetCell(1).GetCTTc().AddNewTcPr();
1569
                 cp1.AddNewVMerge().val = ST_Merge.restart;
1571
                 cp1.AddNewVMerge().val = ST_Merge.restart;
1570
                 cp1.AddNewVAlign().val = ST_VerticalJc.center;
1572
                 cp1.AddNewVAlign().val = ST_VerticalJc.center;
1609
                 table.GetRow(5).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)2000;
1611
                 table.GetRow(5).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)2000;
1610
                 table.GetRow(5).MergeCells(1, 7);//合并列
1612
                 table.GetRow(5).MergeCells(1, 7);//合并列
1611
                 table.GetRow(5).GetCell(0).SetParagraph(GetParagraph(table, true, "调度意见"));
1613
                 table.GetRow(5).GetCell(0).SetParagraph(GetParagraph(table, true, "调度意见"));
1612
-                table.GetRow(5).GetCell(1).SetParagraph(GetParagraphImg(table, false, "请于1小时内与来电人取得联系(匿名除外),并于7个工作日内将办理情况反馈来电人,并将办理结果报市长便民公开电话受理中心,同时做好来电人信息保密工作。(若超期将进行通报;若无故不回复,将转交市委市政府督查局。)", false));
1614
+                table.GetRow(5).GetCell(1).SetParagraph(GetParagraph(table, false, "请于1小时内与来电人取得联系(匿名除外),并于7个工作日内将办理情况反馈来电人,并将办理结果报市长便民公开电话受理中心,同时做好来电人信息保密工作。(若超期将进行通报;若无故不回复,将转交市委市政府督查局。)", false));
1613
                 //第七行
1615
                 //第七行
1614
                 table.GetRow(6).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)1500;
1616
                 table.GetRow(6).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)1500;
1615
                 table.GetRow(6).MergeCells(1, 7);//合并列
1617
                 table.GetRow(6).MergeCells(1, 7);//合并列
1637
                 xwpfRun1.FontSize = 9;//设置文字大小
1639
                 xwpfRun1.FontSize = 9;//设置文字大小
1638
                 xwpfRun1.SetFontFamily("宋体", NPOI.XWPF.UserModel.FontCharRange.None); //设置标题样式如:(微软雅黑,隶书,楷体)根据自己的需求而定
1640
                 xwpfRun1.SetFontFamily("宋体", NPOI.XWPF.UserModel.FontCharRange.None); //设置标题样式如:(微软雅黑,隶书,楷体)根据自己的需求而定
1639
 
1641
 
1640
-                //NPOI.XWPF.UserModel.XWPFParagraph paragraph2 = document.CreateParagraph();//创建段落对象
1641
-                //paragraph2.Alignment = NPOI.XWPF.UserModel.ParagraphAlignment.RIGHT;//文字显示位置,段落排列(左对齐,居中,右对齐)
1642
-                //NPOI.XWPF.UserModel.XWPFRun xwpfRun2 = paragraph2.CreateRun();//创建段落文本对象
1643
-                //using (FileStream picData = new FileStream(HttpContext.Current.Server.MapPath("/Upload/Word/word.png"), FileMode.Open, FileAccess.Read))
1644
-                //{
1645
-                //    //图片的文件流   图片类型   图片名称   设置的宽度以及高度
1646
-                //    xwpfRun2.AddPicture(picData, (int)PictureType.PNG, "word.png", NPOI.Util.Units.ToEMU(200), NPOI.Util.Units.ToEMU(200));
1647
-                //}
1642
+                NPOI.XWPF.UserModel.XWPFParagraph paragraph2 = document.CreateParagraph();//创建段落对象
1643
+                paragraph2.Alignment = NPOI.XWPF.UserModel.ParagraphAlignment.RIGHT;//文字显示位置,段落排列(左对齐,居中,右对齐)
1644
+                NPOI.XWPF.UserModel.XWPFRun xwpfRun2 = paragraph2.CreateRun();//创建段落文本对象
1645
+                using (FileStream picData = new FileStream(HttpContext.Current.Server.MapPath("/Upload/Word/word.png"), FileMode.Open, FileAccess.Read))
1646
+                {
1647
+                    //图片的文件流   图片类型   图片名称   设置的宽度以及高度
1648
+                    xwpfRun2.AddPicture(picData, (int)PictureType.PNG, "word.png", NPOI.Util.Units.ToEMU(100), NPOI.Util.Units.ToEMU(100));
1649
+                }
1648
 
1650
 
1649
 
1651
 
1650
                 using (MemoryStream ms = new MemoryStream())
1652
                 using (MemoryStream ms = new MemoryStream())