模板重新生成可空类型
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Material
|
||||
{
|
||||
public class MaterialCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
public string? Code { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string? UnitName { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string UnitName { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.DtoModel.ERP.Material
|
||||
{
|
||||
public class MaterialGetListInput
|
||||
{
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string UnitName { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,9 @@ namespace Yi.Framework.DtoModel.ERP.Material
|
||||
{
|
||||
public class MaterialGetListOutput: EntityDto<long>
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string UnitName { get; set; }
|
||||
public string Remarks { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string UnitName { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Purchase
|
||||
{
|
||||
public class PurchaseGetListOutput: EntityDto<long>
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public DateTime NeedTime { get; set; }
|
||||
public string Buyer { get; set; }
|
||||
public string Buyer { get; set; } = string.Empty;
|
||||
public long TotalMoney { get; set; }
|
||||
public long PaidMoney { get; set; }
|
||||
public PurchaseStateEnum PurchaseState { get; set; }
|
||||
|
||||
@@ -10,12 +10,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails
|
||||
{
|
||||
public class PurchaseDetailsCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
public string? MaterialUnit { get; set; }
|
||||
|
||||
public string? MaterialName { get; set; }
|
||||
public float UnitPrice { get; set; }
|
||||
public long TotalNumber { get; set; }
|
||||
public long? CompleteNumber { get; set; }
|
||||
public string MaterialName { get; set; }=string.Empty;
|
||||
public string MaterialUnit { get; set; }=string.Empty ;
|
||||
public float UnitPrice { get; set; }
|
||||
public long TotalNumber { get; set; }
|
||||
public long CompleteNumber { get; set; }
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.DtoModel.ERP.PurchaseDetails
|
||||
{
|
||||
public class PurchaseDetailsGetListInput
|
||||
{
|
||||
public string MaterialName { get; set; }=string.Empty;
|
||||
public string MaterialUnit { get; set; }=string.Empty ;
|
||||
public float UnitPrice { get; set; }
|
||||
public long TotalNumber { get; set; }
|
||||
public long CompleteNumber { get; set; }
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,11 +9,11 @@ namespace Yi.Framework.DtoModel.ERP.PurchaseDetails
|
||||
{
|
||||
public class PurchaseDetailsGetListOutput: EntityDto<long>
|
||||
{
|
||||
public string MaterialName { get; set; }
|
||||
public string MaterialUnit { get; set; }
|
||||
public float UnitPrice { get; set; }
|
||||
public long TotalNumber { get; set; }
|
||||
public string MaterialName { get; set; }=string.Empty;
|
||||
public string MaterialUnit { get; set; }=string.Empty ;
|
||||
public float UnitPrice { get; set; }
|
||||
public long TotalNumber { get; set; }
|
||||
public long CompleteNumber { get; set; }
|
||||
public string Remarks { get; set; }
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.DtoModel.ERP.Supplier
|
||||
{
|
||||
public class SupplierGetListInput
|
||||
{
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Name { get; set; }= string.Empty;
|
||||
public string? Address { get; set; }
|
||||
public long? Phone { get; set; }
|
||||
public string? Fax { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -10,8 +10,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit
|
||||
{
|
||||
public class UnitCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
public string? Code { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.DtoModel.ERP.Unit
|
||||
{
|
||||
public class UnitGetListInput
|
||||
{
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,8 @@ namespace Yi.Framework.DtoModel.ERP.Unit
|
||||
{
|
||||
public class UnitGetListOutput: EntityDto<long>
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Remarks { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty;
|
||||
public string? Remarks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse
|
||||
{
|
||||
public class WarehouseCreateUpdateInput : EntityDto<long>
|
||||
{
|
||||
public string? Code { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty ;
|
||||
public string? Remarks { get; set; }
|
||||
public StateEnum? State { get; set; }
|
||||
public StateEnum State { get; set; } = StateEnum.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Common.Enum;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.DtoModel.ERP.Warehouse
|
||||
{
|
||||
public class WarehouseGetListInput
|
||||
{
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty ;
|
||||
public string? Remarks { get; set; }
|
||||
public StateEnum State { get; set; } = StateEnum.Normal;
|
||||
}
|
||||
}
|
||||
@@ -10,9 +10,9 @@ namespace Yi.Framework.DtoModel.ERP.Warehouse
|
||||
{
|
||||
public class WarehouseGetListOutput: EntityDto<long>
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Remarks { get; set; }
|
||||
public StateEnum State { get; set; }
|
||||
public string Code { get; set; }=string.Empty;
|
||||
public string Name { get; set; }=string.Empty ;
|
||||
public string? Remarks { get; set; }
|
||||
public StateEnum State { get; set; } = StateEnum.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user