private void InitMembers()
    {
        mCurrentUser = (UserBase)Session["CurrentUser"];

        if (mCurrentUser != null)
        {
            if (mCurrentUser.IsNull)
            {
                mCurrentUser = null;
            }
        }

        if (mEventBaseBO == null)
        {
            mEventBaseBO = new EventBaseBO();
        }

        if (mUserBaseBO == null)
        {
            mUserBaseBO = new UserBaseBO();
        }

        if (mEventsInvitationsBO == null)
        {
            mEventsInvitationsBO = new EventsInvitationsBO();
        }

        if (mHoldingsInfoBO == null)
        {
            mHoldingsInfoBO = new HoldingsInfoBO();
        }

        mIsInit = true;
    }
 public EventBriefWebService()
 {
     mEventBaseBO         = new EventBaseBO();
     mUserBaseBO          = new UserBaseBO();
     mItemBaseBO          = new ItemBaseBO();
     mHoldingsInfoBO      = new HoldingsInfoBO();
     mEventsInvitationsBO = new EventsInvitationsBO();
 }
    public EventDetailsWebService()
    {
        mEventBaseBO           = new EventBaseBO();
        mUserBaseBO            = new UserBaseBO();
        mResourceDescriptionBO = new ResourceDescriptionBO();
        mEventTimeInfoBO       = new EventTimeInfoBO();
        mObjectLocationBO      = new ObjectLocationBO();
        mUserNameImageListBO   = new UserNameImageListBO();
        mItemBaseBO            = new ItemBaseBO();
        mHoldingsInfoBO        = new HoldingsInfoBO();
        mEventsInvitationsBO   = new EventsInvitationsBO();
        mUsersConnectionBO     = new UsersConnectionBO();

        Session["HoldingsInfoBO"] = mHoldingsInfoBO;

        //Uncomment the following line if using designed components
        //InitializeComponent();
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        mLoginManagerBO      = new LoginManagerBO();
        mEventBaseBO         = new EventBaseBO();
        mUserBaseBO          = new UserBaseBO();
        mItemBaseBO          = new ItemBaseBO();
        mUserNameImageListBO = new UserNameImageListBO();

        Session["NewItemsListLoaded"] = false;

        mCurrentUser = (UserBase)Session["CurrentUser"];

        if (mCurrentUser == null)
        {
            Signout();
        }
        else if (!mCurrentUser.IsNull)
        {
            mCurrentEvent = (EventBase)Session["CurrentEvent"];
            if (mCurrentEvent == null)
            {
                GoToBrief();
            }
            if (mCurrentEvent.IsNull)
            {
                GoToBrief();
            }

            if (mCurrentUser.UniqueID != mCurrentEvent.Admin.UniqueID)
            {
                Response.Redirect("EventView.aspx");
            }

            lblName.Text = "Hello " + mCurrentUser.FirstName + " " + mCurrentUser.LastName;

            PopulatePage();
        }
        else
        {
            Signout();
        }
    }
Пример #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        mLoginManagerBO      = new LoginManagerBO();
        mEventBaseBO         = new EventBaseBO();
        mUserBaseBO          = new UserBaseBO();
        mItemBaseBO          = new ItemBaseBO();
        mUserNameImageListBO = new UserNameImageListBO();

        mCurrentUser = (UserBase)Session["CurrentUser"];

        if (mCurrentUser == null)
        {
            Signout();
        }
        else if (!mCurrentUser.IsNull)
        {
            lblName.Text = "Hello " + mCurrentUser.FirstName + " " + mCurrentUser.LastName;

            mCurrentEvent = (EventBase)Session["CurrentEvent"];

            if (mCurrentEvent == null)
            {
                GoToBrief();
            }
            if (mCurrentEvent.IsNull)
            {
                GoToBrief();
            }

            PopulatePage();
        }
        else
        {
            Signout();
        }
    }
Пример #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        mLoginManagerBO = new LoginManagerBO();
        mEventBaseBO    = new EventBaseBO();
        mUserBaseBO     = new UserBaseBO();

        mCurrentUser = (UserBase)Session["CurrentUser"];

        Session["CurrentEvent"] = null;

        if (mCurrentUser == null)
        {
            Signout();
        }
        else if (!mCurrentUser.IsNull)
        {
            lblName.Text = "Hello " + mCurrentUser.FirstName + " " + mCurrentUser.LastName;
            PopulatePage(IsPostBack);
        }
        else
        {
            Signout();
        }
    }