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
a1161a89
Commit
a1161a89
authored
Apr 01, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整Ebay销售站点的站点列表只取在报表上显示的站点,数据仓增加耗材仓数据
parent
c0b34578
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
9 deletions
+51
-9
mOtherFee.cs
Bailun.DC.Models/Api/mOtherFee.cs
+21
-0
CommonServices.cs
Bailun.DC.Services/CommonServices.cs
+13
-3
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+6
-2
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+2
-2
ListAdministrativeCost.cshtml
...Areas/Reports/Views/Finance/ListAdministrativeCost.cshtml
+3
-0
DataWareHouse.cshtml
...DC.Web/Areas/Reports/Views/Inventory/DataWareHouse.cshtml
+1
-0
EbayStatisticsByWebsite.cshtml
...Areas/Reports/Views/Orders/EbayStatisticsByWebsite.cshtml
+5
-2
No files found.
Bailun.DC.Models/Api/mOtherFee.cs
View file @
a1161a89
...
@@ -24,6 +24,11 @@ namespace Bailun.DC.Models.Api
...
@@ -24,6 +24,11 @@ namespace Bailun.DC.Models.Api
/// <summary>
/// <summary>
/// 付款主体名称
/// 付款主体名称
/// </summary>
/// </summary>
public
int
companyValue
{
get
;
set
;
}
/// <summary>
/// 付款主体名称
/// </summary>
public
string
companyName
{
get
;
set
;
}
public
string
companyName
{
get
;
set
;
}
/// <summary>
/// <summary>
...
@@ -51,6 +56,22 @@ namespace Bailun.DC.Models.Api
...
@@ -51,6 +56,22 @@ namespace Bailun.DC.Models.Api
/// </summary>
/// </summary>
public
decimal
amountRmb
{
get
;
set
;
}
public
decimal
amountRmb
{
get
;
set
;
}
/// <summary>
/// 收款单位
/// </summary>
public
string
receiveUnit
{
get
;
set
;
}
/// <summary>
/// 付款理由
/// </summary>
public
string
reason
{
get
;
set
;
}
/// <summary>
/// 付款时间
/// </summary>
public
DateTime
?
payTime
{
get
;
set
;
}
}
}
public
class
mListOtherFee
public
class
mListOtherFee
...
...
Bailun.DC.Services/CommonServices.cs
View file @
a1161a89
...
@@ -96,7 +96,7 @@ namespace Bailun.DC.Services
...
@@ -96,7 +96,7 @@ namespace Bailun.DC.Services
/// </summary>
/// </summary>
/// <param name="platform">平台编码</param>
/// <param name="platform">平台编码</param>
/// <returns></returns>
/// <returns></returns>
public
static
List
<
string
>
ListWebSite
(
string
platform
)
public
static
List
<
string
>
ListWebSite
(
string
platform
,
DateTime
?
start
,
DateTime
?
end
)
{
{
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
{
...
@@ -106,13 +106,23 @@ namespace Bailun.DC.Services
...
@@ -106,13 +106,23 @@ namespace Bailun.DC.Services
}
}
var
sqlparam
=
new
DynamicParameters
();
var
sqlparam
=
new
DynamicParameters
();
var
sql
=
"select website from dc_base_oms_order"
;
var
sql
=
"select website from dc_base_oms_order
where 1=1
"
;
if
(!
string
.
IsNullOrWhiteSpace
(
platform
))
if
(!
string
.
IsNullOrWhiteSpace
(
platform
))
{
{
sql
+=
"
where
platform_type=@platform_type"
;
sql
+=
"
and
platform_type=@platform_type"
;
sqlparam
.
Add
(
"platform_type"
,
platform
);
sqlparam
.
Add
(
"platform_type"
,
platform
);
}
}
if
(
start
.
HasValue
)
{
sql
+=
" and paid_time>='"
+
start
.
Value
.
ToString
(
"yyyy-MM-dd"
)+
"'"
;
}
if
(
end
.
HasValue
)
{
sql
+=
" and paid_time<'"
+
end
.
Value
.
AddDays
(
1
).
ToString
(
"yyyy-MM-dd"
)+
"'"
;
}
sql
+=
" group by website order by website"
;
sql
+=
" group by website order by website"
;
return
cn
.
Query
<
string
>(
sql
,
sqlparam
).
AsList
();
return
cn
.
Query
<
string
>(
sql
,
sqlparam
).
AsList
();
...
...
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
a1161a89
...
@@ -192,7 +192,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -192,7 +192,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
day
=
DateTime
.
Now
;
var
day
=
DateTime
.
Now
;
var
start
=
DateTime
.
Parse
(
lastmonth
.
Year
+
"-"
+
lastmonth
.
Month
+
"-01"
);
var
start
=
DateTime
.
Parse
(
lastmonth
.
Year
+
"-"
+
lastmonth
.
Month
+
"-01"
);
var
end
=
day
.
AddDays
(-
1
);
var
end
=
start
.
AddMonths
(
1
)
.
AddDays
(-
1
);
ViewBag
.
start
=
start
;
ViewBag
.
start
=
start
;
ViewBag
.
end
=
end
;
ViewBag
.
end
=
end
;
...
@@ -221,6 +221,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -221,6 +221,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
list
=
new
Services
.
FinanceReportServices
().
ListOtherCost
(
url
);
var
list
=
new
Services
.
FinanceReportServices
().
ListOtherCost
(
url
);
var
listValue
=
new
List
<
Tuple
<
string
,
List
<
decimal
>>>();
var
listValue
=
new
List
<
Tuple
<
string
,
List
<
decimal
>>>();
var
listCol
=
new
List
<
string
>();
var
listCol
=
new
List
<
string
>();
var
listColVal
=
new
List
<
int
>();
if
(
list
.
Count
>
0
)
if
(
list
.
Count
>
0
)
{
{
...
@@ -491,7 +492,10 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -491,7 +492,10 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
a
.
feeSubType
,
a
.
feeSubType
,
a
.
feeSuperType
,
a
.
feeSuperType
,
a
.
no
,
a
.
no
,
a
.
manageCostType
a
.
manageCostType
,
a
.
receiveUnit
,
a
.
reason
,
payTime
=
a
.
payTime
.
HasValue
?
a
.
payTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
):
""
}).
ToList
();
}).
ToList
();
...
...
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
a1161a89
...
@@ -1282,9 +1282,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1282,9 +1282,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
/// <param name="platform">平台编码</param>
/// <param name="platform">平台编码</param>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
]
[
HttpPost
]
public
JsonResult
ListWebSite
(
string
platform
)
public
JsonResult
ListWebSite
(
string
platform
,
DateTime
?
start
,
DateTime
?
end
)
{
{
var
result
=
Services
.
CommonServices
.
ListWebSite
(
platform
).
Where
(
a
=>
!
string
.
IsNullOrEmpty
(
a
));
var
result
=
Services
.
CommonServices
.
ListWebSite
(
platform
,
start
,
end
).
Where
(
a
=>
!
string
.
IsNullOrEmpty
(
a
));
return
Json
(
result
);
return
Json
(
result
);
}
}
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/ListAdministrativeCost.cshtml
View file @
a1161a89
...
@@ -62,6 +62,9 @@
...
@@ -62,6 +62,9 @@
{ field: 'amount',title: '金额' },
{ field: 'amount',title: '金额' },
{ field: 'currency', title: '币种' },
{ field: 'currency', title: '币种' },
{ field: 'amountRmb', title: '人民币金额' },
{ field: 'amountRmb', title: '人民币金额' },
{ field: 'receiveUnit', title: '收款单位' },
{ field: 'reason', title: '付款理由' },
{ field: 'payTime', title: '付款时间' },
];
];
var url = '@Url.Content("~/Reports/Finance/ListAdministrativeCostJson")' + '?paycompanyid=' + companyid + '&headname=' + headname + '&categoryname=' + categoryname + '&start=' + start + '&end=' + end + '&type=' + type + '&issub=' + issub;
var url = '@Url.Content("~/Reports/Finance/ListAdministrativeCostJson")' + '?paycompanyid=' + companyid + '&headname=' + headname + '&categoryname=' + categoryname + '&start=' + start + '&end=' + end + '&type=' + type + '&issub=' + issub;
...
...
Bailun.DC.Web/Areas/Reports/Views/Inventory/DataWareHouse.cshtml
View file @
a1161a89
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<option value="海外仓">海外仓</option>
<option value="海外仓">海外仓</option>
<option value="FBA仓">FBA仓</option>
<option value="FBA仓">FBA仓</option>
<option value="第三方仓库">第三方仓库</option>
<option value="第三方仓库">第三方仓库</option>
<option value="耗材仓">耗材仓</option>
</select>
</select>
</div>
</div>
<div class="form-group">
<div class="form-group">
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/EbayStatisticsByWebsite.cshtml
View file @
a1161a89
...
@@ -199,10 +199,13 @@
...
@@ -199,10 +199,13 @@
}
}
function listWebsite() {
function listWebsite() {
var start = $('#start').val();
var end = $('#end').val();
$.submit({
$.submit({
url: '@Url.Content("~/Reports/Orders/ListWebSite")',
url: '@Url.Content("~/Reports/Orders/ListWebSite")',
type:'POST',
type:
'POST',
paramData: 'platform=Ebay
'
,
paramData: 'platform=Ebay
&start=' + start+'&end='+end
,
func: function (result) {
func: function (result) {
if (result != null && result != undefined) {
if (result != null && result != undefined) {
$('#website').html('<option value="">选择站点</option>');
$('#website').html('<option value="">选择站点</option>');
...
...
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