Esempio n. 1
0
        /// <summary>
        ///     Indicates whether the current <see cref="LettertmpltRecord" /> instance is equal to another <see cref="LettertmpltRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="LettertmpltRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(LettertmpltRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify());
            result = result && (this.Private == that.Private);
            result = result && (this.Section == that.Section);
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.Language.TrimOrNullify() == that.Language.TrimOrNullify());
            result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify());
            result = result && (this.Text.TrimOrNullify() == that.Text.TrimOrNullify());
            result = result && (this.Level == that.Level);
            result = result && (this.Index.TrimOrNullify() == that.Index.TrimOrNullify());
            result = result && (this.Page.TrimOrNullify() == that.Page.TrimOrNullify());
            result = result && (this.ForUseWith == that.ForUseWith);
            result = result && (this.FileName.TrimOrNullify() == that.FileName.TrimOrNullify());
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            result = result && (this.PrintOnly == that.PrintOnly);
            result = result && (this.EmailSubject.TrimOrNullify() == that.EmailSubject.TrimOrNullify());
            result = result && (this.LocalprintOnly == that.LocalprintOnly);
            result = result && (this.Pdf == that.Pdf);
            result = result && (this.SendProleId.TrimOrNullify() == that.SendProleId.TrimOrNullify());
            result = result && (this.Current == that.Current);
            result = result && (this.EmailBody == that.EmailBody);
            result = result && (this.PqId.TrimOrNullify() == that.PqId.TrimOrNullify());
            result = result && (this.AttId.TrimOrNullify() == that.AttId.TrimOrNullify());
            result = result && (this.Label == that.Label);
            return(result);
        }
        public override void Modify(LettertmpltRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateLetterTemplate");

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

            record.Id             = this.Id;
            record.Lock           = this.Lock;
            record.AddDate        = this.AddDate;
            record.AddBy          = this.AddBy;
            record.ModDate        = this.ModDate;
            record.ModBy          = this.ModBy;
            record.RcvDate        = this.RcvDate;
            record.RcvFrom        = this.RcvFrom;
            record.Name           = this.Name;
            record.Type           = this.Type;
            record.Private        = this.Private;
            record.Section        = this.Section;
            record.ProleId        = this.ProleId;
            record.Language       = this.Language;
            record.Desc           = this.Desc;
            record.Text           = this.Text;
            record.Level          = this.Level;
            record.Index          = this.Index;
            record.Page           = this.Page;
            record.ForUseWith     = this.ForUseWith;
            record.FileName       = this.FileName;
            record.SelcoSpId      = this.SelcoSpId;
            record.PrintOnly      = this.PrintOnly;
            record.EmailSubject   = this.EmailSubject;
            record.LocalprintOnly = this.LocalprintOnly;
            record.Pdf            = this.Pdf;
            record.SendProleId    = this.SendProleId;
            record.Current        = this.Current;
            record.EmailBody      = this.EmailBody;
            record.PqId           = this.PqId;
            record.AttId          = this.AttId;
            record.Label          = this.Label;
            return(record);
        }