C# 클래스 presentation.utils.CarServicePresentationUtility

Summary description for CarServicePresentationUtility
파일 보기 프로젝트 열기: TelerikAcademy/QA-Academy 1 사용 예제들

공개 메소드들

메소드 설명
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