Esempio n. 1
0
 public override string ToString()
 {
     return(PrivateName.ToString() + FamilyName.ToString() + MailAddress.ToString() + Status.ToString() +
            RegistrationDate.ToString() + EntryDate.ToString() + ReleaseDate.ToString() + Area.ToString() +
            Type.ToString() + Adults.ToString() + Children.ToString() + Pool.ToString() + Jacuzzi.ToString()
            + Garden.ToString() + ChildrensAttractions.ToString());
 }
Esempio n. 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(100);

            sb.Append("Name: ").Append(Name).Append(", type: ").Append(Type).Append(Environment.NewLine)
            .Append("Owner: ").Append(Owner.Name).Append(", phone number: ").Append(Owner.PhoneNumber)
            .Append(Environment.NewLine).Append("Registration date: ")
            .Append(RegistrationDate.ToString("dd.MM.yyyy"));

            return(sb.ToString());
        }
Esempio n. 3
0
        /// <summary>
        /// this function describing the guest request
        /// </summary>
        /// <returns>
        /// returns a string with the details
        /// </returns>
        public override string ToString()
        {
            //string result = " מספר הבקשה לאירוח:  " + GuestRequestKey + '\n' + "שם הלקוח: " + PrivateName + '\n' + ' ' + FamilyName + '\n' + "מייל: " + MailAddress + '\n' + " סטטוס הבקשה: " + Status + '\n' +
            //    "תאריך רישום למערכת: " + (RegistrationDate.ToString()).Remove(10) + '\n' + "תאריך רצוי לתחילת הנופש: " + (EntryDate.ToString()).Remove(10) + '\n' + "תאריך רצוי לסיום הנופש: " + (ReleaseDate.ToString()).Remove(10) + '\n' +
            //    "אזור הנופש הרצוי בארץ: " + Area + '\n' + "סוג יחידת האירוח הרצוי: " + Type + '\n' + "מספר המבוגרים: " + Adults + '\n' + "מספר ילדים: " + Children + '\n' +
            //    "בריכה: " + Pool + '\n' + "ג'קוזי: " + Jacuzzi + '\n' + " גינה: " + Garden + '\n';
            string result = "Guest Request Key:  " + GuestRequestKey + '\n' + "Name: " + PrivateName + ' ' + FamilyName + '\n' + "Mail Address: " + MailAddress + '\n' + " Status: " + Status + '\n' +
                            "Registration Date: " + (RegistrationDate.ToString()).Remove(10) + '\n' + "Entry Date: " + (EntryDate.ToString()).Remove(10) + '\n' + "Release Date: " + (ReleaseDate.ToString()).Remove(10) + '\n' +
                            "Area: " + Area + '\n' + "Type of Hosting Unit: " + Type + '\n' + "Adults: " + Adults + '\n' + " Children: " + Children + '\n' +
                            " Pool: " + Pool + '\n' + "Jacuzzi: " + Jacuzzi + '\n' + "Garden: " + Garden + '\n';

            return(result);
        }
Esempio n. 4
0
        public bool Add(string name, string password)
        {
            bool res       = false;
            bool nameExist = CheckNameInDb(name);

            if (nameExist == true)
            {
                res = false;
            }
            else
            {
                RegistrationDate = DateTime.Now;
                string date = RegistrationDate.ToString();
                string stm  = "INSERT INTO " + DbTable + " (name, registration_date, password) VALUES ('" + name + "', '" + date + "', '" + password + "')";
                Db.RunNonQuery(stm);
                res = true;
            }
            return(res);
        }
Esempio n. 5
0
        public override string ToString()  // יש לממש בהתאם לדרישות הפרוייקט.
        {
            string str = "";

            str += "Guest request key : " + GuestRequestKey + "\n" + "Geust name: " + PrivateName + " " + FamilyName + "\n" +
                   "MailAddress: " + MailAddress + "\n" +
                   "Status: " + Status + "\n" +
                   "Registration Date: " + RegistrationDate.ToString() + "\n" +
                   "Entry date: " + EntryDate.Date.ToString() + "\n" +
                   "Release date: " + ReleaseDate.Date.ToString() + "\n"
                   + "Area: " + Area + "\n" +
                   "type: " + type + "\n" +
                   "Adults: " + Adults + "\n" +
                   "Children" + Children + "\n" +
                   "Pool: " + Pool + "\n" +
                   "Jacuzzi: " + Jacuzzi + "\n" +
                   "Garden: " + Garden + "\n" +
                   "Childrens Attractions: " + ChildrensAttractions + "\n";
            return(str);
        }
Esempio n. 6
0
 public override string ToString()
 {
     return("Guest Request Key: " + GuestRequestKey.ToString() + "\n" +
            "First Name: " + FirstName + "\n" +
            "LastName: " + LastName + "\n" +
            "MailAddress: " + MailAddress + "\n" +
            "Status: " + Status.ToString() + "\n" +
            "RegistrationDate: " + RegistrationDate.ToString() + "\n" +
            "EntryDate: " + EntryDate.ToString() + "\n" +
            "ReleaseDate: " + ReleaseDate.ToString() + "\n" +
            "Area: " + Area.ToString() + "\n" +
            "SubArea: " + SubArea + "\n" +
            "Type of unit: " + Type.ToString() + "\n" +
            "number of adoults: " + Adults.ToString() + "\n" +
            "number of children: " + Children.ToString() + "\n" +
            "want swimming pool? " + Pool.ToString() + "\n" +
            "want jacuzzi? " + Jacuzzi.ToString() + "\n" +
            "want a garden? " + Garden.ToString() + "\n" +
            "want children attractions? " + ChildrensAttractions.ToString() + "\n");
 }
        public override string ToString()
        {
            string ret = "בקשה מספר: " + GuestRequestKey
                         + "\nשם פרטי: " + PrivateName
                         + "\t\tשם משפחה: " + FamilyName
                         + "\nמייל: " + MailAddress
                         + "\tמספר מבוגרים: " + Adults
                         + "\nמספר ילדים: " + Children
                         + "\t\tתאריך רישום: " + RegistrationDate.ToString("dd/MM/yyyy")
                         + "\nתאריך כניסה: " + EntryDate.ToString("dd/MM/yyyy")
                         + "\tתאריך יציאה: " + ReleaseDate.ToString("dd/MM/yyyy")
                         + "\nסטטוס: " + HebrewEnum.GuestReqStatus(Status)
                         + "\t\tאיזור: " + HebrewEnum.Area(Area)
                         + "\nסוג: " + HebrewEnum.GuestReqType(Type)
                         + "\t\tבריכה: " + HebrewEnum.options(Pool)
                         + "\nג'קוז: " + HebrewEnum.options(Jacuzzi)
                         + "\t\tגינה: " + HebrewEnum.options(Garden)
                         + "\nאטרקציות לילדים: " + HebrewEnum.options(ChildrensAttractions);

            return(ret);
        }
Esempio n. 8
0
 public override string ToString()
 {
     return("Guest Request Key: " + GuestRequestKey.ToString() + "\n"
            + "Private Name: " + PrivateName.ToString() + "\n"
            + "Family Name: " + FamilyName.ToString() + "\n"
            + "Mail Address: " + MailAddress.ToString() + "\n"
            + "Request's status: " + Status.ToString() + "\n"
            + "Registration Date: " + RegistrationDate.ToString() + "\n"
            + "Entry Date: " + EntryDate.ToString() + "\n"
            + "Release Date: " + ReleaseDate.ToString() + "\n"
            + "Request Area: " + Area.ToString() + "\n"
            + "Request Type: " + Type.ToString() + "\n"
            + "Adults: " + Adults.ToString() + "\n"
            + "Children: " + Children.ToString() + "\n"
            + "Pool: " + Pool.ToString() + "\n"
            + "Jacuzzi " + Jacuzzi.ToString() + "\n"
            + "Garden: " + Garden.ToString() + "\n"
            + "Beach: " + Beach.ToString() + "\n"
            + "Attractions: " + ChildrenAttractions.ToString() + "\n"
            + "Minimum price: " + minPrice.ToString() + "\n"
            + "Maximum price: " + maxPrice.ToString() + "\n");
 }
        /// <summary>
        /// The function returns the GuestRequest information in a string type
        /// </summary>
        /// <returns>The GuestRequest information in string type</returns>
        ///<seealso cref="Object.ToString()"/>
        public override string ToString()
        {
            string res = "";

            res += "Guest Request Key: " + GuestRequestKey + "\n";
            res += "Private Name: " + PrivateName + "\n";
            res += "Family Name: " + FamilyName + "\n";
            res += "Mail Address: " + MailAddress + "\n";
            res += "Status: " + Status + "\n";
            res += "Registration Date: " + RegistrationDate.ToString("dd.MM.yyyy") + "\n";
            res += "Entry Date: " + EntryDate.ToString("dd.MM.yyyy") + "\n";
            res += "Release Date: " + ReleaseDate.ToString("dd.MM.yyyy") + "\n";
            res += "Area: " + Area + "\n";
            res += "Type: " + Type + "\n";
            res += "Adults: " + Adults + "\n";
            res += "Children: " + Children + "\n";
            res += "Pool: " + Pool + "\n";
            res += "Jacuzzi: " + Jacuzzi + "\n";
            res += "Garden" + Garden + "\n";
            res += "Childrens Attractions: " + ChildrensAttractions + "\n";
            return(res);
        }
Esempio n. 10
0
        public override string ToString()
        {
            return("Guest Request Key: " + GuestRequestKey.ToString() + "\n"
                   + "PrivateName: " + PrivateName.ToString() + "\n"
                   + "FamilyName: " + FamilyName.ToString() + "\n"
                   + "Area: " + Area.ToString() + "\n"
                   + "Sub Area: " + SubArea.ToString() + "\n"
                   + "Type: " + Type.ToString() + "\n"
                   + "Adults: " + Adults.ToString() + "\n"
                   + "Children: " + Children.ToString() + "\n"
                   + "Pool: " + Pool.ToString() + "\n"
                   + "Jacuzzi " + Jacuzzi.ToString() + "\n"
                   + "Garden: " + Garden.ToString() + "\n"
                   + "Status: " + Status.ToString() + "\n"
                   + "Mail Address: " + MailAddress.ToString() + "\n"
                   + "Registration Date:  " + RegistrationDate.ToString() + "\n"
                   + "EntryDate: " + EntryDate.ToString() + "\n"
                   + "ReleaseDate: " + ReleaseDate.ToString() + "\n"

                   + "Synagogue: " + Synagogue.ToString() + "\n"
                   + "Childrens Attractions:  " + ChildrensAttractions.ToString() + "\n"
                   );
        }
Esempio n. 11
0
        public override string ToString()
        {
            string Answer = "Last Name: " + LastName + ", \nFirst Name: " + FirstName + ", \nEmail Address: " + Email + ", \nOrder Number: " + GuestRequestKey + ", \nRegistration Date: " + RegistrationDate.ToString("dd/MM/yyyy") + ", \nEntry Date: " + EntryDate.ToString("dd/MM/yyyy") + ", \nRelease Date: " + ReleaseDate.ToString("dd/MM/yyyy") +
                            ", \nHosting Unit Type: " + HostingUnitType + ", \nArea: " + Area + ", \nClient Requirement Status: " + RequirementStatus + ",\nNum Of Adults: " + NumOfAdults + ", \nNum Of Kids: " + NumOfKids +
                            ", \nPool: " + Pool + ", \nJacuzzi: " + Jacuzzi + ", \nPorch: " + Porch + ", \nAttractions: " + ChildrenAttractions + ", \nFood: " + Food + "\n";

            return(Answer);
        }
Esempio n. 12
0
        public override string ToString()
        {
            string isSubArea = SubArea != default(Enum_s.SubArea) ? " Specific Area: " + SubArea.ToString("g") : "";

            return("Guest Request ID: " + GuestRequestKey.ToString() + "   Name: "
                   + FirstName + ' ' + LastName + "   Mail Address: " + MailAddress +
                   "\nOrder Status: " + Status.ToString("g") + " Application Date: " + RegistrationDate.ToString("d") +
                   " Check In Date: " + EntryDate.ToString("d") + " Check Out Date: " + ReleaseDate.ToString("d") +
                   "\nArea: " + Area.ToString("g") + isSubArea + " Hosting Unit Type: " + Type + "\nYour Group: Adults- " +
                   Adults.ToString() + " Children- " + Children.ToString() + " Special Additions: Pool- " + Pool.ToString("g") +
                   " Jucuzzi- " + Jacuzzi.ToString("g") + " Garden- " + Garden.ToString("g") + " Attractions For Children- " +
                   ChildrenAttractions.ToString("g") + '\n');
        }