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
70f47a2b
Commit
70f47a2b
authored
Aug 20, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复普货总类无法查看对应明细的问题
parent
a8c12ad6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+12
-4
ListDailyPurchaseSales.cshtml
...eas/Reports/Views/Warehouse/ListDailyPurchaseSales.cshtml
+5
-4
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
70f47a2b
...
...
@@ -511,12 +511,20 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
end
=
DateTime
.
Now
.
AddDays
(-
1
);
//获取百伦分类id
var
categoryid
=
0
;
var
objCategory
=
new
Services
.
SkuInfoServices
().
GetSimpleCategory
(
categoryname
);
if
(
objCategory
!=
null
)
var
categoryid
=
"0"
;
if
(
categoryname
!=
"普货"
)
{
categoryid
=
objCategory
.
skums_id
;
var
objCategory
=
new
Services
.
SkuInfoServices
().
GetSimpleCategory
(
categoryname
);
if
(
objCategory
!=
null
)
{
categoryid
=
objCategory
.
skums_id
.
ToString
();
}
}
else
{
categoryid
=
"5|6|7|8|9|10|11"
;
}
//获取列名上的日期
if
(
dateWay
==
2
)
//按周
...
...
Bailun.DC.Web/Areas/Reports/Views/Warehouse/ListDailyPurchaseSales.cshtml
View file @
70f47a2b
...
...
@@ -99,7 +99,7 @@
listsimplecategory();
list(
@ViewBag.categoryid
);
list(
'@ViewBag.categoryid'
);
})
function list(cid) {
...
...
@@ -186,9 +186,11 @@
}
};
var s = '|' + ('@ViewBag.categoryid') + '|';
for (var i = 0; i < result.length; i++) {
var obj = result[i];
if (
obj.id ==@ViewBag.categoryid
) {
if (
s.indexOf('|'+obj.id+'|')>=0
) {
obj.checked = true;
break;
}
...
...
@@ -196,10 +198,9 @@
if (obj.children.length > 0) {
for (var j = 0; j < obj.children.length; j++) {
var o = obj.children[j];
if (
o.id ==@ViewBag.categoryid
) {
if (
s.indexOf('|'+o.id+'|')>=0
) {
o.checked = true;
obj.checked = true;
break;
}
}
}
...
...
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