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
b38ef787
Commit
b38ef787
authored
Aug 17, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复每日销进比汇总的显示问题
parent
b0653191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+33
-6
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
b38ef787
...
...
@@ -790,10 +790,12 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
objSC
=
new
SkuCategory_Col
{
category_simple_name
=
item
.
category_simple_name
,
list
=
new
List
<
string
>
{
}
list
=
new
List
<
string
>
{
},
days
=
new
List
<
string
>
{
}
};
//objSC.list.Add(item.day);
objSC
.
days
.
Add
(
item
.
day
);
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_purchase
:
item
.
amount_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
count_purchase
:
item
.
count_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_sales
:
item
.
amount_shipping
).
ToString
());
...
...
@@ -814,11 +816,32 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
else
{
objSC
.
list
.
Add
(
item
.
day
);
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_purchase
:
item
.
amount_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
count_purchase
:
item
.
count_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_sales
:
item
.
amount_shipping
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
count_sales
:
item
.
count_shipping
).
ToString
());
//objSC.list.Add(item.day);
//objSC.list.Add((t == 1 ? item.amount_purchase : item.amount_putin).ToString());
//objSC.list.Add((t == 1 ? item.count_purchase : item.count_putin).ToString());
//objSC.list.Add((t == 1 ? item.amount_sales : item.amount_shipping).ToString());
//objSC.list.Add((t == 1 ? item.count_sales : item.count_shipping).ToString());
if
(!
objSC
.
days
.
Contains
(
item
.
day
))
{
objSC
.
days
.
Add
(
item
.
day
);
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_purchase
:
item
.
amount_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
count_purchase
:
item
.
count_putin
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
amount_sales
:
item
.
amount_shipping
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
item
.
count_sales
:
item
.
count_shipping
).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
(
item
.
amount_purchase
-
item
.
amount_sales
)
:
(
item
.
amount_putin
-
item
.
amount_shipping
)).
ToString
());
objSC
.
list
.
Add
((
t
==
1
?
(
item
.
count_purchase
-
item
.
count_sales
)
:
(
item
.
count_putin
-
item
.
count_shipping
)).
ToString
());
}
else
{
objSC
.
list
[
objSC
.
list
.
Count
-
6
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
6
])
+
((
t
==
1
?
item
.
amount_purchase
:
item
.
amount_putin
))).
ToString
(
"G0"
);
objSC
.
list
[
objSC
.
list
.
Count
-
5
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
5
])
+
(
t
==
1
?
item
.
count_purchase
:
item
.
count_putin
)).
ToString
(
"G0"
);
objSC
.
list
[
objSC
.
list
.
Count
-
4
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
4
])
+
(
t
==
1
?
item
.
amount_sales
:
item
.
amount_shipping
)).
ToString
(
"G0"
);
objSC
.
list
[
objSC
.
list
.
Count
-
3
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
3
])
+
(
t
==
1
?
item
.
count_sales
:
item
.
count_shipping
)).
ToString
(
"G0"
);
objSC
.
list
[
objSC
.
list
.
Count
-
2
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
2
])
+
(
t
==
1
?
(
item
.
amount_purchase
-
item
.
amount_sales
)
:
(
item
.
amount_putin
-
item
.
amount_shipping
))).
ToString
(
"G0"
);
objSC
.
list
[
objSC
.
list
.
Count
-
1
]
=
(
decimal
.
Parse
(
objSC
.
list
[
objSC
.
list
.
Count
-
1
])
+
(
t
==
1
?
(
item
.
count_purchase
-
item
.
count_sales
)
:
(
item
.
count_putin
-
item
.
count_shipping
))).
ToString
(
"G0"
);
}
if
(
head
.
Where
(
a
=>
a
.
Contains
(
item
.
day
)).
Count
()
<=
0
)
{
...
...
@@ -829,6 +852,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
head
.
Add
(
item
.
day
+
(
dateWay
==
3
?
"月"
:
""
)
+
"差异金额"
);
head
.
Add
(
item
.
day
+
(
dateWay
==
3
?
"月"
:
""
)
+
"差异数量"
);
}
}
}
...
...
@@ -1042,6 +1066,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
public
string
category_simple_name
{
get
;
set
;
}
public
List
<
string
>
days
{
get
;
set
;
}
public
List
<
string
>
list
{
get
;
set
;
}
}
}
\ No newline at end of file
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