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
a2bf200d
Commit
a2bf200d
authored
Mar 20, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每日发生额 管理成本去掉物流费用
parent
6ca2c165
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
29 deletions
+29
-29
Program.cs
Bailun.DC.HappenAmount/Program.cs
+20
-20
Services.cs
Bailun.DC.HappenAmount/Services.cs
+7
-7
ListPayAdminCostCount.cshtml
.../Areas/Reports/Views/Finance/ListPayAdminCostCount.cshtml
+2
-2
No files found.
Bailun.DC.HappenAmount/Program.cs
View file @
a2bf200d
...
...
@@ -9,29 +9,29 @@ namespace Bailun.DC.HappenAmount
{
class
Program
{
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)
//static async Task Main(string[] args)
//{
//
var start = DateTime.Parse("2020-03-01"
);
//
while (start.AddDays(1) < DateTime.Now)
//
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
);
//
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// new Services().Init(start, start.AddDays(1));
// //new Bailun.DC.Services.FinanceReportServices().AddLogisticsWaitPay(start, 0);
// start = start.AddDays(1);
// }
// new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null);
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static
void
Main
(
string
[]
args
)
{
var
start
=
DateTime
.
Parse
(
"2020-01-01"
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
new
Services
().
Init
(
start
,
start
.
AddDays
(
1
));
//new Bailun.DC.Services.FinanceReportServices().AddLogisticsWaitPay(start, 0);
start
=
start
.
AddDays
(
1
);
}
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
UpdateLogisticsWaitPay
(
start
,
0
,
"admin"
,
null
);
}
}
}
Bailun.DC.HappenAmount/Services.cs
View file @
a2bf200d
...
...
@@ -106,7 +106,7 @@ namespace Bailun.DC.HappenAmount
url
+=
"&startDate="
+
start
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
"&endDate="
+
start
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
cwurl
+=
"BeginRepayTime="
+
start
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
"&EndRepayTime="
+
end
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
lgurl
+=
"startDate="
+
start
.
ToString
(
"yyyy-MM-dd"
)
+
"&endDate="
+
end
.
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd"
);
//
lgurl += "startDate=" + start.ToString("yyyy-MM-dd") + "&endDate=" + end.AddDays(-1).ToString("yyyy-MM-dd");
//利息支出
var
listInterest
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
ListInterestExpense
(
cwurl
);
...
...
@@ -114,7 +114,7 @@ namespace Bailun.DC.HappenAmount
//管理成本
var
list
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
ListOtherCost
(
url
);
//物流费支出
var
listlg
=
ListLogisticFee
(
lgurl
);
//
var listlg = ListLogisticFee(lgurl);
...
...
@@ -142,11 +142,11 @@ namespace Bailun.DC.HappenAmount
}
//支出 物流费支出
if
(
listlg
.
Count
()
>
0
)
{
m
.
ac_amount_pay
+=
listlg
.
Sum
(
a
=>
a
.
amountRmb
);
m
.
ac_amount_happen
+=
listlg
.
Sum
(
a
=>
a
.
amountRmb
);
}
//
if (listlg.Count() > 0)
//
{
//
m.ac_amount_pay += listlg.Sum(a => a.amountRmb);
//
m.ac_amount_happen += listlg.Sum(a => a.amountRmb);
//
}
#
endregion
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/ListPayAdminCostCount.cshtml
View file @
a2bf200d
...
...
@@ -26,12 +26,12 @@
<td>@(ViewBag.InterestCount)</td>
<td><a class="btn btn-xs btn-primary" onclick="showdetail('@(ViewBag.start+"-"+ViewBag.end) 利息支出','@Url.Content("~/Reports/Finance/ListPayAdminCostInterest?start="+ViewBag.start+"&end="+ViewBag.end)')">查看明细</a></td>
</tr>
<tr>
@*
<tr>
<td>3</td>
<td>物流支出</td>
<td>@(ViewBag.LGCount)</td>
<td><a class="btn btn-xs btn-primary" onclick="showdetail('@(ViewBag.start+"-"+ViewBag.end) 物流支出','@Url.Content("~/Reports/Finance/ListPayLogistic?start="+ViewBag.start+"&end="+ViewBag.end)')">查看明细</a></td>
</tr>
</tr>
*@
</table>
</div>
...
...
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