/[projects]/dao/DaoMqPump2/MQFilter/FilterController.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/MQFilter/FilterController.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2172 by torben, Sat May 17 10:53:58 2014 UTC revision 2174 by torben, Sat May 17 11:25:26 2014 UTC
# Line 71  namespace MQFilter Line 71  namespace MQFilter
71              String tmpFilterTransactions = (string)key.GetValue("FilterTransactions");              String tmpFilterTransactions = (string)key.GetValue("FilterTransactions");
72              if (tmpFilterTransactions == null || tmpFilterTransactions.Length == 0)              if (tmpFilterTransactions == null || tmpFilterTransactions.Length == 0)
73                  throw new System.ArgumentException("FilterTransactions cannot be null or empty");                  throw new System.ArgumentException("FilterTransactions cannot be null or empty");
74                tmpFilterTransactions = tmpFilterTransactions.Replace(';', ',');
75              filterTranscations = Regex.Split(tmpFilterTransactions, ",");              filterTranscations = Regex.Split(tmpFilterTransactions, ",");
76    
77              for (int i = 0; i < filterTranscations.Length; i++)              for (int i = 0; i < filterTranscations.Length; i++)
78              {              {
79                  filterTranscations[i] = filterTranscations[i].Trim();                  filterTranscations[i] = filterTranscations[i].Trim().ToUpper();
80              }              }
81    
82              ////////////              ////////////
# Line 214  namespace MQFilter Line 215  namespace MQFilter
215    
216          private Boolean saveForLater(Salt2Header header)          private Boolean saveForLater(Salt2Header header)
217          {          {
218    
219              DateTime now = DateTime.Now;              DateTime now = DateTime.Now;
220              int hour = now.Hour;              int hour = now.Hour;
221              if (hour >= 14 && hour < 18)              if (hour >= 14 && hour < 18)
222              {              {
223                                    
224                  if (contains(header.transaktionForkortelse, this.filterTranscations) ) //Så længe vi skal være net3.0 kompatible er LINQ problematisk                  if (contains(header.transaktionForkortelse, this.filterTranscations) ) //Så længe vi skal være .net3.0 kompatible er LINQ problematisk (LINQ kræver 3.5)
225                  {                  {
226                      return true;                      return true;
227                  }                  }

Legend:
Removed from v.2172  
changed lines
  Added in v.2174

  ViewVC Help
Powered by ViewVC 1.1.20