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
7da36b04
Commit
7da36b04
authored
Mar 06, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决新账号无法获取菜单的问题
parent
a1a67c5a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
29 deletions
+48
-29
Program.cs
Bailun.DC.DailyPayAndIncoming/Program.cs
+21
-21
Program.cs
Bailun.DC.HappenAmount/Program.cs
+2
-2
UserRoleRelation.cshtml
Bailun.DC.Web/Areas/Users/Views/Home/UserRoleRelation.cshtml
+23
-4
Index.cshtml
Bailun.DC.Web/Pages/Index.cshtml
+2
-2
No files found.
Bailun.DC.DailyPayAndIncoming/Program.cs
View file @
7da36b04
...
...
@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPayAndIncoming
{
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 _services = new Services();
// var start = DateTime.Parse("2020-02-19");
// while (start < DateTime.Now)
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// Console.WriteLine(start);
// _services.Init(start, start.AddDays(1));
// _services.SaveMoneyFlowCount(start, start.AddDays(1));
// start = start.AddDays(1);
// }
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static
void
Main
(
string
[]
args
)
{
var
_services
=
new
Services
();
var
start
=
DateTime
.
Parse
(
"2020-02-19"
);
while
(
start
<
DateTime
.
Now
)
{
Console
.
WriteLine
(
start
);
_services
.
Init
(
start
,
start
.
AddDays
(
1
));
_services
.
SaveMoneyFlowCount
(
start
,
start
.
AddDays
(
1
));
start
=
start
.
AddDays
(
1
);
}
}
}
}
Bailun.DC.HappenAmount/Program.cs
View file @
7da36b04
...
...
@@ -22,7 +22,7 @@ namespace Bailun.DC.HappenAmount
//static void Main(string[] args)
//{
// var start = DateTime.Parse("2020-02-1
4
");
// var start = DateTime.Parse("2020-02-1
5
");
// while (start.AddDays(1) < DateTime.Now)
// {
// new Services().Init(start, start.AddDays(1));
...
...
@@ -30,7 +30,7 @@ namespace Bailun.DC.HappenAmount
// start = start.AddDays(1);
// }
//
//
new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null);
// new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null);
//}
}
...
...
Bailun.DC.Web/Areas/Users/Views/Home/UserRoleRelation.cshtml
View file @
7da36b04
...
...
@@ -8,7 +8,7 @@
<div class="row">
<div class="col-sm-12">
<div class="row" style="min-height:600px;">
<div class="col-sm-
4
">
<div class="col-sm-
3
">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3>角色<span style="font-size:13px;color:#aaa;">(请选择角色)</span></h3>
...
...
@@ -21,7 +21,7 @@
</div>
</div>
</div>
<div class="col-sm-
4
" style="padding-left:0px;">
<div class="col-sm-
3
" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">归属角色的用户</h3>
...
...
@@ -44,7 +44,7 @@
</div>
</div>
</div>
<div class="col-sm-
4
" style="padding-left:0px;">
<div class="col-sm-
3
" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">已授权菜单<span style="font-size:13px;color:#aaa;">(已勾选的)</span></h3>
...
...
@@ -56,7 +56,26 @@
</div>
</div>
</div>
</div>
<div class="col-sm-3" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">已授权导出权限<span style="font-size:13px;color:#aaa;">(已勾选的)</span></h3>
<div id="menu_contain">
<input id="chk_export_all" name="chk_export_all" type="checkbox" onclick="Chk_Export_All()" /><label for="chk_export_all" onclick="Chk_Export_All()">全选</label>
<div id="ztree_export" class="ztree" style="max-height: 800px;overflow: auto;">
<div style="border-bottom:solid 1px #eee;height:30px;line-height:30px;">
<input type="checkbox" />
<label>订单明细</label>
</div>
<div style="border-bottom:solid 1px #eee;height:30px;line-height:30px;">
<input type="checkbox" />
<label>订单明细</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="margin-bottom:20px;">
...
...
Bailun.DC.Web/Pages/Index.cshtml
View file @
7da36b04
...
...
@@ -29,8 +29,8 @@
<body
class=
"fixed-sidebar full-height-layout gray-bg"
style=
"overflow:hidden"
>
<script
type=
"text/javascript"
>
//
login_localhost();
login
();
login_localhost
();
//
login();
window
.
location
=
"@Url.Content("
~
/Home/
Main
")"
;
</script>
</body>
...
...
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