C# Класс presentation.utils.CarServicePresentationUtility

Summary description for CarServicePresentationUtility
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
BindSparePartsLists ( List destItemSparePartIds, ListBox srcListBox, ListBox destListBox, bool srcPriceCalculation, ICarServicePersister persister, decimal &totalPrice ) : void
ValidatePrices ( string sparePartsPriceTxt, string repairPriceTxt, decimal &sparePartsPrice, decimal &repairPrice ) : bool

Описание методов

AddSpareParts() публичный статический Метод

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
Результат void

AppendNotificationMsg() публичный статический Метод

public static AppendNotificationMsg ( string notificationMsg, BulletedList notificationMsgList ) : void
notificationMsg string
notificationMsgList System.Web.UI.WebControls.BulletedList
Результат void

BindListBox() публичный статический Метод

public static BindListBox ( ListBox listBox, object listBoxDataSource ) : void
listBox System.Web.UI.WebControls.ListBox
listBoxDataSource object
Результат void

CarServicePresentationUtility() публичный Метод

public CarServicePresentationUtility ( ) : System
Результат System

ClearNotificationMsgList() публичный статический Метод

public static ClearNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Результат void

GetGridCellContent() публичный статический Метод

public static GetGridCellContent ( GridView gridView, int rowIndex, int columnIndex ) : string
gridView System.Web.UI.WebControls.GridView
rowIndex int
columnIndex int
Результат string

GetSparePartsFormatForListBox() публичный статический Метод

public static GetSparePartsFormatForListBox ( EntityCollection spareParts ) : object
spareParts EntityCollection
Результат object

GetSparePartsFormatForListBox() публичный статический Метод

public static GetSparePartsFormatForListBox ( IQueryable spareParts ) : object
spareParts IQueryable
Результат object

GetSparePartsFormatForListBox() публичный статический Метод

public static GetSparePartsFormatForListBox ( List spareParts ) : object
spareParts List
Результат object

HideNotificationMsgList() публичный статический Метод

public static HideNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Результат void

IsSparePartItemsValid() публичный статический Метод

public static IsSparePartItemsValid ( System.Web.UI.WebControls.ListItemCollection selectedSparePartItems, BulletedList notificationMsgList ) : bool
selectedSparePartItems System.Web.UI.WebControls.ListItemCollection
notificationMsgList System.Web.UI.WebControls.BulletedList
Результат bool

MoveListItems() публичный статический Метод

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
Результат void

ProcessFinishRepairDate() публичный статический Метод

public static ProcessFinishRepairDate ( string repairDateTxt, BulletedList notificationMsgList, System.DateTime &repairDate ) : bool
repairDateTxt string
notificationMsgList System.Web.UI.WebControls.BulletedList
repairDate System.DateTime
Результат bool

ProcessRepairPrices() публичный статический Метод

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
Результат bool

ProcessStartRepairDate() публичный статический Метод

public static ProcessStartRepairDate ( string startRepairDateTxt, BulletedList notificationMsgList, System.DateTime &startRepairDate ) : bool
startRepairDateTxt string
notificationMsgList System.Web.UI.WebControls.BulletedList
startRepairDate System.DateTime
Результат bool

ShowNotificationMsgList() публичный статический Метод

public static ShowNotificationMsgList ( BulletedList notificationMsgList ) : void
notificationMsgList System.Web.UI.WebControls.BulletedList
Результат void