public override void Modify(CampaignRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateCampaign");

            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev");
            this.MapParametersIn(command, record, true);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Creates a new <see cref="CampaignRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CampaignRecord" /> object instance.
        /// </returns>
        public CampaignRecord Clone()
        {
            CampaignRecord record = new CampaignRecord();

            record.Id                       = this.Id;
            record.Name                     = this.Name;
            record.StartDate                = this.StartDate;
            record.EndDate                  = this.EndDate;
            record.Region                   = this.Region;
            record.ObjTextId                = this.ObjTextId;
            record.SelTextId                = this.SelTextId;
            record.RvwTextId                = this.RvwTextId;
            record.BudgetCosts              = this.BudgetCosts;
            record.ActualCosts              = this.ActualCosts;
            record.Replies                  = this.Replies;
            record.Orders                   = this.Orders;
            record.OrderValue               = this.OrderValue;
            record.Updated                  = this.Updated;
            record.ModDate                  = this.ModDate;
            record.ModBy                    = this.ModBy;
            record.ModBySys                 = this.ModBySys;
            record.AddDate                  = this.AddDate;
            record.AddBy                    = this.AddBy;
            record.Lock                     = this.Lock;
            record.BudgetCostBc             = this.BudgetCostBc;
            record.ActualCostBc             = this.ActualCostBc;
            record.OrderValueBc             = this.OrderValueBc;
            record.CurrencyType             = this.CurrencyType;
            record.RcvDate                  = this.RcvDate;
            record.RcvFrom                  = this.RcvFrom;
            record.Mailings                 = this.Mailings;
            record.Telesales                = this.Telesales;
            record.Bookings                 = this.Bookings;
            record.BookValue                = this.BookValue;
            record.Quotes                   = this.Quotes;
            record.QuoValue                 = this.QuoValue;
            record.Sales                    = this.Sales;
            record.SaleValue                = this.SaleValue;
            record.CalcAct                  = this.CalcAct;
            record.CalcEst                  = this.CalcEst;
            record.OppTot                   = this.OppTot;
            record.ProjId                   = this.ProjId;
            record.BudgetCostBc2            = this.BudgetCostBc2;
            record.ActualCostBc2            = this.ActualCostBc2;
            record.OrderValueBc2            = this.OrderValueBc2;
            record.SelcoSpId                = this.SelcoSpId;
            record.TargetOpp                = this.TargetOpp;
            record.TargetReplies            = this.TargetReplies;
            record.TargetOppVal             = this.TargetOppVal;
            record.TargetBookVal            = this.TargetBookVal;
            record.ProleId                  = this.ProleId;
            record.AppProleId               = this.AppProleId;
            record.EmailsSent               = this.EmailsSent;
            record.EmailsOpened             = this.EmailsOpened;
            record.LinksClicked             = this.LinksClicked;
            record.LzClicked                = this.LzClicked;
            record.SurveysCompleted         = this.SurveysCompleted;
            record.GlobalUnsubscribes       = this.GlobalUnsubscribes;
            record.ListUnsubscribes         = this.ListUnsubscribes;
            record.DocsDownloads            = this.DocsDownloads;
            record.BounceBacks              = this.BounceBacks;
            record.EmailsSentTarget         = this.EmailsSentTarget;
            record.EmailsOpenedTarget       = this.EmailsOpenedTarget;
            record.LinksClickedTarget       = this.LinksClickedTarget;
            record.LzClickedTarget          = this.LzClickedTarget;
            record.SurveysCompletedTarget   = this.SurveysCompletedTarget;
            record.GlobalUnsubscribesTarget = this.GlobalUnsubscribesTarget;
            record.ListUnsubscribesTarget   = this.ListUnsubscribesTarget;
            record.DocsDownloadsTarget      = this.DocsDownloadsTarget;
            record.BounceBacksTarget        = this.BounceBacksTarget;
            record.Qcode                    = this.Qcode;
            record.Current                  = this.Current;
            return(record);
        }
Exemplo n.º 3
0
        /// <summary>
        ///     Indicates whether the current <see cref="CampaignRecord" /> instance is equal to another <see cref="CampaignRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="CampaignRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(CampaignRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.StartDate == that.StartDate);
            result = result && (this.EndDate == that.EndDate);
            result = result && (this.Region.TrimOrNullify() == that.Region.TrimOrNullify());
            result = result && (this.ObjTextId.TrimOrNullify() == that.ObjTextId.TrimOrNullify());
            result = result && (this.SelTextId.TrimOrNullify() == that.SelTextId.TrimOrNullify());
            result = result && (this.RvwTextId.TrimOrNullify() == that.RvwTextId.TrimOrNullify());
            result = result && (this.BudgetCosts == that.BudgetCosts);
            result = result && (this.ActualCosts == that.ActualCosts);
            result = result && (this.Replies == that.Replies);
            result = result && (this.Orders == that.Orders);
            result = result && (this.OrderValue == that.OrderValue);
            result = result && (this.Updated == that.Updated);
            result = result && (this.ModBySys.TrimOrNullify() == that.ModBySys.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.BudgetCostBc == that.BudgetCostBc);
            result = result && (this.ActualCostBc == that.ActualCostBc);
            result = result && (this.OrderValueBc == that.OrderValueBc);
            result = result && (this.CurrencyType.TrimOrNullify() == that.CurrencyType.TrimOrNullify());
            result = result && (this.Mailings == that.Mailings);
            result = result && (this.Telesales == that.Telesales);
            result = result && (this.Bookings == that.Bookings);
            result = result && (this.BookValue == that.BookValue);
            result = result && (this.Quotes == that.Quotes);
            result = result && (this.QuoValue == that.QuoValue);
            result = result && (this.Sales == that.Sales);
            result = result && (this.SaleValue == that.SaleValue);
            result = result && (this.CalcAct == that.CalcAct);
            result = result && (this.CalcEst == that.CalcEst);
            result = result && (this.OppTot == that.OppTot);
            result = result && (this.ProjId.TrimOrNullify() == that.ProjId.TrimOrNullify());
            result = result && (this.BudgetCostBc2 == that.BudgetCostBc2);
            result = result && (this.ActualCostBc2 == that.ActualCostBc2);
            result = result && (this.OrderValueBc2 == that.OrderValueBc2);
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            result = result && (this.TargetOpp == that.TargetOpp);
            result = result && (this.TargetReplies == that.TargetReplies);
            result = result && (this.TargetOppVal == that.TargetOppVal);
            result = result && (this.TargetBookVal == that.TargetBookVal);
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.AppProleId.TrimOrNullify() == that.AppProleId.TrimOrNullify());
            result = result && (this.EmailsSent == that.EmailsSent);
            result = result && (this.EmailsOpened == that.EmailsOpened);
            result = result && (this.LinksClicked == that.LinksClicked);
            result = result && (this.LzClicked == that.LzClicked);
            result = result && (this.SurveysCompleted == that.SurveysCompleted);
            result = result && (this.GlobalUnsubscribes == that.GlobalUnsubscribes);
            result = result && (this.ListUnsubscribes == that.ListUnsubscribes);
            result = result && (this.DocsDownloads == that.DocsDownloads);
            result = result && (this.BounceBacks == that.BounceBacks);
            result = result && (this.EmailsSentTarget == that.EmailsSentTarget);
            result = result && (this.EmailsOpenedTarget == that.EmailsOpenedTarget);
            result = result && (this.LinksClickedTarget == that.LinksClickedTarget);
            result = result && (this.LzClickedTarget == that.LzClickedTarget);
            result = result && (this.SurveysCompletedTarget == that.SurveysCompletedTarget);
            result = result && (this.GlobalUnsubscribesTarget == that.GlobalUnsubscribesTarget);
            result = result && (this.ListUnsubscribesTarget == that.ListUnsubscribesTarget);
            result = result && (this.DocsDownloadsTarget == that.DocsDownloadsTarget);
            result = result && (this.BounceBacksTarget == that.BounceBacksTarget);
            result = result && (this.Qcode.TrimOrNullify() == that.Qcode.TrimOrNullify());
            result = result && (this.Current == that.Current);
            return(result);
        }