//methods
 public override string ToString()
 {
     return("EMP" + EmpID.ToString().PadLeft(3, '0').PadRight(7, ' ') +
            " " + FirstName.PadRight(10, ' ') +
            " " + LastName.PadRight(10, ' ') +
            " " + WorkDate.ToShortDateString().PadRight(15, ' ') +
            " " + Hours.ToString().PadRight(10, ' '));
 }
Example #2
0
        //[DisplayName("更新人")]
        //[Property]
        //[ManyToOne(Column="UpdateUserID")]
        //virtual public User UpdateUser { get; set; }

        public override string ToString()
        {
            return(WorkDate.ToShortDateString());
        }
Example #3
0
 public override string ToString()
 {
     return($"update:{Requester},{WorkDate.ToShortDateString()},{WorkTime}"
            + $",{RestDate.ToShortDateString()},{RestTime}"
            + $",{Remarks}");
 }