示例#1
0
        }                                                  //our


        public override string ToString()//
        {
            string toPrint = "contract: \n number: " + Num_Of_Contract + "\n nanny id:  " + Nanny_Id + "\n child id: " + Child_Id + "\n Meeting took place: " + Meeting
                             + "\n Contract Was Signed : " + Contract_Was_Signed + " \n salary per hour: " + Hour_Salary + "\n Total salary after discount: " + Month_Salary + "\n including social benefits: " + Including_Social_Benefits
                             + "\n start date: " + Start_Date.ToShortDateString() + "\n end date: " + End_Date.ToShortDateString() + "\n";

            return(toPrint);
        }
示例#2
0
 public override string ToString()
 {
     return($"ID: {ID}\nFirst Name: {First_Name}\nLast Name: {Last_Name}\nStreet: {Street}\nCity: {City}\nState: {State}\nZip_Code: {Zip_Code}\nPhone: {Phone}\nStatus: {Status}\nSocial Security: {Ss_Number}\nSalary: {Salary}\nStart Date: {Start_Date.ToShortDateString()}\nTermination Date: {Termination_Date}\nBirth Date: {Birth_Date}\nHealth Insurance: {Bene_health_ins}\nLife Insurance: {Bene_life_ins}\nDay Care: {Bene_day_care}\nSex: {Sex}\nFax: {Fax}\nEmail: {Email}\nExtension: {Extension}\nTarget Missed: {TargetMissed}\nManager: {Manager}\nJob: {Job_ID}\nDepartment: {Dept_ID} ");
 }