예제 #1
0
        private RawMaterialStockModel CreateDifferenceRetData(RawMaterialStockModel a, RawMaterialStockModel b)
        {
            var ret = new RawMaterialStockModel();
            //建筑钢筋
            var Building = new RebarTypeRetModel();

            if (a != null && b != null)
            {
                Building.TotalWeight = GetDifferenceData(a.BuildingSteel, b.BuildingSteel);
            }
            ret.BuildingSteel = Building;
            //型钢
            var Steel = new RebarTypeRetModel();

            if (a != null && b != null)
            {
                Steel.TotalWeight = GetDifferenceData(a.SectionSteel, b.SectionSteel);
            }
            ret.SectionSteel = Steel;
            return(ret);
        }
예제 #2
0
 public PlanRawMaterialStockModel()
 {
     MonthPlan  = new RawMaterialStockModel();
     BatchPlan  = new RawMaterialStockModel();
     SupplyData = new RawMaterialStockModel();
 }