Example #1
0
        protected override void PopulateControl()
        {
            base.PopulateControl();


            if (this.DataSource != null)
            {
                this.BudgetCalculatedLabel.FieldValue = this.DataSource.Updated.HasValue ? this.DataSource.Updated.Value.ToString("dd MMMM yyyy") + " in " + globalBaseCurrCode : "";
                this.ActualCalculatedLabel.FieldValue = this.BudgetCalculatedLabel.FieldValue;
            }
            else if (!string.IsNullOrEmpty(this.Request.QueryString["mstid"]))
            {
                PromotionMaster refMaster = PromotionMaster.FetchById(this.Request.QueryString["mstid"]);
            }
        }
Example #2
0
        protected override void PopulateControl()
        {
            base.PopulateControl();

            if (this.DataSource != null)
            {
                this.CampaignName.FieldText         = this.DataSource.PromotionMaster.CmpId.Name;
                this.CampaignName.FieldValue        = this.DataSource.PromotionMaster.CmpId.Id;
                this.SellingCompanyName.FieldValue  = this.DataSource.PromotionMaster.CmpId.SellingCompany.Name;
                this.PromotionMasterName.FieldText  = this.DataSource.PromotionMaster.Name;
                this.PromotionMasterName.FieldValue = this.DataSource.PromotionMaster.Id;
            }
            else if (!string.IsNullOrEmpty(this.Request.QueryString["mstid"]))
            {
                PromotionMaster refMaster = PromotionMaster.FetchById(this.Request.QueryString["mstid"]);
                this.CampaignName.FieldValue        = refMaster.CmpId.Id;
                this.CampaignName.FieldText         = refMaster.CmpId.Name;
                this.SellingCompanyName.FieldValue  = refMaster.CmpId.SellingCompany.Name;
                this.PromotionMasterName.FieldText  = refMaster.Name;
                this.PromotionMasterName.FieldValue = refMaster.Id;
            }
        }