
using LJLib.DAL.SQL;

namespace JLHHJSvr.Com.Model
{
    [PK(new[] { "mtrlid,pfcode,pfgroup,SonMtrlid,wrkgrpid,sonpfcode" })]
    public class u_PrdPF
    {
        public int? mtrlid { get; set; }
        public string pfcode { get; set; }
        public string pfgroup { get; set; }
        public int? SonMtrlid { get; set; }
        public byte? ifreputate { get; set; }
        public byte? ifover { get; set; }
        public decimal? updownrate { get; set; }
        public decimal? Sonscale { get; set; }
        public decimal? SonLoss { get; set; }
        public decimal? SonDECLosS { get; set; }
        public decimal? Sonahead { get; set; }
        public string dscrp { get; set; }
        public decimal? pfgroupqty { get; set; }
        public string pfgroupmode { get; set; }
        public string promode { get; set; }
        public int? printid { get; set; }
        public int? wrkgrpid { get; set; }
        public string status { get; set; }
        public string sonpfcode { get; set; }
        public string woodcode { get; set; }
        public string pcode { get; set; }
        public byte? mtrlkind { get; set; }
        public string pfklmode { get; set; }
        public int? dipztype { get; set; }
        public decimal? scllloss { get; set; }
        public byte? dytype { get; set; }
        public decimal? advancetime { get; set; }
        public decimal? sclldecloss { get; set; }
        public decimal? baseqty { get; set; }
        public string SonLossstr { get; set; }
        public decimal? buyarg { get; set; }
        public byte? scllqtytype { get; set; }
        public byte? if_follow { get; set; }
        public decimal? lasthour { get; set; }
        public int? modleid { get; set; }
        public string modlename { get; set; }
        public string wenli { get; set; }
        public string fengbian { get; set; }
        public string paikong { get; set; }
        public string luoji { get; set; }
        public string penyou { get; set; }
        public string azcode { get; set; }
        public string partname { get; set; }
        public string sclldeclossstr { get; set; }
        public string sonscale_str { get; set; }
        public string mtrlname { get; set; }
        public string mtrlmode { get; set; }
        public string unit { get; set; }

        public byte syncflag { get; set; }
        #region 辅助
        /// <summary>
        /// 主物料
        /// </summary>
        public string mtrlcode { get; set; }
        /// <summary>
        /// 下级物料
        /// </summary>
        public string mtrlcode_son { get; set; }
        public decimal? price_bj_notax { get; set; }
        public string wrkgrpname { get; set; }
        /// <summary>
        /// 核价清单1的领料工组
        /// </summary>
        public string wrkgrpcode1 { get; set; }
        /// <summary>
        /// 核价清单2的领料工组
        /// </summary>
        public string wrkgrpcode2 { get; set; }
        public string wip_name { get; set; }
        public string wip_type { get; set; }
        #endregion
    }
}
