Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Title = "End of Day Listing";
            if (!IsPostBack)
            {
                IHostRepository hostRepository = new HostRepository();
                var             host           = hostRepository.GetHostForEvent(EventId);

                HostId   = host.Id;
                HostName = host.OrganizationName + ", " + host.Address.State;

                MarkedLaterForHostRanking = false;
                ScreenForHostRanking      = false;
                if (Request.QueryString["HostRanking"] != null)
                {
                    this.Title = "Update Host Ranking";
                    _divSignoffCompleted.Style[HtmlTextWriterStyle.Display] = "none";
                    ScreenForHostRanking = true;
                    LinksEodDiv.Style[HtmlTextWriterStyle.Display] = "none";
                    OpenHostRankingInputBox();
                }
                //else if (Request.QueryString["EventID"] != null)
                //{
                //    FetchList(EventId);

                //    if (Request.QueryString["EventName"] == null)
                //    {
                //        MasterDAL masterDal = new MasterDAL();
                //        EEvent objEvent = masterDal.GetEvent(Request.QueryString["EventID"], "2").FirstOrDefault<EEvent>();
                //        spEventName.InnerHtml = HttpUtility.HtmlEncode(objEvent.Name);
                //    }
                //    else
                //        spEventName.InnerHtml = HttpUtility.HtmlEncode(Request.QueryString["EventName"]);
                //}
            }
        }