Ejemplo n.º 1
0
        public override void CreateEntities(PxMetaModel.PcAxisMetabaseEntities context)
        {
            if (IsNew)
            {
                base.CreateEntities(context);

                PxMetaModel.FootnoteValue footnoteValue = new PxMetaModel.FootnoteValue();

                footnoteValue.ValuePool = Value.ValuePool;

                footnoteValue.ValueCode = Value.ValueCode;

                footnoteValue.FootnoteNo = FootnoteNo;

                footnoteValue.UserId = System.Security.Principal.WindowsIdentity.GetCurrent().Name;

                footnoteValue.LogDate = DateTime.Now;

                context.AddToFootnoteValues(footnoteValue
                    );
            }

            else
            {
                base.UpdateEntities(context);
            }
        }