This commit is contained in:
Kilian Wirl 2025-12-03 09:05:30 +01:00
parent bfbfbaf29b
commit c87d7cc450
5 changed files with 16 additions and 17 deletions

View File

@ -36,10 +36,13 @@
// //
// pictureBoxKamera // pictureBoxKamera
// //
this.pictureBoxKamera.Dock = System.Windows.Forms.DockStyle.Top; this.pictureBoxKamera.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBoxKamera.Location = new System.Drawing.Point(0, 0); this.pictureBoxKamera.Location = new System.Drawing.Point(0, 0);
this.pictureBoxKamera.Name = "pictureBoxKamera"; this.pictureBoxKamera.Name = "pictureBoxKamera";
this.pictureBoxKamera.Size = new System.Drawing.Size(584, 316); this.pictureBoxKamera.Size = new System.Drawing.Size(584, 316);
this.pictureBoxKamera.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBoxKamera.TabIndex = 0; this.pictureBoxKamera.TabIndex = 0;
this.pictureBoxKamera.TabStop = false; this.pictureBoxKamera.TabStop = false;
// //
@ -68,7 +71,10 @@
this.ClientSize = new System.Drawing.Size(584, 362); this.ClientSize = new System.Drawing.Size(584, 362);
this.Controls.Add(this.buttonHand); this.Controls.Add(this.buttonHand);
this.Controls.Add(this.pictureBoxKamera); this.Controls.Add(this.pictureBoxKamera);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormKamera"; this.Name = "FormKamera";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "KAMERA"; this.Text = "KAMERA";

View File

@ -36,6 +36,7 @@ namespace Deckungsbeitrag
private void FormKamera_Load(object sender, EventArgs e) private void FormKamera_Load(object sender, EventArgs e)
{ {
barcodeReader = new BarcodeReader(); barcodeReader = new BarcodeReader();
videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString); videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);

View File

@ -33,6 +33,7 @@ namespace Deckungsbeitrag
int j = 0; int j = 0;
public bool printOK; public bool printOK;
public static bool _nocont; public static bool _nocont;
public Funktionen() public Funktionen()
{ {
} }
@ -510,13 +511,6 @@ namespace Deckungsbeitrag
else return null; else return null;
} }
public static Auftrag Kunde_unbekannt(int aID)
{
Auftrag auf = null;
return auf;
}
/// <summary> /// <summary>
/// Die Kundenauswahl erfolgt durch Handeingabe oder Scan mit integrierter Kamera. /// Die Kundenauswahl erfolgt durch Handeingabe oder Scan mit integrierter Kamera.
/// Wenn Kamera vorhanden und trotzdem Handeingabe notwendig, dann Button klicken. /// Wenn Kamera vorhanden und trotzdem Handeingabe notwendig, dann Button klicken.
@ -525,9 +519,12 @@ namespace Deckungsbeitrag
public static Kunde KundenAuswahl() public static Kunde KundenAuswahl()
{ {
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
// Wenn Kamera Screen nicht verfügbar sein soll, muss videoDevices null sein.
videoDevices = null;
Kunde kunde; Kunde kunde;
if (videoDevices.Count == 0) if (videoDevices == null)
{ {
kunde = Open_List(); kunde = Open_List();
} }
@ -610,8 +607,7 @@ namespace Deckungsbeitrag
Image img = null; Image img = null;
BarcodeWriter code = new BarcodeWriter(); BarcodeWriter code = new BarcodeWriter();
code.Format = BarcodeFormat.QR_CODE; code.Format = BarcodeFormat.QR_CODE;
if (auftrag != null) img = code.Write(auftrag.AuftragID.ToString() + "§"); img = code.Write(kunde.KundeNummer.ToString());
else img = code.Write(kunde.KundeNummer.ToString() + "§");
//img = code.Write(auftrag.AuftragID + "," + kunde.KundeNummer + "," + auftrag.Liefertag.ToShortDateString()); //img = code.Write(auftrag.AuftragID + "," + kunde.KundeNummer + "," + auftrag.Liefertag.ToShortDateString());
return img; return img;

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.1")] [assembly: AssemblyVersion("1.0.0.4")]
[assembly: AssemblyFileVersion("1.0.0.1")] [assembly: AssemblyFileVersion("1.0.0.4")]

View File

@ -5,8 +5,6 @@ VisualStudioVersion = 17.3.32922.545
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verwaltung", "Verwaltung.csproj", "{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verwaltung", "Verwaltung.csproj", "{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}"
EndProject EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Verwaltung", "..\Verwaltung\Verwaltung.vdproj", "{568F1CAE-A5FA-75E5-7067-AE6211E81E06}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -17,8 +15,6 @@ Global
{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Debug|Any CPU.Build.0 = Debug|Any CPU {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.ActiveCfg = Release|Any CPU {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.Build.0 = Release|Any CPU {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.Build.0 = Release|Any CPU
{568F1CAE-A5FA-75E5-7067-AE6211E81E06}.Debug|Any CPU.ActiveCfg = Debug
{568F1CAE-A5FA-75E5-7067-AE6211E81E06}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE