Änderungen GUI sowie Anpassungen an Mobilansicht
This commit is contained in:
@@ -16,7 +16,26 @@
|
||||
}
|
||||
@media (max-width: 558.98px) {
|
||||
body {
|
||||
max-width: 390px;
|
||||
max-width: 558.98px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #043381;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #043381;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
#tableSearch {
|
||||
width: 53%;
|
||||
border: 1px solid grey;
|
||||
}
|
||||
@media (max-width: 349.98px) {
|
||||
body {
|
||||
max-width: 349.98px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
||||
@@ -151,26 +151,34 @@
|
||||
<!-- Mobil -->
|
||||
<div class="d-md-none">
|
||||
<div class="container" style="margin-left:-10px">
|
||||
<div class="row">
|
||||
<div class="row" style="height:166px">
|
||||
<div id="rowcols4" class="row-cols-1" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
|
||||
<asp:Label ID="lbl_LKW_M" runat="server" style="color:#043381" Font-Size="1em">LKW Kennzeichen:</asp:Label>
|
||||
<asp:TextBox ID="txt_LKW_M" runat="server" PlaceHolder="truck license plate" style="width:155px;margin-left:5px"></asp:TextBox>
|
||||
<asp:TextBox ID="txt_LKW_M" runat="server" style="width:155px;margin-left:30px" ClientIDMode="Predictable"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_LKW_M" runat="server" ID="regval_txt_LKW_M" Enabled="false"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ControlToValidate="txt_LKW_M" runat="server" ForeColor="Red" ID="regex_txt_LKW_M" ValidationExpression="[A-Z0-9]{4,30}\d" Display="Dynamic" ErrorMessage="Wrong plate format!" SetFocusOnError="true" Enabled="false"></asp:RegularExpressionValidator>
|
||||
<asp:TextBox ID="txt_KdNrAuftrag_M" runat="server" PlaceHolder="Customer Order Nr" style="width:155px;margin-left:28px"></asp:TextBox>
|
||||
</div>
|
||||
<div id="rowcols7" class="row-cols-1" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
|
||||
<asp:Label ID="lbl_KdnNrAuftrag_M" runat="server" style="color:#043381;font-size:1em">KundenNr-Auftrag:</asp:Label>
|
||||
<asp:TextBox ID="txt_KdNrAuftrag_M" runat="server" style="width:155px;margin-left:20px" ClientIDMode="Predictable"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_KdNrAuftrag_M" runat="server" ForeColor="Red" Enabled="false" ID="reqval_txt_KdNrAuftrag_M"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator runat="server" ID="regex_txt_KdNrAuftrag_M" ControlToValidate="txt_KdNrAuftrag_M" ForeColor="Red" Display="Dynamic" ValidationExpression="[A-Z0-9]{5,30}/d" Enabled="false" ErrorMessage="No valid input found!"></asp:RegularExpressionValidator>
|
||||
</div>
|
||||
<div id="rowcols5" class="row-cols-1" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
|
||||
<asp:TextBox ID="txt_Absender_M" runat="server" PlaceHolder="Sender" style="width:155px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_Absender_M" runat="server" style="width:155px;margin-left:18px" Enabled="false" ID="req_txt_Absender_M" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
|
||||
<asp:Label ID="lbl_absender_M" runat="server" style="color:#043381" Font-Size="1em">Absender:</asp:Label>
|
||||
<asp:TextBox ID="txt_Absender_M" runat="server" style="width:155px;margin-left:86px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_Absender_M" runat="server" style="width:155px;margin-left:18px" Enabled="false" ID="req_txt_Absender_M" ErrorMessage="" ForeColor="Red"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ControlToValidate="txt_Absender_M" runat="server" ID="regex_txt_Absender_M" Enabled="false" ValidationExpression="[^!,]{2,90}" ForeColor="Red" SetFocusOnError="true" Display="Dynamic" ErrorMessage="Wrong Input! Try again!"></asp:RegularExpressionValidator>
|
||||
<asp:TextBox ID="txt_Empfaenger_M" runat="server" PlaceHolder="Receiver" style="width:155px"></asp:TextBox>
|
||||
</div>
|
||||
<div id="rowcols8" class="row-cols-1" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
|
||||
<asp:Label ID="lbl_Empfaenger_M" runat="server" style="color:#043381" Font-Size="1em">Empfänger</asp:Label>
|
||||
<asp:TextBox ID="txt_Empfaenger_M" runat="server" style="width:155px;margin-left:77px"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ControlToValidate="txt_Empfaenger_M" runat="server" ID="reqval_txt_Empfaenger_M" ForeColor="Red" Enabled="false" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ControlToValidate="txt_Empfaenger_M" ID="regex_txt_Empaenger_M" runat="server" ForeColor="Red" Enabled="false" ValidationExpression="[^!,]{2,90}" Display="Dynamic" style="width:105px;margin-left:13px" SetFocusOnError="true" ErrorMessage="Error! Try again!"></asp:RegularExpressionValidator>
|
||||
</div>
|
||||
<div id="rowcol6" class="row-cols-1" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
|
||||
<asp:TextBox ID="txt_ReNr_M" runat="server" PlaceHolder="invoice number" style="width:155px;"></asp:TextBox>
|
||||
<asp:Label ID="lbl_ReNr_M" runat="server" style="color:#043381" Font-Size="1em">Rechnungs-Nummer:</asp:Label>
|
||||
<asp:TextBox ID="txt_ReNr_M" runat="server" style="width:155px;"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator Enabled="false" ControlToValidate="txt_ReNr_M" runat="server" Display="Dynamic" ForeColor="Red" ErrorMessage="*"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ControlToValidate="txt_ReNr_M" runat="server" ID="regex_txt_ReNr_M" ForeColor="Red" Display="Dynamic" ValidationExpression="[0-9]{1,8}" Enabled="false" ErrorMessage="Please stay in the range of 8 numbers!"></asp:RegularExpressionValidator>
|
||||
</div>
|
||||
@@ -211,7 +219,7 @@
|
||||
<asp:TableHeaderCell ID="tbl_HeaderCell_KundenAuftrNummer" runat="server" AbbreviatedText="Cust. Order Num">Customer Order Number</asp:TableHeaderCell>
|
||||
<asp:TableHeaderCell ID="tbl_HeaderCell_Absender" runat="server" AbbreviatedText="Sender">Sender</asp:TableHeaderCell>
|
||||
<asp:TableHeaderCell ID="tbl_HeaderCell_Empfaenger" runat="server" AbbreviatedText="Reciev">Reciever</asp:TableHeaderCell>
|
||||
<asp:TableHeaderCell ID="tbl_HeaderCell_Info" runat="server" Width="73.7px" Height="23.975576662143826" AbbreviatedText="Info">Information</asp:TableHeaderCell>
|
||||
<asp:TableHeaderCell ID="tbl_HeaderCell_Info" runat="server" AbbreviatedText="Info">Information</asp:TableHeaderCell>
|
||||
</asp:TableHeaderRow>
|
||||
</asp:Table>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Globalization
|
||||
Imports System.IO
|
||||
Imports System.Web.Services
|
||||
Imports iTextSharp.text
|
||||
Imports iTextSharp.text.pdf
|
||||
|
||||
Partial Class Customers_Default3
|
||||
Inherits System.Web.UI.Page
|
||||
@@ -120,14 +123,15 @@ Partial Class Customers_Default3
|
||||
End If
|
||||
If String.IsNullOrEmpty(t8.Text) Then
|
||||
t8.BackColor = white
|
||||
t8.BackColor = schwarz
|
||||
|
||||
t8.Width = Unit.Percentage(100)
|
||||
t8.Height = Unit.Percentage(100)
|
||||
Else
|
||||
t8.BackColor = white
|
||||
t8.ForeColor = veragblue
|
||||
End If
|
||||
|
||||
t8.Width = Unit.Pixel(22)
|
||||
t8.Height = Unit.Pixel(26)
|
||||
|
||||
th1.Font.Bold = True
|
||||
th2.Font.Bold = True
|
||||
th3.Font.Bold = True
|
||||
@@ -152,7 +156,7 @@ Partial Class Customers_Default3
|
||||
th6.ForeColor = white
|
||||
th7.ForeColor = white
|
||||
th8.ForeColor = white
|
||||
th8.Width = Unit.Pixel(22)
|
||||
th8.Width = Unit.Percentage(100)
|
||||
End Sub
|
||||
|
||||
Protected Sub btn_b_Click(sender As Object, e As EventArgs)
|
||||
@@ -448,16 +452,22 @@ Partial Class Customers_Default3
|
||||
Dim btn As New ImageButton
|
||||
btn.ViewStateMode = ViewStateMode.Enabled
|
||||
btn.CssClass = "btn btn-primary"
|
||||
btn.ImageUrl = "../images/Icons/main/833px-PDF_file_icon_small.gif"
|
||||
btn.ImageAlign = ImageAlign.Middle
|
||||
btn.ImageUrl = "../images/Icons/main/833px-PDF_file_icon_small_more.png"
|
||||
btn.BackColor = Drawing.Color.FromArgb(0, Drawing.Color.GhostWhite)
|
||||
btn.BorderStyle = BorderStyle.None
|
||||
'Hier PDF-File creation einfügen
|
||||
btn.Style.Add("Display", "table-cell")
|
||||
btn.Style.Add("Vertical-align", "middle")
|
||||
btn.Style.Add("margin", "2px 2px 8px 4px")
|
||||
btn.ControlStyle.Width = Unit.Percentage(100)
|
||||
btn.Height = Unit.Percentage(100)
|
||||
'btn.Attributes.Add("href", "pdfviewer.aspx?P1=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.FilialenNr).ToString() + "&P2=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.AbfertigungsNr).ToString + "&P3=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.RK_ID).ToString)
|
||||
btn.Attributes.Add("onclick", "window.open('../pdf/Bonizertifikat.pdf')")
|
||||
btn.Width = Unit.Pixel(72)
|
||||
btn.Height = Unit.Pixel(56)
|
||||
|
||||
'btn.PostBackUrl = "pdfviewer.aspx?P1=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.FilialenNr).ToString + "&P2=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.AbfertigungsNr).ToString + "&P3=" + VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(d.RK_ID).ToString
|
||||
tbl_Cell_Info.ValidateRequestMode = UI.ValidateRequestMode.Enabled
|
||||
tbl_Cell_Info.Width = Unit.Pixel(22)
|
||||
tbl_Cell_Info.Height = Unit.Pixel(26)
|
||||
tbl_Cell_Info.Width = Unit.Percentage(80)
|
||||
tbl_Cell_Info.Height = Unit.Percentage(100)
|
||||
tbl_Cell_Info.Controls.Add(btn)
|
||||
tr.Cells.Add(tbl_Cell_Info)
|
||||
initcells(tr, tbl_Cell_Index, tbl_Cell_ReNr, tbl_Cell_LKWs, tbl_Cell_Auftragsdat, tbl_Cell_KundAuftrNr, tbl_Cell_Absender, tbl_Cell_Empfaenger, tbl_Cell_Info,
|
||||
@@ -528,7 +538,6 @@ Partial Class Customers_Default3
|
||||
End Sub
|
||||
|
||||
Protected Sub valdaterange_2_ServerValidate(source As Object, args As ServerValidateEventArgs)
|
||||
|
||||
If Date.Parse(pickdate2.Text) > Date.ParseExact(Date.Now.ToShortDateString, "dd.MM.yyyy", provider) Then
|
||||
VERAG_VARIABLES.seterrorcount(10)
|
||||
lbl_status.ForeColor = Drawing.Color.Red
|
||||
|
||||
@@ -35,6 +35,20 @@
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #043381;
|
||||
font-size: 28px;
|
||||
}
|
||||
@media (max-width: 349.98px) {
|
||||
body {
|
||||
max-width: 349.98px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #043381;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #043381;
|
||||
font-size: 28px;
|
||||
|
||||
Reference in New Issue
Block a user