/// <summary>
 /// 主表格导航按钮的事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnSummaryNavigatorButtonClick(object sender, NavigatorButtonClickEventArgs e)
 {
     try
     {
         CCursor.ShowWaitCursor();
         NavigatorButton         btn     = (NavigatorButton)e.Button;
         ControlNavigatorButtons buttons = ((ControlNavigator)sender).Buttons;
         if (e.Button == buttons.First)
         {
             DoMoveFirst();
         }
         if (e.Button == buttons.Prev)
         {
             DoMovePrior();
         }
         if (e.Button == buttons.Next)
         {
             DoMoveNext();
         }
         if (e.Button == buttons.Last)
         {
             DoMoveLast();
         }
     }
     finally
     {
         e.Handled = true;
         CCursor.ShowDefaultCursor();
     }
 }
Exemple #2
0
 /// <summary>
 /// 点击搜索按钮
 /// </summary>
 protected virtual void OnSummarySearchClick(object sender, EventArgs e)
 {
     CCursor.ShowWaitCursor();
     if (!DoSearchSummary())
     {
         Msg.Warning("没有找到数据!");
     }
     CCursor.ShowDefaultCursor();
 }