Skip to content

Commit 6163785

Browse files
committed
Merge branch 'rc' of https://github.com/bexis2/core into rc
2 parents 60c4ec4 + e9d4438 commit 6163785

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

Components/IO/BExIS.IO.DataType.DisplayPattern/DataTypeDisplayPattern.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public class DataTypeDisplayPattern
4242
new DataTypeDisplayPattern() {Id=28,Systemtype = DataTypeCode.DateTime, Name = "Secound", ExcelPattern=@"ss", DisplayPattern="ss", StringPattern = "ss", RegexPattern = null},
4343
new DataTypeDisplayPattern() {Id=29,Systemtype = DataTypeCode.DateTime, Name = "DateEu with time24", ExcelPattern=@"dd\.MM\.yyyy HH:mm:ss", DisplayPattern="dd.MM.yyyy HH:mm:ss", StringPattern = "dd.MM.yyyy HH:mm:ss", RegexPattern = null},
4444
new DataTypeDisplayPattern() {Id=30,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso without sec", ExcelPattern=@"yyyy-MM-dd\Thh:mm", DisplayPattern="yyyy-MM-ddThh:mm", StringPattern = "yyyy-MM-ddTHH:mm", RegexPattern = null},
45-
new DataTypeDisplayPattern() {Id=31,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T", ExcelPattern=@"yyyy-MM-dd hh:mm:ss", DisplayPattern="yyyyy-MM-dd hh:mm:ss", StringPattern = "yyyy-MM-dd hh:mm:ss", RegexPattern = null}
45+
new DataTypeDisplayPattern() {Id=31,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T", ExcelPattern=@"yyyy-MM-dd hh:mm:ss", DisplayPattern="yyyyy-MM-dd hh:mm:ss", StringPattern = "yyyy-MM-dd hh:mm:ss", RegexPattern = null},
46+
new DataTypeDisplayPattern() {Id=32,Systemtype = DataTypeCode.DateTime, Name = "DateTimeIso withou T and 24h", ExcelPattern=@"yyyy-MM-dd HH:mm:ss", DisplayPattern="yyyyy-MM-dd HH:mm:ss", StringPattern = "yyyy-MM-dd HH:mm:ss", RegexPattern = null}
4647

4748
};
4849

Components/IO/BExIS.IO.Tests/IOUtilityTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public void OneTimeTearDown()
3434
{
3535
}
3636

37-
[TestCase("2026-12-24 05:05:50", "yyyy-MM-dd hh:mm:ss", "12/24/2026 5:05:50 AM", true, "en-US")]
37+
[TestCase("2024-05-17 16:00:54", "yyyy-MM-dd HH:mm:ss", "5/17/2024 4:00:54 PM", true, "en-US")]
38+
[TestCase("2024-05-17 04:00:54", "yyyy-MM-dd hh:mm:ss", "5/17/2024 4:00:54 AM", true, "en-US")]
3839
[TestCase("12:00 pm", "hh:mm tt", "1/1/0001 12:00:00 PM", true, "en-US")]
3940
[TestCase("12:00:00 pm", "hh:mm:ss tt", "1/1/0001 12:00:00 PM", true, "en-US")]
4041
[TestCase("2023-29-12", "yyyy-d-M", "12/29/2023 12:00:00 AM", true)]

Components/Utils/BExIS.Utils.Data/Upload/UploadHelper.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,7 @@ public bool IsUnique(long datasetId, string ext, string filename, string filepat
467467
// 2 [2][Javad] = 2Javad
468468
foreach (List<string> l in tempList)
469469
{
470-
string tempString = "";
471-
foreach (string s in l)
472-
{
473-
tempString += s;
474-
}
470+
string tempString = String.Join("_", l);
475471
if (!String.IsNullOrEmpty(tempString)) primaryValuesAsOneString.Add(tempString);
476472
}
477473

0 commit comments

Comments
 (0)