예제 #1
0
 private void _lsmsCampaignListData_ExceptionThrown(object sender, LinqServerModeExceptionThrownEventArgs e)
 {
     this.BeginInvoke(new MethodInvoker(delegate {
         WaitDialog.Show("Reloading data ...");
         ((LinqServerModeSource)sender).Reload();
         if (m_AccountId == 0) {
             this.GetCurrentCampaignListAccount();
             m_BrightSalesProperty.CommonProperty.AccountId = m_AccountId;
             m_BrightSalesProperty.CommonProperty.FinalListId = m_FinalListId;
             //GridView view = gcCampaignList.FocusedView as GridView;
             //int.TryParse(view.GetRowCellValue(view.FocusedRowHandle, "account_id").ToString(), out AccountId);
             //int.TryParse(view.GetRowCellValue(view.FocusedRowHandle, "final_list_id").ToString(), out m_FinalListId);
             //m_BrightSalesProperty.CommonProperty.AccountId = AccountId;
             //m_BrightSalesProperty.CommonProperty.FinalListId = m_FinalListId;
         }
         if (!IsSuccessFocus)
             this.CompanySetFocus(m_AccountId);
         WaitDialog.Close();
     }));
 }
예제 #2
0
 private void m_lsmsCallLogData_ExceptionThrown(object sender, LinqServerModeExceptionThrownEventArgs e)
 {
     //this.BeginInvoke(new MethodInvoker(delegate {
     //    WaitDialog.Show("Reloading data ...");
     //    ((LinqServerModeSource)sender).Reload();
     //    //gcCallLog.DataSource = m_lsmsCallLogData;
     //    WaitDialog.Close();
     //}));
 }