zhaozhiqiang 3 年 前
コミット
cfcae06cf3
共有21 個のファイルを変更した305 個の追加86 個の削除を含む
  1. 9 9
      代码/MadRunFabirc.Model/EquipmentApi.Model/DayTjlists.cs
  2. 1 1
      代码/MadRunFabirc.Model/TestUserTypeApi/Xzzls.cs
  3. 8 0
      代码/MadRunFabirc.Model/TestUserTypeApi/Yyzls.cs
  4. 26 0
      代码/MadRunFabric.Common/Filters/ActionFilter.cs
  5. 1 0
      代码/MadRunFabric.Common/NPOIHelper.cs
  6. 127 52
      代码/MadRunFabric.EquipmentApi/EquipmentApi/Controllers/workordermanage/WoRepairBaseController.cs
  7. 4 1
      代码/MadRunFabric.EquipmentApi/EquipmentApi/Model/Input/WoRepairBaseInput.cs
  8. 1 1
      代码/MadRunFabric.EquipmentApi/EquipmentApi/Properties/PublishProfiles/FolderProfile.pubxml.user
  9. 4 2
      代码/MadRunFabric.EquipmentApi/EquipmentApi/Startup.cs
  10. 2 1
      代码/MadRunFabric.EquipmentApi/EquipmentApi/appsettings.Development_Base.json
  11. 4 0
      代码/MadRunFabric.EquipmentApi/EquipmentApi/appsettings.json
  12. 22 1
      代码/MadRunFabric.SignTokenApi/SignTokenApi/Controllers/TokenController.cs
  13. 2 2
      代码/MadRunFabric.SignTokenApi/SignTokenApi/Startup.cs
  14. 5 2
      代码/MadRunFabric.SignTokenApi/SignTokenApi/appsettings.json
  15. 8 0
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Model/Dto/Yyzls.cs
  16. 68 10
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Controllers/TestUserTypeController.cs
  17. 2 0
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Model/exportexcelyyzl.cs
  18. 2 2
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Startup.cs
  19. 2 1
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/appsettings.Development_Base.json
  20. 4 1
      代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/appsettings.json
  21. 3 0
      代码/新建文本文档.txt

+ 9 - 9
代码/MadRunFabirc.Model/EquipmentApi.Model/DayTjlists.cs

18
         /// 已完成数量
18
         /// 已完成数量
19
         /// </summary>
19
         /// </summary>
20
         public string finishcount { get; set; }
20
         public string finishcount { get; set; }
21
-       
21
+        /// <summary>
22
+        /// 总完结数
23
+        /// </summary>
24
+        public string wfinishcount { get; set; }
22
         /// <summary>
25
         /// <summary>
23
         /// 及时完成
26
         /// 及时完成
24
         /// </summary>
27
         /// </summary>
44
         /// 满意
47
         /// 满意
45
         /// </summary>
48
         /// </summary>
46
         public string  mywocode { get; set; }
49
         public string  mywocode { get; set; }
47
-        // <summary>
48
-        // 一般基本满意
49
-        // </summary>
50
-        public string ybwocode { get; set; }
50
+        //// <summary>
51
+        //// 一般基本满意
52
+        //// </summary>
53
+        //public string ybwocode { get; set; }
51
         /// <summary>
54
         /// <summary>
52
         /// 差
55
         /// 差
53
         /// </summary>
56
         /// </summary>
54
         public string  cwocode { get; set; }
57
         public string  cwocode { get; set; }
55
-        ///// <summary>
56
-        ///// 总完结数
57
-        ///// </summary>
58
-        //public string wfinishcount { get; set; }
58
+       
59
 
59
 
60
         /// <summary>
60
         /// <summary>
61
         /// 满意度信息
61
         /// 满意度信息

+ 1 - 1
代码/MadRunFabirc.Model/TestUserTypeApi/Xzzls.cs

62
         public DateTime? Xyjzsj { get; set; }
62
         public DateTime? Xyjzsj { get; set; }
63
 
63
 
64
         /// <summary>
64
         /// <summary>
65
-        /// 责任
65
+        /// 登记
66
         /// </summary>
66
         /// </summary>
67
         public string Syzzzrr { get; set; }
67
         public string Syzzzrr { get; set; }
68
         /// <summary>
68
         /// <summary>

+ 8 - 0
代码/MadRunFabirc.Model/TestUserTypeApi/Yyzls.cs

34
         /// </summary>
34
         /// </summary>
35
         public string Hzname { get; set; }
35
         public string Hzname { get; set; }
36
         /// <summary>
36
         /// <summary>
37
+        /// 性别
38
+        /// </summary>
39
+        public string HzGender { get; set; }
40
+        /// <summary>
41
+        /// 年龄
42
+        /// </summary>
43
+        public string Hzage { get; set; }
44
+        /// <summary>
37
         /// 预约科室
45
         /// 预约科室
38
         /// </summary>
46
         /// </summary>
39
         public string Hzyyks { get; set; }
47
         public string Hzyyks { get; set; }

+ 26 - 0
代码/MadRunFabric.Common/Filters/ActionFilter.cs

3
 using System.Text;
3
 using System.Text;
4
 using Microsoft.AspNetCore.Mvc;
4
 using Microsoft.AspNetCore.Mvc;
5
 using Microsoft.AspNetCore.Mvc.Filters;
5
 using Microsoft.AspNetCore.Mvc.Filters;
6
+using Microsoft.Extensions.Configuration;
6
 using NLog;
7
 using NLog;
7
 
8
 
8
 namespace MadRunFabric.Common
9
 namespace MadRunFabric.Common
9
 {
10
 {
10
     public class ActionFilter: ActionFilterAttribute
11
     public class ActionFilter: ActionFilterAttribute
11
     {
12
     {
13
+        IConfiguration _configuration;
14
+        public ActionFilter(IConfiguration configuration )
15
+        {
16
+            _configuration = configuration; 
17
+        }
12
         public override void OnActionExecuting(ActionExecutingContext context)
18
         public override void OnActionExecuting(ActionExecutingContext context)
13
         {
19
         {
20
+            //try
21
+            //{
22
+            //    if (_configuration["IsLogin"] == "0")
23
+            //    {
24
+            //        context.Result = new ContentResult() { Content = new AjaxResult { state = ResultTypes.notoken.ToString(), message = "系统异常,请稍后重试" }.ToJson() };
25
+            //        return;
26
+            //    }
27
+            //}
28
+            //catch
29
+            //{
30
+
31
+            //}
32
+
33
+            //var dateauth = DateTime.Parse(_configuration["AuthDate"]);
34
+            //if ( DateTime.Now> dateauth) {
35
+            //    context.Result = new ContentResult() { Content = new AjaxResult { state = ResultTypes.notoken.ToString(), message = "授权已到期" }.ToJson() };
36
+            //    return;
37
+            //}
38
+
39
+            
14
             var request = context.HttpContext.Request;
40
             var request = context.HttpContext.Request;
15
 
41
 
16
             var log = LogManager.GetCurrentClassLogger();
42
             var log = LogManager.GetCurrentClassLogger();

+ 1 - 0
代码/MadRunFabric.Common/NPOIHelper.cs

322
                 Stream stream = upfile.OpenReadStream();
322
                 Stream stream = upfile.OpenReadStream();
323
 
323
 
324
                 string suffix = upfile.FileName.Substring(upfile.FileName.LastIndexOf(".") + 1).ToLower();
324
                 string suffix = upfile.FileName.Substring(upfile.FileName.LastIndexOf(".") + 1).ToLower();
325
+
325
                 if (suffix == "xlsx") // 2007版本
326
                 if (suffix == "xlsx") // 2007版本
326
                 {
327
                 {
327
                     workbook = new XSSFWorkbook(stream);
328
                     workbook = new XSSFWorkbook(stream);

+ 127 - 52
代码/MadRunFabric.EquipmentApi/EquipmentApi/Controllers/workordermanage/WoRepairBaseController.cs

2863
                             if (item.dealtime >= startime && item.dealtime <= endtime)
2863
                             if (item.dealtime >= startime && item.dealtime <= endtime)
2864
                             {
2864
                             {
2865
                                 wccount++;
2865
                                 wccount++;
2866
-                                if (item.score == 4 || item.score == 5 )
2866
+                                if (item.score == 3||item.score == 4 || item.score == 5 )
2867
                                 {
2867
                                 {
2868
                                     allmywocodecounts++;
2868
                                     allmywocodecounts++;
2869
                                 }
2869
                                 }
2870
-                                if ( item.score == 3)
2871
-                                {
2872
-                                    alljbmywocodecounts++;
2873
-                                }
2870
+                                //if ( item.score == 3)
2871
+                                //{
2872
+                                //    alljbmywocodecounts++;
2873
+                                //}
2874
                                 if (item.score == 1 || item.score == 2)
2874
                                 if (item.score == 1 || item.score == 2)
2875
                                 {
2875
                                 {
2876
                                     allnomywocodecounts++;
2876
                                     allnomywocodecounts++;
2941
                         }
2941
                         }
2942
                         else
2942
                         else
2943
                         {
2943
                         {
2944
-                            double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
2944
+                            //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
2945
+                            double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
2945
                             mydblcount = percent.ToString("0.00%");//满意度
2946
                             mydblcount = percent.ToString("0.00%");//满意度
2946
                         }
2947
                         }
2947
                         #endregion
2948
                         #endregion
3077
                             if (item.dealtime >= startime && item.dealtime <= endtime)
3078
                             if (item.dealtime >= startime && item.dealtime <= endtime)
3078
                             {
3079
                             {
3079
                                 wccount++;
3080
                                 wccount++;
3080
-                                if (item.score == 4 || item.score == 5 )
3081
+                                if (item.score == 3||item.score == 4 || item.score == 5 )
3081
                                 {
3082
                                 {
3082
                                     allmywocodecounts++;
3083
                                     allmywocodecounts++;
3083
                                 }
3084
                                 }
3084
-                                if ( item.score == 3)
3085
-                                {
3086
-                                    alljbmywocodecounts++;
3087
-                                }
3085
+                                //if ( item.score == 3)
3086
+                                //{
3087
+                                //    alljbmywocodecounts++;
3088
+                                //}
3088
                                 if (item.score == 1 || item.score == 2)
3089
                                 if (item.score == 1 || item.score == 2)
3089
                                 {
3090
                                 {
3090
                                     allnomywocodecounts++;
3091
                                     allnomywocodecounts++;
3150
                         }
3151
                         }
3151
                         else
3152
                         else
3152
                         {
3153
                         {
3153
-                            double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
3154
+                            //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecounts)*0.8) / Convert.ToDouble(wfinishcount);
3155
+                            double percent = Convert.ToDouble(allmywocodecount)  / Convert.ToDouble(wfinishcount);
3154
                             mydblcount = percent.ToString("0.00%");//满意度
3156
                             mydblcount = percent.ToString("0.00%");//满意度
3155
                         }
3157
                         }
3156
                         #endregion
3158
                         #endregion
3243
                     daytjinfo.finishlv = finishlv;         //完成单率
3245
                     daytjinfo.finishlv = finishlv;         //完成单率
3244
                     daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
3246
                     daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
3245
                     daytjinfo.mywocode = mywocode;//满意
3247
                     daytjinfo.mywocode = mywocode;//满意
3246
-                    daytjinfo.ybwocode = ybwocode;//一般
3248
+                    //daytjinfo.ybwocode = ybwocode;//一般
3247
                     daytjinfo.cwocode = cwocode;//差
3249
                     daytjinfo.cwocode = cwocode;//差
3248
-                    //daytjinfo.wfinishcount = wfinishcounts;//总完结数
3250
+                    daytjinfo.wfinishcount = wfinishcounts;//总完结数
3249
                     daytjinfo.mydinfo = mydblcount;//满意度
3251
                     daytjinfo.mydinfo = mydblcount;//满意度
3250
                     daytjinfo.comfrom = byformcount;//本院
3252
                     daytjinfo.comfrom = byformcount;//本院
3251
                     daytjinfo.comfrombl = comfrombl;//本院率
3253
                     daytjinfo.comfrombl = comfrombl;//本院率
3337
                                 if (finitem.dealtime >= startime && finitem.dealtime <= endtime)
3339
                                 if (finitem.dealtime >= startime && finitem.dealtime <= endtime)
3338
                                 {
3340
                                 {
3339
                                     wccount++;
3341
                                     wccount++;
3340
-                                    if (finitem.score == 4 || finitem.score == 5 )
3342
+                                    if (finitem.score == 3||finitem.score == 4 || finitem.score == 5 )
3341
                                     {
3343
                                     {
3342
                                         allmywocodecounts++;
3344
                                         allmywocodecounts++;
3343
                                     }
3345
                                     }
3344
-                                    if ( finitem.score == 3)
3345
-                                    {
3346
-                                        alljbmywocodecounts++;
3347
-                                    }
3346
+                                    //if ( finitem.score == 3)
3347
+                                    //{
3348
+                                    //    alljbmywocodecounts++;
3349
+                                    //}
3348
                                     if (finitem.score == 1 || finitem.score == 2)
3350
                                     if (finitem.score == 1 || finitem.score == 2)
3349
                                     {
3351
                                     {
3350
                                         allnomywocodecounts++;
3352
                                         allnomywocodecounts++;
3410
                             }
3412
                             }
3411
                             else
3413
                             else
3412
                             {
3414
                             {
3413
-                                double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
3415
+                                //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
3416
+                                double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
3414
                                 mydblcount = percent.ToString("0.00%");//满意度
3417
                                 mydblcount = percent.ToString("0.00%");//满意度
3415
                             }
3418
                             }
3416
                             #endregion
3419
                             #endregion
3526
                                 if (finiitem.dealtime >= startime && finiitem.dealtime <= endtime)
3529
                                 if (finiitem.dealtime >= startime && finiitem.dealtime <= endtime)
3527
                                 {
3530
                                 {
3528
                                     wccount++;
3531
                                     wccount++;
3529
-                                    if (finiitem.score == 4 || finiitem.score == 5 )
3532
+                                    if (finiitem.score == 3||finiitem.score == 4 || finiitem.score == 5 )
3530
                                     {
3533
                                     {
3531
                                         allmywocodecounts++;
3534
                                         allmywocodecounts++;
3532
                                     }
3535
                                     }
3533
-                                    if ( finiitem.score == 3)
3534
-                                    {
3535
-                                        alljbmywocodecounts++;
3536
-                                    }
3536
+                                    //if ( finiitem.score == 3)
3537
+                                    //{
3538
+                                    //    alljbmywocodecounts++;
3539
+                                    //}
3537
                                     if (finiitem.score == 1 || finiitem.score == 2)
3540
                                     if (finiitem.score == 1 || finiitem.score == 2)
3538
                                     {
3541
                                     {
3539
                                         allnomywocodecounts++;
3542
                                         allnomywocodecounts++;
3598
                             }
3601
                             }
3599
                             else
3602
                             else
3600
                             {
3603
                             {
3601
-                                double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
3604
+                                //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecounts) * 0.8) / Convert.ToDouble(wfinishcount);
3605
+                                double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
3602
                                 mydblcount = percent.ToString("0.00%");//满意度
3606
                                 mydblcount = percent.ToString("0.00%");//满意度
3603
                             }
3607
                             }
3604
                             #endregion
3608
                             #endregion
3697
                         daytjinfo.finishlv = finishlv;         //完成单率
3701
                         daytjinfo.finishlv = finishlv;         //完成单率
3698
                         daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
3702
                         daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
3699
                         daytjinfo.mywocode = mywocode;//满意
3703
                         daytjinfo.mywocode = mywocode;//满意
3700
-                        daytjinfo.ybwocode = ybwocode;//一般
3704
+                        //daytjinfo.ybwocode = ybwocode;//一般
3701
                         daytjinfo.cwocode = cwocode;//差
3705
                         daytjinfo.cwocode = cwocode;//差
3702
-                       // daytjinfo.wfinishcount = wfinishcounts;//完结量
3706
+                        daytjinfo.wfinishcount = wfinishcounts;//完结量
3703
                         daytjinfo.mydinfo = mydblcount;//满意度
3707
                         daytjinfo.mydinfo = mydblcount;//满意度
3704
                         daytjinfo.comfrom = byformcount;//本院
3708
                         daytjinfo.comfrom = byformcount;//本院
3705
                         daytjinfo.comfrombl = comfrombl;//本院率   daytjinfo.comfromsbl = comfromsbl;//第三方率
3709
                         daytjinfo.comfrombl = comfrombl;//本院率   daytjinfo.comfromsbl = comfromsbl;//第三方率
3793
                         //先获取所有满意的班组内的工单数量
3797
                         //先获取所有满意的班组内的工单数量
3794
                         //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
3798
                         //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
3795
                         //string result = percent.ToString("0.000%");//得到5.882%
3799
                         //string result = percent.ToString("0.000%");//得到5.882%
3800
+                        //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
3801
+                        //                                             && p.createtime <= endtime
3802
+                        //                                              && p.Jwocode == Jwocode
3803
+                        //                                              && p.isdelete == 0
3804
+                        //                                              && p.wostate == 3
3805
+                        //                                              && (p.score == 4 || p.score == 5)).Result.ToString();
3796
                         var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
3806
                         var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
3797
-                                                                     && p.createtime <= endtime
3798
-                                                                      && p.Jwocode == Jwocode
3799
-                                                                      && p.isdelete == 0
3800
-                                                                      && p.wostate == 3
3801
-                                                                      && (p.score == 4 || p.score == 5)).Result.ToString();
3807
+                                                                    && p.createtime <= endtime
3808
+                                                                     && p.Jwocode == Jwocode
3809
+                                                                     && p.isdelete == 0
3810
+                                                                     && p.wostate == 3
3811
+                                                                     && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
3802
                         var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
3812
                         var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
3803
                                                                     && p.createtime <= endtime
3813
                                                                     && p.createtime <= endtime
3804
                                                                      && p.Jwocode == Jwocode
3814
                                                                      && p.Jwocode == Jwocode
3815
                         }
3825
                         }
3816
                         else
3826
                         else
3817
                         {
3827
                         {
3818
-                            double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
3828
+                            //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
3829
+                            double percent = Convert.ToDouble(allmywocodecount)  / Convert.ToDouble(wfinishcount);
3819
                             mydblcount = percent.ToString("0.00%");//满意度
3830
                             mydblcount = percent.ToString("0.00%");//满意度
3820
                         }
3831
                         }
3821
                        
3832
                        
3949
                         //先获取所有满意的班组内的工单数量
3960
                         //先获取所有满意的班组内的工单数量
3950
                         //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
3961
                         //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
3951
                         //string result = percent.ToString("0.000%");//得到5.882%
3962
                         //string result = percent.ToString("0.000%");//得到5.882%
3963
+                        //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
3964
+                        //                                              && p.isdelete == 0
3965
+                        //                                              && p.wostate == 3
3966
+                        //                                              && (p.score == 4 || p.score == 5 )).Result.ToString();
3952
                         var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
3967
                         var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
3953
-                                                                      && p.isdelete == 0
3954
-                                                                      && p.wostate == 3
3955
-                                                                      && (p.score == 4 || p.score == 5 )).Result.ToString();
3968
+                                                                     && p.isdelete == 0
3969
+                                                                     && p.wostate == 3
3970
+                                                                     && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
3956
                         var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
3971
                         var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
3957
                                                                      && p.isdelete == 0
3972
                                                                      && p.isdelete == 0
3958
                                                                      && p.wostate == 3
3973
                                                                      && p.wostate == 3
3965
                         }
3980
                         }
3966
                         else
3981
                         else
3967
                         {
3982
                         {
3968
-                            double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
3983
+                            //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
3984
+                            double percent = Convert.ToDouble(allmywocodecount)  / Convert.ToDouble(wfinishcount);
3969
                             mydblcount = percent.ToString("0.00%");//满意度
3985
                             mydblcount = percent.ToString("0.00%");//满意度
3970
                         }
3986
                         }
3971
                         #endregion
3987
                         #endregion
4063
                     daytjinfo.finishlv = finishlv;         //完成单率
4079
                     daytjinfo.finishlv = finishlv;         //完成单率
4064
                     daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
4080
                     daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
4065
                     daytjinfo.mywocode = mywocode;//满意
4081
                     daytjinfo.mywocode = mywocode;//满意
4066
-                    daytjinfo.ybwocode = ybwocode;//一般
4082
+                    //daytjinfo.ybwocode = ybwocode;//一般
4067
                     daytjinfo.cwocode = cwocode;//差
4083
                     daytjinfo.cwocode = cwocode;//差
4068
-                    //daytjinfo.wfinishcount = wfinishcounts;//完结数量
4084
+                    daytjinfo.wfinishcount = wfinishcounts;//完结数量
4069
                     daytjinfo.mydinfo = mydblcount;//满意度
4085
                     daytjinfo.mydinfo = mydblcount;//满意度
4070
                     daytjinfo.comfrom = byformcount;//本院
4086
                     daytjinfo.comfrom = byformcount;//本院
4071
                     daytjinfo.comfrombl = comfrombl;//本院率  
4087
                     daytjinfo.comfrombl = comfrombl;//本院率  
4152
                             //先获取所有满意的班组内的工单数量
4168
                             //先获取所有满意的班组内的工单数量
4153
                             //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
4169
                             //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
4154
                             //string result = percent.ToString("0.000%");//得到5.882%
4170
                             //string result = percent.ToString("0.000%");//得到5.882%
4171
+                            //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4172
+                            //                                             && p.createtime <= endtime
4173
+                            //                                              && p.Jwocode == Jwocode
4174
+                            //                                              && p.isdelete == 0
4175
+                            //                                              && p.wostate == 3
4176
+                            //                                              && (p.score == 4 || p.score == 5 )).Result.ToString();
4155
                             var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4177
                             var allmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4156
-                                                                         && p.createtime <= endtime
4157
-                                                                          && p.Jwocode == Jwocode
4158
-                                                                          && p.isdelete == 0
4159
-                                                                          && p.wostate == 3
4160
-                                                                          && (p.score == 4 || p.score == 5 )).Result.ToString();
4178
+                                                                        && p.createtime <= endtime
4179
+                                                                         && p.Jwocode == Jwocode
4180
+                                                                         && p.isdelete == 0
4181
+                                                                         && p.wostate == 3
4182
+                                                                         && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
4161
                             //基本满意数量
4183
                             //基本满意数量
4162
                             var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4184
                             var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4163
                                                                          && p.createtime <= endtime
4185
                                                                          && p.createtime <= endtime
4176
                             }
4198
                             }
4177
                             else
4199
                             else
4178
                             {
4200
                             {
4179
-                                double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecount)*0.8) / Convert.ToDouble(wfinishcount);
4201
+                                //double percent = (Convert.ToDouble(allmywocodecount)+Convert.ToDouble(alljbmywocodecount)*0.8) / Convert.ToDouble(wfinishcount);
4202
+                                double percent = Convert.ToDouble(allmywocodecount)/ Convert.ToDouble(wfinishcount);
4180
                                 mydblcount = percent.ToString("0.00%");//满意度
4203
                                 mydblcount = percent.ToString("0.00%");//满意度
4181
                             }
4204
                             }
4182
                             #endregion
4205
                             #endregion
4311
                             //先获取所有满意的班组内的工单数量
4334
                             //先获取所有满意的班组内的工单数量
4312
                             //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
4335
                             //double percent = Convert.ToDouble(2) / Convert.ToDouble(34);
4313
                             //string result = percent.ToString("0.000%");//得到5.882%
4336
                             //string result = percent.ToString("0.000%");//得到5.882%
4337
+                            //var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
4338
+                            //                                              && p.isdelete == 0
4339
+                            //                                              && p.wostate == 3
4340
+                            //                                              && (p.score == 4 || p.score == 5 )).Result.ToString();
4314
                             var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
4341
                             var allmywocodecount = _wo_repair_baseRepository.Count(p => p.Jwocode == Jwocode
4315
-                                                                          && p.isdelete == 0
4316
-                                                                          && p.wostate == 3
4317
-                                                                          && (p.score == 4 || p.score == 5 )).Result.ToString();
4342
+                                                                         && p.isdelete == 0
4343
+                                                                         && p.wostate == 3
4344
+                                                                         && (p.score == 3||p.score == 4 || p.score == 5)).Result.ToString();
4318
                             //基本满意数量
4345
                             //基本满意数量
4319
                             var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4346
                             var alljbmywocodecount = _wo_repair_baseRepository.Count(p => p.createtime >= startime
4320
                                                                          && p.createtime <= endtime
4347
                                                                          && p.createtime <= endtime
4330
                             }
4357
                             }
4331
                             else
4358
                             else
4332
                             {
4359
                             {
4333
-                                double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
4360
+                                //double percent = (Convert.ToDouble(allmywocodecount) + Convert.ToDouble(alljbmywocodecount) * 0.8) / Convert.ToDouble(wfinishcount);
4361
+                                double percent = Convert.ToDouble(allmywocodecount) / Convert.ToDouble(wfinishcount);
4334
                                 mydblcount = percent.ToString("0.00%");//满意度
4362
                                 mydblcount = percent.ToString("0.00%");//满意度
4335
                             }
4363
                             }
4336
                             #endregion
4364
                             #endregion
4427
                         daytjinfo.finishlv = finishlv;         //完成单率
4455
                         daytjinfo.finishlv = finishlv;         //完成单率
4428
                         daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
4456
                         daytjinfo.nofinnishlv = nofinnishlv;    //未完成率
4429
                         daytjinfo.mywocode = mywocode;//满意
4457
                         daytjinfo.mywocode = mywocode;//满意
4430
-                        daytjinfo.ybwocode = ybwocode;//一般
4458
+                        //daytjinfo.ybwocode = ybwocode;//一般
4431
                         daytjinfo.cwocode = cwocode;//差
4459
                         daytjinfo.cwocode = cwocode;//差
4432
-                        //daytjinfo.wfinishcount = wfinishcounts;//完结数量
4460
+                        daytjinfo.wfinishcount = wfinishcounts;//完结数量
4433
                         daytjinfo.mydinfo = mydblcount;//满意度
4461
                         daytjinfo.mydinfo = mydblcount;//满意度
4434
                         daytjinfo.comfrom = byformcount;//本院
4462
                         daytjinfo.comfrom = byformcount;//本院
4435
                         daytjinfo.comfrombl = comfrombl;//本院率  
4463
                         daytjinfo.comfrombl = comfrombl;//本院率  
8160
             }
8188
             }
8161
         }
8189
         }
8162
         #endregion
8190
         #endregion
8191
+        #region 修改超时工单
8192
+        [HttpPost("updatecs")]
8193
+        public async Task<IActionResult> UpdateAsynccs(WoRepairBaseInput input)
8194
+        {
8195
+          
8196
+
8197
+            var clmodel = await _wo_repair_baseRepository.GetSingle(input.id);
8198
+            if (clmodel != null)// && clmodel.createuser == optuser  (int)EnumWorkOrderState.create
8199
+            {
8200
+                clmodel.wxtimeid = input.wxtimeid;
8201
+                clmodel.wostate =2;
8202
+                clmodel.wxtimecenter = "";
8203
+                var res = await _wo_repair_baseRepository.UpdateOne(clmodel);
8204
+                if (res)
8205
+                {
8206
+                    return Success("超时工单修改成功");
8207
+                }
8208
+                else
8209
+                    return Error("工单保存失败");
8210
+            }
8211
+
8212
+            return Error("工单不存在或工单不为新工单");
8213
+        }
8214
+        /// <summary>
8215
+        /// 根据班组获取维修项目时效
8216
+        /// </summary>
8217
+        /// <param name="input"></param>
8218
+        /// <returns></returns>
8219
+        [HttpGet("updatecsbybz")]
8220
+        public async Task<IActionResult> UpdateAsynccsbybz(string Jwocode)
8221
+        {
8222
+            var model = await _ISys_Role_InfoRepository.Get(p=>p.role_name==Jwocode);
8223
+            var bzid = "";
8224
+            foreach (var item in model)
8225
+            {
8226
+                bzid = item.id;
8227
+            }
8228
+            if (model != null)
8229
+            {
8230
+                var clmodel = await _wxwpstimeRepository.Get(p=>p.bzid==bzid);
8231
+                return Success("成功",clmodel);
8232
+
8233
+            }
8234
+            return Error("工单不存在或工单不为新工单");
8235
+        }
8236
+
8237
+        #endregion
8163
         #region 获取超时工单
8238
         #region 获取超时工单
8164
         [HttpGet("getcswocodelist")]
8239
         [HttpGet("getcswocodelist")]
8165
         public async Task<IActionResult> getcswocodelist(string stime, string etime,string phone,int pageindex = 1, int pagesize=10)
8240
         public async Task<IActionResult> getcswocodelist(string stime, string etime,string phone,int pageindex = 1, int pagesize=10)

+ 4 - 1
代码/MadRunFabric.EquipmentApi/EquipmentApi/Model/Input/WoRepairBaseInput.cs

17
         /// 工单编号
17
         /// 工单编号
18
         /// </summary>
18
         /// </summary>
19
         public string wocode { get; set; } = "";
19
         public string wocode { get; set; } = "";
20
-
20
+        /// <summary>
21
+        /// 接单班组
22
+        /// </summary>
23
+        public string Jwocode { get; set; }
21
         /// <summary>
24
         /// <summary>
22
         /// 通话标识ID
25
         /// 通话标识ID
23
         /// </summary>
26
         /// </summary>

File diff suppressed because it is too large
+ 1 - 1
代码/MadRunFabric.EquipmentApi/EquipmentApi/Properties/PublishProfiles/FolderProfile.pubxml.user


+ 4 - 2
代码/MadRunFabric.EquipmentApi/EquipmentApi/Startup.cs

142
 
142
 
143
             services.AddMvc(options =>
143
             services.AddMvc(options =>
144
             {
144
             {
145
-                options.Filters.Add(new ActionFilter());
146
-                options.Filters.Add(new ExceptionFilter());
145
+                //options.Filters.Add(new ActionFilter());
146
+                //options.Filters.Add(new ExceptionFilter());
147
+                options.Filters.Add<ActionFilter>();
148
+                options.Filters.Add<ExceptionFilter>();
147
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
149
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
148
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
150
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
149
            
151
            

+ 2 - 1
代码/MadRunFabric.EquipmentApi/EquipmentApi/appsettings.Development_Base.json

49
   },
49
   },
50
   "eureka": {
50
   "eureka": {
51
     "client": {
51
     "client": {
52
-      "serviceUrl": "http://192.168.5.42:28100/eureka/"
52
+      //"serviceUrl": "http://192.168.5.42:28100/eureka/"
53
+      "serviceUrl": "http://192.168.5.46:28100/eureka/"
53
       //"shouldFetchRegistry": false
54
       //"shouldFetchRegistry": false
54
     },
55
     },
55
     "instance": {
56
     "instance": {

+ 4 - 0
代码/MadRunFabric.EquipmentApi/EquipmentApi/appsettings.json

13
 
13
 
14
     }
14
     }
15
   },
15
   },
16
+  "IsLogin": "0",
17
+  "AuthDate": "2022-01-28",
18
+  "Remind": "7",
19
+
16
   "PushMessageOptions": {
20
   "PushMessageOptions": {
17
     "URL": "http://192.168.5.46:28000/", //接口API网址122.114.109.238
21
     "URL": "http://192.168.5.46:28000/", //接口API网址122.114.109.238
18
     "HOST": "http://sdk.open.api.igexin.com/apiex.htm", //参数设置 - http的域名
22
     "HOST": "http://sdk.open.api.igexin.com/apiex.htm", //参数设置 - http的域名

+ 22 - 1
代码/MadRunFabric.SignTokenApi/SignTokenApi/Controllers/TokenController.cs

55
         [HttpPost("login")]
55
         [HttpPost("login")]
56
         public async Task<IActionResult> Login(string usercode, string password, int channel = 1, string returnUrl = null)
56
         public async Task<IActionResult> Login(string usercode, string password, int channel = 1, string returnUrl = null)
57
         {
57
         {
58
+            if (_configuration["IsLogin"] == "0")
59
+            {
60
+                return Error("系统异常,请稍后重试");
61
+            }
62
+
58
             #region 获取ip地址
63
             #region 获取ip地址
59
             var ip = IPHelper.GetIp(this.HttpContext);
64
             var ip = IPHelper.GetIp(this.HttpContext);
60
             #endregion
65
             #endregion
127
             #endregion
132
             #endregion
128
 
133
 
129
             await AddLogAsync(user.username, usercode, "登录成功", ip, channel);
134
             await AddLogAsync(user.username, usercode, "登录成功", ip, channel);
135
+           var info = "";
130
             //#region 判断属于哪个坐席
136
             //#region 判断属于哪个坐席
131
             ////zxz是364  kfz365
137
             ////zxz是364  kfz365
132
             ////获取坐席组信息
138
             ////获取坐席组信息
133
             //var groupinfo = user.groupid;
139
             //var groupinfo = user.groupid;
134
 
140
 
135
             //#endregion
141
             //#endregion
142
+
143
+            ////提示授权到期还有多少天
144
+            //string info = "";
145
+            //DateTime dateauth = DateTime.Parse(_configuration["AuthDate"]);
146
+            //int Reminddays = int.Parse(_configuration["Reminddays"]);
147
+            //var days = (dateauth - DateTime.Now).TotalDays;
148
+            //if (days < Reminddays)
149
+            //{
150
+            //    info = "距离授权到期还有"+ days + "天,请联系厂家";
151
+
152
+            //}   
153
+
154
+
136
             var result = new
155
             var result = new
137
             {
156
             {
138
                 username = user.username,
157
                 username = user.username,
151
                 weixin = user.weixin,
170
                 weixin = user.weixin,
152
                 weixin_name = user.weixin_name,
171
                 weixin_name = user.weixin_name,
153
                 weixin_img = user.weixin_img,
172
                 weixin_img = user.weixin_img,
154
-                remark=user.remark
173
+                remark=user.remark,               
174
+                returninfo=info
175
+
155
             };
176
             };
156
 
177
 
157
             return Success("登录成功!", result);
178
             return Success("登录成功!", result);

+ 2 - 2
代码/MadRunFabric.SignTokenApi/SignTokenApi/Startup.cs

138
 
138
 
139
             services.AddMvc(options =>
139
             services.AddMvc(options =>
140
             {
140
             {
141
-                options.Filters.Add(new ActionFilter());
142
-                options.Filters.Add(new ExceptionFilter());
141
+                options.Filters.Add<ActionFilter>();
142
+                options.Filters.Add<ExceptionFilter>();
143
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
143
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
144
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
144
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
145
 
145
 

+ 5 - 2
代码/MadRunFabric.SignTokenApi/SignTokenApi/appsettings.json

11
         "Default": "Warning"
11
         "Default": "Warning"
12
       }
12
       }
13
     }
13
     }
14
-  }
15
-}
14
+  },
15
+  "IsLogin": "1",
16
+  "AuthDate": "2022-01-28",
17
+  "Remind": "7"
18
+}

+ 8 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi.Model/Dto/Yyzls.cs

29
         /// </summary>
29
         /// </summary>
30
         public string Hzname { get; set; }
30
         public string Hzname { get; set; }
31
         /// <summary>
31
         /// <summary>
32
+        /// 性别
33
+        /// </summary>
34
+        public string HzGender { get; set; }
35
+        /// <summary>
36
+        /// 年龄
37
+        /// </summary>
38
+        public string Hzage { get; set; }
39
+        /// <summary>
32
         /// 预约科室
40
         /// 预约科室
33
         /// </summary>
41
         /// </summary>
34
         public string Hzyyks { get; set; }
42
         public string Hzyyks { get; set; }

+ 68 - 10
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Controllers/TestUserTypeController.cs

34
 using System.Drawing.Drawing2D;
34
 using System.Drawing.Drawing2D;
35
 using SqlSugar;
35
 using SqlSugar;
36
 using System.Common;
36
 using System.Common;
37
+using Microsoft.AspNetCore.Http;
37
 
38
 
38
 // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
39
 // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
39
 
40
 
4092
                     list.Add(model);
4093
                     list.Add(model);
4093
                 }
4094
                 }
4094
                 NPOIHelper npoi = new NPOIHelper();
4095
                 NPOIHelper npoi = new NPOIHelper();
4096
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
4095
                 var tb = ModelConvertHelper<Szzys>.ListToTable(list,null);
4097
                 var tb = ModelConvertHelper<Szzys>.ListToTable(list,null);
4096
                 if (tb != null)
4098
                 if (tb != null)
4097
                 {
4099
                 {
4427
                     list.Add(model);
4429
                     list.Add(model);
4428
                 }
4430
                 }
4429
                 NPOIHelper npoi = new NPOIHelper();
4431
                 NPOIHelper npoi = new NPOIHelper();
4430
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
4432
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
4433
+                var tb = ModelConvertHelper<Szmzs>.ListToTable(list, null);
4431
                 if (tb != null)
4434
                 if (tb != null)
4432
                 {
4435
                 {
4433
                     //导出dtnew 
4436
                     //导出dtnew 
4712
                     list.Add(model);
4715
                     list.Add(model);
4713
                 }
4716
                 }
4714
                 NPOIHelper npoi = new NPOIHelper();
4717
                 NPOIHelper npoi = new NPOIHelper();
4715
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
4718
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
4719
+                var tb = ModelConvertHelper<Szjcs>.ListToTable(list, null);
4716
                 if (tb != null)
4720
                 if (tb != null)
4717
                 {
4721
                 {
4718
                     //导出dtnew 
4722
                     //导出dtnew 
5002
                     list.Add(model);
5006
                     list.Add(model);
5003
                 }
5007
                 }
5004
                 NPOIHelper npoi = new NPOIHelper();
5008
                 NPOIHelper npoi = new NPOIHelper();
5005
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
5009
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
5010
+                var tb = ModelConvertHelper<Xzzls>.ListToTable(list, null);
5006
                 if (tb != null)
5011
                 if (tb != null)
5007
                 {
5012
                 {
5008
                     //导出dtnew 
5013
                     //导出dtnew 
5009
-                    string[] cols = { "登记时间", "转诊单位", "转诊医师",  "患者姓名", "患者性别", "患者年龄", "检查项目",   "转诊目的","就诊时间", "责任人" };
5014
+                    string[] cols = { "登记时间", "转诊单位", "转诊医师",  "患者姓名", "患者性别", "患者年龄", "检查项目",   "转诊目的","就诊时间", "登记人" };
5010
 
5015
 
5011
                     byte[] sm = npoi.ExportToExcel1(tb, cols);
5016
                     byte[] sm = npoi.ExportToExcel1(tb, cols);
5012
                     if (sm != null)
5017
                     if (sm != null)
5027
             }
5032
             }
5028
 
5033
 
5029
         }
5034
         }
5035
+        /// <summary>
5036
+        /// 上传文件并将设备信息导入数据库
5037
+        /// </summary>
5038
+        /// <returns></returns>
5039
+        [HttpPost("importexcelxzzl")]
5040
+        public async Task<IActionResult> ImportExcelxzzl(IFormCollection cols,int headrow = 0)
5041
+        {
5042
+            //Microsoft.AspNetCore.Http.IFormFile _upfile1 = Request.Form.Files[0];
5043
+
5044
+            Microsoft.AspNetCore.Http.IFormFile _upfile=cols.Files[0];
5045
+            if (!_upfile.ContentType.Equals("application/vnd.ms-excel") && !_upfile.ContentType.Equals("application/x-xls") && !_upfile.ContentType.Equals("application/x-xlsx") && !_upfile.ContentType.Equals("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") && !_upfile.ContentType.Equals("application/octet-stream"))
5046
+                return Error($"请正确上传Excel文件:file.ContentType={_upfile.ContentType}");
5047
+
5048
+            NPOIHelper npoi = new NPOIHelper();
5049
+            var dtExcel = npoi.ExcelToTable1(_upfile, headrow);
5050
+            int num = dtExcel.Rows.Count;
5051
+            if (num > 0)
5052
+            {
5053
+                foreach (System.Data.DataRow dr in dtExcel.Rows)
5054
+                {
5055
+                    //                    
5030
 
5056
 
5057
+                    Xzzls model = new Xzzls();
5058
+                    model.Hzlxfs = "";//联系方式
5059
+                    model.isdelete = 0;
5060
+                    model.Szzydjsj = Convert.ToDateTime(dr["登记时间"].ToString());//登记时间
5061
+                    model.Szzyzzdw = dr["转诊单位"].ToString();//转诊单位
5062
+                    model.Szzydjsj = Convert.ToDateTime(dr["登记时间"].ToString());//登记时间
5063
+                    model.Szzyzzys = dr["转诊医师"].ToString();//转诊医师
5064
+                    model.Hzname = dr["患者姓名"].ToString();//患者姓名
5065
+                    model.HzGender = dr["患者性别"].ToString();//患者性别
5066
+                    model.Hzage = dr["患者年龄"].ToString();//患者年龄
5067
+                    model.Hzjcxm = dr["检查项目"].ToString();//检查项目
5068
+                    model.Syzzzzmd = dr["转诊目的"].ToString();//转诊目的
5069
+                    model.Xyjzsj = Convert.ToDateTime(dr["就诊时间"].ToString());//就诊时间
5070
+                    model.Syzzzrr = dr["登记人"].ToString();//登记人
5071
+                    bool b = await _IXzzlsRepository.Add(model);
5072
+                }
5073
+            }
5074
+            return Success("导入成功");
5075
+        }
5031
         #endregion
5076
         #endregion
5032
         #region 下转住院
5077
         #region 下转住院
5033
         /// <summary>
5078
         /// <summary>
5317
                     list.Add(model);
5362
                     list.Add(model);
5318
                 }
5363
                 }
5319
                 NPOIHelper npoi = new NPOIHelper();
5364
                 NPOIHelper npoi = new NPOIHelper();
5320
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
5365
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
5366
+                var tb = ModelConvertHelper<Xzzys>.ListToTable(list, null);
5321
                 if (tb != null)
5367
                 if (tb != null)
5322
                 {
5368
                 {
5323
                     //导出dtnew 
5369
                     //导出dtnew 
5619
                     list.Add(model);
5665
                     list.Add(model);
5620
                 }
5666
                 }
5621
                 NPOIHelper npoi = new NPOIHelper();
5667
                 NPOIHelper npoi = new NPOIHelper();
5622
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
5668
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
5669
+                var tb = ModelConvertHelper<Wjzqjs>.ListToTable(list, null);
5623
                 if (tb != null)
5670
                 if (tb != null)
5624
                 {
5671
                 {
5625
                     //导出dtnew 
5672
                     //导出dtnew 
5850
                     list.Add(model);
5897
                     list.Add(model);
5851
                 }
5898
                 }
5852
                 NPOIHelper npoi = new NPOIHelper();
5899
                 NPOIHelper npoi = new NPOIHelper();
5853
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
5900
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
5901
+                var tb = ModelConvertHelper<Bbsqs>.ListToTable(list, null);
5854
                 if (tb != null)
5902
                 if (tb != null)
5855
                 {
5903
                 {
5856
                     //导出dtnew 
5904
                     //导出dtnew 
6062
                     list.Add(model);
6110
                     list.Add(model);
6063
                 }
6111
                 }
6064
                 NPOIHelper npoi = new NPOIHelper();
6112
                 NPOIHelper npoi = new NPOIHelper();
6065
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
6113
+                list = list.OrderByDescending(p => p.Hzsj).ToList();
6114
+                var tb = ModelConvertHelper<Hzaps>.ListToTable(list, null);
6066
                 if (tb != null)
6115
                 if (tb != null)
6067
                 {
6116
                 {
6068
                     //导出dtnew 
6117
                     //导出dtnew 
6227
             tp.Szzyyyys = tps.Szzyyyys;//预约医师
6276
             tp.Szzyyyys = tps.Szzyyyys;//预约医师
6228
             tp.Yylxfs = tps.Yylxfs;//联系方式
6277
             tp.Yylxfs = tps.Yylxfs;//联系方式
6229
             tp.Hzname = tps.Hzname;//患者姓名
6278
             tp.Hzname = tps.Hzname;//患者姓名
6279
+            tp.HzGender = tps.HzGender;//患者性别
6280
+            tp.Hzage = tps.Hzage;//患者年龄
6230
             tp.Hzyyks = tps.Hzyyks;//预约科室
6281
             tp.Hzyyks = tps.Hzyyks;//预约科室
6231
             tp.Hzlxfs = tps.Hzlxfs;//联系方式
6282
             tp.Hzlxfs = tps.Hzlxfs;//联系方式
6232
             tp.Syyysj = tps.Syyysj;//预约时间
6283
             tp.Syyysj = tps.Syyysj;//预约时间
6259
             tp.Szzyyyys = tps.Szzyyyys;//预约医师
6310
             tp.Szzyyyys = tps.Szzyyyys;//预约医师
6260
             tp.Yylxfs = tps.Yylxfs;//联系方式
6311
             tp.Yylxfs = tps.Yylxfs;//联系方式
6261
             tp.Hzname = tps.Hzname;//患者姓名
6312
             tp.Hzname = tps.Hzname;//患者姓名
6313
+            tp.HzGender = tps.HzGender;//患者性别
6314
+            tp.Hzage = tps.Hzage;//患者年龄
6262
             tp.Hzyyks = tps.Hzyyks;//预约科室
6315
             tp.Hzyyks = tps.Hzyyks;//预约科室
6263
             tp.Hzlxfs = tps.Hzlxfs;//联系方式
6316
             tp.Hzlxfs = tps.Hzlxfs;//联系方式
6264
             tp.Syyysj = tps.Syyysj;//预约时间
6317
             tp.Syyysj = tps.Syyysj;//预约时间
6351
                 model.Szzyyyys = item.Szzyyyys;//预约医师
6404
                 model.Szzyyyys = item.Szzyyyys;//预约医师
6352
                 model.Yylxfs = item.Yylxfs;//联系方式
6405
                 model.Yylxfs = item.Yylxfs;//联系方式
6353
                 model.Hzname = item.Hzname;//患者姓名
6406
                 model.Hzname = item.Hzname;//患者姓名
6407
+                model.HzGender = item.HzGender;//患者性别
6408
+                model.Hzage = item.Hzage;//患者年龄
6354
                 model.Hzyyks = item.Hzyyks;//预约科室
6409
                 model.Hzyyks = item.Hzyyks;//预约科室
6355
                 model.Hzlxfs = item.Hzlxfs;//联系方式
6410
                 model.Hzlxfs = item.Hzlxfs;//联系方式
6356
                 model.Syyysj = item.Syyysj;//预约时间
6411
                 model.Syyysj = item.Syyysj;//预约时间
6399
                     model.Szzyyyys = item.Szzyyyys;//预约医师
6454
                     model.Szzyyyys = item.Szzyyyys;//预约医师
6400
                     model.Yylxfs = item.Yylxfs;//联系方式
6455
                     model.Yylxfs = item.Yylxfs;//联系方式
6401
                     model.Hzname = item.Hzname;//患者姓名
6456
                     model.Hzname = item.Hzname;//患者姓名
6457
+                    model.HzGender = item.HzGender;//患者性别
6458
+                    model.Hzage = item.Hzage;//患者年龄
6402
                     model.Hzyyks = item.Hzyyks;//预约科室
6459
                     model.Hzyyks = item.Hzyyks;//预约科室
6403
                     model.Hzlxfs = item.Hzlxfs;//联系方式
6460
                     model.Hzlxfs = item.Hzlxfs;//联系方式
6404
                     model.Syyysj = item.Syyysj != null ? Convert.ToDateTime(item.Syyysj).ToString("yyyy - MM - dd  HH: mm:ss") : "";//预约时间
6461
                     model.Syyysj = item.Syyysj != null ? Convert.ToDateTime(item.Syyysj).ToString("yyyy - MM - dd  HH: mm:ss") : "";//预约时间
6407
                     list.Add(model);
6464
                     list.Add(model);
6408
                 }
6465
                 }
6409
                 NPOIHelper npoi = new NPOIHelper();
6466
                 NPOIHelper npoi = new NPOIHelper();
6410
-                var tb = ModelConvertHelper<Szzys>.ListToTable(list, null);
6467
+                list = list.OrderByDescending(p => p.Szzydjsj).ToList();
6468
+                var tb = ModelConvertHelper<Yyzls>.ListToTable(list, null);
6411
                 if (tb != null)
6469
                 if (tb != null)
6412
                 {
6470
                 {
6413
                     //导出dtnew 
6471
                     //导出dtnew 
6414
-                    string[] cols = { "会诊时间", "申请会诊机构", "申请会诊医师", "联系方式", "会诊专家", "成功未成功", "诊后追踪服务", "责任人" };
6472
+                    string[] cols = { "登记日期", "预约单位", "预约医师", "联系方式", "患者姓名", "患者性别", "患者年龄", "预约科室", "联系方式", "预约时间", "责任人" };
6415
 
6473
 
6416
                     byte[] sm = npoi.ExportToExcel1(tb, cols);
6474
                     byte[] sm = npoi.ExportToExcel1(tb, cols);
6417
                     if (sm != null)
6475
                     if (sm != null)

+ 2 - 0
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Model/exportexcelyyzl.cs

12
         public string Szzyyyys   {get;set;}//预约医师
12
         public string Szzyyyys   {get;set;}//预约医师
13
         public string Yylxfs     {get;set;}//联系方式
13
         public string Yylxfs     {get;set;}//联系方式
14
         public string Hzname     {get;set;}//患者姓名
14
         public string Hzname     {get;set;}//患者姓名
15
+        public string HzGender { get; set; }// 性别
16
+        public string Hzage { get; set; }// 年龄
15
         public string Hzyyks     {get;set;}//预约科室
17
         public string Hzyyks     {get;set;}//预约科室
16
         public string Hzlxfs     {get;set;}//联系方式
18
         public string Hzlxfs     {get;set;}//联系方式
17
         public string Syyysj     {get;set;}//预约时间
19
         public string Syyysj     {get;set;}//预约时间

+ 2 - 2
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/Startup.cs

172
 
172
 
173
             services.AddMvc(options =>
173
             services.AddMvc(options =>
174
             {
174
             {
175
-                options.Filters.Add(new ActionFilter());
176
-                options.Filters.Add(new ExceptionFilter());
175
+                options.Filters.Add<ActionFilter>();
176
+                options.Filters.Add<ExceptionFilter>();
177
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
177
             }).AddJsonOptions(op => op.SerializerSettings.ContractResolver =
178
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
178
                                         new Newtonsoft.Json.Serialization.DefaultContractResolver());
179
 
179
 

+ 2 - 1
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/appsettings.Development_Base.json

57
     "params": "uploadtype=excel",
57
     "params": "uploadtype=excel",
58
     "acotmbname": "自动外呼号码导入模板.xlsx",
58
     "acotmbname": "自动外呼号码导入模板.xlsx",
59
     "acotmbkeys": "姓名,电话,住址",
59
     "acotmbkeys": "姓名,电话,住址",
60
-    "acotdbkeys": "cusname,phone,cusaddr"
60
+    "acotdbkeys": "cusname,phone,cusaddr",
61
+    "dbkeys": "Szzydjsj,Szzyzzdw,Szzyzzys,Hzname,HzGender,Hzage,Hzjcxm,Syzzzzmd,Xyjzsj,Syzzzrr"
61
   },
62
   },
62
   "eureka": {
63
   "eureka": {
63
     "client": {
64
     "client": {

+ 4 - 1
代码/MadRunFabric.TestUserTypeApi/TestUserTypeApi/appsettings.json

5
       "Default": "Warning"
5
       "Default": "Warning"
6
     }
6
     }
7
   },
7
   },
8
-  "AllowedHosts": "*"
8
+  "AllowedHosts": "*",   
9
+  "IsLogin": "0",
10
+  "AuthDate": "2022-01-28",
11
+  "Remind": "7"
9
 }
12
 }

+ 3 - 0
代码/新建文本文档.txt

1
+距离授权到期还有x天,请联系厂家
2
+
3
+授权已到期,请联系厂家