Example #1
0
 //重置
 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);
 }
Example #2
0
 //设置分页控件显示
 private void SetPageCountView()
 {
     try
     {
         int outCount;
         int pageCount = DataOperQuery.GetAllPCHPageCount(this.txtPCH.Text, PageControl1.GetPageSize(), out outCount);
         PageControl1.SetInitView(pageCount, outCount);
     }
     catch
     {
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }
Example #3
0
 private void SetPageCountView()
 {
     try
     {
         string sqlWhere = GetSqlWhere();
         int    outCount;
         int    pageCount = GetPageCount(sqlWhere, PageControl1.GetPageSize(), out outCount);
         PageControl1.SetInitView(pageCount, outCount);
     }
     catch
     {
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }
Example #4
0
    //设置分页控件显示
    private void SetPageCountView()
    {
        //try
        //{
        string sql = GetsqlDPP();
        int    outCount;
        int    pageCount = DPPQuery.GetPageCount(sql, PageControl1.GetPageSize(), out outCount);

        PageControl1.SetInitView(pageCount, outCount);
        //}
        //catch
        //{
        //    this.PrintfError("数据访问错误,请重试!");
        //    return;
        //}
    }
Example #5
0
    //设置分页控件显示
    private void SetPageCountView()
    {
        //try
        //{
        string sqlWhere = Getsqlstr();
        int    outCount;
        int    pageCount = QTRKReport.GetPageCount(sqlWhere, PageControl1.GetPageSize(), out outCount);

        PageControl1.SetInitView(pageCount, outCount);
        //}
        //catch
        //{
        //    this.PrintfError("数据访问错误,请重试!");
        //    return;
        //}
    }
Example #6
0
 //设置分页控件显示
 private void SetPageCountView()
 {
     if (CheckUI())
     {
         try
         {
             String strEndTime = this.txtETime.Text + " 23:59:59";
             int    outCount;
             int    pageCount = DataOperQuery.GetPageCount(this.txtSTime.Text, strEndTime, PageControl1.GetPageSize(), out outCount);
             PageControl1.SetInitView(pageCount, outCount);
         }
         catch
         {
             this.PrintfError("数据访问错误,请重试!");
             return;
         }
     }
 }