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

namespace ICSSoft.Entity
{
    public class ICSTransferApplyDoc
    {
        public string FromDepCode { get; set; }//调出部门编码
        public string FromWHCode { get; set; }//调出仓库编码
        public string ToDepCode { get; set; }//调入部门编码
        public string ToWHCode { get; set; }//调入仓库编码
        public string TACode { get; set; }//调拨申请单号
        public bool UpdateTodoQuantity { get; set; }//是否更新库存
        public string User { get; set; }//操作人
        public string WorkPoint { get; set; } //站点
        public bool UpdateStock { get; set; }
        public DateTime MTime { get; set; }//操作时间

        public bool IsSuccess { get; set; }

        public string Message { get; set; }

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

    public class ICSTransApplyLine
    {
        public string Sequence { get; set; }//行号
        public string InvCode { get; set; }//料品编码
        public string OutWhCode { get; set; }//调出仓库编码
        public string INWhCode { get; set; }//调入仓库编码
        public string SupplierCode { get; set; }//供应商编码
        public decimal Quantity { get; set; }//数量
        public decimal Amount { get; set; }//辅计量数量

        public string TADetailID { get; set; }//调拨申请单表体ID
        public string ProjectCode { get; set; }//项目号
        public string Version { get; set; }//版本
        public string Brand { get; set; }//厂牌
        public string BatchCode { get; set; }//批次号
        public string cFree1 { get; set; }//自由项1
        public string cFree2 { get; set; }//自由项2
        public string cFree3 { get; set; }//自由项3
        public string cFree4 { get; set; }//自由项4
        public string cFree5 { get; set; }//自由项5
        public string cFree6 { get; set; }//自由项6
        public string cFree7 { get; set; }//自由项7
        public string cFree8 { get; set; }//自由项8
        public string cFree9 { get; set; }//自由项9
        public string cFree10 { get; set; }//自由项10

        public string LogIds { get; set; }
    }

    public class TransferApplyToTransferOutAPIModel
    {
        public bool IsApproved { get; set; }
        public int DocStatus { get; set; }
        public long TransApplyLineKey { get; set; }
        public string OtherID { get; set; }
        public List<TransferApplyLine> tptoTransoutDTOS = new List<TransferApplyLine>();
    }

    public class TransferApplyLine
    {
        public DateTime TransOutBusDate { get; set; }
        public decimal TransOutQty { get; set; }
        public string TransInWh_Code { get; set; }
        public string TransInOrg_Code { get; set; }
        public string TransOutWh_Code { get; set; }
        public long TransInBin { get; set; }
        public long TransOutBin { get; set; }
        public string LotInfo_Code { get; set; }
        public string TransOutBinCode { get; set; }
        public string TransInBinCode { get; set; }
        public long TransOutDocType { get; set; }
        public DescFlexSegments DescFlexField { get; set; }
        public string Memo { get; set; }
    }

    public class DescFlexSegments
    {
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg3 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg4 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg5 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg6 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg7 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg8 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg9 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg10 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg11 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg12 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg13 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg14 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg15 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg16 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg17 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg18 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg19 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg20 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg21 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg22 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg23 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg24 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg25 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg26 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg27 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg28 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg29 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg30 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg31 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg32 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg33 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg34 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg35 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg36 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg37 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg38 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg39 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg40 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg41 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg42 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg43 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg44 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg45 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg46 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg47 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg48 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg49 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PubDescSeg50 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg3 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg4 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg5 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg6 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg7 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg8 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg9 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg10 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg11 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg12 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg13 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg14 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg15 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg16 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg17 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg18 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg19 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg20 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg21 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg22 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg23 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg24 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg25 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg26 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg27 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg28 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg29 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PrivateDescSeg30 { get; set; }
    }

    public class TransferApplyToTransferOutApiReturnModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int ResCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ResMsg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<DataItem> Data { get; set; }

    }
    public class DataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public bool IsSucess { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string U9CVersion { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string OtherID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public long ID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 未将对象引用设置到对象的实例。
        /// </summary>
        public string ErrorMsg { get; set; }

    }

    public class TransferOutDocInfo
    {
        public long ID { get; set; }
        public string DocNo { get; set; }
    }
    public class ApplyToTransferOutReturnValue
    {
        public string ID { get; set; }
        public string DocNo { get; set; }
        public bool IsSuccess { get; set; }
        public string Message { get; set; }
    }
    public class TransferInUnApproveModel
    {
        public string OtherID { get; set; }
        public long ID { get; set; }
        public string Code { get; set; }
        public string HoldOrReleaseReasonCode { get; set; }
        public string CancelResean { get; set; }
    }
    public class TransferOutDeleteModel
    {
        public string OtherID { get; set; }
        public long ID { get; set; }
        public string Code { get; set; }
        public string HoldOrReleaseReasonCode { get; set; }
        public string CancelResean { get; set; }
    }

    public class TransferOutApproveModel
    {

        /// <summary>
        /// 
        /// </summary>
        public string OtherID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long ID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Code { get; set; }

    }

    public class TransferOutApproveReturnModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int ResCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ResMsg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<DataItem> Data { get; set; }

    }


}
