You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

420 lines
11 KiB
C#

8 months ago
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
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("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 = "")
{
var res = _invokeService.GetDeptList(orgId);
return res;
}
/// <summary>
/// 获取操作员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetOperatorUserList")]
public DataResult<List<UserSelectRes>> GetOperatorUserList()
{
var res = _invokeService.GetOperatorUserList();
return res;
}
/// <summary>
/// 获取单证员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetVouchingClerkList")]
public DataResult<List<UserSelectRes>> GetVouchingClerkList()
{
var res = _invokeService.GetVouchingClerkList();
return res;
}
/// <summary>
/// 获取销售员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetSaleUserList")]
public DataResult<List<UserSelectRes>> GetSaleUserList()
{
var res = _invokeService.GetSaleUserList();
return res;
}
/// <summary>
/// 获取报关员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetCustomUserList")]
public DataResult<List<UserSelectRes>> GetCustomUserList()
{
var res = _invokeService.GetCustomUserList();
return res;
}
/// <summary>
/// 获取财务人员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetFinancialStaffList")]
public DataResult<List<UserSelectRes>> GetFinancialStaffList()
{
var res = _invokeService.GetFinancialStaffList();
return res;
}
/// <summary>
/// 获取客服列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetCustomerServiceList")]
public DataResult<List<UserSelectRes>> GetCustomerServiceList()
{
var res = _invokeService.GetCustomerServiceList();
return res;
}
/// <summary>
/// 获取司机列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetDiverList")]
public DataResult<List<UserSelectRes>> GetDiverList()
{
var res = _invokeService.GetDiverList();
return res;
}
/// <summary>
/// 获取派车调度人员列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetDispatcherList")]
public DataResult<List<UserSelectRes>> GetDispatcherList()
{
var res = _invokeService.GetDispatcherList();
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()
{
var res = _invokeService.GetCtnSelectList();
return res;
}
/// <summary>
/// 获取包装类型下拉列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetPackageSelectList")]
public DataResult<List<CodePackageSelectRes>> GetPackageSelectList()
{
var res = _invokeService.GetPackageSelectList();
return res;
}
/// <summary>
/// 获取船名下拉列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetVesselSelectList")]
public DataResult<List<CodeVesselSelectRes>> GetVesselSelectList()
{
var res = _invokeService.GetVesselSelectList();
return res;
}
/// <summary>
/// 获取航次下拉列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetVoynoSelectList")]
public DataResult<List<CodeVoynoSelectRes>> GetVoynoSelectList()
{
var res = _invokeService.GetVoynoSelectList();
return res;
}
/// <summary>
/// 获取运输条款下拉列表
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetServiceSelectList")]
public DataResult<List<CodeServiceSelectRes>> GetServiceSelectList()
{
var res = _invokeService.GetServiceSelectList();
return res;
}
}