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

/// <summary>
///生产加工单子表
/// </summary>
public class PMCs
{
    /// <summary>
    /// 加工单主表ID
    /// </summary>
    public int pmc_id { get; set; }
    /// <summary>
    /// 加工单子表ID
    /// </summary>
    public int pmcs_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 decimal? num { get; set; }
    /// <summary>
    /// 换算率
    /// </summary>
    public decimal? convert_rate { get; set; }
    /// <summary>
    /// 产量=件数*换算率
    /// </summary>
    public decimal? quantity { get; set; }
    /// <summary>
    /// 单件用量
    /// </summary>
    public decimal? bo_quantity { get; set; }
    /// <summary>
    /// 损耗率
    /// </summary>
    public decimal? att_rate { get; set; }
    /// <summary>
    /// 计划数量=产量*单件用量*(1+损耗率)
    /// </summary>
    public decimal? plan_quantity { 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; }
}
