|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.Code.Dtos;
|
|
|
|
|
using DS.WMS.Core.Fee.Dtos;
|
|
|
|
|
using DS.WMS.Core.Info.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Entity;
|
|
|
|
|
using DS.WMS.Core.Sys.Dtos;
|
|
|
|
|
using DS.WMS.Core.Sys.Entity;
|
|
|
|
|
using DS.WMS.Core.Sys.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.MainApi.Controllers;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 公共模块-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ClientCommonController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly IClientCommonService _invokeService;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
|
public ClientCommonController(IClientCommonService invokeService)
|
|
|
|
|
{
|
|
|
|
|
_invokeService = invokeService;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取当前机构银行信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetOrgBankList")]
|
|
|
|
|
public async Task<DataResult<List<BankRes>>> GetOrgBankAsync()
|
|
|
|
|
{
|
|
|
|
|
return await _invokeService.GetOrgBankListAsync();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取任务类型常量列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetTaskTypeConstList")]
|
|
|
|
|
public async Task<DataResult<List<TaskBaseTypeConstRes>>> GetTaskTypeConstList()
|
|
|
|
|
{
|
|
|
|
|
return await _invokeService.GetTaskTypeConstList();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取服务项目下拉数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="businessType">业务类型</param>
|
|
|
|
|
/// <param name="queryKey">搜索关键词(可空)</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetServiceItem")]
|
|
|
|
|
public async Task<DataResult<List<SelectListItem>>> GetServiceItemAsync(BusinessType businessType, string? queryKey = null)
|
|
|
|
|
{
|
|
|
|
|
return await _invokeService.GetServiceItemAsync(businessType, queryKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取结算方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">搜索关键词(可空)</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetStlMode")]
|
|
|
|
|
public async Task<DataResult<List<CodeStlModeRes>>> GetStlModeAsync(string? queryKey = null)
|
|
|
|
|
{
|
|
|
|
|
return await _invokeService.GetStlModeAsync(queryKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取客户银行
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">客户ID</param>
|
|
|
|
|
/// <param name="queryKey">搜索关键词(可空)</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetClientBank")]
|
|
|
|
|
public async Task<DataResult<List<ClientBankRes>>> GetClientBankAsync(long id, string? queryKey = null)
|
|
|
|
|
{
|
|
|
|
|
return await _invokeService.GetClientBankAsync(id, queryKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据五字码获取港口信息-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">港口五字码</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetClientPortInfoByCode")]
|
|
|
|
|
public async Task<DataResult<CodePortInfoRes>> GetClientPortInfoByCode([FromQuery] string queryKey)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetClientPortInfoByCode(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取航线操作员列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">用户代码或中文名称</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetLaneUserList")]
|
|
|
|
|
public async Task<DataResult<List<UserSelectRes>>> GetLaneUserList([FromQuery] string queryKey)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetLaneUserList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取委托单位下拉列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">委托单位代码或中文名称</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetControllerClientListByKey")]
|
|
|
|
|
public async Task<DataResult<List<ControllerClientRes>>> GetControllerClientListByKey([FromQuery] string queryKey)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetControllerClientListByKey(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取船公司下拉列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">船公司代码或中文名称</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCarrierSelectList")]
|
|
|
|
|
public async Task<DataResult<List<CodeCarrierRes>>> GetCarrierSelectList([FromQuery] string queryKey)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetCarrierSelectList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取发票商品编码下拉数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="service"></param>
|
|
|
|
|
/// <param name="text">模糊搜索文本</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetInvoiceCodeList")]
|
|
|
|
|
public async Task<DataResult<List<CodeInvoiceSelect>>> GetInvoiceCodeListAsync(
|
|
|
|
|
[FromServices] ICodeInvoiceService service, [FromQuery] string text)
|
|
|
|
|
{
|
|
|
|
|
return await service.GetSelectListAsync(text);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取合约号下拉列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">合约号</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetBookingContractNoList")]
|
|
|
|
|
public async Task<DataResult<List<BookingContractNoSelectRes>>> GetBookingContractNoList([FromQuery] string queryKey, long carrierId = 0)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetBookingContractNoList(queryKey, carrierId);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取商品下拉列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="queryKey">商品代码</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetClientGoodsList")]
|
|
|
|
|
public async Task<DataResult<List<CodeGoodsSelectRes>>> GetClientGoodsList([FromQuery] string queryKey)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetClientGoodsList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据id获取往来单位参数信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetClientParamListById")]
|
|
|
|
|
public async Task<DataResult<List<ClientParamRes>>> GetClientParamListById([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetClientParamListById(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据用户ids获取用户邮箱信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ids">用户Ids</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetUseEmailListByIds")]
|
|
|
|
|
public async Task<DataResult<List<UserSelectRes>>> GetUseEmailListByIds([FromQuery] long[] ids)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetUseEmailListByIds(ids);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据类型获取用户下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetUserListByCode")]
|
|
|
|
|
public async Task<DataResult<List<ApiSelectViewModel>>> GetUserListByCode([FromQuery] string code, string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetUserListByCode(code, queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取工厂信息下拉列表-客户端
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFactorySelectList")]
|
|
|
|
|
public DataResult<List<CodeFactorySelectRes>> GetFactorySelectList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetFactorySelectList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据单位获取数量箱型信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetUnitSelectInfo")]
|
|
|
|
|
public DataResult<UnitSelectInfoRes> GetUnitSelectInfo([FromBody] UnitSelectInfoReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetUnitSelectInfo(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据类型获取往来单位下拉及业务信息列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetClientSelectInfoByCode")]
|
|
|
|
|
public async Task<DataResult<ClientSelectInfoRes>> GetClientSelectInfoByCode([FromBody] ClientSelectInfoReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetClientSelectInfoByCode(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取往来单位下拉集合列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetMultiClientList")]
|
|
|
|
|
public async Task<DataResult<List<ClientSelectMultiRes>>> GetMultiClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetMultiClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提取汇率信息 先提取CodeConfig 参数ExchangeRateType(ETD\AccountDate\CreateTime) 再提取SysConfig配置,最后默认取业务订单ETD
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetBusinessCurrencyExchangeInfo")]
|
|
|
|
|
public DataResult<BusinessCurrencyExchangeRes> GetBusinessCurrencyExchangeInfo([FromBody] BusinessCurrencyExchangeReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetBusinessCurrencyExchangeInfo(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取揽货人信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetSaleList")]
|
|
|
|
|
public DataResult<List<SaleSelectListRes>> GetSaleList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetSaleList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取审核日志列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">业务Id</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetAuditLogList")]
|
|
|
|
|
public async Task<DataResult<List<AuditLogListRes>>> GetAuditLogList([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetAuditLogList(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取币别下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFeeCurrencySelectList")]
|
|
|
|
|
public DataResult<List<FeeCurrencySelectRes>> GetFeeCurrencySelectList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetFeeCurrencySelectList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取费用代码下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFeeCodeSelectList")]
|
|
|
|
|
public DataResult<List<FeeCodeSelectRes>> GetFeeCodeSelectList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetFeeCodeSelectList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据类型获取往来单位下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="code">单位类型</param>
|
|
|
|
|
/// <param name="queryKey">查询关键值</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetClientListByCode")]
|
|
|
|
|
public async Task<DataResult<List<ClientSelectRes>>> GetClientListByCode([FromQuery] string code = "", string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetClientListByCode(code, queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据类型获取所有往来单位下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="code">单位类型</param>
|
|
|
|
|
/// <param name="queryKey">查询关键值</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetSupplierAndClientListByCode")]
|
|
|
|
|
public async Task<DataResult<List<ClientSelectRes>>> GetSupplierAndClientListByCode([FromQuery] string code = "", string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetSupplierAndClientListByCode(code, queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据类型获取供应商下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="code">单位类型</param>
|
|
|
|
|
/// <param name="queryKey">查询关键值</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetSupplierListByCode")]
|
|
|
|
|
public async Task<DataResult<List<ClientSelectRes>>> GetSupplierListByCode([FromQuery] string code = "", string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetSupplierListByCode(code, queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取所有往来单位下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">当前往来单位的ID(可空)</param>
|
|
|
|
|
/// <param name="type">类型字符串(与系统配置保持一致,可空)</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet, Route("GetAllClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetAllClientList([FromQuery] long? id = null, [FromQuery] string? type = null)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetAllClientList(id, type);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取船公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCarrierClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetCarrierClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCarrierClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取场站下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetYardClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetYardClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetYardClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取订舱公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetBookingClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetBookingClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetBookingClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取车队下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetTruckClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetTruckClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetTruckClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取委托单位下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetControllerClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetControllerClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetControllerClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取报关行下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCustomClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetCustomClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCustomClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取代理(国外)下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetAgentClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetAgentClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetAgentClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取代理(国内)下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetAgentCnClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetAgentCnClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetAgentCnClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取快递公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetExpressClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetExpressClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetExpressClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取航空公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetAirLinesClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetAirLinesClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetAirLinesClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取发货人下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetShipperClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetShipperClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetShipperClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取收货人下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetConsigneeClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetConsigneeClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetConsigneeClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取通知人下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetNotifyPartyClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetNotifyPartyClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetNotifyPartyClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取仓库下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetWareHouseClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetWareHouseClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetWareHouseClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取保险公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetInsurerClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetInsurerClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetInsurerClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取租箱公司下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetLeasingClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetLeasingClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetLeasingClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取贸易代理下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetTradingAgencyClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetTradingAgencyClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetTradingAgencyClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取船代下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetShipAgencyClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetShipAgencyClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetShipAgencyClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取经营单位下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetEnterpriseClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetEnterpriseClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetEnterpriseClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取码头下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetWharfClientList")]
|
|
|
|
|
public DataResult<List<ClientSelectRes>> GetWharfClientList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetWharfClientList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取部门列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetDeptList")]
|
|
|
|
|
public DataResult<List<DeptSelectRes>> GetDeptList([FromQuery] string orgId = "", string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetDeptList(orgId, queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取操作员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetOperatorUserList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetOperatorUserList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetOperatorUserList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取单证员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetVouchingClerkList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetVouchingClerkList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetVouchingClerkList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取销售员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetSaleUserList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetSaleUserList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetSaleUserList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取报关员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCustomUserList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetCustomUserList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCustomUserList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取财务人员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFinancialStaffList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetFinancialStaffList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetFinancialStaffList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取客服列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCustomerServiceList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetCustomerServiceList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCustomerServiceList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取司机列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetDiverList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetDiverList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetDiverList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取派车调度人员列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetDispatcherList")]
|
|
|
|
|
public DataResult<List<UserSelectRes>> GetDispatcherList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetDispatcherList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取签单方式下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetIssueTypeSelectList")]
|
|
|
|
|
public DataResult<List<IssueTypeSelectRes>> GetIssueTypeSelectList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetIssueTypeSelectList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取集装箱下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetCtnSelectList")]
|
|
|
|
|
public DataResult<List<CodeCtnSelectRes>> GetCtnSelectList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetCtnSelectList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取包装类型下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetPackageSelectList")]
|
|
|
|
|
public DataResult<List<CodePackageSelectRes>> GetPackageSelectList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetPackageSelectList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取船名下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetVesselSelectList")]
|
|
|
|
|
public DataResult<List<CodeVesselSelectRes>> GetVesselSelectList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetVesselSelectList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取航次下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetVoynoSelectList")]
|
|
|
|
|
public DataResult<List<CodeVoynoSelectRes>> GetVoynoSelectList([FromQuery] string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetVoynoSelectList(queryKey);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取运输条款下拉列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetServiceSelectList")]
|
|
|
|
|
public DataResult<List<CodeServiceSelectRes>> GetServiceSelectList()
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetServiceSelectList();
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取用户高级查询条件设置
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="permissionId">权限模块id</param>
|
|
|
|
|
/// <param name="tagNo">标识序号</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetUserQuerySet")]
|
|
|
|
|
public DataResult<SysQuerySet> GetUserQuerySet([FromQuery] string permissionId, int tagNo = 0)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetUserQuerySet(permissionId, tagNo);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新用户高级查询条件设置
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("UpdateUserQuerySet")]
|
|
|
|
|
public DataResult UpdateUserQuerySet([FromBody] UserQuerySetUpdateReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.UpdateUserQuerySet(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取模块新增信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">权限模块Id</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFormSetCreateInfoAsync")]
|
|
|
|
|
public async Task<DataResult<FormSetCreateRes>> GetFormSetCreateInfoAsync([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = await _invokeService.GetFormSetCreateInfoAsync(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
}
|