public override string ToString() { string lcString = Serial.ToString(); lcString = lcString.PadRight(15 - lcString.Length) + "\t" + ModelName.PadRight(55 - ModelName.Length) + "\t"; // Gears.ToString().PadRight(10 - Gears.ToString().Length) + "\t"; if (Type == 'U') { lcString = lcString + "Used\t"; } else { lcString = lcString + "New\t"; } lcString = lcString + Price.ToString().PadRight(15 - Price.ToString().Length) + "\t"; if (SaleState == 'F') { lcString = lcString + "Available"; } else { lcString = lcString + "Ordered"; } return(lcString); }
public override string ToString() { string lcString = ""; //Serial.ToString() + "\t" + ModelName + "\t\t" + Gears.ToString() + "\t"; if (Type == 'U') { lcString = lcString + "Used"; } else { lcString = lcString + "New"; } lcString = lcString + "\t" + ModelName.PadRight(40 - ModelName.Length) + "\t" + Gears + "\t $" + Price.ToString(); return(lcString); }
public override string Log() => $"{AssetId.ToString().PadRight(15)}{Category.PadRight(17)}{Office.Name.PadRight(15)}{ProdName.PadRight(15)}{ModelName.PadRight(15)}{PurchaseDate.ToShortDateString().PadRight(15)}{Price.ToString().PadRight(15)}{Currency.PadRight(15)} {ExchangeRate.ToString().PadRight(10)}USD";
public override string Log() => $"{Category.PadRight(15)}{ProdName.PadRight(8)}{ModelName.PadRight(8)}{PurchaseDate.ToShortDateString().PadRight(8)}\t{Price}";
public override string Log() => $"{Location.PadRight(20)}{Category.PadRight(15)}{ProdName.PadRight(15)}{ModelName.PadRight(8)}{PurchaseDate.ToShortDateString().PadRight(8)}\t{Price.ToString().PadRight(10)}{CurrencyFormat.PadLeft(10)}";