//重置 protected void imgBtnCancle_Click(object sender, ImageClickEventArgs e) { this.txtBarcode.Text = ""; this.txtHW.Text = ""; this.txtPCH.Text = ""; this.txtWLH.Text = ""; this.txtFree1.Text = ""; this.txtFree2.Text = ""; this.txtFree3.Text = ""; this.hidCK.Value = ""; this.hidCopyGG.Value = ""; this.hidGG.Value = ""; this.hidQuery.Value = ""; this.hidRKPH.Value = ""; this.hidRKRQ.Value = ""; this.hidRKSX.Value = ""; this.hidTSXX.Value = ""; this.drpCK.Items.Clear(); this.drpCopyGG.Items.Clear(); this.drpCopyGG.Text = ""; this.drpGG.Items.Clear(); this.drpGG.Text = ""; this.drpRKPH.Items.Clear(); this.drpRKPH.Text = ""; this.drpRKSX.Items.Clear(); this.drpTSXX.Items.Clear(); this.drpTSXX.Text = ""; this.chkCK.Checked = false; this.chkGG.Checked = false; this.chkHW.Checked = false; this.chkRKPCH.Checked = false; this.chkRKPH.Checked = false; this.chkRKRQ.Checked = false; this.chkRKSX.Checked = false; this.chkTM.Checked = false; this.chkTSXX.Checked = false; this.chkWLH.Checked = false; this.chkFree1.Checked = false; this.chkFree2.Checked = false; this.chkFree3.Checked = false; this.grvKC_HW.DataSource = null; this.grvKC_PCH.DataSource = null; this.grvKC_TM.DataSource = null; this.grvKC_WLH.DataSource = null; this.grvKC_PCH.DataBind(); this.grvKC_TM.DataBind(); this.grvKC_HW.DataBind(); this.grvKC_WLH.DataBind(); PageControl1.SetInitView(0, 0); PageControl2.SetInitView(0, 0); PageControl3.SetInitView(0, 0); PageControl4.SetInitView(0, 0); }
//设置分页控件显示 private void SetPageCountView() { try { string sql = GetSqlTHD(); int outCount; int pageCount = THDQuery.GetPageCount(sql, PageControl2.GetPageSize(), out outCount); PageControl2.SetInitView(pageCount, outCount); } catch { this.PrintfError("数据访问错误,请重试!"); return; } }
private void SetPageCountView2() { try { string sqlWhere = GetSqlStr(); int outCount; int pageCount = PICIQuery.GetPageCount2(sqlWhere, PageControl2.GetPageSize(), out outCount); PageControl2.SetInitView(pageCount, outCount); } catch { this.PrintfError("数据访问错误,请重试!"); return; } }