Пример #1
0
 protected void Page_Init(object sender, EventArgs e)
 {
     _vwbQuery = new VwbQuery(Request);
     if (!IsPostBack)
     {
         if (_vwbQuery.ShouldRun)
         {
             BuildReport();
         }
     }
 }
Пример #2
0
        public VwbQuery Clone()
        {
            var clone = new VwbQuery();
            var temp  = new string[ColumnKeysInOrder.Count];

            ColumnKeysInOrder.CopyTo(temp);

            clone.ColumnKeysInOrder  = temp.ToList();
            clone.StartDate          = StartDate;
            clone.EndDate            = EndDate;
            clone.ShouldRun          = ShouldRun;
            clone.SortColumnKey      = SortColumnKey;
            clone.PublicationIdValue = PublicationIdValue;
            clone.IssueIdValue       = IssueIdValue;
            clone.ColumnOrderValue   = ColumnOrderValue;
            clone.Descending         = Descending;
            clone.NumResultsValue    = NumResultsValue;
            clone.InProgressValue    = InProgressValue;
            clone.PublicationCodes   = PublicationCodes;
            return(clone);
        }
Пример #3
0
 public void RedirectTo(VwbQuery query)
 {
     Response.Redirect(GetCurrentPageUrl() + "?" +
                       query.GetQueryString());
 }