private void btn_ResetVault_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         lst_FillHistory.ItemsSource = null;
         DataTable dtHistory = null;
         if (cmbTransType.SelectedItem != null && cmb_SelectTop.SelectedValue != null)
         {
             if (cmb_SelectTop.SelectedValue.ToString() == "All")
             {
                 dtHistory = objVaultBiz.GetFillHistory(0, 0, ((rsp_Vault_GetTransactionTypesResult)cmbTransType.SelectedItem).TYPE_ID);
             }
             else
             {
                 dtHistory = objVaultBiz.GetFillHistory(0, int.Parse(cmb_SelectTop.SelectedValue.ToString()), ((rsp_Vault_GetTransactionTypesResult)cmbTransType.SelectedItem).TYPE_ID);
             }
             lst_FillHistory.ItemsSource = dtHistory.DefaultView;
         }
     }
     catch (Exception Ex)
     {
         ExceptionManager.Publish(Ex);
     }
 }
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         objVaultBiz = new VaultBiz();
         DataTable dtHistory = objVaultBiz.GetFillHistory(0, 20, 0);
         lst_FillHistory.ItemsSource = dtHistory.DefaultView;
         string[] str = new string[] { "20", "30", "40", "50", "60", "100", "All" };
         cmb_SelectTop.ItemsSource   = str;
         cmb_SelectTop.SelectedIndex = 0;
         LoadTransactionTypes();
         btnDetails.Visibility = Visibility.Hidden;
     }
     catch (Exception Ex)
     {
         ExceptionManager.Publish(Ex);
     }
 }
Ejemplo n.º 3
0
 public DataTable GetFillHistory(int Device_ID, int No_Of_Records, int TransType)
 {
     return(objVaultBiz.GetFillHistory(Device_ID, No_Of_Records, TransType));
 }