Esempio n. 1
0
            /// <summary>
            /// When loading
            /// </summary>
            /// <param name="countryId"></param>
            /// <param name="retailerId"></param>
            /// <param name="voucherId"></param>
            /// <returns></returns>
            public bool Equals(int countryId, int retailerId, int voucherId)
            {
#if DEBUGGER
                Trace.WriteLine(string.Concat("\r\n   ", CountryID, " <> ", RetailerID, " <> ", VoucherID,
                                              "\r\n   ", countryId, " <> ", retailerId, " <> ", voucherId), Strings.VRPINT);
#endif

                return((CountryID == countryId) &&
                       RetailerID.CompareSmart(RetailerIDCD, retailerId, 0) &&
                       VoucherID.CompareSmart(VoucherIDCD, voucherId, 0));
            }
Esempio n. 2
0
            /// <summary>
            /// When scanning
            /// </summary>
            /// <param name="other"></param>
            /// <returns></returns>
            public bool Equals(VoucherItem other)
            {
                Debug.Assert(other != null);

#if DEBUGGER
                Trace.WriteLine(string.Concat("\r\n   ", CountryID, " <> ", RetailerID, " <> ", VoucherID,
                                              "\r\n   ", other.CountryID, " <> ", other.RetailerID, " <> ", other.VoucherID), Strings.VRPINT);
#endif

                return(RetailerID.CompareSmart(RetailerIDCD, other.RetailerID, other.RetailerIDCD) &&
                       VoucherID.CompareSmart(VoucherIDCD, other.VoucherID, other.VoucherIDCD)); //(CountryID == other.CountryID)
            }