Esempio n. 1
0
 /// <summary>
 /// 切换费用页签时候
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnTabEmsView_SelectedChanging(object sender, TabChangeEventArgs e)
 {
     if (e.PrevPage.PageControl is OrdEmsView && ((e.PrevPage.PageControl as OrdEmsView).HasErrors() || this.GetSelectedEmsView().IsEmptyEmsViewType()))
     {
         e.Cancel = true;
         if (!this.GetSelectedEmsView().IsEmptyEmsViewType())
         {
             this.ShowInfo("处置中含有必填项为空,请填写完整后查看费用信息");
         }
     }
     else if (e.PrevPage.PageControl is OrdExpenseView && (e.PrevPage.PageControl as OrdExpenseView).ExistErrors())
     {
         e.Cancel = true;
         this.ShowInfo("费用中含有必填项为空,请填写完整后查看处置信息");
     }
     else
     {
         e.Cancel = false;
     }
 }
Esempio n. 2
0
 protected virtual void TabControl_SelectedChanging(object sender, TabChangeEventArgs e)
 {
 }