private void Page_Load(object sender, System.EventArgs e)
        {
            nSubCategoryID = GetMainParamInt(hdnID);

            BackPageUrl = (string)Session["SBSubCategoryMaintenanceUrl"];

            if (!IsPostBack)
            {
                DataRow oDR = GetFirstRow(Config.DbGetSBSubCategoryDetails, new object[] { "@id", nSubCategoryID });
                if (oDR != null)
                {
                    //btnSave.Visible = false;
                    txtName.Text       = oDR["Name"].ToString();
                    nCategoryID        = Utils.GetInt(oDR["CategoryID"]);
                    txtSpreadFrom.Text = oDR["SpreadFrom"].ToString();
                    txtSpreadTo.Text   = oDR["SpreadTo"].ToString();
                    txtSpreadStep.Text = oDR["SpreadStep"].ToString();
                    txtOuFrom.Text     = oDR["OuFrom"].ToString();
                    txtOuTo.Text       = oDR["OuTo"].ToString();
                    txtOuStep.Text     = oDR["OuStep"].ToString();

                    txtName.Enabled       = false;
                    comboCategory.Enabled = false;
                    txtSpreadFrom.Enabled = false;
                    txtSpreadTo.Enabled   = false;
                    txtSpreadStep.Enabled = false;
                    txtOuFrom.Enabled     = false;
                    txtOuTo.Enabled       = false;
                    txtOuStep.Enabled     = false;
                }
                DBase.FillList(comboCategory, nCategoryID, Config.DbGetDictionarySBCategoryList, false);
                BindTeam();
            }
            InitJS();
        }
        protected void GetData(bool FromBase)
        {
            if (FromBase)
            {
                if (nTournamentPrizeID > 0)
                {
                    DataRow oDR = GetFirstRow(Config.DbGetTournamentPrizeDetails, new object[] { "@ID", nTournamentPrizeID });
                    if (oDR != null)
                    {
                        if (oDR["PaySchemaXML"] != null)
                        {
                            xmlTournamentPrize = oDR["PaySchemaXML"].ToString();
                        }
                        nValueType   = Utils.GetInt(oDR["PrizeValueType"]);
                        nCurrencyID  = Utils.GetInt(oDR["CurrencyTypeID"]);
                        txtName.Text = oDR["name"].ToString();
                    }
                }
                DBase.FillList(cbPrizeValueType, nValueType, Config.DbDictionaryTournPrizeValueType, false);
                DBase.FillList(cbCurrency, nCurrencyID, Config.DbDictionaryCurrency, false);
            }

            //		oPrize.FillTable(ref xmlTournamentPrize, ref table, true, false);
            hdnTournamentPrizeXML.Value = xmlTournamentPrize;
            prData.XMLToDataSet(xmlTournamentPrize);
        }
Exemple #3
0
        protected void PrepareCombo()
        {
            DBase.FillList(comboSex, nSexID, Config.DbDictionarySex, false);
            comboSex.Items.Insert(0, "All");

            /*		DBase.FillList(comboQualification, nQualificationID, Config.DbDictionaryQualification, true);
             *              comboQualification.Items.Insert(0, "All");*/
        }
 private void Page_Load(object sender, System.EventArgs e)
 {
     if (!IsPostBack)
     {
         DBase.FillList(ddTmpl, "admGetEmailTemplateForList", false);
         ddSendAs.Items.Add(new ListItem("Text", MailFormat.Text.ToString()));
         ddSendAs.Items.Add(new ListItem("HTML", MailFormat.Html.ToString()));
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DBase.FillList(ddSkins, "admGetDictionarySkins", false);
                ddSkins.Items.RemoveAt(0);
            }

            nGameEngineID = GetMainParamInt(hdnGameEngineID);
        }
        /// <summary>
        /// Fill both combo boxes
        /// </summary>
        protected void PreparePage()
        {
            DBase.FillList(comboStatus, nStatusID, Config.DbDictionaryStatus, false);
            DBase.FillList(comboCategory, nCategoryID, Config.DbDictionaryCategoryPoker, false);

            btnAttach.Text = "&#8592;";
            btnDetach.Text = "&#8594;";
            btnUp.Text     = "&#8593;";
            btnDown.Text   = "&#8595;";
        }
 private void Page_Load(object sender, System.EventArgs e)
 {
     nAffiliateID = GetMainParamInt(hdnAffiliateID);
     BackPageUrl  = (string )Session["SkinsMaintenanceUrl"];
     if (!IsPostBack)
     {
         DBase.FillList(ddStatus, "admDictionaryStatusForAffiliate", false);
         GetData();
     }
 }
Exemple #8
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     if (!IsPostBack)
     {
         DBase.FillList(ddSkins, "admGetDictionarySkins", false);
         DBase.FillList(ddCountry, Config.DbGetDictionaryCountry, false);
         DBase.FillList(ddState, Config.DbGetDictionaryState, false);
         ddSkins.Items.RemoveAt(0);
         Session["AffiliateSignup_SkinsID"] = ddSkins.SelectedValue;
     }
 }
Exemple #9
0
        /// <summary>
        /// Fill both combo boxes
        /// </summary>
        protected void PreparePage()
        {
            DBase.FillList(comboSex, nSexID, Config.DbDictionarySex, false);
            DBase.FillList(comboState, nStateID, Config.DbDictionaryState, false);
            DBase.FillList(comboCountry, nCountryID, Config.DbDictionaryCountry, false);
            DBase.FillList(comboStatus, nStatusID, Config.DbDictionaryStatus, false);

            comboState.Items.Insert(0, new ListItem("- Select State -", "0"));
            comboCountry.Items.Insert(0, new ListItem("- Select Country -", "0"));
            comboState.Items.FindByValue(nStateID.ToString()).Selected     = true;
            comboCountry.Items.FindByValue(nCountryID.ToString()).Selected = true;
        }
Exemple #10
0
        protected void  BindDataGrid()
        {
            oDTContentType = GetDataTable(Config.DbDictionaryContentType);
            DataView dv = new DataView(oDTContentType);

            DBase.FillList(combo_0, "0", dv);

            DataTable oDT = GetDataTable(Config.DbGetClientApplicationFileList, new object[] { "@SkinsID", AffID });

            oGrid.DataSource = oDT;
            oGrid.DataBind();
        }
        protected void  BindDataGrid()
        {
            oDTContentType = GetDataTable(Config.DbDictionaryContentType);
            DataView dv = new DataView(oDTContentType);

            DBase.FillList(combo_0, "0", dv);

            DataTable oDT = GetDataTable(Config.DbGetGameEngineFileList, "@EngineID", nGameEngineID);

            oGrid.DataSource = oDT;
            oGrid.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["PushingContent_BackURL"] = Request.Url.AbsoluteUri;
     btnAddFile.Visible    = false;
     btnDeleteFile.Visible = false;
     pnUpload.Visible      = false;
     if (!IsPostBack)
     {
         GridBind();
         DBase.FillList(ddContentType, Config.DbGetPushingContentTypes, false);
     }
     SetMapID();
 }
Exemple #13
0
        protected override void Page_Load(object sender, System.EventArgs e)
        {
            if (oSGridPager != null)
            {
                oParentGrid = oSGridPager.GridObject;
            }

            if (!IsPostBack)
            {
                DBase.FillList(ddCurrency, Config.DbDictionaryCurrency, false);
                ddCurrency.Items.Insert(0, new ListItem("[All]", "0"));
            }
        }
 private void Page_Load(object sender, System.EventArgs e)
 {
     TournID = Utils.GetInt(Request[Config.ParamTournamentID]);
     if (!IsPostBack)
     {
         Session["Blind_dt"] = null;
     }
     GetData(false);
     if (!IsPostBack)
     {
         BindGrid();
         DBase.FillList(comboTemplate, 0, Config.DbGetTournamentBettingsTmplList, false);
     }
 }
Exemple #15
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     nAffiliateID = GetMainParamInt(hdnAffiliateID);
     BackPageUrl  = (string )Session["AffiliateMaintenanceUrl"];
     if (!IsPostBack)
     {
         DBase.FillList(ddStatus, "admDictionaryStatusForAffiliate", false);
         DBase.FillList(ddSkins, "admGetDictionarySkins", false);
         DBase.FillList(ddState, Config.DbDictionaryState, false);
         DBase.FillList(ddCountry, Config.DbDictionaryCountry, false);
         ddSkins.Items.RemoveAt(0);
         GetData();
     }
 }
Exemple #16
0
 /// <summary>
 /// Fill page combo boxes
 /// </summary>
 protected void PreparePage()
 {
     DBase.FillList(comboEngine, nEngineID, Config.DbDictionaryGameEngine, false);
     DBase.FillList(comboCurrency, nCurrencyID, Config.DbDictionaryCurrency, false);
     DBase.FillList(comboSubCategory, nSubCategoryID, Config.DbDictionarySubCategory, false);
     DBase.FillList(comboActDisp, nActDispID, Config.DbGetActionDispatchersAsDictionary, false);
     if (!isMini)
     {
         Core.RemoveItemByValue(comboSubCategory, (object)Config.Mini_TourneyID);
     }
     else
     {
         Core.RemoveItemByValue(comboSubCategory, Config.NonMini_TourneyIDs);
     }
 }
Exemple #17
0
 protected override void Page_Load(object sender, System.EventArgs e)
 {
     ddAffiliates.Enabled = !chAllAffiliates.Checked;
     chSummary.Disabled   = !chAllAffiliates.Checked;
     if (!chAllAffiliates.Checked)
     {
         chSummary.Checked = false;
     }
     if (!IsPostBack)
     {
         lbRakeSum.Text       = "0";
         lbRakeSum.Visible    = false;
         lbSumCaption.Visible = false;
         DBase.FillList(ddAffiliates, -1, Config.DbGetAffiliateList, false);
     }
 }
Exemple #18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DBase.FillList(ddSkins, "admGetDictionarySkins", false);
         ddSkins.Items.RemoveAt(0);
         if (ddSkins.Items.Count > 0)
         {
             AffID = int.Parse(ddSkins.SelectedValue);
             BindDataGrid();
         }
     }
     else
     {
         AffID = int.Parse(ddSkins.SelectedValue);
         BindDataGrid();
     }
 }
Exemple #19
0
 private void FillCombo()
 {
     //DBase.FillList(comboType, nTypeID, Config.DbGetDictionaryBetType, true);
     DBase.FillList(comboResult, nResultID, Config.DbGetDictionaryOutcomeResult, false);
 }
Exemple #20
0
 /// <summary>
 /// Fill page combo boxes
 /// </summary>
 protected void PreparePage()
 {
     DBase.FillList(comboTemplate, nTemplateID, Config.DbDictionaryTournamentPrize, false);
 }
 /// <summary>
 /// Fill page combo boxes
 /// </summary>
 protected void PreparePage()
 {
     DBase.FillList(comboEngine, nEngineID, Config.DbDictionaryGameEngine, false);
     DBase.FillList(comboActDisp, nActDispID, Config.DbGetActionDispatchersAsDictionary, false);
 }
 /// <summary>
 /// Fill both combo boxes
 /// </summary>
 protected void PreparePage()
 {
     DBase.FillList(comboCurrency, nCurrencyID, Config.DbDictionaryCurrency, false);
 }
Exemple #23
0
 /// <summary>
 /// Fill page combo boxes
 /// </summary>
 protected void PreparePage()
 {
     DBase.FillList(comboTemplate, nTemplateID, Config.DbDictionaryTournamentPrize, false);
     DBase.FillList(ddPrizeValueType, nValueType, Config.DbDictionaryTournPrizeValueType, false);
     DBase.FillList(ddCurrency, nCurrencyID, Config.DbDictionaryCurrency, false);
 }
Exemple #24
0
 private void GetCategoriesCombo()
 {
     DBase.FillList(comboCategory, nCategoryID, Config.DbGetSBCategoryListSimple, false);
 }