C# Class presentation.utils.CarServicePresentationUtility

Summary description for CarServicePresentationUtility
Afficher le fichier Open project: TelerikAcademy/QA-Academy Class Usage Examples

Méthodes publiques

Méthode Description
AddSpareParts ( RepairCard repairCard, System.Web.UI.WebControls.ListItemCollection selectedSparePartItems, ICarServicePersister persister ) : void
AppendNotificationMsg ( string notificationMsg, BulletedList notificationMsgList ) : void
BindListBox ( ListBox listBox, object listBoxDataSource ) : void
CarServicePresentationUtility ( ) : System
ClearNotificationMsgList ( BulletedList notificationMsgList ) : void
GetGridCellContent ( GridView gridView, int rowIndex, int columnIndex ) : string
GetSparePartsFormatForListBox ( EntityCollection spareParts ) : object
GetSparePartsFormatForListBox ( IQueryable spareParts ) : object
GetSparePartsFormatForListBox ( List spareParts ) : object
HideNotificationMsgList ( BulletedList notificationMsgList ) : void
IsSparePartItemsValid ( System.Web.UI.WebControls.ListItemCollection selectedSparePartItems, BulletedList notificationMsgList ) : bool
MoveListItems ( ListBox srcListBox, ListBox destListBox, bool srcPriceCalculation, ICarServicePersister persister, decimal &totalPrice ) : void

Moves spare part items from source list box to destination list box.

ProcessFinishRepairDate ( string repairDateTxt, BulletedList notificationMsgList, System.DateTime &repairDate ) : bool
ProcessRepairPrices ( string sparePartsPriceTxt, string repairPriceTxt, BulletedList notificationMsgList, decimal &sparePartsPrice, decimal &repairPrice ) : bool
ProcessStartRepairDate ( string startRepairDateTxt, BulletedList notificationMsgList, System.DateTime &startRepairDate ) : bool
ShowNotificationMsgList ( BulletedList notificationMsgList ) : void

Private Methods

Méthode Description
BindSparePartsLists ( List destItemSparePartIds, ListBox srcListBox, ListBox destListBox, bool srcPriceCalculation, ICarServicePersister persister, decimal &totalPrice ) : void
ValidatePrices ( string sparePartsPriceTxt, string repairPriceTxt, decimal &sparePartsPrice, decimal &repairPrice ) : bool

Method Details

AddSpareParts() public static méthode

public static AddSpareParts ( RepairCard repairCard, System.Web.UI.WebControls.ListItemCollection selectedSparePartItems, ICarServicePersister persister ) : void
repairCard persistence.RepairCard
selectedSparePartItems System.Web.UI.WebControls.ListItemCollection
persister ICarServicePersister
Résultat void

AppendNotificationMsg() public static méthode

public static AppendNotificationMsg ( string notificationMsg, BulletedList notificationMsgList ) : void
notificationMsg string
notificationMsgList System.Web.UI.WebControls.BulletedList
Résultat void

BindListBox() public static méthode

public static BindListBox ( ListBox listBox, object listBoxDataSource ) : void
listBox System.Web.UI.WebControls.ListBox
listBoxDataSource object
Résultat void

CarServicePresentationUtility() public méthode

public CarServicePresentationUtility ( ) : System
Résultat System

ClearNotificationMsgList() public static méthode

public static ClearNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Résultat void

GetGridCellContent() public static méthode

public static GetGridCellContent ( GridView gridView, int rowIndex, int columnIndex ) : string
gridView System.Web.UI.WebControls.GridView
rowIndex int
columnIndex int
Résultat string

GetSparePartsFormatForListBox() public static méthode

public static GetSparePartsFormatForListBox ( EntityCollection spareParts ) : object
spareParts EntityCollection
Résultat object

GetSparePartsFormatForListBox() public static méthode

public static GetSparePartsFormatForListBox ( IQueryable spareParts ) : object
spareParts IQueryable
Résultat object

GetSparePartsFormatForListBox() public static méthode

public static GetSparePartsFormatForListBox ( List spareParts ) : object
spareParts List
Résultat object

HideNotificationMsgList() public static méthode

public static HideNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Résultat void

IsSparePartItemsValid() public static méthode

public static IsSparePartItemsValid ( System.Web.UI.WebControls.ListItemCollection selectedSparePartItems, BulletedList notificationMsgList ) : bool
selectedSparePartItems System.Web.UI.WebControls.ListItemCollection
notificationMsgList System.Web.UI.WebControls.BulletedList
Résultat bool

MoveListItems() public static méthode

Moves spare part items from source list box to destination list box.
public static MoveListItems ( ListBox srcListBox, ListBox destListBox, bool srcPriceCalculation, ICarServicePersister persister, decimal &totalPrice ) : void
srcListBox System.Web.UI.WebControls.ListBox Source list box to be specified
destListBox System.Web.UI.WebControls.ListBox Destination list box to be specified
srcPriceCalculation bool True - adds prices of selected spare parts, false - doesn't add prices of selected spare parts
persister ICarServicePersister Persister to be specified
totalPrice decimal Stores total price of selected spare parts
Résultat void

ProcessFinishRepairDate() public static méthode

public static ProcessFinishRepairDate ( string repairDateTxt, BulletedList notificationMsgList, System.DateTime &repairDate ) : bool
repairDateTxt string
notificationMsgList System.Web.UI.WebControls.BulletedList
repairDate System.DateTime
Résultat bool

ProcessRepairPrices() public static méthode

public static ProcessRepairPrices ( string sparePartsPriceTxt, string repairPriceTxt, BulletedList notificationMsgList, decimal &sparePartsPrice, decimal &repairPrice ) : bool
sparePartsPriceTxt string
repairPriceTxt string
notificationMsgList System.Web.UI.WebControls.BulletedList
sparePartsPrice decimal
repairPrice decimal
Résultat bool

ProcessStartRepairDate() public static méthode

public static ProcessStartRepairDate ( string startRepairDateTxt, BulletedList notificationMsgList, System.DateTime &startRepairDate ) : bool
startRepairDateTxt string
notificationMsgList System.Web.UI.WebControls.BulletedList
startRepairDate System.DateTime
Résultat bool

ShowNotificationMsgList() public static méthode

public static ShowNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Résultat void