示例#1
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["pkOfferDiscountID"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["DiscountType"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Code"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Discount"].GetDecimalStringFromObject("0.00")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Boolean)e.DataRow["InPercentage"]) ? "%" : "$"
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["Active"].GetBooleanStringFromObject(),
                InputType = DataInputTypes.Checkbox,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Delete));
        }
示例#2
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["First_Name"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["Middle_Name"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["Last_Name"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["state"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["county"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow["email"] as String
                                                                });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
                                                                {
                                                                    Text = e.DataRow.GetDateTimeStringFromDataColumn("UnsubscribeDateTime")
                                                                });
        }
示例#3
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{1}admin/flyers/details.aspx?orderid={0}' target='_blank'>{0}</a>", e.DataRow["order_id"].ToString(), ResolveUrl("~/"))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_Sent"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_Opened"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_Bounce_Back"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{0}?orderid={1}'>Chart</a>", ResolveUrl("~/admin/reports/emaildelivery/detailemail/chart.aspx"), e.DataRow["order_id"].ToString()),
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{0}?orderid={1}'>Details</a>", ResolveUrl("~/admin/reports/emaildelivery/detailemail/details.aspx"), e.DataRow["order_id"].ToString()),
            });
        }
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            var item = e.Data  as FeedItemModel;

            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text            = item.SyndicationSite,
                InputType       = DataInputTypes.Submit,
                TextIsInvisible = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text       = item.LastUpdated.HasValue ? item.LastUpdated.ToString() : "Feed doesn't exist",
                Attributes = new Dictionary <String, String> {
                    { "style", "color: " + ((!item.IsOutdated.HasValue || item.IsOutdated.Value) ? "red;" : "green;") }
                }
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Html       = String.Format("<a href='{0}' target='_blank' class='button'>View feed</a>", ResolveUrl(item.AbsoluteFilePath)),
                Attributes = new Dictionary <String, String> {
                    { "class", "detales" }
                }
            });
        }
示例#5
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["pk_ReferralID"].ToString(),
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["email"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["ReferredSource"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["ReferredBy"] as String,
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateTimeStringFromDataColumn("CreatedDate")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
        }
示例#6
0
        public void OnRowDataBinding(RowDataBindingEventArgs args)
        {
            EventHandler <RowDataBindingEventArgs> handler = RowDataBinding;

            if (handler != null)
            {
                handler(this, args);
            }
        }
示例#7
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["pkOfferDiscountDetailID"].ToString(),
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["fkOfferDiscountID"].ToString(),
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Email"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Code"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["CreatedDate"].GetDateTimeStringFromObject()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = ((Boolean)e.DataRow["InPercentage"]) ? "%" : "$",
                IsInlineEditable = true,
                InputType        = DataInputTypes.Select
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Discount"].GetDecimalStringFromObject("0.00"),
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text                   = e.DataRow["Active"].GetBooleanStringFromObject(),
                IsInlineEditable       = true,
                InputType              = DataInputTypes.Checkbox,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Delete));
        }
示例#8
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{0}flyers/details.aspx?orderid={1}'>{1}</a>", AdminSiteRootUrl, e.DataRow[0].ToString())
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[1] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[2] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[3] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDecimalStringFromDataColumn(4, "0.00")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetPriceStringFromDataColumn(5)
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[6] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[7] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text       = (e.DataRow[8] as String).Capitalize(),
                Attributes = new Dictionary <String, String> {
                    { "class", (e.DataRow[8] as String).ToLower() }
                }
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateStringFromDataColumn(9)
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateStringFromDataColumn(10)
            });
        }
示例#9
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{0}spamabuse/details.aspx?esp={1}&returnurl={2}'>{1}</a>", ResolveUrl("~/admin/reports/"), e.DataRow["SpamNoticeSender"], Helper.GetUrlEncodedString(Request.Url.ToString()))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["TotalCount"].ToString()
            });
        }
示例#10
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{1}admin/flyers/details.aspx?orderid={0}' target='_blank'>{0}</a>", e.DataRow["order_id"].ToString(), ResolveUrl("~/"))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["emails_left"].ToString()
            });
        }
示例#11
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["subscriber_id"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["email"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_sent"].ToString(),
                DisplayAsDisabledInput = true,
                InputType = DataInputTypes.Checkbox
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateStringFromDataColumn("Email_Delivery_Datetime")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_opened"].ToString(),
                DisplayAsDisabledInput = true,
                InputType = DataInputTypes.Checkbox
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_Bounce_Back"].ToString(),
                DisplayAsDisabledInput = true,
                InputType = DataInputTypes.Checkbox
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_openedtimes"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_opened_IP"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_opened_datetime"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["Email_last_opened_datetime"].ToString()
            });
        }
示例#12
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{1}admin/flyers/details.aspx?orderid={0}' target='_blank'>{0}</a>", e.DataRow["order_id"].ToString(), ResolveUrl("~/"))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateTimeStringFromDataColumn("Email_Delivery_Datetime")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["ViaSMTP"] as String
            });
        }
示例#13
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["SubscriberEmail"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["SpamNoticeReceiver"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateTimeStringFromDataColumn("ReceivedOn")
            });
        }
示例#14
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["order_id"].ToString(),
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["customer_id"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["prop_state"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["type"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["tota_price"].GetDecimalStringFromObject("0.00")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["invoice_tax"].GetDecimalStringFromObject("0.00")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["invoice_transaction_id"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["status"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["created_on"].GetDateTimeStringFromObject()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["sent_on"].GetDateTimeStringFromObject()
            });
        }
示例#15
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow[0].ToString(),
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[1] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow[2] as String,
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text                   = e.DataRow[3].ToString(),
                InputType              = DataInputTypes.Checkbox,
                IsInlineEditable       = true,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[4].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow[5].ToString()
            });

            var noteUrl          = ResolveUrl("~/admin/users/websiteusernote.aspx?userid=" + e.DataRow[0].ToString());
            var onclickAttribute = GetJsWindowPopupOnClickAttribute(noteUrl, "websiteusernote");

            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Custom)
            {
                Html = String.Format("<a href='{0}' class='button' onclick=\"{1}\">Note</a>", noteUrl, onclickAttribute)
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
        }
示例#16
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{1}admin/flyers/details.aspx?orderid={0}' target='_blank'>{0}</a>", e.DataRow["order_id"].ToString(), ResolveUrl("~/"))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = (e.DataRow["type"] as String).Capitalize()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["market_state"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Decimal)e.DataRow["tota_price"]).FormatPrice()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Decimal)e.DataRow["invoice_tax"]).FormatPrice()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["invoice_transaction_id"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = (e.DataRow["status"] as String).Capitalize()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateStringFromDataColumn("delivery_date")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow.GetDateStringFromDataColumn("created_on")
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Decimal)e.DataRow["Discount"]).FormatPrice()
            });
        }
示例#17
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["market"] as String
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["listsize"] as String,
                Data = e.DataRow["listsize"]
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = GetCountyMSA(e.DataRow["market"] as String)
            });
        }
示例#18
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = String.Format("<a href='{0}customerreport/details.aspx?customerid={1}&returnurl={2}'>{1}</a>", ResolveUrl("~/admin/reports/"), e.DataRow["Customer_ID"], Helper.GetUrlEncodedString(Request.Url.ToString()))
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["NOF"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Decimal)e.DataRow["TotalPrice"]).FormatPrice()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = ((Decimal)e.DataRow["AvgPrice"]).FormatPrice()
            });
        }
示例#19
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["pk_SpamFilterID"].ToString(),
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Email"] as String,
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["CreatedDate"].GetDateStringFromObject()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Delete));
        }
示例#20
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text = e.DataRow["id"].ToString()
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["first_name"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["middle_name"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["last_name"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["email"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["state"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Select
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["county"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Select
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["association_name"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Select
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["msa_name"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Select
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text                   = e.DataRow["unsubscribed"].GetBooleanStringFromObject(),
                IsInlineEditable       = true,
                InputType              = DataInputTypes.Checkbox,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text                   = e.DataRow["skip"].GetBooleanStringFromObject(),
                IsInlineEditable       = true,
                InputType              = DataInputTypes.Checkbox,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["vresult"] as String,
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["rcode"] as String,
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Delete));
        }
示例#21
0
        protected void grid_RowDataBinding(Object sender, RowDataBindingEventArgs e)
        {
            e.Grid.Body.Rows.Add(new BodyRow(e.BodyRowIndex));

            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text      = e.DataRow["pk_TestimonialID"].ToString(),
                InputType = DataInputTypes.Hidden,
                HideCell  = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["ImagePath"] != DBNull.Value ? String.Format("<div class='image'><img src='{0}' style='max-width: 40px;' /></div>", ResolveUrl(e.DataRow["ImagePath"] as String)) : null,
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["FirstName"] as String,
                InputType        = DataInputTypes.Text,
                IsInlineEditable = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["LastName"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Company"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Position"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["Message"] as String,
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text             = e.DataRow["SubmittedDate"].GetDateStringFromObject(),
                IsInlineEditable = true,
                InputType        = DataInputTypes.Text
            });
            e.Grid.Body.Rows[e.BodyRowIndex].DataCells.Add(new DataCell(e.Grid.Body.Rows[e.BodyRowIndex])
            {
                Text                   = e.DataRow["Active"].GetBooleanStringFromObject(),
                IsInlineEditable       = true,
                InputType              = DataInputTypes.Checkbox,
                DisplayAsDisabledInput = true
            });
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Edit));
            e.Grid.Body.Rows[e.BodyRowIndex].ActionCells.Add(new ActionCell(e.Grid.Body.Rows[e.BodyRowIndex], ActionTypes.Delete));
        }