Commit 60ca028b authored by Parth Kamani's avatar Parth Kamani
Browse files

Uploaded Prototype to Git

parent 2b9f252d
Pipeline #419 canceled with stages
# Vehicle Insurance Sales
Assignment 3: Artifacts of Inception
Uploaded Prototype
\ No newline at end of file
Group Number: 17
Assignment: Artifacts of Inception
Prototype: Vehicle Insurance Sales
Members: Parth Kamani, Urvish Tank, Riya Patel, Abhinand Pandya
**NOTE: All type of data which are used for visualization are static data.
No data can be added or edited or deleted. Different Users have different
existing customer list. Admin has all existing Customer list.
Login Page: 3 types of users
1. Username: admin Password: admin
2. Username: user1 Password: user1
3. Username: user2 Password: user2
Menu: There are 6 option user can perform operations
1. Manage Customer
2. Potential Client
3. View Sales Reports
4. Edit Profile
5. Manage Employee
6. Logout
1. Manage Customers: Manage existing customer, Search, Print option for
printing list, Add operation to add new customer, and data grid contains
View/Edit that will show complete details about Customer and vehicle
details which can be deleted or updated.
2. Potential Client: Managing list of future customer and those who can
bring business to organization. Search, Print option for printing list, Add
operation to add new potential client, and data grid contains information
potential client and only potential client can be added as customer,
dealers can be only contacted.
3. View Sales Report: Sales report is generated from last 5 years total
sales in bar chart, and different Purchase channel is shown in Doughnut
chart of overall sales, if any bar chart year element is clicked on bar
chart than doughnut chart will get updated with selected value and show the
particular selected year purchase channel sales. it can also be printed by
clicking on print.
4. Edit Profile: Edit profile will show a new form saying update values.
5. Manage Employee: Managing list of employees. Search, Print option for
printing list, Add operation to add new potential client, and data grid
contains information about Employee.
6. Logout: Logout will end all current process and will ask for re-login.
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApplication1", "WindowsFormsApplication1\WindowsFormsApplication1.csproj", "{8EC0B65E-56F7-47D5-B354-998EEEC675E9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8EC0B65E-56F7-47D5-B354-998EEEC675E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EC0B65E-56F7-47D5-B354-998EEEC675E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EC0B65E-56F7-47D5-B354-998EEEC675E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EC0B65E-56F7-47D5-B354-998EEEC675E9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication1
{
public class DataGrid1
{
public String c_id{ get;set; }
public String c_name { get; set; }
public String c_i_no { get; set; }
public String c_p_no { get; set; }
public String c_e_id { get; set; }
public String c_addr { get; set; }
public String v_no { get; set; }
public String v_model { get; set; }
public String v_c_no { get; set; }
public String v_p_d { get; set; }
public String v_m_d { get; set; }
public String v_pre { get; set; }
public String v_val { get; set; }
public String v_i_type { get; set; }
public String v_i_d { get; set; }
public String v_type { get; set; }
public String v_brand { get; set; }
public String e_id { get; set; }
public String c_f_a { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication1
{
public class DataGrid2
{
public String c_name { get; set; }
public String c_type { get; set; }
public String c_p_no { get; set; }
public String c_e_id { get; set; }
public String c_f_con { get; set; }
public String c_addr { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication1
{
public class DataGrid3
{
public String e_id { get; set; }
public String e_uname { get; set; }
public String e_pass { get; set; }
public String e_name { get; set; }
}
}
namespace WindowsFormsApplication1
{
partial class Menu
{
/// <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.s_report = new System.Windows.Forms.Button();
this.p_client = new System.Windows.Forms.Button();
this.m_emp = new System.Windows.Forms.Button();
this.edit_pro = new System.Windows.Forms.Button();
this.m_customer = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// s_report
//
this.s_report.FlatAppearance.BorderSize = 0;
this.s_report.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.s_report.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.s_report.ForeColor = System.Drawing.Color.DarkRed;
this.s_report.Location = new System.Drawing.Point(412, 0);
this.s_report.Name = "s_report";
this.s_report.Size = new System.Drawing.Size(205, 140);
this.s_report.TabIndex = 2;
this.s_report.Text = "View Sales Report";
this.s_report.UseVisualStyleBackColor = true;
this.s_report.Click += new System.EventHandler(this.s_report_Click);
//
// p_client
//
this.p_client.FlatAppearance.BorderSize = 0;
this.p_client.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.p_client.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.p_client.ForeColor = System.Drawing.Color.DarkRed;
this.p_client.Location = new System.Drawing.Point(206, 0);
this.p_client.Name = "p_client";
this.p_client.Size = new System.Drawing.Size(205, 140);
this.p_client.TabIndex = 1;
this.p_client.Text = "Potential Client";
this.p_client.UseVisualStyleBackColor = true;
this.p_client.Click += new System.EventHandler(this.p_client_Click);
//
// m_emp
//
this.m_emp.FlatAppearance.BorderSize = 0;
this.m_emp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.m_emp.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.m_emp.ForeColor = System.Drawing.Color.DarkRed;
this.m_emp.Location = new System.Drawing.Point(206, 141);
this.m_emp.Name = "m_emp";
this.m_emp.Size = new System.Drawing.Size(205, 140);
this.m_emp.TabIndex = 5;
this.m_emp.Text = "Manage Employee";
this.m_emp.UseVisualStyleBackColor = true;
this.m_emp.Visible = false;
this.m_emp.Click += new System.EventHandler(this.m_emp_Click);
//
// edit_pro
//
this.edit_pro.FlatAppearance.BorderSize = 0;
this.edit_pro.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.edit_pro.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.edit_pro.ForeColor = System.Drawing.Color.DarkRed;
this.edit_pro.Location = new System.Drawing.Point(417, 141);
this.edit_pro.Name = "edit_pro";
this.edit_pro.Size = new System.Drawing.Size(205, 140);
this.edit_pro.TabIndex = 4;
this.edit_pro.Text = "logout";
this.edit_pro.UseVisualStyleBackColor = true;
this.edit_pro.Click += new System.EventHandler(this.edit_pro_Click);
//
// m_customer
//
this.m_customer.FlatAppearance.BorderSize = 0;
this.m_customer.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.m_customer.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.m_customer.ForeColor = System.Drawing.Color.DarkRed;
this.m_customer.Location = new System.Drawing.Point(0, 0);
this.m_customer.Name = "m_customer";
this.m_customer.Size = new System.Drawing.Size(205, 140);
this.m_customer.TabIndex = 0;
this.m_customer.Text = "Manage Customer ";
this.m_customer.UseVisualStyleBackColor = true;
this.m_customer.Click += new System.EventHandler(this.m_customer_Click);
//
// button1
//
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Courier New", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.DarkRed;
this.button1.Location = new System.Drawing.Point(0, 141);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(205, 140);
this.button1.TabIndex = 3;
this.button1.Text = "Edit Profile";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 208);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 13);
this.label1.TabIndex = 7;
this.label1.Visible = false;
//
// Menu
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(620, 284);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.m_customer);
this.Controls.Add(this.edit_pro);
this.Controls.Add(this.m_emp);
this.Controls.Add(this.p_client);
this.Controls.Add(this.s_report);
this.MaximizeBox = false;
this.Name = "Menu";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Menu";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button s_report;
private System.Windows.Forms.Button p_client;
private System.Windows.Forms.Button m_emp;
private System.Windows.Forms.Button edit_pro;
private System.Windows.Forms.Button m_customer;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
}
}
\ No newline at end of file
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 WindowsFormsApplication1
{
public partial class Menu : Form
{
public Menu()
{
InitializeComponent();
}
public Menu(String a)
{
InitializeComponent();
label1.Text = a;
if (a == "admin")
{
m_emp.Visible = true;
}
}
private void m_customer_Click(object sender, EventArgs e)
{
this.Hide();
m_customers c = new m_customers(label1.Text);
c.ShowDialog();
}
private void m_emp_Click(object sender, EventArgs e)
{
this.Hide();
m_emp m = new m_emp(label1.Text);
m.ShowDialog();
}
private void edit_pro_Click(object sender, EventArgs e)
{
label1.Text = "";
this.Hide();
Start s = new Start();
s.ShowDialog();
}
private void button1_Click(object sender, EventArgs e)
{
e_pro e1 = new e_pro();
e1.ShowDialog();
}
private void p_client_Click(object sender, EventArgs e)
{
this.Hide();
p_client m = new p_client(label1.Text);
m.ShowDialog();
}
private void s_report_Click(object sender, EventArgs e)
{
this.Hide();
sale_graph g = new sale_graph(label1.Text);
g.ShowDialog();
}
}
}
<?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>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Start());
}
}
}
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("WindowsFormsApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WindowsFormsApplication1")]