コード例 #1
0
        private void Button1Click(object sender, RoutedEventArgs e)
        {
            var waitingBox = new WaitingBox.WaitingBox();
            try
            {
                VM.Validate();
                
                waitingBox.Show();
                VM.LoadNew();
                pOurGrid.ItemsSource = VM.POurs;
                pTheirGrid.ItemsSource = VM.PTheirs;
                sOurGrid.ItemsSource = VM.SOurs;
                sTheirGrid.ItemsSource = VM.STheirs;

                pOurGrid.Items.Refresh();
                pTheirGrid.Items.Refresh();
                sOurGrid.Items.Refresh();
                sTheirGrid.Items.Refresh();
                
            }
            catch (Exception ex)
            {
                MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
            }
            finally
            {
                waitingBox.Close();
            }
        }
コード例 #2
0
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     try
     {
         VM.Validate();
         var waitingBox = new WaitingBox.WaitingBox();
         waitingBox.Show();
         VM.Load(); 
         grid1.ItemsSource = VM.ShfePositionPNLView;
         grid2.ItemsSource = VM.SHFEHoldingPositionPNLView;
         grid1.Items.Refresh();
         grid2.Items.Refresh();
         waitingBox.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
 }
コード例 #3
0
 private void Button2Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     try
     {
         waitingBox.Show();
         FDVM.GetData();
         dataGrid1.DataContext = FDVM.StorageFeeList;
         dataGrid1.Items.Refresh();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #4
0
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     try
     {
         VM.Validate();
         waitingBox.Show();
         VM.Load();
         dataGrid1.ItemsSource = VM.CirculView;
         dataGrid1.Items.Refresh();
         
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #5
0
 private void Button2Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     try
     {
         waitingBox.Show();
         VM.To = 0;
         VM.From = RecordPerPage;
         VM.Search();
         pagingControl1.CurPageNo = 1;
         pagingControl1.Init(VM.Count, RecordPerPage);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #6
0
 private void Button2Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     waitingBox.Show();
     try
     {
         VM.Search();
         //dataGridAPAR.ItemsSource = VM.APARView;listAraps
         //dataGridAPAR.ItemsSource = VM.ListAraps;
         dataGridAPAR.ItemsSource = VM.FinalList;
         dataGridAPAR.Items.Refresh();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #7
0
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     waitingBox.Show();
     try
     {
         if (VM.Validate())
         {
             VM.Init();
             warehouseInventory.ItemsSource = VM.DT.AsDataView();
             internalTDList.DataContext = VM.InternalTDList;
             externalTDList.DataContext = VM.ExternalTDList;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #8
0
 private void Button2Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     try
     {
         VM.Validate();
         
         waitingBox.Show();
         //VM.LoadCount();
         VM.Load();
         //pagingControl1.CurPageNo = 1;
         //pagingControl1.Init(VM.Count, RecPerPage);
         BindData();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }
コード例 #9
0
ファイル: Ledger.xaml.cs プロジェクト: jesusblessf6/senlan2
 /// <summary>
 /// 查询
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     var waitingBox = new WaitingBox.WaitingBox();
     try
     {
         //添加在线程外的校验,线程内的校验暂不去掉
         VM.Validate();
         waitingBox.Show();
         
         VM.ShowLedgerGridNew();
         //dataGrid1.DataContext = VM.Ledgers;
         //dataGrid1.Items.Refresh();
         lvGrid.ItemsSource = VM.Ledgers;
         lvGrid.Items.Refresh();
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
     finally
     {
         waitingBox.Close();
     }
 }