コード例 #1
0
			internal void Update(ParteAsistencia parent)
			{
				// if we're not dirty then don't update the database
				if (!this.IsDirty) return;

				OidParte = parent.Oid;

				try
				{
					ValidationRules.CheckRules();

					if (!IsValid)
						throw new iQValidationException(moleQule.Library.Resources.Messages.GENERIC_VALIDATION_ERROR);

                    Concepto_ParteRecord obj = parent.Session().Get<Concepto_ParteRecord>(Oid);
					obj.CopyValues(this.Base.Record);
					parent.Session().Update(obj);
				}
				catch (Exception ex)
				{
					iQExceptionHandler.TreatException(ex);
				}

				MarkOld();
			}
コード例 #2
0
		public virtual void CopyValues(Concepto_ParteRecord source)
		{
			if (source == null) return;

			Oid = source.Oid;
			_oid_concepto = source.OidConcepto;
			_oid_parte = source.OidParte;
		}