C# Класс SitefinityWebApp.Custom.eCommerce.Frontend.Reviews.Controls.Reviews

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
SUP global::Telerik.Sitefinity.Web.UI.PublicControls.SitefinityUpdatePanel
addRate global::Telerik.Web.UI.RadRating
addReview global::System.Web.UI.WebControls.Panel
btnLoadMore global::System.Web.UI.WebControls.Button
btnShowReview global::System.Web.UI.HtmlControls.HtmlAnchor
btnSubmit global::System.Web.UI.WebControls.Button
comboFilter global::Telerik.Web.UI.RadComboBox
hdCount global::System.Web.UI.WebControls.HiddenField
imgCurrentAvatar global::Telerik.Web.UI.RadBinaryImage
lbl global::System.Web.UI.WebControls.Label
lblErrorOrSuccess global::System.Web.UI.WebControls.Label
lblReviewed global::System.Web.UI.WebControls.Label
listReviews global::Telerik.Web.UI.RadListView
ratingOverview global::Telerik.Web.UI.RadRating
response global::System.Web.UI.WebControls.Panel
txtComment global::System.Web.UI.WebControls.TextBox
txtTitle global::System.Web.UI.WebControls.TextBox
validateThoughts global::System.Web.UI.WebControls.RequiredFieldValidator
validateTitle global::System.Web.UI.WebControls.RequiredFieldValidator

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

Метод Описание
CreateRatingAndReview ( string username, string title, string thought, int rating, bool verified, Product product ) : void
GetCustomerByUser ( Guid userId ) : Customer
GetReviewsById ( Guid id ) : IQueryable
alreadyReviewed ( IQueryable source, string currentUser ) : bool
isValidProduct ( string url ) : bool
setLabels ( string Username, bool reviewed, int count ) : void
wasPurchased ( Guid productId, Guid customerId ) : bool

Защищенные методы

Метод Описание
GetImage ( string username ) : byte[]
Page_Load ( object sender, EventArgs e ) : void
btnLoadMore_Click ( object sender, EventArgs e ) : void
btnSubmit_Click ( object sender, EventArgs e ) : void
comboFilter_SelectedIndexChanged ( object sender, Telerik e ) : void
listReviews_ItemDataBound ( object sender, Telerik e ) : void

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

Метод Описание
SUP_Load ( object sender, EventArgs e ) : void
SetMessage ( string css, bool AddReview, bool ShowReview, bool Response, bool Reviewed, string message ) : void
totalRating ( IQueryable source ) : decimal

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

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

public CreateRatingAndReview ( string username, string title, string thought, int rating, bool verified, Product product ) : void
username string
title string
thought string
rating int
verified bool
product Product
Результат void

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

public static GetCustomerByUser ( Guid userId ) : Customer
userId Guid
Результат Customer

GetImage() защищенный Метод

protected GetImage ( string username ) : byte[]
username string
Результат byte[]

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

public GetReviewsById ( Guid id ) : IQueryable
id Guid
Результат IQueryable

Page_Load() защищенный Метод

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

public alreadyReviewed ( IQueryable source, string currentUser ) : bool
source IQueryable
currentUser string
Результат bool

btnLoadMore_Click() защищенный Метод

protected btnLoadMore_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

btnSubmit_Click() защищенный Метод

protected btnSubmit_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

comboFilter_SelectedIndexChanged() защищенный Метод

protected comboFilter_SelectedIndexChanged ( object sender, Telerik e ) : void
sender object
e Telerik
Результат void

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

public isValidProduct ( string url ) : bool
url string
Результат bool

listReviews_ItemDataBound() защищенный Метод

protected listReviews_ItemDataBound ( object sender, Telerik e ) : void
sender object
e Telerik
Результат void

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

public setLabels ( string Username, bool reviewed, int count ) : void
Username string
reviewed bool
count int
Результат void

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

public static wasPurchased ( Guid productId, Guid customerId ) : bool
productId Guid
customerId Guid
Результат bool

Описание свойств

SUP защищенное свойство

SUP control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Sitefinity.Web.UI.PublicControls.SitefinityUpdatePanel SUP
Результат global::Telerik.Sitefinity.Web.UI.PublicControls.SitefinityUpdatePanel

addRate защищенное свойство

addRate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadRating addRate
Результат global::Telerik.Web.UI.RadRating

addReview защищенное свойство

addReview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel addReview
Результат global::System.Web.UI.WebControls.Panel

btnLoadMore защищенное свойство

btnLoadMore control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnLoadMore
Результат global::System.Web.UI.WebControls.Button

btnShowReview защищенное свойство

btnShowReview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlAnchor btnShowReview
Результат global::System.Web.UI.HtmlControls.HtmlAnchor

btnSubmit защищенное свойство

btnSubmit control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnSubmit
Результат global::System.Web.UI.WebControls.Button

comboFilter защищенное свойство

comboFilter control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadComboBox comboFilter
Результат global::Telerik.Web.UI.RadComboBox

hdCount защищенное свойство

hdCount control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdCount
Результат global::System.Web.UI.WebControls.HiddenField

imgCurrentAvatar защищенное свойство

imgCurrentAvatar control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadBinaryImage imgCurrentAvatar
Результат global::Telerik.Web.UI.RadBinaryImage

lbl защищенное свойство

lbl control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lbl
Результат global::System.Web.UI.WebControls.Label

lblErrorOrSuccess защищенное свойство

lblErrorOrSuccess control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblErrorOrSuccess
Результат global::System.Web.UI.WebControls.Label

lblReviewed защищенное свойство

lblReviewed control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblReviewed
Результат global::System.Web.UI.WebControls.Label

listReviews защищенное свойство

listReviews control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadListView listReviews
Результат global::Telerik.Web.UI.RadListView

ratingOverview защищенное свойство

ratingOverview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadRating ratingOverview
Результат global::Telerik.Web.UI.RadRating

response защищенное свойство

response control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel response
Результат global::System.Web.UI.WebControls.Panel

txtComment защищенное свойство

txtComment control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txtComment
Результат global::System.Web.UI.WebControls.TextBox

txtTitle защищенное свойство

txtTitle control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txtTitle
Результат global::System.Web.UI.WebControls.TextBox

validateThoughts защищенное свойство

validateThoughts control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator validateThoughts
Результат global::System.Web.UI.WebControls.RequiredFieldValidator

validateTitle защищенное свойство

validateTitle control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator validateTitle
Результат global::System.Web.UI.WebControls.RequiredFieldValidator