Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
bc5a00af
Commit
bc5a00af
authored
Nov 01, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决月销售利润报表
parent
0b924a27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
Program.cs
Bailun.DC.DailyPurchaseSellStock/Program.cs
+20
-20
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+5
-5
No files found.
Bailun.DC.DailyPurchaseSellStock/Program.cs
View file @
bc5a00af
...
@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPurchaseSellStock
...
@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPurchaseSellStock
{
{
class
Program
class
Program
{
{
static
async
Task
Main
(
string
[]
args
)
//static async Task Main(string[] args)
{
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
Services
>();
});
await
builder
.
RunConsoleAsync
();
}
//static void Main(string[] args)
//{
//{
// var _services = new Services();
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// var start = DateTime.Parse("2019-10-29");
// while (start.AddDays(1) < DateTime.Now)
// {
// {
//
Console.WriteLine(start
);
//
services.AddHostedService<Services>(
);
//
_services.Init(start
);
//
}
);
// start = start.AddDays(1);
//
}
//
await builder.RunConsoleAsync();
//}
//}
static
void
Main
(
string
[]
args
)
{
var
_services
=
new
Services
();
var
start
=
DateTime
.
Parse
(
"2019-10-30"
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
Console
.
WriteLine
(
start
);
_services
.
Init
(
start
);
start
=
start
.
AddDays
(
1
);
}
}
}
}
}
}
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
bc5a00af
...
@@ -5543,15 +5543,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -5543,15 +5543,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
{
amount_sale
=
a
.
amount_sale
.
ToString
(
"N2"
),
amount_sale
=
a
.
amount_sale
.
ToString
(
"N2"
),
cost_sale
=
(
a
.
cost_sale
+
a
.
cost_sale_
).
ToString
(
"N2"
),
cost_sale
=
(
a
.
cost_sale
+
a
.
cost_sale_
).
ToString
(
"N2"
),
cost_sale_
=
a
.
cost_sale_
.
ToString
(
"N2"
)
,
a
.
cost_sale_
,
pt_count
=
a
.
pt_count
.
ToString
(
"N2"
),
//(a.pt_platformfee+a.pt_ebay_postingfee+a.pt_paypal_fee+a.pt_platform_logistics_fee+a.pt_platform_ad_subscribe_fee + a.pt_platform_storage_fee+a.pt_refund_amount).ToString("N2"),
pt_count
=
a
.
pt_count
.
ToString
(
"N2"
),
//(a.pt_platformfee+a.pt_ebay_postingfee+a.pt_paypal_fee+a.pt_platform_logistics_fee+a.pt_platform_ad_subscribe_fee + a.pt_platform_storage_fee+a.pt_refund_amount).ToString("N2"),
pt_platformfee
=
a
.
pt_platformfee
.
ToString
(
"N2"
),
pt_platformfee
=
a
.
pt_platformfee
.
ToString
(
"N2"
),
pt_ebay_postingfee
=
a
.
pt_ebay_postingfee
.
ToString
(
"N2"
),
pt_ebay_postingfee
=
a
.
pt_ebay_postingfee
.
ToString
(
"N2"
),
pt_paypal_fee
=
a
.
pt_paypal_fee
.
ToString
(
"N2"
),
pt_paypal_fee
=
a
.
pt_paypal_fee
.
ToString
(
"N2"
),
pt_platform_logistics_fee
=
(
a
.
pt_platform_logistics_fee
+
a
.
pt_platform_logistics_fee_
).
ToString
(
"N2"
),
pt_platform_logistics_fee
=
(
a
.
pt_platform_logistics_fee
+
a
.
pt_platform_logistics_fee_
).
ToString
(
"N2"
),
pt_platform_logistics_fee_
=
a
.
pt_platform_logistics_fee_
.
ToString
(
"N2"
)
,
a
.
pt_platform_logistics_fee_
,
pt_platform_ad_subscribe_fee
=
(
a
.
pt_platform_ad_subscribe_fee
+
a
.
pt_platform_ad_subscribe_fee_
).
ToString
(
"N2"
),
pt_platform_ad_subscribe_fee
=
(
a
.
pt_platform_ad_subscribe_fee
+
a
.
pt_platform_ad_subscribe_fee_
).
ToString
(
"N2"
),
pt_platform_ad_subscribe_fee_
=
a
.
pt_platform_ad_subscribe_fee_
.
ToString
(
"N2"
)
,
a
.
pt_platform_ad_subscribe_fee_
,
pt_platform_storage_fee
=
a
.
pt_platform_storage_fee
.
ToString
(
"N2"
),
pt_platform_storage_fee
=
a
.
pt_platform_storage_fee
.
ToString
(
"N2"
),
pt_refund_amount
=
a
.
pt_refund_amount
.
ToString
(
"N2"
),
pt_refund_amount
=
a
.
pt_refund_amount
.
ToString
(
"N2"
),
pt_incoming
=
a
.
pt_incoming
.
ToString
(
"N2"
),
pt_incoming
=
a
.
pt_incoming
.
ToString
(
"N2"
),
...
@@ -5559,9 +5559,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -5559,9 +5559,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
ls_count
=
a
.
ls_count
.
ToString
(
"N2"
),
ls_count
=
a
.
ls_count
.
ToString
(
"N2"
),
ls_head_cost
=
(
a
.
ls_head_cost
+
a
.
ls_head_cost_
).
ToString
(
"N2"
),
ls_head_cost
=
(
a
.
ls_head_cost
+
a
.
ls_head_cost_
).
ToString
(
"N2"
),
ls_head_cost_
=
a
.
ls_head_cost_
.
ToString
(
"N2"
)
,
a
.
ls_head_cost_
,
ls_tail_cost
=
(
a
.
ls_tail_cost
+
a
.
ls_tail_cost_
).
ToString
(
"N2"
),
ls_tail_cost
=
(
a
.
ls_tail_cost
+
a
.
ls_tail_cost_
).
ToString
(
"N2"
),
ls_tail_cost_
=
a
.
ls_tail_cost_
.
ToString
(
"N2"
)
,
a
.
ls_tail_cost_
,
ls_oversea_storage
=
a
.
ls_oversea_storage
.
ToString
(
"N2"
),
ls_oversea_storage
=
a
.
ls_oversea_storage
.
ToString
(
"N2"
),
ls_platform_operation_fee
=
a
.
ls_platform_operation_fee
.
ToString
(
"N2"
),
ls_platform_operation_fee
=
a
.
ls_platform_operation_fee
.
ToString
(
"N2"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment