コード例 #1
0
ファイル: HomeModel.cs プロジェクト: fmm-git/PM.ZTGJ
        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
ファイル: HomeModel.cs プロジェクト: fmm-git/PM.ZTGJ
 public PlanRawMaterialStockModel()
 {
     MonthPlan  = new RawMaterialStockModel();
     BatchPlan  = new RawMaterialStockModel();
     SupplyData = new RawMaterialStockModel();
 }