WIP
parent
6a6761ebe0
commit
c1ee5eeed4
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
3
WaWi.xml
3
WaWi.xml
|
@ -7,5 +7,8 @@
|
|||
<Resource>
|
||||
<Provider Name="StaticClass">sharpwawi.WaWi</Provider>
|
||||
</Resource>
|
||||
<Resource>
|
||||
<Provider Name="StaticClass">sharpwawi.Parts</Provider>
|
||||
</Resource>
|
||||
</Resource>
|
||||
</SharpWebApplication>
|
||||
|
|
|
@ -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<string, string> userFields = new Dictionary<string, string>();
|
||||
|
||||
public Entity()
|
||||
{
|
||||
Key = null;
|
||||
Name = "unnamed entity";
|
||||
Description = "";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
namespace sharpwawi.models
|
||||
{
|
||||
public class Part : Entity
|
||||
{
|
||||
|
||||
|
||||
public Part()
|
||||
{
|
||||
Key = "P20345060";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -32,9 +32,14 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="WaWi.cs" />
|
||||
<Compile Include="Parts.cs" />
|
||||
<Compile Include="models\Part.cs" />
|
||||
<Compile Include="models\Entity.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="www\" />
|
||||
<Folder Include="models\" />
|
||||
<Folder Include="www\articles\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="www\index.hfrm">
|
||||
|
@ -49,6 +54,15 @@
|
|||
<None Include="WaWi.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\navigation.hfrm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\articles\article.hfrm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\articles.hfrm">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\sharp-application-server\sharp-application-server.csproj">
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<SharpForm Frame="/layout.hfrm">
|
||||
|
||||
<div class="left box navigation">
|
||||
<div class="group">
|
||||
<div>Recherche</div>
|
||||
<input type="text" id="qpart" class="narrow" alt="schlüssel / bezeichnung"/>
|
||||
</div>
|
||||
<div class="group">
|
||||
<div><a href="/articles/article.hfrm/Parts/Create">anlegen</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="block">
|
||||
<SubFrame/>
|
||||
</div>
|
||||
|
||||
</SharpForm>
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0"?>
|
||||
<SharpForm Frame="/articles.hfrm">
|
||||
<Set Name="pagetitle">Artikel bearbeiten</Set>
|
||||
|
||||
<div>
|
||||
<h1>Artikelstamm <Var Expression="o.Key"/></h1>
|
||||
<div class="block">
|
||||
<div class="group">
|
||||
<div class="">Bezeichnung</div>
|
||||
<input type="text" id="Name" value="#o.Name"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</SharpForm>
|
|
@ -14,6 +14,7 @@
|
|||
</section>
|
||||
|
||||
<section id="navigation">
|
||||
<Frame Path="/navigation.hfrm"/>
|
||||
</section>
|
||||
|
||||
<section id="pagearea">
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<SharpForm>
|
||||
<div class="navigation">
|
||||
<a href="/articles.hfrm">Artikel</a>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
<a href="">Stücklisten</a>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
<a href="">Lager</a>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
<a href="">Einkauf</a>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
<a href="">Verkauf</a>
|
||||
</div>
|
||||
</SharpForm>
|
107
www/style.css
107
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;
|
||||
|
|
Loading…
Reference in New Issue