//--------------------------------------------------------
            #endregion

            public void LoadDataList(DataList dl, List <UsersDataEntity> usersDataList)
            {
                if (usersDataList != null && usersDataList.Count > 0)
                {
                    dl.DataSource = usersDataList;
                    dl.DataBind();
                    dl.Visible = true;
                    if (totalRecords > pager.PageSize)
                    {
                        pager.Visible            = true;
                        trPagerContainer.Visible = true;
                        pager.TotalRecords       = totalRecords;
                        PagerManager.PrepareUserPager(pager);
                    }
                    else
                    {
                        pager.TotalRecords       = totalRecords;
                        pager.Visible            = false;
                        trPagerContainer.Visible = false;
                    }
                    lblResult.Visible = false;
                }
                else
                {
                    /*
                     * dl.Visible = false;
                     * pager.Visible = false;
                     * trPagerContainer.Visible = false;
                     * lblResult.CssClass = "lblResult_Faild";
                     * lblResult.Text = DynamicResource.GetText("AdminText", "ThereIsNoData");
                     * lblResult.Visible = true;*/
                    this.Visible = false;
                }
            }
Пример #2
0
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        currentModule  = MessagesModuleOptions.GetType(ModuleTypeID);
        lblResult.Text = "";
        if (!IsPostBack)
        {
            PagerManager.PrepareAdminPager(pager);
            pager.Visible = false;
            HandelControls();
            SetTexts();
            LoadData();
            //-----------------------------------------------------
            if (currentModule.HasTitle)
            {
                dgMessages.Columns[1].Visible = true;
                dgMessages.Columns[3].Visible = false;
            }
            else
            {
                dgMessages.Columns[1].Visible = false;
                dgMessages.Columns[3].Visible = true;
            }
            dgMessages.Columns[7].Visible = currentModule.HasComments;
            dgMessages.Columns[8].Visible = currentModule.HasComments;


            //-----------------------------------------------------
        }
    }
Пример #3
0
        //--------------------------------------------------------
        #endregion

        #region --------------LoadRepeater--------------
        //---------------------------------------------------------
        //LoadRepeater
        //---------------------------------------------------------
        public void LoadRepeater(Repeater r, List <ItemCategoriesEntity> categoriesList)
        {
            if (categoriesList != null && categoriesList.Count > 0)
            {
                r.DataSource = categoriesList;
                r.DataBind();
                r.Visible = true;
                if (totalRecords > pager.PageSize)
                {
                    pager.Visible            = true;
                    trPagerContainer.Visible = true;
                    pager.TotalRecords       = totalRecords;
                    PagerManager.PrepareUserPager(pager);
                }
                else
                {
                    pager.TotalRecords       = totalRecords;
                    pager.Visible            = false;
                    trPagerContainer.Visible = false;
                }
                lblResult.Visible = false;
            }
            else
            {
                /*
                 * r.Visible = false;
                 * pager.Visible = false;
                 * trPagerContainer.Visible = false;
                 * lblResult.CssClass = "lblResult_Faild";
                 * lblResult.Text = DynamicResource.GetText("AdminText", "ThereIsNoData");
                 * lblResult.Visible = true;*/
                this.Visible = false;
            }
        }
Пример #4
0
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     lblResult.Text = "";
     if (!IsPostBack)
     {
         this.Page.Title = "ãæÏíæáÇÊ ÇáÚÑÖ";
         PagerManager.PrepareAdminPager(pager);
         pager.Visible = false;
         LoadData();
     }
 }
Пример #5
0
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     lblResult.Text = "";
     if (!IsPostBack)
     {
         PagerManager.PrepareAdminPager(pager);
         pager.Visible = false;
         SetTexts();
         LoadData();
     }
 }
Пример #6
0
    //------------------------------------------
    #endregion

    #region ---------------Page_Load---------------
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        lblResult.Text = "";
        if (!IsPostBack)
        {
            //SiteOptions.CheckModuleWithHandling(Resources.SiteOptions.HasComments, UsersTypes.Admin);
            PagerManager.PrepareAdminPager(pager);
            pager.Visible = false;
            HandleOptionalControls();
            LoadData();
        }
    }
Пример #7
0
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     lblResult.Text = "";
     if (!IsPostBack)
     {
         this.Page.Title = Resources.Cities.CitiesModuleTitle;
         PagerManager.PrepareAdminPager(pager);
         pager.Visible = false;
         HandelControls();
         LoadCountries();
         LoadData();
     }
 }
Пример #8
0
 //-------------------------------------------------------
 #region ---------------Page_Load---------------
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     currentModule  = UsersDataGlobalOptions.GetType(ModuleTypeID);
     lblResult.Text = "";
     if (!IsPostBack)
     {
         PagerManager.PrepareAdminPager(pager);
         pager.Visible = false;
         HandelControls();
         SetTexts();
         LoadData();
     }
 }
Пример #9
0
    //------------------------------------------
    #endregion



    #region ---------------Page_Load---------------
    //-----------------------------------------------
    //Page_Load
    //-----------------------------------------------
    private void Page_Load(object sender, System.EventArgs e)
    {
        lblResult.Text = "";
        if (!IsPostBack)
        {
            Load_ddlAdvPlaces();
            if (pager != null)
            {
                PagerManager.PrepareAdminPager(pager);
                pager.Visible = false;
            }
            HandelControls();
            LoadData();
        }
    }
 //-------------------------------------------------------
 #region ---------------Page_Load---------------
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     currentModule = UsersDataGlobalOptions.GetType(ModuleTypeID);
     siteUrls      = DCSiteUrls.Instance;
     //-------------------------------------------------
     //Prepaare user control
     CatchControls();
     Prepare();
     //-------------------------------------------------
     lblResult.Text = "";
     if (!IsPostBack)
     {
         PagerManager.PrepareUserPager(pager);
         pager.Visible = false;
         LoadData();
     }
 }
Пример #11
0
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 public void Page_Load(object sender, System.EventArgs e)
 {
     //---------------------------------------------
     currentModule = ItemsModulesOptions.GetType(ModuleTypeID);
     siteUrls      = DCSiteUrls.Instance;
     //-------------------------------------------------
     //Prepaare user control
     CatchControls();
     Prepare();
     //-------------------------------------------------
     if (!IsPostBack)
     {
         PagerManager.PrepareUserPager(pager);
         pager.Visible            = false;
         trPagerContainer.Visible = false;
         LoadData();
     }
 }
Пример #12
0
 //-----------------------------------------------
 //Page_Load
 //-----------------------------------------------
 private void Page_Load(object sender, System.EventArgs e)
 {
     currentModule  = ItemsModulesOptions.GetType(ModuleTypeID);
     lblResult.Text = "";
     if (!IsPostBack)
     {
         PagerManager.PrepareAdminPager(pager);
         pager.Visible = false;
         HandleOptionalControls();
         SetTexts();
         LoadData();
         dgItems.Columns[1].Visible = currentModule.HasTitle;
         dgItems.Columns[5].Visible = currentModule.HasMultiPhotos;
         dgItems.Columns[6].Visible = currentModule.HasComments;
         dgItems.Columns[7].Visible = currentModule.HasComments;
         dgItems.Columns[8].Visible = currentModule.HasMessages;
         dgItems.Columns[9].Visible = currentModule.HasMessages;
     }
 }
Пример #13
0
 //-----------------------------------------------------------
 #region ---------------FirstLoad---------------
 //-----------------------------------------------
 //FirstLoad
 //-----------------------------------------------
 public void FirstLoad()
 {
     PagerManager.PrepareUserPager(pager);
     pager.Visible = false;
     LoadData();
 }
Пример #14
0
 protected internal BaseDataProvider(string connectionString)
 {
     m_connectionString = connectionString;
     m_database         = new DbHelper(connectionString);
     m_pagerHelper      = new PagerManager(m_database);
 }
Пример #15
0
 protected internal BaseDataProvider(DbHelper database)
 {
     m_database         = database;
     m_connectionString = database.ConnectionString;
     m_pagerHelper      = new PagerManager(m_database);
 }