diff --git a/BookingJieFeng/App_Data/Logs/debug.log b/BookingJieFeng/App_Data/Logs/debug.log index b9df1a93..4515c806 100644 --- a/BookingJieFeng/App_Data/Logs/debug.log +++ b/BookingJieFeng/App_Data/Logs/debug.log @@ -1,2 +1,2 @@ -2020-08-25 15:48:39,453 [DEBUG] [DeadlineJob] [DefaultQuartzScheduler_Worker-2] - 查找截港时间即将到期的订单,数量:0,时间条件:2020-08-25 18:00:00 -2020-08-25 15:58:07,012 [DEBUG] [DeadlineJob] [DefaultQuartzScheduler_Worker-2] - 查找截港时间即将到期的订单,数量:0,时间条件:2020-08-25 18:00:00 +2022-08-29 17:03:24,073 [DEBUG] [DeadlineJob] [DefaultQuartzScheduler_Worker-2] - 查找截港时间即将到期的订单,数量:0,时间条件:2022-08-29 20:00:00 +2022-08-29 17:06:36,902 [DEBUG] [DeadlineJob] [DefaultQuartzScheduler_Worker-2] - 查找截港时间即将到期的订单,数量:0,时间条件:2022-08-29 20:00:00 diff --git a/BookingWeb/App_GlobalResources/LangAll.Designer.cs b/BookingWeb/App_GlobalResources/LangAll.Designer.cs index a895484c..354d76d8 100644 --- a/BookingWeb/App_GlobalResources/LangAll.Designer.cs +++ b/BookingWeb/App_GlobalResources/LangAll.Designer.cs @@ -897,6 +897,15 @@ namespace Resources { } } + /// + /// 鏌ユ壘绫讳技 杩愯緭鏂瑰紡 鐨勬湰鍦板寲瀛楃涓层 + /// + internal static string LabelTRANSTYPE { + get { + return ResourceManager.GetString("LabelTRANSTYPE", resourceCulture); + } + } + /// /// 鏌ユ壘绫讳技 鑸瑰悕 鐨勬湰鍦板寲瀛楃涓层 /// diff --git a/BookingWeb/App_GlobalResources/LangAll.resx b/BookingWeb/App_GlobalResources/LangAll.resx index f376bc8c..93ff7881 100644 --- a/BookingWeb/App_GlobalResources/LangAll.resx +++ b/BookingWeb/App_GlobalResources/LangAll.resx @@ -483,4 +483,7 @@ 閿鍞 + + 杩愯緭鏂瑰紡 + \ No newline at end of file diff --git a/BookingWeb/App_GlobalResources/LangOrder.Designer.cs b/BookingWeb/App_GlobalResources/LangOrder.Designer.cs index 4f0316ad..df395da8 100644 --- a/BookingWeb/App_GlobalResources/LangOrder.Designer.cs +++ b/BookingWeb/App_GlobalResources/LangOrder.Designer.cs @@ -276,6 +276,24 @@ namespace Resources { } } + /// + /// 鏌ユ壘绫讳技 娴疯繍 鐨勬湰鍦板寲瀛楃涓层 + /// + internal static string SelectTRANSTYPE_S { + get { + return ResourceManager.GetString("SelectTRANSTYPE_S", resourceCulture); + } + } + + /// + /// 鏌ユ壘绫讳技 娴烽搧鑱旇繍 鐨勬湰鍦板寲瀛楃涓层 + /// + internal static string SelectTRANSTYPE_SR { + get { + return ResourceManager.GetString("SelectTRANSTYPE_SR", resourceCulture); + } + } + /// /// 鏌ユ壘绫讳技 鎴崟纭 鐨勬湰鍦板寲瀛楃涓层 /// diff --git a/BookingWeb/App_GlobalResources/LangOrder.resx b/BookingWeb/App_GlobalResources/LangOrder.resx index 42a814f4..d95ed1c1 100644 --- a/BookingWeb/App_GlobalResources/LangOrder.resx +++ b/BookingWeb/App_GlobalResources/LangOrder.resx @@ -300,4 +300,10 @@ 鎴崟 + + 娴疯繍 + + + 娴烽搧鑱旇繍 + \ No newline at end of file diff --git a/BookingWeb/BookingWeb.csproj.user b/BookingWeb/BookingWeb.csproj.user index e6a8406a..6bc24ada 100644 --- a/BookingWeb/BookingWeb.csproj.user +++ b/BookingWeb/BookingWeb.csproj.user @@ -9,6 +9,7 @@ + FolderProfile diff --git a/BookingWeb/Controllers/BookingController.cs b/BookingWeb/Controllers/BookingController.cs index daa0a80f..1d2fb0fe 100644 --- a/BookingWeb/Controllers/BookingController.cs +++ b/BookingWeb/Controllers/BookingController.cs @@ -119,6 +119,7 @@ namespace BookingWeb.Controllers viewModel.BLFRT = "FREIGHT PREPAID"; viewModel.NOBILL = "THREE"; viewModel.COPYNOBILLL = "ONE"; + viewModel.TRANSTYPE = "娴疯繍"; } diff --git a/BookingWeb/DB/Model/OP_SEAE_ORDER.cs b/BookingWeb/DB/Model/OP_SEAE_ORDER.cs index f052cdb8..191c1a9e 100644 --- a/BookingWeb/DB/Model/OP_SEAE_ORDER.cs +++ b/BookingWeb/DB/Model/OP_SEAE_ORDER.cs @@ -118,5 +118,9 @@ namespace BookingWeb.DB.Model public string EMAIL { get; set; } public string SALE_NAME { get; set; } + + public string TRANSTYPE { get; set; } + + } } \ No newline at end of file diff --git a/BookingWeb/Models/OrderEditViewModel.cs b/BookingWeb/Models/OrderEditViewModel.cs index 2c33dbae..489f8567 100644 --- a/BookingWeb/Models/OrderEditViewModel.cs +++ b/BookingWeb/Models/OrderEditViewModel.cs @@ -175,6 +175,7 @@ namespace BookingWeb.Models //public string NOTIFYPARTYTEL { get; set; } public string SALE_NAME { get; set; } + public string TRANSTYPE { get; set; } public List CtrnList { get; set; } } diff --git a/BookingWeb/Properties/PublishProfiles/FolderProfile.pubxml.user b/BookingWeb/Properties/PublishProfiles/FolderProfile.pubxml.user index 3f91ff56..6d6b2032 100644 --- a/BookingWeb/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/BookingWeb/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -9,247 +9,247 @@ - 03/16/2020 13:50:40 + 08/30/2022 09:37:14 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 01/09/2020 18:39:35 + 06/28/2022 12:17:19 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 11/26/2019 11:28:44 + 06/28/2022 12:17:19 - 11/26/2019 11:28:44 + 06/28/2022 12:17:19 - 01/09/2020 18:39:35 + 06/28/2022 12:17:19 - 11/26/2019 11:28:44 + 06/28/2022 12:17:19 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 01/09/2020 18:39:35 + 08/30/2022 09:32:45 - 04/17/2020 17:19:43 + 06/28/2022 12:17:19 - 10/29/2019 16:00:10 + 06/28/2022 12:17:19 - 10/29/2019 16:00:09 + 06/28/2022 12:17:20 - 10/29/2019 16:00:09 + 06/28/2022 12:17:20 - 09/10/2013 16:29:20 + 06/28/2022 12:19:29 - 09/10/2013 16:29:20 + 06/28/2022 12:19:29 - 12/06/2017 15:08:08 + 06/28/2022 12:19:40 - 06/09/2022 09:39:42 + 08/30/2022 09:40:08 - 06/09/2022 09:39:42 + 08/30/2022 09:40:08 - 01/31/2019 19:53:56 + 06/28/2022 12:19:40 - 11/14/2015 13:35:30 + 06/28/2022 12:19:40 - 11/14/2015 13:35:30 + 06/28/2022 12:19:40 - 11/14/2015 13:35:30 + 06/28/2022 12:19:40 - 11/14/2015 13:35:30 + 06/28/2022 12:19:40 - 09/14/2019 17:01:18 + 06/28/2022 12:19:41 - 09/14/2019 17:01:36 + 06/28/2022 12:19:41 - 08/15/2018 17:16:34 + 06/28/2022 12:19:52 - 01/09/2020 18:39:35 + 06/28/2022 12:17:20 - 03/08/2017 19:26:22 + 06/28/2022 12:19:53 - 11/10/2019 17:00:48 + 06/28/2022 12:19:43 - 06/28/2017 15:05:26 + 06/28/2022 12:19:44 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 07/25/2012 11:48:56 + 06/28/2022 12:19:46 - 11/10/2019 16:47:50 + 06/28/2022 12:19:46 - 02/18/2018 09:44:54 + 06/28/2022 12:19:49 - 12/17/2018 19:15:12 + 06/28/2022 12:19:49 - 12/17/2018 19:15:12 + 06/28/2022 12:19:49 - 12/17/2018 19:15:12 + 06/28/2022 12:19:49 - 12/17/2018 19:15:12 + 06/28/2022 12:19:49 - 05/27/2018 11:18:32 + 06/28/2022 12:19:52 - 05/27/2018 11:18:32 + 06/28/2022 12:19:52 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 05/24/2018 13:38:22 + 06/28/2022 12:19:45 - 07/19/2017 10:01:30 + 06/28/2022 12:19:52 - 02/01/2018 12:17:18 + 06/28/2022 12:19:44 - 02/01/2018 12:20:56 + 06/28/2022 12:19:44 - 02/01/2018 12:17:40 + 06/28/2022 12:19:44 - 02/01/2018 12:19:26 + 06/28/2022 12:19:44 - 02/01/2018 12:16:32 + 06/28/2022 12:19:43 - 02/11/2014 15:26:04 + 06/28/2022 12:19:44 - 02/01/2018 12:16:56 + 06/28/2022 12:19:44 - 02/01/2018 12:20:56 + 06/28/2022 12:19:44 - 02/01/2018 12:20:56 + 06/28/2022 12:19:44 - 02/01/2018 12:20:56 + 06/28/2022 12:19:44 - 01/23/2014 13:57:34 + 06/28/2022 12:19:52 02/01/2018 12:17:22 @@ -282,37 +282,37 @@ 02/01/2018 12:21:00 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 03/16/2020 13:50:42 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 12/06/2019 08:41:25 @@ -330,1111 +330,1111 @@ 12/06/2019 08:41:25 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:12 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 10/29/2019 16:00:13 + 06/28/2022 12:17:19 - 10/29/2019 16:00:14 + 06/28/2022 12:17:19 - 11/15/2019 10:25:01 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 01/09/2020 18:39:36 + 06/28/2022 12:17:19 - 10/29/2019 16:00:15 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:15 + 06/28/2022 12:17:19 - 10/29/2019 16:00:15 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 11/15/2019 10:25:02 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 11/26/2019 11:28:51 + 06/28/2022 12:17:19 - 11/26/2019 11:28:51 + 06/28/2022 12:17:19 - 11/26/2019 11:28:51 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 11/15/2019 10:25:02 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 11/26/2019 11:28:51 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 01/09/2020 18:39:37 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:21 + 06/28/2022 12:17:19 - 11/15/2019 10:25:02 + 06/28/2022 12:17:19 - 10/29/2019 16:00:21 + 06/28/2022 12:17:19 - 10/29/2019 16:00:20 + 06/28/2022 12:17:19 - 10/29/2019 16:00:21 + 06/28/2022 12:17:19 - 10/29/2019 16:00:21 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:21 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:20 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:17 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:20 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:19 - 10/31/2019 17:18:52 + 06/28/2022 12:17:19 - 10/29/2019 16:00:20 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:19 + 06/28/2022 12:17:19 - 10/29/2019 16:00:16 + 06/28/2022 12:17:19 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:19 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 11/15/2019 10:25:02 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:20 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:16 + 06/28/2022 12:17:20 - 10/29/2019 16:00:18 + 06/28/2022 12:17:20 - 10/29/2019 16:00:21 + 06/28/2022 12:17:20 - 10/29/2019 16:00:12 + 06/28/2022 12:17:20 - 10/29/2019 16:00:12 + 06/28/2022 12:17:20 - 10/29/2019 16:00:11 + 06/28/2022 12:17:20 - 10/29/2019 16:00:12 + 06/28/2022 12:17:20 - 01/09/2020 18:39:37 + 06/28/2022 12:17:20 - 10/29/2019 16:00:21 + 06/28/2022 12:17:20 - 01/09/2020 18:39:37 + 06/28/2022 12:17:20 - 10/31/2019 17:18:52 + 06/28/2022 12:17:20 - 10/29/2019 16:00:21 + 06/28/2022 12:17:20 - 01/09/2020 18:39:37 + 06/28/2022 12:17:20 - 01/09/2020 18:39:37 + 06/28/2022 12:17:20 - 11/15/2019 10:25:02 + 06/28/2022 12:17:20 - 10/29/2019 16:00:21 + 06/28/2022 12:17:20 - 10/29/2019 16:00:21 + 06/28/2022 12:17:20 - 11/15/2019 10:25:01 + 06/28/2022 12:17:20 - 10/29/2019 16:00:10 + 06/28/2022 12:17:20 - 10/29/2019 16:00:10 + 06/28/2022 12:17:20 - 01/09/2020 18:39:35 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 03/16/2020 13:50:42 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 11/26/2019 11:28:45 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 03/19/2020 14:43:52 + 08/30/2022 09:39:40 - 04/03/2020 14:49:33 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 11/15/2019 10:25:01 + 06/28/2022 12:17:20 - 01/09/2020 18:39:35 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 10/29/2019 16:00:10 + 06/28/2022 12:17:20 - 11/26/2019 11:28:45 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 01/09/2020 18:39:36 + 06/28/2022 12:17:20 - 03/25/2020 17:43:46 + 06/28/2022 12:17:20 - 03/25/2020 17:43:46 + 06/28/2022 12:17:20 - 03/25/2020 17:43:46 + 06/28/2022 12:17:20 - 10/29/2019 16:00:10 + 06/28/2022 12:17:20 - 10/29/2019 16:00:10 + 06/28/2022 12:17:20 - 06/09/2022 09:39:44 + 08/29/2022 17:20:35 \ No newline at end of file diff --git a/BookingWeb/Views/Booking/Order.cshtml b/BookingWeb/Views/Booking/Order.cshtml index f4eab563..db7ffee1 100644 --- a/BookingWeb/Views/Booking/Order.cshtml +++ b/BookingWeb/Views/Booking/Order.cshtml @@ -14,6 +14,10 @@ selectItemsNum.Add(new SelectListItem() { Value = n, Text = n }); } + var seleteItemsTRANSTYPE = new List(); + seleteItemsTRANSTYPE.Add(new SelectListItem() { Value = "娴疯繍", Text = Resources.LangOrder.SelectTRANSTYPE_S}); + seleteItemsTRANSTYPE.Add(new SelectListItem() { Value = "娴烽搧鑱旇繍", Text = Resources.LangOrder.SelectTRANSTYPE_SR }); + }
@@ -446,6 +450,12 @@ @Html.TextBoxFor(m => m.SALE_NAME, new { @class = "form-control" })
+
+ +
+ @Html.DropDownListFor(m => m.TRANSTYPE, seleteItemsTRANSTYPE, new { @class = "form-control" }) +
+
diff --git a/BookingWeb/Web.config b/BookingWeb/Web.config index 3493bcb7..a0b7cf53 100644 --- a/BookingWeb/Web.config +++ b/BookingWeb/Web.config @@ -23,7 +23,7 @@ - + diff --git a/D7MqClient/D7MqClient/InvtoD7.cs b/D7MqClient/D7MqClient/InvtoD7.cs index b61eb905..29d5cd31 100644 --- a/D7MqClient/D7MqClient/InvtoD7.cs +++ b/D7MqClient/D7MqClient/InvtoD7.cs @@ -514,7 +514,7 @@ namespace D7MqClient if (checker != null) result.CHECKER = checker.USERID; - result.INVOICETYPE = 2; + result.INVOICETYPE = 1; result.OPERATETIME = TimestampHelper.GetDateTime(inv.apiSendTime); result.EXCHANGERATE = _firstthisfee.EXCHANGERATE; result.COMPANYID = DS7COMPANYID; diff --git a/DSWeb/Areas/Account/DAL/Chfee_invoice_HangXin/Chfee_InvoiceDAL.cs b/DSWeb/Areas/Account/DAL/Chfee_invoice_HangXin/Chfee_InvoiceDAL.cs index 19a2091a..a655f0f4 100644 --- a/DSWeb/Areas/Account/DAL/Chfee_invoice_HangXin/Chfee_InvoiceDAL.cs +++ b/DSWeb/Areas/Account/DAL/Chfee_invoice_HangXin/Chfee_InvoiceDAL.cs @@ -597,12 +597,17 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Invoice_HangXin data.FEETYPE = Convert.ToInt16(reader["FEETYPE"]); data.FEETYPEREF = Convert.ToString(reader["FEETYPEREF"]); data.CURRENCY = Convert.ToString(reader["CURRENCY"]); - data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]); - data.DOAMOUNT = Convert.ToDecimal(reader["DOAMOUNT"]); + if (reader["AMOUNT"] != DBNull.Value) + data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]); + if (reader["DOAMOUNT"] != DBNull.Value) + data.DOAMOUNT = Convert.ToDecimal(reader["DOAMOUNT"]); data.ORIGCURRENCY = Convert.ToString(reader["ORIGCURRENCY"]); - data.ORIGAMOUNT = Convert.ToDecimal(reader["ORIGAMOUNT"]); - data.ORIGSTLAMOUNT = Convert.ToDecimal(reader["ORIGSTLAMOUNT"]); - data.EXCHANGERATE = Convert.ToDecimal(reader["EXCHANGERATE"]); + if (reader["ORIGAMOUNT"] != DBNull.Value) + data.ORIGAMOUNT = Convert.ToDecimal(reader["ORIGAMOUNT"]); + if (reader["ORIGSTLAMOUNT"] != DBNull.Value) + data.ORIGSTLAMOUNT = Convert.ToDecimal(reader["ORIGSTLAMOUNT"]); + if (reader["EXCHANGERATE"] != DBNull.Value) + data.EXCHANGERATE = Convert.ToDecimal(reader["EXCHANGERATE"]); if (reader["ETD"] != DBNull.Value) data.ETD = Convert.ToString(reader["ETD"]); data.ACCDATE = Convert.ToString(reader["ACCDATE"]); @@ -763,7 +768,8 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Invoice_HangXin data.FEETYPE = Convert.ToInt16(reader["FEETYPE"]); data.FEETYPEREF = Convert.ToString(reader["FEETYPEREF"]); data.CURRENCY = Convert.ToString(reader["CURRENCY"]); - data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]); + if (reader["AMOUNT"] != DBNull.Value) + data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]); #endregion headList.Add(data); } diff --git a/DSWeb/Areas/Account/Viewsjs/Chfee_Audit/Chfee_AuditBL.js b/DSWeb/Areas/Account/Viewsjs/Chfee_Audit/Chfee_AuditBL.js index 622d21ca..afc7115c 100644 --- a/DSWeb/Areas/Account/Viewsjs/Chfee_Audit/Chfee_AuditBL.js +++ b/DSWeb/Areas/Account/Viewsjs/Chfee_Audit/Chfee_AuditBL.js @@ -4228,6 +4228,35 @@ Ext.extend(Shipping.MsChfeeAudit, Ext.Panel, { }, + onCancelAuditClick: function (menu, event) { + + var GidStr = ''; + var records = this.AddGridCheckBoxModel.selected.items; + if (records.length == 0) { + Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.SelectShenHe, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); + return; + } + var bodyAddDatas = []; + for (var i = 0; i < records.length; i++) { + var rec = records[i]; + rec.REMARK = ''; + bodyAddDatas.push(rec); + } + + if (bodyAddDatas.length == 0) { + Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.LoaclYeWuNo, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK }); + return; + + } else { + //鎻愮ず', '纭畾鍒犻櫎璇ヨ褰曞悧锛 + + this.winAuditBackShow.show(); + + + } + + }, + onSelViewClick: function (menu, event) { var GidStr = ''; diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsChFeeController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsChFeeController.cs index 16809c3e..71502820 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsChFeeController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsChFeeController.cs @@ -1449,8 +1449,8 @@ namespace DSWeb.MvcShipping.Controllers } - if (string.IsNullOrEmpty(errstr)) { - result.Success = true; + if (!string.IsNullOrEmpty(errstr)) { + result.Success = false; result.Message = errstr; var jsonRespose2 = new JsonResponse { diff --git a/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs index 59a075a3..69eda563 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsChFee/MsChFeeDAL.cs @@ -30,6 +30,7 @@ using System.Text.RegularExpressions; using DSWeb.Areas.MvcShipping.DAL; using DSWeb.Common.DB; using System.Linq; +using DSWeb.MvcShipping.DAL.MsCodeGoodInv; namespace DSWeb.MvcShipping.DAL.MsChFeeDAL { @@ -6332,6 +6333,33 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL result.Message = "瀹㈡埛鍙戠エ鎶ご涓嶈兘涓虹┖锛"; return result; } + + var invgood = MsCodeGoodInvDAL.GetData("GOODNAME in (select top 1 GOODNAME from code_fee where [NAME]='"+fee.FeeName+"') "); + if (!string.IsNullOrEmpty(invgood.GOODCODE)) + { + MsDjyInvLj.GoodsCode = invgood.GOODCODE; + MsDjyInvLj.GoodsName = invgood.GOODNAME; + MsDjyInvLj.Unit = invgood.UNIT; + MsDjyInvLj.FavouredPolicyFlag = invgood.ISUSEPREF; + MsDjyInvLj.FavouredPolicyName = invgood.DEFREMARK; + MsDjyInvLj.ZeroRateFlag = invgood.ZTAXTYPE; + MsDjyInvLj.TaxRate = invgood.TAXRATE.ToString(); + } + else { + invgood = MsCodeGoodInvDAL.GetData("ISDEF='1' "); + + if (!string.IsNullOrEmpty(invgood.GOODCODE)) + { + MsDjyInvLj.GoodsCode = invgood.GOODCODE; + MsDjyInvLj.GoodsName = invgood.GOODNAME; + MsDjyInvLj.Unit = invgood.UNIT; + MsDjyInvLj.FavouredPolicyFlag = invgood.ISUSEPREF; + MsDjyInvLj.FavouredPolicyName = invgood.DEFREMARK; + MsDjyInvLj.ZeroRateFlag = invgood.ZTAXTYPE; + MsDjyInvLj.TaxRate = invgood.TAXRATE.ToString(); + } + + } //if (string.IsNullOrEmpty(MsDjyInvLj.BuyerName) || string.IsNullOrEmpty(MsDjyInvLj.BuyerTaxNum) || string.IsNullOrEmpty(MsDjyInvLj.BuyerTel) // || string.IsNullOrEmpty(MsDjyInvLj.BuyerAddress) || string.IsNullOrEmpty(MsDjyInvLj.BuyerAccount)) diff --git a/DSWeb/Areas/MvcShipping/DAL/MsCodeFeeSetList/MsCodeFeeSetListDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsCodeFeeSetList/MsCodeFeeSetListDAL.cs index be107105..56d4b4a1 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsCodeFeeSetList/MsCodeFeeSetListDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsCodeFeeSetList/MsCodeFeeSetListDAL.cs @@ -61,7 +61,7 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList when 13 then '鐮佸ご' when 0 then '鍏朵粬' end),'') DEFAULTCREDITREF,A.CREATEUSER, B.SHOWNAME as CREATEUSERREF, A.CREATETIME , - A.FEEGROUP,A.FEEFRT,A.TAXRATE,A.DUITYPE "); + A.FEEGROUP,A.FEEFRT,A.TAXRATE,A.DUITYPE,A.GOODNAME "); strSql.Append(@"FROM code_fee as A INNER JOIN [user] as B ON A.CREATEUSER = B.GID "); @@ -114,7 +114,7 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList when 13 then '鐮佸ご' when 0 then '鍏朵粬' end),'') DEFAULTCREDITREF,A.CREATEUSER, B.SHOWNAME as CREATEUSERREF, A.CREATETIME , - A.FEEGROUP,A.FEEFRT,A.TAXRATE,A.DUITYPE "); + A.FEEGROUP,A.FEEFRT,A.TAXRATE,A.DUITYPE,A.GOODNAME "); strSql.Append(@"FROM code_fee as A INNER JOIN [user] as B ON A.CREATEUSER = B.GID "); @@ -213,6 +213,7 @@ namespace DSWeb.MvcShipping.DAL.MsCodeFeeSetList data.FEEFRT = Convert.ToString(reader["FEEFRT"]); data.TAXRATE = Convert.ToString(reader["TAXRATE"]); data.DUITYPE = Convert.ToString(reader["DUITYPE"]); + data.GOODNAME = Convert.ToString(reader["GOODNAME"]); #endregion headList.Add(data); diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeEdiPortDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeEdiPortDAL.cs index def67d22..7b65c810 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeEdiPortDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeEdiPortDAL.cs @@ -11119,7 +11119,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL if (type == "COSCOEDIKR" || type == "YDEDISF") { - r.WriteLine("16::SOFAST SHIPPING LIMITED::::::::::" + "'"); + + var YDEDISFSHIPPER = MsSysParamSetDAL.GetData("PARAMNAME='YDEDISFSHIPPER'").PARAMVALUE; + + r.WriteLine("16::"+ YDEDISFSHIPPER + "::::::::::" + "'"); Shipping = formatEdiStr("txt", bill.AGENT); ShippingList = formatlengthStr(Shipping, 35); diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOp_InternalTrade/MsOp_InternalTradeDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOp_InternalTrade/MsOp_InternalTradeDAL.cs index a5e4ddfe..127c9e02 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOp_InternalTrade/MsOp_InternalTradeDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOp_InternalTrade/MsOp_InternalTradeDAL.cs @@ -982,7 +982,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_InternalTrade int num = 0; foreach (DataRow row in table.Rows) { - if (row[1].ToString() != "") + if (row[0].ToString() != "") { num = num + 1; var CUSTNO = Convert.ToString(row["濮旀墭缂栧彿"]); diff --git a/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyFee.cs b/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyFee.cs index aca9112b..463a1a1e 100644 --- a/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyFee.cs +++ b/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyFee.cs @@ -52,6 +52,8 @@ namespace DSWeb.MvcShipping.Models.MsChFee public string InGate { get; set; } public string LastFreeDay { get; set; } public string PayingFor { get; set; } + + public List Details { get; set; } } diff --git a/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyInvoiceFee.cs b/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyInvoiceFee.cs index 0438454f..f373aa03 100644 --- a/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyInvoiceFee.cs +++ b/DSWeb/Areas/MvcShipping/Models/MsChFee/MsDjyInvoiceFee.cs @@ -108,6 +108,13 @@ namespace DSWeb.MvcShipping.Models.MsChFee public string Checker { get; set; } public string Clerk { get; set; } public string RemarkTemplate { get; set; } + public string GoodsCode { get; set; } + public string GoodsName { get; set; } + public string Unit { get; set; } + public string FavouredPolicyFlag { get; set; } + public string FavouredPolicyName { get; set; } + public string ZeroRateFlag { get; set; } + public string TaxRate { get; set; } public List BillList { get; set; } } diff --git a/DSWeb/Areas/MvcShipping/Models/MsCodeFeeSetList/CodeFeeSetList.cs b/DSWeb/Areas/MvcShipping/Models/MsCodeFeeSetList/CodeFeeSetList.cs index 92e67f3a..349f9a94 100644 --- a/DSWeb/Areas/MvcShipping/Models/MsCodeFeeSetList/CodeFeeSetList.cs +++ b/DSWeb/Areas/MvcShipping/Models/MsCodeFeeSetList/CodeFeeSetList.cs @@ -144,6 +144,9 @@ namespace DSWeb.MvcShipping.Models.MsCodeFeeSetList [ModelDB] public string DUITYPE { get; set; } + [ModelDB] + public string GOODNAME { get; set; } + public CodeFeeSetList() { TableName = "code_fee"; diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListEdit.js index 66da24cc..86a59399 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListEdit.js @@ -89,7 +89,6 @@ Ext.extend(Shipping.MsCodeFeeSetListEdit, Ext.Panel, { this.comboxFEEFRT = Ext.create('DsExt.ux.RefTableCombox', { fieldLabel: Zi.LAN.FEEFRT, //'榛樿FRT', store: this.StoreFEEFRT, - labelWidth: 60, valueField: 'value', displayField: 'text', forceSelection: true, @@ -131,7 +130,6 @@ Ext.extend(Shipping.MsCodeFeeSetListEdit, Ext.Panel, { this.comboxFeeGroup = Ext.create('DsExt.ux.RefTableCombox', { fieldLabel: Zi.LAN.FEEGROUP, //'榛樿甯佸埆', - labelWidth: 60, store: this.StoreFeeGroup, forceSelection: true, name: 'FEEGROUP', @@ -179,13 +177,30 @@ Ext.extend(Shipping.MsCodeFeeSetListEdit, Ext.Panel, { this.comboxDUITYPE = Ext.create('DsExt.ux.RefTableCombox', { store: this.storeDUITYPE, fieldLabel: Zi.LAN.DUITYPE, //'瀵硅处绫诲埆', - labelWidth: 60, valueField: 'EnumValueName', displayField: 'EnumValueName', name: 'DUITYPE', forceSelection: true }); + this.StoreCodeGoodInv = Ext.create('DsExt.ux.RefTableStore', { + model: 'MsCodeGoodInv', + proxy: { url: '/MvcShipping/MsCodeGoodInv/GetDataList' } + }); + this.StoreCodeGoodInv.load({ + params: { condition: "" } + }); + + this.comboxCodeGoodInv = Ext.create('DsExt.ux.RefTableCombox', { + store: this.StoreCodeGoodInv, + fieldLabel: Zi.LAN.INVGOODNAME, //'瀵硅处绫诲埆', + forceSelection: true, + name: 'GOODNAME', + valueField: 'GOODNAME', + displayField: 'GOODNAME' + }); + + //琛ㄥ弬鐓х浉鍏(缂栬緫form) @@ -247,11 +262,16 @@ Ext.extend(Shipping.MsCodeFeeSetListEdit, Ext.Panel, { defaultType: 'textfield', items: [this.comboxCurr, this.comboxFEEFRT, { fieldLabel: Zi.LAN.TAXRATE, //'TAXRATE', - labelWidth: 60, name: 'TAXRATE' - }, this.comboxFeeGroup, this.comboxDUITYPE + } ] - }, this.myCheckboxService + }, { + xtype: 'container', + layout: 'hbox', + defaultType: 'textfield', + items: [this.comboxFeeGroup, this.comboxDUITYPE, this.comboxCodeGoodInv + ] + }, this.myCheckboxService ]//end items(fieldset 1) }//end fieldset 1 ]//end root items diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListModel.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListModel.js index 452d41d2..d1dcfc79 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListModel.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/MsCodeFeeSetListModel.js @@ -68,4 +68,29 @@ Ext.define('MsFEEGROUP', { { name: 'FEEGROUPNAME', type: 'string' }, { name: 'REMARKS', type: 'string' } ] -}); \ No newline at end of file +}); + +Ext.define('MsCodeGoodInv', { + extend: 'Ext.data.Model', + idProperty: 'GID', + fields: [ + { name: 'GID', type: 'string' }, + { name: 'GOODCODE', type: 'string' }, + { name: 'GOODNAME', type: 'string' }, + { name: 'GOODCODENAME', type: 'string' }, + { name: 'DESCRIP', type: 'string' }, + { name: 'TAXRATE', type: 'string' }, + { name: 'TAXNO', type: 'string' }, + { name: 'TAXCLASS', type: 'string' }, + { name: 'TAXCLASSNAME', type: 'string' }, + { name: 'ISTAXPRICE', type: 'string' }, + { name: 'ISUSEPREF', type: 'string' }, + { name: 'ISDEF', type: 'string' }, + { name: 'SPEC', type: 'string' }, + { name: 'UNIT', type: 'string' }, + { name: 'ZTAXTYPE', type: 'string' }, + { name: 'DEFREMARK', type: 'string' }, + { name: 'DEFCURR', type: 'string' } + ] +}); + diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_en-us.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_en-us.js index 3bcc8902..46073c06 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_en-us.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_en-us.js @@ -43,6 +43,7 @@ Zi.LAN.JingGao = "Warning!";//璀﹀憡 Zi.LAN.QingXianXuanZeXinXi = "Please choose first!";//璇峰厛閫夋嫨瑕佹搷浣滅殑淇℃伅! Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "Inquiry condition is wrong, please check!";//鏌ヨ鏉′欢璧嬪奸敊璇紝璇锋鏌! Zi.LAN.DUITYPE = "Fee Group"; +Zi.LAN.INVGOODNAME = "Inoice Fee Name"; //#endregion diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_zh-cn.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_zh-cn.js index f2b5a346..bdcc0612 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_zh-cn.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCodeFeeSetList/Zi_zh-cn.js @@ -45,6 +45,7 @@ Zi.LAN.JingGao = "璀﹀憡"; Zi.LAN.QingXianXuanZeXinXi = "璇峰厛閫夋嫨瑕佹搷浣滅殑淇℃伅!"; Zi.LAN.ChaXunTiaoJianFuZhiCuoWu = "鏌ヨ鏉′欢璧嬪奸敊璇紝璇锋鏌!"; Zi.LAN.DUITYPE = "瀵硅处绫诲埆"; +Zi.LAN.INVGOODNAME = "鍙戠エ鍟嗗搧鍚嶇О"; //#endregion diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusing/MsCwDesignStartusingModel.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusing/MsCwDesignStartusingModel.js index 98105661..30680685 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusing/MsCwDesignStartusingModel.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusing/MsCwDesignStartusingModel.js @@ -4,7 +4,7 @@ fields: [ {name: 'GID', type: 'string' },//鍞竴缂栫爜 {name: 'STARTNAME', type: 'string' }, //璐﹀鍚嶇О - {name: 'STARTMONTH', type: 'date', dateFormat: 'Y-m' }, //鍚敤骞存湀 + {name: 'STARTMONTH', type: 'string'}, //鍚敤骞存湀 {name: 'ISENABLE', type: 'bool' }, //鏄惁鍚敤 {name: 'ISLOGIN', type: 'string' }, //鏄惁鐧诲綍 { name: 'FINANCESOFTCODE', type: 'string' }, //鏄惁鐧诲綍 diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusingUser/MsCwDesignStartusingUserModel.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusingUser/MsCwDesignStartusingUserModel.js index 39ee146e..852426c7 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusingUser/MsCwDesignStartusingUserModel.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsCwDesignStartusingUser/MsCwDesignStartusingUserModel.js @@ -4,7 +4,7 @@ fields: [ {name: 'GID', type: 'string' },//鍞竴缂栫爜 {name: 'STARTNAME', type: 'string' }, //璐﹀鍚嶇О - {name: 'STARTMONTH', type: 'date', dateFormat: 'Y-m' }, //鍚敤骞存湀 + { name: 'STARTMONTH', type: 'string' }, //鍚敤骞存湀 {name: 'ISENABLE', type: 'bool' }, //鏄惁鍚敤 {name: 'ISLOGIN', type: 'string' }, //鏄惁鐧诲綍 {name: 'CORPID', type: 'string' },//鍒嗗叕鍙镐唬鐮 diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js index c615dc91..6bb50681 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js @@ -4672,6 +4672,8 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, { } }, { text: "杩滃ぇEDI(椤哄彂)", //"杩滃ぇEDI", + id: 'EDI-YDEDISF', + hidden: true, handler: function (menu, event) { _this.onCreateEDIClick(menu, event, 'YDEDISF'); } diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeIndex.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeIndex.js index 4e6de29a..0c43cafa 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeIndex.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeIndex.js @@ -2354,7 +2354,14 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, { handler: function (menu, event) { _this.onCreateEDIClick(menu, event, 'YDEDI'); } - }, { + }, { + text: "杩滃ぇEDI(椤哄彂)", //"杩滃ぇEDI", + id: 'EDI-YDEDISF', + hidden: true, + handler: function (menu, event) { + _this.onCreateEDIClick(menu, event, 'YDEDISF'); + } + }, { text: Zi.LAN.ZTEDI, //"涓欵DI", hidden: true, id: 'EDI-ZTEDI', diff --git a/DSWeb/DSWeb.csproj.user b/DSWeb/DSWeb.csproj.user index f1ee0275..4b503d3c 100644 --- a/DSWeb/DSWeb.csproj.user +++ b/DSWeb/DSWeb.csproj.user @@ -2,7 +2,7 @@ ShowAllFiles - H:\DS7\DSWeb\Properties\PublishProfiles\閰嶇疆鏂囦欢1.pubxml + 閰嶇疆鏂囦欢1 true Debug|Any CPU diff --git a/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml b/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml index 3e89cb16..acf4e50c 100644 --- a/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml +++ b/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml @@ -7,11 +7,11 @@ FileSystem Release - x64 + Any CPU - true - false - F:\DS7Deploy - true + True + False + D:\DONGSHENGWEBZC + True \ No newline at end of file diff --git a/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml.user b/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml.user index 875e1694..d4420ce0 100644 --- a/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml.user +++ b/DSWeb/Properties/PublishProfiles/閰嶇疆鏂囦欢1.pubxml.user @@ -5,8 +5,8 @@ --> - 2022-07-01T11:51:54.8104015+08:00 - <_PublishTargetUrl>F:\DS7Deploy + 2022-06-28T12:17:44.7010000+08:00 + <_PublishTargetUrl>D:\DONGSHENGWEBZC False|2022-08-29T03:47:46.7317666Z;False|2022-08-29T11:47:01.4649176+08:00; @@ -369,7 +369,7 @@ 07/15/2022 16:45:39 - 07/15/2022 16:46:28 + 08/30/2022 17:03:31 07/15/2022 16:46:50 @@ -5847,19 +5847,19 @@ 06/28/2022 12:17:34 - 07/15/2022 08:43:32 + 08/30/2022 16:55:27 06/28/2022 12:17:34 - 06/28/2022 12:17:34 + 08/30/2022 16:45:17 - 06/28/2022 12:17:34 + 08/30/2022 16:46:34 - 06/28/2022 12:17:34 + 08/30/2022 16:46:11 06/28/2022 12:17:34 @@ -6411,7 +6411,7 @@ 06/28/2022 12:17:34 - 06/28/2022 12:17:34 + 08/31/2022 15:32:41 06/28/2022 12:17:34 @@ -6423,7 +6423,7 @@ 06/28/2022 12:17:34 - 06/28/2022 12:17:34 + 08/31/2022 15:37:24 06/28/2022 12:17:34 @@ -7731,7 +7731,7 @@ 06/28/2022 12:17:34 - 08/25/2022 15:37:00 + 08/29/2022 16:51:21 06/28/2022 12:17:34 @@ -7752,7 +7752,7 @@ 06/28/2022 12:17:34 - 08/12/2022 09:06:18 + 08/29/2022 16:51:21 08/12/2022 08:03:47 @@ -12873,7 +12873,7 @@ 07/28/2022 11:31:49 - 08/29/2022 10:28:05 + 09/01/2022 09:44:02 08/09/2022 15:32:53 @@ -12882,10 +12882,10 @@ 08/09/2022 15:32:53 - 08/29/2022 10:28:05 + 09/01/2022 09:44:02 - 08/29/2022 10:28:15 + 09/01/2022 09:44:05 07/01/2022 17:44:01 @@ -24078,7 +24078,7 @@ 06/28/2022 12:17:56 - 08/29/2022 10:05:58 + 09/01/2022 09:35:57 06/28/2022 12:17:56 diff --git a/JobAutoCreateFee/DateTimeExtension.cs b/JobAutoCreateFee/DateTimeExtension.cs new file mode 100644 index 00000000..31d24981 --- /dev/null +++ b/JobAutoCreateFee/DateTimeExtension.cs @@ -0,0 +1,141 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace JobCreateFee +{ + + /// + /// datetime鏁版嵁绫诲瀷鎷撳睍 + /// + public static class DateTimeExtension + { + + /// + ///灏嗕竴涓椂闂磋浆鎹负绉掔骇鏃堕棿鎴 + /// + /// 鏃堕棿 + /// + public static long ToTimeStampSeconds(this DateTime datetime) + { + return (long)Math.Round((datetime.ToUniversalTime() - new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero)).TotalSeconds); + } + + /// + ///灏嗕竴涓椂闂磋浆鎹负姣绾ф椂闂存埑 + /// + /// + /// + public static long ToTimeStampMilliSeconds(this DateTime datetime) + { + + return (long)Math.Round((datetime.ToUniversalTime() - new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero)).TotalMilliseconds); + } + + /// + /// 鑾峰彇鏍囧噯鏃堕棿鎴 绉掔骇 + /// + /// + /// + public static long ToTimeStamp(this DateTime datetime) + { return ToTimeStampSeconds(datetime); } + + /// + /// 灏嗘椂闂磋浆鎹负鏃堕棿瀛楃涓茬紪鐮 yyyyMMddHHmmssffff + /// + /// + /// + public static string ToTimeStr(this DateTime datetime) + { + return datetime.ToString("yyyyMMddHHmmssffff"); + } + + /// + /// 鍒ゆ柇鏃堕棿鏄惁澶т簬1970骞寸殑鏈夋晥鏃堕棿 + /// + /// + /// + public static bool IsValidTime(this DateTime dateTime) + { + if (dateTime.Date >= DateTime.Parse("1970-1-1")) + return true; + else return false; + } + /// + /// 鑾锋椂闂翠竴澶╀腑鐨勫紑濮嬫椂闂 + /// + /// + public static DateTime GetDayStartTime(this DateTime dateTime) + { + return dateTime.Date; + } + /// + /// 鑾峰彇鏃堕棿涓澶╃殑缁撴潫鏃堕棿 + /// + /// + /// + + public static DateTime GetDateEndTime(this DateTime dateTime) + { + return dateTime.Date.AddDays(1).AddSeconds(-1); + } + + /// + /// 鑾峰彇鏃堕棿鍛ㄧ殑鏄熸湡涓鐨勬椂闂 + /// + /// + /// + public static DateTime GetWeekStartTime(this DateTime dateTime) + { + return dateTime.GetWeekOfDayTime(1); + } + + /// + /// 鑾峰彇鏃堕棿鍛ㄧ殑鍛ㄦ棩 + /// + /// + /// + public static DateTime GetWeekEndTime(this DateTime dateTime) + { + return dateTime.GetWeekOfDayTime(7); + } + + /// + /// 鑾峰彇鏃堕棿鍛ㄧ殑鎸囧畾鍛ㄥ嚑鏃堕棿 + /// + /// + /// 鍛ㄥ嚑 1 2 3 4 5 6 7 + /// + public static DateTime GetWeekOfDayTime(this DateTime dateTime, int Day) + { + if (Day < 1) + Day = 1; + if (Day > 7) + Day = (int)dateTime.DayOfWeek; + return dateTime.Subtract(new TimeSpan(dateTime.DayOfWeek - (DayOfWeek)Day, 0, 0, 0)).Date; + } + + /// + /// 鑾峰彇鏃堕棿鏈堝紑濮嬫椂闂 + /// + /// + /// + public static DateTime GetMonthStartTime(this DateTime dateTime) + { + return new DateTime(dateTime.Year, dateTime.Month, 1).Date; + } + /// + /// 鑾峰彇涓涓湀鐨勭粨鏉熸椂闂 + /// + /// + /// + public static DateTime GetMonthEndTime(this DateTime dateTime) + { + return dateTime.GetMonthStartTime().AddMonths(1).AddDays(-1); + + } + } + +} diff --git a/JobAutoCreateFee/JobAutoCreateFee.csproj b/JobAutoCreateFee/JobAutoCreateFee.csproj index 7f31befc..b82705ec 100644 --- a/JobAutoCreateFee/JobAutoCreateFee.csproj +++ b/JobAutoCreateFee/JobAutoCreateFee.csproj @@ -61,6 +61,7 @@ + @@ -78,6 +79,7 @@ + diff --git a/JobAutoCreateFee/JobD7DjyFee.cs b/JobAutoCreateFee/JobD7DjyFee.cs index 68dcdd30..6cd1601e 100644 --- a/JobAutoCreateFee/JobD7DjyFee.cs +++ b/JobAutoCreateFee/JobD7DjyFee.cs @@ -31,6 +31,13 @@ namespace JobCreateFee int reqTimeout = Convert.ToInt32(context.JobDetail.JobDataMap.GetString("RequestTimeout")); long ts = DataTableToJsonHelper.ConvertDateTimeToInt(DateTime.Now); + string KFCUSTCODE = context.JobDetail.JobDataMap.GetString("KFCUSTCODE"); + string KFCUSTKEY = context.JobDetail.JobDataMap.GetString("KFCUSTKEY"); + string KFUSERID = context.JobDetail.JobDataMap.GetString("KFUSERID"); + string KFURL = context.JobDetail.JobDataMap.GetString("KFURL"); + + + Dictionary dicData = new Dictionary(); dicData.Add("compid", companyCode); @@ -132,13 +139,13 @@ namespace JobCreateFee sql = "INSERT INTO ch_fee(GID, BSNO, FEETYPE, FEENAME,CUSTOMERTYPE, CUSTOMERNAME, UNIT, UNITPRICE, QUANTITY, AMOUNT, CURRENCY,"; sql = sql + "EXCHANGERATE, REASON, REMARK, COMMISSIONRATE,ENTEROPERATOR, ENTERDATE,ISOPEN, ISADVANCEDPAY, SORT, FEESTATUS, FEEFRT,CARGO_GID,"; - sql = sql + "TAXRATE,NOTAXAMOUNT,ACCTAXRATE,LINENUM,TAXUNITPRICE,MODIFIEDUSER,MODIFIEDTIME,WMSOUTBSNO,PREAMOUNT,ISINVOICE,INPUTMODE,LOCALCURR,MANAGER,ISACC,FEEDESCRIPTION,DELIVERYNO)"; + sql = sql + "TAXRATE,NOTAXAMOUNT,ACCTAXRATE,LINENUM,TAXUNITPRICE,MODIFIEDUSER,MODIFIEDTIME,WMSOUTBSNO,PREAMOUNT,ISINVOICE,INPUTMODE,LOCALCURR,MANAGER,ISACC,FEEDESCRIPTION,DELIVERYNO,SETTLEMENT,INVOICE,ORDERAMOUNT,ORDERINVOICE,ORDERSETTLEMENT,ORDERINVSETTLEMENT)"; sql = sql + "VALUES "; sql = sql + "('"+ Guid.NewGuid().ToString()+ "','" + BS.BSNO + "',2,'" + FEENAME.Replace(",", "") + "','鑸瑰叕鍙','CMA','" + GETUNIT(feedata.UNIT.Replace(",", ""), feedata.CTNALL.Replace(",", "")) + "'"; sql = sql + "," + price + "," + COUNT.Replace(",", "") + "," + AMOUNT.Replace(",", "") + ",'" + curr + "'," + exrate.ToString() + ",'','',0"; sql = sql + ",'"+ ENTEROPERATOR + "',GETDATE(),0,0,10,1,'',''"; sql = sql + ",0,"+ AMOUNT.Replace(",", "") + ",0,0," + price + ","+ ENTEROPERATOR + ",GETDATE(),'',0,0,'','RMB','',0,'" + feedata.FEECODE.Replace(",", "").Replace(".", "") + "'"; - sql = sql + ",'" + returndata.INVOICE_NO + "')"; + sql = sql + ",'" + returndata.INVOICE_NO + "',0,0,0,0,0,0)"; // log.Debug($"鏇存柊璇彞锛歿sql}"); SqlCommand cmd = new SqlCommand(sql, dbcon); cmd.ExecuteNonQuery(); @@ -150,6 +157,9 @@ namespace JobCreateFee feeback.Success = true; feeback.Reason = ""; feebacklist.Add(feeback); + string guid = Guid.NewGuid().ToString(); + DeductionFee(guid, returndata.MBLNO,KFCUSTCODE,KFCUSTKEY,KFUSERID,KFURL); + } } //} @@ -421,6 +431,50 @@ namespace JobCreateFee } + public bool DeductionFee(string _Guid, string _MBLNO, string custname, string custkey, string userid, string djyurl, string bsType = "7") + { + + var seconds = DateTime.Now.ToTimeStamp(); + var runId = Guid.NewGuid().ToString(); + var srcBeforMD5 = $"{runId}{custname}expend{bsType}0{_Guid}{_MBLNO}{seconds}{custkey}"; + //璋冪敤鎵h垂鎺ュ彛 + var postObj = new + { + runId, + userId = custname, + module = "expend",//鍥哄畾 + bsType = bsType, + sendType = "0", + timestamp = seconds,//绉掔骇鏃堕棿鎴 + md5 = srcBeforMD5.ToMd5(),// 鍔犲瘑瀛楃涓插皬鍐 RunId + UserId + Module + BsType + SendType+Timestamp+ Key + Data = new + { + BSNO = _Guid, + MBLNO = _MBLNO, + CtnrInfo = "", + CtnrCount = 1, + IsCredit = 1,//鏄惁鏄俊鐢ㄦ敮浠 1 淇$敤鏀粯 0涓嶅厑璁镐俊鐢ㄦ敮浠橀粯璁ゅ间负0 + LURURENID = userid,///褰撳墠鐧诲綍浜篿d + SENDUSERID = userid + } + }; + var apiJson = JsonConvert.SerializeObject(postObj); + var apiRtn = WebRequestHelper.DoPost(djyurl, apiJson); + var jobjApiRtn = JObject.Parse(apiRtn); + var code = Convert.ToInt32(jobjApiRtn.GetValue("code").ToString()); + if (code == 200 || code == 450) + { + return true; + } + else + { + log.Debug($"鎵h垂澶辫触鎻愰啋,鎵ц鎵h垂澶辫触!"); + + } + return false; + + } + } diff --git a/JobAutoCreateFee/JobDjyXf.cs b/JobAutoCreateFee/JobDjyXf.cs index 7cdca781..92272a02 100644 --- a/JobAutoCreateFee/JobDjyXf.cs +++ b/JobAutoCreateFee/JobDjyXf.cs @@ -108,9 +108,14 @@ namespace JobCreateFee log.Error(ex.StackTrace); } } + + + } + + public class JsonXFSend { diff --git a/JobAutoCreateFee/StringExtension.cs b/JobAutoCreateFee/StringExtension.cs new file mode 100644 index 00000000..fe23d403 --- /dev/null +++ b/JobAutoCreateFee/StringExtension.cs @@ -0,0 +1,470 @@ +锘縰sing System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Newtonsoft.Json; +namespace JobCreateFee +{ + /// + /// string 鎷撳睍 + /// + public static class StringExtension + { + + + /// + /// 闅愯棌涓棿瀛楃涓 + /// + /// + /// + public static string GetHideCentre(this string str) + { + if (str.Length > 8) + { + + return string.Format("{0}***{1}", str.Substring(0, 4), str.Substring(str.Length - 4, 4)); + } + else if (str.Length > 5) + { + return string.Format("{0}***{1}", str.Substring(0, 2), str.Substring(str.Length - 2, 2)); + + } + else if (str.Length > 4) + { + return string.Format("{0}***{1}", str.Substring(0, 1), str.Substring(str.Length - 1, 1)); + + } + else + { + return GetHideHead(str); + } + } + + /// + /// 闅愯棌澶撮儴 + /// + /// + /// + public static string GetHideHead(this string str) + { + var length = 1; + length = length > str.Length ? str.Length : length; + if (str.Length < 4) + { + length = 1; + if (str.Length == 1) + { + return str; + } + + return "**" + str.Substring(str.Length - length, length); + } + length = 4; + return "****" + str.Substring(str.Length - length, length); + + + } + + /// + /// 鐢ㄤ簬鍒ゆ柇鏄惁涓虹┖瀛楃 + /// + /// + /// + public static bool IsNull(this string s) + { + return s == null || (s.Trim().Length == 0); + } + + /// + /// 鐢ㄤ簬鍒ゆ柇鏄惁涓洪潪绌哄瓧绗 + /// + /// + /// + public static bool IsNotNull(this string s) + { + return !s.IsNull(); + } + + #region 鍔犲瘑绠楁硶 + + + /// + /// DES瀵圭О鍔犲瘑瀛楃涓 + /// + /// 寰呭姞瀵嗙殑瀛楃涓 + /// 鍔犲瘑瀵嗛挜,瑕佹眰涓16浣 + /// 鍔犲瘑鎴愬姛杩斿洖鍔犲瘑鍚庣殑瀛楃涓诧紝澶辫触杩斿洖婧愪覆 + public static string DESEncrypt(this string encryptString, string key) + { + try + { + byte[] rgbKey = Encoding.UTF8.GetBytes(key); + //鐢ㄤ簬瀵圭О绠楁硶鐨勫垵濮嬪寲鍚戦噺锛堥粯璁ゅ硷級銆 + byte[] rgbIV = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }; + byte[] inputByteArray = Encoding.UTF8.GetBytes(encryptString); + Aes dCSP = Aes.Create(); + + MemoryStream mStream = new MemoryStream(); + CryptoStream cStream = new CryptoStream(mStream, dCSP.CreateEncryptor(rgbKey, rgbIV), CryptoStreamMode.Write); + cStream.Write(inputByteArray, 0, inputByteArray.Length); + cStream.FlushFinalBlock(); + return Convert.ToBase64String(mStream.ToArray()); + } + catch (Exception ex) + { + throw ex; + } + } + + /// + /// DES瀵圭О瑙e瘑瀛楃涓 + /// + /// 寰呰В瀵嗙殑瀛楃涓 + /// 瑙e瘑瀵嗛挜锛岃姹16浣 + /// + public static string DESDecrypt(this string decryptString, string key) + { + try + { + //鐢ㄤ簬瀵圭О绠楁硶鐨勫垵濮嬪寲鍚戦噺锛堥粯璁ゅ硷級 + byte[] Keys = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }; + byte[] rgbKey = Encoding.UTF8.GetBytes(key); + byte[] rgbIV = Keys; + byte[] inputByteArray = Convert.FromBase64String(decryptString); + Aes DCSP = Aes.Create(); + + MemoryStream mStream = new MemoryStream(); + CryptoStream cStream = new CryptoStream(mStream, DCSP.CreateDecryptor(rgbKey, rgbIV), CryptoStreamMode.Write); + cStream.Write(inputByteArray, 0, inputByteArray.Length); + cStream.FlushFinalBlock(); + return Encoding.UTF8.GetString(mStream.ToArray()); + } + catch + { + return decryptString; + } + } + + /// + /// 灏嗗瓧绗︿覆杞崲鎴怣D5鍔犲瘑瀛楃涓 + /// + /// + /// + public static string ToMd5(this string orgStr) + { + using (var md5 = MD5.Create()) + { + var encoding = Encoding.UTF8; + var encryptedBytes = md5.ComputeHash(encoding.GetBytes(orgStr)); + var sb = new StringBuilder(32); + foreach (var bt in encryptedBytes) + { + sb.Append(bt.ToString("x").PadLeft(2, '0')); + } + return sb.ToString().ToLower(); + } + } + #endregion + /// + /// 鑾峰彇鎵╁睍鍚 + /// + /// + /// + public static string GetExt(this string s) + { + var ret = string.Empty; + if (!s.Contains('.')) return ret; + var temp = s.Split('.'); + ret = temp[temp.Length - 1]; + + return ret; + } + /// + /// 楠岃瘉QQ鏍煎紡 + /// + /// + /// + public static bool IsQq(this string s) + { + return s.IsNull() || Regex.IsMatch(s, @"^[1-9]\d{4,15}$"); + } + + /// + /// 灏嗗瓧绗︿覆鏍规嵁鍒嗛殧绗﹁浆鎹㈡垜List + /// + /// + /// 鍒嗛殧绗 + /// + public static List ToListString(this string str, char split) + { + return new List(str.Split(split)); + + } + + /// + /// 鍒ゆ柇鏄惁涓烘湁鏁堢殑Email鍦板潃 + /// + /// + /// + public static bool IsEmail(this string s) + { + if (!s.IsNull()) + { + //return Regex.IsMatch(s, + // @"^(?("")("".+?""@)|(([0-9a-zA-Z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-zA-Z])@))" + + // @"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,6}))$"); + const string pattern = @"^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$"; + return Regex.IsMatch(s, pattern); + } + return false; + } + /// + /// 鍒ゆ柇鏄惁鏄痷rl + /// + /// + /// + public static bool IsUrl(this string s) + { + if (!s.IsNull()) + { + const string pattern = @"^(http://|https://)?((?:[A-Za-z0-9]+-[A-Za-z0-9]+|[A-Za-z0-9]+)\.)+([A-Za-z]+)[/\?\:]?.*$"; + return Regex.IsMatch(s, pattern); + } + return false; + } + + /// + /// 楠岃瘉鏄惁鏄悎娉曠殑鐢佃瘽鍙风爜 + /// + /// + /// + public static bool IsPhone(this string s) + { + if (!s.IsNull()) + { + return Regex.IsMatch(s, @"^\+?((\d{2,4}(-)?)|(\(\d{2,4}\)))*(\d{0,16})*$"); + } + return true; + } + + /// + /// 楠岃瘉鏄惁鏄悎娉曠殑鎵嬫満鍙风爜 + /// + /// + /// + public static bool IsMobile(this string s) + { + if (!s.IsNull()) + { + return Regex.IsMatch(s, @"^\+?\d{0,4}?[1][3-8]\d{9}$"); + } + return false; + } + + /// + /// 楠岃瘉鏄惁鏄悎娉曠殑閭紪 + /// + /// + /// + public static bool IsZipCode(this string s) + { + if (!s.IsNull()) + { + return Regex.IsMatch(s, @"[1-9]\d{5}(?!\d)"); + } + return true; + } + + /// + /// 楠岃瘉鏄惁鏄悎娉曠殑浼犵湡 + /// + /// + /// + public static bool IsFax(this string s) + { + if (!s.IsNull()) + { + return Regex.IsMatch(s, @"(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)"); + } + return true; + } + + /// + /// 妫鏌ュ瓧绗︿覆鏄惁涓烘湁鏁堢殑int鏁板瓧 + /// + /// + /// + public static bool Isint(this string val) + { + if (IsNull(val)) + return false; + int k; + return int.TryParse(val, out k); + } + + /// + /// 瀛楃涓茶浆鏁板瓧锛屾湭杞崲鎴愬姛杩斿洖0 + /// + /// + /// + public static int ToInt(this string val) + { + + if (IsNull(val)) + return 0; + int k; + return int.TryParse(val, out k) ? k : 0; + } + + + + /// + /// 鍒ゆ柇鏄惁鏄痡son瀛楃涓 + /// + /// + /// + public static bool IsJson(this string str) + { + try + { + if (str.IsNull()) + return false; + + JsonConvert.DeserializeObject(str); + return true; + } + catch + { + return false; + } + } + + /// + /// 妫鏌ュ瓧绗︿覆鏄惁涓烘湁鏁堢殑INT64鏁板瓧 + /// + /// + /// + public static bool IsInt64(this string val) + { + if (IsNull(val)) + return false; + long k; + return long.TryParse(val, out k); + } + + /// + /// 楠岃瘉鏄惁鏄韩浠借瘉 + /// + /// + /// + public static bool IsCardId(this string ID) + { + var r = false; + if (IsNull(ID)) + r = false; + if (ID.Length == 15) + { + + var date = $"19{ID.Substring(6, 2)}-{ID.Substring(8, 2)}-{ID.Substring(10, 2)}"; + DateTime dt; + return DateTime.TryParse(date, out dt); + } + else if (ID.Length == 18) + { + var date = $"{ID.Substring(6, 4)}-{ID.Substring(10, 2)}-{ID.Substring(12, 2)}"; + DateTime dt; + return DateTime.TryParse(date, out dt); + } + else { r = false; } + + return r; + } + + /// + /// 妫鏌ュ瓧绗︿覆鏄惁涓烘湁鏁堢殑double + /// + /// + /// + public static bool IsDecimal(this string val) + { + if (IsNull(val)) + return false; + double d; + return double.TryParse(val, out d); + } + + /// + ///妫娴嬪瓧绗︿覆鏄惁鏄椂闂寸被鍨 + /// + /// + /// + public static bool IsDateTime(this string val) + { + if (IsNull(val)) + return false; + DateTime d; + return DateTime.TryParse(val, out d); + } + /// + /// 瀛楃涓茶浆鏃堕棿 闈炴椂闂磋繑鍥炵┖ + /// + /// + /// + public static DateTime? ToDateTime(this string val) + { + if (val.IsDateTime()) + { + return DateTime.Parse(val); + } + else + { + return null; + } + } + /// + /// 灏嗘椂闂寸被鍨嬪瓧绗﹁浆鏃堕棿鎴 + /// + /// + /// + public static long ToTimestamp(this string Val) + { + var time = Val.ToDateTime(); + return time != null ? ((DateTime)time).ToTimeStamp() : 0; + } + + /// + /// 浠庡乏杈规埅鍙朜涓瓧绗 + /// + /// + /// + public static string GetLeftStr(this string val, int count = 0) + { + if (count > val.Length) + return null; + + return val.Substring(0, count); + } + + /// + ///浠庡彸杈规埅鍙朜涓瓧绗 + /// + /// + /// + /// + public static string GetRightStr(this string val, int count = 0) + { + + if (count > val.Length) + return null; + + return val.Substring(val.Length - count, count); + + } + + + } +} diff --git a/JobAutoCreateFee/quartz_jobs_D7CreateFee.xml b/JobAutoCreateFee/quartz_jobs_D7CreateFee.xml index 1d3cd963..62bd8a88 100644 --- a/JobAutoCreateFee/quartz_jobs_D7CreateFee.xml +++ b/JobAutoCreateFee/quartz_jobs_D7CreateFee.xml @@ -66,8 +66,80 @@ 0 0/5 * * * ? - - + + + JobD7DjyFee + Job + 璁㈤槄澶х畝浜戣处鍗 + JobCreateFee.JobD7DjyFee,JobAutoCreateFee + true + false + + + + ConnectString + Data Source=223.223.95.213;Initial Catalog=DONGSHENG;Persist Security Info=True;User ID=sa;Password=Smart*DATA_80120 + + + + DjyReqFeeUrl + http://www.myshipping.net:8656/Booking/GetSingleBillRecord + + + + DjyReturnFeeUrl + http://www.myshipping.net:8656/Booking/SingleBillFeedback + + + + DjyFeeCompanyCode + 6bb062a3-f1dc-40a0-912b-e51e63cb7930 + + + + RequestTimeout + 30 + + + + ENTEROPERATOR + 6bb062a3-f1dc-40a0-912b-e51e63cb7930 + + + + KFCUSTCODE + 6bb062a3-f1dc-40a0-912b-e51e63cb7930 + + + + KFCUSTKEY + 6bb062a3-f1dc-40a0-912b-e51e63cb7930 + + + + KFUSERID + 6bb062a3-f1dc-40a0-912b-e51e63cb7930 + + + + KFURL + http://www.myshipping.net:8656 + + + + + + + + + triggerJobDjyFee + Job + 璁㈤槄澶х畝浜戣处鍗 + JobD7DjyFee + Job + 0 0 7,12 * * ? + +