using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///出入库单主表 by ye_rong 2013
/// </summary>
public class InOut
{
    /// <summary>
    /// 单据主表ID
    /// </summary>
    public int io_id { get; set; }
    /// <summary>
    /// 进出标志(1,入库 0,出库)
    /// </summary>
    public int io_flag { get; set; }
    /// <summary>
    /// 单据类型(1,其它入库单 2,其它出库单 3,采购入库单 4,材料出库单 5,成品入库单 6,销售出库单)
    /// </summary>
    public int order_type { get; set; }
    /// <summary>
    /// 单据号
    /// </summary>
    public string order_number { get; set; }
    /// <summary>
    /// 新增人ID
    /// </summary>
    public int? new_uid { get; set; }
    /// <summary>
    /// 新增人名称
    /// </summary>
    public string new_user { get; set; }
    /// <summary>
    /// 新增日期
    /// </summary>
    public DateTime? new_date { get; set; }
    /// <summary>
    /// 修改人ID
    /// </summary>
    public int? update_uid { get; set; }
    /// <summary>
    /// 修改人名称
    /// </summary>
    public string update_user { get; set; }
    /// <summary>
    /// 修改日期
    /// </summary>
    public DateTime? update_date { get; set; }
    /// <summary>
    /// 审核人ID
    /// </summary>
    public int? verify_uid { get; set; }
    /// <summary>
    /// 审核人名称
    /// </summary>
    public string verify_user { get; set; }
    /// <summary>
    /// 仓库ID
    /// </summary>
    public int? wh_id { get; set; }
    /// <summary>
    /// 仓库
    /// </summary>
    public Warehouse warehouse { get; set; }
    /// <summary>
    /// 收发类型ID
    /// </summary>
    public int? iot_id { get; set; }
    /// <summary>
    /// 收发类型
    /// </summary>
    public IOType io_type { get; set; }
    /// <summary>
    /// 客户ID
    /// </summary>
    public int? cus_id { get; set; }
    /// <summary>
    /// 客户
    /// </summary>
    public Customer customer { get; set; }
    /// <summary>
    /// 销售类型ID
    /// </summary>
    public int? st_id { get; set; }
    /// <summary>
    /// 销售类型
    /// </summary>
    public SaleType saletype { get; set; }
    /// <summary>
    /// 供应商ID
    /// </summary>
    public int? vd_id { get; set; }
    /// <summary>
    /// 供应商
    /// </summary>
    public Vendor vendor { get; set; }
    /// <summary>
    /// 采购类型ID
    /// </summary>
    public int? pt_id { get; set; }
    /// <summary>
    /// 采购类型
    /// </summary>
    public PurchaseType purchasetype { get; set; }
    /// <summary>
    /// 部门ID
    /// </summary>
    public int? dep_id { get; set; }
    /// <summary>
    /// 部门
    /// </summary>
    public Department department { get; set; }
    /// <summary>
    /// 员工ID
    /// </summary>
    public int? ele_id { get; set; }
    /// <summary>
    /// 员工
    /// </summary>
    public Employee employee { get; set; }
    /// <summary>
    /// 发运方式ID
    /// </summary>
    public int? sw_id { get; set; }
    /// <summary>
    /// 发运方式
    /// </summary>
    public ShipWay ship_way { get; set; }
    /// <summary>
    /// 发货地址
    /// </summary>
    public string ship_address { get; set; }
    /// <summary>
    /// 联系人
    /// </summary>
    public string contact { get; set; }
    /// <summary>
    /// 电话
    /// </summary>
    public string phone { get; set; }
    /// <summary>
    /// 来源单据ID
    /// </summary>
    public int? from_id { get; set; }
    /// <summary>
    /// 单据来源
    /// </summary>
    public string from_type { get; set; }
    /// <summary>
    /// 业务类型
    /// </summary>
    public string bus_type { get; set; }
    /// <summary>
    /// 税率
    /// </summary>
    public decimal? tax_rate { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string remark { get; set; }
    /// <summary>
    /// 字符自定义项1
    /// </summary>
    public string sdefine1 { get; set; }
    /// <summary>
    /// 字符自定义项2
    /// </summary>
    public string sdefine2 { get; set; }
    /// <summary>
    /// 字符自定义项3
    /// </summary>
    public string sdefine3 { get; set; }
    /// <summary>
    /// 字符自定义项4
    /// </summary>
    public string sdefine4 { get; set; }
    /// <summary>
    /// 字符自定义项5
    /// </summary>
    public string sdefine5 { get; set; }
    /// <summary>
    /// 数值自定义项1
    /// </summary>
    public decimal? ndefine1 { get; set; }
    /// <summary>
    /// 数值自定义项2
    /// </summary>
    public decimal? ndefine2 { get; set; }
    /// <summary>
    /// 数值自定义项3
    /// </summary>
    public decimal? ndefine3 { get; set; }
    /// <summary>
    /// 数值自定义项4
    /// </summary>
    public decimal? ndefine4 { get; set; }
    /// <summary>
    /// 数值自定义项5
    /// </summary>
    public decimal? ndefine5 { get; set; }
}
