本文整理汇总了C#中Wuqi类的典型用法代码示例。如果您正苦于以下问题:C# Wuqi类的具体用法?C# Wuqi怎么用?C# Wuqi使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Wuqi类属于命名空间,在下文中一共展示了Wuqi类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindPager
public static void BindPager(Wuqi.Webdiyer.AspNetPager pager, int allCount)
{
pager.RecordCount = allCount;
pager.CustomInfoHTML = " 记录总数:<font color=\"blue\"><b>" + pager.RecordCount.ToString() + "</b></font>";
pager.CustomInfoHTML += " 总页数:<font color=\"blue\"><b>" + pager.PageCount.ToString() + "</b></font>";
pager.CustomInfoHTML += " 当前页:<font color=\"red\"><b>" + pager.CurrentPageIndex.ToString() + "</b></font>";
}
示例2: BindPagerCustomInfoHTML
/// <summary>
/// Bind Pager CustomInfoHtml
/// </summary>
/// Copyright (c)
/// 创 建 人:王好([email protected])
/// 创建日期:2012年2月1日
/// 修 改 人:王好
/// 修改日期:
/// 版 本:
/// <param name="aspNetPager"></param>
public new void BindPagerCustomInfoHTML(Wuqi.Webdiyer.AspNetPager aspNetPager)
{
base.BindPagerCustomInfoHTML(aspNetPager);
// aspNetPager.CustomInfoHTML += "记录总数:<font color=\"blue\"><b>" + aspNetPager.RecordCount.ToString() + "</b></font>";
// aspNetPager.CustomInfoHTML += " 总页数:<font color=\"blue\"><b>" + aspNetPager.PageCount.ToString() + "</b></font>";
// aspNetPager.CustomInfoHTML += " 当前页:<font color=\"red\"><b>" + aspNetPager.CurrentPageIndex.ToString() + "</b></font>";
}
示例3: pagerbind
public static void pagerbind(Wuqi.Webdiyer.AspNetPager AspNetPager1, int allcount, int pagecount)
{
AspNetPager1.RecordCount = allcount;
AspNetPager1.CustomInfoHTML = "记录总数:<font color=\"blue\"><b>" + AspNetPager1.RecordCount.ToString() + "</b></font>";
AspNetPager1.CustomInfoHTML += " 总页数:<font color=\"blue\"><b>" + AspNetPager1.PageCount.ToString() + "</b></font>";
AspNetPager1.CustomInfoHTML += " 当前页:<font color=\"red\"><b>" + AspNetPager1.CurrentPageIndex.ToString() + "</b></font>";
}
示例4: GridViewPagerBindbyRowNumber
//#region Repeater�ؼ���ҳ�ﶨ
///// <summary #region GridView�ؼ���ҳ�ﶨ
/// <summary>
/// GridView�ؼ���ҳ�ﶨ
/// </summary>
/// <param name="anpager">AspNetPager��ҳ�ؼ�</param>
/// <param name="strQuaryCondition">��ѯWhere����������Where</param>
/// <param name="strOrderCondition">��Ҫ������ֶ���</param>
/// <param name="rptControl">GridView�ؼ�</param>
public void GridViewPagerBindbyRowNumber(Wuqi.Webdiyer.AspNetPager anpager, string strWhere, string strOrderCondition, System.Web.UI.WebControls.GridView grvControl, int startyear, int endyear)
{
StringBuilder sbReceiveTable = new StringBuilder();
DataSet dstTemp = new DataSet();
#region ����ʱ���ȡҪ��ѯ�Ķ��ű�
for (int i = startyear; i <= endyear; i++)
{
sbReceiveTable.Append("'Sys_ReceiveMessage" + i + "',");
}
sbReceiveTable.Remove(sbReceiveTable.Length - 1, 1);
string strselectTable = "select name from sysobjects where type='u' and name in(" + sbReceiveTable + ")";
DataSet dsReceiveTable = DbHelperSQL.DQuery(strselectTable);
StringBuilder sbsql = new StringBuilder();
sbsql.Append("select RMID,PhoneNumber,MContent,ReceiveDate from (");
for (int i = 0; i < dsReceiveTable.Tables[0].Rows.Count; i++)
{
sbsql.Append("select * from " + dsReceiveTable.Tables[0].Rows[i][0].ToString() + " union");
}
sbsql.Remove(sbsql.Length - 6, 6);
sbsql.Append(") as RM");
#endregion
StringBuilder strSql = new StringBuilder();
strSql.Append("select * from (select row_number() over (order by " + strOrderCondition + ") as rowno,* from (" + sbsql.ToString() + ") as VT_ReceiveMessage");
strSql.Append(strWhere);
strSql.Append(" ) as result Where (rowno Between " + ((anpager.CurrentPageIndex - 1) * anpager.PageSize + 1) + " and " + anpager.CurrentPageIndex * anpager.PageSize + ")");
StringBuilder strb = new StringBuilder();
strb.Append("Select Count(*) From (" + sbsql.ToString() + ") as VT_ReceiveMessage");
strb.Append(strWhere);
anpager.RecordCount = Convert.ToInt32(DbHelperSQL.GetSingle(strb.ToString()));
dstTemp = DbHelperSQL.Query(strSql.ToString());
if (dstTemp.Tables[0].Rows.Count == 0)
{
grvControl.DataSource = null;
grvControl.DataBind();
}
else
{
grvControl.DataSource = dstTemp.Tables[0];
grvControl.DataBind();
}
//��̬�����û��Զ����ı�����
anpager.CustomInfoHTML = "����<font color=\"blue\"><b>" + anpager.RecordCount.ToString() + "</b></font>����¼";
anpager.CustomInfoHTML += " ��ҳ����<font color=\"blue\"><b>" + anpager.PageCount.ToString() + "</b></font>ҳ";
anpager.CustomInfoHTML += " ��ǰҳ����<font color=\"red\"><b>" + anpager.CurrentPageIndex.ToString() + "</b></font>ҳ";
}
示例5: AspNetPager1_PageChanging
/// <summary>
/// 分页处理
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
string FeedBackTypeId = "0";
if (hfFeedBackTypeId.Value != "")
FeedBackTypeId = hfFeedBackTypeId.Value;
bind(Convert.ToInt32(FeedBackTypeId), hfBeginTime.Value, hfEndTime.Value, false);
}
示例6: AspNetPager1_PageChanging
/// <summary>
/// 分页处理
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
Core.Business.Group group = (Core.Business.Group)ViewState["Group"];
bind(group, HFCreatorId.Value, "", "", HFMaxMenberNum.Value, HFStartTime.Value, HFEndTime.Value, HFSort.Value, false);
}
示例7: AspNetPager1_PageChanging
/// <summary>
/// 分页控件事件
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
//if (ViewState["sql"] != null && ViewState["sql"].ToString().Length != 0)
//{
// bll.Getsetdates(AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize, ViewState["sql"].ToString(), GridView1);
//}
Bind();
}
示例8: AspNetPager1_PageChanging
/// <summary>
/// 分页处理
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
CY.UME.Core.Business.Album album = new CY.UME.Core.Business.Album();
album.AccountName = HFAccountName.Value;
album.Name = HFAlbumName.Value;
Bind(album, HFSort.Value, false);
}
示例9: PagerAddedIntegrals_PageChanging
protected void PagerAddedIntegrals_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
PagerAddedIntegrals.CurrentPageIndex = e.NewPageIndex;
AddedIntegralsBind();
if (lastPageOfAddedIntegrals != e.NewPageIndex.ToString())
{
GoToAnchorAddedIntegrals();
}
lastPageOfAddedIntegrals = e.NewPageIndex.ToString();
}
示例10: AspNetPager1_PageChanging
/// <summary>
/// 分页处理
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
// 防止没有查询条件的时候,但又点了查询按钮
if (hfColIdSearch.Value == "")//学院ID
hfColIdSearch.Value = "0";
bind(Convert.ToInt32(hfColIdSearch.Value), hfName.Value, hfDes.Value, false);
}
示例11: PageBonusesThisMonth_PageChanging
protected void PageBonusesThisMonth_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
PageBonusesThisMonth.CurrentPageIndex = e.NewPageIndex;
BonusesThisMonthBind();
if (lastPageOfBonusesThisMonth != e.NewPageIndex.ToString())
{
GoToAnchorBonusesThisMonth();
}
lastPageOfBonusesThisMonth = e.NewPageIndex.ToString();
}
示例12: Pager
protected void Pager(GridView dl,Wuqi.Webdiyer.AspNetPager anp,System.Data.DataSet dst)
{
PagedDataSource pds = new PagedDataSource();
pds.DataSource = dst.Tables[0].DefaultView;
pds.AllowPaging = true;
anp.RecordCount = dst.Tables[0].DefaultView.Count;
pds.CurrentPageIndex = anp.CurrentPageIndex - 1;
pds.PageSize = anp.PageSize;
dl.DataSource = pds;
dl.DataBind();
}
示例13: AspNetPager1_PageChanging
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
if (check)
{
binddata(e.NewPageIndex, pageSize);
}
else
{
bindlikedata(e.NewPageIndex, pageSize, cus);
}
}
示例14: AspNetPager1_PageChanging
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
this.AspNetPager1.CurrentPageIndex = e.NewPageIndex;
if (flag == 0)
{
BindData();
}
else
{
BindDataByDate(Tbox_Start.Text, Tbox_End.Text);
}
}
示例15: AspNetPager1_PageChanging
/// <summary>
/// 分页处理
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
string uniId = null;
if (hfuniId.Value == "" || hfuniId.Value == null)
uniId = "0";
else
uniId = hfuniId.Value;
bind(uniId, hfName.Value, false);
}