Erster Push

This commit is contained in:
Christopher Meinhold 2024-08-20 16:30:20 +02:00
commit 8d75fc5186
8 changed files with 1076 additions and 0 deletions

63
.gitattributes vendored Normal file
View File

@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

363
.gitignore vendored Normal file
View File

@ -0,0 +1,363 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd

25
RHS-Sachsen.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RHS-Sachsen", "RHS-Sachsen\RHS-Sachsen.csproj", "{C2AE63DD-657F-4C35-8CF9-0BC544A24FAD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C2AE63DD-657F-4C35-8CF9-0BC544A24FAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2AE63DD-657F-4C35-8CF9-0BC544A24FAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2AE63DD-657F-4C35-8CF9-0BC544A24FAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2AE63DD-657F-4C35-8CF9-0BC544A24FAD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3488C2EB-2BF0-4EF4-AB8C-2B9E56343431}
EndGlobalSection
EndGlobal

383
RHS-Sachsen/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,383 @@
namespace RHS_Sachsen
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
tableLayoutPanel1 = new TableLayoutPanel();
label1 = new Label();
txtVerfasser = new TextBox();
label2 = new Label();
lblEinsatzort = new Label();
label4 = new Label();
label5 = new Label();
lblSuchgebiergröße = new Label();
txtAlarmierung = new TextBox();
txtAnforderung = new TextBox();
txtEinsatzort = new TextBox();
txtSuchgebietgroesse = new TextBox();
dtpDatum = new DateTimePicker();
btnEinsatzSpeichern = new Button();
btnEinsatzLaden = new Button();
btnEinsatzDrucken = new Button();
label3 = new Label();
txtLage = new TextBox();
label6 = new Label();
label7 = new Label();
label8 = new Label();
label9 = new Label();
txtAnsprechpartner = new TextBox();
txtRufnummer = new TextBox();
txtFunk1 = new TextBox();
txtFunk2 = new TextBox();
tableLayoutPanel1.SuspendLayout();
SuspendLayout();
//
// tableLayoutPanel1
//
tableLayoutPanel1.ColumnCount = 4;
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 18.25F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 31.75F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 14.875F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 35.125F));
tableLayoutPanel1.Controls.Add(label1, 0, 0);
tableLayoutPanel1.Controls.Add(txtVerfasser, 1, 0);
tableLayoutPanel1.Controls.Add(label2, 2, 0);
tableLayoutPanel1.Controls.Add(lblEinsatzort, 2, 1);
tableLayoutPanel1.Controls.Add(label4, 0, 1);
tableLayoutPanel1.Controls.Add(label5, 0, 2);
tableLayoutPanel1.Controls.Add(lblSuchgebiergröße, 2, 2);
tableLayoutPanel1.Controls.Add(txtAlarmierung, 1, 1);
tableLayoutPanel1.Controls.Add(txtAnforderung, 1, 2);
tableLayoutPanel1.Controls.Add(txtEinsatzort, 3, 1);
tableLayoutPanel1.Controls.Add(txtSuchgebietgroesse, 3, 2);
tableLayoutPanel1.Controls.Add(dtpDatum, 3, 0);
tableLayoutPanel1.Controls.Add(btnEinsatzSpeichern, 3, 12);
tableLayoutPanel1.Controls.Add(btnEinsatzLaden, 2, 12);
tableLayoutPanel1.Controls.Add(btnEinsatzDrucken, 1, 12);
tableLayoutPanel1.Controls.Add(label3, 0, 3);
tableLayoutPanel1.Controls.Add(txtLage, 1, 3);
tableLayoutPanel1.Controls.Add(label6, 0, 5);
tableLayoutPanel1.Controls.Add(label7, 0, 6);
tableLayoutPanel1.Controls.Add(label8, 2, 5);
tableLayoutPanel1.Controls.Add(label9, 2, 6);
tableLayoutPanel1.Controls.Add(txtAnsprechpartner, 1, 5);
tableLayoutPanel1.Controls.Add(txtRufnummer, 1, 6);
tableLayoutPanel1.Controls.Add(txtFunk1, 3, 5);
tableLayoutPanel1.Controls.Add(txtFunk2, 3, 6);
tableLayoutPanel1.Dock = DockStyle.Fill;
tableLayoutPanel1.Location = new Point(0, 0);
tableLayoutPanel1.Name = "tableLayoutPanel1";
tableLayoutPanel1.RowCount = 13;
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
tableLayoutPanel1.Size = new Size(800, 450);
tableLayoutPanel1.TabIndex = 0;
//
// label1
//
label1.Anchor = AnchorStyles.Left;
label1.AutoSize = true;
label1.Location = new Point(3, 7);
label1.Name = "label1";
label1.Size = new Size(87, 15);
label1.TabIndex = 1;
label1.Text = "Verfasser / Org.";
//
// txtVerfasser
//
txtVerfasser.Dock = DockStyle.Fill;
txtVerfasser.Location = new Point(149, 3);
txtVerfasser.Name = "txtVerfasser";
txtVerfasser.Size = new Size(248, 23);
txtVerfasser.TabIndex = 0;
//
// label2
//
label2.Anchor = AnchorStyles.Left;
label2.AutoSize = true;
label2.Location = new Point(403, 7);
label2.Name = "label2";
label2.Size = new Size(46, 15);
label2.TabIndex = 2;
label2.Text = "Datum:";
//
// lblEinsatzort
//
lblEinsatzort.Anchor = AnchorStyles.Left;
lblEinsatzort.AutoSize = true;
lblEinsatzort.Location = new Point(403, 37);
lblEinsatzort.Name = "lblEinsatzort";
lblEinsatzort.Size = new Size(61, 15);
lblEinsatzort.TabIndex = 3;
lblEinsatzort.Text = "Einsatzort:";
//
// label4
//
label4.Anchor = AnchorStyles.Left;
label4.AutoSize = true;
label4.Location = new Point(3, 37);
label4.Name = "label4";
label4.Size = new Size(110, 15);
label4.TabIndex = 4;
label4.Text = "Alarmierung durch:";
//
// label5
//
label5.Anchor = AnchorStyles.Left;
label5.AutoSize = true;
label5.Location = new Point(3, 67);
label5.Name = "label5";
label5.Size = new Size(112, 15);
label5.TabIndex = 5;
label5.Text = "Anforderung durch:";
//
// lblSuchgebiergröße
//
lblSuchgebiergröße.Anchor = AnchorStyles.Left;
lblSuchgebiergröße.AutoSize = true;
lblSuchgebiergröße.Location = new Point(403, 67);
lblSuchgebiergröße.Name = "lblSuchgebiergröße";
lblSuchgebiergröße.Size = new Size(104, 15);
lblSuchgebiergröße.TabIndex = 6;
lblSuchgebiergröße.Text = "Größe Suchgebiet:";
//
// txtAlarmierung
//
txtAlarmierung.Dock = DockStyle.Fill;
txtAlarmierung.Location = new Point(149, 33);
txtAlarmierung.Name = "txtAlarmierung";
txtAlarmierung.Size = new Size(248, 23);
txtAlarmierung.TabIndex = 2;
//
// txtAnforderung
//
txtAnforderung.Dock = DockStyle.Fill;
txtAnforderung.Location = new Point(149, 63);
txtAnforderung.Name = "txtAnforderung";
txtAnforderung.Size = new Size(248, 23);
txtAnforderung.TabIndex = 4;
//
// txtEinsatzort
//
txtEinsatzort.Dock = DockStyle.Fill;
txtEinsatzort.Location = new Point(522, 33);
txtEinsatzort.Name = "txtEinsatzort";
txtEinsatzort.Size = new Size(275, 23);
txtEinsatzort.TabIndex = 3;
//
// txtSuchgebietgroesse
//
txtSuchgebietgroesse.Dock = DockStyle.Fill;
txtSuchgebietgroesse.Location = new Point(522, 63);
txtSuchgebietgroesse.Name = "txtSuchgebietgroesse";
txtSuchgebietgroesse.Size = new Size(275, 23);
txtSuchgebietgroesse.TabIndex = 5;
//
// dtpDatum
//
dtpDatum.Location = new Point(522, 3);
dtpDatum.Name = "dtpDatum";
dtpDatum.Size = new Size(194, 23);
dtpDatum.TabIndex = 1;
dtpDatum.Value = new DateTime(2024, 8, 20, 0, 0, 0, 0);
//
// btnEinsatzSpeichern
//
btnEinsatzSpeichern.Location = new Point(522, 363);
btnEinsatzSpeichern.Name = "btnEinsatzSpeichern";
btnEinsatzSpeichern.Size = new Size(164, 23);
btnEinsatzSpeichern.TabIndex = 13;
btnEinsatzSpeichern.Text = "Einsatz speichern";
btnEinsatzSpeichern.UseVisualStyleBackColor = true;
btnEinsatzSpeichern.Click += btnEinsatzSpeichern_Click;
//
// btnEinsatzLaden
//
btnEinsatzLaden.Location = new Point(403, 363);
btnEinsatzLaden.Name = "btnEinsatzLaden";
btnEinsatzLaden.Size = new Size(113, 23);
btnEinsatzLaden.TabIndex = 14;
btnEinsatzLaden.Text = "Einsatz laden";
btnEinsatzLaden.UseVisualStyleBackColor = true;
//
// btnEinsatzDrucken
//
btnEinsatzDrucken.Location = new Point(149, 363);
btnEinsatzDrucken.Name = "btnEinsatzDrucken";
btnEinsatzDrucken.Size = new Size(150, 23);
btnEinsatzDrucken.TabIndex = 15;
btnEinsatzDrucken.Text = "Einsatz drucken";
btnEinsatzDrucken.UseVisualStyleBackColor = true;
//
// label3
//
label3.Anchor = AnchorStyles.Left;
label3.AutoSize = true;
label3.Location = new Point(3, 97);
label3.Name = "label3";
label3.Size = new Size(35, 15);
label3.TabIndex = 16;
label3.Text = "Lage:";
//
// txtLage
//
tableLayoutPanel1.SetColumnSpan(txtLage, 3);
txtLage.Dock = DockStyle.Fill;
txtLage.Location = new Point(149, 93);
txtLage.Multiline = true;
txtLage.Name = "txtLage";
tableLayoutPanel1.SetRowSpan(txtLage, 2);
txtLage.Size = new Size(648, 54);
txtLage.TabIndex = 6;
//
// label6
//
label6.Anchor = AnchorStyles.Left;
label6.AutoSize = true;
label6.Location = new Point(3, 157);
label6.Name = "label6";
label6.Size = new Size(138, 15);
label6.TabIndex = 18;
label6.Text = "Ansprechpartner vor Ort:";
//
// label7
//
label7.Anchor = AnchorStyles.Left;
label7.AutoSize = true;
label7.Location = new Point(3, 187);
label7.Name = "label7";
label7.Size = new Size(120, 15);
label7.TabIndex = 19;
label7.Text = "andere Rufnummern:";
//
// label8
//
label8.Anchor = AnchorStyles.Left;
label8.AutoSize = true;
label8.Location = new Point(403, 157);
label8.Name = "label8";
label8.Size = new Size(36, 15);
label8.TabIndex = 20;
label8.Text = "Funk:";
//
// label9
//
label9.Anchor = AnchorStyles.Left;
label9.AutoSize = true;
label9.Location = new Point(403, 187);
label9.Name = "label9";
label9.Size = new Size(36, 15);
label9.TabIndex = 21;
label9.Text = "Funk:";
//
// txtAnsprechpartner
//
txtAnsprechpartner.Dock = DockStyle.Fill;
txtAnsprechpartner.Location = new Point(149, 153);
txtAnsprechpartner.Name = "txtAnsprechpartner";
txtAnsprechpartner.Size = new Size(248, 23);
txtAnsprechpartner.TabIndex = 7;
//
// txtRufnummer
//
txtRufnummer.Dock = DockStyle.Fill;
txtRufnummer.Location = new Point(149, 183);
txtRufnummer.Name = "txtRufnummer";
txtRufnummer.Size = new Size(248, 23);
txtRufnummer.TabIndex = 9;
//
// txtFunk1
//
txtFunk1.Dock = DockStyle.Fill;
txtFunk1.Location = new Point(522, 153);
txtFunk1.Name = "txtFunk1";
txtFunk1.Size = new Size(275, 23);
txtFunk1.TabIndex = 8;
//
// txtFunk2
//
txtFunk2.Dock = DockStyle.Fill;
txtFunk2.Location = new Point(522, 183);
txtFunk2.Name = "txtFunk2";
txtFunk2.Size = new Size(275, 23);
txtFunk2.TabIndex = 10;
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(tableLayoutPanel1);
Name = "Form1";
Text = "Form1";
tableLayoutPanel1.ResumeLayout(false);
tableLayoutPanel1.PerformLayout();
ResumeLayout(false);
}
#endregion
private TableLayoutPanel tableLayoutPanel1;
private Label label1;
private TextBox txtVerfasser;
private Label label2;
private Label lblEinsatzort;
private Label label4;
private Label label5;
private Label lblSuchgebiergröße;
private TextBox txtAlarmierung;
private TextBox txtAnforderung;
private TextBox txtEinsatzort;
private TextBox txtSuchgebietgroesse;
private DateTimePicker dtpDatum;
private Button btnEinsatzSpeichern;
private Button btnEinsatzLaden;
private Button btnEinsatzDrucken;
private Label label3;
private TextBox txtLage;
private Label label6;
private Label label7;
private Label label8;
private Label label9;
private TextBox txtAnsprechpartner;
private TextBox txtRufnummer;
private TextBox txtFunk1;
private TextBox txtFunk2;
}
}

89
RHS-Sachsen/Form1.cs Normal file
View File

@ -0,0 +1,89 @@
using MySql.Data.MySqlClient;
namespace RHS_Sachsen
{
public partial class Form1 : Form
{
#if DEBUG
String connectionString = "Server=192.168.178.201;Database=rhs_sachsen;User ID=rhs_sachsen;Password=AX6Tcj-pB].dSK_(";
#else
String connectionString = "Server=155.133.215.203;Database=rhs_sachsen;User ID=rhs_sachsen;Password=AX6Tcj-pB].dSK_(";
#endif
public Form1()
{
InitializeComponent();
FelderAufStandartSetzen();
}
private void btnEinsatzSpeichern_Click(object sender, EventArgs e)
{
using (MySqlConnection connection = new MySqlConnection(connectionString))
{
try
{
connection.Open();
// SQL-Query für das Einfügen eines neuen Datensatzes in die Tabelle Einsatzberichte
string query = @"
INSERT INTO Einsatzberichte
(Verfasser, Alarmierung, Anforderung, Datum, Einsatzort, Groesse_Suchgebiet, Lage, Ansprechpartner, Rufnummer, Funk1, Funk2)
VALUES
(@Verfasser, @Alarmierung, @Anforderung, @Datum, @Einsatzort, @Groesse_Suchgebiet, @Lage, @Ansprechpartner, @Rufnummer, @Funk1, @Funk2);";
// Beispielwerte für die Parameter
string verfasser = txtVerfasser.Text;
string alarmierung = txtAlarmierung.Text;
string anforderung = txtAnforderung.Text;
DateTime datum = dtpDatum.Value;
string einsatzort = txtEinsatzort.Text;
string groesseSuchgebiet = txtSuchgebietgroesse.Text;
string lage = txtLage.Text;
string ansprechpartner = txtAnsprechpartner.Text;
string rufnummer = txtRufnummer.Text;
string funk1 = txtFunk1.Text;
string funk2 = txtFunk2.Text;
using (MySqlCommand command = new MySqlCommand(query, connection))
{
// Parameterwerte setzen
command.Parameters.AddWithValue("@Verfasser", verfasser);
command.Parameters.AddWithValue("@Alarmierung", alarmierung);
command.Parameters.AddWithValue("@Anforderung", anforderung);
command.Parameters.AddWithValue("@Datum", datum);
command.Parameters.AddWithValue("@Einsatzort", einsatzort);
command.Parameters.AddWithValue("@Groesse_Suchgebiet", groesseSuchgebiet);
command.Parameters.AddWithValue("@Lage", lage);
command.Parameters.AddWithValue("@Ansprechpartner", ansprechpartner);
command.Parameters.AddWithValue("@Rufnummer", rufnummer);
command.Parameters.AddWithValue("@Funk1", funk1);
command.Parameters.AddWithValue("@Funk2", funk2);
// SQL-Befehl ausführen
int rowsAffected = command.ExecuteNonQuery();
Console.WriteLine($"{rowsAffected} Datensatz erfolgreich eingefügt.");
}
FelderAufStandartSetzen();
}
catch (Exception ex)
{
Console.WriteLine("Fehler: " + ex.Message);
}
}
}
private void FelderAufStandartSetzen()
{
txtVerfasser.Clear();
txtAlarmierung.Clear();
txtAnforderung.Clear();
dtpDatum.Value = DateTime.Now;
txtEinsatzort.Clear();
txtSuchgebietgroesse.Clear();
txtLage.Clear();
txtAnsprechpartner.Clear();
txtRufnummer.Clear();
txtFunk1.Clear();
txtFunk2.Clear();
}
}
}

120
RHS-Sachsen/Form1.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

17
RHS-Sachsen/Program.cs Normal file
View File

@ -0,0 +1,17 @@
namespace RHS_Sachsen
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>RHS_Sachsen</RootNamespace>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MySql.Data" Version="9.0.0" />
</ItemGroup>
</Project>