|
|
|
@ -326,9 +326,17 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
})
|
|
|
|
|
.Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
})
|
|
|
|
|
.ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("carrier", carrier));
|
|
|
|
|
|
|
|
|
|
var yard = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -339,9 +347,17 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
)
|
|
|
|
|
.Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("yard", yard));
|
|
|
|
|
|
|
|
|
|
var booking = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -352,9 +368,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("booking", booking));
|
|
|
|
|
|
|
|
|
|
var truck = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -365,9 +388,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("truck", truck));
|
|
|
|
|
|
|
|
|
|
var controller = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -378,9 +408,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("controller", controller));
|
|
|
|
|
|
|
|
|
|
var custom = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -391,9 +428,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("custom", custom));
|
|
|
|
|
|
|
|
|
|
var agent = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -404,9 +448,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("agent", agent));
|
|
|
|
|
|
|
|
|
|
var agentcn = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -417,9 +468,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("agentcn", agentcn));
|
|
|
|
|
|
|
|
|
|
var express = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -430,9 +488,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("express", express));
|
|
|
|
|
|
|
|
|
|
var airlines = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -443,9 +508,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("airlines", airlines));
|
|
|
|
|
|
|
|
|
|
var shipper = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -456,9 +528,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("shipper", shipper));
|
|
|
|
|
|
|
|
|
|
var notifyparty = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -469,9 +548,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("notifyparty", notifyparty));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -483,9 +569,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("warehouse", warehouse));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -497,9 +590,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("wharf", wharf));
|
|
|
|
|
|
|
|
|
|
var insurer = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -510,9 +610,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("insurer", insurer));
|
|
|
|
|
|
|
|
|
|
var leasing = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -523,9 +630,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("leasing", leasing));
|
|
|
|
|
|
|
|
|
|
var tradingagency = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -536,9 +650,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("tradingagency", tradingagency));
|
|
|
|
|
|
|
|
|
|
var shipagency = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -549,9 +670,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("shipagency", shipagency));
|
|
|
|
|
|
|
|
|
|
var enterprise = await tenantDb.Queryable<InfoClient>()
|
|
|
|
@ -562,9 +690,16 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
Id = a.Id,
|
|
|
|
|
CodeName = a.CodeName,
|
|
|
|
|
ShortName = a.ShortName,
|
|
|
|
|
EnShortName = a.EnShortName
|
|
|
|
|
EnShortName = a.EnShortName,
|
|
|
|
|
BLContent = a.BLContent
|
|
|
|
|
}
|
|
|
|
|
).ToListAsync();
|
|
|
|
|
).Mapper(it =>
|
|
|
|
|
{
|
|
|
|
|
it.ClientParams = tenantDb.Queryable<InfoClientParam>()
|
|
|
|
|
.Where(x => x.CustomerId == it.Id && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<ClientParamRes>()
|
|
|
|
|
.ToList();
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
data.Add(new ClientSelectMultiRes("enterprise", enterprise));
|
|
|
|
|
|
|
|
|
|
return await Task.FromResult(DataResult<List<ClientSelectMultiRes>>.Success(data));
|
|
|
|
|