C# Class SitefinityWebApp.Custom.eCommerce.Frontend.Reviews.Controls.Reviews

Afficher le fichier Open project: esitefinity/EcommercePowerPack

Protected Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CreateRatingAndReview() public méthode

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
Résultat void

GetCustomerByUser() public static méthode

public static GetCustomerByUser ( Guid userId ) : Customer
userId Guid
Résultat Customer

GetImage() protected méthode

protected GetImage ( string username ) : byte[]
username string
Résultat byte[]

GetReviewsById() public méthode

public GetReviewsById ( Guid id ) : IQueryable
id Guid
Résultat IQueryable

Page_Load() protected méthode

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

alreadyReviewed() public méthode

public alreadyReviewed ( IQueryable source, string currentUser ) : bool
source IQueryable
currentUser string
Résultat bool

btnLoadMore_Click() protected méthode

protected btnLoadMore_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

btnSubmit_Click() protected méthode

protected btnSubmit_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

comboFilter_SelectedIndexChanged() protected méthode

protected comboFilter_SelectedIndexChanged ( object sender, Telerik e ) : void
sender object
e Telerik
Résultat void

isValidProduct() public méthode

public isValidProduct ( string url ) : bool
url string
Résultat bool

listReviews_ItemDataBound() protected méthode

protected listReviews_ItemDataBound ( object sender, Telerik e ) : void
sender object
e Telerik
Résultat void

setLabels() public méthode

public setLabels ( string Username, bool reviewed, int count ) : void
Username string
reviewed bool
count int
Résultat void

wasPurchased() public static méthode

public static wasPurchased ( Guid productId, Guid customerId ) : bool
productId Guid
customerId Guid
Résultat bool

Property Details

SUP protected_oe property

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
Résultat global::Telerik.Sitefinity.Web.UI.PublicControls.SitefinityUpdatePanel

addRate protected_oe property

addRate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadRating addRate
Résultat global::Telerik.Web.UI.RadRating

addReview protected_oe property

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
Résultat global::System.Web.UI.WebControls.Panel

btnLoadMore protected_oe property

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
Résultat global::System.Web.UI.WebControls.Button

btnShowReview protected_oe property

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
Résultat global::System.Web.UI.HtmlControls.HtmlAnchor

btnSubmit protected_oe property

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
Résultat global::System.Web.UI.WebControls.Button

comboFilter protected_oe property

comboFilter control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadComboBox comboFilter
Résultat global::Telerik.Web.UI.RadComboBox

hdCount protected_oe property

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
Résultat global::System.Web.UI.WebControls.HiddenField

imgCurrentAvatar protected_oe property

imgCurrentAvatar control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadBinaryImage imgCurrentAvatar
Résultat global::Telerik.Web.UI.RadBinaryImage

lbl protected_oe property

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
Résultat global::System.Web.UI.WebControls.Label

lblErrorOrSuccess protected_oe property

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
Résultat global::System.Web.UI.WebControls.Label

lblReviewed protected_oe property

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
Résultat global::System.Web.UI.WebControls.Label

listReviews protected_oe property

listReviews control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadListView listReviews
Résultat global::Telerik.Web.UI.RadListView

ratingOverview protected_oe property

ratingOverview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Telerik.Web.UI.RadRating ratingOverview
Résultat global::Telerik.Web.UI.RadRating

response protected_oe property

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
Résultat global::System.Web.UI.WebControls.Panel

txtComment protected_oe property

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
Résultat global::System.Web.UI.WebControls.TextBox

txtTitle protected_oe property

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
Résultat global::System.Web.UI.WebControls.TextBox

validateThoughts protected_oe property

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
Résultat global::System.Web.UI.WebControls.RequiredFieldValidator

validateTitle protected_oe property

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
Résultat global::System.Web.UI.WebControls.RequiredFieldValidator