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

Mostra file Open project: esitefinity/EcommercePowerPack

Protected Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

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

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

GetCustomerByUser() public static method

public static GetCustomerByUser ( Guid userId ) : Customer
userId Guid
return Customer

GetImage() protected method

protected GetImage ( string username ) : byte[]
username string
return byte[]

GetReviewsById() public method

public GetReviewsById ( Guid id ) : IQueryable
id Guid
return IQueryable

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

alreadyReviewed() public method

public alreadyReviewed ( IQueryable source, string currentUser ) : bool
source IQueryable
currentUser string
return bool

btnLoadMore_Click() protected method

protected btnLoadMore_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnSubmit_Click() protected method

protected btnSubmit_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

comboFilter_SelectedIndexChanged() protected method

protected comboFilter_SelectedIndexChanged ( object sender, Telerik e ) : void
sender object
e Telerik
return void

isValidProduct() public method

public isValidProduct ( string url ) : bool
url string
return bool

listReviews_ItemDataBound() protected method

protected listReviews_ItemDataBound ( object sender, Telerik e ) : void
sender object
e Telerik
return void

setLabels() public method

public setLabels ( string Username, bool reviewed, int count ) : void
Username string
reviewed bool
count int
return void

wasPurchased() public static method

public static wasPurchased ( Guid productId, Guid customerId ) : bool
productId Guid
customerId Guid
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return global::System.Web.UI.WebControls.RequiredFieldValidator