master
wet 3 years ago
parent affd81f4e9
commit 335b2f384e

@ -0,0 +1,94 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.Model.Ams
{
public class AMS_Cntrno
{
/// <summary>
/// 主键
/// </summary>
public string GID { get; set; }
/// <summary>
/// 父键
/// </summary>
public string HID { get; set; }
/// <summary>
/// 箱号
/// </summary>
public string CNTRNO { get; set; }
/// <summary>
/// 封号
/// </summary>
public string SEALNO { get; set; }
/// <summary>
/// 箱型
/// </summary>
public string CTNALL { get; set; }
/// <summary>
/// HSCode
/// </summary>
public string HSCode { get; set; }
/// <summary>
/// 品名
/// </summary>
public string ProductName { get; set; }
/// <summary>
/// 唛头
/// </summary>
public string MARKS { get; set; }
/// <summary>
/// 件数
/// </summary>
public int? PKGS { get; set; }
/// <summary>
/// 包装单位
/// </summary>
public string KINDPKGS { get; set; }
/// <summary>
/// 毛重
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
/// 体积
/// </summary>
public decimal? CBM { get; set; }
/// <summary>
/// 联合国危险品编号
/// </summary>
public string DUNNO { get; set; }
/// <summary>
/// 危险品联系人姓名
/// </summary>
public string LINKMAN { get; set; }
}
}

@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.Model.Ams
{
public class AMS_House
{
/// <summary>
/// 主键
/// </summary>
public string GID { get; set; }
/// <summary>
/// 父键
/// </summary>
public string PID { get; set; }
/// <summary>
/// 货代提单号
/// </summary>
public string HBLNo { get; set; }
/// <summary>
/// 发货人名称
/// </summary>
public string SHIPPERNAME { get; set; }
/// <summary>
/// 发货人地址
/// </summary>
public string SHIPPERADDR { get; set; }
/// <summary>
/// 发货人电话
/// </summary>
public string SHIPPERTEL { get; set; }
/// <summary>
/// 收货人名称
/// </summary>
public string CONSIGNEE { get; set; }
/// <summary>
///收货人地址
/// </summary>
public string CONSIGNEEDADDR { get; set; }
/// <summary>
/// 收货人电话
/// </summary>
public string CONSIGNEETEL { get; set; }
/// <summary>
/// 通知人名称
/// </summary>
public string NOTIFYPARTYNAME { get; set; }
/// <summary>
///通知人地址
/// </summary>
public string NOTIFYPARTYADDR { get; set; }
/// <summary>
/// 通知人电话
/// </summary>
public string NOTIFYPARTYTEL { get; set; }
}
}

@ -0,0 +1,108 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.Model.Ams
{
public class AMSMaster
{
/// <summary>
/// 主键
/// </summary>
public string GID { get; set; }
/// <summary>
/// 用户id
/// </summary>
public string UserID { get; set; }
/// <summary>
/// 用户
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 公司id
/// </summary>
public string CompID { get; set; }
/// <summary>
/// 公司
/// </summary>
public string CompName { get; set; }
/// <summary>
/// 船公司id
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VOYNO { get; set; }
/// <summary>
/// 运输方式
/// </summary>
public string ShippingType { get; set; }
/// <summary>
/// 发货地
/// </summary>
public string SHIPPERADDR { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadingPort { get; set; }
/// <summary>
/// 最后一个非美港
/// </summary>
public string LastNoUsPort { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 预计出发
/// </summary>
public DateTime? ETA { get; set; }
/// <summary>
/// 预计到达
/// </summary>
public DateTime? ETD { get; set; }
public DateTime? CreateTime { get; set; }
public DateTime? LastUpdate { get; set; }
}
}

@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.Model.Ams
{
internal class AmsModel
{
public string GID { get; set; }
/// <summary>
/// 公司ID
/// </summary>
public string CompId { get; set; }
}
}

@ -0,0 +1,164 @@
using djy.Model.Ams;
using System;
using System.Collections.Generic;
namespace djy.Model.Ams
{
public class AMSDto
{
}
public class AMSSaveDto
{
/// <summary>
/// 主键
/// </summary>
public string GID { get; set; }
/// <summary>
/// 船公司id
/// </summary>
public string CARRIERID { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string CARRIER { get; set; }
/// <summary>
/// 提单号
/// </summary>
public string MBLNO { get; set; }
/// <summary>
/// 船名
/// </summary>
public string VESSEL { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VOYNO { get; set; }
/// <summary>
/// 运输方式
/// </summary>
public string ShippingType { get; set; }
/// <summary>
/// 发货地
/// </summary>
public string SHIPPERADDR { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string LoadingPort { get; set; }
/// <summary>
/// 最后一个非美港
/// </summary>
public string LastNoUsPort { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string PORTDISCHARGE { get; set; }
/// <summary>
/// 预计出发
/// </summary>
public DateTime? ETA { get; set; }
/// <summary>
/// 预计到达
/// </summary>
public DateTime? ETD { get; set; }
public List<AMS_HouseDto> HouseDto { get; set; }
}
public class AMS_HouseDto {
/// <summary>
/// 主键
/// </summary>
public string GID { get; set; }
/// <summary>
/// 父键
/// </summary>
public string PID { get; set; }
/// <summary>
/// 货代提单号
/// </summary>
public string HBLNo { get; set; }
/// <summary>
/// 发货人名称
/// </summary>
public string SHIPPERNAME { get; set; }
/// <summary>
/// 发货人地址
/// </summary>
public string SHIPPERADDR { get; set; }
/// <summary>
/// 发货人电话
/// </summary>
public string SHIPPERTEL { get; set; }
/// <summary>
/// 收货人名称
/// </summary>
public string CONSIGNEE { get; set; }
/// <summary>
///收货人地址
/// </summary>
public string CONSIGNEEDADDR { get; set; }
/// <summary>
/// 收货人电话
/// </summary>
public string CONSIGNEETEL { get; set; }
/// <summary>
/// 通知人名称
/// </summary>
public string NOTIFYPARTYNAME { get; set; }
/// <summary>
///通知人地址
/// </summary>
public string NOTIFYPARTYADDR { get; set; }
/// <summary>
/// 通知人电话
/// </summary>
public string NOTIFYPARTYTEL { get; set; }
public List<AMS_Cntrno> CntrnoDto { get; set; }
}
}

@ -11,15 +11,12 @@
<ItemGroup>
<Compile Remove="BillCenter\**" />
<Compile Remove="db\**" />
<Compile Remove="Dto\**" />
<Compile Remove="Enum\**" />
<EmbeddedResource Remove="BillCenter\**" />
<EmbeddedResource Remove="db\**" />
<EmbeddedResource Remove="Dto\**" />
<EmbeddedResource Remove="Enum\**" />
<None Remove="BillCenter\**" />
<None Remove="db\**" />
<None Remove="Dto\**" />
<None Remove="Enum\**" />
</ItemGroup>

@ -0,0 +1,17 @@
using djy.Model.Ams;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.IService.Ams
{
public interface IAms
{
void SaveInfo(AMSSaveDto Dto);
}
}

@ -18,8 +18,4 @@
<ProjectReference Include="..\djy.Model\djy.Model.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Ams\" />
</ItemGroup>
</Project>

@ -1,22 +1,25 @@
using Common.Repository;
using Common.Repository.Interface;
using djy.IService.Ams;
using djy.Model.Ams;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djy.Service.Ams
{
public class ServiceAms
public class ServiceAms : IAms
{
public void Update()
private IDapperDBBase dapperDB;
public void SaveInfo(AMSSaveDto Dto)
{
}
}
}

@ -1,16 +1,32 @@
using Common;
using Common.Repository.Interface;
using djy.Model.Ams;
using djy.Service.Ams;
using Microsoft.AspNetCore.Mvc;
using System;
namespace djy_AmsApi.Controllers
{
public class AmsController : ApiBase
{
[HttpPost("bindclient")]
public string Update(string id)
{
private ServiceAms ams;
[HttpPost("Add")]
public Response Add(AMSSaveDto Dto)
{
return id;
var result = new Response();
try
{
ams.Add(Dto);
}
catch (Exception ex)
{
result.Code = 500;
result.Message = ex.InnerException?.Message ?? ex.Message;
}
return result;
}
}
}

Loading…
Cancel
Save