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
a68509ea
Commit
a68509ea
authored
Jul 17, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报表搜索分类,改为百伦简单分类
parent
35a2894b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
341 additions
and
25 deletions
+341
-25
dc_base_sku_simple_category.cs
Bailun.DC.Models/dc_base_sku_simple_category.cs
+47
-0
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+0
-0
SkuInfoServices.cs
Bailun.DC.Services/SkuInfoServices.cs
+41
-0
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+0
-0
Program.cs
Bailun.DC.SkuProfitService/Program.cs
+14
-14
AmazonSaleStatistics.cshtml
...eb/Areas/Reports/Views/Orders/AmazonSaleStatistics.cshtml
+19
-1
EbaySaleStatistics.cshtml
....Web/Areas/Reports/Views/Orders/EbaySaleStatistics.cshtml
+20
-1
FBAAbnormalOrder.cshtml
...DC.Web/Areas/Reports/Views/Orders/FBAAbnormalOrder.cshtml
+21
-1
FBASaleStatistics.cshtml
...C.Web/Areas/Reports/Views/Orders/FBASaleStatistics.cshtml
+20
-1
ListOrder.cshtml
Bailun.DC.Web/Areas/Reports/Views/Orders/ListOrder.cshtml
+20
-1
ListPlatformCost.cshtml
...DC.Web/Areas/Reports/Views/Orders/ListPlatformCost.cshtml
+20
-1
PlatformFeeAbnormal.cshtml
...Web/Areas/Reports/Views/Orders/PlatformFeeAbnormal.cshtml
+19
-1
PlatformProfitCount.cshtml
...Web/Areas/Reports/Views/Orders/PlatformProfitCount.cshtml
+20
-1
StatisticsByWebsite.cshtml
...Web/Areas/Reports/Views/Orders/StatisticsByWebsite.cshtml
+20
-1
ListSkuProfit.cshtml
...DC.Web/Areas/Reports/Views/Warehouse/ListSkuProfit.cshtml
+20
-1
ListWarehouseProfit.cshtml
.../Areas/Reports/Views/Warehouse/ListWarehouseProfit.cshtml
+20
-1
HomeController.cs
Bailun.DC.Web/Controllers/HomeController.cs
+20
-0
No files found.
Bailun.DC.Models/dc_base_sku_simple_category.cs
0 → 100644
View file @
a68509ea
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models
{
public
class
dc_base_sku_simple_category
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 父类id
/// </summary>
public
int
parent_id
{
get
;
set
;
}
/// <summary>
/// 简单分类短名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// 简单分类全名称
/// </summary>
public
string
full_name
{
get
;
set
;
}
/// <summary>
/// 级别
/// </summary>
public
int
level
{
get
;
set
;
}
/// <summary>
/// 简单分类Id
/// </summary>
public
int
skums_id
{
get
;
set
;
}
/// <summary>
/// 数据中心创建时间
/// </summary>
public
DateTime
bj_create
{
get
;
set
;
}
/// <summary>
/// 数据中心更新时间
/// </summary>
public
DateTime
bj_modified
{
get
;
set
;
}
}
}
Bailun.DC.Services/OrdersServices.cs
View file @
a68509ea
This diff is collapsed.
Click to expand it.
Bailun.DC.Services/SkuInfoServices.cs
View file @
a68509ea
...
@@ -4,6 +4,7 @@ using System.Text;
...
@@ -4,6 +4,7 @@ using System.Text;
using
Bailun.DC.Models
;
using
Bailun.DC.Models
;
using
Dapper
;
using
Dapper
;
using
MySql.Data.MySqlClient
;
using
MySql.Data.MySqlClient
;
using
System.Linq
;
namespace
Bailun.DC.Services
namespace
Bailun.DC.Services
{
{
...
@@ -146,6 +147,46 @@ namespace Bailun.DC.Services
...
@@ -146,6 +147,46 @@ namespace Bailun.DC.Services
}
}
}
}
/// <summary>
/// 获取百伦简单分类一二级
/// </summary>
/// <returns></returns>
public
List
<
Models
.
Api
.
mSkuCategoryTree
>
ListSimpleCategory12
(
int
?
companyid
)
{
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
var
sql
=
"select id,parent_id,name,full_name,level,skums_id from dc_base_sku_simple_category "
;
var
obj
=
cn
.
Query
<
dc_base_sku_simple_category
>(
sql
).
AsList
();
var
list
=
new
List
<
Models
.
Api
.
mSkuCategoryTree
>();
var
onelevel
=
obj
.
Where
(
a
=>
a
.
level
==
1
);
foreach
(
var
item
in
onelevel
)
{
var
chidren
=
obj
.
Where
(
a
=>
a
.
parent_id
==
item
.
skums_id
);
var
m
=
new
Models
.
Api
.
mSkuCategoryTree
{
id
=
item
.
skums_id
,
name
=
item
.
full_name
,
open
=
false
,
children
=
chidren
.
Select
(
a
=>
new
Models
.
Api
.
mSkuCategoryTree
{
id
=
a
.
skums_id
,
name
=
a
.
full_name
,
open
=
false
}).
ToList
()
};
list
.
Add
(
m
);
}
return
list
;
}
}
}
}
}
}
Bailun.DC.Services/WareHouseServices.cs
View file @
a68509ea
This diff is collapsed.
Click to expand it.
Bailun.DC.SkuProfitService/Program.cs
View file @
a68509ea
...
@@ -7,23 +7,23 @@ namespace Bailun.DC.SkuProfitService
...
@@ -7,23 +7,23 @@ namespace Bailun.DC.SkuProfitService
{
{
class
Program
class
Program
{
{
static
async
Task
Main
(
string
[]
args
)
//static async Task Main(string[] args)
{
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
services
.
AddHostedService
<
Services
>();
});
await
builder
.
RunConsoleAsync
();
}
//static void Main(string[] args)
//{
//{
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
// var _service = new Services();
// await builder.RunConsoleAsync();
// _service.Save();
//}
//}
static
void
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
_service
=
new
Services
();
_service
.
Save
();
}
}
}
}
}
Bailun.DC.Web/Areas/Reports/Views/Orders/AmazonSaleStatistics.cshtml
View file @
a68509ea
...
@@ -108,7 +108,8 @@
...
@@ -108,7 +108,8 @@
listWarehouse();
listWarehouse();
})
})
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -300,6 +301,23 @@
...
@@ -300,6 +301,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/EbaySaleStatistics.cshtml
View file @
a68509ea
...
@@ -110,7 +110,9 @@
...
@@ -110,7 +110,9 @@
listwarehouse();
listwarehouse();
});
});
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -322,6 +324,23 @@
...
@@ -322,6 +324,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/FBAAbnormalOrder.cshtml
View file @
a68509ea
...
@@ -86,7 +86,9 @@
...
@@ -86,7 +86,9 @@
listAccount();
listAccount();
listWebsite();
listWebsite();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -189,6 +191,24 @@
...
@@ -189,6 +191,24 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/FBASaleStatistics.cshtml
View file @
a68509ea
...
@@ -95,7 +95,9 @@
...
@@ -95,7 +95,9 @@
listWebsite();
listWebsite();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -259,6 +261,23 @@
...
@@ -259,6 +261,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/ListOrder.cshtml
View file @
a68509ea
...
@@ -93,7 +93,9 @@
...
@@ -93,7 +93,9 @@
listWebsite();
listWebsite();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -232,6 +234,23 @@
...
@@ -232,6 +234,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/ListPlatformCost.cshtml
View file @
a68509ea
...
@@ -110,7 +110,8 @@
...
@@ -110,7 +110,8 @@
$('#warehousetype').change(function () {
$('#warehousetype').change(function () {
listwarehouse();
listwarehouse();
})
})
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -260,6 +261,24 @@
...
@@ -260,6 +261,24 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/PlatformFeeAbnormal.cshtml
View file @
a68509ea
...
@@ -87,7 +87,8 @@
...
@@ -87,7 +87,8 @@
listAccount();
listAccount();
listWebsite();
listWebsite();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -202,6 +203,23 @@
...
@@ -202,6 +203,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/PlatformProfitCount.cshtml
View file @
a68509ea
...
@@ -148,7 +148,9 @@
...
@@ -148,7 +148,9 @@
listPlatform();
listPlatform();
listcategory12();
//listcategory12();
listsimplecategory();
$('#platform').change(function () {
$('#platform').change(function () {
listwebsite();
listwebsite();
...
@@ -347,6 +349,23 @@
...
@@ -347,6 +349,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/StatisticsByWebsite.cshtml
View file @
a68509ea
...
@@ -111,7 +111,9 @@
...
@@ -111,7 +111,9 @@
listwarehouse();
listwarehouse();
})
})
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -315,6 +317,23 @@
...
@@ -315,6 +317,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Warehouse/ListSkuProfit.cshtml
View file @
a68509ea
...
@@ -77,7 +77,9 @@
...
@@ -77,7 +77,9 @@
listwarehouse();
listwarehouse();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -202,6 +204,23 @@
...
@@ -202,6 +204,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Areas/Reports/Views/Warehouse/ListWarehouseProfit.cshtml
View file @
a68509ea
...
@@ -74,7 +74,9 @@
...
@@ -74,7 +74,9 @@
listwarehouse();
listwarehouse();
listcategory12();
//listcategory12();
listsimplecategory();
})
})
function list() {
function list() {
...
@@ -195,6 +197,23 @@
...
@@ -195,6 +197,23 @@
})
})
}
}
function listsimplecategory() {
$.submit({
url: '@Url.Content("~/Home/ListSimpleCategory")',
paramData: '',
type: 'POST',
func: function (result) {
var setting = {
check: {
chkStyle: 'checkbox',
enable: true
}
};
zTreeObj = $.fn.zTree.init($("#ztree"), setting, result);
}
})
}
function getChkNode() {
function getChkNode() {
var s = '';
var s = '';
var o = $.fn.zTree.getZTreeObj("ztree");
var o = $.fn.zTree.getZTreeObj("ztree");
...
...
Bailun.DC.Web/Controllers/HomeController.cs
View file @
a68509ea
...
@@ -158,5 +158,24 @@ namespace Bailun.DC.Web.Controllers
...
@@ -158,5 +158,24 @@ namespace Bailun.DC.Web.Controllers
}
}
/// <summary>
/// 获取简单百伦一二级分类
/// </summary>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
[
HttpPost
]
public
JsonResult
ListSimpleCategory
()
{
var
companyid
=
HttpContextHelper
.
Current
.
User
.
GetCompanyId
().
ToInt32
();
if
(
companyid
!=
1
)
{
return
Json
(
"{}"
);
}
var
obj
=
new
Services
.
SkuInfoServices
().
ListSimpleCategory12
(
companyid
);
return
Json
(
obj
);
}
}
}
}
}
\ 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