新增MES模块,包含供应商、客户、车辆和地磅数据记录管理功能,支持免密接口和数据同步。更新相关控制器、实体、服务和数据库配置,优化权限管理和数据字典支持,确保系统的灵活性和可扩展性。
This commit is contained in:
25
yy-admin-master/YY.Admin.Core/Entity/MesXslCustomer.cs
Normal file
25
yy-admin-master/YY.Admin.Core/Entity/MesXslCustomer.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace YY.Admin.Core.Entity;
|
||||
|
||||
public class MesXslCustomer
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string? CustomerCode { get; set; }
|
||||
public string? CustomerName { get; set; }
|
||||
public string? CustomerShortName { get; set; }
|
||||
public string? CustomerRegion { get; set; } // Dict: xslmes_customer_region
|
||||
public string? ErpCode { get; set; }
|
||||
public string? Status { get; set; } // Dict: xslmes_customer_status "0"启用 "1"停用
|
||||
public int? IzEnable { get; set; } // 与 Status 联动,由服务端写入,本端只读
|
||||
public string? CustomerDesc { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
public string? CreateBy { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string? UpdateBy { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public string? SysOrgCode { get; set; }
|
||||
public int? Version { get; set; }
|
||||
|
||||
public string StatusText => Status == "1" ? "停用" : "启用";
|
||||
}
|
||||
23
yy-admin-master/YY.Admin.Core/Entity/MesXslSupplier.cs
Normal file
23
yy-admin-master/YY.Admin.Core/Entity/MesXslSupplier.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace YY.Admin.Core.Entity;
|
||||
|
||||
public class MesXslSupplier
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string? SupplierCode { get; set; }
|
||||
public string? SupplierName { get; set; }
|
||||
public string? SupplierShortName { get; set; }
|
||||
public string? ErpCode { get; set; }
|
||||
public string? Remark { get; set; }
|
||||
public string? Status { get; set; } // Dict: xslmes_supplier_status "0"启用 "1"停用
|
||||
public int? TenantId { get; set; }
|
||||
public string? CreateBy { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string? UpdateBy { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public string? SysOrgCode { get; set; }
|
||||
public int? Version { get; set; }
|
||||
|
||||
public string StatusText => Status == "1" ? "停用" : "启用";
|
||||
}
|
||||
46
yy-admin-master/YY.Admin.Core/Entity/MesXslVehicle.cs
Normal file
46
yy-admin-master/YY.Admin.Core/Entity/MesXslVehicle.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
namespace YY.Admin.Core.Entity;
|
||||
|
||||
public class MesXslVehicle
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string? PlateNumber { get; set; }
|
||||
|
||||
/// <summary>车辆归属:1客户 2供应商 3本公司</summary>
|
||||
public string? VehicleBelong { get; set; }
|
||||
|
||||
public decimal? TareWeightKg { get; set; }
|
||||
public decimal? LoadCapacity { get; set; }
|
||||
public string? UnitId { get; set; }
|
||||
public string? LoadUnit { get; set; }
|
||||
public string? CustomerIds { get; set; }
|
||||
public string? CustomerShortName { get; set; }
|
||||
public string? SupplierId { get; set; }
|
||||
public string? SupplierName { get; set; }
|
||||
public string? SupplierShortName { get; set; }
|
||||
public decimal? VehicleLength { get; set; }
|
||||
public decimal? VehicleWidth { get; set; }
|
||||
public decimal? VehicleHeight { get; set; }
|
||||
public string? DriverName { get; set; }
|
||||
public string? DriverPhone { get; set; }
|
||||
|
||||
/// <summary>状态:0启用 1停用</summary>
|
||||
public string? Status { get; set; }
|
||||
|
||||
public int? TenantId { get; set; }
|
||||
public string? CreateBy { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string? UpdateBy { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public string? SysOrgCode { get; set; }
|
||||
public int? Version { get; set; }
|
||||
|
||||
public string VehicleBelongText => VehicleBelong switch
|
||||
{
|
||||
"1" => "客户",
|
||||
"2" => "供应商",
|
||||
"3" => "本公司",
|
||||
_ => VehicleBelong ?? ""
|
||||
};
|
||||
|
||||
public string StatusText => Status == "1" ? "停用" : "启用";
|
||||
}
|
||||
Reference in New Issue
Block a user