├── README.md ├── Stock_Management ├── StockmgtDataSet.xsc ├── StockmgtDataSet.xss ├── obj │ └── Debug │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── Stock_Management.exe │ │ ├── Stock_Management.pdb │ │ ├── Stock_Management.Brand.resources │ │ ├── Stock_Management.Item.resources │ │ ├── Stock_Management.Login.resources │ │ ├── Stock_Management.Sale.resources │ │ ├── Stock_Management.Category.resources │ │ ├── Stock_Management.Customer.resources │ │ ├── Stock_Management.Purchase.resources │ │ ├── Stock_Management.SignUp.resources │ │ ├── Stock_Management.Vendor.resources │ │ ├── Stock_Management.Main_Page.resources │ │ ├── TempPE │ │ ├── StockmgtDataSet.Designer.cs.dll │ │ └── Properties.Resources.Designer.cs.dll │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── Stock_Management.Properties.Resources.resources │ │ ├── Stock_Management.csproj.GenerateResource.Cache │ │ └── Stock_Management.csprojResolveAssemblyReference.cache ├── Resources │ ├── save.png │ ├── twitter.png │ ├── in-transit.png │ ├── in-transit1.png │ ├── in-transit2.png │ ├── in-transit3.png │ ├── home-page (1).png │ ├── administrator-male.png │ ├── shopping-cart (4).png │ └── Custom-Icon-Design-Flatastic-5-Product-sale-report.ico ├── bin │ └── Debug │ │ ├── LiveCharts.dll │ │ ├── LiveCharts.pdb │ │ ├── LiveCharts.Wpf.dll │ │ ├── LiveCharts.Wpf.pdb │ │ ├── MetroFramework.dll │ │ ├── Stock_Management.exe │ │ ├── Stock_Management.pdb │ │ ├── LiveCharts.WinForms.dll │ │ ├── LiveCharts.WinForms.pdb │ │ ├── Stock_Management.vshost.exe │ │ ├── Stock_Management.vshost.exe.manifest │ │ ├── Stock_Management.exe.config │ │ └── Stock_Management.vshost.exe.config ├── Stock_Management.csproj.user ├── Product.cs ├── App.config ├── Program.cs ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Product.Designer.cs ├── SignUp.cs ├── Login.cs ├── Item.cs ├── Vendor.cs ├── Brand.cs ├── Category.cs ├── SignUp.resx ├── Vendor.resx ├── Customer.cs ├── Brand.resx ├── Stock_Management.csproj ├── Login.Designer.cs ├── Category.Designer.cs ├── Login.resx ├── Sale.cs ├── Purchase.cs ├── Item.resx ├── Category.resx ├── SignUp.Designer.cs ├── Main page.cs └── Purchase.resx ├── .vs └── Stock_Management │ └── v14 │ └── .suo └── Stock_Management.sln /README.md: -------------------------------------------------------------------------------- 1 | # Stock-mgt -------------------------------------------------------------------------------- /Stock_Management/StockmgtDataSet.xsc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Stock_Management/StockmgtDataSet.xss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.vs/Stock_Management/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/.vs/Stock_Management/v14/.suo -------------------------------------------------------------------------------- /Stock_Management/Resources/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/save.png -------------------------------------------------------------------------------- /Stock_Management/Resources/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/twitter.png -------------------------------------------------------------------------------- /Stock_Management/Resources/in-transit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/in-transit.png -------------------------------------------------------------------------------- /Stock_Management/Resources/in-transit1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/in-transit1.png -------------------------------------------------------------------------------- /Stock_Management/Resources/in-transit2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/in-transit2.png -------------------------------------------------------------------------------- /Stock_Management/Resources/in-transit3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/in-transit3.png -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.dll -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.pdb -------------------------------------------------------------------------------- /Stock_Management/Resources/home-page (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/home-page (1).png -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.Wpf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.Wpf.dll -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.Wpf.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.Wpf.pdb -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/MetroFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/MetroFramework.dll -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/Stock_Management.exe -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/Stock_Management.pdb -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.exe -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.pdb -------------------------------------------------------------------------------- /Stock_Management/Resources/administrator-male.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/administrator-male.png -------------------------------------------------------------------------------- /Stock_Management/Resources/shopping-cart (4).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/shopping-cart (4).png -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.WinForms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.WinForms.dll -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/LiveCharts.WinForms.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/LiveCharts.WinForms.pdb -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/bin/Debug/Stock_Management.vshost.exe -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Brand.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Brand.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Item.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Item.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Login.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Login.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Sale.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Sale.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Category.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Category.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Customer.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Customer.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Purchase.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Purchase.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.SignUp.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.SignUp.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Vendor.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Vendor.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Main_Page.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Main_Page.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/TempPE/StockmgtDataSet.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/TempPE/StockmgtDataSet.Designer.cs.dll -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.Properties.Resources.resources -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Stock_Management/Resources/Custom-Icon-Design-Flatastic-5-Product-sale-report.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/Resources/Custom-Icon-Design-Flatastic-5-Product-sale-report.ico -------------------------------------------------------------------------------- /Stock_Management/obj/Debug/Stock_Management.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nasratullah-Shafiq/Stock-mgt/HEAD/Stock_Management/obj/Debug/Stock_Management.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Stock_Management/Stock_Management.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ProjectFiles 5 | 6 | -------------------------------------------------------------------------------- /Stock_Management/Product.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace Stock_Management 12 | { 13 | public partial class Product : Form 14 | { 15 | public Product() 16 | { 17 | InitializeComponent(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Stock_Management/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Stock_Management/bin/Debug/Stock_Management.vshost.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Stock_Management/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace Stock_Management 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Main_Page()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Stock_Management/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <?xml version="1.0" encoding="utf-16"?> 7 | <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 8 | <ConnectionString>Data Source=.;Initial Catalog=Stockmgt;Integrated Security=True</ConnectionString> 9 | <ProviderName>System.Data.SqlClient</ProviderName> 10 | </SerializableConnectionString> 11 | Data Source=.;Initial Catalog=Stockmgt;Integrated Security=True 12 | 13 | 14 | -------------------------------------------------------------------------------- /Stock_Management.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stock_Management", "Stock_Management\Stock_Management.csproj", "{CC487B64-0076-44E5-9893-565B940BAC75}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {CC487B64-0076-44E5-9893-565B940BAC75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {CC487B64-0076-44E5-9893-565B940BAC75}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {CC487B64-0076-44E5-9893-565B940BAC75}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {CC487B64-0076-44E5-9893-565B940BAC75}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Stock_Management/Product.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Stock_Management 2 | { 3 | partial class Product 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 33 | this.Text = "Product"; 34 | } 35 | 36 | #endregion 37 | } 38 | } -------------------------------------------------------------------------------- /Stock_Management/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Stock_Management")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Stock_Management")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("cc487b64-0076-44e5-9893-565b940bac75")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Stock_Management/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Stock_Management.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.ApplicationScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] 29 | [global::System.Configuration.DefaultSettingValueAttribute("Data Source=.;Initial Catalog=Stockmgt;Integrated Security=True")] 30 | public string StockmgtConnectionString { 31 | get { 32 | return ((string)(this["StockmgtConnectionString"])); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Stock_Management/SignUp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | public partial class SignUp : Form 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet d_Set = new DataSet(); 20 | public SignUp() 21 | { 22 | cmd.Connection = con; 23 | d_Adapter.SelectCommand = cmd; 24 | InitializeComponent(); 25 | } 26 | 27 | private void label3_Click(object sender, EventArgs e) 28 | { 29 | 30 | } 31 | 32 | private void btnSignUp_Click(object sender, EventArgs e) 33 | { 34 | con.Open(); 35 | String str = "insert into Login values ("+ txtID.Text+",'"+ txtUsername.Text +"','"+ txtPassword.Text +"','"+ txtName.Text +"','"+ txtEmail.Text +"','"+txtContact.Text +"', '"+ txtAddress.Text +"','"+ txtDescription.Text +"')"; 36 | cmd.CommandText = str; 37 | cmd.ExecuteNonQuery(); 38 | con.Close(); 39 | MessageBox.Show("Sign Up Successfully"); 40 | this.Dispose(); 41 | Login frm = new Login(); 42 | frm.Show(); 43 | } 44 | 45 | private void btnLogin_Click(object sender, EventArgs e) 46 | { 47 | Login frm = new Login(); 48 | frm.Show(); 49 | this.Dispose(); 50 | } 51 | 52 | private void SignUp_Load(object sender, EventArgs e) 53 | { 54 | 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Stock_Management/Login.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | namespace Stock_Management 12 | { 13 | public partial class Login : Form 14 | { 15 | SqlConnection con = new SqlConnection("Data source =.; initial catalog = Stockmgt; integrated security = true;"); 16 | SqlCommand cmd = new SqlCommand(); 17 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 18 | DataSet d_Set = new DataSet(); 19 | DataTable d_Table = new DataTable(); 20 | SqlDataReader Reader; 21 | public Login() 22 | { 23 | cmd.Connection = con; 24 | d_Adapter.SelectCommand = cmd; 25 | InitializeComponent(); 26 | txtPassword.PasswordChar = '*'; 27 | } 28 | 29 | private void button1_Click(object sender, EventArgs e) 30 | { 31 | SignUp frm = new SignUp(); 32 | frm.Show(); 33 | this.Dispose(); 34 | } 35 | 36 | private void button2_Click(object sender, EventArgs e) 37 | { 38 | try 39 | { 40 | con.Open(); 41 | cmd.CommandText = "select * from Login where Username = '" + txtUsername.Text + "' and password = '" + txtPassword.Text + "'"; 42 | 43 | Reader = cmd.ExecuteReader(); 44 | int count = 0; 45 | while (Reader.Read()) 46 | { 47 | count = count + 1; 48 | } 49 | if (count == 1) 50 | { 51 | MessageBox.Show("Wellcome To The Stock Management Database"); 52 | Brand frm = new Brand(); 53 | frm.Show(); 54 | } 55 | 56 | else if (count > 1) 57 | { 58 | MessageBox.Show("Duplicated Username and Password .... Access Denied"); 59 | } 60 | else 61 | MessageBox.Show("Username and Password is Not Correct"); 62 | con.Close(); 63 | } 64 | catch(Exception ex) 65 | { 66 | MessageBox.Show(ex.Message); 67 | } 68 | } 69 | 70 | private void Login_Load(object sender, EventArgs e) 71 | { 72 | 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Stock_Management/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Stock_Management.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Stock_Management.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Stock_Management/Item.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | namespace Stock_Management 12 | { 13 | public partial class Item : Form 14 | { 15 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 16 | SqlCommand cmd = new SqlCommand(); 17 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 18 | DataSet d_Set = new DataSet(); 19 | public Item() 20 | { 21 | cmd.Connection = con; 22 | d_Adapter.SelectCommand = cmd; 23 | InitializeComponent(); 24 | } 25 | void refresh_BrandID() 26 | { 27 | con.Open(); 28 | cmd.CommandText = "select * from Brand"; 29 | d_Adapter.Fill(d_Set, "Brand"); 30 | cmbBrandID.DataSource = d_Set.Tables["Brand"]; 31 | cmbBrandID.DisplayMember = "Brand_Name"; 32 | cmbBrandID.ValueMember = "Brand_ID"; 33 | con.Close(); 34 | } 35 | void DataGrid_Item() 36 | { 37 | con.Open(); 38 | cmd.CommandText = "select * from Viw_Item"; 39 | if (d_Set.Tables.Contains("Item")) 40 | d_Set.Tables["Item"].Clear(); 41 | d_Adapter.Fill(d_Set, "Item"); 42 | dataGridItem.DataSource = d_Set.Tables["Item"]; 43 | con.Close(); 44 | 45 | } 46 | private void Item_Load(object sender, EventArgs e) 47 | { 48 | refresh_BrandID(); 49 | DataGrid_Item(); 50 | dataGridItem.Columns[6].Width = 260; 51 | dataGridItem.Columns[0].Width = 60; 52 | dataGridItem.Columns[3].Width = 60; 53 | } 54 | 55 | private void dataGridItem_CellContentClick(object sender, DataGridViewCellEventArgs e) 56 | { 57 | 58 | } 59 | void Clear() 60 | { 61 | txtItemID.Text = ""; 62 | txtItemName.Text = ""; 63 | txtColor.Text = ""; 64 | txtModel.Text = ""; 65 | txtCapacity.Text = ""; 66 | txtDescription.Text = ""; 67 | 68 | } 69 | 70 | private void btnSave_Click(object sender, EventArgs e) 71 | { 72 | con.Open(); 73 | String str = "insert into Item values (" + txtItemID.Text + "," + cmbBrandID.SelectedValue + ",'" + txtItemName.Text + "','" + txtColor.Text + "','" + txtModel.Text + "','" + txtCapacity.Text + "','" + txtDescription.Text + "')"; 74 | cmd.CommandText = str; 75 | cmd.ExecuteNonQuery(); 76 | con.Close(); 77 | MessageBox.Show("Data Saved Successfully"); 78 | DataGrid_Item(); 79 | Clear(); 80 | } 81 | 82 | private void btnDelete_Click(object sender, EventArgs e) 83 | { 84 | con.Open(); 85 | String str = "Delete from Item where Item_ID = " + txtItemID.Text + ""; 86 | cmd.CommandText = str; 87 | cmd.ExecuteNonQuery(); 88 | con.Close(); 89 | MessageBox.Show("Data Deleted Successfully"); 90 | DataGrid_Item(); 91 | } 92 | 93 | private void btnUpdate_Click(object sender, EventArgs e) 94 | { 95 | con.Open(); 96 | String str = "update Item set Item = " + txtItemName.Text + "' where Item_ID = " + txtItemID.Text + ""; 97 | cmd.CommandText = str; 98 | cmd.ExecuteNonQuery(); 99 | con.Close(); 100 | MessageBox.Show("Data Updated Successfully"); 101 | DataGrid_Item(); 102 | } 103 | 104 | private void btnSearch_Click(object sender, EventArgs e) 105 | { 106 | con.Open(); 107 | cmd.CommandText = "select * from Viw_Item where Item_ID = " + txtSearch.Text + ""; 108 | if (d_Set.Tables.Contains("Item")) 109 | d_Set.Tables["Item"].Clear(); 110 | d_Adapter.Fill(d_Set, "Item"); 111 | dataGridItem.DataSource = d_Set.Tables["Item"]; 112 | con.Close(); 113 | txtSearch.Text = ""; 114 | } 115 | 116 | private void btnNew_Click(object sender, EventArgs e) 117 | { 118 | 119 | } 120 | 121 | private void button1_Click(object sender, EventArgs e) 122 | { 123 | con.Open(); 124 | cmd.CommandText = "select * from Viw_Item"; 125 | if (d_Set.Tables.Contains("Item")) 126 | d_Set.Tables["Item"].Clear(); 127 | d_Adapter.Fill(d_Set, "Item"); 128 | dataGridItem.DataSource = d_Set.Tables["Item"]; 129 | con.Close(); 130 | 131 | } 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /Stock_Management/Vendor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | public partial class Vendor : Form 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet ds = new DataSet(); 20 | public Vendor() 21 | { 22 | cmd.Connection = con; 23 | d_Adapter.SelectCommand = cmd; 24 | InitializeComponent(); 25 | } 26 | 27 | void clearText() 28 | { 29 | txtVendorName.Text = ""; 30 | txtCompany.Text = ""; 31 | txtAddress.Text = ""; 32 | txtContact.Text = ""; 33 | txtEmail.Text = ""; 34 | txtDescription.Text = ""; 35 | } 36 | void RefreshDataGVVendor() 37 | { 38 | try 39 | { 40 | con.Open(); 41 | cmd.CommandText = "select * from Vendor "; 42 | if (ds.Tables.Contains("Vendor")) ds.Tables["Vendor"].Clear(); 43 | d_Adapter.Fill(ds, "Vendor"); 44 | dataGridViewVendor.DataSource = ds.Tables["Vendor"]; 45 | con.Close(); 46 | dataGridViewVendor.Columns[6].Width = 250; 47 | } 48 | catch(Exception ex) 49 | { 50 | MessageBox.Show(ex.Message); 51 | } 52 | 53 | } 54 | 55 | private void Vendor_Load(object sender, EventArgs e) 56 | { 57 | RefreshDataGVVendor(); 58 | lblVendorHeader.Size = new Size(150, 32); 59 | lblVendorHeader.Location = new Point(41, 27); 60 | } 61 | 62 | private void btnSave_Click(object sender, EventArgs e) 63 | { 64 | try 65 | { 66 | con.Open(); 67 | string str = "insert into Vendor values(" + txtVendorID.Text + ", '" + txtVendorName.Text + "', '" + txtCompany.Text + "', " + txtContact.Text + ", '" + txtAddress.Text + "', '" + txtEmail.Text + "', '" + txtDescription.Text + "')"; 68 | cmd.CommandText = str; 69 | cmd.ExecuteNonQuery(); 70 | con.Close(); 71 | MessageBox.Show("Data saved successfully"); 72 | RefreshDataGVVendor(); 73 | } 74 | catch(Exception ) 75 | { 76 | MessageBox.Show("Please Fill out all field"); 77 | } 78 | finally 79 | { 80 | con.Close(); 81 | } 82 | } 83 | 84 | private void btnNew_Click(object sender, EventArgs e) 85 | { 86 | con.Open(); 87 | string str = "select isnull(MAX(Vendor_ID),0)+1 from Vendor"; 88 | cmd.CommandText = str; 89 | txtVendorID.Text = cmd.ExecuteScalar().ToString(); 90 | con.Close(); 91 | clearText(); 92 | } 93 | 94 | private void btnClose_Click(object sender, EventArgs e) 95 | { 96 | this.Close(); 97 | } 98 | 99 | private void btnDelete_Click(object sender, EventArgs e) 100 | { 101 | try 102 | { 103 | con.Open(); 104 | string str = "delete from Vendor where Vendor_ID=" + txtVendorID.Text + ""; 105 | cmd.CommandText = str; 106 | cmd.ExecuteNonQuery(); 107 | con.Close(); 108 | RefreshDataGVVendor(); 109 | } 110 | catch(Exception ex) 111 | { 112 | MessageBox.Show(ex.Message); 113 | } 114 | MessageBox.Show("Data Deleted Successfully"); 115 | 116 | } 117 | 118 | private void btnSearch_Click(object sender, EventArgs e) 119 | { 120 | try 121 | { 122 | con.Open(); 123 | cmd.CommandText = "select * from Vendor where Vendor_ID = " + txtSearch.Text + ""; 124 | if (ds.Tables.Contains("Vendor")) ds.Tables["Vendor"].Clear(); 125 | d_Adapter.Fill(ds, "Vendor"); 126 | dataGridViewVendor.DataSource = ds.Tables["Vendor"]; 127 | con.Close(); 128 | } 129 | catch (Exception ex) 130 | { 131 | MessageBox.Show(ex.Message); 132 | } 133 | } 134 | 135 | private void btnUpdate_Click(object sender, EventArgs e) 136 | { 137 | try 138 | { 139 | con.Open(); 140 | String str = "update Vendor set Name = '" + txtVendorName.Text + "',Company ='" + txtCompany.Text + "' where Vendor_ID = " + txtVendorID.Text + ""; 141 | cmd.CommandText = str; 142 | cmd.ExecuteNonQuery(); 143 | con.Close(); 144 | MessageBox.Show("Data Updated Successfully"); 145 | RefreshDataGVVendor(); 146 | } 147 | catch (Exception ex) 148 | { 149 | MessageBox.Show(ex.Message); 150 | } 151 | } 152 | 153 | private void panel1_Paint(object sender, PaintEventArgs e) 154 | { 155 | 156 | } 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /Stock_Management/Brand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | namespace Stock_Management 12 | { 13 | 14 | public partial class Brand : Form 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet d_Set = new DataSet(); 20 | public Brand() 21 | { 22 | cmd.Connection = con; 23 | d_Adapter.SelectCommand = cmd; 24 | InitializeComponent(); 25 | } 26 | 27 | void DataGrid() 28 | { 29 | try 30 | { 31 | con.Open(); 32 | cmd.CommandText = "select * from Viw_Brand"; 33 | if (d_Set.Tables.Contains("Brand")) 34 | d_Set.Tables["Brand"].Clear(); 35 | d_Adapter.Fill(d_Set, "Brand"); 36 | dataGridBrand.DataSource = d_Set.Tables["Brand"]; 37 | con.Close(); 38 | } 39 | catch(Exception ex) 40 | { 41 | MessageBox.Show(ex.Message); 42 | } 43 | } 44 | //When Brand form loads it get all contents form the database inside a form 45 | private void Brand_Load(object sender, EventArgs e) 46 | { 47 | try 48 | { 49 | DataGrid(); 50 | con.Open(); 51 | cmd.CommandText = "select * from Category"; 52 | d_Adapter.Fill(d_Set, "Category"); 53 | cmbCategory.DataSource = d_Set.Tables["Category"]; 54 | cmbCategory.DisplayMember = "Category"; 55 | cmbCategory.ValueMember = "Category_ID"; 56 | con.Close(); 57 | dataGridBrand.Columns[3].Width = 618; 58 | } 59 | catch(Exception ex) 60 | { 61 | MessageBox.Show(ex.Message); 62 | } 63 | 64 | } 65 | 66 | private void button1_Click(object sender, EventArgs e) 67 | { 68 | try 69 | { 70 | con.Open(); 71 | cmd.CommandText = "select * from Brand where Brand_ID = " + txtSearch.Text + ""; 72 | if (d_Set.Tables.Contains("Brand")) 73 | d_Set.Tables["Brand"].Clear(); 74 | d_Adapter.Fill(d_Set, "Brand"); 75 | dataGridBrand.DataSource = d_Set.Tables["Brand"]; 76 | con.Close(); 77 | 78 | } 79 | catch(Exception ex) 80 | { 81 | MessageBox.Show(ex.Message); 82 | } 83 | } 84 | 85 | private void btnSave_Click(object sender, EventArgs e) 86 | { 87 | try 88 | { 89 | con.Open(); 90 | String str = "insert into Brand values (" + txtBrandID.Text + ",'" + txtBrandName.Text + "'," + cmbCategory.SelectedValue + ",'" + txtDescription.Text + "')"; 91 | cmd.CommandText = str; 92 | cmd.ExecuteNonQuery(); 93 | con.Close(); 94 | MessageBox.Show("Data Saved Successfully"); 95 | DataGrid(); 96 | 97 | } 98 | catch(Exception ex) 99 | { 100 | MessageBox.Show(ex.Message); 101 | } 102 | } 103 | 104 | private void btnUpdate_Click(object sender, EventArgs e) 105 | { 106 | try 107 | { 108 | con.Open(); 109 | String str = "update Brand set Brand_Name = '" + txtBrandName.Text + "' where Brand_ID = " + txtBrandID.Text + ""; 110 | cmd.CommandText = str; 111 | cmd.ExecuteNonQuery(); 112 | con.Close(); 113 | MessageBox.Show("Data Updated Successfully"); 114 | DataGrid(); 115 | } 116 | catch (Exception ex) 117 | { 118 | MessageBox.Show(ex.Message); 119 | } 120 | } 121 | 122 | private void btnClose_Click(object sender, EventArgs e) 123 | { 124 | this.Close(); 125 | } 126 | void ClearTextBox() 127 | { 128 | txtBrandName.Text = ""; 129 | txtDescription.Text = ""; 130 | } 131 | 132 | private void btnDelete_Click(object sender, EventArgs e) 133 | { 134 | try 135 | { 136 | con.Open(); 137 | String str = "Delete from Brand where Brand_ID = " + txtBrandID.Text + ""; 138 | cmd.CommandText = str; 139 | cmd.ExecuteNonQuery(); 140 | con.Close(); 141 | MessageBox.Show("Data Deleted Successfully"); 142 | DataGrid(); 143 | } 144 | catch(Exception ex) 145 | { 146 | MessageBox.Show(ex.Message); 147 | } 148 | } 149 | 150 | private void btnNew_Click(object sender, EventArgs e) 151 | { 152 | con.Open(); 153 | string str = "select isnull(MAX(Brand_ID),0)+1 from Brand"; 154 | cmd.CommandText = str; 155 | txtBrandID.Text = cmd.ExecuteScalar().ToString(); 156 | con.Close(); 157 | ClearTextBox(); 158 | } 159 | 160 | private void txtSearch_TextChanged(object sender, EventArgs e) 161 | { 162 | 163 | } 164 | } 165 | } 166 | -------------------------------------------------------------------------------- /Stock_Management/Category.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | 15 | public partial class Category : Form 16 | { 17 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | SqlCommand cmd = new SqlCommand(); 20 | DataSet d_Set = new DataSet(); 21 | public Category() 22 | { 23 | cmd.Connection = con; 24 | d_Adapter.SelectCommand = cmd; 25 | InitializeComponent(); 26 | } 27 | void refreshCategory() 28 | { 29 | try 30 | { 31 | con.Open(); 32 | cmd.CommandText = "select * from Category order by Category_ID desc"; 33 | if (d_Set.Tables.Contains("Category")) d_Set.Tables["Category"].Clear(); 34 | d_Adapter.Fill(d_Set, "Category"); 35 | dataGridViewCategory.DataSource = d_Set.Tables["Category"]; 36 | con.Close(); 37 | dataGridViewCategory.Columns[2].Width = 250; 38 | } 39 | catch (Exception ex) 40 | { 41 | MessageBox.Show(ex.Message); 42 | } 43 | finally 44 | { 45 | con.Close(); 46 | } 47 | 48 | } 49 | void ClearTextBox() 50 | { 51 | // txtCatagoryID.Text = ""; 52 | txtCategory.Text = ""; 53 | txtDescription.Text = ""; 54 | } 55 | 56 | private void Catagory_Load(object sender, EventArgs e) 57 | { 58 | refreshCategory(); 59 | } 60 | private void btnClose_Click(object sender, EventArgs e) 61 | { 62 | this.Close(); 63 | } 64 | 65 | private void btnSave_Click(object sender, EventArgs e) 66 | { 67 | try 68 | { 69 | con.Open(); 70 | string str = "insert into Category values (" + txtCategoryID.Text + ",'" + txtCategory.Text + "','" + txtDescription + "')"; 71 | cmd.CommandText = str; 72 | cmd.ExecuteNonQuery(); 73 | con.Close(); 74 | MessageBox.Show("Data Saved Successfully"); 75 | refreshCategory(); 76 | } 77 | catch (Exception) { } 78 | finally 79 | { 80 | con.Close(); 81 | } 82 | } 83 | 84 | private void btnDelete_Click(object sender, EventArgs e) 85 | { 86 | try 87 | { 88 | con.Open(); 89 | string str = "delete from Catagory where Category_ID = " + txtCategoryID.Text + ""; 90 | cmd.CommandText = str; 91 | cmd.ExecuteNonQuery(); 92 | con.Close(); 93 | MessageBox.Show("Data Deleted Successfully"); 94 | refreshCategory(); 95 | 96 | } 97 | catch (Exception ) 98 | { 99 | MessageBox.Show("Please Enter An ID To Delete "); 100 | } 101 | finally 102 | { 103 | con.Close(); 104 | } 105 | 106 | } 107 | 108 | private void btnNew_Click(object sender, EventArgs e) 109 | { 110 | try 111 | { 112 | con.Open(); 113 | string str = "select isnull(MAX(Category_ID),0)+1 from Category"; 114 | cmd.CommandText = str; 115 | txtCategoryID.Text = cmd.ExecuteScalar().ToString(); 116 | con.Close(); 117 | ClearTextBox(); 118 | } 119 | catch (Exception ex) 120 | { 121 | MessageBox.Show(ex.Message); 122 | } 123 | finally 124 | { 125 | con.Close(); 126 | } 127 | } 128 | 129 | private void btnSearch_Click(object sender, EventArgs e) 130 | { 131 | try 132 | { 133 | con.Open(); 134 | cmd.CommandText = "select * from Category where Category_ID = " + txtSearch.Text; 135 | if (d_Set.Tables.Contains("Category")) d_Set.Tables["Category"].Clear(); 136 | d_Adapter.Fill(d_Set, "Category"); 137 | dataGridViewCategory.DataSource = d_Set.Tables["Category"]; 138 | con.Close(); 139 | } 140 | catch (Exception ex) 141 | { 142 | MessageBox.Show(ex.Message); 143 | } 144 | finally 145 | { 146 | con.Close(); 147 | } 148 | } 149 | 150 | private void btnUpdate_Click(object sender, EventArgs e) 151 | { 152 | try 153 | { 154 | con.Open(); 155 | string str = "update Category set Category = '" + txtCategory.Text + "' where Category_ID = " + txtCategoryID.Text + ""; 156 | cmd.CommandText = str; 157 | cmd.ExecuteNonQuery(); 158 | con.Close(); 159 | MessageBox.Show("Data Updated Successfully"); 160 | refreshCategory(); 161 | } 162 | catch (Exception ex) 163 | { 164 | MessageBox.Show(ex.Message); 165 | } 166 | finally 167 | { 168 | con.Close(); 169 | } 170 | } 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /Stock_Management/SignUp.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Stock_Management/Vendor.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Stock_Management/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Stock_Management/Customer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | using System.IO; 12 | 13 | namespace Stock_Management 14 | { 15 | 16 | public partial class Customer : Form 17 | { 18 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = stockmgt; integrated security = true;"); 19 | SqlCommand cmd = new SqlCommand(); 20 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 21 | DataSet d_Set = new DataSet(); 22 | public Customer() 23 | { 24 | cmd.Connection = con; 25 | d_Adapter.SelectCommand = cmd; 26 | InitializeComponent(); 27 | } 28 | 29 | private void label6_Click(object sender, EventArgs e) 30 | { 31 | 32 | } 33 | 34 | private void textBox3_TextChanged(object sender, EventArgs e) 35 | { 36 | 37 | } 38 | void ClearTextBox() 39 | { 40 | txtAddress.Text = ""; 41 | txtContact.Text = ""; 42 | txtEmail.Text = ""; 43 | txtName.Text = ""; 44 | pictureBoxCustomer.Image = null; 45 | } 46 | void DataGrid_Customer_Load() 47 | { 48 | try 49 | { 50 | con.Open(); 51 | cmd.CommandText = "select * from Customer"; 52 | if (d_Set.Tables.Contains("Customer")) d_Set.Tables["Customer"].Clear(); 53 | d_Adapter.Fill(d_Set, "Customer"); 54 | dataGridViewCustomer.DataSource = d_Set.Tables["Customer"]; 55 | con.Close(); 56 | } 57 | catch(Exception ex) 58 | { 59 | MessageBox.Show(ex.Message); 60 | } 61 | finally 62 | { 63 | con.Close(); 64 | } 65 | 66 | } 67 | 68 | private void Customer_Load(object sender, EventArgs e) 69 | { 70 | DataGrid_Customer_Load(); 71 | dataGridViewCustomer.Columns[4].Width = 250; 72 | dataGridViewCustomer.Columns[2].Width = 100; 73 | dataGridViewCustomer.Columns[1].Width = 150; 74 | } 75 | 76 | 77 | 78 | private void btnNew_Click(object sender, EventArgs e) 79 | { 80 | try 81 | { 82 | con.Open(); 83 | string str = "select isnull(MAX(Customer_ID),0)+1 from Customer"; 84 | cmd.CommandText = str; 85 | txtCustomerID.Text = cmd.ExecuteScalar().ToString(); 86 | con.Close(); 87 | ClearTextBox(); 88 | } 89 | catch (Exception) { } 90 | 91 | } 92 | 93 | private void pictureBoxCustomer_Click(object sender, EventArgs e) 94 | { 95 | 96 | } 97 | 98 | private void pictureBoxCustomer_DoubleClick(object sender, EventArgs e) 99 | { 100 | OpenFileDialog ofd = new OpenFileDialog(); 101 | ofd.Filter = "Jpg files|*.jpg|jpeg files|*.jpeg|Gif files|*.gif|Png files|*.png"; 102 | ofd.ShowDialog(); 103 | pictureBoxCustomer.ImageLocation = ofd.FileName; 104 | } 105 | private byte[]ImageToBytes(Image img) 106 | { 107 | MemoryStream ms = new MemoryStream(); 108 | img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); 109 | return ms.ToArray(); 110 | } 111 | 112 | private void btnSave_Click(object sender, EventArgs e) 113 | { 114 | try 115 | { 116 | con.Open(); 117 | string query = @"INSERT INTO[dbo].[Customer] 118 | ([Customer_ID] 119 | ,[Customer] 120 | ,[Contact] 121 | ,[Address] 122 | ,[E-mail] 123 | ,[Image]) 124 | VALUES 125 | (" + txtCustomerID.Text + ",'" + txtName.Text + "'," + txtContact.Text + ",'" + txtAddress.Text + "','" + txtEmail.Text + "',@img)"; 126 | SqlParameter para = new SqlParameter(); 127 | byte[] img = ImageToBytes(pictureBoxCustomer.Image); 128 | para.Value = img; 129 | para.ParameterName = "@img"; 130 | para.SqlDbType = SqlDbType.Image; 131 | cmd.Parameters.Add(para); 132 | cmd.CommandText = query; 133 | cmd.ExecuteNonQuery(); 134 | con.Close(); 135 | MessageBox.Show("Information", "Record Saved Succesfully",MessageBoxButtons.OKCancel,MessageBoxIcon.Information); 136 | } 137 | catch(Exception ) 138 | { 139 | 140 | } 141 | finally 142 | { 143 | DataGrid_Customer_Load(); 144 | con.Close(); 145 | } 146 | } 147 | 148 | private void btnDelete_Click(object sender, EventArgs e) 149 | { 150 | try 151 | { 152 | con.Open(); 153 | string str = "delete from Customer where Customer_ID = " + txtCustomerID.Text + ""; 154 | cmd.CommandText = str; 155 | cmd.ExecuteNonQuery(); 156 | con.Close(); 157 | MessageBox.Show("Data Deleted Successfully"); 158 | } 159 | catch (Exception) { } 160 | 161 | } 162 | 163 | private void btnSearch_Click(object sender, EventArgs e) 164 | { 165 | 166 | try 167 | { 168 | con.Open(); 169 | cmd.CommandText = "select * from Customer where Customer_ID = " + txtSearch.Text + ""; 170 | if (d_Set.Tables.Contains("Customer")) d_Set.Tables["Customer"].Clear(); 171 | d_Adapter.Fill(d_Set, "Customer"); 172 | dataGridViewCustomer.DataSource = d_Set.Tables["Customer"]; 173 | con.Close(); 174 | } 175 | catch(Exception ex) 176 | { 177 | MessageBox.Show(ex.Message); 178 | } 179 | 180 | } 181 | 182 | private void btnClose_Click(object sender, EventArgs e) 183 | { 184 | this.Close(); 185 | } 186 | } 187 | } 188 | -------------------------------------------------------------------------------- /Stock_Management/Brand.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 124 | YQUAAAGBSURBVEhLYxgFZAPjGbcvGE68+Fmzcc8/EHbs2fdv+a4j/7HhFbuP/Vux+zgYd2w8+9N0xu13 125 | QP1LHBr2s0CNww6MZ9y5bzjhwn/Nhp1g7NSz+/+GfUcxcHVn/39bT///GaXVYH735tP/TWbchuI7W1Qm 126 | 3WaHGokJiLWkoK71v5qRxf+otBwwH9WS2/9Np99aADUSE1DLEpA5UCMxAf0smXQJbol1x67/6/diWjJn 127 | 5Yb/TROm/Z+8cAWY37LhLGmWgBQBU9h/kI9A2H/22f8x8zFx3JLLQHwFjO1m3yTdEkrx4LDEbeG9/3PP 128 | vvu/4DzpGKQPpJ+gJSU7nv2nBID0E23J1+/f/1+6dY9oDFIPAiRZ8u/fv/+/fv8mGoPUgwBJlnz7/uP/ 129 | tXsPicYg9SBAkiV///79/+3HD6IxSD0IkGTJ9x8//996+IRoDFIPAiRZ8gfosk9fvhGNQepBgChLotc8 130 | +n/tFTA+yMQg/XgtAebWg0B8lwr4INTIUUAqYGAAAKHuWYOKJ7wpAAAAAElFTkSuQmCC 131 | 132 | 133 | -------------------------------------------------------------------------------- /Stock_Management/Stock_Management.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {CC487B64-0076-44E5-9893-565B940BAC75} 8 | WinExe 9 | Properties 10 | Stock_Management 11 | Stock_Management 12 | v4.5.2 13 | 512 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | C:\Users\Nasratullah Shafiq\Desktop\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\LiveCharts.WinForms.dll 38 | 39 | 40 | C:\Users\Nasratullah Shafiq\Desktop\WindowsFormsApplication1\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | Form 59 | 60 | 61 | Brand.cs 62 | 63 | 64 | Form 65 | 66 | 67 | Category.cs 68 | 69 | 70 | Form 71 | 72 | 73 | Customer.cs 74 | 75 | 76 | Form 77 | 78 | 79 | Item.cs 80 | 81 | 82 | Form 83 | 84 | 85 | Login.cs 86 | 87 | 88 | Form 89 | 90 | 91 | Main page.cs 92 | 93 | 94 | Form 95 | 96 | 97 | Product.cs 98 | 99 | 100 | True 101 | True 102 | Resources.resx 103 | 104 | 105 | Form 106 | 107 | 108 | Purchase.cs 109 | 110 | 111 | 112 | 113 | Form 114 | 115 | 116 | Sale.cs 117 | 118 | 119 | Form 120 | 121 | 122 | SignUp.cs 123 | 124 | 125 | True 126 | True 127 | StockmgtDataSet.xsd 128 | 129 | 130 | Form 131 | 132 | 133 | Vendor.cs 134 | 135 | 136 | Brand.cs 137 | 138 | 139 | Category.cs 140 | 141 | 142 | Customer.cs 143 | 144 | 145 | Item.cs 146 | 147 | 148 | Login.cs 149 | 150 | 151 | Main page.cs 152 | 153 | 154 | Purchase.cs 155 | 156 | 157 | ResXFileCodeGenerator 158 | Designer 159 | Resources.Designer.cs 160 | 161 | 162 | Sale.cs 163 | 164 | 165 | SignUp.cs 166 | 167 | 168 | Vendor.cs 169 | 170 | 171 | SettingsSingleFileGenerator 172 | Settings.Designer.cs 173 | 174 | 175 | True 176 | Settings.settings 177 | True 178 | 179 | 180 | StockmgtDataSet.xsd 181 | 182 | 183 | MSDataSetGenerator 184 | StockmgtDataSet.Designer.cs 185 | Designer 186 | 187 | 188 | StockmgtDataSet.xsd 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 208 | -------------------------------------------------------------------------------- /Stock_Management/Login.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Stock_Management 2 | { 3 | partial class Login 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); 32 | this.btnSignup = new System.Windows.Forms.Button(); 33 | this.btnLogin = new System.Windows.Forms.Button(); 34 | this.txtUsername = new System.Windows.Forms.TextBox(); 35 | this.label1 = new System.Windows.Forms.Label(); 36 | this.label2 = new System.Windows.Forms.Label(); 37 | this.panel1 = new System.Windows.Forms.Panel(); 38 | this.label3 = new System.Windows.Forms.Label(); 39 | this.button1 = new System.Windows.Forms.Button(); 40 | this.txtPassword = new System.Windows.Forms.TextBox(); 41 | this.panel1.SuspendLayout(); 42 | this.SuspendLayout(); 43 | // 44 | // btnSignup 45 | // 46 | this.btnSignup.BackColor = System.Drawing.Color.Teal; 47 | this.btnSignup.FlatAppearance.BorderSize = 0; 48 | this.btnSignup.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 49 | this.btnSignup.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 50 | this.btnSignup.ForeColor = System.Drawing.Color.White; 51 | this.btnSignup.Image = ((System.Drawing.Image)(resources.GetObject("btnSignup.Image"))); 52 | this.btnSignup.Location = new System.Drawing.Point(295, 218); 53 | this.btnSignup.Name = "btnSignup"; 54 | this.btnSignup.Size = new System.Drawing.Size(103, 41); 55 | this.btnSignup.TabIndex = 0; 56 | this.btnSignup.Text = " Sign Up"; 57 | this.btnSignup.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 58 | this.btnSignup.UseVisualStyleBackColor = false; 59 | this.btnSignup.Click += new System.EventHandler(this.button1_Click); 60 | // 61 | // btnLogin 62 | // 63 | this.btnLogin.FlatAppearance.BorderSize = 0; 64 | this.btnLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 65 | this.btnLogin.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 66 | this.btnLogin.ForeColor = System.Drawing.Color.White; 67 | this.btnLogin.Image = ((System.Drawing.Image)(resources.GetObject("btnLogin.Image"))); 68 | this.btnLogin.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; 69 | this.btnLogin.Location = new System.Drawing.Point(199, 218); 70 | this.btnLogin.Name = "btnLogin"; 71 | this.btnLogin.Size = new System.Drawing.Size(108, 41); 72 | this.btnLogin.TabIndex = 1; 73 | this.btnLogin.Text = " Log In"; 74 | this.btnLogin.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 75 | this.btnLogin.UseVisualStyleBackColor = true; 76 | this.btnLogin.Click += new System.EventHandler(this.button2_Click); 77 | // 78 | // txtUsername 79 | // 80 | this.txtUsername.BackColor = System.Drawing.Color.White; 81 | this.txtUsername.BorderStyle = System.Windows.Forms.BorderStyle.None; 82 | this.txtUsername.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 83 | this.txtUsername.ForeColor = System.Drawing.Color.Teal; 84 | this.txtUsername.Location = new System.Drawing.Point(199, 112); 85 | this.txtUsername.Multiline = true; 86 | this.txtUsername.Name = "txtUsername"; 87 | this.txtUsername.Size = new System.Drawing.Size(199, 25); 88 | this.txtUsername.TabIndex = 2; 89 | // 90 | // label1 91 | // 92 | this.label1.AutoSize = true; 93 | this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 94 | this.label1.ForeColor = System.Drawing.Color.White; 95 | this.label1.Location = new System.Drawing.Point(198, 87); 96 | this.label1.Name = "label1"; 97 | this.label1.Size = new System.Drawing.Size(67, 17); 98 | this.label1.TabIndex = 4; 99 | this.label1.Text = "Username"; 100 | // 101 | // label2 102 | // 103 | this.label2.AutoSize = true; 104 | this.label2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 105 | this.label2.ForeColor = System.Drawing.Color.White; 106 | this.label2.Location = new System.Drawing.Point(196, 152); 107 | this.label2.Name = "label2"; 108 | this.label2.Size = new System.Drawing.Size(64, 17); 109 | this.label2.TabIndex = 5; 110 | this.label2.Text = "Password"; 111 | // 112 | // panel1 113 | // 114 | this.panel1.BackColor = System.Drawing.Color.Teal; 115 | this.panel1.Controls.Add(this.label3); 116 | this.panel1.Dock = System.Windows.Forms.DockStyle.Top; 117 | this.panel1.Location = new System.Drawing.Point(0, 0); 118 | this.panel1.Name = "panel1"; 119 | this.panel1.Size = new System.Drawing.Size(498, 73); 120 | this.panel1.TabIndex = 6; 121 | // 122 | // label3 123 | // 124 | this.label3.AutoSize = true; 125 | this.label3.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 126 | this.label3.ForeColor = System.Drawing.Color.White; 127 | this.label3.Location = new System.Drawing.Point(81, 22); 128 | this.label3.Name = "label3"; 129 | this.label3.Size = new System.Drawing.Size(327, 32); 130 | this.label3.TabIndex = 7; 131 | this.label3.Text = "Stock Management Database"; 132 | // 133 | // button1 134 | // 135 | this.button1.FlatAppearance.BorderSize = 0; 136 | this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 137 | this.button1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 138 | this.button1.ForeColor = System.Drawing.Color.White; 139 | this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image"))); 140 | this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; 141 | this.button1.Location = new System.Drawing.Point(77, 106); 142 | this.button1.Name = "button1"; 143 | this.button1.Size = new System.Drawing.Size(113, 97); 144 | this.button1.TabIndex = 7; 145 | this.button1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 146 | this.button1.UseVisualStyleBackColor = true; 147 | // 148 | // txtPassword 149 | // 150 | this.txtPassword.BackColor = System.Drawing.Color.White; 151 | this.txtPassword.BorderStyle = System.Windows.Forms.BorderStyle.None; 152 | this.txtPassword.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 153 | this.txtPassword.ForeColor = System.Drawing.Color.Teal; 154 | this.txtPassword.Location = new System.Drawing.Point(199, 178); 155 | this.txtPassword.Multiline = true; 156 | this.txtPassword.Name = "txtPassword"; 157 | this.txtPassword.Size = new System.Drawing.Size(199, 25); 158 | this.txtPassword.TabIndex = 9; 159 | // 160 | // Login 161 | // 162 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 163 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 164 | this.BackColor = System.Drawing.Color.Teal; 165 | this.ClientSize = new System.Drawing.Size(498, 296); 166 | this.Controls.Add(this.txtPassword); 167 | this.Controls.Add(this.button1); 168 | this.Controls.Add(this.btnSignup); 169 | this.Controls.Add(this.panel1); 170 | this.Controls.Add(this.label2); 171 | this.Controls.Add(this.label1); 172 | this.Controls.Add(this.txtUsername); 173 | this.Controls.Add(this.btnLogin); 174 | this.ForeColor = System.Drawing.Color.DarkOliveGreen; 175 | this.Name = "Login"; 176 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 177 | this.Text = "Login"; 178 | this.Load += new System.EventHandler(this.Login_Load); 179 | this.panel1.ResumeLayout(false); 180 | this.panel1.PerformLayout(); 181 | this.ResumeLayout(false); 182 | this.PerformLayout(); 183 | 184 | } 185 | 186 | #endregion 187 | 188 | private System.Windows.Forms.Button btnSignup; 189 | private System.Windows.Forms.Button btnLogin; 190 | private System.Windows.Forms.TextBox txtUsername; 191 | private System.Windows.Forms.Label label1; 192 | private System.Windows.Forms.Label label2; 193 | private System.Windows.Forms.Panel panel1; 194 | private System.Windows.Forms.Label label3; 195 | private System.Windows.Forms.Button button1; 196 | private System.Windows.Forms.TextBox txtPassword; 197 | } 198 | } -------------------------------------------------------------------------------- /Stock_Management/Category.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Stock_Management 2 | { 3 | partial class Category 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Category)); 32 | this.btnSearch = new System.Windows.Forms.Button(); 33 | this.dataGridViewCategory = new System.Windows.Forms.DataGridView(); 34 | this.txtSearch = new System.Windows.Forms.TextBox(); 35 | this.txtDescription = new System.Windows.Forms.TextBox(); 36 | this.txtCategory = new System.Windows.Forms.TextBox(); 37 | this.txtCategoryID = new System.Windows.Forms.TextBox(); 38 | this.btnUpdate = new System.Windows.Forms.Button(); 39 | this.btnDelete = new System.Windows.Forms.Button(); 40 | this.btnSave = new System.Windows.Forms.Button(); 41 | this.btnNew = new System.Windows.Forms.Button(); 42 | this.btnClose = new System.Windows.Forms.Button(); 43 | this.label2 = new System.Windows.Forms.Label(); 44 | this.label3 = new System.Windows.Forms.Label(); 45 | this.label4 = new System.Windows.Forms.Label(); 46 | ((System.ComponentModel.ISupportInitialize)(this.dataGridViewCategory)).BeginInit(); 47 | this.SuspendLayout(); 48 | // 49 | // btnSearch 50 | // 51 | this.btnSearch.Location = new System.Drawing.Point(21, 12); 52 | this.btnSearch.Name = "btnSearch"; 53 | this.btnSearch.Size = new System.Drawing.Size(75, 23); 54 | this.btnSearch.TabIndex = 0; 55 | this.btnSearch.Text = "Search"; 56 | this.btnSearch.UseVisualStyleBackColor = true; 57 | this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); 58 | // 59 | // dataGridViewCategory 60 | // 61 | this.dataGridViewCategory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 62 | this.dataGridViewCategory.Location = new System.Drawing.Point(21, 199); 63 | this.dataGridViewCategory.Name = "dataGridViewCategory"; 64 | this.dataGridViewCategory.RowHeadersVisible = false; 65 | this.dataGridViewCategory.Size = new System.Drawing.Size(461, 150); 66 | this.dataGridViewCategory.TabIndex = 2; 67 | // 68 | // txtSearch 69 | // 70 | this.txtSearch.Location = new System.Drawing.Point(109, 15); 71 | this.txtSearch.Name = "txtSearch"; 72 | this.txtSearch.Size = new System.Drawing.Size(173, 20); 73 | this.txtSearch.TabIndex = 3; 74 | this.txtSearch.TextChanged += new System.EventHandler(this.Catagory_Load); 75 | // 76 | // txtDescription 77 | // 78 | this.txtDescription.Location = new System.Drawing.Point(307, 55); 79 | this.txtDescription.Multiline = true; 80 | this.txtDescription.Name = "txtDescription"; 81 | this.txtDescription.Size = new System.Drawing.Size(175, 100); 82 | this.txtDescription.TabIndex = 3; 83 | // 84 | // txtCategory 85 | // 86 | this.txtCategory.Location = new System.Drawing.Point(112, 109); 87 | this.txtCategory.Name = "txtCategory"; 88 | this.txtCategory.Size = new System.Drawing.Size(173, 20); 89 | this.txtCategory.TabIndex = 2; 90 | // 91 | // txtCategoryID 92 | // 93 | this.txtCategoryID.Location = new System.Drawing.Point(112, 70); 94 | this.txtCategoryID.Name = "txtCategoryID"; 95 | this.txtCategoryID.Size = new System.Drawing.Size(173, 20); 96 | this.txtCategoryID.TabIndex = 1; 97 | // 98 | // btnUpdate 99 | // 100 | this.btnUpdate.Location = new System.Drawing.Point(207, 170); 101 | this.btnUpdate.Name = "btnUpdate"; 102 | this.btnUpdate.Size = new System.Drawing.Size(75, 23); 103 | this.btnUpdate.TabIndex = 6; 104 | this.btnUpdate.Text = "Update"; 105 | this.btnUpdate.UseVisualStyleBackColor = true; 106 | this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click); 107 | // 108 | // btnDelete 109 | // 110 | this.btnDelete.Location = new System.Drawing.Point(307, 170); 111 | this.btnDelete.Name = "btnDelete"; 112 | this.btnDelete.Size = new System.Drawing.Size(75, 23); 113 | this.btnDelete.TabIndex = 7; 114 | this.btnDelete.Text = "Delete"; 115 | this.btnDelete.UseVisualStyleBackColor = true; 116 | this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); 117 | // 118 | // btnSave 119 | // 120 | this.btnSave.Location = new System.Drawing.Point(112, 170); 121 | this.btnSave.Name = "btnSave"; 122 | this.btnSave.Size = new System.Drawing.Size(75, 23); 123 | this.btnSave.TabIndex = 5; 124 | this.btnSave.Text = "Save"; 125 | this.btnSave.UseVisualStyleBackColor = true; 126 | this.btnSave.Click += new System.EventHandler(this.btnSave_Click); 127 | // 128 | // btnNew 129 | // 130 | this.btnNew.Location = new System.Drawing.Point(21, 170); 131 | this.btnNew.Name = "btnNew"; 132 | this.btnNew.Size = new System.Drawing.Size(75, 23); 133 | this.btnNew.TabIndex = 4; 134 | this.btnNew.Text = "New"; 135 | this.btnNew.UseVisualStyleBackColor = true; 136 | this.btnNew.Click += new System.EventHandler(this.btnNew_Click); 137 | // 138 | // btnClose 139 | // 140 | this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; 141 | this.btnClose.Location = new System.Drawing.Point(407, 170); 142 | this.btnClose.Name = "btnClose"; 143 | this.btnClose.Size = new System.Drawing.Size(75, 23); 144 | this.btnClose.TabIndex = 8; 145 | this.btnClose.Text = "Close"; 146 | this.btnClose.UseVisualStyleBackColor = true; 147 | this.btnClose.Click += new System.EventHandler(this.btnClose_Click); 148 | // 149 | // label2 150 | // 151 | this.label2.AutoSize = true; 152 | this.label2.ForeColor = System.Drawing.SystemColors.ControlLightLight; 153 | this.label2.Location = new System.Drawing.Point(21, 73); 154 | this.label2.Name = "label2"; 155 | this.label2.Size = new System.Drawing.Size(63, 13); 156 | this.label2.TabIndex = 12; 157 | this.label2.Text = "Category ID"; 158 | // 159 | // label3 160 | // 161 | this.label3.AutoSize = true; 162 | this.label3.ForeColor = System.Drawing.Color.AliceBlue; 163 | this.label3.Location = new System.Drawing.Point(21, 112); 164 | this.label3.Name = "label3"; 165 | this.label3.Size = new System.Drawing.Size(49, 13); 166 | this.label3.TabIndex = 13; 167 | this.label3.Text = "Category"; 168 | // 169 | // label4 170 | // 171 | this.label4.AutoSize = true; 172 | this.label4.ForeColor = System.Drawing.Color.AliceBlue; 173 | this.label4.Location = new System.Drawing.Point(304, 17); 174 | this.label4.Name = "label4"; 175 | this.label4.Size = new System.Drawing.Size(60, 13); 176 | this.label4.TabIndex = 14; 177 | this.label4.Text = "Description"; 178 | // 179 | // Category 180 | // 181 | this.AcceptButton = this.btnSearch; 182 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 183 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 184 | this.BackColor = System.Drawing.Color.Teal; 185 | this.CancelButton = this.btnClose; 186 | this.ClientSize = new System.Drawing.Size(500, 363); 187 | this.Controls.Add(this.label4); 188 | this.Controls.Add(this.label3); 189 | this.Controls.Add(this.label2); 190 | this.Controls.Add(this.btnClose); 191 | this.Controls.Add(this.btnNew); 192 | this.Controls.Add(this.btnSave); 193 | this.Controls.Add(this.btnDelete); 194 | this.Controls.Add(this.btnUpdate); 195 | this.Controls.Add(this.txtCategoryID); 196 | this.Controls.Add(this.txtCategory); 197 | this.Controls.Add(this.txtDescription); 198 | this.Controls.Add(this.txtSearch); 199 | this.Controls.Add(this.dataGridViewCategory); 200 | this.Controls.Add(this.btnSearch); 201 | this.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; 202 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 203 | this.Name = "Category"; 204 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 205 | this.Text = "Catagory"; 206 | this.Load += new System.EventHandler(this.Catagory_Load); 207 | ((System.ComponentModel.ISupportInitialize)(this.dataGridViewCategory)).EndInit(); 208 | this.ResumeLayout(false); 209 | this.PerformLayout(); 210 | 211 | } 212 | 213 | #endregion 214 | 215 | private System.Windows.Forms.Button btnSearch; 216 | private System.Windows.Forms.DataGridView dataGridViewCategory; 217 | private System.Windows.Forms.TextBox txtSearch; 218 | private System.Windows.Forms.TextBox txtDescription; 219 | private System.Windows.Forms.TextBox txtCategory; 220 | private System.Windows.Forms.TextBox txtCategoryID; 221 | private System.Windows.Forms.Button btnUpdate; 222 | private System.Windows.Forms.Button btnDelete; 223 | private System.Windows.Forms.Button btnSave; 224 | private System.Windows.Forms.Button btnNew; 225 | private System.Windows.Forms.Button btnClose; 226 | private System.Windows.Forms.Label label2; 227 | private System.Windows.Forms.Label label3; 228 | private System.Windows.Forms.Label label4; 229 | } 230 | } -------------------------------------------------------------------------------- /Stock_Management/Login.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO 124 | wwAADsMBx2+oZAAAAtxJREFUWEftl8tOFFEYhCcRNxgVl2DYqMDOiG54BBOIwcsr8AQCGl0oXrZG1AQX 125 | GF9A4xZmgMfwspWFBgWdiTcWzPhVp06Hk+7p6SEsp5JK96mq/6f7zOnuQ6WHsmg2m6PwFlyDH+AvU+c1 126 | OA9HHT88tFqtSzRe51gKZHWB4y4/OOjVR6MXsOnGO3AZXoFj8Jg5hj3N8RXccVZ4zmmf23UHCk/SILlr 127 | jr/hI3jCdlu4Ttm/rq1Js10OFBylMPzxz7Dr6aTmItx0D/U6YqszKHjmwk04ZLlrUHtaPdxr0XIxyGrB 128 | CX9g7p2jT8F1GJ4CnU/ajuB+6rUHO88koTVf8UNLEdAX5OdBnmMR0B/br1rKBwGtZgW3YWbBoU3Z/wdn 129 | 4aA5B3ftZ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q3KExi9OKQIVZWK/ju3t5JjElDoQUg1wxiwyslWBxqCCqxK0Qc5itxo4k3ahTc 189 | ojBJiRaHadCNLRGH+QpGops4k0bCLQqTPPJ0yRaHKcRaRRzmCw29qTdoLNyiMElJF4dfEhVxmKvOWOws 190 | NFPUex3ZQAtArhnEgtIuDpMMlMVXKXQNzpgzHG5RmKT0i8ME3Ypi/n/nGghHL+fMGQ0tALlmEDWzS744 191 | jNOlqpeJWMxTMBK7jjNnJPsyLAqTmLA4pJtX14pYzBPdF6ArjFLSsVfZPO+XO/oysR3HcHONpKzWIlJS 192 | UlJSUlJSUlJSUlnJ4fg/501siWmAQCUAAAAASUVORK5CYII= 193 | 194 | 195 | -------------------------------------------------------------------------------- /Stock_Management/Sale.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | public partial class Sale : Form 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet d_Set = new DataSet(); 20 | SqlTransaction tr; 21 | String DetailID; 22 | public Sale() 23 | { 24 | cmd.Connection = con; 25 | d_Adapter.SelectCommand = cmd; 26 | InitializeComponent(); 27 | } 28 | void ComboBoxCustomer() 29 | { 30 | try 31 | { 32 | con.Open(); 33 | cmd.CommandText = "select * from Customer"; 34 | d_Adapter.Fill(d_Set, "Customer"); 35 | cmbCustomer.DataSource = d_Set.Tables["Customer"]; 36 | cmbCustomer.DisplayMember = "Customer"; 37 | cmbCustomer.ValueMember = "Customer_ID"; 38 | con.Close(); 39 | } 40 | catch (Exception) 41 | { 42 | // MessageBox.Show(ex.Message); 43 | } 44 | finally 45 | { 46 | con.Close(); 47 | } 48 | } 49 | void RefreshDataGridSaleList() 50 | { 51 | try 52 | { 53 | con.Open(); 54 | cmd.CommandText = "select * from Viw_SaleMain"; 55 | if (d_Set.Tables.Contains("SaleMain")) d_Set.Tables["SaleMain"].Clear(); 56 | d_Adapter.Fill(d_Set, "SaleMain"); 57 | DataGridViewSaleList.DataSource = d_Set.Tables["SaleMain"]; 58 | con.Close(); 59 | } 60 | catch (Exception) 61 | { 62 | // MessageBox.Show(ex.Message); 63 | } 64 | finally 65 | { 66 | con.Close(); 67 | } 68 | } 69 | void RefreshDataGridSaleDetails() 70 | { 71 | try 72 | { 73 | con.Open(); 74 | cmd.CommandText = "select * from Viw_SaleDetails"; 75 | if (d_Set.Tables.Contains("SaleDetails")) d_Set.Tables["SaleDetails"].Clear(); 76 | d_Adapter.Fill(d_Set, "SaleDetails"); 77 | DataGridViewSaleDetails.DataSource = d_Set.Tables["SaleDetails"]; 78 | con.Close(); 79 | } 80 | catch (Exception) 81 | { 82 | // MessageBox.Show(ex.Message); 83 | } 84 | finally 85 | { 86 | con.Close(); 87 | } 88 | } 89 | void ComboBoxCategory() 90 | { 91 | try 92 | { 93 | con.Open(); 94 | cmd.CommandText = "select * from Category"; 95 | d_Adapter.Fill(d_Set, "Category"); 96 | cmbCategory.DataSource = d_Set.Tables["Category"]; 97 | cmbCategory.DisplayMember = "Category"; 98 | cmbCategory.ValueMember = "Category_ID"; 99 | con.Close(); 100 | } 101 | catch (Exception) 102 | { 103 | // MessageBox.Show(ex.Message); 104 | } 105 | finally 106 | { 107 | con.Close(); 108 | } 109 | } 110 | 111 | private void Sale_Load(object sender, EventArgs e) 112 | { 113 | ComboBoxCustomer(); 114 | RefreshDataGridSaleDetails(); 115 | RefreshDataGridSaleList(); 116 | ComboBoxCategory(); 117 | DataGridSale.Columns[4].Width = 140; 118 | btnSearch.Visible = false; 119 | txtSearch.Visible = false; 120 | //DataGridViewSaleList.Columns[0].Width = 50; 121 | //DataGridViewSaleList.Columns[1].Width = 150; 122 | //DataGridViewSaleList.Columns[4].Width = 60; 123 | //DataGridViewSaleList.Columns[5].Width = 320; 124 | //DataGridViewSaleDetails.Columns[6].Width = 221; 125 | } 126 | 127 | private void btnClose_Click(object sender, EventArgs e) 128 | { 129 | this.Close(); 130 | } 131 | 132 | private void btnSearch_Click(object sender, EventArgs e) 133 | { 134 | 135 | } 136 | private void cmbCatagory_SelectedIndexChanged(object sender, EventArgs e) 137 | { 138 | try 139 | { 140 | con.Open(); 141 | cmd.CommandText = "select Brand_ID,Brand_Name from Brand where Category_ID = " + cmbCategory.SelectedValue; 142 | if (d_Set.Tables.Contains("Brand")) 143 | d_Set.Tables["Brand"].Clear(); 144 | d_Adapter.Fill(d_Set, "Brand"); 145 | cmbBrand.DataSource = d_Set.Tables["Brand"]; 146 | cmbBrand.DisplayMember = "Brand_Name"; 147 | cmbBrand.ValueMember = "Brand_ID"; 148 | con.Close(); 149 | 150 | } 151 | catch (Exception) 152 | { 153 | // MessageBox.Show(ex.Message); 154 | // con.Close(); 155 | } 156 | finally 157 | { 158 | con.Close(); 159 | } 160 | } 161 | 162 | private void cmbBrand_SelectedIndexChanged(object sender, EventArgs e) 163 | { 164 | try 165 | { 166 | con.Open(); 167 | cmd.CommandText = "select * from Item where Brand_ID = " + cmbBrand.SelectedValue; 168 | if (d_Set.Tables.Contains("Item")) 169 | d_Set.Tables["Item"].Clear(); 170 | d_Adapter.Fill(d_Set, "Item"); 171 | lstItem.DataSource = d_Set.Tables["Item"]; 172 | lstItem.DisplayMember = "Item"; 173 | lstItem.ValueMember = "Item_ID"; 174 | con.Close(); 175 | } 176 | catch (Exception) 177 | { 178 | // MessageBox.Show(ex.Message); 179 | // con.Close(); 180 | } 181 | finally 182 | { 183 | con.Close(); 184 | } 185 | } 186 | private void TabControlSale_SelectedIndexChanged(object sender, EventArgs e) 187 | { 188 | if (TabControlSale.SelectedIndex == 0) 189 | { 190 | btnSearch.Visible = false; 191 | txtSearch.Visible = false; 192 | lblSaleHeader.Text = "Sale Transaction"; 193 | } 194 | if (TabControlSale.SelectedIndex == 1) 195 | { 196 | btnSearch.Visible = true; 197 | txtSearch.Visible = true; 198 | lblSaleHeader.Text = "Sale List"; 199 | } 200 | if (TabControlSale.SelectedIndex == 2) 201 | { 202 | btnSearch.Visible = true; 203 | txtSearch.Visible = true; 204 | lblSaleHeader.Text = "Sale Details"; 205 | } 206 | } 207 | 208 | private void lstItem_DoubleClick(object sender, EventArgs e) 209 | { 210 | try 211 | { 212 | int a = DataGridSale.Rows.Count; 213 | 214 | DataGridSale.Rows.Add(); 215 | 216 | DataGridSale.Rows[a].Cells["DataGridID"].Value = lstItem.SelectedValue.ToString(); 217 | DataGridSale.Rows[a].Cells["DataGridItem"].Value = lstItem.Text.ToString(); 218 | } 219 | catch (Exception ex) 220 | { 221 | MessageBox.Show(ex.Message); 222 | } 223 | finally 224 | { 225 | con.Close(); 226 | } 227 | } 228 | 229 | private void btnNew_Click(object sender, EventArgs e) 230 | { 231 | try 232 | { 233 | con.Open(); 234 | string str = "select isnull(MAX(Sale_ID),0)+1 from SaleMain"; 235 | cmd.CommandText = str; 236 | txtSaleID.Text = cmd.ExecuteScalar().ToString(); 237 | 238 | string sttr = "select isnull(MAX(ID),0)+1 from SaleDetails"; 239 | cmd.CommandText = sttr; 240 | DetailID = cmd.ExecuteScalar().ToString(); 241 | con.Close(); 242 | } 243 | catch (Exception ex) 244 | { 245 | MessageBox.Show(ex.Message); 246 | } 247 | finally 248 | { 249 | con.Close(); 250 | } 251 | } 252 | void CalculateTotal() 253 | { 254 | try 255 | { 256 | int count = DataGridSale.Rows.Count; 257 | int i = 0; 258 | int sum = 0; 259 | for (i = 0; i < count ; i++) 260 | sum += Convert.ToInt32(DataGridSale.Rows[i].Cells["DataGridTotal"].Value); 261 | txtTotal.Text = sum.ToString(); 262 | } 263 | catch (Exception ex) 264 | { 265 | MessageBox.Show(ex.Message); 266 | } 267 | } 268 | 269 | private void DataGridSale_CellClick(object sender, DataGridViewCellEventArgs e) 270 | { 271 | /*int a = DataGridSale.CurrentRow.Index; 272 | double price = Convert.ToDouble(DataGridSale.Rows[a].Cells["DataGridPrice"].Value); 273 | double quantity = Convert.ToDouble(DataGridSale.Rows[a].Cells["DataGridQuantity"].Value); 274 | DataGridSale.Rows[a].Cells["DataGridTotal"].Value = (price * quantity).ToString(); 275 | CalculateTotal();*/ 276 | } 277 | public void SaveDetails() 278 | { 279 | try 280 | { 281 | string details; 282 | string Item_ID, Price, Quantity, Total; 283 | int count = DataGridSale.Rows.Count; 284 | for (int i = 0; i < count - 1; i++) 285 | { 286 | Item_ID = DataGridSale.Rows[i].Cells["DataGridID"].Value.ToString(); 287 | Price = DataGridSale.Rows[i].Cells["DataGridPrice"].Value.ToString(); 288 | Quantity = DataGridSale.Rows[i].Cells["DataGridQuantity"].Value.ToString(); 289 | Total = DataGridSale.Rows[i].Cells["DataGridTotal"].Value.ToString(); 290 | details = "insert into SaleDetails values (" + DetailID + "," + txtSaleID.Text + ", " + Item_ID + ", " + Price + "," + Quantity + "," + Total + ",'from Details')"; 291 | cmd.CommandText = details; 292 | cmd.ExecuteNonQuery(); 293 | DetailID = (Convert.ToInt16(DetailID) + 1).ToString(); 294 | } 295 | } 296 | catch (Exception ex) 297 | { 298 | MessageBox.Show(ex.Message); 299 | } 300 | } 301 | 302 | private void btnSave_Click(object sender, EventArgs e) 303 | { 304 | try 305 | { 306 | string str = "insert into SaleMain values(" + txtSaleID.Text + ", '" + cmbCustomer.SelectedValue + "','" + dtpSaleDate.Text + "'," + txtTotal.Text + "," + 3 + ", '" + txtDescription.Text + "')"; 307 | cmd.CommandText = str; 308 | con.Open(); 309 | tr = con.BeginTransaction(); 310 | cmd.Transaction = tr; 311 | cmd.ExecuteNonQuery(); 312 | SaveDetails(); 313 | tr.Commit(); 314 | con.Close(); 315 | RefreshDataGridSaleList(); 316 | RefreshDataGridSaleDetails(); 317 | MessageBox.Show("Data Saved Successfully"); 318 | } 319 | catch (Exception ex) 320 | { 321 | MessageBox.Show(ex.Message); 322 | tr.Rollback(); 323 | } 324 | } 325 | 326 | private void DataGridSale_CellLeave(object sender, DataGridViewCellEventArgs e) 327 | { 328 | int a = DataGridSale.CurrentRow.Index; 329 | double price = Convert.ToDouble(DataGridSale.Rows[a].Cells["DataGridPrice"].Value); 330 | double quantity = Convert.ToDouble(DataGridSale.Rows[a].Cells["DataGridQuantity"].Value); 331 | DataGridSale.Rows[a].Cells["DataGridTotal"].Value = (price * quantity).ToString(); 332 | CalculateTotal(); 333 | } 334 | 335 | private void lstItem_SelectedIndexChanged(object sender, EventArgs e) 336 | { 337 | 338 | } 339 | } 340 | } 341 | 342 | 343 | -------------------------------------------------------------------------------- /Stock_Management/Purchase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | public partial class Purchase : Form 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = Stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet d_Set = new DataSet(); 20 | SqlTransaction tr; 21 | String DetailID; 22 | Main_Page frm = new Main_Page(); 23 | public Purchase() 24 | { 25 | cmd.Connection = con; 26 | d_Adapter.SelectCommand = cmd; 27 | InitializeComponent(); 28 | } 29 | void ComboBoxCategory() 30 | { 31 | try 32 | { 33 | con.Open(); 34 | cmd.CommandText = "select * from Category"; 35 | d_Adapter.Fill(d_Set, "Category"); 36 | cmbCategory.DataSource = d_Set.Tables["Category"]; 37 | cmbCategory.DisplayMember = "Category"; 38 | cmbCategory.ValueMember = "Category_ID"; 39 | con.Close(); 40 | } 41 | catch(Exception ) 42 | { 43 | // MessageBox.Show(ex.Message); 44 | } 45 | finally 46 | { 47 | con.Close(); 48 | } 49 | } 50 | void ComboBoxVendor() 51 | { 52 | try 53 | { 54 | con.Open(); 55 | cmd.CommandText = "select * from Vendor"; 56 | d_Adapter.Fill(d_Set, "Vendor"); 57 | cmbVendor.DataSource = d_Set.Tables["Vendor"]; 58 | cmbVendor.DisplayMember = "Vendor"; 59 | cmbVendor.ValueMember = "Vendor_ID"; 60 | con.Close(); 61 | } 62 | catch(Exception ) 63 | { 64 | // MessageBox.Show(ex.Message); 65 | } 66 | finally 67 | { 68 | con.Close(); 69 | } 70 | } 71 | void RefreshDataGridPurchaseList() 72 | { 73 | try 74 | { 75 | con.Open(); 76 | cmd.CommandText = "select * from Viw_PurchaseMain"; 77 | if (d_Set.Tables.Contains("PurchaseMain")) d_Set.Tables["PurchaseMain"].Clear(); 78 | d_Adapter.Fill(d_Set, "PurchaseMain"); 79 | DataGridViewPurchaseList.DataSource = d_Set.Tables["PurchaseMain"]; 80 | con.Close(); 81 | DataGridViewPurchaseList.Columns[5].Width = 400; 82 | DataGridViewPurchaseList.Columns[2].Width = 200; 83 | } 84 | catch (Exception ex) 85 | { 86 | MessageBox.Show(ex.Message); 87 | } 88 | finally 89 | { 90 | con.Close(); 91 | } 92 | } 93 | void RefreshDataGridPurchaseDetails() 94 | { 95 | try 96 | { 97 | con.Open(); 98 | cmd.CommandText = "select * from Viw_PurchaseDetails"; 99 | if (d_Set.Tables.Contains("PurchaseDetails")) d_Set.Tables["PurchaseDetails"].Clear(); 100 | d_Adapter.Fill(d_Set, "PurchaseDetails"); 101 | DataGridViewPurchaseDetails.DataSource = d_Set.Tables["PurchaseDetails"]; 102 | con.Close(); 103 | DataGridViewPurchaseDetails.Columns[6].Width = 400; 104 | 105 | } 106 | catch (Exception ex) 107 | { 108 | MessageBox.Show(ex.Message); 109 | } 110 | finally 111 | { 112 | con.Close(); 113 | } 114 | } 115 | 116 | private void Parchase_Load(object sender, EventArgs e) 117 | { 118 | ComboBoxCategory(); 119 | ComboBoxVendor(); 120 | DataGridPurchase.Columns[4].Width = 240; 121 | RefreshDataGridPurchaseList(); 122 | RefreshDataGridPurchaseDetails(); 123 | btnSearch.Visible = false; 124 | txtSearch.Visible = false; 125 | 126 | } 127 | 128 | private void cmbCatagory_SelectedIndexChanged(object sender, EventArgs e) 129 | { 130 | try { 131 | con.Open(); 132 | cmd.CommandText = "select Brand_ID,Brand_Name from Brand where Category_ID = "+ cmbCategory.SelectedValue; 133 | if (d_Set.Tables.Contains("Brand")) 134 | d_Set.Tables["Brand"].Clear(); 135 | d_Adapter.Fill(d_Set, "Brand"); 136 | cmbBrand.DataSource = d_Set.Tables["Brand"]; 137 | cmbBrand.DisplayMember = "Brand_Name"; 138 | cmbBrand.ValueMember = "Brand_ID"; 139 | con.Close(); 140 | 141 | } 142 | catch(Exception ) 143 | { 144 | //MessageBox.Show(ex.Message); 145 | //con.Close(); 146 | } 147 | finally 148 | { 149 | con.Close(); 150 | } 151 | } 152 | 153 | private void cmbBrand_SelectedIndexChanged(object sender, EventArgs e) 154 | { 155 | try 156 | { 157 | con.Open(); 158 | cmd.CommandText = "select * from Item where Brand_ID = " + cmbBrand.SelectedValue; 159 | if (d_Set.Tables.Contains("Item")) 160 | d_Set.Tables["Item"].Clear(); 161 | d_Adapter.Fill(d_Set, "Item"); 162 | lstItem.DataSource = d_Set.Tables["Item"]; 163 | lstItem.DisplayMember = "Item"; 164 | lstItem.ValueMember = "Item_ID"; 165 | con.Close(); 166 | } 167 | catch (Exception) 168 | { 169 | // MessageBox.Show(ex.Message); 170 | // con.Close(); 171 | } 172 | finally 173 | { 174 | con.Close(); 175 | } 176 | } 177 | 178 | private void lstItem_DoubleClick(object sender, EventArgs e) 179 | { 180 | try 181 | { 182 | int a = DataGridPurchase.Rows.Count; 183 | 184 | DataGridPurchase.Rows.Add(); 185 | 186 | DataGridPurchase.Rows[a].Cells["DataGridItemId"].Value = lstItem.SelectedValue.ToString(); 187 | DataGridPurchase.Rows[a].Cells["DataGridItem"].Value = lstItem.Text.ToString(); 188 | } 189 | catch(Exception ex) 190 | { 191 | MessageBox.Show(ex.Message); 192 | } 193 | } 194 | void CalculateTotal() 195 | { 196 | try 197 | { 198 | int count = DataGridPurchase.Rows.Count; 199 | int i = 0; 200 | int sum = 0; 201 | for (i = 0; i < count; i++) 202 | sum += Convert.ToInt32(DataGridPurchase.Rows[i].Cells["DataGridTotal"].Value); 203 | txtTotal.Text = sum.ToString(); 204 | } 205 | catch (Exception ex) 206 | { 207 | MessageBox.Show(ex.Message); 208 | } 209 | } 210 | private void dataGridBrand_CellLeave(object sender, DataGridViewCellEventArgs e) 211 | { 212 | try 213 | { 214 | int a = DataGridPurchase.CurrentRow.Index; 215 | double price = Convert.ToDouble(DataGridPurchase.Rows[a].Cells["DataGridPrice"].Value); 216 | double quantity = Convert.ToDouble(DataGridPurchase.Rows[a].Cells["DataGridQuantity"].Value); 217 | DataGridPurchase.Rows[a].Cells["DataGridTotal"].Value = (price * quantity).ToString(); 218 | CalculateTotal(); 219 | } 220 | catch (Exception ex) 221 | { 222 | MessageBox.Show(ex.Message); 223 | } 224 | } 225 | private void btnNew_Click(object sender, EventArgs e) 226 | { 227 | try 228 | { 229 | con.Open(); 230 | string str = "select isnull(MAX(Purchase_ID),0)+1 from PurchaseMain"; 231 | cmd.CommandText = str; 232 | txtPurchaseID.Text = cmd.ExecuteScalar().ToString(); 233 | 234 | string sttr = "select isnull(MAX(ID),0)+1 from PurchaseDetails"; 235 | cmd.CommandText = sttr; 236 | DetailID = cmd.ExecuteScalar().ToString(); 237 | con.Close(); 238 | } 239 | catch(Exception ex) 240 | { 241 | MessageBox.Show(ex.Message); 242 | } 243 | //finally 244 | //{ 245 | // con.Close(); 246 | //} 247 | } 248 | public void SaveDetails() 249 | { 250 | try 251 | { 252 | string details; 253 | string Item_ID, Price, Quantity, Total; 254 | int count = DataGridPurchase.Rows.Count; 255 | for (int i = 0; i < count-1; i++) 256 | { 257 | Item_ID = DataGridPurchase.Rows[i].Cells["DataGridItemID"].Value.ToString(); 258 | Price = DataGridPurchase.Rows[i].Cells["DataGridPrice"].Value.ToString(); 259 | Quantity = DataGridPurchase.Rows[i].Cells["DataGridQuantity"].Value.ToString(); 260 | Total = DataGridPurchase.Rows[i].Cells["DataGridTotal"].Value.ToString(); 261 | details = "insert into PurchaseDetails values (" + DetailID + "," + txtPurchaseID.Text + ", " + Item_ID + ", " + Price + "," + Quantity + "," + Total + ",'from Details')"; 262 | cmd.CommandText = details; 263 | cmd.ExecuteNonQuery(); 264 | DetailID =(Convert.ToInt16(DetailID) +1).ToString(); 265 | } 266 | } 267 | catch(Exception ex) 268 | { 269 | MessageBox.Show (ex.Message); 270 | } 271 | //finally 272 | //{ 273 | // con.Close(); 274 | //} 275 | } 276 | public void TotalAmountOfPurchase() 277 | { 278 | try 279 | { 280 | con.Open(); 281 | string str = "select isnull(Sum(Grand_Total),0) from PurchaseMain"; 282 | cmd.CommandText = str; 283 | frm.lblTotalPurchase.Text = cmd.ExecuteScalar().ToString() + " $"; 284 | con.Close(); 285 | } 286 | catch (Exception ex) 287 | { 288 | MessageBox.Show(ex.Message); 289 | } 290 | finally 291 | { 292 | con.Close(); 293 | } 294 | } 295 | 296 | private void btnSave_Click(object sender, EventArgs e) 297 | { 298 | try 299 | { 300 | string str = "insert into PurchaseMain values(" + txtPurchaseID.Text + ", '" + cmbVendor.SelectedValue + "','" + dtpPurchase.Text + "'," + txtTotal.Text + ","+ 2 + ", '" + txtDescription.Text + "')"; 301 | cmd.CommandText = str; 302 | con.Open(); 303 | tr = con.BeginTransaction(); 304 | cmd.Transaction = tr; 305 | cmd.ExecuteNonQuery(); 306 | SaveDetails(); 307 | tr.Commit(); 308 | con.Close(); 309 | 310 | MessageBox.Show("Data Saved Successfully"); 311 | RefreshDataGridPurchaseList(); 312 | RefreshDataGridPurchaseDetails(); 313 | frm.AllCustomers(); 314 | frm.TotalAmountOfPurchase(); 315 | frm.AllPurchase(); 316 | frm.AllSales(); 317 | } 318 | catch(Exception ex) 319 | { 320 | MessageBox.Show(ex.Message); 321 | tr.Rollback(); 322 | } 323 | //finally 324 | //{ 325 | // con.Close(); 326 | // } 327 | } 328 | private void btnClose_Click(object sender, EventArgs e) 329 | { 330 | this.Close(); 331 | } 332 | private void TabControlPurchase_SelectedIndexChanged(object sender, EventArgs e) 333 | { 334 | if (TabControlPurchase.SelectedIndex == 0) 335 | { 336 | btnSearch.Visible = false; 337 | txtSearch.Visible = false; 338 | lblPurchaseHeader.Text = "Purchase Transaction"; 339 | } 340 | if (TabControlPurchase.SelectedIndex == 1) 341 | { 342 | btnSearch.Visible = true; 343 | txtSearch.Visible = true; 344 | lblPurchaseHeader.Text = "Purchase List"; 345 | } 346 | if (TabControlPurchase.SelectedIndex == 2) 347 | { 348 | btnSearch.Visible = true; 349 | txtSearch.Visible = true; 350 | lblPurchaseHeader.Text = "Purchase Details"; 351 | } 352 | } 353 | 354 | private void cmbVendor_SelectedIndexChanged(object sender, EventArgs e) 355 | { 356 | 357 | } 358 | 359 | private void DataGridViewPurchaseList_CellContentClick(object sender, DataGridViewCellEventArgs e) 360 | { 361 | 362 | } 363 | } 364 | } 365 | -------------------------------------------------------------------------------- /Stock_Management/Item.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAADAE 124 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 125 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 126 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACY/40AmP//AJj//wCY//8AmP//AJj//wCY 127 | //8AmP//AJj//wCY//8AmP//AJf/jAAAAAAAAAAAAAAAAAAAAAAAmP+qAJj//wCY//8AmP//AJj//wCY 128 | //8AmP//AIbg/wB90P8AfdD/AI/w/wCY/6oAAAAAAAAAAAAAAAAAAAAAAJj/qgCY//8AmP//AJj//wCY 129 | //8AmP//AJj//wB80f8AfNH/AGGi/wCY//8AmP+qAAAAAAAAAAAAAAAAAAAAAACY/6oAmP//AJj//wCY 130 | //8AmP//AJj//wCY//8AeMr/AHnK/wBipf8AkvX/AJj/qgAAAAAAAAAAAAAAAAAAAAAAmP+qAJj//wCY 131 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY/6oAAAAAAAAAAAAAAAAAAAAAAJj/qgCY 132 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP+qAAAAAAAAAAAAAAAAAAAAAACY 133 | /6oAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj/qgAAAAAAAAAAAAAAAAAA 134 | AAAAmP+qAJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY/6oAAAAAAAAAAAAA 135 | AAAAAAAAAJj/qgCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP+qAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 149 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 150 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 151 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJf/FgCY 152 | /9wAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 153 | //8AmP//AJj//wCY//8AmP//AJj//wCY/9oAnv8VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 154 | AAAAmP9SAJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 155 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY/1IAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 156 | AAAAAAAAAAAAAACZ/1UAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 157 | //8AmP//AI/w/wB80f8AfNH/AHzR/wB80f8AfNH/AIbh/wCY//8AmP//AJn/VQAAAAAAAAAAAAAAAAAA 158 | AAAAAAAAAAAAAAAAAAAAAAAAAJn/VQCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 159 | //8AmP//AJj//wCY//8Aj/D/AHzR/wB80f8AfNH/AHzR/wB80f8AhuH/AJj//wCY//8Amf9VAAAAAAAA 160 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmf9VAJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 161 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AYaL/AGGi/wCY//8AfNH/AEZ1/wCY//8AmP//AJj//wCZ 162 | /1UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZ/1UAmP//AJj//wCY//8AmP//AJj//wCY 163 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wBhov8AYaL/AJj//wB80f8ARnX/AJj//wCY 164 | //8AmP//AJn/VQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJn/VQCY//8AmP//AJj//wCY 165 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AkPP/AEp7/wBKe/8AkPP/AFyZ/wBG 166 | df8AfNH/AJj//wCY//8Amf9VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmf9VAJj//wCY 167 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AftT/AH/U/wCY 168 | //8AkvX/AGuz/wCY//8AmP//AJj//wCZ/1UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZ 169 | /1UAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 170 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJn/VQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 171 | AAAAAAAAAJn/VQCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 172 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8Amf9VAAAAAAAAAAAAAAAAAAAAAAAA 173 | AAAAAAAAAAAAAAAAAAAAmf9VAJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 174 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCZ/1UAAAAAAAAAAAAA 175 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZ/1UAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 176 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJn/VQAA 177 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJn/VQCY//8AmP//AJj//wCY//8AmP//AJj//wCY 178 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 179 | //8Amf9VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmf9VAJj//wCY//8AmP//AJj//wCY 180 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 181 | //8AmP//AJj//wCZ/1UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACZ/1UAmP//AJj//wCY 182 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 183 | //8AmP//AJj//wCY//8AmP//AJn/VQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJn/VQCY 184 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 185 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8Amf9VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 186 | AAAAmf9VAJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 187 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCZ/1UAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 188 | AAAAAAAAAAAAAACZ/1UAmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY 189 | //8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJj//wCY//8AmP//AJn/VQAAAAAAAAAAAAAAAAAA 190 | AAAAAAAAAAAAAAAAAAAtqv8tG6L/cQ+d/80Pnf/ND53/zQ+d/80Pnf/ND53/zQ+d/80Pnf/ND53/zQ+d 191 | /80Pnf/ND53/zQ+d/80Pnf/ND53/zQ+d/80Pnf/ND53/zQ+d/80Pnf/ND53/zQ+d/80bov9xLar/LQAA 192 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAC+q/6ouqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 193 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 194 | //8vqv+qAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL6r/qi6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 195 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 196 | //8uqv//Lqr//y+q/6oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvqv+qLqr//y6q//8uqv//Lqr//y6q 197 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 198 | //8uqv//Lqr//y6q//8uqv//L6r/qgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC6q/6guqv//Lqr//y6q 199 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 200 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv+oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL6v/Ui6q 201 | //Auqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr//y6q 202 | //8uqv//Lqr//y6q//8uqv//Lqr//y6q//8uqv//Lqr/8C2p/1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 203 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 204 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 205 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 206 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 207 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 208 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 209 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 210 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 211 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/////////////////////4AAAf+AAAH/gAAB/4AAAf+AAAH/gA 212 | AB/4AAAf+AAAH/gAAB/4AAAf+AAAH/gAAB/4AAAf+AAAH/gAAB/4AAAf+AAAH/gAAB/4AAAf4AAAB+AA 213 | AAfgAAAH4AAAB/AAAA////////////////////// 214 | 215 | 216 | -------------------------------------------------------------------------------- /Stock_Management/Category.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAADAE 124 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 125 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 126 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 127 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6yo8w+MuPRPjLj0T4y49E+MuPRPjL 128 | j0T4y49E+MuPRPjLj0T4y49E+MuPRPrKjzAAAAAAAAAAAAAAAAD/25IH+cqQ4fnKkP/5ypD/+cqQ//nK 129 | kP/5ypD/+cqQ//nKkP/5ypD/+cqQ//nKkP/5yY/g/9uSBwAAAAD3yY9C+sqQv/nKkP/5ypD/+cqQ//nK 130 | kP/5ypD/+cqQ//nKkP/5ypD/+cqQ//nKkP/5ypD/+cqQ//rLkL73yY9C+cuQqvnKkP/5ypD/+cqQ//nK 131 | kP/fkkD/35JA/9+SQP/fkkD/35JA/9+SQP/5ypD/+cqQ//nKkP/5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AAAAAAA 205 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 206 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 207 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 208 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 209 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 210 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 211 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/////////////////////////////////////4AAAf8AAAD/AA 212 | AA/gAAAHgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAeAAAAfwAAAP8AAAD/gA 213 | AB////////////////////////////////////// 214 | 215 | 216 | -------------------------------------------------------------------------------- /Stock_Management/SignUp.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Stock_Management 2 | { 3 | partial class SignUp 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.txtDescription = new System.Windows.Forms.TextBox(); 32 | this.txtAddress = new System.Windows.Forms.TextBox(); 33 | this.txtContact = new System.Windows.Forms.TextBox(); 34 | this.txtEmail = new System.Windows.Forms.TextBox(); 35 | this.txtName = new System.Windows.Forms.TextBox(); 36 | this.txtPassword = new System.Windows.Forms.TextBox(); 37 | this.txtUsername = new System.Windows.Forms.TextBox(); 38 | this.txtID = new System.Windows.Forms.TextBox(); 39 | this.label1 = new System.Windows.Forms.Label(); 40 | this.label2 = new System.Windows.Forms.Label(); 41 | this.label3 = new System.Windows.Forms.Label(); 42 | this.label4 = new System.Windows.Forms.Label(); 43 | this.label5 = new System.Windows.Forms.Label(); 44 | this.label6 = new System.Windows.Forms.Label(); 45 | this.label7 = new System.Windows.Forms.Label(); 46 | this.label8 = new System.Windows.Forms.Label(); 47 | this.btnLogin = new System.Windows.Forms.Button(); 48 | this.btnSignUp = new System.Windows.Forms.Button(); 49 | this.SuspendLayout(); 50 | // 51 | // txtDescription 52 | // 53 | this.txtDescription.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 54 | this.txtDescription.Location = new System.Drawing.Point(214, 261); 55 | this.txtDescription.Name = "txtDescription"; 56 | this.txtDescription.Size = new System.Drawing.Size(250, 25); 57 | this.txtDescription.TabIndex = 0; 58 | // 59 | // txtAddress 60 | // 61 | this.txtAddress.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 62 | this.txtAddress.Location = new System.Drawing.Point(214, 235); 63 | this.txtAddress.Name = "txtAddress"; 64 | this.txtAddress.Size = new System.Drawing.Size(250, 25); 65 | this.txtAddress.TabIndex = 1; 66 | // 67 | // txtContact 68 | // 69 | this.txtContact.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 70 | this.txtContact.Location = new System.Drawing.Point(214, 209); 71 | this.txtContact.Name = "txtContact"; 72 | this.txtContact.Size = new System.Drawing.Size(250, 25); 73 | this.txtContact.TabIndex = 2; 74 | // 75 | // txtEmail 76 | // 77 | this.txtEmail.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 78 | this.txtEmail.Location = new System.Drawing.Point(214, 183); 79 | this.txtEmail.Name = "txtEmail"; 80 | this.txtEmail.Size = new System.Drawing.Size(250, 25); 81 | this.txtEmail.TabIndex = 3; 82 | // 83 | // txtName 84 | // 85 | this.txtName.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 86 | this.txtName.Location = new System.Drawing.Point(214, 156); 87 | this.txtName.Name = "txtName"; 88 | this.txtName.Size = new System.Drawing.Size(250, 25); 89 | this.txtName.TabIndex = 4; 90 | // 91 | // txtPassword 92 | // 93 | this.txtPassword.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 94 | this.txtPassword.Location = new System.Drawing.Point(214, 130); 95 | this.txtPassword.Name = "txtPassword"; 96 | this.txtPassword.PasswordChar = '*'; 97 | this.txtPassword.Size = new System.Drawing.Size(250, 25); 98 | this.txtPassword.TabIndex = 5; 99 | // 100 | // txtUsername 101 | // 102 | this.txtUsername.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 103 | this.txtUsername.Location = new System.Drawing.Point(214, 104); 104 | this.txtUsername.Name = "txtUsername"; 105 | this.txtUsername.Size = new System.Drawing.Size(250, 25); 106 | this.txtUsername.TabIndex = 6; 107 | // 108 | // txtID 109 | // 110 | this.txtID.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 111 | this.txtID.Location = new System.Drawing.Point(214, 78); 112 | this.txtID.Name = "txtID"; 113 | this.txtID.Size = new System.Drawing.Size(250, 25); 114 | this.txtID.TabIndex = 7; 115 | // 116 | // label1 117 | // 118 | this.label1.AutoSize = true; 119 | this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 120 | this.label1.ForeColor = System.Drawing.Color.White; 121 | this.label1.Location = new System.Drawing.Point(97, 81); 122 | this.label1.Name = "label1"; 123 | this.label1.Size = new System.Drawing.Size(20, 17); 124 | this.label1.TabIndex = 8; 125 | this.label1.Text = "ID"; 126 | // 127 | // label2 128 | // 129 | this.label2.AutoSize = true; 130 | this.label2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 131 | this.label2.ForeColor = System.Drawing.Color.White; 132 | this.label2.Location = new System.Drawing.Point(97, 238); 133 | this.label2.Name = "label2"; 134 | this.label2.Size = new System.Drawing.Size(56, 17); 135 | this.label2.TabIndex = 9; 136 | this.label2.Text = "Address"; 137 | // 138 | // label3 139 | // 140 | this.label3.AutoSize = true; 141 | this.label3.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 142 | this.label3.ForeColor = System.Drawing.Color.White; 143 | this.label3.Location = new System.Drawing.Point(97, 186); 144 | this.label3.Name = "label3"; 145 | this.label3.Size = new System.Drawing.Size(52, 17); 146 | this.label3.TabIndex = 10; 147 | this.label3.Text = "Contact"; 148 | this.label3.Click += new System.EventHandler(this.label3_Click); 149 | // 150 | // label4 151 | // 152 | this.label4.AutoSize = true; 153 | this.label4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 154 | this.label4.ForeColor = System.Drawing.Color.White; 155 | this.label4.Location = new System.Drawing.Point(97, 212); 156 | this.label4.Name = "label4"; 157 | this.label4.Size = new System.Drawing.Size(39, 17); 158 | this.label4.TabIndex = 11; 159 | this.label4.Text = "Email"; 160 | // 161 | // label5 162 | // 163 | this.label5.AutoSize = true; 164 | this.label5.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 165 | this.label5.ForeColor = System.Drawing.Color.White; 166 | this.label5.Location = new System.Drawing.Point(97, 159); 167 | this.label5.Name = "label5"; 168 | this.label5.Size = new System.Drawing.Size(43, 17); 169 | this.label5.TabIndex = 12; 170 | this.label5.Text = "Name"; 171 | // 172 | // label6 173 | // 174 | this.label6.AutoSize = true; 175 | this.label6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 176 | this.label6.ForeColor = System.Drawing.Color.White; 177 | this.label6.Location = new System.Drawing.Point(97, 133); 178 | this.label6.Name = "label6"; 179 | this.label6.Size = new System.Drawing.Size(64, 17); 180 | this.label6.TabIndex = 13; 181 | this.label6.Text = "Password"; 182 | // 183 | // label7 184 | // 185 | this.label7.AutoSize = true; 186 | this.label7.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 187 | this.label7.ForeColor = System.Drawing.Color.White; 188 | this.label7.Location = new System.Drawing.Point(97, 107); 189 | this.label7.Name = "label7"; 190 | this.label7.Size = new System.Drawing.Size(67, 17); 191 | this.label7.TabIndex = 14; 192 | this.label7.Text = "Username"; 193 | // 194 | // label8 195 | // 196 | this.label8.AutoSize = true; 197 | this.label8.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 198 | this.label8.ForeColor = System.Drawing.Color.White; 199 | this.label8.Location = new System.Drawing.Point(97, 264); 200 | this.label8.Name = "label8"; 201 | this.label8.Size = new System.Drawing.Size(74, 17); 202 | this.label8.TabIndex = 15; 203 | this.label8.Text = "Description"; 204 | // 205 | // btnLogin 206 | // 207 | this.btnLogin.Location = new System.Drawing.Point(214, 307); 208 | this.btnLogin.Name = "btnLogin"; 209 | this.btnLogin.Size = new System.Drawing.Size(75, 23); 210 | this.btnLogin.TabIndex = 16; 211 | this.btnLogin.Text = "Login"; 212 | this.btnLogin.UseVisualStyleBackColor = true; 213 | this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); 214 | // 215 | // btnSignUp 216 | // 217 | this.btnSignUp.Location = new System.Drawing.Point(389, 307); 218 | this.btnSignUp.Name = "btnSignUp"; 219 | this.btnSignUp.Size = new System.Drawing.Size(75, 23); 220 | this.btnSignUp.TabIndex = 17; 221 | this.btnSignUp.Text = "SignUp"; 222 | this.btnSignUp.UseVisualStyleBackColor = true; 223 | this.btnSignUp.Click += new System.EventHandler(this.btnSignUp_Click); 224 | // 225 | // SignUp 226 | // 227 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 228 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 229 | this.BackColor = System.Drawing.Color.Teal; 230 | this.ClientSize = new System.Drawing.Size(679, 368); 231 | this.Controls.Add(this.btnSignUp); 232 | this.Controls.Add(this.btnLogin); 233 | this.Controls.Add(this.label8); 234 | this.Controls.Add(this.label7); 235 | this.Controls.Add(this.label6); 236 | this.Controls.Add(this.label5); 237 | this.Controls.Add(this.label4); 238 | this.Controls.Add(this.label3); 239 | this.Controls.Add(this.label2); 240 | this.Controls.Add(this.label1); 241 | this.Controls.Add(this.txtID); 242 | this.Controls.Add(this.txtUsername); 243 | this.Controls.Add(this.txtPassword); 244 | this.Controls.Add(this.txtName); 245 | this.Controls.Add(this.txtEmail); 246 | this.Controls.Add(this.txtContact); 247 | this.Controls.Add(this.txtAddress); 248 | this.Controls.Add(this.txtDescription); 249 | this.Name = "SignUp"; 250 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 251 | this.Text = "SignUp"; 252 | this.Load += new System.EventHandler(this.SignUp_Load); 253 | this.ResumeLayout(false); 254 | this.PerformLayout(); 255 | 256 | } 257 | 258 | #endregion 259 | 260 | private System.Windows.Forms.TextBox txtDescription; 261 | private System.Windows.Forms.TextBox txtAddress; 262 | private System.Windows.Forms.TextBox txtContact; 263 | private System.Windows.Forms.TextBox txtEmail; 264 | private System.Windows.Forms.TextBox txtName; 265 | private System.Windows.Forms.TextBox txtPassword; 266 | private System.Windows.Forms.TextBox txtUsername; 267 | private System.Windows.Forms.TextBox txtID; 268 | private System.Windows.Forms.Label label1; 269 | private System.Windows.Forms.Label label2; 270 | private System.Windows.Forms.Label label3; 271 | private System.Windows.Forms.Label label4; 272 | private System.Windows.Forms.Label label5; 273 | private System.Windows.Forms.Label label6; 274 | private System.Windows.Forms.Label label7; 275 | private System.Windows.Forms.Label label8; 276 | private System.Windows.Forms.Button btnLogin; 277 | private System.Windows.Forms.Button btnSignUp; 278 | } 279 | } -------------------------------------------------------------------------------- /Stock_Management/Main page.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using System.Data.SqlClient; 11 | 12 | namespace Stock_Management 13 | { 14 | public partial class Main_Page : MetroFramework.Forms.MetroForm 15 | { 16 | SqlConnection con = new SqlConnection("data source =DESKTOP-R7SN7US\\NASRATSQL; initial catalog = stockmgt; integrated security = true;"); 17 | SqlCommand cmd = new SqlCommand(); 18 | SqlDataAdapter d_Adapter = new SqlDataAdapter(); 19 | DataSet d_Set = new DataSet(); 20 | SqlDataReader D_Reader; 21 | public Main_Page() 22 | { 23 | InitializeComponent(); 24 | cmd.Connection = con; 25 | d_Adapter.SelectCommand = cmd; 26 | } 27 | private void btnPurchase_Click(object sender, EventArgs e) 28 | { 29 | this.btnPurchase.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 30 | btnCategory.BackColor = Color.Teal; 31 | btnBrand.BackColor = Color.Teal; 32 | btnItem.BackColor = Color.Teal; 33 | btnCustomer.BackColor = Color.Teal; 34 | btnVendor.BackColor = Color.Teal; 35 | btnSale.BackColor = Color.Teal; 36 | btnLogin.BackColor = Color.Teal; 37 | btnAbout.BackColor = Color.Teal; 38 | btnSidePanel.Height = btnPurchase.Height; 39 | btnSidePanel.Top = btnPurchase.Top; 40 | } 41 | 42 | private void btnCategory_Click(object sender, EventArgs e) 43 | { 44 | this.btnCategory.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 45 | btnPurchase.BackColor = Color.Teal; 46 | btnBrand.BackColor = Color.Teal; 47 | btnItem.BackColor = Color.Teal; 48 | btnCustomer.BackColor = Color.Teal; 49 | btnVendor.BackColor = Color.Teal; 50 | btnSale.BackColor = Color.Teal; 51 | btnLogin.BackColor = Color.Teal; 52 | btnAbout.BackColor = Color.Teal; 53 | btnSidePanel.Height = btnCategory.Height; 54 | btnSidePanel.Top = btnCategory.Top; 55 | } 56 | 57 | private void btnBrand_Click(object sender, EventArgs e) 58 | { 59 | this.btnBrand.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 60 | btnCategory.BackColor = Color.Teal; 61 | btnPurchase.BackColor = Color.Teal; 62 | btnItem.BackColor = Color.Teal; 63 | btnCustomer.BackColor = Color.Teal; 64 | btnVendor.BackColor = Color.Teal; 65 | btnSale.BackColor = Color.Teal; 66 | btnLogin.BackColor = Color.Teal; 67 | btnAbout.BackColor = Color.Teal; 68 | btnSidePanel.Height = btnBrand.Height; 69 | btnSidePanel.Top = btnBrand.Top; 70 | } 71 | 72 | private void btnItem_Click(object sender, EventArgs e) 73 | { 74 | this.btnItem.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 75 | btnCategory.BackColor = Color.Teal; 76 | btnBrand.BackColor = Color.Teal; 77 | btnPurchase.BackColor = Color.Teal; 78 | btnCustomer.BackColor = Color.Teal; 79 | btnVendor.BackColor = Color.Teal; 80 | btnSale.BackColor = Color.Teal; 81 | btnLogin.BackColor = Color.Teal; 82 | btnAbout.BackColor = Color.Teal; 83 | btnSidePanel.Height = btnItem.Height; 84 | btnSidePanel.Top = btnItem.Top; 85 | } 86 | 87 | private void btnCustomer_Click(object sender, EventArgs e) 88 | { 89 | this.btnCustomer.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 90 | btnCategory.BackColor = Color.Teal; 91 | btnBrand.BackColor = Color.Teal; 92 | btnItem.BackColor = Color.Teal; 93 | btnPurchase.BackColor = Color.Teal; 94 | btnVendor.BackColor = Color.Teal; 95 | btnSale.BackColor = Color.Teal; 96 | btnLogin.BackColor = Color.Teal; 97 | btnAbout.BackColor = Color.Teal; 98 | btnSidePanel.Height = btnCustomer.Height; 99 | btnSidePanel.Top = btnCustomer.Top; 100 | } 101 | 102 | private void btnVendor_Click(object sender, EventArgs e) 103 | { 104 | this.btnVendor.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 105 | btnCategory.BackColor = Color.Teal; 106 | btnBrand.BackColor = Color.Teal; 107 | btnItem.BackColor = Color.Teal; 108 | btnCustomer.BackColor = Color.Teal; 109 | btnPurchase.BackColor = Color.Teal; 110 | btnSale.BackColor = Color.Teal; 111 | btnLogin.BackColor = Color.Teal; 112 | btnAbout.BackColor = Color.Teal; 113 | btnSidePanel.Height = btnVendor.Height; 114 | btnSidePanel.Top = btnVendor.Top; 115 | } 116 | 117 | private void btnSale_Click(object sender, EventArgs e) 118 | { 119 | this.btnSale.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 120 | btnCategory.BackColor = Color.Teal; 121 | btnBrand.BackColor = Color.Teal; 122 | btnItem.BackColor = Color.Teal; 123 | btnCustomer.BackColor = Color.Teal; 124 | btnVendor.BackColor = Color.Teal; 125 | btnPurchase.BackColor = Color.Teal; 126 | btnLogin.BackColor = Color.Teal; 127 | btnAbout.BackColor = Color.Teal; 128 | btnSidePanel.Height = btnSale.Height; 129 | btnSidePanel.Top = btnSale.Top; 130 | } 131 | 132 | private void btnLogin_Click(object sender, EventArgs e) 133 | { 134 | this.btnLogin.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 135 | btnCategory.BackColor = Color.Teal; 136 | btnBrand.BackColor = Color.Teal; 137 | btnItem.BackColor = Color.Teal; 138 | btnCustomer.BackColor = Color.Teal; 139 | btnVendor.BackColor = Color.Teal; 140 | btnSale.BackColor = Color.Teal; 141 | btnPurchase.BackColor = Color.Teal; 142 | btnAbout.BackColor = Color.Teal; 143 | btnSidePanel.Height = btnLogin.Height; 144 | btnSidePanel.Top = btnLogin.Top; 145 | } 146 | 147 | private void btnAbout_Click(object sender, EventArgs e) 148 | { 149 | this.btnAbout.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(150)))), ((int)(((byte)(150))))); 150 | btnCategory.BackColor = Color.Teal; 151 | btnBrand.BackColor = Color.Teal; 152 | btnItem.BackColor = Color.Teal; 153 | btnCustomer.BackColor = Color.Teal; 154 | btnVendor.BackColor = Color.Teal; 155 | btnSale.BackColor = Color.Teal; 156 | btnLogin.BackColor = Color.Teal; 157 | btnPurchase.BackColor = Color.Teal; 158 | btnSidePanel.Height = btnAbout.Height; 159 | btnSidePanel.Top = btnAbout.Top; 160 | } 161 | 162 | private void purchaseToolStripMenuItem_Click(object sender, EventArgs e) 163 | { 164 | Purchase frm = new Purchase(); 165 | //frm.MdiParent = this; 166 | frm.Show(); 167 | AllPurchase(); 168 | AllSales(); 169 | AllCustomers(); 170 | TotalAmountOfPurchase(); 171 | } 172 | 173 | private void catagoryToolStripMenuItem1_Click(object sender, EventArgs e) 174 | { 175 | Category frm = new Category(); 176 | frm.Show(); 177 | AllPurchase(); 178 | AllSales(); 179 | AllCustomers(); 180 | TotalAmountOfPurchase(); 181 | } 182 | 183 | private void brandToolStripMenuItem1_Click(object sender, EventArgs e) 184 | { 185 | Brand frm = new Brand(); 186 | frm.Show(); 187 | AllPurchase(); 188 | AllSales(); 189 | AllCustomers(); 190 | TotalAmountOfPurchase(); 191 | } 192 | 193 | private void itemToolStripMenuItem1_Click(object sender, EventArgs e) 194 | { 195 | Item frm = new Item(); 196 | frm.Show(); 197 | AllPurchase(); 198 | AllSales(); 199 | AllCustomers(); 200 | TotalAmountOfPurchase(); 201 | } 202 | 203 | private void vendorToolStripMenuItem1_Click(object sender, EventArgs e) 204 | { 205 | Vendor frm = new Vendor(); 206 | frm.Show(); 207 | AllPurchase(); 208 | AllSales(); 209 | AllCustomers(); 210 | TotalAmountOfPurchase(); 211 | } 212 | 213 | private void customerToolStripMenuItem1_Click(object sender, EventArgs e) 214 | { 215 | Customer frm = new Customer(); 216 | frm.Show(); 217 | AllPurchase(); 218 | AllSales(); 219 | AllCustomers(); 220 | TotalAmountOfPurchase(); 221 | } 222 | 223 | private void saleToolStripMenuItem1_Click(object sender, EventArgs e) 224 | { 225 | Sale frm = new Sale(); 226 | frm.Show(); 227 | AllPurchase(); 228 | AllSales(); 229 | AllCustomers(); 230 | TotalAmountOfPurchase(); 231 | } 232 | 233 | private void loginToolStripMenuItem1_Click(object sender, EventArgs e) 234 | { 235 | Login frm = new Login(); 236 | frm.Show(); 237 | } 238 | 239 | private void btnShowPanel_Click(object sender, EventArgs e) 240 | { 241 | SidePanelMainPage.Location = new Point(0, 24); 242 | SidePanelMainPage.Size = new Size(209,576); 243 | btnShowPanel.Visible = false; 244 | btnHidePanel.Visible = true; 245 | } 246 | 247 | private void btnHidePanel_Click(object sender, EventArgs e) 248 | { 249 | SidePanelMainPage.Location = new Point(0, 24); 250 | SidePanelMainPage.Size = new Size(54, 576); 251 | btnShowPanel.Visible = true; 252 | btnHidePanel.Visible = false; 253 | } 254 | public void AllPurchase() 255 | { 256 | try 257 | { 258 | con.Open(); 259 | string str = "select isnull(MAX(Purchase_ID),0) from PurchaseMain"; 260 | cmd.CommandText = str; 261 | lblAllPurchase.Text = cmd.ExecuteScalar().ToString(); 262 | con.Close(); 263 | } 264 | catch (Exception ex) 265 | { 266 | MessageBox.Show(ex.Message); 267 | } 268 | finally 269 | { 270 | con.Close(); 271 | } 272 | } 273 | public void AllSales() 274 | { 275 | try 276 | { 277 | con.Open(); 278 | string str = "select isnull(MAX(Sale_ID),0) from SaleMain"; 279 | cmd.CommandText = str; 280 | lblAllSales.Text = cmd.ExecuteScalar().ToString(); 281 | con.Close(); 282 | } 283 | catch (Exception ex) 284 | { 285 | MessageBox.Show(ex.Message); 286 | } 287 | finally 288 | { 289 | con.Close(); 290 | } 291 | } 292 | public void AllCustomers() 293 | { 294 | try 295 | { 296 | con.Open(); 297 | string str = "select isnull(SUM(Grand_Total),0) from SaleMain"; 298 | cmd.CommandText = str; 299 | lblAllCustomer.Text = cmd.ExecuteScalar().ToString()+" $"; 300 | con.Close(); 301 | } 302 | catch (Exception ex) 303 | { 304 | MessageBox.Show(ex.Message); 305 | } 306 | finally 307 | { 308 | con.Close(); 309 | } 310 | } 311 | public void TotalAmountOfPurchase() 312 | { 313 | try 314 | { 315 | con.Open(); 316 | string str = "select isnull(SUM(Grand_Total),0) from PurchaseMain"; 317 | cmd.CommandText = str; 318 | lblTotalPurchase.Text = cmd.ExecuteScalar().ToString()+" $"; 319 | con.Close(); 320 | } 321 | catch (Exception ex) 322 | { 323 | MessageBox.Show(ex.Message); 324 | } 325 | finally 326 | { 327 | con.Close(); 328 | } 329 | } 330 | 331 | private void Main_Page_Load(object sender, EventArgs e) 332 | { 333 | // TODO: This line of code loads data into the 'stockmgtDataSet.ParchaseMain' table. You can move, or remove it, as needed. 334 | //this.parchaseMainTableAdapter.Fill(this.stockmgtDataSet.ParchaseMain); 335 | AllPurchase(); 336 | AllSales(); 337 | AllCustomers(); 338 | TotalAmountOfPurchase(); 339 | try 340 | { 341 | con.Open(); 342 | cmd.CommandText = "select Purchase_ID, Grand_Total from PurchaseMain where Purchase_ID <3"; 343 | DataTable dt = new DataTable(); 344 | d_Adapter.Fill(dt); 345 | ChartPurchase.DataSource = dt; 346 | ChartPurchase.Series["Series1"].XValueMember = "Purchase_ID"; 347 | ChartPurchase.Series["Series1"].YValueMembers = "Grand_Total"; 348 | 349 | ChartPurchase.Series["Series2"].XValueMember = "Purchase_ID"; 350 | ChartPurchase.Series["Series2"].YValueMembers = "Grand_Total"; 351 | 352 | ChartPurchase.Series["Series3"].XValueMember = "Purchase_ID"; 353 | ChartPurchase.Series["Series3"].YValueMembers = "Grand_Total"; 354 | con.Close(); 355 | } 356 | catch (Exception ex) 357 | { 358 | MessageBox.Show(ex.Message); 359 | } 360 | /* 361 | this.ChartPurchase.Series["Purchase_ID"].Points.AddXY(5,"Nasratullah Shafiq"); 362 | this.ChartPurchase.Series["Purchase_ID"].Points.AddXY(5,"Abdullah Shafiq"); 363 | this.ChartPurchase.Series["Purchase_ID"].Points.AddXY(6,"Aminullah Naeem"); 364 | this.ChartPurchase.Series["Purchase_ID"].Points.AddXY(9,"Samiullah Faqeerzada");*/ 365 | } 366 | 367 | private void chart1_Click(object sender, EventArgs e) 368 | { 369 | 370 | } 371 | } 372 | } 373 | -------------------------------------------------------------------------------- /Stock_Management/Purchase.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | True 122 | 123 | 124 | True 125 | 126 | 127 | True 128 | 129 | 130 | True 131 | 132 | 133 | True 134 | 135 | 136 | 137 | 138 | AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAADAE 139 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 140 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 141 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE9GNnFZUD7vTUY5KAAA 142 | AAAAAAAAT0Y2cVlQPu9NRjkoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQRzdwWVA96U5I 143 | NCcAAAAAAAAAAFBHN3BZUD3pTkg0JwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACIlgBLiJYA5YiW 144 | AP+IlgD/iJYA/4iWAP+IlgD/iJYA/4eWAFUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiJYA5IiV 145 | AKmHlgBVh5YAVYeWAFWHlgBVh5YAVYeWAFWJkgAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIiW 146 | AP+GlgCBh5YARIeWAESHlgBEh5YARIeWAESHlgBEgJ8ACAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 222 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 223 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 224 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 225 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 226 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////////////4/j//+H4f//h+H//4/j//8AAf/+A 227 | AH//AAD//x////8f////AAD//wAAf/8AAH//D/4//x/+P/8f/x//H78f/j8fn/4+D4/+PAeP/H8fx/x/ 228 | H8fg/x//wP8f/8H/H/////////////////////// 229 | 230 | 231 | --------------------------------------------------------------------------------