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
32d07ce7
Commit
32d07ce7
authored
Mar 29, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产负债表所有明细增加导出明细功能
parent
b850f9a1
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
507 additions
and
62 deletions
+507
-62
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+355
-1
BankBalance.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/BankBalance.cshtml
+13
-0
CopeWith.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/CopeWith.cshtml
+13
-0
CopeWithLogistics.cshtml
....Web/Areas/Reports/Views/Finance/CopeWithLogistics.cshtml
+14
-0
InventoryBalance.cshtml
...C.Web/Areas/Reports/Views/Finance/InventoryBalance.cshtml
+14
-0
OtherPayable.cshtml
...un.DC.Web/Areas/Reports/Views/Finance/OtherPayable.cshtml
+14
-30
OtherReceivable.cshtml
...DC.Web/Areas/Reports/Views/Finance/OtherReceivable.cshtml
+14
-31
PlatformBalance.cshtml
...DC.Web/Areas/Reports/Views/Finance/PlatformBalance.cshtml
+14
-0
PrePay.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/PrePay.cshtml
+14
-0
PrePayLogistics.cshtml
...DC.Web/Areas/Reports/Views/Finance/PrePayLogistics.cshtml
+14
-0
SemiFinishStock.cshtml
...DC.Web/Areas/Reports/Views/Finance/SemiFinishStock.cshtml
+14
-0
WithDrawOnWay.cshtml
...n.DC.Web/Areas/Reports/Views/Finance/WithDrawOnWay.cshtml
+14
-0
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
32d07ce7
...
...
@@ -655,6 +655,41 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
});
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
/// <summary>
/// 导出提现在途明细
/// </summary>
/// <param name="date">统计日期</param>
/// <param name="paycompanyid"></param>
/// <returns></returns>
public
ActionResult
WithDrawOnWayExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
obj
=
_services
.
ListWithDrawOnWay
(
request
,
date
,
paycompanyid
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"销售平台名称"
,
"支付平台名称"
,
"银行帐号"
,
"银行名称"
,
"持卡人"
,
"帐号余额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
sale_platform
+
"|"
+
item
.
platform
+
"|"
+
item
.
pay_account
+
"|"
+
item
.
bank_name
+
"|"
+
item
.
bank_card_user
+
"|"
+
item
.
amount_rmb
.
ToString
(
"N2"
)
+
"|"
+
item
.
statistical_time
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
);
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 平台提现在途明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
...
...
@@ -703,6 +738,40 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
/// <summary>
/// 导出第三方帐号余额明细
/// </summary>
/// <param name="date">统计日期</param>
/// <param name="paycompanyid"></param>
/// <returns></returns>
public
ActionResult
PlatformBalanceExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
(){
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListPlatFormBalance
(
request
,
date
,
paycompanyid
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"平台名称"
,
"帐号名称"
,
"总余额(原币)"
,
"可用余额(原币)"
,
"冻结余额(原币)"
,
"币种"
,
"总余额(人民币)"
,
"可用余额(人民币)"
,
"冻结余额(人民币)"
,
"放款日期"
,
"统计日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
platformname
+
"|"
+
item
.
account
+
"|"
+
item
.
amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
userable_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
freeze_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
currency
+
"|"
+
item
.
amount_rmb
.
ToString
(
"N2"
)+
"|"
+
item
.
userable_amount_rmb
.
ToString
(
"N2"
)+
"|"
+
item
.
freeze_amount_rmb
.
ToString
(
"N2"
)+
"|"
+
item
.
puttime
.
ToString
(
"yyyy-MM-dd"
)+
"|"
+
item
.
day
.
ToString
(
"yyyy-MM-dd"
)
);
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 第三方帐号余额明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 银行余额明细
/// </summary>
/// <param name="date"></param>
...
...
@@ -735,6 +804,35 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
BankBalanceExport
(
DateTime
date
,
int
paycompanyid
)
{
int
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
obj
=
_services
.
ListBankBalance
(
request
,
date
,
paycompanyid
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"银行名称"
,
"银行卡号"
,
"持卡人"
,
"帐号余额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
bank_name
+
"|"
+
item
.
bank_card
+
"|"
+
item
.
bank_card_user
+
"|"
+
item
.
balance_rmb
.
ToString
(
"N2"
)
+
"|"
+
item
.
statistical_time
.
ToString
(
"yyyy-MM-dd"
)
);
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 银行余额明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 获取存货FBA和非FBA的分别库存数
/// </summary>
...
...
@@ -766,6 +864,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
View
();
}
/// <summary>
/// 库存在库明细
/// </summary>
/// <param name="request"></param>
/// <param name="date"></param>
/// <param name="paycompanyid"></param>
/// <param name="t"></param>
/// <returns></returns>
public
string
InventoryBalanceJson
(
BtTableParameter
request
,
DateTime
date
,
int
paycompanyid
,
int
t
)
{
var
total
=
0
;
...
...
@@ -784,6 +890,57 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
InventoryBalanceExport
(
DateTime
date
,
int
paycompanyid
,
int
t
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListInventoryBalance
(
request
,
date
,
paycompanyid
,
t
,
ref
total
);
//var list = obj.Select(a => new {
// company_name = paycompany != null ? paycompany.company_name : "",
// warehouse_name = a.warehouse_name,
// balance_rmb = a.balance_rmb.ToString("N2"),
// statistical_time = a.statistical_time.ToString("yyyy-MM-dd")
//});
var
colNames
=
new
List
<
string
>
{
"仓库名称"
,
"存货余额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
warehouse_name
+
"|"
+
item
.
balance_rmb
.
ToString
(
"N2"
)
+
"|"
+
item
.
statistical_time
.
ToString
(
"yyyy-MM-dd"
));
}
var
typename
=
""
;
if
(
t
==
0
)
//FBA在库明细
{
typename
=
"FBA仓在库明细"
;
}
else
if
(
t
==
1
)
//非FBA在库明细
{
typename
=
"非FBA仓在库明细"
;
}
else
if
(
t
==
3
)
//FBA在途明细
{
typename
=
"FBA仓在途明细"
;
}
else
if
(
t
==
4
)
//非FBA在途明细
{
typename
=
"非FBA仓在途明细"
;
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
typename
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 半成品库存明细
/// </summary>
...
...
@@ -824,6 +981,37 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
SemiFinishStockExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListSemiFinishDailyStock
(
request
,
date
,
paycompanyid
,
ref
total
);
//var list = obj.Select(a => new {
// a.warehouse_name,
// a.sku_code,
// a.stock_quantity,
// inventory_amount = a.inventory_amount.ToString("N2"),
// update_time = a.update_time.ToString("yyyy-MM-dd HH:mm:ss")
//});
var
colNames
=
new
List
<
string
>
{
"仓库名称"
,
"Sku编码"
,
"库存数量"
,
"库存金额"
,
"更新日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
warehouse_name
+
"|"
+
item
.
sku_code
+
"|"
+
item
.
stock_quantity
+
"|"
+
item
.
inventory_amount
.
ToString
(
"N2"
)+
"|"
+
item
.
update_time
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
"半成品在库明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 短期借款明细
/// </summary>
...
...
@@ -906,6 +1094,36 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
PrePayExport
(
DateTime
date
,
int
paycompanyid
,
int
?
finish
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
obj
=
_services
.
ListPrePay
(
request
,
date
,
paycompanyid
,
1
,
finish
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"供应商名称"
,
"是否成品"
,
"公司主体"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
supplier_name
+
"|"
+
(
item
.
is_finish
==
0
?
"半成品"
:
"成品"
)
+
"|"
+
item
.
pay_company_name
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
((
item
.
putting_amount
+
item
.
express_amount
+
item
.
adjust_amount
-
item
.
return_amount
-
item
.
return_express
).
ToString
(
"N2"
))
+
"|"
+
(
item
.
pay_amount
-
item
.
receive_amount
).
ToString
(
"N2"
)
+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)+
"|"
+
item
.
day
.
Value
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+((
finish
??
0
)==
1
?
"成品"
:
"半成品"
)
+
" 商品供应商预付款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 物流供应商 预付款明细
/// </summary>
...
...
@@ -940,6 +1158,32 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
PrePayLogisticsExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
obj
=
_services
.
ListPrePayLogistics
(
request
,
date
,
paycompanyid
,
1
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"供应商名称"
,
"公司主体"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
supplier_name
+
"|"
+
item
.
pay_company_name
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
borrow_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
loan_amount
.
ToString
(
"N2"
)+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)+
"|"
+
item
.
day
.
Value
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 物流供应商预付款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 应付款统计
/// </summary>
...
...
@@ -993,6 +1237,33 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
CopeWithExport
(
DateTime
date
,
int
paycompanyid
,
int
?
finish
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListPrePay
(
request
,
date
,
paycompanyid
,
0
,
finish
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"供应商名称"
,
"是否成品"
,
"公司主体"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"统计日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
supplier_name
+
"|"
+
(
item
.
is_finish
==
0
?
"半成品"
:
"成品"
)
+
"|"
+
item
.
pay_company_name
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
((
item
.
putting_amount
+
item
.
express_amount
+
item
.
adjust_amount
-
item
.
return_amount
-
item
.
return_express
).
ToString
(
"N2"
))
+
"|"
+
(
item
.
pay_amount
-
item
.
receive_amount
).
ToString
(
"N2"
)
+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
day
.
Value
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
((
finish
??
0
)
==
1
?
"成品"
:
"半成品"
)
+
" 商品供应商应付款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 物流供应商应付款明细
/// </summary>
...
...
@@ -1018,7 +1289,6 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListPrePayLogistics
(
request
,
date
,
paycompanyid
,
0
,
ref
total
);
...
...
@@ -1034,6 +1304,30 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
CopeWithLogisticsExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListPrePayLogistics
(
request
,
date
,
paycompanyid
,
0
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"供应商名称"
,
"公司主体"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
supplier_name
+
"|"
+
item
.
pay_company_name
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
borrow_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
loan_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
day
.
Value
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 物流供应商应付款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 其他应收款明细
...
...
@@ -1070,6 +1364,41 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
OtherReceivableExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListOtherCost
(
request
,
date
,
paycompanyid
,
1
,
ref
total
);
//var list = obj.Select(a => new {
// company_name = (paycompany == null ? "" : paycompany.company_name),
// a.borrower_or_payer,
// start_amount = a.start_amount.ToString("N2"),
// debit_amount = a.debit_amount.ToString("N2"),
// credit_amount = a.credit_amount.ToString("N2"),
// end_amount = a.end_amount.ToString("N2"),
// day = a.day.ToString("yyyy-MM-dd")
//});
var
colNames
=
new
List
<
string
>
{
"借款方"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"统计日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
borrower_or_payer
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
debit_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
credit_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
day
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 其他应收款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 其他应付款明细
/// </summary>
...
...
@@ -1104,6 +1433,31 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
JsonConvert
.
SerializeObject
(
new
{
total
=
total
,
rows
=
list
});
}
public
ActionResult
OtherPayableExport
(
DateTime
date
,
int
paycompanyid
)
{
var
total
=
0
;
var
_services
=
new
Services
.
FinanceReportServices
();
var
request
=
new
BtTableParameter
()
{
offset
=
0
,
limit
=
100000
};
var
paycompany
=
_services
.
GetPayCompany
(
paycompanyid
);
var
obj
=
_services
.
ListOtherCost
(
request
,
date
,
paycompanyid
,
2
,
ref
total
);
var
colNames
=
new
List
<
string
>
{
"还款方"
,
"期初金额"
,
"借方发生额"
,
"贷方发生额"
,
"期末金额"
,
"日期"
};
var
list
=
new
List
<
string
>();
foreach
(
var
item
in
obj
)
{
list
.
Add
(
item
.
borrower_or_payer
+
"|"
+
item
.
start_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
debit_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
credit_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
end_amount
.
ToString
(
"N2"
)
+
"|"
+
item
.
day
.
ToString
(
"yyyy-MM-dd"
));
}
var
filename
=
date
.
ToString
(
"yyyy-MM-dd"
)
+
" 其他应付款明细"
+
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
);
var
filepath
=
_hostingEnvironment
.
WebRootPath
+
"\\Files\\Report\\"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"\\"
;
ToCSV
(
list
,
colNames
,
filename
,
filepath
);
return
File
(
"~/Files/Report/"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)
+
"/"
+
filename
+
".csv"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
,
filename
+
".csv"
);
}
/// <summary>
/// 固定资产一级明细
/// </summary>
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/BankBalance.cshtml
View file @
32d07ce7
...
...
@@ -36,6 +36,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -70,6 +79,10 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/BankBalanceExport?date=" + ViewBag.date+ "&paycompanyid="+ViewBag.paycompanyid)', "_blank");
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/CopeWith.cshtml
View file @
32d07ce7
...
...
@@ -41,6 +41,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -95,6 +104,10 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/CopeWithExport?finish="+ViewBag.finish+"&date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/CopeWithLogistics.cshtml
View file @
32d07ce7
...
...
@@ -7,6 +7,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -58,6 +67,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/CopeWithLogisticsExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/InventoryBalance.cshtml
View file @
32d07ce7
...
...
@@ -33,6 +33,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -65,6 +74,10 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/InventoryBalanceExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid+"&t="+ViewBag.t)', "_blank");
}
</script>
}
\ No newline at end of file
Bailun.DC.Web/Areas/Reports/Views/Finance/OtherPayable.cshtml
View file @
32d07ce7
...
...
@@ -4,39 +4,18 @@
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
@*<div class="ibox-content m-b-sm border-bottom">
<table id="tb" class="table table-hover table-bordered" style="width:100%;">
<tr>
<td>付款主体</td>
<td>还款方</td>
<td>期初金额</td>
<td>借方发生额</td>
<td>贷方发生额</td>
<td>期末金额</td>
<td>统计日期</td>
</tr>
@if (ViewBag.list.Count > 0)
{
foreach (var item in ViewBag.list)
{
<tr>
<td>@ViewBag.PayCompanyName</td>
<td>@item.borrower_or_payer</td>
<td>@item.start_amount.ToString("###,###.##")</td>
<td>@item.debit_amount.ToString("###,###.##")</td>
<td>@item.credit_amount.ToString("###,###.##")</td>
<td>@item.end_amount.ToString("###,###.##")</td>
<td>@item.day.ToString("yyyy-MM-dd")</td>
</tr>
}
}
</table>
</div>*@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -84,6 +63,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/OtherPayableExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/OtherReceivable.cshtml
View file @
32d07ce7
...
...
@@ -4,40 +4,18 @@
Layout = "~/Pages/Shared/_MainLayout.cshtml";
}
@*<div class="ibox-content m-b-sm border-bottom">
<table id="tb" class="table table-hover table-bordered" style="width:100%;">
<thead>
<tr>
<th>付款主体</th>
<th>借款方</th>
<th>期初金额</th>
<th>借方发生额</th>
<th>贷方发生额</th>
<th>期末金额</th>
<th>统计日期</th>
</tr>
</thead>
@if (ViewBag.list.Count > 0)
{
foreach (var item in ViewBag.list)
{
<tr>
<td>@ViewBag.PayCompanyName</td>
<td>@item.borrower_or_payer</td>
<td>@item.start_amount.ToString("###,###.##")</td>
<td>@item.debit_amount.ToString("###,###.##")</td>
<td>@item.credit_amount.ToString("###,###.##")</td>
<td>@item.end_amount.ToString("###,###.##")</td>
<td>@item.day.ToString("yyyy-MM-dd")</td>
</tr>
}
}
</table>
</div>*@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -87,6 +65,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/OtherReceivableExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/PlatformBalance.cshtml
View file @
32d07ce7
...
...
@@ -48,6 +48,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -89,6 +98,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/PlatformBalanceExport?date=" + ViewBag.date+ "&paycompanyid="+ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/PrePay.cshtml
View file @
32d07ce7
...
...
@@ -42,6 +42,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -94,6 +103,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/PrePayExport?finish=" + ViewBag.finish + "&date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
Bailun.DC.Web/Areas/Reports/Views/Finance/PrePayLogistics.cshtml
View file @
32d07ce7
...
...
@@ -7,6 +7,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -58,6 +67,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/PrePayLogisticsExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/SemiFinishStock.cshtml
View file @
32d07ce7
...
...
@@ -7,6 +7,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -40,6 +49,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/SemiFinishStockExport?date=" + ViewBag.date+ "&paycompanyid=" + ViewBag.paycompanyid)', "_blank");
}
</script>
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/WithDrawOnWay.cshtml
View file @
32d07ce7
...
...
@@ -40,6 +40,15 @@
<div class="row">
<div class="col-sm-12">
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<button type="button" class="btn btn-primary" onclick="exportFile();">导出</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" style="table-layout:fixed;"></table>
</div>
</div>
...
...
@@ -79,6 +88,11 @@
tb.bootstrapTable('refresh', { url: url });
}
}
function exportFile() {
window.open('@Url.Content("~/Reports/Finance/WithDrawOnWayExport?date=" + ViewBag.date+ "&paycompanyid="+ViewBag.companyid)',"_blank");
}
</script>
}
...
...
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