Ejemplo n.º 1
0
        public OpportunityDetail GetOpportunityDetailById(int opportunityId)
        {
            var reader = dbHelper.GetOpportunityDetailByOpportunityId(Constant.SP_GetOpportunityDetailByOpportunityId, opportunityId);
            List <OpportunityDetail> detailList        = new List <OpportunityDetail>();
            OpportunityDetail        opportunityDetail = null;

            while (reader.Read())
            {
                opportunityDetail = new OpportunityDetail();

                opportunityDetail.OrganizationName = reader["OrganizationName"].ToString();
                opportunityDetail.OrganizationDesc = reader["OrganizationDesc"].ToString();
                opportunityDetail.OpportunityName  = reader["OpportunityName"].ToString();
                opportunityDetail.OpportunityDesc  = reader["OpportunityDesc"].ToString();
                //opportunityDetail.SlotsAvailable = reader["SlotsAvailable"].ToString();
                //opportunityDetail.DistanceFromSU = reader["DistanceFromSU"].ToString();
                opportunityDetail.Location            = reader["Location"].ToString();
                opportunityDetail.TimeCommittment     = reader["TimeCommittment"].ToString();
                opportunityDetail.SiteSupervisorName  = reader["SiteSupervisorName"].ToString();
                opportunityDetail.SiteSupervisorEmail = reader["SupervisorEmail"].ToString();
                opportunityDetail.BackgroundCheck     = reader["MinimumAge"].ToString();
                opportunityDetail.MinimumAge          = reader["MinimumAge"].ToString();
                opportunityDetail.Link = reader["Link"].ToString();
                opportunityDetail.OtherRequirements = "Resume";

                detailList.Add(opportunityDetail);
            }

            return(opportunityDetail);
        }
Ejemplo n.º 2
0
        private void DataBind()
        {
            int opportunityID = Convert.ToInt32(Session["Student_SelectedOpportunityID"]);
            OpportunityDetail opportunityDetail = new OpportunityDetail();
            OpportunityDetail detail            = opportunityDetail.GetOpportunityDetailById(opportunityID);

            lblPositionAtOrganization.Text             = detail.OpportunityName + " at " + detail.OrganizationName;
            lblOpportunityDesc.Text                    = detail.OpportunityName + " " + detail.OrganizationDesc;
            lblLocationValue.Text                      = detail.Location;
            lblTimeCommitmentValue.Text                = detail.TimeCommittment;
            lblSiteSuperVisotrNameandAddressValue.Text = detail.SiteSupervisorName + ", " + detail.SiteSupervisorEmail;
            lblBackgroundCheckRequiredValue.Text       = detail.BackgroundCheck;
            lblMinimumAgeValue.Text                    = detail.MinimumAge;
            lblLinkValue.Text = detail.Link;
            lblOtherRequirementsValue.Text = detail.OtherRequirements;
        }