master
Harald Christian Joachim Wolff 2018-07-30 09:23:18 +02:00
parent 9f3d69c91c
commit e0c98b87f4
6 changed files with 100 additions and 13 deletions

View File

@ -17,6 +17,21 @@ namespace sharpwawi
}
static Part[] parts = CreateParts(10000);
static Part[] CreateParts(int count)
{
Part[] parts = new Part[count];
for (int n = 0; n < parts.Length; n++)
parts[n] = new Part();
return parts;
}
[WebCallable]
public static Part[] TestParts()
{
return parts;
}
}
}

View File

@ -17,5 +17,7 @@ namespace sharpwawi.models
Name = "unnamed entity";
Description = "";
}
}
}

View File

@ -9,5 +9,15 @@ namespace sharpwawi.models
{
Key = String.Format("P{0:0######}",random.Next() % 10000000);
}
public int NextRandom()
{
return random.Next();
}
public String Enhance(int n)
{
return string.Format("ENH({0})", n);
}
}
}

View File

@ -1,11 +1,42 @@
<?frame /articles.hfrm ?>
<?set pagetitle "Artikel bearbeiten"?>
<div>
<h1>Artikelstamm <?=o.Key?></h1>
<h1>Artikelstamm <?=o.Key?> ( <?=o.Enhance(o.NextRandom())?> )</h1>
<div class="block">
<div class="group">
<div class="">Bezeichnung</div>
<div class="title">Bezeichnung</div>
<input type="text" id="Name" value="<?=o.Name?>"/>
</div>
<div class="group">
<div class="title">Freie Felder</div>
<div class="block">
<table>
<thead>
<tr>
<th>Feldname</th>
<th>Wert</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<?iterate uf o.userFields?>
<tr>
<td><?=uf.Key?></td>
<td><?=uf.Value?></td>
</tr>
<?end?>
</tbody>
</table>
</div>
</div>
</div>
<ul>
<?iterate part /Parts/TestParts ?>
<li><?=part.Key?></li>
<?end?>
</ul>
</div>

View File

@ -4,11 +4,19 @@
<?end?>
<section id="headbar">
<div class="title" id="wawi">WaWi</div>
<div class="title"><a id="wawi" href="/">WaWi</a></div>
<div class="title center" id="pagetitle"><?=pagetitle ?></div>
</section>
<section id="infobar">
<div>
<div>Harald Wolff</div>
<div>[ AEVL ]</div>
<div>+49 7051 9291 - 410</div>
<div>hwolff&#064;dr-bender.de</div>
<div>Keine Nachrichten</div>
<div></div>
</div>
</section>
<section id="navigation">

View File

@ -1,12 +1,13 @@

* {
body,p,div,a,a:visited {
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;
padding: 0px;
margin: 0px;
display: inline;
display: inline;
color:black;
}
h1,h2,h3,h4,h5,h6 {
@ -44,6 +45,27 @@ div {
height: 24px;
}
#infobar * {
font-family: Courier New, Courier, monospace;
font-size: 12px;
}
#infobar > div {
display: inline-flex;
padding-left: 32px;
white-space: nowrap;
}
#infobar > div > div {
display: inline-flex;
border-left: 1px solid black;
padding-left: 10px;
padding-right: 10px;
}
#navigation {
position: absolute;
top: 72px;
@ -59,23 +81,23 @@ div {
#pagearea {
position: absolute;
top: 140px;
top: 120px;
bottom: 50px;
left: 3%;
right: 3%;
overflow:auto;
}
#pagearea * {
font-size: 14px;
}
#pagearea:hover {
background-color: #e0e0e0;
}
#headbar .title {
position: absolute;
top: 8px;
}
#headbar .title a {
color: white;
}
@ -94,7 +116,6 @@ div {
position: absolute;
bottom: 0px;
left: 0px;
left: 0px;
right: 0px;
height: 24px;
@ -113,7 +134,7 @@ div {
right: 12px;
}
.box {
.box,.block{
display: block;
padding: 5px;
}