Пример #1
0
        /// <summary>
        ///     Creates a new <see cref="AccountXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="AccountXrefRecord" /> object instance.
        /// </returns>
        public AccountXrefRecord Clone()
        {
            AccountXrefRecord record = new AccountXrefRecord();

            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.AccId         = this.AccId;
            record.OrgId         = this.OrgId;
            record.AddId         = this.AddId;
            record.Main          = this.Main;
            record.Invoice       = this.Invoice;
            record.Statement     = this.Statement;
            record.NoAddChange   = this.NoAddChange;
            record.ProleId       = this.ProleId;
            record.ForAttnOf     = this.ForAttnOf;
            record.Code          = this.Code;
            record.Nominated     = this.Nominated;
            record.InclHierarchy = this.InclHierarchy;
            record.FromHierarchy = this.FromHierarchy;
            return(record);
        }
Пример #2
0
        public override void Modify(AccountXrefRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateAccount_Xref");

            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev");
            this.MapParametersIn(command, record, true);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
Пример #3
0
        /// <summary>
        ///     Indicates whether the current <see cref="AccountXrefRecord" /> instance is equal to another <see cref="AccountXrefRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="AccountXrefRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(AccountXrefRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.AccId.TrimOrNullify() == that.AccId.TrimOrNullify());
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.AddId.TrimOrNullify() == that.AddId.TrimOrNullify());
            result = result && (this.Main == that.Main);
            result = result && (this.Invoice == that.Invoice);
            result = result && (this.Statement == that.Statement);
            result = result && (this.NoAddChange == that.NoAddChange);
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.ForAttnOf.TrimOrNullify() == that.ForAttnOf.TrimOrNullify());
            result = result && (this.Code.TrimOrNullify() == that.Code.TrimOrNullify());
            result = result && (this.Nominated == that.Nominated);
            result = result && (this.InclHierarchy == that.InclHierarchy);
            result = result && (this.FromHierarchy == that.FromHierarchy);
            return(result);
        }