Skip to content

Commit 20f422a

Browse files
Merge pull request #185 from bexis/dev_v3
Dev v3
2 parents ae59f73 + 1a5cbbe commit 20f422a

8 files changed

Lines changed: 145 additions & 125 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
@@ -41,7 +41,8 @@ public class DataTypeDisplayPattern
4141
new DataTypeDisplayPattern() {Id=27,Systemtype = DataTypeCode.DateTime, Name = "Minute", ExcelPattern=@"mm", DisplayPattern="mm", StringPattern = "mm", RegexPattern = null},
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},
44-
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}
44+
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}
4546

4647
};
4748

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ 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")]
3738
[TestCase("12:00 pm", "hh:mm tt", "1/1/0001 12:00:00 PM", true, "en-US")]
3839
[TestCase("12:00:00 pm", "hh:mm:ss tt", "1/1/0001 12:00:00 PM", true, "en-US")]
3940
[TestCase("2023-29-12", "yyyy-d-M", "12/29/2023 12:00:00 AM", true)]
@@ -118,6 +119,9 @@ public void ConvertStringToDateTimeWithpatternTest(string input, string pattern,
118119
else result.ToString( new CultureInfo("en-US", false)).Should().BeNullOrEmpty();
119120
}
120121
}
122+
123+
124+
[TestCase("2026-12-24 05:05:50", "yyyy-MM-dd hh:mm:ss", "12/24/2026 5:05:50 AM", true, "en-US")]
121125
[TestCase("12:00 pm", "hh:mm tt", "1/1/0001 12:00:00 PM", true, "en-US")]
122126
[TestCase("12:00:00 pm", "hh:mm:ss tt", "1/1/0001 12:00:00 PM", true, "en-US")]
123127
[TestCase("2023-29-12", "yyyy-d-M", "12/29/2023 12:00:00 AM", true)]

Components/Utils/BExIS.Utils/BExIS.Utils.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,18 @@
407407
<Project>{0815d220-3625-4e23-bbbc-8152345637fe}</Project>
408408
<Name>Vaiona.Entities</Name>
409409
</ProjectReference>
410+
<ProjectReference Include="..\..\Vaiona\Vaiona.Utils\Vaiona.Utils.csproj">
411+
<Project>{63FCACAA-9534-4FDD-A082-78DCC06BAF28}</Project>
412+
<Name>Vaiona.Utils</Name>
413+
</ProjectReference>
410414
<ProjectReference Include="..\..\Vaiona\Vaiona.Web.Mvc.Modularity\Vaiona.Web.Mvc.Modularity.csproj">
411415
<Project>{705f8751-e58a-453e-a7fd-0c310fd3cae8}</Project>
412416
<Name>Vaiona.Web.Mvc.Modularity</Name>
413417
</ProjectReference>
418+
<ProjectReference Include="..\BExIS.Utils.Config\BExIS.Utils.Config.csproj">
419+
<Project>{6EAD7D02-02F7-42FF-85E4-90BB892D3846}</Project>
420+
<Name>BExIS.Utils.Config</Name>
421+
</ProjectReference>
414422
</ItemGroup>
415423
<ItemGroup>
416424
<None Include="app.config" />

Components/Utils/BExIS.Utils/WebHelpers/HtmlNavigationExtensions.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using BExIS.Security.Entities.Subjects;
22
using BExIS.Security.Services.Authorization;
33
using BExIS.Security.Services.Objects;
4+
using BExIS.Utils.Config;
45
using System;
56
using System.Collections.Generic;
67
using System.Linq;
@@ -31,6 +32,8 @@ public static MvcHtmlString LaunchBar(this HtmlHelper htmlHelper)
3132

3233
foreach (var launchBarItem in lunchBarRoot.Elements())
3334
{
35+
36+
3437
if (launchBarItem.HasElements)
3538
{
3639
sb.Append($"<li class='dropdown'><a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>{launchBarItem.Attribute("title").Value}<span class='caret'></span></a><ul class='dropdown-menu'>");
@@ -47,12 +50,21 @@ public static MvcHtmlString LaunchBar(this HtmlHelper htmlHelper)
4750
if (!string.IsNullOrWhiteSpace(child.Attribute("action").Value))
4851
sb.Append(@"/").Append(child.Attribute("action").Value.ToLower());
4952

50-
if (child.Attribute("argument") != null && !string.IsNullOrWhiteSpace(child.Attribute("argument").Value))
53+
if (child.Attribute("argument") != null && !string.IsNullOrWhiteSpace(child.Attribute("argument").Value))
5154
sb.Append(@"/").Append(child.Attribute("argument").Value.ToLower());
5255

5356
sb.Append("' target=\"_blank\" >").Append(child.Attribute("title").Value).Append("</a></li>");
5457
}
5558

59+
if (launchBarItem.HasAttributes && launchBarItem.Attribute("id").Value.Equals("help"))
60+
{
61+
var help_list = GeneralSettings.GetValueByKey("help") as List<Vaiona.Utils.Cfg.Entry>;
62+
foreach (var help in help_list)
63+
{
64+
sb.Append($"<li><a href='{help.Value}' target=\"_blank\" >{help.Description}</a></li>");
65+
}
66+
}
67+
5668
sb.Append($"</ul></li>");
5769
}
5870
else
@@ -72,6 +84,7 @@ public static MvcHtmlString LaunchBar(this HtmlHelper htmlHelper)
7284

7385
sb.Append("'>").Append(launchBarItem.Attribute("title").Value).Append("</a></li>");
7486
}
87+
7588
}
7689

7790
return new MvcHtmlString(sb.ToString());

Console/BExIS.Web.Shell/Areas/DCM/BExIS.Modules.Dcm.UI/Content/bexis-metadata.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Green 05 #eff7f6
5050

5151
.optionContainer {
5252
float: right;
53-
/*margin-top: -28px;*/
53+
margin-top: -28px;
5454
}
5555

5656
.optionContainer table,
Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,66 @@
11
{
2-
"id": "dcm",
3-
"name": "Dataset Creation",
42
"description": "...",
53
"entries": [
6-
74
{
5+
"description": "This number of cells determines whether an upload of structured data should be executed directly or async.",
86
"key": "celllimit",
97
"title": "Number of cells for direct upload instead of async",
10-
"value": 2000,
11-
"description": "This number of cells determines whether an upload of structured data should be executed directly or async.",
128
"type": "Int32",
13-
"options": []
9+
"value": 2000
1410
},
1511
{
16-
"key": "fileuploadDescription",
17-
"title": "File upload description",
18-
"value": "required",
1912
"description": "If it is activated, adding a description per file is possible.",
20-
"type": "String",
13+
"key": "fileuploadDescription",
2114
"options": [
2215
"none",
2316
"active",
2417
"required"
25-
]
18+
],
19+
"title": "File upload description",
20+
"type": "String",
21+
"value": "required"
2622
},
2723
{
24+
"description": "Allow multiple files to be uploaded at the same time.",
2825
"key": "allowMultiFileupload",
2926
"title": "Multiple file upload",
30-
"value": true,
31-
"description": "Allow multiple files to be uploaded at the same time.",
3227
"type": "Boolean",
33-
"options": []
28+
"value": true
3429
},
3530
{
36-
"key": "attachmentDescription",
37-
"title": "Attachment description",
38-
"value": "active",
3931
"description": "If it is activated, adding a description per file is possible.",
40-
"type": "String",
32+
"key": "attachmentDescription",
4133
"options": [
4234
"none",
4335
"active",
4436
"required"
45-
]
37+
],
38+
"title": "Attachment description",
39+
"type": "String",
40+
"value": "active"
4641
},
4742
{
43+
"description": "Allow multiple files to be uploaded at the same time.",
4844
"key": "allowMultiAttachmentUpload",
4945
"title": "Multiple attachment upload",
50-
"value": false,
51-
"description": "Allow multiple files to be uploaded at the same time.",
5246
"type": "Boolean",
53-
"options": []
47+
"value": true
5448
},
5549
{
50+
"description": "Enables the loading of an external metadata form when editing entities",
5651
"key": "useExternalMetadataForm",
5752
"title": "Use external metadata form",
58-
"value": false,
59-
"description": "Enables the loading of an external metadata form when editing entities",
6053
"type": "Boolean",
61-
"options": []
54+
"value": false
6255
},
6356
{
57+
"description": "Define the origin from where the external metadata form should be loaded",
6458
"key": "externalMetadataFormUrl",
6559
"title": "External metadata form destination url",
66-
"value": "",
67-
"description": "Define the origin from where the external metadata form should be loaded",
6860
"type": "String",
69-
"options": []
61+
"value": ""
7062
}
71-
]
63+
],
64+
"id": "dcm",
65+
"name": "Dataset Creation"
7266
}

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Views/Dashboard/_myDatasetsViewHeader.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
{
1414

1515
<ul class="nav nav-tabs">
16-
<li class="active"><a href="#" id="own">Own</a></li>
17-
<li><a href="#" id="edit">Edit</a></li>
16+
<li class="active"><a href="#" id="own">PI/Contact</a></li>
17+
<li><a href="#" id="edit">Own/Edit</a></li>
1818
<li><a href="#" id="download">Download</a></li>
1919
</ul>
2020
}

0 commit comments

Comments
 (0)