//-----------------------------------------------------------------------
// <copyright file=" siger_wms_stock_access_order.cs" company="xxxx Enterprises">
// * Copyright (C) 2019 xxxx Enterprises All Rights Reserved
// * version : 4.0.30319.42000
// * author  : auto generated by T4
// * FileName: siger_wms_stock_access_order.cs
// * history : Created by T4 04/01/2019 09:14:26
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.WmsRepository.Entities
{
    /// <summary>
    /// siger_wms_stock_access_order Entity Model
    /// </summary>   
    public class siger_wms_stock_access_order : WmsEntityBase
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        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;

        /// <summary>
        /// 生产领料-部门
        /// </summary>
        public int departid { get; set; } = 0;
        /// <summary>
        /// guid
        /// </summary>
        public string accessWo { get; set; }
    }
}
