Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 //绑定
 private void BindgrvCKJL()
 {
     try
     {
         string  sql = GetSqlStr();
         DataSet ds  = PICIQuery.GetCKJL(sql, "", PageControl2.GetPageSize(), PageControl2.GetCurrPage());
         this.grvCKJL.DataSource = ds;
         this.grvCKJL.DataBind();
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
     }
 }