Пример #1
0
 public DbQueryResult FriendExtensionList(FriendExtensionQuery Query)
 {
     StringBuilder builder = new StringBuilder();
     if (Query.ExtensionId > 0)
     {
         builder.AppendFormat(" ExtensionId = {0}", Query.ExtensionId);
     }
     return DataHelper.PagingByRownumber(Query.PageIndex, Query.PageSize, Query.SortBy, Query.SortOrder, Query.IsCount, "Hishop_FriendExtension", "ExtensionId", builder.ToString(), "*");
 }
Пример #2
0
 private void BindData()
 {
     FriendExtensionQuery entity = new FriendExtensionQuery {
         PageIndex = this.pager.PageIndex,
         PageSize = this.pager.PageSize,
         SortOrder = SortAction.Desc,
         SortBy = "ExtensionId"
     };
     Globals.EntityCoding(entity, true);
     DbQueryResult result = VshopBrowser.FriendExtensionList(entity);
     this.refriendscircle.DataSource = result.Data;
     this.refriendscircle.DataBind();
     this.pager.TotalRecords = result.TotalRecords;
 }
Пример #3
0
 private void BindData()
 {
     FriendExtensionQuery entity = new FriendExtensionQuery {
         PageIndex = 1,
         PageSize = 1,
         SortOrder = SortAction.Desc,
         SortBy = "ExtensionId"
     };
     Globals.EntityCoding(entity, true);
     entity.ExtensionId = this.ExtensionId;
     DataTable data = new DataTable();
     data = (DataTable) ProductCommentHelper.FriendExtensionList(entity).Data;
     if (data.Rows.Count > 0)
     {
         this.txtName.Text = data.Rows[0]["ExensiontRemark"].ToString();
         this.hidpic.Value = data.Rows[0]["ExensionImg"].ToString();
     }
 }
Пример #4
0
 public static DbQueryResult FriendExtensionList(FriendExtensionQuery Query)
 {
     return new FriendExtensionDao().FriendExtensionList(Query);
 }