public override string ToStringFile() { string s = ","; return(ID.PadRight(10, ' ') + s + HoTen.PadRight(22, ' ') + s + GioiTinh.PadRight(11, ' ') + s + NgayThangNamSinh.ToString("dd/MM/yyyy").PadRight(13, ' ') + s + Sdt.ToString().PadRight(12, ' ') + s + Email.PadRight(20, ' ') + s + ViTri.PadRight(10) + s + LuongCoBan.ToString().PadRight(14, ' ') + s + HoaHong.ToString().PadRight(12, ' ') + s + Luong); }
public virtual void xuat() { Console.Write(ID.PadRight(10, ' ') + HoTen.PadRight(22, ' ') + GioiTinh.PadRight(11, ' ') + NgayThangNamSinh.ToString("dd - mm - yyyy").PadRight(13, ' ') + ViTri.PadRight(10) + LuongCoBan + "\n"); }
public override string ToString() { return(ID.PadRight(10, ' ') + HoTen.PadRight(22, ' ') + GioiTinh.PadRight(11, ' ') + NgayThangNamSinh.ToString("dd/MM/yyyy").PadRight(13, ' ') + ViTri.PadRight(10) + LuongCoBan.ToString().PadRight(14, ' ') + HoaHong.ToString().PadRight(12, ' ') + Luong + "\n"); }
public override void xuat() { Console.Write(ID.PadRight(10, ' ') + HoTen.PadRight(22, ' ') + GioiTinh.PadRight(11, ' ') + NgayThangNamSinh.ToString("dd/MM/yyyy").PadRight(13, ' ') + ViTri.PadRight(10) + LuongCoBan.ToString().PadRight(14, ' ') + HoaHong.ToString().PadRight(12, ' ') + Luong + "\n"); }