C# Class presentation.utils.CarServicePresentationUtility

Summary description for CarServicePresentationUtility
ファイルを表示 Open project: TelerikAcademy/QA-Academy Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return void

AppendNotificationMsg() public static method

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

BindListBox() public static method

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

CarServicePresentationUtility() public method

public CarServicePresentationUtility ( ) : System
return System

ClearNotificationMsgList() public static method

public static ClearNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
return void

GetGridCellContent() public static method

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

GetSparePartsFormatForListBox() public static method

public static GetSparePartsFormatForListBox ( EntityCollection spareParts ) : object
spareParts EntityCollection
return object

GetSparePartsFormatForListBox() public static method

public static GetSparePartsFormatForListBox ( IQueryable spareParts ) : object
spareParts IQueryable
return object

GetSparePartsFormatForListBox() public static method

public static GetSparePartsFormatForListBox ( List spareParts ) : object
spareParts List
return object

HideNotificationMsgList() public static method

public static HideNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
return void

IsSparePartItemsValid() public static method

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

MoveListItems() public static method

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
return void

ProcessFinishRepairDate() public static method

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

ProcessRepairPrices() public static method

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
return bool

ProcessStartRepairDate() public static method

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

ShowNotificationMsgList() public static method

public static ShowNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
return void