/**根据RawMaterialBean创建原料资料对象RawMaterial*/
        public RawMaterial CreateRawMaterial(RawMaterialBean bean)
        {
            RawMaterial beanBack = new RawMaterial();
            beanBack.Id = bean.Id;
            beanBack.RawId = bean.RawId;
            beanBack.MaterialName = bean.MaterialName;
            beanBack.Format = bean.Format;
            beanBack.Pinying = bean.Pinying;
            beanBack.InGoodsUnit = bean.InGoodsUnit;
            beanBack.StockUnit = bean.StockUnit;
            beanBack.InGoodsStock = bean.InGoodsStock;
            beanBack.FormulaUnit = bean.FormulaUnit;
            beanBack.StockFormula = bean.StockFormula;
            beanBack.InGoodsPrice = bean.InGoodsPrice;
            beanBack.StockMax = bean.StockMax;
            beanBack.StockMin = bean.StockMin;
            beanBack.WriteDowns = bean.WriteDowns;
            beanBack.OrderRawAdd = bean.OrderRawAdd;
            beanBack.RawAddPrice = bean.RawAddPrice;
            beanBack.SaleUnit = bean.SaleUnit;
            beanBack.IsWeight = bean.IsWeight;
            beanBack.CheckDay = bean.CheckDay;
            beanBack.Detail = bean.Detail;
            beanBack.CreateDatetime = bean.CreateDatetime;
            beanBack.CreateBy = bean.CreateBy;
            beanBack.Deleted = bean.Deleted;
            beanBack.Status = bean.Status;
            beanBack.UpdateDatetime = bean.UpdateDatetime;
            beanBack.UpdateBy = bean.UpdateBy;
            return beanBack;

        }
        /**根据原料资料对象RawMaterial创建RawMaterialBean对象*/
        public RawMaterialBean CreateRawMaterialBean(RawMaterial bean)   
        {
            this.Id = bean.Id;
            this.RawId = bean.RawId;
            this.MaterialName = bean.MaterialName;
            this.Format = bean.Format;
            this.Pinying = bean.Pinying;
            this.InGoodsUnit = bean.InGoodsUnit;
            this.StockUnit = bean.StockUnit;
            this.InGoodsStock = bean.InGoodsStock;
            this.FormulaUnit = bean.FormulaUnit;
            this.StockFormula = bean.StockFormula;
            this.InGoodsPrice = bean.InGoodsPrice;
            this.StockMax = bean.StockMax;
            this.StockMin = bean.StockMin;
            this.WriteDowns = bean.WriteDowns;
            this.OrderRawAdd = bean.OrderRawAdd;
            this.RawAddPrice = bean.RawAddPrice;
            this.SaleUnit = bean.SaleUnit;
            this.IsWeight = bean.IsWeight;
            this.CheckDay = bean.CheckDay;
            this.Detail = bean.Detail;
            this.CreateDatetime = bean.CreateDatetime;
            this.CreateBy = bean.CreateBy;
            this.Deleted = bean.Deleted;
            this.Status = bean.Status;
            this.UpdateDatetime = bean.UpdateDatetime;
            this.UpdateBy = bean.UpdateBy;
            return this;

        }