commit 0d4797441671b06897381b995fc53c605ff02226 Author: Sewmina Date: Sun Aug 25 22:32:44 2024 +0530 init diff --git a/.vs/PayrollSystem/FileContentIndex/0e14e702-14d6-4a37-badd-c265c9ba97ed.vsidx b/.vs/PayrollSystem/FileContentIndex/0e14e702-14d6-4a37-badd-c265c9ba97ed.vsidx new file mode 100644 index 0000000..5b8b01a Binary files /dev/null and b/.vs/PayrollSystem/FileContentIndex/0e14e702-14d6-4a37-badd-c265c9ba97ed.vsidx differ diff --git a/.vs/PayrollSystem/FileContentIndex/490b4072-7d49-4f6f-b86a-0ba42895faa4.vsidx b/.vs/PayrollSystem/FileContentIndex/490b4072-7d49-4f6f-b86a-0ba42895faa4.vsidx new file mode 100644 index 0000000..e58e72a Binary files /dev/null and b/.vs/PayrollSystem/FileContentIndex/490b4072-7d49-4f6f-b86a-0ba42895faa4.vsidx differ diff --git a/.vs/PayrollSystem/FileContentIndex/549860a6-d296-414a-a66f-292a974fe853.vsidx b/.vs/PayrollSystem/FileContentIndex/549860a6-d296-414a-a66f-292a974fe853.vsidx new file mode 100644 index 0000000..eaf9027 Binary files /dev/null and b/.vs/PayrollSystem/FileContentIndex/549860a6-d296-414a-a66f-292a974fe853.vsidx differ diff --git a/.vs/PayrollSystem/FileContentIndex/592de7aa-722a-40c1-a260-d833a5e44a38.vsidx b/.vs/PayrollSystem/FileContentIndex/592de7aa-722a-40c1-a260-d833a5e44a38.vsidx new file mode 100644 index 0000000..3eab787 Binary files /dev/null and b/.vs/PayrollSystem/FileContentIndex/592de7aa-722a-40c1-a260-d833a5e44a38.vsidx differ diff --git a/.vs/PayrollSystem/FileContentIndex/7043ade8-b068-468a-b2d9-e08aa713d85c.vsidx b/.vs/PayrollSystem/FileContentIndex/7043ade8-b068-468a-b2d9-e08aa713d85c.vsidx new file mode 100644 index 0000000..0b0aac0 Binary files /dev/null and b/.vs/PayrollSystem/FileContentIndex/7043ade8-b068-468a-b2d9-e08aa713d85c.vsidx differ diff --git a/.vs/PayrollSystem/v17/.suo b/.vs/PayrollSystem/v17/.suo new file mode 100644 index 0000000..29309a9 Binary files /dev/null and b/.vs/PayrollSystem/v17/.suo differ diff --git a/.vs/PayrollSystem/v17/DocumentLayout.json b/.vs/PayrollSystem/v17/DocumentLayout.json new file mode 100644 index 0000000..bd9cb17 --- /dev/null +++ b/.vs/PayrollSystem/v17/DocumentLayout.json @@ -0,0 +1,152 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form_dashboard.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form_dashboard.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form_dashboard.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form_dashboard.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form_main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form_main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\payrolldbdataset.xsd||{07AC752B-D2B0-4DCD-AD9C-237BF561A30A}", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\payrolldbdataset.xsd||{07AC752B-D2B0-4DCD-AD9C-237BF561A30A}" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form_main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form_main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|c:\\users\\warlock\\source\\repos\\payrollsystem\\payrollsystem\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F11EDBAB-9CD5-45D6-A949-595713DC63E2}|PayrollSystem\\PayrollSystem.csproj|solutionrelative:payrollsystem\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "form_dashboard.cs", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_dashboard.cs", + "RelativeDocumentMoniker": "PayrollSystem\\form_dashboard.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_dashboard.cs", + "RelativeToolTip": "PayrollSystem\\form_dashboard.cs", + "ViewState": "AQIAAAYAAAAAAAAAAAAIwDYAAABFAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T11:01:49.474Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "payrolldbDataSet.xsd", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\payrolldbDataSet.xsd", + "RelativeDocumentMoniker": "PayrollSystem\\payrolldbDataSet.xsd", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\payrolldbDataSet.xsd", + "RelativeToolTip": "PayrollSystem\\payrolldbDataSet.xsd", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003579|", + "WhenOpened": "2024-08-25T10:05:24.481Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Program.cs", + "RelativeDocumentMoniker": "PayrollSystem\\Program.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Program.cs", + "RelativeToolTip": "PayrollSystem\\Program.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAgAAAAEAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T10:05:19.141Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 7, + "Title": "Form1.cs", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Form1.cs", + "RelativeDocumentMoniker": "PayrollSystem\\Form1.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Form1.cs", + "RelativeToolTip": "PayrollSystem\\Form1.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAABwAAABTAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T06:05:16.764Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "form_main.cs", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_main.cs", + "RelativeDocumentMoniker": "PayrollSystem\\form_main.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_main.cs", + "RelativeToolTip": "PayrollSystem\\form_main.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAABgAAAAkAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T06:04:04.236Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "form_dashboard.cs [Design]", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_dashboard.cs", + "RelativeDocumentMoniker": "PayrollSystem\\form_dashboard.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_dashboard.cs [Design]", + "RelativeToolTip": "PayrollSystem\\form_dashboard.cs [Design]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T05:38:00.048Z", + "EditorCaption": " [Design]" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "form_main.cs [Design]", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_main.cs", + "RelativeDocumentMoniker": "PayrollSystem\\form_main.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\form_main.cs [Design]", + "RelativeToolTip": "PayrollSystem\\form_main.cs [Design]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T05:32:49.675Z", + "EditorCaption": " [Design]" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "Form1.cs [Design]", + "DocumentMoniker": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Form1.cs", + "RelativeDocumentMoniker": "PayrollSystem\\Form1.cs", + "ToolTip": "C:\\Users\\warlock\\source\\repos\\PayrollSystem\\PayrollSystem\\Form1.cs [Design]", + "RelativeToolTip": "PayrollSystem\\Form1.cs [Design]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-25T05:21:39.964Z", + "EditorCaption": " [Design]" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/PayrollSystem.sln b/PayrollSystem.sln new file mode 100644 index 0000000..08c999d --- /dev/null +++ b/PayrollSystem.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.35122.118 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PayrollSystem", "PayrollSystem\PayrollSystem.csproj", "{F11EDBAB-9CD5-45D6-A949-595713DC63E2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F11EDBAB-9CD5-45D6-A949-595713DC63E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F11EDBAB-9CD5-45D6-A949-595713DC63E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F11EDBAB-9CD5-45D6-A949-595713DC63E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F11EDBAB-9CD5-45D6-A949-595713DC63E2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CC96BEBD-3FAF-48FB-A63B-92B896FECA1C} + EndGlobalSection +EndGlobal diff --git a/PayrollSystem/App.config b/PayrollSystem/App.config new file mode 100644 index 0000000..0d7614d --- /dev/null +++ b/PayrollSystem/App.config @@ -0,0 +1,13 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/PayrollSystem/Form1.Designer.cs b/PayrollSystem/Form1.Designer.cs new file mode 100644 index 0000000..c710bdf --- /dev/null +++ b/PayrollSystem/Form1.Designer.cs @@ -0,0 +1,127 @@ +namespace PayrollSystem +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.lblTitle = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // lblTitle + // + this.lblTitle.AutoSize = true; + this.lblTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblTitle.Location = new System.Drawing.Point(79, 33); + this.lblTitle.Name = "lblTitle"; + this.lblTitle.Size = new System.Drawing.Size(601, 37); + this.lblTitle.TabIndex = 0; + this.lblTitle.Text = "Welcome to Payroll Management System"; + // + // textBox1 + // + this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(200, 118); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(379, 32); + this.textBox1.TabIndex = 1; + this.textBox1.Text = "admin"; + // + // textBox2 + // + this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Location = new System.Drawing.Point(200, 156); + this.textBox2.Name = "textBox2"; + this.textBox2.PasswordChar = '*'; + this.textBox2.Size = new System.Drawing.Size(379, 32); + this.textBox2.TabIndex = 2; + this.textBox2.Text = "pass"; + // + // button1 + // + this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.Location = new System.Drawing.Point(285, 218); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(184, 48); + this.button1.TabIndex = 3; + this.button1.Text = "Login"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(111, 125); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(83, 20); + this.label1.TabIndex = 4; + this.label1.Text = "Username"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(116, 163); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(78, 20); + this.label2.TabIndex = 5; + this.label2.Text = "Password"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(725, 301); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.lblTitle); + this.Name = "Form1"; + this.Text = "Payroll Login"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lblTitle; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + } +} + diff --git a/PayrollSystem/Form1.cs b/PayrollSystem/Form1.cs new file mode 100644 index 0000000..8e0f638 --- /dev/null +++ b/PayrollSystem/Form1.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PayrollSystem +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + if(textBox1.Text == "admin" && textBox2.Text == "pass") { + this.Hide(); + form_main mainForm = new form_main(); + mainForm.Show(); + } + else + { + MessageBox.Show( "Please enter correct credentials to login","Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } +} diff --git a/PayrollSystem/Form1.resx b/PayrollSystem/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PayrollSystem/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PayrollSystem/PayrollSystem.csproj b/PayrollSystem/PayrollSystem.csproj new file mode 100644 index 0000000..879aa4a --- /dev/null +++ b/PayrollSystem/PayrollSystem.csproj @@ -0,0 +1,162 @@ + + + + + Debug + AnyCPU + {F11EDBAB-9CD5-45D6-A949-595713DC63E2} + WinExe + PayrollSystem + PayrollSystem + v4.7.2 + 512 + true + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + Form + + + form_dashboard.cs + + + Form + + + form_employees.cs + + + Form + + + form_main.cs + + + True + True + payrolldbDataSet.xsd + + + + + Form1.cs + + + form_dashboard.cs + + + form_employees.cs + + + form_main.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + payrolldbDataSet.xsd + + + MSDataSetGenerator + payrolldbDataSet.Designer.cs + Designer + + + payrolldbDataSet.xsd + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + Always + + + Always + payrolldb.mdf + + + + + False + Microsoft .NET Framework 4.7.2 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/PayrollSystem/PayrollSystem.csproj.user b/PayrollSystem/PayrollSystem.csproj.user new file mode 100644 index 0000000..626fbdd --- /dev/null +++ b/PayrollSystem/PayrollSystem.csproj.user @@ -0,0 +1,13 @@ + + + + + + + + + + en-US + false + + \ No newline at end of file diff --git a/PayrollSystem/Program.cs b/PayrollSystem/Program.cs new file mode 100644 index 0000000..8525d04 --- /dev/null +++ b/PayrollSystem/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PayrollSystem +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/PayrollSystem/Properties/AssemblyInfo.cs b/PayrollSystem/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..87a2037 --- /dev/null +++ b/PayrollSystem/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PayrollSystem")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PayrollSystem")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f11edbab-9cd5-45d6-a949-595713dc63e2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PayrollSystem/Properties/Resources.Designer.cs b/PayrollSystem/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f93b788 --- /dev/null +++ b/PayrollSystem/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PayrollSystem.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PayrollSystem.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/PayrollSystem/Properties/Resources.resx b/PayrollSystem/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/PayrollSystem/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PayrollSystem/Properties/Settings.Designer.cs b/PayrollSystem/Properties/Settings.Designer.cs new file mode 100644 index 0000000..a4eb625 --- /dev/null +++ b/PayrollSystem/Properties/Settings.Designer.cs @@ -0,0 +1,37 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PayrollSystem.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\payrolldb.mdf" + + ";Integrated Security=True;Connect Timeout=30")] + public string payrolldbConnectionString { + get { + return ((string)(this["payrolldbConnectionString"])); + } + } + } +} diff --git a/PayrollSystem/Properties/Settings.settings b/PayrollSystem/Properties/Settings.settings new file mode 100644 index 0000000..b910a9d --- /dev/null +++ b/PayrollSystem/Properties/Settings.settings @@ -0,0 +1,14 @@ + + + + + + <?xml version="1.0" encoding="utf-16"?> +<SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <ConnectionString>Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\payrolldb.mdf;Integrated Security=True;Connect Timeout=30</ConnectionString> + <ProviderName>System.Data.SqlClient</ProviderName> +</SerializableConnectionString> + Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\payrolldb.mdf;Integrated Security=True;Connect Timeout=30 + + + \ No newline at end of file diff --git a/PayrollSystem/bin/Debug/PayrollSystem.exe b/PayrollSystem/bin/Debug/PayrollSystem.exe new file mode 100644 index 0000000..4521a28 Binary files /dev/null and b/PayrollSystem/bin/Debug/PayrollSystem.exe differ diff --git a/PayrollSystem/bin/Debug/PayrollSystem.exe.config b/PayrollSystem/bin/Debug/PayrollSystem.exe.config new file mode 100644 index 0000000..0d7614d --- /dev/null +++ b/PayrollSystem/bin/Debug/PayrollSystem.exe.config @@ -0,0 +1,13 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/PayrollSystem/bin/Debug/PayrollSystem.pdb b/PayrollSystem/bin/Debug/PayrollSystem.pdb new file mode 100644 index 0000000..6972ffc Binary files /dev/null and b/PayrollSystem/bin/Debug/PayrollSystem.pdb differ diff --git a/PayrollSystem/bin/Debug/payrolldb.mdf b/PayrollSystem/bin/Debug/payrolldb.mdf new file mode 100644 index 0000000..722eb55 Binary files /dev/null and b/PayrollSystem/bin/Debug/payrolldb.mdf differ diff --git a/PayrollSystem/bin/Debug/payrolldb_log.ldf b/PayrollSystem/bin/Debug/payrolldb_log.ldf new file mode 100644 index 0000000..1dd0877 Binary files /dev/null and b/PayrollSystem/bin/Debug/payrolldb_log.ldf differ diff --git a/PayrollSystem/form_dashboard.Designer.cs b/PayrollSystem/form_dashboard.Designer.cs new file mode 100644 index 0000000..6036a6d --- /dev/null +++ b/PayrollSystem/form_dashboard.Designer.cs @@ -0,0 +1,136 @@ +namespace PayrollSystem +{ + partial class form_dashboard + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.lbl_employee_count = new System.Windows.Forms.Label(); + this.lbl_departments_count = new System.Windows.Forms.Label(); + this.lbl_pay_amount = new System.Windows.Forms.Label(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.lbl_pay_amount); + this.groupBox1.Controls.Add(this.lbl_departments_count); + this.groupBox1.Controls.Add(this.lbl_employee_count); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(332, 134); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Statistics"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(28, 27); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(91, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Total Employees :"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(19, 51); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(100, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Total Departments :"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(22, 94); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(97, 13); + this.label3.TabIndex = 2; + this.label3.Text = "Total Pay Amount :"; + // + // lbl_employee_count + // + this.lbl_employee_count.AutoSize = true; + this.lbl_employee_count.Location = new System.Drawing.Point(125, 27); + this.lbl_employee_count.Name = "lbl_employee_count"; + this.lbl_employee_count.Size = new System.Drawing.Size(13, 13); + this.lbl_employee_count.TabIndex = 3; + this.lbl_employee_count.Text = "0"; + // + // lbl_departments_count + // + this.lbl_departments_count.AutoSize = true; + this.lbl_departments_count.Location = new System.Drawing.Point(125, 51); + this.lbl_departments_count.Name = "lbl_departments_count"; + this.lbl_departments_count.Size = new System.Drawing.Size(13, 13); + this.lbl_departments_count.TabIndex = 4; + this.lbl_departments_count.Text = "0"; + // + // lbl_pay_amount + // + this.lbl_pay_amount.AutoSize = true; + this.lbl_pay_amount.Location = new System.Drawing.Point(125, 94); + this.lbl_pay_amount.Name = "lbl_pay_amount"; + this.lbl_pay_amount.Size = new System.Drawing.Size(13, 13); + this.lbl_pay_amount.TabIndex = 5; + this.lbl_pay_amount.Text = "0"; + // + // form_dashboard + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1047, 657); + this.Controls.Add(this.groupBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "form_dashboard"; + this.Text = "form_dashboard"; + this.Load += new System.EventHandler(this.form_dashboard_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lbl_pay_amount; + private System.Windows.Forms.Label lbl_departments_count; + private System.Windows.Forms.Label lbl_employee_count; + } +} \ No newline at end of file diff --git a/PayrollSystem/form_dashboard.cs b/PayrollSystem/form_dashboard.cs new file mode 100644 index 0000000..570b2a9 --- /dev/null +++ b/PayrollSystem/form_dashboard.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Data.SqlClient; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PayrollSystem +{ + public partial class form_dashboard : Form + { + string conString = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\payrolldb.mdf;Integrated Security=True;Connect Timeout=30"; + + int employeeCount = 0; + int departmentsCount = 0; + + int totalPayAmount = 0; + + public form_dashboard() + { + InitializeComponent(); + } + + private void form_dashboard_Load(object sender, EventArgs e) + { + using (SqlConnection con = new SqlConnection(conString)) + { + con.Open(); + using (SqlCommand cmd = new SqlCommand("SELECT COUNT(id) FROM Departments", con)) + { + departmentsCount = (int)cmd.ExecuteScalar(); + } + + using (SqlCommand cmd = new SqlCommand("SELECT Employees.ID, Departments.Basic as basic, Employees.Allowance as allowance FROM Employees JOIN Departments ON Employees.Department_ID=Departments.ID", con)) + { + using (SqlDataReader reader = cmd.ExecuteReader()) + { + while (reader.Read()) { + int basic = int.Parse(reader["basic"].ToString()); + int allowance = int.Parse(reader["allowance"].ToString()); + + totalPayAmount += basic + allowance; + employeeCount++; + } + } + } + } + + lbl_pay_amount.Text = totalPayAmount.ToString(); + lbl_employee_count.Text = employeeCount.ToString(); + lbl_departments_count.Text = departmentsCount.ToString(); + } + } +} diff --git a/PayrollSystem/form_dashboard.resx b/PayrollSystem/form_dashboard.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PayrollSystem/form_dashboard.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PayrollSystem/form_employees.Designer.cs b/PayrollSystem/form_employees.Designer.cs new file mode 100644 index 0000000..f2f0300 --- /dev/null +++ b/PayrollSystem/form_employees.Designer.cs @@ -0,0 +1,284 @@ +namespace PayrollSystem +{ + partial class form_employees + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.list_employees = new System.Windows.Forms.ListView(); + this.txtID = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.txtName = new System.Windows.Forms.TextBox(); + this.btnSearch = new System.Windows.Forms.Button(); + this.btnReset = new System.Windows.Forms.Button(); + this.combo_department = new System.Windows.Forms.ComboBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.combo_date_type = new System.Windows.Forms.ComboBox(); + this.joined_date_picker = new System.Windows.Forms.DateTimePicker(); + this.col_id = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.col_name = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.col_department = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.col_basic = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.col_allowance = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.col_joined = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.btnAdd = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // list_employees + // + this.list_employees.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.col_id, + this.col_name, + this.col_department, + this.col_basic, + this.col_allowance, + this.col_joined}); + this.list_employees.HideSelection = false; + this.list_employees.Location = new System.Drawing.Point(12, 72); + this.list_employees.Name = "list_employees"; + this.list_employees.Size = new System.Drawing.Size(941, 573); + this.list_employees.TabIndex = 0; + this.list_employees.UseCompatibleStateImageBehavior = false; + this.list_employees.View = System.Windows.Forms.View.Details; + // + // txtID + // + this.txtID.Location = new System.Drawing.Point(39, 29); + this.txtID.Name = "txtID"; + this.txtID.Size = new System.Drawing.Size(63, 20); + this.txtID.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 32); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(21, 13); + this.label1.TabIndex = 2; + this.label1.Text = "ID:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(120, 32); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(41, 13); + this.label2.TabIndex = 4; + this.label2.Text = "Name :"; + // + // txtName + // + this.txtName.Location = new System.Drawing.Point(167, 29); + this.txtName.Name = "txtName"; + this.txtName.Size = new System.Drawing.Size(210, 20); + this.txtName.TabIndex = 3; + // + // btnSearch + // + this.btnSearch.Location = new System.Drawing.Point(960, 18); + this.btnSearch.Name = "btnSearch"; + this.btnSearch.Size = new System.Drawing.Size(75, 40); + this.btnSearch.TabIndex = 5; + this.btnSearch.Text = "Search"; + this.btnSearch.UseVisualStyleBackColor = true; + this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); + // + // btnReset + // + this.btnReset.Location = new System.Drawing.Point(855, 27); + this.btnReset.Name = "btnReset"; + this.btnReset.Size = new System.Drawing.Size(74, 23); + this.btnReset.TabIndex = 6; + this.btnReset.Text = "Reset Filters"; + this.btnReset.UseVisualStyleBackColor = true; + this.btnReset.Click += new System.EventHandler(this.btnReset_Click); + // + // combo_department + // + this.combo_department.FormattingEnabled = true; + this.combo_department.Location = new System.Drawing.Point(474, 28); + this.combo_department.Name = "combo_department"; + this.combo_department.Size = new System.Drawing.Size(128, 21); + this.combo_department.TabIndex = 7; + this.combo_department.Text = "Any"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(399, 32); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(68, 13); + this.label3.TabIndex = 8; + this.label3.Text = "Department :"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(629, 31); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(44, 13); + this.label4.TabIndex = 9; + this.label4.Text = "Joined :"; + // + // combo_date_type + // + this.combo_date_type.FormattingEnabled = true; + this.combo_date_type.Items.AddRange(new object[] { + "Anytime", + "After", + "Before", + "On"}); + this.combo_date_type.Location = new System.Drawing.Point(673, 28); + this.combo_date_type.Name = "combo_date_type"; + this.combo_date_type.Size = new System.Drawing.Size(67, 21); + this.combo_date_type.TabIndex = 10; + this.combo_date_type.Text = "Anytime"; + this.combo_date_type.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged); + // + // joined_date_picker + // + this.joined_date_picker.Format = System.Windows.Forms.DateTimePickerFormat.Short; + this.joined_date_picker.Location = new System.Drawing.Point(746, 29); + this.joined_date_picker.Name = "joined_date_picker"; + this.joined_date_picker.Size = new System.Drawing.Size(103, 20); + this.joined_date_picker.TabIndex = 11; + this.joined_date_picker.Visible = false; + this.joined_date_picker.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged); + // + // col_id + // + this.col_id.Text = "ID"; + this.col_id.Width = 54; + // + // col_name + // + this.col_name.Text = "Name"; + this.col_name.Width = 226; + // + // col_department + // + this.col_department.Text = "Department"; + this.col_department.Width = 147; + // + // col_basic + // + this.col_basic.Text = "Basic"; + this.col_basic.Width = 131; + // + // col_allowance + // + this.col_allowance.Text = "Allowance"; + this.col_allowance.Width = 140; + // + // col_joined + // + this.col_joined.Text = "Joined On"; + this.col_joined.Width = 224; + // + // btnAdd + // + this.btnAdd.Location = new System.Drawing.Point(960, 72); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 52); + this.btnAdd.TabIndex = 12; + this.btnAdd.Text = "Add Employee"; + this.btnAdd.UseVisualStyleBackColor = true; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(960, 130); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 52); + this.button1.TabIndex = 13; + this.button1.Text = "Edit Employee"; + this.button1.UseVisualStyleBackColor = true; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(959, 188); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 52); + this.button2.TabIndex = 14; + this.button2.Text = "Remove Employee"; + this.button2.UseVisualStyleBackColor = true; + // + // form_employees + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1047, 657); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.btnAdd); + this.Controls.Add(this.joined_date_picker); + this.Controls.Add(this.combo_date_type); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.combo_department); + this.Controls.Add(this.btnReset); + this.Controls.Add(this.btnSearch); + this.Controls.Add(this.label2); + this.Controls.Add(this.txtName); + this.Controls.Add(this.label1); + this.Controls.Add(this.txtID); + this.Controls.Add(this.list_employees); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "form_employees"; + this.Text = "form_employees"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ListView list_employees; + private System.Windows.Forms.TextBox txtID; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox txtName; + private System.Windows.Forms.Button btnSearch; + private System.Windows.Forms.Button btnReset; + private System.Windows.Forms.ComboBox combo_department; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.ComboBox combo_date_type; + private System.Windows.Forms.DateTimePicker joined_date_picker; + private System.Windows.Forms.ColumnHeader col_id; + private System.Windows.Forms.ColumnHeader col_name; + private System.Windows.Forms.ColumnHeader col_department; + private System.Windows.Forms.ColumnHeader col_basic; + private System.Windows.Forms.ColumnHeader col_allowance; + private System.Windows.Forms.ColumnHeader col_joined; + private System.Windows.Forms.Button btnAdd; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + } +} \ No newline at end of file diff --git a/PayrollSystem/form_employees.cs b/PayrollSystem/form_employees.cs new file mode 100644 index 0000000..14ac37c --- /dev/null +++ b/PayrollSystem/form_employees.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PayrollSystem +{ + public partial class form_employees : Form + { + public form_employees() + { + InitializeComponent(); + } + + private void dateTimePicker1_ValueChanged(object sender, EventArgs e) + { + + } + + private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) + { + joined_date_picker.Visible = !combo_date_type.SelectedItem.ToString().Contains("Anytime"); + } + + private void btnReset_Click(object sender, EventArgs e) + { + txtID.Clear(); + txtName.Clear(); + combo_date_type.SelectedItem = "Anytime"; + combo_department.SelectedItem = "Any"; + + Search(); + } + + private void btnSearch_Click(object sender, EventArgs e) + { + Search(); + } + void Search() + { + + } + + } +} diff --git a/PayrollSystem/form_employees.resx b/PayrollSystem/form_employees.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PayrollSystem/form_employees.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PayrollSystem/form_main.Designer.cs b/PayrollSystem/form_main.Designer.cs new file mode 100644 index 0000000..9bec90a --- /dev/null +++ b/PayrollSystem/form_main.Designer.cs @@ -0,0 +1,111 @@ +namespace PayrollSystem +{ + partial class form_main + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_dash = new System.Windows.Forms.Button(); + this.btnEmployees = new System.Windows.Forms.Button(); + this.btn_departments = new System.Windows.Forms.Button(); + this.btnExit = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // btn_dash + // + this.btn_dash.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btn_dash.Location = new System.Drawing.Point(12, 12); + this.btn_dash.Name = "btn_dash"; + this.btn_dash.Size = new System.Drawing.Size(187, 96); + this.btn_dash.TabIndex = 0; + this.btn_dash.Text = "Dashboard"; + this.btn_dash.UseVisualStyleBackColor = true; + this.btn_dash.Click += new System.EventHandler(this.button1_Click); + // + // btnEmployees + // + this.btnEmployees.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnEmployees.Location = new System.Drawing.Point(12, 114); + this.btnEmployees.Name = "btnEmployees"; + this.btnEmployees.Size = new System.Drawing.Size(187, 96); + this.btnEmployees.TabIndex = 1; + this.btnEmployees.Text = "Employees"; + this.btnEmployees.UseVisualStyleBackColor = true; + this.btnEmployees.Click += new System.EventHandler(this.btnEmployees_Click); + // + // btn_departments + // + this.btn_departments.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btn_departments.Location = new System.Drawing.Point(12, 216); + this.btn_departments.Name = "btn_departments"; + this.btn_departments.Size = new System.Drawing.Size(187, 96); + this.btn_departments.TabIndex = 2; + this.btn_departments.Text = "Departments"; + this.btn_departments.UseVisualStyleBackColor = true; + // + // btnExit + // + this.btnExit.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnExit.Location = new System.Drawing.Point(12, 573); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(187, 96); + this.btnExit.TabIndex = 3; + this.btnExit.Text = "Exit"; + this.btnExit.UseVisualStyleBackColor = true; + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(205, 12); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1047, 657); + this.panel1.TabIndex = 4; + // + // form_main + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1264, 681); + this.Controls.Add(this.panel1); + this.Controls.Add(this.btnExit); + this.Controls.Add(this.btn_departments); + this.Controls.Add(this.btnEmployees); + this.Controls.Add(this.btn_dash); + this.Name = "form_main"; + this.Text = "Payroll Management System - Dashboard"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button btn_dash; + private System.Windows.Forms.Button btnEmployees; + private System.Windows.Forms.Button btn_departments; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Panel panel1; + } +} \ No newline at end of file diff --git a/PayrollSystem/form_main.cs b/PayrollSystem/form_main.cs new file mode 100644 index 0000000..65093a3 --- /dev/null +++ b/PayrollSystem/form_main.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PayrollSystem +{ + public partial class form_main : Form + { + public form_main() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + form_dashboard dashboard = new form_dashboard(); + dashboard.TopLevel = false; + dashboard.AutoScroll = true; + panel1.Controls.Clear(); + panel1.Controls.Add(dashboard); + dashboard.Show(); + } + + private void btnEmployees_Click(object sender, EventArgs e) + { + form_employees employees = new form_employees(); + employees.TopLevel = false; + employees.AutoScroll = true; + panel1.Controls.Clear(); + panel1.Controls.Add(employees); + employees.Show(); + } + } +} diff --git a/PayrollSystem/form_main.resx b/PayrollSystem/form_main.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PayrollSystem/form_main.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PayrollSystem/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/PayrollSystem/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/PayrollSystem/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..1704ff2 Binary files /dev/null and b/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c8e0894 Binary files /dev/null and b/PayrollSystem/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.Form1.resources b/PayrollSystem/obj/Debug/PayrollSystem.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.Form1.resources differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.Properties.Resources.resources b/PayrollSystem/obj/Debug/PayrollSystem.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.Properties.Resources.resources differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.csproj.AssemblyReference.cache b/PayrollSystem/obj/Debug/PayrollSystem.csproj.AssemblyReference.cache new file mode 100644 index 0000000..0371f18 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.csproj.AssemblyReference.cache differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.csproj.CoreCompileInputs.cache b/PayrollSystem/obj/Debug/PayrollSystem.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..943f2a9 --- /dev/null +++ b/PayrollSystem/obj/Debug/PayrollSystem.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +6601523e2eec0b563a110cecb07652cb35aeec823cb494b099d289ce731c0491 diff --git a/PayrollSystem/obj/Debug/PayrollSystem.csproj.FileListAbsolute.txt b/PayrollSystem/obj/Debug/PayrollSystem.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..060c31f --- /dev/null +++ b/PayrollSystem/obj/Debug/PayrollSystem.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\bin\Debug\PayrollSystem.exe.config +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\bin\Debug\PayrollSystem.exe +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\bin\Debug\PayrollSystem.pdb +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.csproj.AssemblyReference.cache +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.Form1.resources +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.form_dashboard.resources +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.form_main.resources +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.Properties.Resources.resources +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.csproj.GenerateResource.cache +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.csproj.CoreCompileInputs.cache +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.exe +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.pdb +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\bin\Debug\payrolldb.mdf +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\bin\Debug\payrolldb_log.ldf +C:\Users\warlock\source\repos\PayrollSystem\PayrollSystem\obj\Debug\PayrollSystem.form_employees.resources diff --git a/PayrollSystem/obj/Debug/PayrollSystem.csproj.GenerateResource.cache b/PayrollSystem/obj/Debug/PayrollSystem.csproj.GenerateResource.cache new file mode 100644 index 0000000..e85488f Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.csproj.GenerateResource.cache differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.exe b/PayrollSystem/obj/Debug/PayrollSystem.exe new file mode 100644 index 0000000..4521a28 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.exe differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.form_dashboard.resources b/PayrollSystem/obj/Debug/PayrollSystem.form_dashboard.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.form_dashboard.resources differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.form_employees.resources b/PayrollSystem/obj/Debug/PayrollSystem.form_employees.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.form_employees.resources differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.form_main.resources b/PayrollSystem/obj/Debug/PayrollSystem.form_main.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.form_main.resources differ diff --git a/PayrollSystem/obj/Debug/PayrollSystem.pdb b/PayrollSystem/obj/Debug/PayrollSystem.pdb new file mode 100644 index 0000000..6972ffc Binary files /dev/null and b/PayrollSystem/obj/Debug/PayrollSystem.pdb differ diff --git a/PayrollSystem/obj/Debug/TempPE/payrolldbDataSet.Designer.cs.dll b/PayrollSystem/obj/Debug/TempPE/payrolldbDataSet.Designer.cs.dll new file mode 100644 index 0000000..265bdce Binary files /dev/null and b/PayrollSystem/obj/Debug/TempPE/payrolldbDataSet.Designer.cs.dll differ diff --git a/PayrollSystem/payrolldb.mdf b/PayrollSystem/payrolldb.mdf new file mode 100644 index 0000000..722eb55 Binary files /dev/null and b/PayrollSystem/payrolldb.mdf differ diff --git a/PayrollSystem/payrolldbDataSet.Designer.cs b/PayrollSystem/payrolldbDataSet.Designer.cs new file mode 100644 index 0000000..ef84f6c --- /dev/null +++ b/PayrollSystem/payrolldbDataSet.Designer.cs @@ -0,0 +1,242 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace PayrollSystem { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("payrolldbDataSet")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class payrolldbDataSet : global::System.Data.DataSet { + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public payrolldbDataSet() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected payrolldbDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataSet Clone() { + payrolldbDataSet cln = ((payrolldbDataSet)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars(bool initTable) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.DataSetName = "payrolldbDataSet"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/payrolldbDataSet.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + payrolldbDataSet ds = new payrolldbDataSet(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/PayrollSystem/payrolldbDataSet.xsc b/PayrollSystem/payrolldbDataSet.xsc new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/PayrollSystem/payrolldbDataSet.xsc @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/PayrollSystem/payrolldbDataSet.xsd b/PayrollSystem/payrolldbDataSet.xsd new file mode 100644 index 0000000..bafce53 --- /dev/null +++ b/PayrollSystem/payrolldbDataSet.xsd @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PayrollSystem/payrolldbDataSet.xss b/PayrollSystem/payrolldbDataSet.xss new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/PayrollSystem/payrolldbDataSet.xss @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/PayrollSystem/payrolldb_log.ldf b/PayrollSystem/payrolldb_log.ldf new file mode 100644 index 0000000..1dd0877 Binary files /dev/null and b/PayrollSystem/payrolldb_log.ldf differ