private void clearTextMoreInfo()
        {
            txtNewEventDollarSpend.Text          = string.Empty;
            txtNewEventDollarSpendByPartner.Text = string.Empty;
            txtNewEventBus.Text = string.Empty;
            txtNewEventVan.Text = string.Empty;

            CBroomreserved.Checked   = false;
            CBmarketing.Checked      = false;
            CBcatering.Checked       = false;
            CBsignupform.Checked     = false;
            CBactivitywaiver.Checked = false;
            CBcunight.Checked        = false;

            ddlSelectDrivers.SelectedIndex = -1;
            UploadedDrivers.Clear();
            grdNewEventDrivers.DataBind();
        }
예제 #2
0
        protected void clearAlltext()
        {
            pnlSelection.Visible = true;
            pnlEditing.Visible   = false;

            lblEventId.Text = string.Empty;
            //ddlSelectOrganization.SelectedIndex = -1;

            ddlSelectDrivers.Items.Clear();
            ddlEditEventOrgEncharge.Items.Clear();
            txtEditEventEmailID.Text              = string.Empty;
            txtEditEventLocation.Text             = string.Empty;
            txtEditEventPhone.Text                = string.Empty;
            txtEditEventTime.Text                 = string.Empty;
            txtEditEventTitle.Text                = string.Empty;
            txtEditEventDate.Text                 = string.Empty;
            txtEditEventDescription.Text          = string.Empty;
            txtEditEventOrgWorkedWith.Text        = string.Empty;
            txtEditEventContactPerson.Text        = string.Empty;
            ddlEditEventOrgEncharge.SelectedIndex = -1;
            chkEventLocationOffCampus.Checked     = false;
            txtEditEventAttendence.Text           = string.Empty;

            txtEditEventBus.Text         = string.Empty;
            txtEditEventVan.Text         = string.Empty;
            txtEditEventDollarSpend.Text = string.Empty;
            txtDollarSpentByPartner.Text = string.Empty;

            //added per Jake/Katie
            txtCreatedByUser.Text = string.Empty;

            //added per Jake/Katie for MyOrgs project
            CBroomreserved.Checked   = false;
            CBmarketing.Checked      = false;
            CBcatering.Checked       = false;
            CBsignupform.Checked     = false;
            CBactivitywaiver.Checked = false;
            CBcunight.Checked        = false;

            txtComments.Text = string.Empty;

            UploadedDrivers.Clear();
        }
예제 #3
0
        protected void btnEditEventMoreInfoCancel_Click1(object sender, EventArgs e)
        {
            UploadedDrivers.Clear();

            pnlEditing.Visible   = true;
            btnCancelAll.Visible = true;
            btnSubmitAll.Visible = true;
            App_Data.OrgEvent eventForEdit = getCurrentEvent();
            txtEditEventBus.Text         = eventForEdit.BusRental.ToString();
            txtEditEventVan.Text         = eventForEdit.VanRental.ToString();
            txtEditEventDollarSpend.Text = eventForEdit.DollarsSpentByOrg.ToString();
            txtDollarSpentByPartner.Text = eventForEdit.DollarsSpentByPartner.ToString();

            //added per Jake/Katie for MyOrgs project
            txtCreatedByUser.Text = eventForEdit.CreatedByUser;

            UploadedDrivers = EventDAO.getDriversForEvent(Convert.ToInt32(eventForEdit.Driver1), Convert.ToInt32(eventForEdit.Driver2));
            grdEditEventDrivers.DataSource = UploadedDrivers;
            grdEditEventDrivers.DataBind();
        }
예제 #4
0
        public void PopulateInformationEvent()
        {
            pnlSelection.Visible = false;
            pnlEditing.Visible   = true;

            UploadedDrivers.Clear();
            ddlSelectDrivers.Items.Clear();

            ListItem select = new ListItem("Select Driver", "-1");

            ddlSelectDrivers.Items.Add(select);

            ddlSelectDrivers.DataSource     = EventDAO.getStudentDriverList();
            ddlSelectDrivers.DataTextField  = "Name";
            ddlSelectDrivers.DataValueField = "Student_ID";
            ddlSelectDrivers.DataBind();

            try
            {
                App_Data.OrgEvent eventForEdit = getCurrentEvent();

                txtEditEventDate.Text                  = Convert.ToDateTime(eventForEdit.Date).ToShortDateString();
                txtEditEventTime.Text                  = eventForEdit.Time;
                txtEditEventTitle.Text                 = eventForEdit.Title;
                ddlEditEventOrgEncharge.DataSource     = OrganizationDAO.getOrganizationList();
                ddlEditEventOrgEncharge.DataTextField  = "OrganizationName";
                ddlEditEventOrgEncharge.DataValueField = "Organization_ID";
                ddlEditEventOrgEncharge.DataBind();
                ddlEditEventOrgEncharge.SelectedValue = eventForEdit.Organization_ID.ToString();
                txtEditEventOrgWorkedWith.Text        = eventForEdit.OrganizationWorkedWith;
                if (eventForEdit.OnOffCampus == true)
                {
                    chkEventLocationOffCampus.Checked = true;
                }
                txtEditEventContactPerson.Text = eventForEdit.ContactName;
                txtEditEventLocation.Text      = eventForEdit.Location;
                txtEditEventDescription.Text   = eventForEdit.Description;
                txtEditEventPhone.Text         = eventForEdit.ContactPhone;
                txtEditEventEmailID.Text       = eventForEdit.ContactEmail;
                txtEditEventBus.Text           = eventForEdit.BusRental.ToString();
                txtEditEventVan.Text           = eventForEdit.VanRental.ToString();
                txtEditEventDollarSpend.Text   = eventForEdit.DollarsSpentByOrg.ToString();
                txtDollarSpentByPartner.Text   = eventForEdit.DollarsSpentByPartner.ToString();
                txtEditEventAttendence.Text    = eventForEdit.Attendance.ToString();

                //added per Jake/Katie for MyOrgs project
                txtCreatedByUser.Text = eventForEdit.CreatedByUser;

                if (eventForEdit.RoomReserved == true)
                {
                    CBroomreserved.Checked = true;
                }
                if (eventForEdit.Marketing == true)
                {
                    CBmarketing.Checked = true;
                }
                if (eventForEdit.Catering == true)
                {
                    CBcatering.Checked = true;
                }
                if (eventForEdit.SignupForm == true)
                {
                    CBsignupform.Checked = true;
                }
                if (eventForEdit.ActivityWaiver == true)
                {
                    CBactivitywaiver.Checked = true;
                }
                if (eventForEdit.CUNight == true)
                {
                    CBcunight.Checked = true;
                }

                UploadedDrivers = EventDAO.getDriversForEvent(Convert.ToInt32(eventForEdit.Driver1), Convert.ToInt32(eventForEdit.Driver2));
                grdEditEventDrivers.DataSource = UploadedDrivers;
                grdEditEventDrivers.DataBind();

                //Bind Comments to grid
                grdComments.DataSource = EventDAO.getCommentsByEventID(eventForEdit.Event_ID);
                grdComments.DataBind();
            }
            catch (Exception)
            {
                lblMessage.Text = "Unable to retrieve the event data!!";
            }
        }