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
73276365
Commit
73276365
authored
Jul 30, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善财务会计流水支付宝的数据显示
parent
d7b2ee85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
4 deletions
+65
-4
PlatformOrderController.cs
...reas/DataWareHouse/Controllers/PlatformOrderController.cs
+30
-2
FinanceAccount_OrderBilling.cshtml
...se/Views/PlatformOrder/FinanceAccount_OrderBilling.cshtml
+34
-2
OrderBillings.cshtml
...as/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
+1
-0
No files found.
Bailun.DC.Web/Areas/DataWareHouse/Controllers/PlatformOrderController.cs
View file @
73276365
...
@@ -463,7 +463,7 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
...
@@ -463,7 +463,7 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
{
{
company
=
"香港百伦"
,
company
=
"香港百伦"
,
a
.
platform
,
a
.
platform
,
a
.
website
,
website
=
a
.
website
??
"global"
,
a
.
orderno
,
a
.
orderno
,
a
.
datatime
,
a
.
datatime
,
a
.
amountval
,
a
.
amountval
,
...
@@ -510,7 +510,7 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
...
@@ -510,7 +510,7 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
foreach
(
var
item
in
obj
)
foreach
(
var
item
in
obj
)
{
{
list
.
Add
(
"公司主体|"
+
item
.
platform
+
"|"
+
item
.
website
+
"|"
+(
item
.
datatime
.
HasValue
?
item
.
datatime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
):
""
)+
"|"
+
item
.
orderno
+
"|"
+(
item
.
fee_config
?.
feetype
??
""
)
+
"|"
+(
item
.
fee_config
?.
financecategory
??
""
)+
"|"
+(
item
.
fee_config
?.
datacenter_col
??
""
)+
"|"
+(
item
.
fee_config
?.
subjectcode
??
""
)+
"|"
+(
item
.
fee_config
?.
projectcode
??
""
)+
"|"
+
item
.
fee_config
.
currency
+
"|"
+(
item
.
amountval
)+
"|"
+(
item
.
exchange_rate
.
HasValue
?
item
.
exchange_rate
.
Value
+
""
:
""
)+
"|"
+(
item
.
amountval_rmb
.
HasValue
?
item
.
amountval_rmb
.
Value
+
""
:
""
)+
"|"
+
item
.
month
);
list
.
Add
(
"公司主体|"
+
item
.
platform
+
"|"
+
(
item
.
website
??
"global"
)
+
"|"
+(
item
.
datatime
.
HasValue
?
item
.
datatime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
):
""
)+
"|"
+
item
.
orderno
+
"|"
+(
item
.
fee_config
?.
feetype
??
""
)
+
"|"
+(
item
.
fee_config
?.
financecategory
??
""
)+
"|"
+(
item
.
fee_config
?.
datacenter_col
??
""
)+
"|"
+(
item
.
fee_config
?.
subjectcode
??
""
)+
"|"
+(
item
.
fee_config
?.
projectcode
??
""
)+
"|"
+
item
.
fee_config
.
currency
+
"|"
+(
item
.
amountval
)+
"|"
+(
item
.
exchange_rate
.
HasValue
?
item
.
exchange_rate
.
Value
+
""
:
""
)+
"|"
+(
item
.
amountval_rmb
.
HasValue
?
item
.
amountval_rmb
.
Value
+
""
:
""
)+
"|"
+
item
.
month
);
}
}
var
guid
=
Guid
.
NewGuid
().
ToString
();
var
guid
=
Guid
.
NewGuid
().
ToString
();
...
@@ -529,6 +529,34 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
...
@@ -529,6 +529,34 @@ namespace Bailun.DC.Web.Areas.DataWareHouse.Controllers
}
}
/// <summary>
/// 获取平台的站点
/// </summary>
/// <param name="platform"></param>
/// <returns></returns>
[
HttpPost
]
public
JsonResult
ListWebsite
(
string
platform
)
{
if
(
string
.
IsNullOrEmpty
(
platform
))
{
return
Json
(
new
{
success
=
false
,
msg
=
"请选择平台"
,
});
}
var
listFeeCol
=
new
Services
.
DataWareHouse
.
PlatformOrderFeeServices
().
ListOrderFeeCol
();
var
listWebsite
=
listFeeCol
.
Where
(
a
=>
a
.
platform
==
platform
).
Where
(
a
=>
!
string
.
IsNullOrEmpty
(
a
.
website
)).
ToList
();
return
Json
(
new
{
success
=
true
,
data
=
listWebsite
.
Select
(
a
=>
a
.
website
).
Distinct
().
ToList
(),
msg
=
""
,
});
}
#
endregion
#
endregion
#
region
私有方法
#
region
私有方法
...
...
Bailun.DC.Web/Areas/DataWareHouse/Views/PlatformOrder/FinanceAccount_OrderBilling.cshtml
View file @
73276365
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div class="form-inline" style="line-height:40px;">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<div class="form-group">
<label>平台:</label>
<label>平台:</label>
<select id="platform" name="platform" class="form-control" style="width:1
2
0px;">
<select id="platform" name="platform" class="form-control" style="width:1
5
0px;">
@if (ViewBag.platform.Count > 0)
@if (ViewBag.platform.Count > 0)
{
{
foreach (var item in ViewBag.platform)
foreach (var item in ViewBag.platform)
...
@@ -107,6 +107,11 @@
...
@@ -107,6 +107,11 @@
$("#roletable").attr("data-height", (height - 170));
$("#roletable").attr("data-height", (height - 170));
list();
list();
$('#platform').change(function () {
//获取平台站点
getWebsite();
})
})
})
function list() {
function list() {
...
@@ -117,7 +122,11 @@
...
@@ -117,7 +122,11 @@
{
{
field: 'datatime', title: '账单时间', width: '160'
field: 'datatime', title: '账单时间', width: '160'
},
},
{ field: 'orderno', title: '单号', width: '160' },
{
field: 'orderno', title: '单号', width: '180', formatter: function (idx, data) {
return '<div class="mules" title="' + data.orderno + '">' + data.orderno + '</div>';
}
},
{ field: 'feetype', title: '费用字段说明', width: '160' },
{ field: 'feetype', title: '费用字段说明', width: '160' },
{ field: 'financecategory', title: '财务分类归集说明', width: '180' },
{ field: 'financecategory', title: '财务分类归集说明', width: '180' },
{ field: 'datacenter_col', title: '数据中心费用类型', width: '180'},
{ field: 'datacenter_col', title: '数据中心费用类型', width: '180'},
...
@@ -170,5 +179,28 @@
...
@@ -170,5 +179,28 @@
}
}
}
}
function getWebsite() {
$.submit({
url: '@Url.Content("~/DataWareHouse/PlatformOrder/ListWebsite?platform=")' + $('#platform').val(),
paramData: '',
type:'POST',
func: function (result) {
$('#website').html('<option value="">请选择站点</option>');
if (result.success) {
if (result.data.length > 0) {
for (var i in result.data) {
$('#website').append('<option value="' + result.data[i] + '">' + result.data[i] + '</option>');
}
}
}
else {
alert(result.msg);
}
}
})
}
</script>
</script>
}
}
Bailun.DC.Web/Areas/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
View file @
73276365
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<option value="JD">JD</option>
<option value="JD">JD</option>
<option value="Fyndiq">Fyndiq</option>
<option value="Fyndiq">Fyndiq</option>
<option value="Paypal">Paypal</option>
<option value="Paypal">Paypal</option>
<option value="速卖通支付宝">支付宝</option>
</select>
</select>
</div>
</div>
<div class="form-group">
<div class="form-group">
...
...
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