예제 #1
0
        public double JisuanTicheng(DingdanDetailsModel dingdanModel, ShoukuanDetailsModel model)
        {
            Dingdan  dingdan  = this.CreateDingdan(dingdanModel);
            Shoukuan shoukuan = this.CreateShoukuan(dingdan, model);

            shoukuan.Jisuan();
            return(shoukuan.Ticheng);
        }
예제 #2
0
        private Shoukuan CreateShoukuan(Dingdan dingdan, ShoukuanDetailsModel detailsModel)
        {
            ShoukuanCreateInfo shoukuanCreateInfo = new ShoukuanCreateInfo();

            shoukuanCreateInfo.Dingdan = dingdan;
            ClassPropertyHelper.ChangeProperty(shoukuanCreateInfo, detailsModel);
            Shoukuan shoukuan = new Shoukuan(shoukuanCreateInfo);

            return(shoukuan);
        }