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
8f590d2d
Commit
8f590d2d
authored
Dec 18, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bfa47516
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Program.cs
Bailun.DC.BalanceSheet4K/Program.cs
+1
-1
Services.cs
Bailun.DC.BalanceSheet4K/Services.cs
+2
-2
BalanceSheet.cshtml
....DC.Web/Areas/Reports/Views/Finance4K/BalanceSheet.cshtml
+1
-1
No files found.
Bailun.DC.BalanceSheet4K/Program.cs
View file @
8f590d2d
...
@@ -18,7 +18,7 @@ namespace Bailun.DC.BalanceSheet4K
...
@@ -18,7 +18,7 @@ namespace Bailun.DC.BalanceSheet4K
//await builder.RunConsoleAsync();
//await builder.RunConsoleAsync();
var
_service
=
new
Services
();
var
_service
=
new
Services
();
var
day
=
DateTime
.
Parse
(
"2020-11-
30
"
);
var
day
=
DateTime
.
Parse
(
"2020-11-
01
"
);
_service
.
Init
(
day
);
_service
.
Init
(
day
);
}
}
...
...
Bailun.DC.BalanceSheet4K/Services.cs
View file @
8f590d2d
...
@@ -17,7 +17,7 @@ namespace Bailun.DC.BalanceSheet4K
...
@@ -17,7 +17,7 @@ namespace Bailun.DC.BalanceSheet4K
public
void
Init
(
DateTime
day
)
public
void
Init
(
DateTime
day
)
{
{
var
m
=
new
dc_balance_sheet_4k
{
var
m
=
new
dc_balance_sheet_4k
{
day
=
day
,
day
=
day
.
AddMonths
(
1
).
AddDays
(-
1
)
,
cl_count
=
0
,
cl_count
=
0
,
cl_dividends_payable
=
0
,
cl_dividends_payable
=
0
,
cl_oneyear_noncurrent_liabilities
=
0
,
cl_oneyear_noncurrent_liabilities
=
0
,
...
@@ -125,7 +125,7 @@ namespace Bailun.DC.BalanceSheet4K
...
@@ -125,7 +125,7 @@ namespace Bailun.DC.BalanceSheet4K
}
}
cn
.
Execute
(
$"delete from dc_balance_sheet_4k where day='
{
day
.
ToString
(
"yyyy-MM-dd"
)}
' and isedit=0 "
);
cn
.
Execute
(
$"delete from dc_balance_sheet_4k where day='
{
day
.
AddMonths
(
1
).
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd"
)}
' and isedit=0 "
);
var
sql
=
$@"insert dc_balance_sheet_4k (day,cl_count,cl_dividends_payable,cl_oneyear_noncurrent_liabilities,cl_other_liabilities,cl_payable_interest,count_assets,count_liabilities,count_liabilities_and_oe,createtime,fa_count,nca_count,ncl_count,oe_capital_reserve,oe_count,oe_paicl_up_capital,oe_parentcompany_count,accounts_payable,accounts_receivable,advance_received,fixed_assets,fa_interest_receivable,isedit,lastupdatetime,lastupdateuserid,lastupdateusername,ncl_longterm_loan,ncl_other_liabilities,monetary_fund,oe_minority_equity,oe_surplus_public_accumulation,oe_undistributed_profit,other_accounts_payable,other_accounts_receivable,payable_remuneration,short_term_borrow,prepayment,taxes_payable) value ('
{
m
.
day
.
ToString
(
"yyyy-MM-dd"
)}
',
{
m
.
cl_count
}
,
{
m
.
cl_dividends_payable
}
,
{
m
.
cl_oneyear_noncurrent_liabilities
}
,
{
m
.
cl_other_liabilities
}
,
{
m
.
cl_payable_interest
}
,
{
m
.
count_assets
}
,
{
m
.
count_liabilities
}
,
{
m
.
count_liabilities_and_oe
}
,'
{
m
.
createtime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
',
{
m
.
fa_count
}
,
{
m
.
nca_count
}
,
{
m
.
ncl_count
}
,
{
m
.
oe_capital_reserve
}
,
{
m
.
oe_count
}
,
{
m
.
oe_paicl_up_capital
}
,
{
m
.
oe_parentcompany_count
}
,
{
m
.
accounts_payable
}
,
{
m
.
accounts_receivable
}
,
{
m
.
advance_received
}
,
{
m
.
fixed_assets
}
,
{
m
.
fa_interest_receivable
}
,
{
m
.
isedit
}
,'
{
m
.
lastupdatetime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
',
{
m
.
lastupdateuserid
}
,'
{
m
.
lastupdateusername
}
',
{
m
.
ncl_longterm_loan
}
,
{
m
.
ncl_other_liabilities
}
,
{
m
.
monetary_fund
}
,
{
m
.
oe_minority_equity
}
,
{
m
.
oe_surplus_public_accumulation
}
,
{
m
.
oe_undistributed_profit
}
,
{
m
.
other_accounts_payable
}
,
{
m
.
other_accounts_receivable
}
,
{
m
.
payable_remuneration
}
,
{
m
.
short_term_borrow
}
,
{
m
.
prepayment
}
,
{
m
.
taxes_payable
}
)"
;
var
sql
=
$@"insert dc_balance_sheet_4k (day,cl_count,cl_dividends_payable,cl_oneyear_noncurrent_liabilities,cl_other_liabilities,cl_payable_interest,count_assets,count_liabilities,count_liabilities_and_oe,createtime,fa_count,nca_count,ncl_count,oe_capital_reserve,oe_count,oe_paicl_up_capital,oe_parentcompany_count,accounts_payable,accounts_receivable,advance_received,fixed_assets,fa_interest_receivable,isedit,lastupdatetime,lastupdateuserid,lastupdateusername,ncl_longterm_loan,ncl_other_liabilities,monetary_fund,oe_minority_equity,oe_surplus_public_accumulation,oe_undistributed_profit,other_accounts_payable,other_accounts_receivable,payable_remuneration,short_term_borrow,prepayment,taxes_payable) value ('
{
m
.
day
.
ToString
(
"yyyy-MM-dd"
)}
',
{
m
.
cl_count
}
,
{
m
.
cl_dividends_payable
}
,
{
m
.
cl_oneyear_noncurrent_liabilities
}
,
{
m
.
cl_other_liabilities
}
,
{
m
.
cl_payable_interest
}
,
{
m
.
count_assets
}
,
{
m
.
count_liabilities
}
,
{
m
.
count_liabilities_and_oe
}
,'
{
m
.
createtime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
',
{
m
.
fa_count
}
,
{
m
.
nca_count
}
,
{
m
.
ncl_count
}
,
{
m
.
oe_capital_reserve
}
,
{
m
.
oe_count
}
,
{
m
.
oe_paicl_up_capital
}
,
{
m
.
oe_parentcompany_count
}
,
{
m
.
accounts_payable
}
,
{
m
.
accounts_receivable
}
,
{
m
.
advance_received
}
,
{
m
.
fixed_assets
}
,
{
m
.
fa_interest_receivable
}
,
{
m
.
isedit
}
,'
{
m
.
lastupdatetime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
',
{
m
.
lastupdateuserid
}
,'
{
m
.
lastupdateusername
}
',
{
m
.
ncl_longterm_loan
}
,
{
m
.
ncl_other_liabilities
}
,
{
m
.
monetary_fund
}
,
{
m
.
oe_minority_equity
}
,
{
m
.
oe_surplus_public_accumulation
}
,
{
m
.
oe_undistributed_profit
}
,
{
m
.
other_accounts_payable
}
,
{
m
.
other_accounts_receivable
}
,
{
m
.
payable_remuneration
}
,
{
m
.
short_term_borrow
}
,
{
m
.
prepayment
}
,
{
m
.
taxes_payable
}
)"
;
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance4K/BalanceSheet.cshtml
View file @
8f590d2d
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
var m = '<tr><th style="height:40px;text-align: center;line-height: 40px;" rowspan="2">项目</th>';
var m = '<tr><th style="height:40px;text-align: center;line-height: 40px;" rowspan="2">项目</th>';
var m2 = '<tr>';
var m2 = '<tr>';
for (var i in result.data) {
for (var i in result.data) {
m += ('<th style="height:40px;text-align: center;line-height: 40px;" colspan="3">' + result.data[i]['day'] + '</th>');
m += ('<th style="height:40px;text-align: center;line-height: 40px;" colspan="3">' + result.data[i]['day']
.split('T')[0]
+ '</th>');
m2 += '<td>基础数据</td><td>调整数据</td><td>合计数据</td>';
m2 += '<td>基础数据</td><td>调整数据</td><td>合计数据</td>';
...
...
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