Пример #1
0
        public string InitializeControls(string controlName, PagerPropertiesCls ppc)
        {
            string url = "";

            switch (controlName.ToLower())
            {
            case "gridview":
                url = "~/DeluxePager/PagerForGridView.aspx";
                break;

            case "table":
                url = "~/DeluxePager/PagerForTable.aspx";
                break;

            case "datagrid":
                url = "~/DeluxePager/PagerToDataGrid.aspx";
                break;

            case "datalist":
                url = "~/DeluxePager/PagerToDataList.aspx";
                break;

            case "deluxegrid":
                url = "~/DeluxePager/PagerToDeluxeGrid.aspx";
                break;

            case "detailsview":
                url = "~/DeluxePager/PagerToDetailsView.aspx";
                break;

            case "formview":
                url = "~/DeluxePager/PagerToFormView.aspx";
                break;

            case "repeater":
                url = "~/DeluxePager/PagerToRepeater.aspx";
                break;

            case "reportviewer":
                url = "~/DeluxePager/PagerToReportViewer.aspx";
                break;
            }
            return(url);
        }
Пример #2
0
        public static PagerPropertiesCls GetPagerProperties(string pagerObj)
        {
            PagerPropertiesCls ppc = new PagerPropertiesCls();

            byte[] b = new byte[] { };

            if (pagerObj != null)
            {
                string[] strPager = pagerObj.Split(';');
                b = new Byte[strPager.Length];
                for (int i = 0; i < strPager.Length; i++)
                {
                    b[i] = Convert.ToByte(strPager[i]);
                }
                object obj = Tools.DeserializeBinary(b);
                if (obj != null)
                {
                    ppc = (PagerPropertiesCls)obj;
                }
            }
            return(ppc);
        }
Пример #3
0
        public void InitializeDeluxePager(MCS.Web.WebControls.DeluxePager DeluxePager1, PagerPropertiesCls ppc)
        {
            //MCS.Web.WebControls.DeluxePager DeluxePager1 = new MCS.Web.WebControls.DeluxePager();
            DeluxePager1.GotoButtonText      = ppc.GotoButtonText;
            DeluxePager1.IsDataSourceControl = ppc.IsDataSourceControl;
            DeluxePager1.IsPagedControl      = ppc.IsPagedControl;
            DeluxePager1.PageCodeShowMode    = ppc.PagerCodeMode;

            if (ppc.BoundControlID != "")
            {
                DeluxePager1.DataBoundControlID = ppc.BoundControlID;
            }
            if (ppc.FirstPageImageUrl != "")
            {
                DeluxePager1.PagerSettings.FirstPageImageUrl = ppc.FirstPageImageUrl;
            }
            if (ppc.FirstPageText != "")
            {
                DeluxePager1.PagerSettings.FirstPageText = ppc.FirstPageText;
            }
            if (ppc.LastPageImageUrl != "")
            {
                DeluxePager1.PagerSettings.LastPageImageUrl = ppc.LastPageImageUrl;
            }
            if (ppc.LastPageText != "")
            {
                DeluxePager1.PagerSettings.LastPageText = ppc.LastPageText;
            }
            if (ppc.NextPageImageUrl != "")
            {
                DeluxePager1.PagerSettings.NextPageImageUrl = ppc.NextPageImageUrl;
            }
            if (ppc.NextPageText != "")
            {
                DeluxePager1.PagerSettings.NextPageText = ppc.NextPageText;
            }
            if (ppc.PreviousPageImageUrl != "")
            {
                DeluxePager1.PagerSettings.PreviousPageImageUrl = ppc.PreviousPageImageUrl;
            }
            if (ppc.PreviousPageText != "")
            {
                DeluxePager1.PagerSettings.PreviousPageText = ppc.PreviousPageText;
            }
            DeluxePager1.PageSize = ppc.PageSize;

            DeluxePager1.PagerSettings.Mode = ppc.PagerButtonsMode;
        }
Пример #4
0
 public static void SetClientPagerProperties(MCS.Web.WebControls.DeluxePager DeluxePager1, PagerPropertiesCls ppc)
 {
     if (ppc != null)
     {
         ppc.InitializeDeluxePager(DeluxePager1, ppc);
     }
 }
Пример #5
0
        public static void GetDeluxePager(MCS.Web.WebControls.DeluxePager DeluxePager1, string pagerObj, ref PagerPropertiesCls ppc)
        {
            byte[] b = new byte[] { };

            if (pagerObj != null)
            {
                string[] strPager = pagerObj.Split(';');
                b = new Byte[strPager.Length];
                for (int i = 0; i < strPager.Length; i++)
                {
                    b[i] = Convert.ToByte(strPager[i]);
                }
                object obj = Tools.DeserializeBinary(b);
                if (obj != null)
                {
                    ppc = (PagerPropertiesCls)obj;
                    //GetRequest(ppc);
                    ppc.InitializeDeluxePager(DeluxePager1, ppc);
                }
            }
        }
Пример #6
0
 private void GetReportViewerUrl(PagerPropertiesCls ppc)
 {
 }
Пример #7
0
 private void GetRepeaterUrl(PagerPropertiesCls ppc)
 {
 }
Пример #8
0
 private void GetFormViewUrl(PagerPropertiesCls ppc)
 {
 }
Пример #9
0
 private void GetDetailsViewUrl(PagerPropertiesCls ppc)
 {
 }
Пример #10
0
 private void GetDeluxeGridUrl(PagerPropertiesCls ppc)
 {
 }
Пример #11
0
 private void GetDataListUrl(PagerPropertiesCls ppc)
 {
 }
Пример #12
0
 private void GetDataGridUrl(PagerPropertiesCls ppc)
 {
 }
Пример #13
0
 private void GetTableUrl(PagerPropertiesCls ppc)
 {
 }
Пример #14
0
 private void GetGridViewUrl(PagerPropertiesCls ppc)
 {
 }