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

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

            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.BudgetCost               = this.BudgetCost;
            record.ActualCost               = this.ActualCost;
            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.BdgtCstBc                = this.BdgtCstBc;
            record.ActlCstBc                = this.ActlCstBc;
            record.OrdrValBc                = this.OrdrValBc;
            record.CurrType                 = this.CurrType;
            record.CmpId                    = this.CmpId;
            record.RcvDate                  = this.RcvDate;
            record.RcvFrom                  = this.RcvFrom;
            record.Mailings                 = this.Mailings;
            record.Telesales                = this.Telesales;
            record.Bookings                 = this.Bookings;
            record.OppTot                   = this.OppTot;
            record.Quotes                   = this.Quotes;
            record.QuoVal                   = this.QuoVal;
            record.Sales                    = this.Sales;
            record.SaleVal                  = this.SaleVal;
            record.CalcAct                  = this.CalcAct;
            record.CalcEst                  = this.CalcEst;
            record.BookVal                  = this.BookVal;
            record.CourseId                 = this.CourseId;
            record.Code                     = this.Code;
            record.Type                     = this.Type;
            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.Fqcode                   = this.Fqcode;
            return(record);
        }
Пример #3
0
        /// <summary>
        ///     Indicates whether the current <see cref="PromotionMasterRecord" /> instance is equal to another <see cref="PromotionMasterRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="PromotionMasterRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(PromotionMasterRecord 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.BudgetCost == that.BudgetCost);
            result = result && (this.ActualCost == that.ActualCost);
            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.BdgtCstBc == that.BdgtCstBc);
            result = result && (this.ActlCstBc == that.ActlCstBc);
            result = result && (this.OrdrValBc == that.OrdrValBc);
            result = result && (this.CurrType.TrimOrNullify() == that.CurrType.TrimOrNullify());
            result = result && (this.CmpId.TrimOrNullify() == that.CmpId.TrimOrNullify());
            result = result && (this.Mailings == that.Mailings);
            result = result && (this.Telesales == that.Telesales);
            result = result && (this.Bookings == that.Bookings);
            result = result && (this.OppTot == that.OppTot);
            result = result && (this.Quotes == that.Quotes);
            result = result && (this.QuoVal == that.QuoVal);
            result = result && (this.Sales == that.Sales);
            result = result && (this.SaleVal == that.SaleVal);
            result = result && (this.CalcAct == that.CalcAct);
            result = result && (this.CalcEst == that.CalcEst);
            result = result && (this.BookVal == that.BookVal);
            result = result && (this.CourseId.TrimOrNullify() == that.CourseId.TrimOrNullify());
            result = result && (this.Code.TrimOrNullify() == that.Code.TrimOrNullify());
            result = result && (this.Type == that.Type);
            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.Fqcode.TrimOrNullify() == that.Fqcode.TrimOrNullify());
            return(result);
        }