示例#1
0
 public OutgoingTransaction(string trID, ExpenseDetails expense, DateTime date, Flat paidBy)
 {
     this.trID     = trID;
     this.expense  = expense;
     this.datePaid = date;
     this.paidBy   = paidBy;
 }
示例#2
0
 public void setFlat(Flat flat)
 {
     this.userFlat = flat;
     if (this.isAdmin)
     {
         userFlat.makeManager(3);
     }
     userFlat.setContactNumber(this.mobileNumber);
     userFlat.setEmail(this.email);
     userFlat.setNameOfResident(this.firstName + " " + this.lastName);
 }
 public IncomingTransaction(String trID, Building apartment, Flat paidBy, int amount, DateTime date, Flat collectedBy, string forTheMonth, int year)
 {
     this.trID        = trID;
     this.apartment   = apartment;
     this.paidBy      = paidBy;
     this.amount      = amount;
     this.date        = date;
     this.collectedBy = collectedBy;
     this.forTheMonth = forTheMonth;
     this.year        = year;
 }
示例#4
0
        public FlatCardSquare(Flat flat, Income view)
        {
            InitializeComponent();
            this.flat = flat;
            if (flat.getDues() <= 0)
            {
                changeToPaid();
            }

            else
            {
                changeToUnpaid();
            }

            this.view = view;
        }
示例#5
0
        public Flat getAdminFlat()
        {
            Flat f = null;

            for (int i = 0; i < noOfFloors; i++)
            {
                for (int j = 0; j < flatsPerFloor; j++)
                {
                    if (flats[i, j].getIsManager() == 3)
                    {
                        f = flats[i, j];
                    }
                }
            }

            return(f);
        }
示例#6
0
        public void updateFlatAt(Flat newFlat)
        {
            int flatNumber = newFlat.getFlatNumber();

            flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat;
        }
示例#7
0
 public void setFlatAt(int flatNumber, Flat newFlat)
 {
     flats[(flatNumber / 100) - 1, (flatNumber % 100) - 1] = newFlat;
 }
示例#8
0
 public void setFlatAt(int floor, int flat, Flat newFlat)
 {
     flats[floor, flat] = newFlat;
 }