예제 #1
0
    public ReceptionLog DeepCopy()
    {
        ReceptionLog other = new ReceptionLog();

        other.month = this.month;

        other.standardRoom = this.standardRoom.DeepCopy();
        other.doubleRoom = this.doubleRoom.DeepCopy();
        other.deluxeRoom = this.deluxeRoom.DeepCopy();
        other.suiteRoom = this.suiteRoom.DeepCopy();
        other.masterSuiteRoom = this.masterSuiteRoom.DeepCopy();

        other.conferenceHeadCost = this.conferenceHeadCost;
        other.conferenceWeekendDiscount = this.conferenceWeekendDiscount;
        other.conferenceRoomsDiscount = this.conferenceRoomsDiscount;
        other.groupHeadCost = this.groupHeadCost;
        other.groupRoomsDiscount = this.groupRoomsDiscount;
        other.eventsCost = this.eventsCost;
        other.conferenceRevenueSplitFood = this.conferenceRevenueSplitFood;
        other.groupRevenueSplitFood = this.groupRevenueSplitFood;
        other.eventRevenueSplitFood = this.eventRevenueSplitFood;
        other.conferenceConfRoomsDiscount = this.conferenceConfRoomsDiscount;
        other.eventConfRoomsDiscount = this.eventConfRoomsDiscount;
        other.eventWeekEndDiscount = this.eventWeekEndDiscount;

        other.roomsAvailable = this.roomsAvailable;
        other.weekdayRoomsBooked = this.weekdayRoomsBooked;
        other.weekendRoomsBooked = this.weekendRoomsBooked;
        return other;
    }
예제 #2
0
    //create monthly reports
    public void GenerateNewMonthReports()
    {
        newMonthlyReport = new MonthlyReport(Calendar.GetDate());
        monthlyReports.Add(newMonthlyReport);

        //-----------------------------------------reception log
        currentLog = new ReceptionLog();
        currentLog = GameObject.FindGameObjectWithTag("RatesInput").GetComponent<RatesSetup>().newReceptionLog.DeepCopy();
        //Adds a new ReceptionLog to the list and Reference to the log we're currently editing.
        receptionLogs.Add (currentLog);
        currentLog.month = receptionLogs.Count;
    }
예제 #3
0
 public void Add(ReceptionLog report)
 {
     receptionLogList.Add(report);
 }