贾荣国
3 years ago
14 changed files with 3080 additions and 20 deletions
@ -0,0 +1,103 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Runtime.Serialization; |
||||
|
using System.Xml.Serialization; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
using Win_in.Sfs.Scp.WebApi.Domain.Shared; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 采购订单明细DTO(Purchase order detail DTO)
|
||||
|
/// </summary>
|
||||
|
[Serializable, DataContract] |
||||
|
|
||||
|
public class PurchaseOrderDetailCreateDTO : EntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 订单号(PoNumber)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("poNumber")] |
||||
|
[Display(Name = "订单号(PoNumber)")] |
||||
|
public string PoNumber { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单行(PoLine)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("poLine")] |
||||
|
[Display(Name = "订单行(PoLine)")] |
||||
|
public string PoLine { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 零件号(PartCode)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("partCode")] |
||||
|
[Display(Name = "零件号(PartCode)")] |
||||
|
public string PartCode { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计量单位(Uom)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("uom")] |
||||
|
[Display(Name = "计量单位(Uom)")] |
||||
|
public string Uom { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单数量(Order Qty)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("orderQty")] |
||||
|
[Display(Name = "订单数量(OrderQty)")] |
||||
|
public decimal OrderQty { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 标包计量单位(Standard Pack Uom)
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "标包计量单位(Standard Pack Uom)")] |
||||
|
public string StdPackUom { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 标包数量(Standard Pack Qty)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("stdPackQty")] |
||||
|
[Display(Name = "标包数量(Standard Pack Qty)")] |
||||
|
public decimal StdPackQty { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商包装转换率(SupplierPackConvertRate)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("supplierPackConvertRate")] |
||||
|
[Display(Name = "供应商包装转换率(SupplierPackConvertRate)")] |
||||
|
public decimal SupplierPackConvertRate { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否寄存订单(IsConsignment)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("isConsignment")] |
||||
|
[Display(Name = "是否寄存订单(IsConsignment)")] |
||||
|
public bool IsConsignment { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单行状态(LineStatus)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("lineStatus")] |
||||
|
[Display(Name = "订单行状态(LineStatus)")] |
||||
|
public int LineStatus { set; get; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 备注(Remark)
|
||||
|
/// </summary>
|
||||
|
[DataMember] |
||||
|
[XmlElement("remark")] |
||||
|
[Display(Name = "备注(Remark)")] |
||||
|
public string Remark { set; get; } |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,56 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class ModifyPoDetail : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "FK_WebApi_PODetail_WebApi_PO_Id", |
||||
|
table: "WebApi_PODetail"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<Guid>( |
||||
|
name: "MasterId", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "uniqueidentifier", |
||||
|
nullable: false, |
||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_WebApi_PODetail_MasterId", |
||||
|
table: "WebApi_PODetail", |
||||
|
column: "MasterId"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "FK_WebApi_PODetail_WebApi_PO_MasterId", |
||||
|
table: "WebApi_PODetail", |
||||
|
column: "MasterId", |
||||
|
principalTable: "WebApi_PO", |
||||
|
principalColumn: "Id"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "FK_WebApi_PODetail_WebApi_PO_MasterId", |
||||
|
table: "WebApi_PODetail"); |
||||
|
|
||||
|
migrationBuilder.DropIndex( |
||||
|
name: "IX_WebApi_PODetail_MasterId", |
||||
|
table: "WebApi_PODetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "MasterId", |
||||
|
table: "WebApi_PODetail"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "FK_WebApi_PODetail_WebApi_PO_Id", |
||||
|
table: "WebApi_PODetail", |
||||
|
column: "Id", |
||||
|
principalTable: "WebApi_PO", |
||||
|
principalColumn: "Id"); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue