Compare commits
115 Commits
Author | SHA1 | Date |
---|---|---|
Andreas Zweili | 53db026b87 | |
Andreas Zweili | 16bd543124 | |
Andreas Zweili | 4c60d1f219 | |
Andreas Zweili | 3bb47c7c1d | |
unknown | cfdba71b15 | |
Andreas Zweili | 2af14622c2 | |
Andreas Zweili | 430ed02b0c | |
Andreas Zweili | f5bbdb796d | |
Andreas Zweili | bec8fae9b2 | |
Andreas Zweili | f54e46ff5f | |
Andreas Zweili | 3eaacbd150 | |
Andreas Zweili | 572289ae5d | |
Andreas Zweili | e97b1e2cc6 | |
Andreas Zweili | 3ddf3b8ea8 | |
Andreas Zweili | 84594a4c3d | |
Andreas Zweili | b3c1d5068e | |
Andreas Zweili | cf5377a671 | |
Andreas Zweili | 21dc10c7b4 | |
Andreas Zweili | 928c318dc2 | |
Andreas Zweili | 962a6e09e3 | |
Andreas Zweili | b294578fe8 | |
Andreas Zweili | 7f02aeb6d4 | |
Andreas Zweili | 5840e64d27 | |
Andreas Zweili | 607db6b494 | |
Andreas Zweili | b1ce4f40f4 | |
Andreas Zweili | d821d687b3 | |
Andreas Zweili | eb17e67e19 | |
Andreas Zweili | 918aca0b0e | |
Andreas Zweili | 9257314cf0 | |
Andreas Zweili | d32326bfda | |
Andreas Zweili | b06eef7614 | |
Andreas Zweili | af517873d1 | |
Andreas Zweili | 9166b5196f | |
Ismail | e1f734b2b3 | |
Ismail | 2d216b9721 | |
Andreas Zweili | 4c2edd761b | |
Andreas Zweili | df0472230a | |
Andreas Zweili | 511373efb8 | |
Andreas Zweili | e16f4bfede | |
Andreas Zweili | 2b7d0cd645 | |
Andreas Zweili | bde873eb79 | |
Andreas Zweili | 3e538a2ea5 | |
Andreas Zweili | fca04f0a64 | |
Andreas Zweili | b6d1437913 | |
Andreas Zweili | 8ae2019dd3 | |
Andreas Zweili | c9922c4a15 | |
Andreas Zweili | 0b120cbec8 | |
Andreas Zweili | b44ee71b78 | |
Andreas Zweili | e9ea46f6f9 | |
Andreas Zweili | 6b638f2116 | |
Andreas Zweili | f69d014250 | |
Andreas Zweili | 66e4649a4e | |
Andreas Zweili | 34a8472dfa | |
Andreas Zweili | d210e1522e | |
Andreas Zweili | 9f1f0d0139 | |
Andreas Zweili | 01a50b3986 | |
Ismail | a4d3fc2d08 | |
Andreas Zweili | e4aeb17446 | |
Andreas Zweili | fc57b8002c | |
Andreas Zweili | 7a720ca87f | |
Andreas Zweili | 5c1f7e0465 | |
Andreas Zweili | d078bb3646 | |
Andreas Zweili | 82bad94aa5 | |
Ismail | bdd791b053 | |
Andreas Zweili | 9e475b7790 | |
Andreas Zweili | 2e30c7388b | |
Andreas Zweili | ed24337ea0 | |
Andreas Zweili | 2035d9605e | |
Ismail | 59863aa937 | |
Ismail | 9151ec1c0c | |
Andreas Zweili | b17a3ed91f | |
Andreas Zweili | a25246220f | |
Ismail | 06d4e0afe2 | |
Ismail | fef89ba4bd | |
Andreas Zweili | dc5a9c59c6 | |
Andreas Zweili | c40c2fd892 | |
Andreas Zweili | 586cd99738 | |
Andreas Zweili | fc3246fa14 | |
Andreas Zweili | b3a3a3b1f8 | |
Andreas Zweili | 444c545338 | |
Andreas Zweili | f794b4401a | |
Andreas Zweili | 8a0e85ad8b | |
Andreas Zweili | 96d82feece | |
Andreas Zweili | c3fb4a6976 | |
Andreas Zweili | 9c3a79f8a8 | |
Andreas Zweili | 8e874bfd67 | |
Andreas Zweili | aecbcd4b3f | |
Andreas Zweili | 23f348b365 | |
Andreas Zweili | 122bee4bbd | |
Ismail | cae3e56bc4 | |
Ismail | f31eb0c921 | |
Ismail | 01046b11a7 | |
Andreas Zweili | 6cb461b81a | |
Andreas Zweili | 8217ec82a9 | |
Andreas Zweili | 81024b6b8b | |
Ismail | fbe0fa6b4d | |
Ismail | 05218e9c7a | |
Andreas Zweili | 0ac6662dbc | |
Andreas Zweili | 92bd3ec594 | |
Andreas Zweili | b69de13ffb | |
Andreas Zweili | d5118e3f6b | |
Andreas Zweili | ad34e2baeb | |
Andreas Zweili | ca21f78f1a | |
Andreas Zweili | 1b7884483d | |
Ismail | 9ae88c4e52 | |
Andreas Zweili | b804d6acdb | |
Andreas Zweili | d207c92159 | |
Andreas Zweili | 8201eab0c3 | |
Andreas Zweili | afea7c7dce | |
Andreas Zweili | 622cdbfd50 | |
Andreas Zweili | 068868aa47 | |
Andreas Zweili | 2189f03a3c | |
Andreas Zweili | 2b82521431 | |
Andreas Zweili | eeac347ee1 | |
Andreas Zweili | 8f3809b591 |
|
@ -59,3 +59,303 @@ auto/
|
|||
*.cache
|
||||
*.Cache
|
||||
*.exe
|
||||
/csharp/marketconnectionNET/marketconnectionNET/bin/Debug/marketconnectionNET.exe.config
|
||||
/csharp/marketconnectionNET/marketconnectionNET/bin/Debug/marketconnectionNET.pdb
|
||||
/csharp/marketconnectionNET/marketconnectionNET/obj/Debug/marketconnectionNET.csproj.FileListAbsolute.txt
|
||||
/csharp/marketconnectionNET/marketconnectionNET/obj/Debug/marketconnectionNET.pdb
|
||||
|
||||
## 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
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
*.VisualState.xml
|
||||
TestResult.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/
|
||||
**/Properties/launchSettings.json
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.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
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# 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
|
||||
# TODO: 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
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/packages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/packages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/packages/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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# GhostDoc plugin setting file
|
||||
*.GhostDoc.xml
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
node_modules/
|
||||
|
||||
# Typescript v1 declaration files
|
||||
typings/
|
||||
|
||||
# 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/
|
||||
|
||||
# JetBrains Rider
|
||||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# CodeRush
|
||||
.cr/
|
||||
|
||||
# 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
|
||||
|
|
20
README.md
|
@ -22,6 +22,26 @@ mehr verändert werden sollten. Ihre Funktionen sind dabei:
|
|||
- titlepage.tex: Enthält nur den Inhalt des Titelbildes
|
||||
- bib.bib: Enthält die Quellen
|
||||
|
||||
|
||||
##### Installation
|
||||
|
||||
1. Das SQL Studio Projekt im Ordner "sql" öffnen. Anschliessend die SQL Scripts
|
||||
entsprechend ihrer Nummerierung ausführen:
|
||||
|
||||
```
|
||||
* setup_01_create_database.sql
|
||||
* setup_02_create_table.sql
|
||||
* setup_03_insert_data.sql
|
||||
* setup_04_create_views.sql
|
||||
```
|
||||
|
||||
2. Das Visual Studio Projekt im Ordner
|
||||
"csharp" öffnen.
|
||||
|
||||
3. Den Connection String in den Properties der Datei App.config anpassen.
|
||||
|
||||
4. Applikation kompilieren.
|
||||
|
||||
### Support
|
||||
|
||||
We don't provide any support for the content in this repository.
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name=" marketdb" connectionString="Server=Database=marketdb;Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
|
@ -1,36 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("db - demo -app")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("db - demo -app")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("261f26ce-187c-4104-8ef7-8556f942c601")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -1,124 +0,0 @@
|
|||
namespace db___demo__app
|
||||
{
|
||||
partial class StartPage
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.titel = new System.Windows.Forms.Label();
|
||||
this.locations = new System.Windows.Forms.ListBox();
|
||||
this.location_titel = new System.Windows.Forms.Label();
|
||||
this.search = new System.Windows.Forms.TextBox();
|
||||
this.search_button = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// titel
|
||||
//
|
||||
this.titel.AutoSize = true;
|
||||
this.titel.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.titel.Location = new System.Drawing.Point(36, 32);
|
||||
this.titel.Name = "titel";
|
||||
this.titel.Size = new System.Drawing.Size(330, 32);
|
||||
this.titel.TabIndex = 0;
|
||||
this.titel.Text = "Freier Markt im Kleinen";
|
||||
this.titel.Click += new System.EventHandler(this.label1_Click);
|
||||
//
|
||||
// locations
|
||||
//
|
||||
this.locations.FormattingEnabled = true;
|
||||
this.locations.ItemHeight = 25;
|
||||
this.locations.Location = new System.Drawing.Point(41, 100);
|
||||
this.locations.Name = "locations";
|
||||
this.locations.Size = new System.Drawing.Size(325, 129);
|
||||
this.locations.TabIndex = 1;
|
||||
//
|
||||
// location_titel
|
||||
//
|
||||
this.location_titel.AutoSize = true;
|
||||
this.location_titel.Location = new System.Drawing.Point(36, 72);
|
||||
this.location_titel.Name = "location_titel";
|
||||
this.location_titel.Size = new System.Drawing.Size(124, 25);
|
||||
this.location_titel.TabIndex = 2;
|
||||
this.location_titel.Text = "Freie Stände";
|
||||
this.location_titel.Click += new System.EventHandler(this.label1_Click_1);
|
||||
//
|
||||
// search
|
||||
//
|
||||
this.search.Location = new System.Drawing.Point(41, 242);
|
||||
this.search.Name = "search";
|
||||
this.search.Size = new System.Drawing.Size(227, 30);
|
||||
this.search.TabIndex = 7;
|
||||
//
|
||||
// search_button
|
||||
//
|
||||
this.search_button.Location = new System.Drawing.Point(280, 242);
|
||||
this.search_button.Name = "search_button";
|
||||
this.search_button.Size = new System.Drawing.Size(86, 33);
|
||||
this.search_button.TabIndex = 8;
|
||||
this.search_button.Text = "search";
|
||||
this.search_button.UseVisualStyleBackColor = true;
|
||||
this.search_button.Click += new System.EventHandler(this.search_button_Click);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(481, 156);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(287, 30);
|
||||
this.textBox1.TabIndex = 9;
|
||||
//
|
||||
// StartPage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(957, 445);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.search_button);
|
||||
this.Controls.Add(this.search);
|
||||
this.Controls.Add(this.location_titel);
|
||||
this.Controls.Add(this.locations);
|
||||
this.Controls.Add(this.titel);
|
||||
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.Name = "StartPage";
|
||||
this.Text = "FMiK-Start";
|
||||
this.Load += new System.EventHandler(this.StartPage_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label titel;
|
||||
private System.Windows.Forms.ListBox locations;
|
||||
private System.Windows.Forms.Label location_titel;
|
||||
private System.Windows.Forms.TextBox search;
|
||||
private System.Windows.Forms.Button search_button;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace db___demo__app
|
||||
{
|
||||
public partial class StartPage : Form
|
||||
{
|
||||
List<locations> location = new List<locations>();
|
||||
public StartPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void StartPage_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void label1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void label1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void search_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataAccess db = new dataAccess();
|
||||
|
||||
location = db.GetLocations(search.Text);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name=" marketdb" connectionString="Server=Database=marketdb;Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
|
@ -1,16 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db___demo__app
|
||||
{
|
||||
public class dataAccess
|
||||
{
|
||||
public List<locations> GetLocations(string location_name)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db___demo__app
|
||||
{
|
||||
public static class helper
|
||||
{
|
||||
public static string CnnVal(string name)
|
||||
{
|
||||
return ConfigurationManager.ConnectionStrings[name].ConnectionString;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.exe.config
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.exe
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.pdb
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db-appUI.csprojResolveAssemblyReference.cache
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db___demo__app.StartPage.resources
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db___demo__app.Properties.Resources.resources
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db-appUI.csproj.GenerateResource.Cache
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db - demo -app.exe
|
||||
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db - demo -app.pdb
|
|
@ -1,14 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db_appLibary
|
||||
{
|
||||
public class locations
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{D917F26E-CDE7-4BD3-BA68-6A3299CF8C5A}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>db_appLibary</RootNamespace>
|
||||
<AssemblyName>db-appLibary</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="db-appLibary.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -1 +0,0 @@
|
|||
14ba4ef7b776c31f5ba06bf6aec3ad2ed80e3463
|
|
@ -1,9 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="marketdb" connectionString="Data Source=DESKTOP-HBRKIL2;Initial Catalog=marketdb;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
||||
<add name="marketdb" connectionString="Data Source=DESKTOP-HBRKIL2;Initial Catalog=marketdb;Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,227 @@
|
|||
namespace db_AI_4
|
||||
{
|
||||
partial class Dashboard
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.LocationListBox = new System.Windows.Forms.ListBox();
|
||||
this.LocationTextBox = new System.Windows.Forms.TextBox();
|
||||
this.LocationLabel = new System.Windows.Forms.Label();
|
||||
this.LocationSearchButton = new System.Windows.Forms.Button();
|
||||
this.RentDateLabel = new System.Windows.Forms.Label();
|
||||
this.PaymentDateLabel = new System.Windows.Forms.Label();
|
||||
this.RentInsertButton = new System.Windows.Forms.Button();
|
||||
this.RentDateTimePicker = new System.Windows.Forms.DateTimePicker();
|
||||
this.UserDisplayLabel = new System.Windows.Forms.Label();
|
||||
this.ShowRentListBox = new System.Windows.Forms.ListBox();
|
||||
this.ShowRentLabel = new System.Windows.Forms.Label();
|
||||
this.ShowRentButton = new System.Windows.Forms.Button();
|
||||
this.RentedTextBox = new System.Windows.Forms.TextBox();
|
||||
this.LoggedInUserLabel = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// LocationListBox
|
||||
//
|
||||
this.LocationListBox.FormattingEnabled = true;
|
||||
this.LocationListBox.Location = new System.Drawing.Point(9, 118);
|
||||
this.LocationListBox.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.LocationListBox.Name = "LocationListBox";
|
||||
this.LocationListBox.Size = new System.Drawing.Size(362, 199);
|
||||
this.LocationListBox.TabIndex = 0;
|
||||
//
|
||||
// LocationTextBox
|
||||
//
|
||||
this.LocationTextBox.Location = new System.Drawing.Point(9, 76);
|
||||
this.LocationTextBox.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.LocationTextBox.Name = "LocationTextBox";
|
||||
this.LocationTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.LocationTextBox.TabIndex = 1;
|
||||
//
|
||||
// LocationLabel
|
||||
//
|
||||
this.LocationLabel.AutoSize = true;
|
||||
this.LocationLabel.Location = new System.Drawing.Point(9, 43);
|
||||
this.LocationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.LocationLabel.Name = "LocationLabel";
|
||||
this.LocationLabel.Size = new System.Drawing.Size(102, 13);
|
||||
this.LocationLabel.TabIndex = 2;
|
||||
this.LocationLabel.Text = "Locations-Searched";
|
||||
//
|
||||
// LocationSearchButton
|
||||
//
|
||||
this.LocationSearchButton.Location = new System.Drawing.Point(88, 75);
|
||||
this.LocationSearchButton.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.LocationSearchButton.Name = "LocationSearchButton";
|
||||
this.LocationSearchButton.Size = new System.Drawing.Size(56, 19);
|
||||
this.LocationSearchButton.TabIndex = 3;
|
||||
this.LocationSearchButton.Text = "Search";
|
||||
this.LocationSearchButton.UseVisualStyleBackColor = true;
|
||||
this.LocationSearchButton.Click += new System.EventHandler(this.LocationSearchButton_Click);
|
||||
//
|
||||
// RentDateLabel
|
||||
//
|
||||
this.RentDateLabel.AutoSize = true;
|
||||
this.RentDateLabel.Location = new System.Drawing.Point(11, 330);
|
||||
this.RentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.RentDateLabel.Name = "RentDateLabel";
|
||||
this.RentDateLabel.Size = new System.Drawing.Size(56, 13);
|
||||
this.RentDateLabel.TabIndex = 20;
|
||||
this.RentDateLabel.Text = "Rent-Date";
|
||||
//
|
||||
// PaymentDateLabel
|
||||
//
|
||||
this.PaymentDateLabel.AutoSize = true;
|
||||
this.PaymentDateLabel.Location = new System.Drawing.Point(375, 210);
|
||||
this.PaymentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.PaymentDateLabel.Name = "PaymentDateLabel";
|
||||
this.PaymentDateLabel.Size = new System.Drawing.Size(0, 13);
|
||||
this.PaymentDateLabel.TabIndex = 18;
|
||||
//
|
||||
// RentInsertButton
|
||||
//
|
||||
this.RentInsertButton.Location = new System.Drawing.Point(295, 328);
|
||||
this.RentInsertButton.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.RentInsertButton.Name = "RentInsertButton";
|
||||
this.RentInsertButton.Size = new System.Drawing.Size(76, 19);
|
||||
this.RentInsertButton.TabIndex = 17;
|
||||
this.RentInsertButton.Text = "Rent";
|
||||
this.RentInsertButton.UseVisualStyleBackColor = true;
|
||||
this.RentInsertButton.Click += new System.EventHandler(this.RentInsertButton_Click);
|
||||
//
|
||||
// RentDateTimePicker
|
||||
//
|
||||
this.RentDateTimePicker.Location = new System.Drawing.Point(78, 327);
|
||||
this.RentDateTimePicker.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.RentDateTimePicker.Name = "RentDateTimePicker";
|
||||
this.RentDateTimePicker.Size = new System.Drawing.Size(182, 20);
|
||||
this.RentDateTimePicker.TabIndex = 21;
|
||||
//
|
||||
// UserDisplayLabel
|
||||
//
|
||||
this.UserDisplayLabel.AutoSize = true;
|
||||
this.UserDisplayLabel.Location = new System.Drawing.Point(9, 11);
|
||||
this.UserDisplayLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.UserDisplayLabel.Name = "UserDisplayLabel";
|
||||
this.UserDisplayLabel.Size = new System.Drawing.Size(71, 13);
|
||||
this.UserDisplayLabel.TabIndex = 27;
|
||||
this.UserDisplayLabel.Text = "Logged in as:";
|
||||
//
|
||||
// ShowRentListBox
|
||||
//
|
||||
this.ShowRentListBox.FormattingEnabled = true;
|
||||
this.ShowRentListBox.Location = new System.Drawing.Point(384, 118);
|
||||
this.ShowRentListBox.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ShowRentListBox.Name = "ShowRentListBox";
|
||||
this.ShowRentListBox.Size = new System.Drawing.Size(351, 199);
|
||||
this.ShowRentListBox.TabIndex = 28;
|
||||
this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged);
|
||||
//
|
||||
// ShowRentLabel
|
||||
//
|
||||
this.ShowRentLabel.AutoSize = true;
|
||||
this.ShowRentLabel.Location = new System.Drawing.Point(381, 43);
|
||||
this.ShowRentLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.ShowRentLabel.Name = "ShowRentLabel";
|
||||
this.ShowRentLabel.Size = new System.Drawing.Size(91, 13);
|
||||
this.ShowRentLabel.TabIndex = 29;
|
||||
this.ShowRentLabel.Text = "Rented-Locations";
|
||||
//
|
||||
// ShowRentButton
|
||||
//
|
||||
this.ShowRentButton.Location = new System.Drawing.Point(464, 74);
|
||||
this.ShowRentButton.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ShowRentButton.Name = "ShowRentButton";
|
||||
this.ShowRentButton.Size = new System.Drawing.Size(56, 19);
|
||||
this.ShowRentButton.TabIndex = 30;
|
||||
this.ShowRentButton.Text = "Show";
|
||||
this.ShowRentButton.UseVisualStyleBackColor = true;
|
||||
this.ShowRentButton.Click += new System.EventHandler(this.ShowRentButton_Click);
|
||||
//
|
||||
// RentedTextBox
|
||||
//
|
||||
this.RentedTextBox.Location = new System.Drawing.Point(384, 74);
|
||||
this.RentedTextBox.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.RentedTextBox.Name = "RentedTextBox";
|
||||
this.RentedTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.RentedTextBox.TabIndex = 31;
|
||||
//
|
||||
// LoggedInUserLabel
|
||||
//
|
||||
this.LoggedInUserLabel.AutoSize = true;
|
||||
this.LoggedInUserLabel.Location = new System.Drawing.Point(84, 11);
|
||||
this.LoggedInUserLabel.Name = "LoggedInUserLabel";
|
||||
this.LoggedInUserLabel.Size = new System.Drawing.Size(100, 13);
|
||||
this.LoggedInUserLabel.TabIndex = 32;
|
||||
this.LoggedInUserLabel.Text = "LoggedInUserLabel";
|
||||
this.LoggedInUserLabel.Click += new System.EventHandler(this.LoggedInUser_Click);
|
||||
//
|
||||
// Dashboard
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(750, 363);
|
||||
this.Controls.Add(this.LoggedInUserLabel);
|
||||
this.Controls.Add(this.RentedTextBox);
|
||||
this.Controls.Add(this.ShowRentButton);
|
||||
this.Controls.Add(this.ShowRentLabel);
|
||||
this.Controls.Add(this.ShowRentListBox);
|
||||
this.Controls.Add(this.UserDisplayLabel);
|
||||
this.Controls.Add(this.RentDateTimePicker);
|
||||
this.Controls.Add(this.RentDateLabel);
|
||||
this.Controls.Add(this.PaymentDateLabel);
|
||||
this.Controls.Add(this.RentInsertButton);
|
||||
this.Controls.Add(this.LocationSearchButton);
|
||||
this.Controls.Add(this.LocationLabel);
|
||||
this.Controls.Add(this.LocationTextBox);
|
||||
this.Controls.Add(this.LocationListBox);
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "Dashboard";
|
||||
this.Text = "Dashboard";
|
||||
this.Load += new System.EventHandler(this.Dashboard_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox LocationListBox;
|
||||
private System.Windows.Forms.TextBox LocationTextBox;
|
||||
private System.Windows.Forms.Label LocationLabel;
|
||||
private System.Windows.Forms.Button LocationSearchButton;
|
||||
private System.Windows.Forms.Label RentDateLabel;
|
||||
private System.Windows.Forms.Label PaymentDateLabel;
|
||||
private System.Windows.Forms.Button RentInsertButton;
|
||||
private System.Windows.Forms.DateTimePicker RentDateTimePicker;
|
||||
private System.Windows.Forms.Label UserDisplayLabel;
|
||||
private System.Windows.Forms.ListBox ShowRentListBox;
|
||||
private System.Windows.Forms.Label ShowRentLabel;
|
||||
private System.Windows.Forms.Button ShowRentButton;
|
||||
private System.Windows.Forms.TextBox RentedTextBox;
|
||||
private System.Windows.Forms.Label LoggedInUserLabel;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public partial class Dashboard : Form
|
||||
{
|
||||
//Search Locations start
|
||||
List<GetLocations> locations = new List<GetLocations>();
|
||||
List<GetLocations> rentlocation = new List<GetLocations>();
|
||||
List<GetRents> rentedlocations = new List<GetRents>();
|
||||
|
||||
BindingSource locationBinding = new BindingSource();
|
||||
BindingSource addlocationBinding = new BindingSource();
|
||||
BindingSource showrentBinding = new BindingSource();
|
||||
|
||||
public Dashboard()
|
||||
{
|
||||
InitializeComponent();
|
||||
UpdateBinding();
|
||||
LoggedInUserLabel.Text = GetMembers.email_address;
|
||||
}
|
||||
|
||||
private void UpdateBinding()
|
||||
{
|
||||
// Loading of the Searched Locations
|
||||
LocationListBox.DataSource = locations;
|
||||
LocationListBox.DisplayMember = "LocationInfo";
|
||||
|
||||
locationBinding.DataSource = locations;
|
||||
LocationListBox.DataSource = locationBinding;
|
||||
|
||||
|
||||
//Loading of the Selected Locations
|
||||
|
||||
// Rented Locations
|
||||
ShowRentListBox.DataSource = rentedlocations;
|
||||
ShowRentListBox.DisplayMember = "RentInfo";
|
||||
|
||||
showrentBinding.DataSource = rentedlocations;
|
||||
ShowRentListBox.DataSource = showrentBinding;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void LocationSearchButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataAccess db = new DataAccess();
|
||||
|
||||
locations = db.GetLocations(LocationTextBox.Text);
|
||||
|
||||
UpdateBinding();
|
||||
|
||||
}
|
||||
// Search Locations end
|
||||
|
||||
|
||||
// Insert Rent start
|
||||
private void RentInsertButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataAccess db = new DataAccess();
|
||||
try
|
||||
{
|
||||
GetLocations selectedItem = (GetLocations)LocationListBox.SelectedItem;
|
||||
//var command = "SELECT rent_price_id FROM dbo.locations WHERE locations.location_name = @Location_Name";
|
||||
selectedItem = db.GetLocations(selectedItem.location_name)[0];
|
||||
db.InsertRent(RentDateTimePicker.Value.Date.ToString("yyyyMMdd"), GetMembers.member_id, selectedItem.rent_price_id, selectedItem.location_id);
|
||||
//RentDateTimePicker.Text = "";
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Please select a location and a date.");
|
||||
}
|
||||
|
||||
}
|
||||
// Insert Rent end
|
||||
|
||||
|
||||
private void Dashboard_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ShowRentButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataAccess db = new DataAccess();
|
||||
|
||||
rentedlocations = db.GetRentedLocations(RentedTextBox.Text);
|
||||
|
||||
UpdateBinding();
|
||||
}
|
||||
|
||||
private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void LoggedInUser_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//Add Location to ADDBox end
|
||||
|
||||
}
|
||||
}
|
|
@ -1,120 +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>
|
||||
<?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>
|
|
@ -0,0 +1,120 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Dapper;
|
||||
using System.Data;
|
||||
using System.Windows.Forms;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public class DataAccess
|
||||
{
|
||||
public SqlConnection connection { get; private set; }
|
||||
|
||||
//Read locations from the Database function start
|
||||
public List<GetLocations> GetLocations(string LocationName)
|
||||
{
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
||||
{
|
||||
|
||||
var output = connection.Query<GetLocations>($"SELECT * FROM locations WHERE location_name like '%{ LocationName }%'").ToList();
|
||||
return output;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void CurrentUser(string input_mail)
|
||||
{
|
||||
List<int> QueryResult = new List<int>();
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
||||
{
|
||||
var command = "SELECT member_id FROM dbo.members WHERE members.email_address = @Email_Adress";
|
||||
QueryResult = connection.Query<int>(command, new { Email_Adress = input_mail }).ToList();
|
||||
GetMembers.member_id = Convert.ToInt32(QueryResult[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Insert Rents into Database start
|
||||
public void InsertRent(string RentDate, int MemberID, int RentPriceID , int LocationID)
|
||||
{
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
||||
{
|
||||
List<GetRents> rents = new List<GetRents>();
|
||||
|
||||
rents.Add(new GetRents { rent_date = RentDate, member_id = GetMembers.member_id, rent_price_id = RentPriceID, location_id = LocationID});
|
||||
|
||||
connection.Execute("INSERT INTO dbo.rents (rent_date, member_id, rent_price_id, location_id)" +
|
||||
" VALUES (@rent_date, @member_id, @rent_price_id, @location_id )", rents);
|
||||
}
|
||||
}
|
||||
// Insert Rents into Database end
|
||||
|
||||
|
||||
|
||||
//Registration function start
|
||||
public void InsertMember(string input_mail, string input_pw)
|
||||
{
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
||||
{
|
||||
var command = "INSERT INTO dbo.members (email_address, password) VALUES ( @Email_address, @Password)";
|
||||
connection.Execute(command, new { Email_address = input_mail, Password = input_pw });
|
||||
|
||||
}
|
||||
}
|
||||
//Registration function end
|
||||
|
||||
//Read Rented locations start
|
||||
internal List<GetRents> GetRentedLocations(string LocationName)
|
||||
{
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
||||
{
|
||||
|
||||
var rentoutput = connection.Query<GetRents>( $"SELECT * FROM [RentedLocations] WHERE location_name like '%{ LocationName }%' ORDER BY rent_date ASC ").ToList();
|
||||
return rentoutput;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//Read Rented locations end
|
||||
|
||||
|
||||
|
||||
//CheckLogin function start
|
||||
public void CheckLogin(string Email_address, string Password)
|
||||
{
|
||||
SqlConnection con = new SqlConnection(Helper.CnnVal("marketdb"));
|
||||
|
||||
con.Open();
|
||||
SqlCommand cmd = new SqlCommand($"SELECT * FROM dbo.members WHERE email_address = '{Email_address}' and password = '{Password}'",con);
|
||||
SqlDataReader reader;
|
||||
reader = cmd.ExecuteReader();
|
||||
|
||||
int count = 0;
|
||||
while (reader.Read())
|
||||
{
|
||||
count += 1;
|
||||
}
|
||||
|
||||
if (count == 1)
|
||||
{
|
||||
CurrentUser(GetMembers.email_address);
|
||||
Dashboard dashboard = new Dashboard();
|
||||
dashboard.Show();
|
||||
}
|
||||
else if (count > 0)
|
||||
{
|
||||
MessageBox.Show("Already existing");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Username or Password not correct");
|
||||
|
||||
}
|
||||
//CheckLogin function end
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,15 +4,24 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db___demo__app
|
||||
namespace db_AI_4
|
||||
{
|
||||
public class locations
|
||||
public class GetLocations
|
||||
{
|
||||
public int location_id { get; set; }
|
||||
public string streetname { get; set; }
|
||||
public int location_capacity { get; set; }
|
||||
public string location_name { get; set; }
|
||||
public int city_id { get; set; }
|
||||
public int country_id { get; set; }
|
||||
public int rent_price_id { get; set; }
|
||||
|
||||
|
||||
public string LocationInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"{ streetname } { location_capacity } {location_name} ";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public static class GetMembers
|
||||
{
|
||||
public static int member_id { get; set; }
|
||||
public static string email_address { get; set; }
|
||||
public static string password { get; set; }
|
||||
public static int member_status_id { get; set; }
|
||||
|
||||
|
||||
public static string MemberInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return $" {member_id} ({email_address}) {password} ";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static string MemberID
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"({email_address}) {member_id}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public class GetRents
|
||||
{
|
||||
public int rent_id { get; set; }
|
||||
public string rent_date { get; set; }
|
||||
public string payment_date { get; set; }
|
||||
public int member_id { get; set; }
|
||||
public string email_address { get; set; }
|
||||
public int rent_price_id { get; set; }
|
||||
public int rent_price { get; set; }
|
||||
|
||||
public int location_id { get; set; }
|
||||
public string streetname { get; set; }
|
||||
public int location_capacity { get; set; }
|
||||
public string location_name { get; set; }
|
||||
|
||||
|
||||
|
||||
// Not in use until we want to read that data out
|
||||
public string RentInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"{location_name} {location_capacity} {rent_price} { rent_date } {email_address} ";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Configuration;
|
||||
|
||||
namespace marketconnectionNET
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public static class helper
|
||||
public static class Helper
|
||||
{
|
||||
public static string CnnVal(string marketdb)
|
||||
{
|
||||
return ConfigurationManager.ConnectionStrings[marketdb].ConnectionString;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,134 @@
|
|||
namespace db_AI_4
|
||||
{
|
||||
partial class LoginForm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.RegistrationButton = new System.Windows.Forms.Button();
|
||||
this.EmailLoginBox = new System.Windows.Forms.TextBox();
|
||||
this.PasswordLoginBox = new System.Windows.Forms.TextBox();
|
||||
this.LoginLabel = new System.Windows.Forms.Label();
|
||||
this.LoginButton = new System.Windows.Forms.Button();
|
||||
this.EmailLabel = new System.Windows.Forms.Label();
|
||||
this.PasswordLabel = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// RegistrationButton
|
||||
//
|
||||
this.RegistrationButton.Location = new System.Drawing.Point(86, 145);
|
||||
this.RegistrationButton.Name = "RegistrationButton";
|
||||
this.RegistrationButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.RegistrationButton.TabIndex = 0;
|
||||
this.RegistrationButton.Text = "Register";
|
||||
this.RegistrationButton.UseVisualStyleBackColor = true;
|
||||
this.RegistrationButton.Click += new System.EventHandler(this.RegistrationButton_Click);
|
||||
//
|
||||
// EmailLoginBox
|
||||
//
|
||||
this.EmailLoginBox.Location = new System.Drawing.Point(86, 44);
|
||||
this.EmailLoginBox.Name = "EmailLoginBox";
|
||||
this.EmailLoginBox.Size = new System.Drawing.Size(174, 22);
|
||||
this.EmailLoginBox.TabIndex = 1;
|
||||
//
|
||||
// PasswordLoginBox
|
||||
//
|
||||
this.PasswordLoginBox.Location = new System.Drawing.Point(86, 87);
|
||||
this.PasswordLoginBox.Name = "PasswordLoginBox";
|
||||
this.PasswordLoginBox.PasswordChar = '*';
|
||||
this.PasswordLoginBox.Size = new System.Drawing.Size(174, 22);
|
||||
this.PasswordLoginBox.TabIndex = 2;
|
||||
//
|
||||
// LoginLabel
|
||||
//
|
||||
this.LoginLabel.AutoSize = true;
|
||||
this.LoginLabel.Location = new System.Drawing.Point(12, 9);
|
||||
this.LoginLabel.Name = "LoginLabel";
|
||||
this.LoginLabel.Size = new System.Drawing.Size(43, 17);
|
||||
this.LoginLabel.TabIndex = 4;
|
||||
this.LoginLabel.Text = "Login";
|
||||
//
|
||||
// LoginButton
|
||||
//
|
||||
this.LoginButton.Location = new System.Drawing.Point(185, 145);
|
||||
this.LoginButton.Name = "LoginButton";
|
||||
this.LoginButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.LoginButton.TabIndex = 7;
|
||||
this.LoginButton.Text = "Login";
|
||||
this.LoginButton.UseVisualStyleBackColor = true;
|
||||
this.LoginButton.Click += new System.EventHandler(this.LoginButton_Click);
|
||||
//
|
||||
// EmailLabel
|
||||
//
|
||||
this.EmailLabel.AutoSize = true;
|
||||
this.EmailLabel.Location = new System.Drawing.Point(12, 44);
|
||||
this.EmailLabel.Name = "EmailLabel";
|
||||
this.EmailLabel.Size = new System.Drawing.Size(42, 17);
|
||||
this.EmailLabel.TabIndex = 8;
|
||||
this.EmailLabel.Text = "Email";
|
||||
//
|
||||
// PasswordLabel
|
||||
//
|
||||
this.PasswordLabel.AutoSize = true;
|
||||
this.PasswordLabel.Location = new System.Drawing.Point(12, 87);
|
||||
this.PasswordLabel.Name = "PasswordLabel";
|
||||
this.PasswordLabel.Size = new System.Drawing.Size(69, 17);
|
||||
this.PasswordLabel.TabIndex = 9;
|
||||
this.PasswordLabel.Text = "Password";
|
||||
//
|
||||
// LoginForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(373, 264);
|
||||
this.Controls.Add(this.PasswordLabel);
|
||||
this.Controls.Add(this.EmailLabel);
|
||||
this.Controls.Add(this.LoginButton);
|
||||
this.Controls.Add(this.LoginLabel);
|
||||
this.Controls.Add(this.PasswordLoginBox);
|
||||
this.Controls.Add(this.EmailLoginBox);
|
||||
this.Controls.Add(this.RegistrationButton);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Name = "LoginForm";
|
||||
this.Text = "Login";
|
||||
this.Load += new System.EventHandler(this.LoginForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button RegistrationButton;
|
||||
private System.Windows.Forms.TextBox EmailLoginBox;
|
||||
private System.Windows.Forms.TextBox PasswordLoginBox;
|
||||
private System.Windows.Forms.Label LoginLabel;
|
||||
private System.Windows.Forms.Button LoginButton;
|
||||
private System.Windows.Forms.Label EmailLabel;
|
||||
private System.Windows.Forms.Label PasswordLabel;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace db_AI_4
|
||||
{
|
||||
public partial class LoginForm : Form
|
||||
{
|
||||
|
||||
public LoginForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
private void RegistrationButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataAccess db = new DataAccess();
|
||||
GetMembers.email_address = EmailLoginBox.Text;
|
||||
GetMembers.password = PasswordLoginBox.Text;
|
||||
db.InsertMember(GetMembers.email_address, GetMembers.password);
|
||||
MessageBox.Show("Member Registered.");
|
||||
}
|
||||
|
||||
private void LoginButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataAccess db = new DataAccess();
|
||||
|
||||
GetMembers.email_address = EmailLoginBox.Text;
|
||||
GetMembers.password = PasswordLoginBox.Text;
|
||||
db.CheckLogin(GetMembers.email_address, GetMembers.password);
|
||||
|
||||
}
|
||||
|
||||
private void LoginForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace db___demo__app
|
||||
namespace db_AI_4
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ namespace db___demo__app
|
|||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new StartPage());
|
||||
Application.Run(new LoginForm());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("db-appLibary")]
|
||||
[assembly: AssemblyTitle("db_AI-4")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("db-appLibary")]
|
||||
[assembly: AssemblyProduct("db_AI-4")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
|
|||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("d917f26e-cde7-4bd3-ba68-6a3299cf8c5a")]
|
||||
[assembly: Guid("b692de45-80b1-45ca-b519-81639ca9c0ba")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
|
@ -8,7 +8,7 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace db___demo__app.Properties
|
||||
namespace db_AI_4.Properties
|
||||
{
|
||||
|
||||
|
||||
|
@ -44,7 +44,7 @@ namespace db___demo__app.Properties
|
|||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("db___demo__app.Properties.Resources", typeof(Resources).Assembly);
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("db_AI_4.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
|
@ -8,7 +8,7 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace db___demo__app.Properties
|
||||
namespace db_AI_4.Properties
|
||||
{
|
||||
|
||||
|
|
@ -4,10 +4,10 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{261F26CE-187C-4104-8EF7-8556F942C601}</ProjectGuid>
|
||||
<ProjectGuid>{B692DE45-80B1-45CA-B519-81639CA9C0BA}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>db___demo__app</RootNamespace>
|
||||
<AssemblyName>db - demo -app</AssemblyName>
|
||||
<RootNamespace>db_AI_4</RootNamespace>
|
||||
<AssemblyName>db_AI-4</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
|
@ -32,8 +32,11 @@
|
|||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Dapper, Version=1.50.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapper.1.50.2\lib\net451\Dapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
|
@ -46,19 +49,30 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="dataAccess.cs" />
|
||||
<Compile Include="helper.cs" />
|
||||
<Compile Include="locations.cs" />
|
||||
<Compile Include="StartPage.cs">
|
||||
<Compile Include="Dashboard.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StartPage.Designer.cs">
|
||||
<DependentUpon>StartPage.cs</DependentUpon>
|
||||
<Compile Include="Dashboard.Designer.cs">
|
||||
<DependentUpon>Dashboard.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DataAccess.cs" />
|
||||
<Compile Include="GetLocations.cs" />
|
||||
<Compile Include="GetMembers.cs" />
|
||||
<Compile Include="GetRents.cs" />
|
||||
<Compile Include="Helper.cs" />
|
||||
<Compile Include="LoginForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="LoginForm.Designer.cs">
|
||||
<DependentUpon>LoginForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="StartPage.resx">
|
||||
<DependentUpon>StartPage.cs</DependentUpon>
|
||||
<EmbeddedResource Include="Dashboard.resx">
|
||||
<DependentUpon>Dashboard.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="LoginForm.resx">
|
||||
<DependentUpon>LoginForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
|
@ -69,6 +83,7 @@
|
|||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
@ -80,7 +95,9 @@
|
|||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="App.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26403.7
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "db-appUI", "db - demo -app\db-appUI.csproj", "{261F26CE-187C-4104-8EF7-8556F942C601}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "db_AI-4", "db_AI-4\db_AI-4.csproj", "{B692DE45-80B1-45CA-B519-81639CA9C0BA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -11,10 +11,10 @@ Global
|
|||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{261F26CE-187C-4104-8EF7-8556F942C601}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{261F26CE-187C-4104-8EF7-8556F942C601}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{261F26CE-187C-4104-8EF7-8556F942C601}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{261F26CE-187C-4104-8EF7-8556F942C601}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B692DE45-80B1-45CA-B519-81639CA9C0BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B692DE45-80B1-45CA-B519-81639CA9C0BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B692DE45-80B1-45CA-B519-81639CA9C0BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B692DE45-80B1-45CA-B519-81639CA9C0BA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26403.7
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "marketconnectionNET", "marketconnectionNET\marketconnectionNET.csproj", "{25F26283-2288-4C4B-AAD1-4AB3453F7752}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="marketdb" connectionString="Server=.\Data Source=DESKTOP-HBRKIL2;Initial Catalog=marketdb;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
|
@ -1,86 +0,0 @@
|
|||
namespace marketconnectionNET
|
||||
{
|
||||
partial class Dashboard
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.locationbox = new System.Windows.Forms.ListBox();
|
||||
this.LocationName = new System.Windows.Forms.TextBox();
|
||||
this.search = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// locationbox
|
||||
//
|
||||
this.locationbox.FormattingEnabled = true;
|
||||
this.locationbox.ItemHeight = 16;
|
||||
this.locationbox.Location = new System.Drawing.Point(12, 79);
|
||||
this.locationbox.Name = "locationbox";
|
||||
this.locationbox.Size = new System.Drawing.Size(120, 84);
|
||||
this.locationbox.TabIndex = 0;
|
||||
//
|
||||
// LocationName
|
||||
//
|
||||
this.LocationName.Location = new System.Drawing.Point(12, 28);
|
||||
this.LocationName.Name = "LocationName";
|
||||
this.LocationName.Size = new System.Drawing.Size(100, 22);
|
||||
this.LocationName.TabIndex = 1;
|
||||
this.LocationName.Text = "LocationName";
|
||||
this.LocationName.Click += new System.EventHandler(this.search_Click);
|
||||
this.LocationName.TextChanged += new System.EventHandler(this.search_Click);
|
||||
//
|
||||
// search
|
||||
//
|
||||
this.search.Location = new System.Drawing.Point(139, 139);
|
||||
this.search.Name = "search";
|
||||
this.search.Size = new System.Drawing.Size(75, 23);
|
||||
this.search.TabIndex = 2;
|
||||
this.search.Text = "search";
|
||||
this.search.UseVisualStyleBackColor = true;
|
||||
this.search.Click += new System.EventHandler(this.search_Click);
|
||||
//
|
||||
// Dashboard
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(506, 278);
|
||||
this.Controls.Add(this.search);
|
||||
this.Controls.Add(this.LocationName);
|
||||
this.Controls.Add(this.locationbox);
|
||||
this.Name = "Dashboard";
|
||||
this.Text = "CastStudy";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox locationbox;
|
||||
private System.Windows.Forms.TextBox LocationName;
|
||||
private System.Windows.Forms.Button search;
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace marketconnectionNET
|
||||
{
|
||||
public partial class Dashboard : Form
|
||||
{
|
||||
List<cities> city = new List<cities>();
|
||||
public Dashboard()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
UpdateBinding();
|
||||
|
||||
}
|
||||
|
||||
private void UpdateBinding()
|
||||
{
|
||||
locationbox.DataSource = city;
|
||||
locationbox.DisplayMember = "FullInfo";
|
||||
}
|
||||
|
||||
private void search_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataaccess db = new dataaccess();
|
||||
|
||||
city = db.GetLocations(LocationName.Text);
|
||||
|
||||
UpdateBinding();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("marketconnectionNET")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("marketconnectionNET")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("25f26283-2288-4c4b-aad1-4ab3453f7752")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="c:\program files (x86)\microsoft visual studio\2017\enterprise\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
|
||||
<FxCopReport Version="15.0">
|
||||
<Targets>
|
||||
<Target Name="C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe">
|
||||
<Modules>
|
||||
<Module Name="marketconnectionnet.exe">
|
||||
<Messages>
|
||||
<Message TypeName="MarkWindowsFormsEntryPointsWithStaThread" Category="Microsoft.Usage" CheckId="CA2232" Status="Active" Created="2017-07-12 21:04:50Z" FixCategory="NonBreaking">
|
||||
<Issue Certainty="95" Level="Error" Path="C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET" File="Programm.cs" Line="12">Mark the entry point method 'Programm.Main(string[])' in assembly 'marketconnectionNET.exe' with an STAThreadAttribute.</Issue>
|
||||
</Message>
|
||||
</Messages>
|
||||
</Module>
|
||||
</Modules>
|
||||
</Target>
|
||||
</Targets>
|
||||
<Rules>
|
||||
<Rule TypeName="MarkWindowsFormsEntryPointsWithStaThread" Category="Microsoft.Usage" CheckId="CA2232">
|
||||
<Name>Mark Windows Forms entry points with STAThread</Name>
|
||||
<Description>Assemblies that reference System.Windows.Forms should have the STAThreadAttribute. Failure to apply this attribute will most likely result in an application that does not work. Windows Forms relies on a number of components that use the STA model.</Description>
|
||||
<Resolution Name="Default">Mark the entry point method {0} in assembly {1} with an STAThreadAttribute.</Resolution>
|
||||
<Owner />
|
||||
<Url>http://msdn.microsoft.com/library/ms182351.aspx</Url>
|
||||
<Email>[none]</Email>
|
||||
<MessageLevel Certainty="95">Error</MessageLevel>
|
||||
<File Name="usagerules.dll" Version="15.0.0.0" />
|
||||
</Rule>
|
||||
</Rules>
|
||||
<Localized>
|
||||
<String Key="Category">Category</String>
|
||||
<String Key="Certainty">Certainty</String>
|
||||
<String Key="CollapseAll">Collapse All</String>
|
||||
<String Key="CheckId">Check Id</String>
|
||||
<String Key="Error">Error</String>
|
||||
<String Key="Errors">error(s)</String>
|
||||
<String Key="ExpandAll">Expand All</String>
|
||||
<String Key="Help">Help</String>
|
||||
<String Key="Line">Line</String>
|
||||
<String Key="Messages">message(s)</String>
|
||||
<String Key="LocationNotStoredInPdb">[Location not stored in Pdb]</String>
|
||||
<String Key="Project">Project</String>
|
||||
<String Key="Resolution">Resolution</String>
|
||||
<String Key="Rule">Rule</String>
|
||||
<String Key="RuleFile">Rule File</String>
|
||||
<String Key="RuleDescription">Rule Description</String>
|
||||
<String Key="Source">Source</String>
|
||||
<String Key="Status">Status</String>
|
||||
<String Key="Target">Target</String>
|
||||
<String Key="Warning">Warning</String>
|
||||
<String Key="Warnings">warning(s)</String>
|
||||
<String Key="ReportTitle">Code Analysis Report</String>
|
||||
</Localized>
|
||||
</FxCopReport>
|
|
@ -1,26 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace marketconnectionNET
|
||||
{
|
||||
public class cities
|
||||
{
|
||||
public int city_id { get; set; }
|
||||
public string city_name { get; set; }
|
||||
public int zip_code { get; set; }
|
||||
|
||||
|
||||
|
||||
public string FullInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"{ city_name } { zip_code } ";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Dapper;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace marketconnectionNET
|
||||
{
|
||||
public class dataaccess
|
||||
{
|
||||
|
||||
public List<cities> GetLocations(string LocationName)
|
||||
{
|
||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(helper.CnnVal("marketdb")))
|
||||
{
|
||||
|
||||
var output = connection.Query<cities> ($"select * from cities where city_name = '{ LocationName }'").ToList();
|
||||
return output;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{25F26283-2288-4C4B-AAD1-4AB3453F7752}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>marketconnectionNET</RootNamespace>
|
||||
<AssemblyName>marketconnectionNET</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
<Reference Include="Dapper, Version=1.50.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Dapper.1.50.2\lib\net451\Dapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Dashboard.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Dashboard.Designer.cs">
|
||||
<DependentUpon>Dashboard.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="dataaccess.cs" />
|
||||
<Compile Include="helper.cs" />
|
||||
<Compile Include="cities.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Dashboard.resx">
|
||||
<DependentUpon>Dashboard.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -1,16 +0,0 @@
|
|||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.pdb
|
||||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.pdb
|
||||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\Dapper.dll
|
||||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\Dapper.xml
|
||||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.Dashboard.resources
|
||||
C:\Users\Ismail\documents\visual studio 2017\Projects\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.csproj.GenerateResource.Cache
|
||||
C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe.config
|
||||
C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe
|
||||
C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.exe
|
||||
C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe.CodeAnalysisLog.xml
|
||||
C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe.lastcodeanalysissucceeded
|
||||
F:\db_AI-4\csharp\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.csprojResolveAssemblyReference.cache
|
||||
F:\db_AI-4\csharp\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.Dashboard.resources
|
||||
F:\db_AI-4\csharp\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.csproj.GenerateResource.Cache
|
||||
F:\db_AI-4\csharp\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.exe
|
||||
F:\db_AI-4\csharp\marketconnectionNET\marketconnectionNET\obj\Debug\marketconnectionNET.pdb
|
|
@ -0,0 +1,21 @@
|
|||
\message{ !name(main.tex)}\documentclass[a4paper, 11pt]{article}
|
||||
\include{style}
|
||||
%\include{glossary}
|
||||
\begin{document}
|
||||
|
||||
\message{ !name(content.tex) !offset(12) }
|
||||
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=0.9\textwidth]{diagrammes/stakeholder.png}
|
||||
\label{fig:test}
|
||||
\message{ !name(main.tex) !offset(21) }
|
||||
|
||||
\end{document}
|
||||
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: t
|
||||
%%% End:
|
80
doku/bib.bib
|
@ -1 +1,81 @@
|
|||
@misc{dbcs1,
|
||||
Day = {24},
|
||||
Month = {05},
|
||||
Note = {\url{https://stackoverflow.com/questions/10740293/insert-an-insertion-date-value-into-a-sql-table-automatically}},
|
||||
Urldate = {2017-07-24},
|
||||
author = {Wheat Mitch},
|
||||
title = {Insert an {``}insertion date{''} value into a SQL table automatically?},
|
||||
year = {2012},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs2,
|
||||
Day = {20},
|
||||
Month = {07},
|
||||
Note = {\url{http://excel2latex.com/}},
|
||||
Urldate = {2017-07-24},
|
||||
author = {Wood Eric},
|
||||
title = {excel => LaTeX},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs3,
|
||||
Day = {26},
|
||||
Month = {07},
|
||||
Note = {\url{https://tex.stackexchange.com/questions/133/how-can-i-make-a-table-that-takes-up-more-than-a-single-page}},
|
||||
Urldate = {2017-07-24},
|
||||
author = {Vanden},
|
||||
title = {How can I make a table that takes up more than a single page?},
|
||||
year = {2010},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs4,
|
||||
Note = {\url{http://www.personal.ceu.hu/tex/footnote.htm}},
|
||||
Urldate = {2017-07-24},
|
||||
author = {Central European University},
|
||||
title = {LaTeX Footnotes},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs5,
|
||||
Day = {28},
|
||||
Month = {02},
|
||||
Note = {\url{https://iamtimcorey.com/csharp-sql-data-access/}},
|
||||
author = {Tim Corey},
|
||||
title = {C\# Data Access: SQL Database},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs6,
|
||||
Day = {20},
|
||||
Month = {07},
|
||||
Note = {\url{https://github.com/StackExchange/Dapper}},
|
||||
author = {StackExchange},
|
||||
title = {Dapper - a simple object mapper for .Net},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs7,
|
||||
Day = {{27}},
|
||||
month = {{08}},
|
||||
note = {\url{{https://de.wikipedia.org/wiki/Anwendungsfalldiagramm}}},
|
||||
author = {Wikipedia},
|
||||
title = {{Anwendungsfalldiagramm {--} Wikipedia}},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
||||
@misc{dbcs8,
|
||||
Day = {{27}},
|
||||
month = {{08}},
|
||||
note = {\url{{https://de.wikipedia.org/wiki/Anwendungsfall}}},
|
||||
author = {Wikipedia},
|
||||
title = {{Anwendungsfall {--} Wikipedia}},
|
||||
year = {2017},
|
||||
tags = "db_case-study"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,217 @@
|
|||
#+OPTIONS n\:t
|
||||
| Identifier + Name | 1.0 User Registrierung |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Description | Der Use Case beschreibt die Registrierung |
|
||||
| | eines neuen User Accounts. |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Actors | User |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Status | Freigegeben |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Includes | - |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Trigger | User möchte sich registrieren. |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Preconditions | - |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Postconditions | User hat sich einen Account erstellt. |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Normal Flow | 1. User startet Registrierung |
|
||||
| | 2. User füllt Form aus |
|
||||
| | 3. User schliesst Registrierung ab |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Alternative Flow | 1. User startet Registrierung |
|
||||
| | 2. User füllt Form mit bereits vorhandener |
|
||||
| | Email Adresse aus. |
|
||||
| | 3. Applikation gibt Fehler aus |
|
||||
| | 4. User verwendet einzigartige Email Adresse |
|
||||
| | 5. User schliesst Registrierung ab |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Notes | - |
|
||||
|-------------------+----------------------------------------------|
|
||||
| UC History | 1.0 Darft erstellt durch AZ |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Author | A. Zweili & I. Cadaroski |
|
||||
|-------------------+----------------------------------------------|
|
||||
| Date | 20. Juli 2017 |
|
||||
|-------------------+----------------------------------------------|
|
||||
|
||||
|
||||
| Identifier + Name | 1.1 User Login |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Description | Der Use Case beschreibt den Login eines |
|
||||
| | Users. |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Actors | User |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Status | Freigegeben |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Includes | - |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Trigger | User möchte sich einloggen |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Preconditions | UC 1.0 erfolgreich abgeschlossen |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Postconditions | User befindet sich im geschützten Bereich. |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Normal Flow | 1. User füllt Login Form korrekt aus |
|
||||
| | 2. User quittiert Login |
|
||||
| | 3. Applikation wechselt zum geschützen Bereich |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Alternative Flow | 1. User füllt Login Form mit falschen |
|
||||
| | Angaben aus |
|
||||
| | 2. Applikation gibt einen Error aus |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Notes | - |
|
||||
|-------------------+------------------------------------------------|
|
||||
| UC History | 1.0 Darft erstellt durch AZ |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Author | A. Zweili & I. Cadaroski |
|
||||
|-------------------+------------------------------------------------|
|
||||
| Date | 20. Juli 2017 |
|
||||
|-------------------+------------------------------------------------|
|
||||
|
||||
| Identifier + Name | 2.0 Standorte anzeigen |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Description | Der Use Case beschreibt das Betrachten der |
|
||||
| | Standorte. |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Actors | User |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Status | Freigegeben |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Includes | - |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Trigger | User möchte Standort Details einsehen. |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Preconditions | UC 1.1 erfolgreich abgeschlossen |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Postconditions | Applikation gibt passende Werte aus. |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Normal Flow | 1. User gibt einen Suchbegriff ein |
|
||||
| | 2. Die Applikation gibt ihm eine Liste mit |
|
||||
| | Standorten aus welche zu dem Suchbegriff |
|
||||
| | passen. |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Alternative Flow | - |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Notes | - |
|
||||
|-------------------+--------------------------------------------|
|
||||
| UC History | 1.0 Darft erstellt durch AZ |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Author | A. Zweili & I. Cadaroski |
|
||||
|-------------------+--------------------------------------------|
|
||||
| Date | 20. Juli 2017 |
|
||||
|-------------------+--------------------------------------------|
|
||||
|
||||
| Identifier + Name | 2.1 Standort mieten |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Description | Der Use Case beschreibt das mieten der |
|
||||
| | Standorte als Test Member. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Actors | User mit test_member Status |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Status | Freigegeben |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Includes | - |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Trigger | |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Preconditions | UC 1.1 und 2.0 erfolgreich abgeschlossen |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Postconditions | Miete wurde erfolgreich in DB eingetragen. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Normal Flow | 1. User wählt einen Standort aus |
|
||||
| | 2. User wählt das Datum aus an dem er den |
|
||||
| | Standort gerne mieten möchte. |
|
||||
| | 3. User bestätigt die Miete mit klick auf |
|
||||
| | den Insert Button. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Alternative Flow | 1. User wählt einen Standort aus |
|
||||
| | 2. User wählt das Datum an dem er den |
|
||||
| | Standort gerne mieten möchte. |
|
||||
| | 3. User bestätigt die Miete mit klick auf |
|
||||
| | den Insert Button. |
|
||||
| | 4. Die Applikation meldet zurück das der |
|
||||
| | Standort an diesem Datum bereits besetzt ist. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Notes | - |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| UC History | 1.0 Darft erstellt durch AZ |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Author | A. Zweili & I. Cadaroski |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Date | 27. Juli 2017 |
|
||||
|-------------------+-----------------------------------------------|
|
||||
|
||||
| Identifier + Name | 2.2 Mieten anzeigen |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Description | Der Use Case beschreibt das Betrachten der |
|
||||
| | getätigten Mieten des aktuellen Users. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Actors | User mit test_member Status |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Status | Freigegeben |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Includes | - |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Trigger | User möchte sich seine Mieten anzeigen lassen |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Preconditions | UC 1.1, 2.1 erfolgreich abgeschlossen |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Postconditions | Applikation gibt die Mieten des aktuellen |
|
||||
| | Users aus. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Normal Flow | 1. User klickt auf "update" |
|
||||
| | 2. Die Applikation gibt die Details zu den |
|
||||
| | Mieten des Users aus. |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Alternative Flow | - |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Notes | - |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| UC History | 1.0 Darft erstellt durch AZ |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Author | A. Zweili & I. Cadaroski |
|
||||
|-------------------+-----------------------------------------------|
|
||||
| Date | 27. Juli 2017 |
|
||||
|-------------------+-----------------------------------------------|
|
||||
|
||||
|
||||
| Testcase | Objective | Precondition | Steps | Testdata | Expected | Postcondition | Result |
|
||||
| ID | | | | | Result | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-01 | Registrierung am System | | 1. Öffnen des Programms | Username: maxmuster@gmail.com | Erfolgreiche | User registriert | Am Anfang |
|
||||
| | | | 2. Eingeben des Usernamens | Passwort: 123456 | Registrierung | | fehlte noch |
|
||||
| | | | 3. Eingeben des Passworts | | | | eine Catch |
|
||||
| | | | 4. Klicken des "Register" | | | | Funktion was |
|
||||
| | | | Knopf | | | | die Applikation |
|
||||
| | | | | | | | zum abstürzen |
|
||||
| | | | | | | | brachte. |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-02 | Registrierung am System | TC-01 ausgeführt. | 1. Öffnen des Programms | | | | |
|
||||
| | | | 2. Eingeben des Usernamens | | | | |
|
||||
| | | | 3. Eingeben des Passworts | | | | |
|
||||
| | | | 4. Klicken des "Register" | | | | |
|
||||
| | | | Knopf | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-03 | Anmeldung am System | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-04 | Anmeldung am System | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-05 | Anmeldung am System | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-06 | Standorte anzeigen | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-07 | Standort mieten | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-08 | Mieten anzeigen | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-09 | | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-10 | | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-11 | | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
||||
| TC-12 | | | | | | | |
|
||||
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
|
1048
doku/content.tex
After Width: | Height: | Size: 54 KiB |
|
@ -0,0 +1,14 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class Dashboard {
|
||||
+ Dashboard()
|
||||
- void UpdateBinding()
|
||||
- void LocationSearchButton_Click()
|
||||
- void LocationInsertButton_Click()
|
||||
- void RentInsertButton_Click()
|
||||
- void Dashboard_Load()
|
||||
- void ShowRentButton_Click()
|
||||
- void ShowRentListBox_SelectedIndexChanged()
|
||||
- void LoggedInUser_Click()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 42 KiB |
|
@ -0,0 +1,12 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class DataAccess {
|
||||
+ SqlConnection connection
|
||||
+ List<GetLocations> GetLocations()
|
||||
+ void CurrentUser()
|
||||
+ void InsertRent()
|
||||
+ void InsertMember()
|
||||
# List<GetRents> GetRentedLocations()
|
||||
+ void CheckLogin()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 34 KiB |
|
@ -0,0 +1,13 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class Beispiel {
|
||||
+ public Attribute
|
||||
~ internal Attribute
|
||||
- private AttribuTe
|
||||
# protected Attribute
|
||||
+ public Method1()
|
||||
~ internal Method2()
|
||||
- private Method3()
|
||||
# protected Method4()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 28 KiB |
|
@ -0,0 +1,11 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class GetLocations {
|
||||
+ int location_id
|
||||
+ string streetname
|
||||
+ int location_capacity
|
||||
+ string location_name
|
||||
+ int rent_price_id
|
||||
+ string LocatinInfo()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,11 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class GetMembers {
|
||||
+ int member_id
|
||||
+ string email_address
|
||||
+ string password
|
||||
+ int member_status_id
|
||||
+ string MemberInfo()
|
||||
+ string MemberID()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 45 KiB |
|
@ -0,0 +1,17 @@
|
|||
@startuml
|
||||
skinparam dpi 300
|
||||
class GetRents {
|
||||
+ int rent_id
|
||||
+ string rent_date
|
||||
+ string payment_date
|
||||
+ int member_id
|
||||
+ string email_address
|
||||
+ int rent_price_id
|
||||
+ int rent_price
|
||||
+ int location_id
|
||||
+ string streetname
|
||||
+ int location_capacity
|
||||
+ string location_name
|
||||
+ string RentInfo()
|
||||
}
|
||||
@enduml
|
After Width: | Height: | Size: 23 KiB |