public override void Modify(ActivityXrefRecord record) { DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateActivity_Xref"); this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev"); this.MapErrorParams(command); this.MapParametersIn(command, record, true); this.Execute(command); this.CheckErrorParams(command); this.MapParametersOut(command, record); }
/// <summary> /// Creates a new <see cref="ActivityXrefRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ActivityXrefRecord" /> object instance. /// </returns> public ActivityXrefRecord Clone() { ActivityXrefRecord record = new ActivityXrefRecord(); record.Id = this.Id; 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.ActId = this.ActId; record.PersonId = this.PersonId; record.OrgId = this.OrgId; record.ProleId = this.ProleId; record.DiaryType = this.DiaryType; record.Closer = this.Closer; record.PassFrom = this.PassFrom; record.Originator = this.Originator; record.OrgName = this.OrgName; record.PnName = this.PnName; record.OrgPhone = this.OrgPhone; record.PnPhone = this.PnPhone; record.Type = this.Type; record.Read = this.Read; record.Trainer = this.Trainer; record.Admin = this.Admin; record.Session = this.Session; record.ProdId = this.ProdId; record.TerrId = this.TerrId; record.SchedId = this.SchedId; record.SlDtId = this.SlDtId; record.Usage = this.Usage; record.Qty = this.Qty; record.DelQty = this.DelQty; record.Usernum1 = this.Usernum1; record.Userdate1 = this.Userdate1; record.Internal = this.Internal; record.HourRate = this.HourRate; record.DayRate = this.DayRate; record.Currency = this.Currency; record.PayMethod = this.PayMethod; record.PoNumber = this.PoNumber; record.TeachHour = this.TeachHour; record.CstAc = this.CstAc; record.CstAcBc = this.CstAcBc; record.CstAcBc2 = this.CstAcBc2; record.PerDay = this.PerDay; record.BatId = this.BatId; record.Recharge = this.Recharge; record.Cancelled = this.Cancelled; record.TrainerT = this.TrainerT; record.AdminT = this.AdminT; record.Guid = this.Guid; record.Notaccepted = this.Notaccepted; record.ExclCertDel = this.ExclCertDel; record.RemindDate = this.RemindDate; record.AllocStatus = this.AllocStatus; record.ProfKey = this.ProfKey; record.ProfValue = this.ProfValue; record.ProfValue2 = this.ProfValue2; record.UntType = this.UntType; record.RoomType = this.RoomType; record.IncInBudget = this.IncInBudget; record.ProleEmail = this.ProleEmail; record.OutlookStatus = this.OutlookStatus; record.CemOrganizer = this.CemOrganizer; record.OutlookId = this.OutlookId; record.Delete = this.Delete; record.BomId = this.BomId; record.ProdName = this.ProdName; return(record); }
/// <summary> /// Indicates whether the current <see cref="ActivityXrefRecord" /> instance is equal to another <see cref="ActivityXrefRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ActivityXrefRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ActivityXrefRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.ActId.TrimOrNullify() == that.ActId.TrimOrNullify()); result = result && (this.PersonId.TrimOrNullify() == that.PersonId.TrimOrNullify()); result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify()); result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify()); result = result && (this.DiaryType == that.DiaryType); result = result && (this.Closer == that.Closer); result = result && (this.PassFrom == that.PassFrom); result = result && (this.Originator == that.Originator); result = result && (this.OrgName.TrimOrNullify() == that.OrgName.TrimOrNullify()); result = result && (this.PnName.TrimOrNullify() == that.PnName.TrimOrNullify()); result = result && (this.OrgPhone.TrimOrNullify() == that.OrgPhone.TrimOrNullify()); result = result && (this.PnPhone.TrimOrNullify() == that.PnPhone.TrimOrNullify()); result = result && (this.Type == that.Type); result = result && (this.Read == that.Read); result = result && (this.Trainer == that.Trainer); result = result && (this.Admin == that.Admin); result = result && (this.Session == that.Session); result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify()); result = result && (this.TerrId.TrimOrNullify() == that.TerrId.TrimOrNullify()); result = result && (this.SchedId.TrimOrNullify() == that.SchedId.TrimOrNullify()); result = result && (this.SlDtId.TrimOrNullify() == that.SlDtId.TrimOrNullify()); result = result && (this.Usage == that.Usage); result = result && (this.Qty == that.Qty); result = result && (this.DelQty == that.DelQty); result = result && (this.Usernum1 == that.Usernum1); result = result && (this.Userdate1 == that.Userdate1); result = result && (this.Internal == that.Internal); result = result && (this.HourRate == that.HourRate); result = result && (this.DayRate == that.DayRate); result = result && (this.Currency.TrimOrNullify() == that.Currency.TrimOrNullify()); result = result && (this.PayMethod.TrimOrNullify() == that.PayMethod.TrimOrNullify()); result = result && (this.PoNumber.TrimOrNullify() == that.PoNumber.TrimOrNullify()); result = result && (this.TeachHour == that.TeachHour); result = result && (this.CstAc == that.CstAc); result = result && (this.CstAcBc == that.CstAcBc); result = result && (this.CstAcBc2 == that.CstAcBc2); result = result && (this.PerDay == that.PerDay); result = result && (this.BatId.TrimOrNullify() == that.BatId.TrimOrNullify()); result = result && (this.Recharge == that.Recharge); result = result && (this.Cancelled == that.Cancelled); result = result && (this.TrainerT.TrimOrNullify() == that.TrainerT.TrimOrNullify()); result = result && (this.AdminT.TrimOrNullify() == that.AdminT.TrimOrNullify()); result = result && (this.Guid.TrimOrNullify() == that.Guid.TrimOrNullify()); result = result && (this.Notaccepted == that.Notaccepted); result = result && (this.ExclCertDel == that.ExclCertDel); result = result && (this.RemindDate == that.RemindDate); result = result && (this.AllocStatus == that.AllocStatus); result = result && (this.ProfKey.TrimOrNullify() == that.ProfKey.TrimOrNullify()); result = result && (this.ProfValue.TrimOrNullify() == that.ProfValue.TrimOrNullify()); result = result && (this.ProfValue2.TrimOrNullify() == that.ProfValue2.TrimOrNullify()); result = result && (this.UntType.TrimOrNullify() == that.UntType.TrimOrNullify()); result = result && (this.RoomType.TrimOrNullify() == that.RoomType.TrimOrNullify()); result = result && (this.IncInBudget == that.IncInBudget); result = result && (this.ProleEmail.TrimOrNullify() == that.ProleEmail.TrimOrNullify()); result = result && (this.OutlookStatus.TrimOrNullify() == that.OutlookStatus.TrimOrNullify()); result = result && (this.CemOrganizer == that.CemOrganizer); result = result && (this.OutlookId.TrimOrNullify() == that.OutlookId.TrimOrNullify()); result = result && (this.Delete == that.Delete); result = result && (this.BomId.TrimOrNullify() == that.BomId.TrimOrNullify()); result = result && (this.ProdName.TrimOrNullify() == that.ProdName.TrimOrNullify()); return(result); }