public override string ToString()
        {
            string tmp = "פרטים אודות חוזה מספר " + Id + " : ";

            tmp += "\nמספר זהות של הילד: " + ChildrensId;
            tmp += "\nתאריך כניסת הילד למסגרת: " + startDate.ToString("dd/mm/yyyy") + ",תאריך סיום: " + endDate.ToString("dd/mm/yyyy");
            tmp += " (משך תקופה: " + range.ToString() + " ) ";
            tmp += "\nפרטים נוספים:";
            if (haveMeeting)
            {
                tmp += "\nנערכה פגישת היכרות עם המטפלת.";
            }
            else
            {
                tmp += "\nלא נערכה פגישת היכרות עם המטפלת";
            }
            if (isContractByHour)
            {
                tmp += "\nהתשלום מתבצע לפי שעות, תעריף לשעה: " + paymentPerHour;
            }
            else
            {
                tmp += "\nהתשלום מתבצע לפי חודש, תעריף לחודש: " + paymentPerMonth;
            }
            tmp += "תשלום בגין עבור כל שעת איחור: " + paymentPerOverHour;
            if (haveDeal)
            {
                tmp += "\n\nהחוזה נכנס לתוקף החל מתאריך: " + startDeal.ToString("dd/mm/yyyy") + ".";
            }
            else
            {
                tmp += "\n\nהחוזה עדיין לא נכנס לתוקף.";
            }

            return(base.ToString());
        }
Beispiel #2
0
        public override string ToString()
        {
            string tmp = "Nanny's name: " + FirstName + " " + LastName + ", Birthday: " + birthDay.ToString("dd/mm/yyyy") + "( " + age.ToString() + " )\n";
            tmp += "Location: " + Address + " floor No. " + Floor;
            if (isElevator)
                tmp += " (with elevator)";
            else
                tmp += " (without elevator)";
            tmp += " \nHave " + YearsOfExperience + " years of experience. \n";
            tmp += "Acceptings chidlrens between " + minAge + " to " + MaxAge + ", maximum of " + MaxChildrens + " chidlrens.";
            if (isPayPerHoure)
                tmp += "\nPayment only per hour, " + PaymentPerHour + "NIS per hour.";
            else
                tmp += "\nPayment per month " + PaymentPerMonth + " NIS, payment per hour " + PaymentPerHour + "NIS.";

            tmp += "\n\nWorking times during the week:\n";

            //Sunday, Monday, Tuesday, Wednesday, Thursday, Friday

            for (int i=0;i<6;i++)
            {
                //switch (i)
                //{
                //    case 0:
                //        tmp+= 
                //        break;
                //}
            }
            return tmp;
        }