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

/// <summary>
///出入库单子表
/// </summary>
public class InOuts
{
    /// <summary>
    /// 父对象
    /// </summary>
    public InOut parent_object { get; set; }
    /// <summary>
    /// 单据主表ID
    /// </summary>
    public int io_id { get; set; }
    /// <summary>
    /// 单据子表ID
    /// </summary>
    public int ios_id { get; set; }
    /// <summary>
    /// 仓库ID
    /// </summary>
    public int? d_wh_id { get; set; }
    /// <summary>
    /// 仓库
    /// </summary>
    public Warehouse warehouse { get; set; }
    /// <summary>
    /// 部门ID
    /// </summary>
    public int? d_dep_id { get; set; }
    /// <summary>
    /// 部门
    /// </summary>
    public Department department { get; set; }
    /// <summary>
    /// 存货ID
    /// </summary>
    public int i_id { get; set; }
    /// <summary>
    /// 存货实体
    /// </summary>
    public Inventory inventory { get; set; }
    /// <summary>
    /// 自由项1
    /// </summary>
    public string free1 { get; set; }
    /// <summary>
    /// 自由项2
    /// </summary>
    public string free2 { get; set; }
    /// <summary>
    /// 批次
    /// </summary>
    public string batch { get; set; }
    /// <summary>
    /// 本币无税单价
    /// </summary>
    public decimal? unit_price { get; set; }
    /// <summary>
    /// 本币含税单价
    /// </summary>
    public decimal? tax_unit_price { get; set; }
    /// <summary>
    /// 数量
    /// </summary>
    public decimal? quantity { get; set; }
    /// <summary>
    /// 件数
    /// </summary>
    public decimal? num { get; set; }
    /// <summary>
    /// 换算率
    /// </summary>
    public decimal? convert_rate { get; set; }
    /// <summary>
    /// 本币无税金额
    /// </summary>
    public decimal? total_price { get; set; }
    /// <summary>
    /// 本币含税金额
    /// </summary>
    public decimal? tax_total_price { get; set; }
    /// <summary>
    /// 本币税额
    /// </summary>
    public decimal? tax { get; set; }
    /// <summary>
    /// 税率
    /// </summary>
    public decimal? d_tax_rate { get; set; }
    /// <summary>
    /// 累计对账数量
    /// </summary>
    public decimal? dz_quantity { get; set; }
    /// <summary>
    /// 累计对账件数
    /// </summary>
    public decimal? dz_num { get; set; }
    /// <summary>
    /// 加工单子表ID
    /// </summary>
    public int? pmcs_id { get; set; }
    /// <summary>
    /// 领料单子表ID
    /// </summary>
    public int? mos_id { get; set; }
    /// <summary>
    /// 销售订单子表ID
    /// </summary>
    public int? sos_id { get; set; }
    /// <summary>
    /// 发货单子表ID
    /// </summary>
    public int? dos_id { get; set; }
    /// <summary>
    /// 到货单子表ID
    /// </summary>
    public int? aos_id { get; set; }
    /// <summary>
    /// 采购订单子表ID
    /// </summary>
    public int? pos_id { get; set; }
    /// <summary>
    /// 采购订单子表实体
    /// </summary>
    public PurchaseOrders purchase_orders { get; set; }
    /// <summary>
    /// 调拨单子表ID
    /// </summary>
    public int? tss_id { get; set; }
    /// <summary>
    /// 盘点单子表ID
    /// </summary>
    public int? scs_id { get; set; }
    /// <summary>
    /// 采购订单号
    /// </summary>
    public string po_order_number { get; set; }
    /// <summary>
    /// 销售订单子表实体
    /// </summary>
    public SalesOrders sales_orders { get; set; }
    /// <summary>
    /// 销售订单号
    /// </summary>
    public string so_order_number { get; set; }
    /// <summary>
    /// 发货单子表实体
    /// </summary>
    public DeliveryOrders delivery_orders { get; set; }
    /// <summary>
    /// 发货单号
    /// </summary>
    public string do_order_number { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string d_remark { get; set; }
    /// <summary>
    /// 字符自定义项1
    /// </summary>
    public string d_sdefine1 { get; set; }
    /// <summary>
    /// 字符自定义项2
    /// </summary>
    public string d_sdefine2 { get; set; }
    /// <summary>
    /// 字符自定义项3
    /// </summary>
    public string d_sdefine3 { get; set; }
    /// <summary>
    /// 字符自定义项4
    /// </summary>
    public string d_sdefine4 { get; set; }
    /// <summary>
    /// 字符自定义项5
    /// </summary>
    public string d_sdefine5 { get; set; }
    /// <summary>
    /// 数值自定义项1
    /// </summary>
    public decimal? d_ndefine1 { get; set; }
    /// <summary>
    /// 数值自定义项2
    /// </summary>
    public decimal? d_ndefine2 { get; set; }
    /// <summary>
    /// 数值自定义项3
    /// </summary>
    public decimal? d_ndefine3 { get; set; }
    /// <summary>
    /// 数值自定义项4
    /// </summary>
    public decimal? d_ndefine4 { get; set; }
    /// <summary>
    /// 数值自定义项5
    /// </summary>
    public decimal? d_ndefine5 { get; set; }
}
