Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
黄奎
Education
Commits
e5d85c86
Commit
e5d85c86
authored
Feb 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fbb3dd65
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
+28
-27
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+6
-5
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+22
-22
No files found.
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
e5d85c86
...
...
@@ -11,6 +11,7 @@ using Newtonsoft.Json.Linq;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
Edu.WebApi.Controllers.Customer
{
...
...
@@ -639,7 +640,6 @@ namespace Edu.WebApi.Controllers.Customer
slist
.
Add
(
header
);
foreach
(
var
item
in
list
)
{
var
dataRow
=
new
ExcelDataSource
()
{
ExcelRows
=
new
List
<
ExcelColumn
>()
...
...
@@ -661,11 +661,12 @@ namespace Edu.WebApi.Controllers.Customer
slist
.
Add
(
dataRow
);
}
var
byteData
=
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
return
File
(
byteData
,
"application/octet-stream"
,
excelName
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"
OutToExcelOrderStudentClassHoursList
"
);
LogHelper
.
Write
(
ex
,
"
DownLoadCustomerLinkMan
"
);
var
byteData1
=
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
return
File
(
byteData1
,
"application/octet-stream"
,
excelName
);
}
...
...
@@ -978,12 +979,12 @@ namespace Edu.WebApi.Controllers.Customer
ExcelDataSource
header
=
new
ExcelDataSource
();
header
.
ExcelRows
=
new
List
<
ExcelColumn
>()
{
new
ExcelColumn
(
"同业名称"
){
CellWidth
=
2
0
},
new
ExcelColumn
(
"同业名称"
){
CellWidth
=
4
0
},
new
ExcelColumn
(
"类型"
){
CellWidth
=
20
},
new
ExcelColumn
(
"联系人数量"
){
CellWidth
=
20
},
new
ExcelColumn
(
"客户数量"
){
CellWidth
=
20
},
new
ExcelColumn
(
"订单数量"
){
CellWidth
=
20
},
new
ExcelColumn
(
"加入时间"
){
CellWidth
=
2
0
},
new
ExcelColumn
(
"加入时间"
){
CellWidth
=
3
0
},
new
ExcelColumn
(
"负责人"
){
CellWidth
=
20
},
};
slist
.
Add
(
header
);
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
e5d85c86
...
...
@@ -827,28 +827,28 @@ namespace Edu.WebApi.Controllers.User
ExcelDataSource
header
=
new
ExcelDataSource
();
header
.
ExcelRows
=
new
List
<
ExcelColumn
>()
{
new
ExcelColumn
(
"昵称"
),
new
ExcelColumn
(
"课程顾问"
),
new
ExcelColumn
(
"协助老师"
),
new
ExcelColumn
(
"是否报名"
),
new
ExcelColumn
(
"性别"
),
new
ExcelColumn
(
"电话"
),
new
ExcelColumn
(
"QQ"
),
new
ExcelColumn
(
"微信"
),
new
ExcelColumn
(
"客户类型"
),
new
ExcelColumn
(
"客户阶段"
),
new
ExcelColumn
(
"客户需求"
),
new
ExcelColumn
(
"职业"
),
new
ExcelColumn
(
"学历"
),
new
ExcelColumn
(
"目的"
),
new
ExcelColumn
(
"其他服务人员"
),
new
ExcelColumn
(
"客户来源"
),
new
ExcelColumn
(
"来源关联人"
),
new
ExcelColumn
(
"收客渠道"
),
new
ExcelColumn
(
"到访次数"
),
new
ExcelColumn
(
"试听次数"
),
new
ExcelColumn
(
"创建时间"
),
new
ExcelColumn
(
"负责人"
),
new
ExcelColumn
(
"昵称"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"课程顾问"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"协助老师"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"是否报名"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"性别"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"电话"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"QQ"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"微信"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"客户类型"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"客户阶段"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"客户需求"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"职业"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"学历"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"目的"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"其他服务人员"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"客户来源"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"来源关联人"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"收客渠道"
)
{
CellWidth
=
20
}
,
new
ExcelColumn
(
"到访次数"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"试听次数"
)
{
CellWidth
=
10
}
,
new
ExcelColumn
(
"创建时间"
)
{
CellWidth
=
25
}
,
new
ExcelColumn
(
"负责人"
)
{
CellWidth
=
15
}
,
};
slist
.
Add
(
header
);
foreach
(
var
item
in
list
)
...
...
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