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

namespace ICS.CreateIssue
{
    public class CreateMaterialINDocAPIModel
    {
        public string OtherID { get; set; }
        public DocType MaterialDeliveryDocType { get; set; }
        public int IssueType { get; set; }
        public string Memo { get; set; }
        public IssuePerson IssuePerson { get; set; }
        public IssueDepartment IssueDepartment { get; set; }
        public DemandOrg DemandOrg { get; set; }
        public DateTime BusinessDate { get; set; }

        public DescFlexField DescFlexField { get; set; }
        public List<LineData> MaterialDeliveryDocLines { get; set; }
    }

    public class DocType
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class IssuePerson
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class IssueDepartment
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class DemandOrg
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class LineData
    {
        public int SourceDocType { get; set; }
        public IssueApplyDocLine IssueApplyDocLine { get; set; }
        public IssueApplyDocLineSum IssueApplyDocLineSum { get; set; }
        public MOPickList MOPickList { get; set; }

        public PLSPickList PLSPickList { get; set; }
        public Wh Wh { get; set; }
        public Bin Bin { get; set; }
        public decimal IssuedQty { get; set; }
        public decimal DemandQty { get; set; }
        public Project Project { get; set; }
        public Lot Lot { get; set; }

        public Item Item { get; set; }
        public int RecedeReason { get; set; }

        public DescFlexField DescFlexField { get; set; }
        public Grade Grade { get; set; }
        public SeiBan SeiBan { get; set; }
        public decimal CostUOMQty { get; set; }
    }
    public class SeiBan
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Grade
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Item
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Lot
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Project
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Bin
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class Wh
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class PLSPickList
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class IssueApplyDocLine
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class IssueApplyDocLineSum
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }

    public class MOPickList
    {
        public long ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
    }
    public class DescFlexField
    {
        /// <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 OperateMaterialINModel
    {
        public string OtherID { get; set; }
        public long ID { get; set; }
        public string DocNo { get; set; }
        public int CurrentSysVersion { get; set; }
        public bool isAutoApp { get; set; }
    }

    public class CreateMaterialINWebApiReturnModel
    {
        /// <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 string u9c_version { get; set; }

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

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

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

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

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

        public string m_datas { get; set; }

    }
}
