示例#1
0
        private void SetOfficeIntoView(RealEstateOffice franchiseOffice)
        {
            var office = this.Offices.Add();

            office.OfficeName        = franchiseOffice.OfficeName;
            office.TotalSoldHouse    = franchiseOffice.TotalHouseSold;
            office.TotalCommission   = franchiseOffice.TotalCommission;
            office.AverageCommission = franchiseOffice.AveargeCommission;
            office.Link = "/RealSateFinal/RealEstateDetail/" + franchiseOffice.GetObjectID();
        }
示例#2
0
        private void Handle(Input.CreateTrigger action)
        {
            Db.Scope(() =>
            {
                var newOfficeData = new RealEstateOffice()
                {
                    RealEstateInfo = this.Data as RealEstateInfo,
                    OfficeName     = this.NewOffice.OfficeName,
                };
                var newOffice        = this.Offices.Add();
                newOffice.OfficeName = this.NewOffice.OfficeName;
                newOffice.Link       = "/RealSateFinal/RealEstateDetail/" + newOfficeData.GetObjectID();
            });

            this.Transaction.Commit();
            this.OpenModal = false;
        }