using System;
using System.Collections.Generic;

namespace Siger.Middlelayer.WmsRepository.Response
{
    public class ResponseBillPrintInfo
    {
        public string storagename { get; set; }

        public string businessname { get; set; }
        public string businessContractUser { get; set; }
        public string phone { get; set; }
        public string stateName { get; set; }
        public string createName { get; set; }
        public string checkName { get; set; }
        
        public List<ResponseStockAccessOrderDetail> detail { get; set; }

        public int id { get; set; }

        /// <summary>
        /// 供应商或客户id
        /// </summary>
        public int contactid { get; set; }

        /// <summary>
        /// 类别,存储类别实际的名称
        /// </summary>
        public string category { get; set; }

        /// <summary>
        /// 仓库id
        /// </summary>
        public int storageid { get; set; }

        /// <summary>
        /// 出入库类型 1 入库  2 出库
        /// </summary>
        public int access_type { get; set; }

        /// <summary>
        /// 单号
        /// </summary>
        public string order_number { get; set; }

        /// <summary>
        /// 原始单号
        /// </summary>
        public string origin_order_number { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int auditor { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime audit_time { get; set; }

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

        /// <summary>
        /// 反审原因
        /// </summary>
        public string audit_fail_reason { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public int order_status { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int creator { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int updator { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime update_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int projectid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }

        public string option { get; set; }


        /// <summary>
        /// 领料人
        /// </summary>
        public int picker { get; set; } = 0;

        /// <summary>
        /// 字典key值
        /// </summary>
        public int category_code { get; set; } = 0;
    }
    public class ResponseStockAccessOrderDetail
    {
        public string businessName { get; set; }

        public int id { get; set; }

        /// <summary>
        /// 入库单id
        /// </summary>
        public int orderid { get; set; }

        public int businessid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string stock_number { get; set; }

        /// <summary>
        /// 储位id
        /// </summary>
        public int storage_location_id { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public string serial_number { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string batch_number { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int material_id { get; set; }

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

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

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

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

        /// <summary>
        /// 数量
        /// </summary>
        public int quantity { get; set; }

        /// <summary>
        /// 出入库数量
        /// </summary>
        public int access_quantity { get; set; }

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

        /// <summary>
        /// 入库人
        /// </summary>
        public int auditor { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime audit_time { get; set; }

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

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

        /// <summary>
        /// 
        /// </summary>
        public int creator { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int updator { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime update_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int projectid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
    }
}
