Example #1
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.customerManager.Pagesize = e.PageSize;
     this.dataSet = this.customerManager.QueryDistrict(e.PageSize, e.PageNO);
     this.aisinoDataGrid1.DataSource = this.dataSet;
     this.ChangeCanSelect();
 }
Example #2
0
 private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.djcfBLL.Pagesize = e.get_PageSize();
         this.aisinoDataGrid2.set_DataSource(this.djcfBLL.QueryXSDJMX(this.Grid1BH, e.get_PageSize(), e.get_PageNO()));
         SaleBill bill  = this.billBL.Find(this.Grid1BH);
         int      count = this.aisinoDataGrid2.get_Rows().Count;
         for (int i = 0; i < count; i++)
         {
             string str  = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
             string str2 = this.aisinoDataGrid2.get_Rows()[i].Cells["XH"].Value.ToString();
             if (((str != null) && (str != "")) && (str != "中外合作油气田"))
             {
                 string str3 = this.billBL.ShowSLV(bill, str2, str);
                 if (str3 != "")
                 {
                     this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str3;
                 }
             }
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
Example #3
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            string str = e.get_PageNO().ToString();

            PropertyUtil.SetValue("WBJK_FPCX_DATAGRID", str);
            this.aisinoDataGrid1.set_DataSource(this.fpcxBLL.GetInvoiceDetail(this.invoiceQueryCondition, e.get_PageSize(), e.get_PageNO()));
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                if ((((str2 != null) && (str2 != "")) && ((str2 != "免税") && (str2 != "中外合作油气田"))) && (str2 != "多税率"))
                {
                    str2 = ((Convert.ToDouble(str2) * 100.0)).ToString() + "%";
                    if (str2 == "1.5%")
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "减按1.5%计算";
                    }
                    else
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str2;
                    }
                }
            }
        }
Example #4
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.bllManager.CurrentPage = e.PageNO;
     this.bllManager.Pagesize    = e.PageSize;
     this.dataSet = this.bllManager.QueryData(e.PageSize, e.PageNO);
     this.aisinoDataGrid1.DataSource = this.dataSet;
 }
Example #5
0
 private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(this.Grid1BH))
         {
             this.aisinoDataGrid2.set_DataSource(this.fptkBLL.QueryXSDJMX(this.Grid1BH, e.get_PageSize(), e.get_PageNO()));
             for (int i = 0; i < this.aisinoDataGrid2.get_Rows().Count; i++)
             {
                 string str = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
                 if ((((str != null) && (str != "")) && (str != "免税")) && (str != "中外合作油气田"))
                 {
                     str = ((Convert.ToDouble(str) * 100.0)).ToString() + "%";
                     this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str;
                 }
             }
         }
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }
Example #6
0
        public void HandleGoToPageEventArgs_1(GoToPageEventArgs e)
        {
            this.CurrentPage = e.get_PageNO();
            string str = this.CurrentPage.ToString();

            PropertyUtil.SetValue("WBJK_DJHB_DATAGRID_HBMX_1", str);
        }
Example #7
0
 private void aisinoDataGrid3_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         if (this.SelectedBH != "NoExist")
         {
             this.aisinoDataGrid3.set_DataSource(this.hzBLL.MXAfterZKHuiZong(e.get_PageSize(), e.get_PageNO()));
             int count = this.aisinoDataGrid3.get_Rows().Count;
             for (int i = 0; i < count; i++)
             {
                 string str  = this.aisinoDataGrid3.get_Rows()[i].Cells["SLV"].Value.ToString();
                 string str2 = this.aisinoDataGrid3.get_Rows()[i].Cells["XH"].Value.ToString();
                 if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                 {
                     string str3 = this.billBL.ShowSLV(this.bill, str2, str);
                     if (str3 != "")
                     {
                         this.aisinoDataGrid3.get_Rows()[i].Cells["SLV"].Value = str3;
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
Example #8
0
 private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.djhbBLL.HandleGoToPageMXEventArgs(e);
         if (this.aisinoDataGrid1.get_SelectedRows().Count > 0)
         {
             string xSDJBH = this.aisinoDataGrid1.get_SelectedRows()[0].Cells["BH"].Value.ToString();
             this.aisinoDataGrid2.set_DataSource(this.djhbBLL.QueryXSDJMX(xSDJBH));
             SaleBill bill  = this.billBL.Find(xSDJBH);
             int      count = this.aisinoDataGrid2.get_Rows().Count;
             for (int i = 0; i < count; i++)
             {
                 string str2 = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
                 string str3 = this.aisinoDataGrid2.get_Rows()[i].Cells["XH"].Value.ToString();
                 if (((str2 != null) && (str2 != "")) && (str2 != "中外合作油气田"))
                 {
                     string str4 = this.billBL.ShowSLV(bill, str3, str2);
                     if (str4 != "")
                     {
                         this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str4;
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
Example #9
0
        public void HandleGoToPageEventArgs(GoToPageEventArgs e)
        {
            this.CurrentPage = e.get_PageNO();
            this.PageSize    = e.get_PageSize();
            string str = this.CurrentPage.ToString();

            PropertyUtil.SetValue("WBJK_DJXG_DATAGRID", str);
        }
Example #10
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     PropertyUtil.SetValue("pagesize", e.PageSize.ToString());
     this.fpflManager.CurrentPage = e.PageNO;
     this.dataSet = this.fpflManager.QueryData(e.PageSize, e.PageNO);
     this.aisinoDataGrid1.DataSource = this.dataSet;
     this.ChangeCanSelect();
 }
Example #11
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.hzBLL.Pagesize = e.get_PageSize();
         this.aisinoDataGrid1.set_DataSource(this.hzBLL.QueryXSDJ(this.comboBoxYF.SelectedItem.ToString(), this.comboBoxDJZL.SelectedValue.ToString(), this.GetKeyWord(), e.get_PageSize(), e.get_PageNO(), this.GetKey()));
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
Example #12
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs args)
        {
            PropertyUtil.SetValue("PUB_PAGE_SIZE", args.PageSize.ToString());
            string        start = this.startdt.Value.Date.ToString("u");
            string        end   = this.enddt.Value.Date.AddDays(1.0).ToString("u");
            AisinoDataSet set   = pm.QueryPub(start, end, args.PageSize, args.PageNO);

            if (set != null)
            {
                this.ParseData(set.Data);
                this.aisinoDataGrid1.DataSource = set;
            }
        }
Example #13
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.spcxBLL.Pagesize = e.get_PageSize();
            this.aisinoDataGrid1.set_DataSource(this.spcxBLL.QueryGoods(this.invoiceQueryCondition, e.get_PageSize(), e.get_PageNO()));
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["XXFP.SLV"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "多税率"))
                {
                    string str3 = this.aisinoDataGrid1.get_Rows()[i].Cells["FPZL"].Value.ToString();
                    string str4 = this.aisinoDataGrid1.get_Rows()[i].Cells["YYSBZ"].Value.ToString();
                    if ((((str == "0.05") && (str4.Substring(8, 1) == "0")) && (str3 == "专用发票")) && (str2 != ""))
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "中外合作油气田";
                    }
                    else if (((CommonTool.isSPBMVersion() && (str == "0.00")) || ((str == "0.0") || (str == "0"))) || (str == "0%"))
                    {
                        string str5 = this.aisinoDataGrid1.get_Rows()[i].Cells["LSLVBS"].Value.ToString();
                        if (str5 == "0")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "出口零税";
                        }
                        else if (str5 == "1")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "免税";
                        }
                        else if (str5 == "2")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "不征税";
                        }
                        else
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "0%";
                        }
                    }
                    else if (str == "0.015")
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "减按1.5%计算";
                    }
                    else
                    {
                        str = ((Convert.ToDouble(str) * 100.0)).ToString() + "%";
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str;
                    }
                }
            }
        }
		private void TxtNroPagina_BeforeNewSelection(object sender, GoToPageEventArgs e)
		{

			if (e.pageNr == 0 || e.pageNr > TotalPaginasCount || e.pageNr == CurrentPageNr)
			{
				e.success = false;
				return;
			}

			long click = 0;
			click = DateTime.Now.Ticks;

			bool successfulClearSelection = true;

			// esta operação tem como objectibo permitir que haja a possibilidade de cancelar a mudança de página
			if (Listview.SelectedItems.Count > 0)
			{
				successfulClearSelection = Listview.clearItemSelection(Listview.SelectedItems[0]);
			}

			if (! successfulClearSelection)
			{
				return;
			}

			CurrentPageNr = e.pageNr;

			// repopulate the listView
			Listview.Items.Clear();
			LoadListData();

			//If Listview.Items.Count > 0 Then
			//    Listview.selectItem(Listview.Items(0))
			//End If

			if (Listview.Items.Count == 1)
			{
				Listview.selectItem(Listview.Items[0]);
			}
			else if (Listview.Items.Count > 0)
			{
				Listview.selectItem(null);
			}

			//update buttons state and label text
			//refreshNavigationState()

			Debug.WriteLine("<<Go to page>> total " + new TimeSpan(DateTime.Now.Ticks - click).ToString());
		}
Example #15
0
 private void aisinoGrid_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         PropertyUtil.SetValue("Aisino.Fwkp.Fpkj.Form.FPCX_FaPiaoChaXun_aisinoGrid_PageSize", e.PageSize.ToString());
         AisinoDataSet set = this.xxfpChaXunBll.SelectPage(e.PageNO, e.PageSize, this.dict);
         aisinoGrid.DataSource = set;
         aisinoGrid.Refresh();
     }
     catch (Exception exception)
     {
         this.loger.Error(exception.Message);
         MessageManager.ShowMsgBox(exception.Message);
     }
 }
Example #16
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.aisinoDataGrid1.set_DataSource(this.fpzfBL.GetZuoFeiXSDJ(e.get_PageSize(), e.get_PageNO(), this.IsAdmin, this.mc));
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }
Example #17
0
        private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.aisinoDataGrid2.set_DataSource(this.djcfBLL.QueryXSDJMX(this.bill.BH, e.get_PageSize(), e.get_PageNO()));
            int count = this.aisinoDataGrid2.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGrid2.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(this.bill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
Example #18
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            string str = e.get_PageNO().ToString();

            PropertyUtil.SetValue("WBJK_FPCC_DATAGRID", str);
            this.dataSet = this.fpccBLL.QueryFaPiao(this.StartDate, this.EndDate, this.FpType, e.get_PageSize(), e.get_PageNO());
            this.aisinoDataGrid1.set_DataSource(this.dataSet);
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                if ((((str2 != null) && (str2 != "")) && ((str2 != "免税") && (str2 != "中外合作油气田"))) && (str2 != "多税率"))
                {
                    str2 = ((Convert.ToDouble(str2) * 100.0)).ToString() + "%";
                    this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str2;
                }
            }
        }
Example #19
0
        private void aisinoGrid_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.sqdDal.CurrentPage = e.PageNO;
            this.sqdDal.Pagesize    = e.PageSize;
            Dictionary <string, object> dict = new Dictionary <string, object>();

            dict.Add("sqdh", "%" + this.querySqdh + "%");
            dict.Add("gfmc", "%" + this.queryGfmc + "%");
            dict.Add("gfsh", "%" + this.queryGfsh + "%");
            dict.Add("xfmc", "%" + this.queryXfmc + "%");
            dict.Add("xfsh", "%" + this.queryXfsh + "%");
            dict.Add("reqnsrsbh", base.TaxCardInstance.TaxCode.Trim());
            dict.Add("oldreqnsrsbh", HySqdTianKai.oldsh);
            dict.Add("ksrq", this.queryKsrq);
            dict.Add("jsrq", this.queryJsrq);
            dict.Add("xxbzt", this.queryState);
            dict.Add("bbbz", "2");
            this.aisinoGrid.DataSource = (this.sqdDal.SelectList(this.sqdDal.CurrentPage, this.sqdDal.Pagesize, dict));
            PropertyUtil.SetValue("Aisino.Fwkp.HzfpHy.HySqdSelect.aisinoGrid", this.sqdDal.Pagesize.ToString());
        }
Example #20
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.btnClear_Click(sender, e);
         string str = e.get_PageNO().ToString();
         PropertyUtil.SetValue("WBJK_DJXZFP_DATAGRID1", str);
         this.aisinoDataGrid1.set_DataSource(this.fptkBLL.GetXSDJ(this.fpType, e.get_PageSize(), e.get_PageNO()));
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }
Example #21
0
        private void aisinoDataGrid4_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.djhyBLL.Pagesize = e.get_PageSize();
            this.aisinoDataGrid4.set_DataSource(this.djhyBLL.GetYSDJMX(this.OriginalBH, e.get_PageSize(), e.get_PageNO()));
            SaleBill bill  = this.billBL.Find(this.OriginalBH);
            int      count = this.aisinoDataGrid4.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGrid4.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGrid4.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(bill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGrid4.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
        private void TxtNroPagina_BeforeNewSelection(object sender, GoToPageEventArgs e)
        {
            if (e.pageNr == 0 || e.pageNr > pagesCount || e.pageNr == currentPageNr)
            {
                e.success = false;
                return;
            }

            long click = 0;
            click = DateTime.Now.Ticks;

            bool successfulClearSelection = true;

            if (!successfulClearSelection)
                return;

            currentPageNr = e.pageNr;

            // repopulate the listView
            LoadListData();

            Debug.WriteLine("<<Go to page>> total " + new TimeSpan(DateTime.Now.Ticks - click).ToString());
        }
Example #23
0
        private void aisinoDataGridh_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.djhbBLL.HandleGoToPageEventArgs(e);
            int pageno   = e.get_PageNO();
            int pagesize = e.get_PageSize();

            this.aisinoDataGridh.set_DataSource(this.djhbBLL.GetMingXi(pagesize, pageno));
            int count = this.aisinoDataGridh.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGridh.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGridh.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(this.mergedBill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGridh.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
Example #24
0
        private void aisinoDataGridq_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            int currentpage = e.get_PageNO();
            int pagesize    = e.get_PageSize();

            this.aisinoDataGridq.set_DataSource(this.djhbBLL.QueryXSDJMX_1(this.BeforeMergeSelectedBH, pagesize, currentpage));
            SaleBill bill  = this.billBL.Find(this.BeforeMergeSelectedBH);
            int      count = this.aisinoDataGridq.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGridq.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGridq.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(bill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGridq.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
Example #25
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.djcfBLL.Pagesize = e.get_PageSize();
         string str = e.get_PageNO().ToString();
         PropertyUtil.SetValue("WBJK_DJCF_DATAGRID1", str);
         if (this.JYrule == "s")
         {
             this.aisinoDataGrid1.remove_DataGridRowSelectionChanged(new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowSelectionChanged));
             this.CheckAdd(e.get_PageSize(), e.get_PageNO());
             this.aisinoDataGrid1.add_DataGridRowSelectionChanged(new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowSelectionChanged));
         }
         else
         {
             this.aisinoDataGrid1.set_DataSource(this.djcfBLL.QueryXSDJ(this.KeyWords, this.DJmonth, this.DJtype, this.JYrule, e.get_PageSize(), e.get_PageNO()));
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
Example #26
0
 public void HandleGoToPageMXEventArgs(GoToPageEventArgs e)
 {
     this.CurrentPageMX = e.get_PageNO();
     this.PageSizeMX    = e.get_PageSize();
 }
Example #27
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.djhyBLL.Pagesize = e.get_PageSize();
     this.aisinoDataGrid1.set_DataSource(this.djhyBLL.QueryXSDJ(this.KeyWord, e.get_PageSize(), e.get_PageNO()));
 }
Example #28
0
 private void aisinoDataGrid3_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.djhyBLL.Pagesize = e.get_PageSize();
     this.aisinoDataGrid3.set_DataSource(this.djhyBLL.GetYSDJ(this.CurrentBH, e.get_PageSize(), e.get_PageNO()));
 }
Example #29
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.djhbBLL.HandleGoToPageEventArgs(e);
     this.aisinoDataGrid1.set_DataSource(this.djhbBLL.QueryXSDJ(this.DJmonth, this.DJtype, this.GFname, this.GFsh));
 }
Example #30
0
        private void TxtNroPagina_BeforeNewSelection(object sender, GoToPageEventArgs e)
        {
            if (e.pageNr == 0 || e.pageNr > pagesCount || e.pageNr == currentPageNr)
            {
                e.success = false;
                return;
            }

            long click = 0;
            click = DateTime.Now.Ticks;

            bool successfulClearSelection = true;

            // esta operação tem como objectivo permitir que haja a possibilidade de cancelar a mudança de página
            if (lstVwPaginated.SelectedItems.Count > 0)
                successfulClearSelection = lstVwPaginated.clearItemSelection(lstVwPaginated.SelectedItems[0]);

            if (!successfulClearSelection)
                return;

            currentPageNr = e.pageNr;

            // repopulate the listView
            lstVwPaginated.Items.Clear();
            LoadListData();

            if (lstVwPaginated.Items.Count == 1)
                lstVwPaginated.selectItem(lstVwPaginated.Items[0]);
            else if (lstVwPaginated.Items.Count > 0)
                lstVwPaginated.selectItem(null);

            Debug.WriteLine("<<Go to page>> total " + new TimeSpan(DateTime.Now.Ticks - click).ToString());
        }
Example #31
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.sccjManager.Pagesize = e.PageSize;
     this.dataSet = this.sccjManager.QueryTable(e.PageSize, e.PageNO);
     this.aisinoDataGrid1.DataSource = this.dataSet;
 }