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
bbc41f28
Commit
bbc41f28
authored
Jun 19, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整物流供应商往来服务
parent
71a5851b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
15 deletions
+37
-15
Services.cs
Bailun.DC.DailyLogisticSupplierTransaction/Services.cs
+36
-14
ListInventoryAging.cshtml
....DC.Web/Areas/Reports/Views/Sku/ListInventoryAging.cshtml
+1
-1
No files found.
Bailun.DC.DailyLogisticSupplierTransaction/Services.cs
View file @
bbc41f28
...
...
@@ -56,9 +56,10 @@ namespace Bailun.DC.DailyLogisticSupplierTransaction
}
}
List
<
string
>
arrSanTong
=
new
List
<
string
>
{
"SPRING"
,
"华得士国际货运代理有限公司"
,
"DHL eCommerce (HK) Ltd"
,
"Globavend"
,
"华得士国际货运代理有限公司(中法)"
,
"DHL ECOMMERCE"
,
"中国邮政集团公司广州市分公司"
,
"华得士国际货运代理有限公司(西班牙)"
,
"华得士国际货运代理有限公司(意大利)"
,
"VALUE ADD SERVICE LIMITED(D)"
,
"金羊城国际物流代理有限公司(T)"
,
"深圳大森林国际货运代理有限公司(T)"
,
"深圳市乐递供应链有限公司(T)"
,
"深圳昊泽货运代理有限公司(T)"
,
"深圳市天纵供应商管理有限公司(T)"
,
"中外运-敦豪广东分公司(T)"
,
"优比速包裹运送(广东)有限公司(T)"
,
"天地国际运输代理(中国)有限公司广州分公司(T)"
,
"HK TWELVE INTERNATIONAL CO., LIMITED(T)"
,
"香港宇通供应链科技有限公司"
};
List
<
string
>
arr
XingXing
=
new
List
<
string
>
{
"WMS-物流账单出纳页面-备注(直发)"
,
"WMS-物流账单出纳页面-备注(调拨
)"
};
List
<
string
>
arrSanTong
=
new
List
<
string
>
{
"SPRING"
,
"华得士国际货运代理有限公司"
,
"DHL eCommerce (HK) Ltd"
,
"Globavend"
,
"华得士国际货运代理有限公司(中法)"
,
"DHL ECOMMERCE"
,
"中国邮政集团公司广州市分公司"
,
"华得士国际货运代理有限公司(西班牙)"
,
"华得士国际货运代理有限公司(意大利)"
,
"VALUE ADD SERVICE LIMITED(D)"
,
"金羊城国际物流代理有限公司(T)"
,
"深圳大森林国际货运代理有限公司(T)"
,
"深圳市乐递供应链有限公司(T)"
,
"深圳昊泽货运代理有限公司(T)"
,
"深圳市天纵供应商管理有限公司(T)"
,
"中外运-敦豪广东分公司(T)"
,
"优比速包裹运送(广东)有限公司(T)"
,
"天地国际运输代理(中国)有限公司广州分公司(T)"
,
"HK TWELVE INTERNATIONAL CO., LIMITED(T)"
,
"香港宇通供应链科技有限公司"
,
"深圳市天纵供应商管理有限公司"
,
"香港杜斯塔克科技有限公司"
};
List
<
string
>
arr
Midland
=
new
List
<
string
>
{
"Midlands Associates Ltd"
,
"Midlands Associates Ltd(B
)"
};
List
<
string
>
arrHuaYu
=
new
List
<
string
>
{
"橙联平台充值"
,
"江苏天地华宇物联科技有限公司"
};
List
<
string
>
arrRongHeng
=
new
List
<
string
>
{
"深圳荣恒国际物流有限公司(美金)"
,
"深圳荣恒国际物流有限公司(人民币)"
,
"深圳荣恒国际物流有限公司"
};
public
void
Init
(
DateTime
day
)
{
...
...
@@ -177,14 +178,14 @@ group by t1.receive_unit";
lastupdateusername
=
"admin"
};
//合并
猩猩
国际的数据
var
obj
XingXing
=
list
.
Where
(
a
=>
arrXingXing
.
Contains
(
a
.
suppliername
)).
ToList
();
var
temp
XingXing
=
new
dc_daily_logistics_supplier_transaction
{
amount_happen
=
objXingXing
.
Count
>
0
?
objXingXing
.
Sum
(
a
=>
a
.
amount_happen
):
0
,
amount_pay
=
objXingXing
.
Count
>
0
?
objXingXing
.
Sum
(
a
=>
a
.
amount_pay
):
0
,
amount_receipt
=
objXingXing
.
Count
>
0
?
objXingXing
.
Sum
(
a
=>
a
.
amount_receipt
):
0
,
amount_other
=
objXingXing
.
Count
>
0
?
objXingXing
.
Sum
(
a
=>
a
.
amount_other
):
0
,
suppliername
=
"
深圳猩猩国际供应链科技有限公司
"
,
//合并
Midland
国际的数据
var
obj
Midland
=
list
.
Where
(
a
=>
arrMidland
.
Contains
(
a
.
suppliername
)).
ToList
();
var
temp
Midland
=
new
dc_daily_logistics_supplier_transaction
{
amount_happen
=
arrMidland
.
Count
>
0
?
objMidland
.
Sum
(
a
=>
a
.
amount_happen
):
0
,
amount_pay
=
arrMidland
.
Count
>
0
?
objMidland
.
Sum
(
a
=>
a
.
amount_pay
):
0
,
amount_receipt
=
arrMidland
.
Count
>
0
?
objMidland
.
Sum
(
a
=>
a
.
amount_receipt
):
0
,
amount_other
=
arrMidland
.
Count
>
0
?
objMidland
.
Sum
(
a
=>
a
.
amount_other
):
0
,
suppliername
=
"
Midlands Associates
"
,
supplierid
=
0
,
amount_end
=
0
,
amount_start
=
0
,
...
...
@@ -215,13 +216,34 @@ group by t1.receive_unit";
};
//去除三通、华宇和猩猩的子公司数据
list
=
list
.
Where
(
a
=>
!
arrSanTong
.
Contains
(
a
.
suppliername
)
&&
!
arrXingXing
.
Contains
(
a
.
suppliername
)
&&
!
arrHuaYu
.
Contains
(
a
.
suppliername
)).
ToList
();
var
objRongHeng
=
list
.
Where
(
a
=>
arrRongHeng
.
Contains
(
a
.
suppliername
)).
ToList
();
var
tempRongHeng
=
new
dc_daily_logistics_supplier_transaction
{
amount_happen
=
objRongHeng
.
Count
>
0
?
objRongHeng
.
Sum
(
a
=>
a
.
amount_happen
)
:
0
,
amount_pay
=
objRongHeng
.
Count
>
0
?
objRongHeng
.
Sum
(
a
=>
a
.
amount_pay
)
:
0
,
amount_receipt
=
objRongHeng
.
Count
>
0
?
objRongHeng
.
Sum
(
a
=>
a
.
amount_receipt
)
:
0
,
amount_other
=
objRongHeng
.
Count
>
0
?
objRongHeng
.
Sum
(
a
=>
a
.
amount_other
)
:
0
,
suppliername
=
"深圳荣恒国际物流有限公司"
,
supplierid
=
0
,
amount_end
=
0
,
amount_start
=
0
,
createtime
=
DateTime
.
Now
,
day
=
list
.
FirstOrDefault
().
day
,
lastupdatetime
=
DateTime
.
Now
,
lastupdateuserid
=
0
,
lastupdateusername
=
"admin"
};
//去除三通、华宇、荣恒的子公司数据
list
=
list
.
Where
(
a
=>
!
arrSanTong
.
Contains
(
a
.
suppliername
)
&&
!
arrMidland
.
Contains
(
a
.
suppliername
)
&&
!
arrHuaYu
.
Contains
(
a
.
suppliername
)
&&
!
arrRongHeng
.
Contains
(
a
.
suppliername
)).
ToList
();
//增加三通、华宇、
猩猩国籍
数据到列表
//增加三通、华宇、
荣恒
数据到列表
list
.
Add
(
tempSanTong
);
list
.
Add
(
temp
XingXing
);
list
.
Add
(
temp
Midland
);
list
.
Add
(
tempHuaYu
);
list
.
Add
(
tempRongHeng
);
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
...
...
Bailun.DC.Web/Areas/Reports/Views/Sku/ListInventoryAging.cshtml
View file @
bbc41f28
...
...
@@ -49,7 +49,7 @@
</div>
<div class="form-group">
<label>采购员名称:</label>
<input id="buyername" name="buyername" class="form-control" style="width:120px"/>
<input id="buyername" name="buyername" class="form-control" style="width:120px"
placeholder="采购员名称"
/>
</div>
<div class="form-group">
<label> </label>
...
...
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