public double JisuanTicheng(DingdanDetailsModel dingdanModel, ShoukuanDetailsModel model) { Dingdan dingdan = this.CreateDingdan(dingdanModel); Shoukuan shoukuan = this.CreateShoukuan(dingdan, model); shoukuan.Jisuan(); return(shoukuan.Ticheng); }
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); }