本文整理汇总了C#中QueryHelper.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# QueryHelper.SetValue方法的具体用法?C# QueryHelper.SetValue怎么用?C# QueryHelper.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QueryHelper
的用法示例。
在下文中一共展示了QueryHelper.SetValue方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RestoreLastQuery
void RestoreLastQuery(ISession session)
{
int pageSize = 20;
int pageIndex = 1;
QueryHelper helper = new QueryHelper(this);
if (helper.HasQueryParameter())
{
helper.SetValue(this.txtLogis);
helper.SetValue(this.txtMemberName);
helper.SetValue(this.txtMemberNumber);
pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
pageIndex = Cast.Int(helper.Pop("pi"), 1);
}
QueryAndBindData(session, pageIndex, pageSize, true);
}
示例2: RestoreLastQuery
/// <summary>
/// If user navigate back from the detail edit page,
/// we must restore the query including:conditions and results which the user made before he jump to other page.
/// </summary>
private void RestoreLastQuery()
{
QueryHelper helper = new QueryHelper(this);
//check page has query parameter, if existed then load query data ,or do nothing
if (helper.HasQueryParameter())
{
helper.SetValue(this.ddlCategory);
helper.SetValue(this.txtTitle);
// Pager's size and index
int pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
int pageIndex = Cast.Int(helper.Pop("pi"), 1);
//DoQuery
QueryAndBindData(pageIndex, pageSize, true);
}
//else do nothing
}
示例3: RestoreLastQuery
private void RestoreLastQuery(ISession session)
{
QueryHelper helper = new QueryHelper(this);
if (helper.HasQueryParameter())
{
helper.SetValue(this.txtBeginDate);
helper.SetValue(this.txtEndDate);
helper.SetValue(this.txtInvCheckNumbere);
string strStatus = helper.Pop("Status");
for (int i = 0; i < this.cklStatus.Items.Count; i++)
this.cklStatus.Items[i].Selected = false;
if (strStatus.Trim().Length > 0)
{
string[] lstStatus = strStatus.Split(',');
for (int i = 0; i < lstStatus.Length; i++)
{
ListItem Item = this.cklStatus.Items.FindByValue(lstStatus[i]);
Item.Selected = true;
}
}
}
int pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
int pageIndex = Cast.Int(helper.Pop("pi"), 1);
this.QueryAndBindData(session, pageIndex, pageSize, true);
}
示例4: LoadInfo
private void LoadInfo(ISession session)
{
//分页
int pageIndex = 1;
int pageSize = this.mpage.PageSize;
QueryHelper help = new QueryHelper(this);
if (help.HasQueryParameter())
{
help.SetValue(this.txtItemCode);
help.SetValue(this.txtItemName);
help.SetValue(this.txtItemSpec);
help.SetValue(this.chkItemStatus);
pageIndex = Cast.Int(help.Pop("pi"), this.mpage.CurrentPageIndex);
pageSize = Cast.Int(help.Pop("ps"), this.mpage.PageSize);
}
QueryAndBindDate(session, pageIndex, pageSize, true);
}
示例5: RestoreLastQuery
private void RestoreLastQuery(ISession session)
{
//����Ǵ�����ҳ�淵�ظ�ҳ�棬�ָ�����ֵ
QueryHelper helper = new QueryHelper(this);
if (helper.HasQueryParameter())
{
helper.SetValue(this.txtBeginDate);
helper.SetValue(this.txtEndDate);
helper.SetValue(this.txtAdjustmentNumber);
helper.SetValue(this.ddlLocation);
if (helper.Pop("new") == "1") this.chkNew.Checked = true; else this.chkNew.Checked = false;
if (helper.Pop("release") == "1") this.chkRelease.Checked = true; else this.chkRelease.Checked = false;
if (helper.Pop("close") == "1") this.chkClose.Checked = true; else this.chkClose.Checked = false;
}
int pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
int pageIndex = Cast.Int(helper.Pop("pi"), 1);
QueryAndBindData(session, pageIndex, pageSize, true);
}
示例6: RestoreLastQuery
void RestoreLastQuery(ISession session)
{
QueryHelper helper = new QueryHelper(this);
if (helper.HasQueryParameter())
{
helper.SetValue(this.txtOrderNum);
helper.SetValue(this.drpVendor);
helper.SetValue(this.cklStatus);
helper.SetValue(this.txtStartDate);
helper.SetValue(this.txtEndDate);
}
int pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
int pageIndex = Cast.Int(helper.Pop("pi"), 1);
QueryAndBindData(session, pageIndex, pageSize, true);
}
示例7: RestoreLastQuery
private void RestoreLastQuery(ISession session)
{
int pageSize = 20;
int pageIndex = 1;
//����Ǵ�����ҳ�淵�ظ�ҳ�棬�ָ�����ֵ
QueryHelper helper = new QueryHelper(this);
if (helper.HasQueryParameter())
{
//helper.SetValue(this.txtUserName); //����_����1
this.txtUserName.Text = helper.Pop("un"); //����_����2
helper.SetValue(this.txtFullName);
helper.SetValue(this.cklStatus);
pageSize = Cast.Int(helper.Pop("ps"), this.magicPagerMain.PageSize);
pageIndex = Cast.Int(helper.Pop("pi"), 1);
}
QueryAndBindData(session, pageIndex, pageSize, true);
}