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

namespace ICSSoft.Entity
{
    public class ship
    {
        public string scode;
        public DateTime fhrq;
        public string ywlx;
        public string xsdd;
        public string fph;
        public string idaccount;
        public string iddep;
        public string idowner;
        public string shdz;
        public string fyfs;
        public string bz;
        public string snote;

        public string PrDS1 { get; set; }
        public string PrDS2 { get; set; }
        public string PrDS3 { get; set; }
        public string PrDS4 { get; set; }
        public string PrDS5 { get; set; }
        public string PrDS6 { get; set; }
        public string PrDS7 { get; set; }
        public string PrDS8 { get; set; }
        public string PrDS9 { get; set; }
        public string PrDS10 { get; set; }
        public string PuDS1 { get; set; }
        public string PuDS2 { get; set; }
        public string PuDS3 { get; set; }
        public string PuDS4 { get; set; }
        public string PuDS5 { get; set; }
        public string PuDS6 { get; set; }
        public string PuDS7 { get; set; }
        public string PuDS8 { get; set; }
        public string PuDS9 { get; set; }
        public string PuDS10 { get; set; }
        public List<shipLine> lstShip;
    }
    public class shipLine
    {
        public string ckmc;
        public string chhm;
        public string idproduct;
        public string sproductspec;
        public string cpxh;
        public decimal zjl;
        public string ph;
        public decimal dbamount;
        public decimal dbprice;
        public decimal bhsbj;
        public decimal hsbj;
        public decimal wsje;
        public decimal jshj;
        public decimal zkl;
        public decimal zke;
        public string xmbm;
        public string xmmc;
        public string pm;
        public decimal zdsj;
        public decimal shuil;
        public decimal se;

        public string PrDS1 { get; set; }
        public string PrDS2 { get; set; }
        public string PrDS3 { get; set; }
        public string PrDS4 { get; set; }
        public string PrDS5 { get; set; }
        public string PrDS6 { get; set; }
        public string PrDS7 { get; set; }
        public string PrDS8 { get; set; }
        public string PrDS9 { get; set; }
        public string PrDS10 { get; set; }
        public string PuDS1 { get; set; }
        public string PuDS2 { get; set; }
        public string PuDS3 { get; set; }
        public string PuDS4 { get; set; }
        public string PuDS5 { get; set; }
        public string PuDS6 { get; set; }
        public string PuDS7 { get; set; }
        public string PuDS8 { get; set; }
        public string PuDS9 { get; set; }
        public string PuDS10 { get; set; }
    }
    public class shipModel
    {
        public string WorkPoint;//编码
        public DateTime StartTime;//开始时间
        public DateTime EndTime;//结束时间
    }

    public class CreateSMShipOperationResult
    {
        public string Message { get; set; }
        public string Data { get; set; }

        public bool Success { get; set; }
    }

    //public class SMShipModel
    //{
    //    List<SMShip> details { get; set; }
    //}
    public class SMShip
    {
        public string ShipDocNo;
        //public string InvCode;
        public string ShipDocTypeID;
        public string ShipDocTypeCode;
        public int SrcDocType;
        public string SDNCode;
        public string SrcDocNo;

        
        public int SrcDocLineNo;

        public int Sequence;
        public int SrcDocSubLineNo;
        public long SrcDocLineID;
        public string WH;
        //public string Locations;
        public Decimal CurShipQty1;
        public Decimal CurShipQty2;
        public bool SOIsConsign;
        public string ShipDate;
        public string ShipMemo;
        public int DocStatus;
        public Decimal FinallyPriceTC;
        public string LotCode;
        public SHPurDS DescFlexField;
        public SHLinePurDS LineDescFlexField;

        public string PrivateDescSeg1 { get; set; }
        public string PrivateDescSeg2 { get; set; }
        public string PrivateDescSeg3 { get; set; }
        public string PrivateDescSeg4 { get; set; }
        public string PrivateDescSeg5 { get; set; }
        public string PrivateDescSeg6 { get; set; }
        public string PrivateDescSeg7 { get; set; }
        public string PrivateDescSeg8 { get; set; }
        public string PrivateDescSeg9 { get; set; }
        public string PrivateDescSeg10 { get; set; }
        public string PubDescSeg1 { get; set; }
        public string PubDescSeg2 { get; set; }
        public string PubDescSeg3 { get; set; }
        public string PubDescSeg4 { get; set; }
        public string PubDescSeg5 { get; set; }
        public string PubDescSeg6 { get; set; }
        public string PubDescSeg7 { get; set; }
        public string PubDescSeg8 { get; set; }
        public string PubDescSeg9 { get; set; }
        public string PubDescSeg10 { get; set; }

        public string linePrivateDescSeg1 { get; set; }
        public string linePrivateDescSeg2 { get; set; }
        public string linePrivateDescSeg3 { get; set; }
        public string linePrivateDescSeg4 { get; set; }
        public string linePrivateDescSeg5 { get; set; }
        public string linePrivateDescSeg6 { get; set; }
        public string linePrivateDescSeg7 { get; set; }
        public string linePrivateDescSeg8 { get; set; }
        public string linePrivateDescSeg9 { get; set; }
        public string linePrivateDescSeg10 { get; set; }
        public string linePubDescSeg1 { get; set; }
        public string linePubDescSeg2 { get; set; }
        public string linePubDescSeg3 { get; set; }
        public string cFree1 { get; set; }
        public string cFree2 { get; set; }
        public string cFree3 { get; set; }

        public List<Location> Locations;
        public OptionalSplitTerm[] OptionalSplitTerm;
        public Decimal Quantity;

        public string BatchCode;
        public string WHCode;
        public string LogId;

        //public List<SMShipLine> lstShip;
    }



    public class SHPurDS
    {
        public string PrivateDescSeg1 { get; set; }
        public string PrivateDescSeg2 { get; set; }
        public string PrivateDescSeg3 { get; set; }
        public string PrivateDescSeg4 { get; set; }
        public string PrivateDescSeg5 { get; set; }
        public string PrivateDescSeg6 { get; set; }
        public string PrivateDescSeg7 { get; set; }
        public string PrivateDescSeg8 { get; set; }
        public string PrivateDescSeg9 { get; set; }
        public string PrivateDescSeg10 { get; set; }
        public string PubDescSeg1 { get; set; }
        public string PubDescSeg2 { get; set; }
        public string PubDescSeg3 { get; set; }
        public string PubDescSeg4 { get; set; }
        public string PubDescSeg5 { get; set; }
        public string PubDescSeg6 { get; set; }
        public string PubDescSeg7 { get; set; }
        public string PubDescSeg8 { get; set; }
        public string PubDescSeg9 { get; set; }
        public string PubDescSeg10 { get; set; }
    }
    public class SHLinePurDS
    {
        public string PrivateDescSeg1 { get; set; }
        public string PrivateDescSeg2 { get; set; }
        public string PrivateDescSeg3 { get; set; }
        public string PrivateDescSeg4 { get; set; }
        public string PrivateDescSeg5 { get; set; }
        public string PrivateDescSeg6 { get; set; }
        public string PrivateDescSeg7 { get; set; }
        public string PrivateDescSeg8 { get; set; }
        public string PrivateDescSeg9 { get; set; }
        public string PrivateDescSeg10 { get; set; }

        public string PrivateDescSeg30 { get; set; }
        public string PubDescSeg1 { get; set; }
        public string PubDescSeg2 { get; set; }
        public string PubDescSeg3 { get; set; }
        public string cFree1 { get; set; }
        public string cFree2 { get; set; }
        public string cFree3 { get; set; }
    }
    public class Location
    {
        public long ID;
        public string LocationNo;
        public decimal LocationQtyInvAmount;
        public DateTime DealItemTime;

    }
    public class OptionalSplitTerm
    {
    }
    public class SMShipLine
    {
        public string ckmc;
        public string chhm;
        public string idproduct;
        public string sproductspec;
        public string cpxh;
        public decimal zjl;
        public string xmmc;
        public string pm;
        public decimal zdsj;
        public decimal shuil;
        public decimal se;
    }
}
