/// <summary> /// 页面索引号发生改变触发一个PageChange事件 /// </summary> /// <param name="e"></param> protected virtual void OnPageChange(PageEventArgs e) { if (this.PageChange != null) { PageChange(this, e); } }
private void ClickCommon() { this.DisplayControl(); PageEventArgs arg = new PageEventArgs(); arg.CurrentPageIndex = this.CurrentPageIndex; arg.StartRecord = this.CurrentPageIndex * this.PageSize; this.OnPageChange(arg); }
void ListPager1_PageChange(object sender, PageEventArgs e) { if (this.txt_Name.Text == "") { this.BindSource(e.StartRecord, null); } else { this.BindSource(e.StartRecord, "%" + this.txt_Name.Text + "%"); } }
void ListPager1_PageChange(object sender, PageEventArgs e) { if (this.txt_Name.Text == "") { this.BindSource(e.StartRecord, 0); } else { this.BindSource(e.StartRecord, Convert.ToInt32(this.txt_Name.Text)); } }
void ListPager1_PageChange(object sender, PageEventArgs e) { Stock stock = new Stock(); if (this.txt_Position.Text == "") { this.BindSource(stock, e.StartRecord); } else { stock.Good_Id = this.txt_Position.Text.ToString(); this.BindSource(stock, e.StartRecord); } }
void ListPager1_PageChange(object sender, PageEventArgs e) { string good_id = ""; int yearmonth = 0; if (this.txt_Name.Text != "") { good_id = this.txt_Name.Text.ToString(); } if (this.txt_Yearmonth.Text != "") { yearmonth = Convert.ToInt32(this.txt_Yearmonth.Text); } this.BindSource(e.StartRecord, good_id, yearmonth); }
void ListPager1_PageChange(object sender, PageEventArgs e) { Staff staff = new Staff(); staff.User_id = user_id; staff.Role_id = role_id; staff.Role_Manage = user_manage; if (this.txt_Position.Text == "") { this.BindSource(staff, e.StartRecord); } else { staff.Staffinfo_Name = "%" + this.txt_Position.Text + "%"; this.BindSource(staff, e.StartRecord); } }
void ListPager1_PageChange(object sender, PageEventArgs e) { Sale sale = new Sale(); if (user_manage == 0) { sale.Staffinfo_Id = staffinfo_id; } sale.Sale_Id = 0; sale.Year_Month = 0; if (this.txt_Position.Text != "") { sale.Sale_Id = Convert.ToInt32(this.txt_Position.Text); } if (this.txt_Yearmonth.Text != "") { sale.Year_Month = Convert.ToInt32(this.txt_Yearmonth.Text); } this.BindSource(sale, e.StartRecord); }
void ListPager1_PageChange(object sender, PageEventArgs e) { Purchase purchase = new Purchase(); if (user_manage == 0) { purchase.Staffinfo_Id = staffinfo_id; } purchase.Purchase_Id = 0; purchase.Year_Month = 0; if (this.txt_Position.Text != "") { purchase.Purchase_Id = Convert.ToInt32(this.txt_Position.Text); } if (this.txt_Yearmonth.Text != "") { purchase.Year_Month = Convert.ToInt32(this.txt_Yearmonth.Text); } this.BindSource(purchase, e.StartRecord); }
void ListPager2_PageChange(object sender, PageEventArgs e) { this.BindSourceShop(e.StartRecord); }