From c1ee5eeed4d701210ea674824aa47cf8067e3ce7 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Thu, 26 Jul 2018 16:55:41 +0200 Subject: [PATCH] WIP --- Parts.cs | 22 ++++++++ WaWi.xml | 3 ++ models/Entity.cs | 21 ++++++++ models/Part.cs | 13 +++++ sharp-wawi.csproj | 14 +++++ www/articles.hfrm | 18 +++++++ www/articles/article.hfrm | 15 ++++++ www/layout.hfrm | 1 + www/navigation.hfrm | 18 +++++++ www/style.css | 107 ++++++++++++++++++++++++++++++++++---- 10 files changed, 221 insertions(+), 11 deletions(-) create mode 100644 Parts.cs create mode 100644 models/Entity.cs create mode 100644 models/Part.cs create mode 100644 www/articles.hfrm create mode 100644 www/articles/article.hfrm create mode 100644 www/navigation.hfrm diff --git a/Parts.cs b/Parts.cs new file mode 100644 index 0000000..d30769e --- /dev/null +++ b/Parts.cs @@ -0,0 +1,22 @@ +using System; +using appsrv.attributes; +using sharpwawi.models; + +namespace sharpwawi +{ + public static class Parts + { + [WebCallable] + public static Part Create(){ + return new Part(); + } + + [WebCallable] + public static Part ByKey(String key){ + return new Part(); + } + + + + } +} diff --git a/WaWi.xml b/WaWi.xml index 2ddb020..0c5765f 100644 --- a/WaWi.xml +++ b/WaWi.xml @@ -7,5 +7,8 @@ sharpwawi.WaWi + + sharpwawi.Parts + diff --git a/models/Entity.cs b/models/Entity.cs new file mode 100644 index 0000000..fa4d86c --- /dev/null +++ b/models/Entity.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +namespace sharpwawi.models +{ + public class Entity + { + public String Key { get; set; } + public String Name { get; set; } + + public String Description { get; set; } + + public IDictionary userFields = new Dictionary(); + + public Entity() + { + Key = null; + Name = "unnamed entity"; + Description = ""; + } + } +} diff --git a/models/Part.cs b/models/Part.cs new file mode 100644 index 0000000..c8d58ad --- /dev/null +++ b/models/Part.cs @@ -0,0 +1,13 @@ +using System; +namespace sharpwawi.models +{ + public class Part : Entity + { + + + public Part() + { + Key = "P20345060"; + } + } +} diff --git a/sharp-wawi.csproj b/sharp-wawi.csproj index 8d367f9..6d6bfb3 100644 --- a/sharp-wawi.csproj +++ b/sharp-wawi.csproj @@ -32,9 +32,14 @@ + + + + + @@ -49,6 +54,15 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + diff --git a/www/articles.hfrm b/www/articles.hfrm new file mode 100644 index 0000000..870f03d --- /dev/null +++ b/www/articles.hfrm @@ -0,0 +1,18 @@ + + + + + +
+ +
+ +
diff --git a/www/articles/article.hfrm b/www/articles/article.hfrm new file mode 100644 index 0000000..9bbf526 --- /dev/null +++ b/www/articles/article.hfrm @@ -0,0 +1,15 @@ + + + Artikel bearbeiten + +
+

Artikelstamm

+
+
+
Bezeichnung
+ +
+
+
+ +
diff --git a/www/layout.hfrm b/www/layout.hfrm index f5d5255..08debd6 100644 --- a/www/layout.hfrm +++ b/www/layout.hfrm @@ -14,6 +14,7 @@
diff --git a/www/navigation.hfrm b/www/navigation.hfrm new file mode 100644 index 0000000..25e5907 --- /dev/null +++ b/www/navigation.hfrm @@ -0,0 +1,18 @@ + + + + + + + + \ No newline at end of file diff --git a/www/style.css b/www/style.css index fe1544f..bb999e9 100644 --- a/www/style.css +++ b/www/style.css @@ -3,11 +3,24 @@ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; font-size: 18px; text-decoration: none; - font-style: normal; + font-style: normal; + padding: 0px; + margin: 0px; + display: inline; +} + +h1,h2,h3,h4,h5,h6 { + display: block; } div { - display: block; + display: inline-block; +} + +.left { + float:left; + width: 230px; + margin-right: 16px; } #headbar { @@ -28,27 +41,36 @@ div { top: 48px; left: 0px; right: 0px; - height: 18px; + height: 24px; } #navigation { position: absolute; - top: 64px; + top: 72px; left: 0px; right: 0px; height: 24px; - - background-color: #bfe9ff; + //background-color: #bfe9ff; + background-color: #00a5fe; + padding: 8px; + padding-left: 5%; + padding-right: 5%; } #pagearea { position: absolute; - top: 94px; - left: 5%; - right: 5%; - + top: 140px; + left: 3%; + right: 3%; } +#pagearea * { + font-size: 14px; +} + +#pagearea:hover { + background-color: #e0e0e0; +} #headbar .title { position: absolute; @@ -91,6 +113,22 @@ div { right: 12px; } +.box { + display: block; + padding: 5px; +} + +.group { + width: 100%; + + margin-top: 4px; + margin-bottom: 4px; +} + +.group + .group { + border-top: 1px solid #6fb9df; + padding-top: 4px; +} .center { text-align: center; @@ -108,19 +146,66 @@ div { font-weight: bold; } +input, select, button { + border-radius: 4px; + border: 1px solid #6fb9df; + width: 280px; + height: 18px; + padding: 3px; + + font-size: 14px; +} + +input.narrow { + width: 140px; +} +#navigation * { + font-size: 14px; +} +.navigation { + width: 180px; + text-align: center; + background-color: #8fd9ff; + border: 1px solid #6fb9df; +} +#navigation > .navigation { + position: relative; + display: inline-block; + margin-left: 8px; + margin-right: 8px; +} + +.navigation > a { + display: block; + width: 100%; + height: 100%; + + padding: 4px; +} + +.navigation > .navigation { + position: absolute; + display: none; + + top: 15px; +} + +.navigation:hover > .navigation, .navigation > .navigation:hover { + display: block; +} #wawi { - z-index: 1; + z-index: 1; } #wawi:hover { color: #D02020;