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,6 +14,7 @@ using System.Web.Mvc;
14 14
 
15 15
 namespace CallCenterApi.Interface.Controllers.Question
16 16
 {
17
+    [Authority]
17 18
     public class QuestionnaireController : BaseController
18 19
     {
19 20
         private readonly BLL.T_Ask_QuestionCategory qCategoryBLL = new BLL.T_Ask_QuestionCategory();

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

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

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

@@ -1205,7 +1205,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1205 1205
             Model.T_Cus_CustomerBase cusmodel = new Model.T_Cus_CustomerBase();
1206 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 1210
                 cusmodel = cusBLL.GetModelByPhone(telphone);
1211 1211
 
@@ -1213,7 +1213,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1213 1213
                 {
1214 1214
                     cusmodel.F_Address = address;
1215 1215
                     if (fkconfig != null)
1216
-                        cusmodel.F_City = fkconfig.F_Value;
1216
+                        cusmodel.F_City = fkconfig.F_AreaName;
1217 1217
                     cusmodel.F_CityID = countryid;
1218 1218
                     cusmodel.F_CustomerName = name;
1219 1219
                     cusmodel.F_Telephone = phone;
@@ -1225,7 +1225,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1225 1225
                     cusmodel = new Model.T_Cus_CustomerBase();
1226 1226
                     cusmodel.F_Address = address;
1227 1227
                     if (fkconfig != null)
1228
-                        cusmodel.F_City = fkconfig.F_Value;
1228
+                        cusmodel.F_City = fkconfig.F_AreaName;
1229 1229
                     cusmodel.F_CityID = countryid;
1230 1230
                     cusmodel.F_CustomerName = name;
1231 1231
                     cusmodel.F_Telephone = phone;

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

@@ -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)

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

@@ -1564,7 +1564,9 @@ namespace CallCenter.Utility
1564 1564
                 var cp0 = table.GetRow(0).GetCell(0).GetCTTc().AddNewTcPr();
1565 1565
                 cp0.AddNewVMerge().val = ST_Merge.restart;
1566 1566
                 cp0.AddNewVAlign().val = ST_VerticalJc.center;
1567
+                cp0.tcW = new CT_TblWidth();cp0.tcW.w = "650";cp0.tcW.type = ST_TblWidth.dxa;
1567 1568
                 table.GetRow(0).GetCell(0).SetParagraph(GetParagraph(table, true, "事项编号"));
1569
+
1568 1570
                 var cp1 = table.GetRow(0).GetCell(1).GetCTTc().AddNewTcPr();
1569 1571
                 cp1.AddNewVMerge().val = ST_Merge.restart;
1570 1572
                 cp1.AddNewVAlign().val = ST_VerticalJc.center;
@@ -1609,7 +1611,7 @@ namespace CallCenter.Utility
1609 1611
                 table.GetRow(5).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)2000;
1610 1612
                 table.GetRow(5).MergeCells(1, 7);//合并列
1611 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 1616
                 table.GetRow(6).GetCTRow().AddNewTrPr().AddNewTrHeight().val = (ulong)1500;
1615 1617
                 table.GetRow(6).MergeCells(1, 7);//合并列
@@ -1637,14 +1639,14 @@ namespace CallCenter.Utility
1637 1639
                 xwpfRun1.FontSize = 9;//设置文字大小
1638 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 1652
                 using (MemoryStream ms = new MemoryStream())