using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ICSSoft.Entity
{
    public class ICSPurchaseReceiveDoc
    {
        public string ID;//表头ID
        public string RCVTCode;//入库单号
        public string User;//操作人
        public DateTime MTime;//操作时间
        public string VenCode;//供应商编号
        public bool UpdateStock;
        public string WHCode;//仓库编号
        public string DNCode;//到货单编号
        public string POCode;//采购订单号
        public string WorkPoint;//站点 
        public string DNRTCode;
        public string RCVNEGCode { get; set; }
        public bool Enable;
        public bool IsLineApprove { get; set; }//是否行审

        public bool IsSuccess { get; set; }

        public string Message { get; set; }

        public List<ICSPurchaseReceiveDocs> details = new List<ICSPurchaseReceiveDocs>();
    }



    public class ICSPurchaseReceiveDocs
    {
        public int Sequence;//行号
        public string DNSequence;
        public string InvCode;
        public string WHCode;//仓库编号
        public decimal Quantity;
        public decimal Amount;
        public string Currency;
        public decimal UnitPrice;
        public string DNDetailID;
        public string DNRTDetailID;
        public string PODetailID;

        public string ProjectCode;//项目号
        public string Version;//版本
        public string Brand;//厂牌
        public string BatchCode;//批次号
        public string cFree1;//自由项1
        public string cFree2;//自由项2
        public string cFree3;//自由项3
        public string cFree4;//自由项4
        public string cFree5;//自由项5
        public string cFree6;//自由项6
        public string cFree7;//自由项7
        public string cFree8;//自由项8
        public string cFree9;//自由项9
        public string cFree10;//自由项10

        public bool IsSuccess { get; set; }

        public string Message { get; set; }

        public string LogIds { get; set; }

        public string DetailID { get; set; }

        public List<ICSOutsourcingReceiveDocssapprove> detailss { get; set; }
    }


    public class ICSOutsourcingReceiveDocssapprove
    {
        public string ID { get; set; }
        public string DetailID { get; set; }
        public string SourceDetailID { get; set; }
        public string SourceCode { get; set; }
        public string SourceSequence { get; set; }
        public string TransCode { get; set; }
        public string TransSequence { get; set; }
        public string InvCode { get; set; }
        public decimal Quantity { get; set; }
        public decimal Amount { get; set; }
        public string Currency { get; set; }
        public decimal UnitPrice { get; set; }
        public string ODNDetailID { get; set; }
        public string OOID { get; set; }
        public string OODetailID { get; set; }
        public string PickID { get; set; }
        public string WHCode { get; set; }
        public string ProjectCode = string.Empty;//项目号
        public string Version = string.Empty;//版本
        public string Brand = string.Empty;//厂牌
        public string BatchCode = string.Empty;//批次号
        public string cFree1 = string.Empty;//自由项1
        public string cFree2 = string.Empty;//自由项2
        public string cFree3 = string.Empty;//自由项3
        public string cFree4 = string.Empty;//自由项4
        public string cFree5 = string.Empty;//自由项5
        public string cFree6 = string.Empty;//自由项6
        public string cFree7 = string.Empty;//自由项7
        public string cFree8 = string.Empty;//自由项8
        public string cFree9 = string.Empty;//自由项9
        public string cFree10 = string.Empty;//自由项10

    }





}
