protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4500;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Events List");

            _mStrSortExp = String.Empty;

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                if (WasFiltered())
                {
                    GetFilterSessionValues();
                }

                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Badge Awards List");

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Code Breaker Key Setup");

            if (!IsPostBack)
            {
                if (Request["MGID"] != null)
                {
                    lblMGID.Text = Request["MGID"];
                    lblCBID.Text = Request["CBID"];

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;
                }
                else
                {
                    Response.Redirect("~/ControlRoom/");
                }
                rptr.DataSource = GetKeyCharacters();
                rptr.DataBind();
            }
        }
Esempio n. 4
0
        //public string ShowBoardWGrid(int PGID, int Board = 0)
        //{
        //    var tbl = "";
        //    var pg = ProgramGame.FetchObject(PGID);
        //    var rows = "";
        //    var size = 800;
        //    var cellSize = (int)(800/pg.BoardWidth);
        //    size = cellSize*pg.BoardWidth;
        //    var img = string.Format("<img src='/images/Games/Board/{0}{1}.png' style=' width: {2}px; height: {2}px;' width='{2}px' height='{2}px' />",
        //        (Board == 0 ? "" : "bonus_"), PGID, size);
        //    for (int i = 0; i < pg.BoardWidth; i++)
        //    {
        //        for (int j = 0; j < pg.BoardWidth; j++)
        //        {
        //            rows = string.Format("{0}<td style='font-size: 8px; overflow: hidden;' align='center' valign='middle' width='{1}px' height='{2}px' nowrap>X = {3}<br>Y = {4}</td>", rows, cellSize, cellSize - 1, j + 1, i + 1);
        //        }
        //        rows = string.Format("<tr>{0}</tr>", rows);
        //    }
        //    tbl = string.Format("{1}<table border=1 style='border-collapse: collapse; position: relative; top:-{2}px; width: {2}px; height: {2}px;' width='{2}px' height='{2}px'>{0}</table>", rows, img, size);

        //    return tbl;
        //}

        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4300;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Game Level Add / Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Request["PK"];
                PGID.Text  = Request["PK2"];
                if (lblPK.Text.Length == 0 && PGID.Text == "")
                {
                    Response.Redirect("ProgramGameLevelList.aspx");
                }
                if (PGID.Text != "")
                {
                    var o = ProgramGame.FetchObject(int.Parse(PGID.Text));
                    lblGameName.Text = o.GameName;
                }
                if (lblPK.Text.Length == 0)
                {
                    dv.ChangeMode(DetailsViewMode.Insert);
                }
                else
                {
                    dv.ChangeMode(DetailsViewMode.Edit);
                    var o = ProgramGame.FetchObject(ProgramGameLevel.FetchObject(int.Parse(lblPK.Text)).PGID);
                    PGID.Text        = o.PGID.ToString();
                    lblGameName.Text = o.GameName;
                }
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4400;
            MasterPage.IsSecure           = true;

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Session["BLL"] == null ? "" : Session["BLL"].ToString(); //Session["BLL"]= string.Empty;
                var bl = BookList.FetchObject(int.Parse(lblPK.Text));
                MasterPage.PageTitle = string.Format("Tasks in the \"{0}\" Challenge", bl.AdminName);
            }


            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Esempio n. 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
                SID.Text = Session["SID"] == null ? "" : Session["SID"].ToString();
                if (SID.Text == "")
                {
                    Response.Redirect("SurveyList.aspx");
                }
                var s = Survey.FetchObject(int.Parse(SID.Text));
                lblSurvey.Text = string.Format("{0} - {1}", s.Name, s.LongName);
                var j = Survey.GetNumQuestions(s.SID);
                for (var i = 1; i <= j; i++)
                {
                    JumpToQuestion2.Items.Add(i.ToString());
                    JumpToQuestion4.Items.Add(i.ToString());
                }
                Session["tmpQ2"] = null;
                Session["tmpC2"] = 0;

                Session["tmpQ4"] = null;
                Session["tmpC4"] = 0;

                Session["tmpL4"]  = null;
                Session["tmpLC4"] = 0;
            }
            MasterPage.RequiredPermission = 5200;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Survey/Test Question Add");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Mix And Match Edit");

            if (!IsPostBack)
            {
                lblPK.Text = Request["PK"];
                if (lblPK.Text.Length == 0)
                {
                    dv.ChangeMode(DetailsViewMode.Insert);
                }
                else
                {
                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                Page.DataBind();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         MasterPage.IsSecure  = true;
         MasterPage.PageTitle = string.Format("{0}", "Program Management Home");
         SetPageRibbon(StandardModuleRibbons.SetupRibbon());
     }
 }
Esempio n. 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MasterPage.IsSecure  = true;
                MasterPage.PageTitle = string.Format("{0}", "Manual Bulk Badge Awards");

                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }
        }
Esempio n. 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            MasterPage.RequiredPermission = 5200;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = "Survey Embed Code";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 5400;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Import/Export Events");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }
        }
Esempio n. 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            MasterPage.RequiredPermission = 5200;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Test/Survey Results");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                if (Request["MGID"] != null)
                {
                    lblMGID.Text = Request["MGID"];
                    if (Request["L"] != null)
                    {
                        lblDiff.Text = Request["L"];
                    }
                    var s = (lblDiff.Text == "1"
                                 ? " - EASY Difficulty"
                                 : (lblDiff.Text == "2" ? " - MEDIUM Difficulty" : " - HARD Difficulty"));


                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName + s;

                    var o2 = MGChooseAdv.FetchObjectByParent(int.Parse(lblMGID.Text));
                    lblCAID.Text = o2.CAID.ToString();
                }
                else
                {
                    Response.Redirect("MiniGameList.aspx");
                }
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Choose Your Adventure Slides List");

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Esempio n. 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = 3000;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Minigame Preview");

            TranslateStrings(this);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Background/Coloring Page Edit");

            if (!IsPostBack)
            {
                if (Request["MGID"] != null)
                {
                    lblMGID.Text = Request["MGID"];
                    lblHPID.Text = Request["HPID"];

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    var obj = new MGHiddenPicBk();
                    obj.HPID        = int.Parse(lblHPID.Text);
                    obj.MGID        = int.Parse(lblMGID.Text);
                    obj.AddedDate   = DateTime.Now;
                    obj.AddedUser   = ((SRPUser)Session[SessionData.UserProfile.ToString()]).Username; //"N/A";  // Get from session
                    obj.LastModDate = obj.AddedDate;
                    obj.LastModUser = obj.AddedUser;
                    obj.Insert();
                    lblPK.Text = obj.HPBID.ToString();

                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                else
                {
                    lblPK.Text = Request["PK"];

                    var o1 = MGHiddenPicBk.FetchObject(int.Parse(lblPK.Text));
                    lblMGID.Text = o1.MGID.ToString();
                    lblHPID.Text = o1.HPID.ToString();

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4300;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Word Match Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Session["MGID"] == null ? "" : Session["MGID"].ToString(); //  Session["MGID"]= string.Empty;
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4300;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Mini Game Add");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Session["PK"] == null ? "" : Session["PK"].ToString(); Session["PK"] = "";
                dv.ChangeMode(DetailsViewMode.Insert);
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4400;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Add Challenge");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                Session["BLL"] = string.Empty;
                lblPK.Text     = Session["BLL"] == null ? "" : Session["BLL"].ToString();
                Page.DataBind();
            }
        }
Esempio n. 19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         SetPageRibbon(StandardModuleRibbons.SetupRibbon());
         SID.Text = Session["SID"] == null ? "" : Session["SID"].ToString();
         if (SID.Text == "")
         {
             Response.Redirect("SurveyList.aspx");
         }
         var s = Survey.FetchObject(int.Parse(SID.Text));
         lblSurvey.Text = string.Format("{0} - {1}", s.Name, s.LongName);
     }
     MasterPage.RequiredPermission = 5200;
     MasterPage.IsSecure           = true;
     MasterPage.PageTitle          = string.Format("{0}", "Survey/Test Clone");
 }
Esempio n. 20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                if (Request["PGID"] != null)
                {
                    odsDDPG.DataBind();
                    PGID.DataBind();
                    var i = PGID.Items.FindByValue(Request["PGID"].ToString());
                    if (i != null)
                    {
                        PGID.SelectedValue  = Request["PGID"].ToString();
                        Session["PGL_PGID"] = Request["PGID"].ToString();
                    }
                    SetFilterSessionValues();
                }
                pnlList.Visible = btnBoard.Visible = (PGID.SelectedValue != "0");
                GameName.Text   = PGID.SelectedItem.Text;
                GetFilterSessionValues();
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Board Game Levels List");

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                if (Request["MGID"] != null)
                {
                    lblMGID.Text = Request["MGID"];

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    var o2 = MGHiddenPic.FetchObjectByParent(int.Parse(lblMGID.Text));
                    lblHPID.Text = o2.HPID.ToString();
                }
                else
                {
                    Response.Redirect("MiniGameList.aspx");
                }
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Background/Coloring Pages List");

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4300;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Mix-And-Match Items");

            _mStrSortExp = String.Empty;

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
                if (Session["MGID"] != null)
                {
                    lblMGID.Text = Session["MGID"].ToString();

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    var o2 = MGMixAndMatch.FetchObjectByParent(int.Parse(lblMGID.Text));
                    lblMMID.Text = o2.MMID.ToString();
                }
                else
                {
                    Response.Redirect("MiniGameList.aspx");
                }


                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Esempio n. 23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4400;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Challenge Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Session["BLL"] == null ? "" : Session["BLL"].ToString(); //Session["BLL"]= string.Empty;
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();

                if (Request["M"] == "K")
                {
                    MasterPage.DisplayMessageOnLoad = true;
                    MasterPage.PageMessage          = "Challenge was saved successfully! Now click the 'Tasks in this Challenge' button and start adding book titles to the list!'";
                }
            }
        }
Esempio n. 24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4500;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Event Add / Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                lblPK.Text = Session["EID"] == null ? "" : Session["EID"].ToString(); //Session["EID"] = "";
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();

                if (Request["M"] == "K")
                {
                    MasterPage.DisplayMessageOnLoad = true;
                    MasterPage.PageMessage          = "Event was saved successfully!";
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
                SID.Text = Session["SID"] == null ? "" : Session["SID"].ToString();
                if (SID.Text == "")
                {
                    Response.Redirect("SurveyList.aspx");
                }
                var s = Survey.FetchObject(int.Parse(SID.Text));
                lblSurvey.Text = string.Format("{0} - {1}", s.Name, s.LongName);
                if (s.Status > 1)
                {
                    ReadOnly.Text = "true";
                }
            }

            MasterPage.RequiredPermission = 5200;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Survey/Test Question List");

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 5200;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Survey/Test Question Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                SID.Text = Session["SID"] == null ? "" : Session["SID"].ToString();
                if (SID.Text == "")
                {
                    Response.Redirect("SurveyList.aspx");
                }
                var s = Survey.FetchObject(int.Parse(SID.Text));
                lblSurvey.Text = string.Format("{0} - {1}", s.Name, s.LongName);
                if (s.Status > 1)
                {
                    ReadOnly.Text = "true";
                }

                //var j = Survey.GetNumQuestions(s.SID);
                //for (var i = 1; i <= j; i++)
                //{
                //    JumpToQuestion2.Items.Add(i.ToString());
                //    JumpToQuestion4.Items.Add(i.ToString());
                //}

                lblPK.Text = Session["QID"] == null ? "" : Session["QID"].ToString();
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();

                if (Request["M"] == "K")
                {
                    MasterPage.DisplayMessageOnLoad = true;
                    MasterPage.PageMessage          = "Item was saved successfully! ";
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Mix-And-Match Item Add / Edit");

            if (!IsPostBack)
            {
                if (Request["MGID"] != null)
                {
                    lblMGID.Text = Request["MGID"];
                    lblMMID.Text = Request["MMID"];

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    lblPK.Text = "";
                    dv.ChangeMode(DetailsViewMode.Insert);
                }
                else
                {
                    lblPK.Text = Request["PK"];

                    var o1 = MGMixAndMatchItems.FetchObject(int.Parse(lblPK.Text));
                    lblMGID.Text = o1.MGID.ToString();
                    lblMMID.Text = o1.MMID.ToString();

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4900;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Award Add / Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                //lblPK.Text = Request["PK"];
                lblPK.Text = Session["AWD"] == null ? "" : Session["AWD"].ToString(); //Session["AWD"]= string.Empty;
                dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit);
                Page.DataBind();

                if (Request["M"] == "K")
                {
                    MasterPage.DisplayMessageOnLoad = true;
                    MasterPage.PageMessage          = "Award definition was saved successfully! As patrons meet the Award Triggers, they will receive the award badge.";
                }
            }
        }
Esempio n. 29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());
                SID.Text = Session["SID"] == null ? "" : Session["SID"].ToString();
                if (SID.Text == "")
                {
                    Response.Redirect("SurveyList.aspx");
                }


                var s = DAL.Survey.FetchObject(int.Parse(SID.Text));
                lblSurvey.Text   = s.LongName;
                lblPreamble.Text = Server.HtmlDecode(s.Preamble);

                MasterPage.RequiredPermission = 5200;
                MasterPage.IsSecure           = true;
                MasterPage.PageTitle          = string.Format("{0}", "Survey/Test Question List");

                GetNextTestPage();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4300;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Matching Game Tiles Add / Edit");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SetupRibbon());

                if (Request["MAGID"] != null)
                {
                    lblMGID.Text  = Session["MGID"].ToString();
                    lblMAGID.Text = Request["MAGID"];

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    lblPK.Text = string.Empty;
                    dv.ChangeMode(DetailsViewMode.Insert);
                }
                else
                {
                    lblPK.Text = Request["PK"];

                    var o1 = MGMatchingGameTiles.FetchObject(int.Parse(lblPK.Text));
                    lblMGID.Text  = o1.MGID.ToString();
                    lblMAGID.Text = o1.MAGID.ToString();

                    var o = Minigame.FetchObject(int.Parse(lblMGID.Text));
                    AdminName.Text = o.AdminName;

                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                Page.DataBind();
            }
        }