コード例 #1
0
        override public Boolean Load(Int64 forId)
        {
            StringBuilder selectStatement = new StringBuilder();

            System.Data.DataTable tableSponsor;

            if (base.application.EnvironmentDatabase == null)
            {
                return(false);
            }

            selectStatement.Append("EXEC dal.Sponsor_Select " + forId.ToString());

            tableSponsor = base.application.EnvironmentDatabase.SelectDataTable(selectStatement.ToString());

            if (tableSponsor.Rows.Count == 1)
            {
                MapDataFields(tableSponsor.Rows[0]);

                entity = new Entity.Entity(base.application, entityId);

                return(true);
            }

            else
            {
                return(false);
            }
        }
コード例 #2
0
        override public void MapDataFields(System.Data.DataRow currentRow)
        {
            base.MapDataFields(currentRow);

            entityId = (Int64)currentRow["EntityId"];

            entity = application.EntityGet(entityId);

            return;
        } // MapDataFields (System.Data.DataRow currentRow)
コード例 #3
0
        public SendCorrespondenceRequest(Server.Core.Entity.Entity forEntity, Core.Entity.Entity forRelatedEntity, Int64 forCorrespondenceId, Boolean forAllowUserSelection)
        {
            base.userInteractionType = Mercury.Server.Workflows.UserInteractions.Enumerations.UserInteractionType.SendCorrespondence;

            entity = forEntity;

            relatedEntity = forRelatedEntity;

            correspondenceId = forCorrespondenceId;

            allowUserSelection = forAllowUserSelection;

            return;
        }