protected void MailingCostRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { var ee = new MailingCostRepeaterItemEventArgs(e); if (ee.Data != null) { ee.EditLink.NavigateUrl = PageUrlAttribute.Get <MailingCosts.EditDpd>(new MailingCosts.EditDpd.Query() { MailingCostsDpd = ee.Data }); ee.PostcodeLiteral.Text = ee.Data.Postcode; ee.CityLiteral.Text = ee.Data.City; ee.CostsLiteral.Text = ee.Data.AdditionalCosts.ToString("C"); } }
protected void MailingCostRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { var ee = new MailingCostRepeaterItemEventArgs(e); if (ee.Data != null) { ee.EditLink.NavigateUrl = PageUrlAttribute.Get <MailingCosts.Edit>(new MailingCosts.Edit.Query() { MailingCostCountry = ee.Data }); ee.NameLiteral.Text = ee.Data.Name; ee.Iso2Literal.Text = ee.Data.IsoCode2; ee.Iso3Literal.Text = ee.Data.IsoCode3; ee.DpdCostsUnto4kgLiteral.Text = ee.Data.DpdCostsUnto4kg.ToString("C"); ee.DpdCostsUnto31_5kgLiteral.Text = ee.Data.DpdCostsUnto31_5kg.ToString("C"); ee.DhlCostsLiteral.Text = ee.Data.DhlCosts.ToString("C"); ee.DhlProductCodeLiteral.Text = DhlZone.LoadSingle(ee.Data.DhlProductCode)?.Name ?? "???"; ee.HideNetPriceCheckBox.Checked = ee.Data.HideNetPrices; } }