|
@@ -1,198 +1,18 @@
|
|
using AntDesign;
|
|
using AntDesign;
|
|
using AntDesign.TableModels;
|
|
using AntDesign.TableModels;
|
|
|
|
+using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
|
|
+using wispro.sp.web.Services;
|
|
|
|
|
|
namespace wispro.sp.web.Pages
|
|
namespace wispro.sp.web.Pages
|
|
{
|
|
{
|
|
public partial class CustomerList
|
|
public partial class CustomerList
|
|
{
|
|
{
|
|
- private List<entity.Customer> _Customers =new List<entity.Customer>()
|
|
|
|
- {
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id=1,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address="广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone="4001-666-888",
|
|
|
|
- ContactMan="刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
-},
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 2,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 3,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 4,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 5,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 6,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 7,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 8,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 9,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 10,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 11,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 12,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 13,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 14,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 15,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 16,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 17,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- },
|
|
|
|
- new entity.Customer()
|
|
|
|
- {
|
|
|
|
- Id = 18,
|
|
|
|
- Name = "OPPO广东移动通信有限公司",
|
|
|
|
- Address = "广东省东莞市长安镇乌沙海滨路18号",
|
|
|
|
- Phone = "4001-666-888",
|
|
|
|
- ContactMan = "刘波",
|
|
|
|
- ResponseMan= new entity.Staff(){Name ="钟子敏",Id =1},
|
|
|
|
- ResponseManId= 1
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
|
|
+ private List<entity.Customer> _Customers =new List<entity.Customer>();
|
|
|
|
|
|
IEnumerable<entity.Customer> selectedRows;
|
|
IEnumerable<entity.Customer> selectedRows;
|
|
ITable table;
|
|
ITable table;
|
|
@@ -206,13 +26,13 @@ namespace wispro.sp.web.Pages
|
|
bool _visible = false;
|
|
bool _visible = false;
|
|
bool _isAdd = false;
|
|
bool _isAdd = false;
|
|
|
|
|
|
|
|
+ [Inject]OrganizationService orgService { get; set; }
|
|
|
|
|
|
-
|
|
|
|
- protected override void OnInitialized()
|
|
|
|
|
|
+ protected override async System.Threading.Tasks.Task OnInitializedAsync()
|
|
{
|
|
{
|
|
|
|
|
|
_loading = true;
|
|
_loading = true;
|
|
-
|
|
|
|
|
|
+ _Customers = await orgService.GetAllCustomer();
|
|
//await System.Threading.Thread.Sleep();
|
|
//await System.Threading.Thread.Sleep();
|
|
//List<wispro.sp.entity.StaffGrade> data = await Http.GetFromJsonAsync<List<wispro.sp.entity.StaffGrade>>($"http://localhost:39476/api/StaffGrade/GetAll");
|
|
//List<wispro.sp.entity.StaffGrade> data = await Http.GetFromJsonAsync<List<wispro.sp.entity.StaffGrade>>($"http://localhost:39476/api/StaffGrade/GetAll");
|
|
|
|
|