using DS.Module.Core;
using DS.Module.Core.Extensions;
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.Sys.Dtos;
using DS.WMS.Core.Sys.Entity;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
namespace DS.WMS.MainApi.Controllers;
///
/// 公共模块-客户端
///
public class ClientCommonController : ApiController
{
private readonly IClientCommonService _invokeService;
///
/// 构造函数
///
///
public ClientCommonController(IClientCommonService invokeService)
{
_invokeService = invokeService;
}
///
/// 获取商品下拉列表-客户端
///
/// 商品代码
///
[HttpGet]
[Route("GetClientGoodsList")]
public async Task>> GetClientGoodsList([FromQuery] string code)
{
var res = await _invokeService.GetClientGoodsList(code);
return res;
}
///
/// 根据id获取往来单位参数信息
///
///
///
[HttpGet]
[Route("GetClientParamListById")]
public async Task>> GetClientParamListById([FromQuery] string id)
{
var res = await _invokeService.GetClientParamListById(id);
return res;
}
///
/// 根据用户ids获取用户邮箱信息
///
/// 用户Ids
///
[HttpGet]
[Route("GetUseEmailListByIds")]
public async Task>> GetUseEmailListByIds([FromQuery] long[] ids)
{
var res = await _invokeService.GetUseEmailListByIds(ids);
return res;
}
///
/// 根据类型获取用户下拉列表
///
///
[HttpGet]
[Route("GetUserListByCode")]
public async Task>> GetUserListByCode([FromQuery] string code = "")
{
var res = await _invokeService.GetUserListByCode(code);
return res;
}
///
/// 获取工厂信息下拉列表-客户端
///
///
[HttpGet]
[Route("GetFactorySelectList")]
public DataResult> GetFactorySelectList()
{
var res = _invokeService.GetFactorySelectList();
return res;
}
///
/// 根据单位获取数量箱型信息
///
///
[HttpPost]
[Route("GetUnitSelectInfo")]
public DataResult GetUnitSelectInfo([FromBody] UnitSelectInfoReq req)
{
var res = _invokeService.GetUnitSelectInfo(req);
return res;
}
///
/// 根据类型获取往来单位下拉及业务信息列表
///
///
[HttpPost]
[Route("GetClientSelectInfoByCode")]
public DataResult GetClientSelectInfoByCode([FromBody] ClientSelectInfoReq req)
{
var res = _invokeService.GetClientSelectInfoByCode(req);
return res;
}
///
/// 获取往来单位下拉集合列表
///
///
[HttpGet]
[Route("GetMultiClientList")]
public async Task>> GetMultiClientList()
{
var res = await _invokeService.GetMultiClientList();
return res;
}
///
/// 提取汇率信息 先提取CodeConfig 参数ExchangeRateType(ETD\AccountDate\CreateTime) 再提取SysConfig配置,最后默认取业务订单ETD
///
///
[HttpGet]
[Route("GetBusinessCurrencyExchangeInfo")]
public DataResult GetBusinessCurrencyExchangeInfo([FromBody] BusinessCurrencyExchangeReq req)
{
var res = _invokeService.GetBusinessCurrencyExchangeInfo(req);
return res;
}
///
/// 获取揽货人信息
///
///
[HttpGet]
[Route("GetSaleList")]
public DataResult> GetSaleList()
{
var res = _invokeService.GetSaleList();
return res;
}
///
/// 获取审核日志列表
///
/// 业务Id
///
[HttpGet]
[Route("GetAuditLogList")]
public async Task>> GetAuditLogList([FromQuery] string id)
{
var res = await _invokeService.GetAuditLogList(id);
return res;
}
///
/// 获取币别下拉列表
///
///
[HttpGet]
[Route("GetFeeCurrencySelectList")]
public DataResult> GetFeeCurrencySelectList()
{
var res = _invokeService.GetFeeCurrencySelectList();
return res;
}
///
/// 获取费用代码下拉列表
///
///
[HttpGet]
[Route("GetFeeCodeSelectList")]
public DataResult> GetFeeCodeSelectList()
{
var res = _invokeService.GetFeeCodeSelectList();
return res;
}
///
/// 根据类型获取往来单位下拉列表
///
/// 单位类型
///
[HttpGet]
[Route("GetClientListByCode")]
public DataResult> GetClientListByCode([FromQuery]string code = "")
{
var res = _invokeService.GetClientListByCode(code);
return res;
}
///
/// 获取所有往来单位下拉列表
///
///
[HttpGet]
[Route("GetAllClientList")]
public DataResult> GetAllClientList()
{
var res = _invokeService.GetAllClientList();
return res;
}
///
/// 获取船公司下拉列表
///
///
[HttpGet]
[Route("GetCarrierClientList")]
public DataResult> GetCarrierClientList()
{
var res = _invokeService.GetCarrierClientList();
return res;
}
///
/// 获取场站下拉列表
///
///
[HttpGet]
[Route("GetYardClientList")]
public DataResult> GetYardClientList()
{
var res = _invokeService.GetYardClientList();
return res;
}
///
/// 获取订舱公司下拉列表
///
///
[HttpGet]
[Route("GetBookingClientList")]
public DataResult> GetBookingClientList()
{
var res = _invokeService.GetBookingClientList();
return res;
}
///
/// 获取车队下拉列表
///
///
[HttpGet]
[Route("GetTruckClientList")]
public DataResult> GetTruckClientList()
{
var res = _invokeService.GetTruckClientList();
return res;
}
///
/// 获取委托单位下拉列表
///
///
[HttpGet]
[Route("GetControllerClientList")]
public DataResult> GetControllerClientList()
{
var res = _invokeService.GetControllerClientList();
return res;
}
///
/// 获取报关行下拉列表
///
///
[HttpGet]
[Route("GetCustomClientList")]
public DataResult> GetCustomClientList()
{
var res = _invokeService.GetCustomClientList();
return res;
}
///
/// 获取代理(国外)下拉列表
///
///
[HttpGet]
[Route("GetAgentClientList")]
public DataResult> GetAgentClientList()
{
var res = _invokeService.GetAgentClientList();
return res;
}
///
/// 获取代理(国内)下拉列表
///
///
[HttpGet]
[Route("GetAgentCnClientList")]
public DataResult> GetAgentCnClientList()
{
var res = _invokeService.GetAgentCnClientList();
return res;
}
///
/// 获取快递公司下拉列表
///
///
[HttpGet]
[Route("GetExpressClientList")]
public DataResult> GetExpressClientList()
{
var res = _invokeService.GetExpressClientList();
return res;
}
///
/// 获取航空公司下拉列表
///
///
[HttpGet]
[Route("GetAirLinesClientList")]
public DataResult> GetAirLinesClientList()
{
var res = _invokeService.GetAirLinesClientList();
return res;
}
///
/// 获取发货人下拉列表
///
///
[HttpGet]
[Route("GetShipperClientList")]
public DataResult> GetShipperClientList()
{
var res = _invokeService.GetShipperClientList();
return res;
}
///
/// 获取收货人下拉列表
///
///
[HttpGet]
[Route("GetConsigneeClientList")]
public DataResult> GetConsigneeClientList()
{
var res = _invokeService.GetConsigneeClientList();
return res;
}
///
/// 获取通知人下拉列表
///
///
[HttpGet]
[Route("GetNotifyPartyClientList")]
public DataResult> GetNotifyPartyClientList()
{
var res = _invokeService.GetNotifyPartyClientList();
return res;
}
///
/// 获取仓库下拉列表
///
///
[HttpGet]
[Route("GetWareHouseClientList")]
public DataResult> GetWareHouseClientList()
{
var res = _invokeService.GetWareHouseClientList();
return res;
}
///
/// 获取保险公司下拉列表
///
///
[HttpGet]
[Route("GetInsurerClientList")]
public DataResult> GetInsurerClientList()
{
var res = _invokeService.GetInsurerClientList();
return res;
}
///
/// 获取租箱公司下拉列表
///
///
[HttpGet]
[Route("GetLeasingClientList")]
public DataResult> GetLeasingClientList()
{
var res = _invokeService.GetLeasingClientList();
return res;
}
///
/// 获取贸易代理下拉列表
///
///
[HttpGet]
[Route("GetTradingAgencyClientList")]
public DataResult> GetTradingAgencyClientList()
{
var res = _invokeService.GetTradingAgencyClientList();
return res;
}
///
/// 获取船代下拉列表
///
///
[HttpGet]
[Route("GetShipAgencyClientList")]
public DataResult> GetShipAgencyClientList()
{
var res = _invokeService.GetShipAgencyClientList();
return res;
}
///
/// 获取经营单位下拉列表
///
///
[HttpGet]
[Route("GetEnterpriseClientList")]
public DataResult> GetEnterpriseClientList()
{
var res = _invokeService.GetEnterpriseClientList();
return res;
}
///
/// 获取码头下拉列表
///
///
[HttpGet]
[Route("GetWharfClientList")]
public DataResult> GetWharfClientList()
{
var res = _invokeService.GetWharfClientList();
return res;
}
///
/// 获取部门列表
///
///
[HttpGet]
[Route("GetDeptList")]
public DataResult> GetDeptList([FromQuery]string orgId = "")
{
var res = _invokeService.GetDeptList(orgId);
return res;
}
///
/// 获取操作员列表
///
///
[HttpGet]
[Route("GetOperatorUserList")]
public DataResult> GetOperatorUserList()
{
var res = _invokeService.GetOperatorUserList();
return res;
}
///
/// 获取单证员列表
///
///
[HttpGet]
[Route("GetVouchingClerkList")]
public DataResult> GetVouchingClerkList()
{
var res = _invokeService.GetVouchingClerkList();
return res;
}
///
/// 获取销售员列表
///
///
[HttpGet]
[Route("GetSaleUserList")]
public DataResult> GetSaleUserList()
{
var res = _invokeService.GetSaleUserList();
return res;
}
///
/// 获取报关员列表
///
///
[HttpGet]
[Route("GetCustomUserList")]
public DataResult> GetCustomUserList()
{
var res = _invokeService.GetCustomUserList();
return res;
}
///
/// 获取财务人员列表
///
///
[HttpGet]
[Route("GetFinancialStaffList")]
public DataResult> GetFinancialStaffList()
{
var res = _invokeService.GetFinancialStaffList();
return res;
}
///
/// 获取客服列表
///
///
[HttpGet]
[Route("GetCustomerServiceList")]
public DataResult> GetCustomerServiceList()
{
var res = _invokeService.GetCustomerServiceList();
return res;
}
///
/// 获取司机列表
///
///
[HttpGet]
[Route("GetDiverList")]
public DataResult> GetDiverList()
{
var res = _invokeService.GetDiverList();
return res;
}
///
/// 获取派车调度人员列表
///
///
[HttpGet]
[Route("GetDispatcherList")]
public DataResult> GetDispatcherList()
{
var res = _invokeService.GetDispatcherList();
return res;
}
///
/// 获取签单方式下拉列表
///
///
[HttpGet]
[Route("GetIssueTypeSelectList")]
public DataResult> GetIssueTypeSelectList()
{
var res = _invokeService.GetIssueTypeSelectList();
return res;
}
///
/// 获取集装箱下拉列表
///
///
[HttpGet]
[Route("GetCtnSelectList")]
public DataResult> GetCtnSelectList()
{
var res = _invokeService.GetCtnSelectList();
return res;
}
///
/// 获取包装类型下拉列表
///
///
[HttpGet]
[Route("GetPackageSelectList")]
public DataResult> GetPackageSelectList()
{
var res = _invokeService.GetPackageSelectList();
return res;
}
///
/// 获取船名下拉列表
///
///
[HttpGet]
[Route("GetVesselSelectList")]
public DataResult> GetVesselSelectList()
{
var res = _invokeService.GetVesselSelectList();
return res;
}
///
/// 获取航次下拉列表
///
///
[HttpGet]
[Route("GetVoynoSelectList")]
public DataResult> GetVoynoSelectList()
{
var res = _invokeService.GetVoynoSelectList();
return res;
}
///
/// 获取运输条款下拉列表
///
///
[HttpGet]
[Route("GetServiceSelectList")]
public DataResult> GetServiceSelectList()
{
var res = _invokeService.GetServiceSelectList();
return res;
}
///
/// 获取用户高级查询条件设置
///
/// 权限模块id
/// 标识序号
///
[HttpGet]
[Route("GetUserQuerySet")]
public DataResult GetUserQuerySet([FromQuery] string permissionId, int tagNo = 0)
{
var res = _invokeService.GetUserQuerySet(permissionId, tagNo);
return res;
}
///
/// 更新用户高级查询条件设置
///
///
///
[HttpPost]
[Route("UpdateUserQuerySet")]
public DataResult UpdateUserQuerySet([FromBody] UserQuerySetUpdateReq req)
{
var res = _invokeService.UpdateUserQuerySet(req);
return res;
}
///
/// 获取模块新增信息
///
/// 权限模块Id
///
[HttpGet]
[Route("GetFormSetCreateInfoAsync")]
public async Task> GetFormSetCreateInfoAsync([FromQuery] string id)
{
var res = await _invokeService.GetFormSetCreateInfoAsync(id);
return res;
}
}