653 changed files with 519648 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,126 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<configuration> |
|||
<configSections> |
|||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<section name="BiskLog_Point_Of_Sale.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> |
|||
<section name="Point_Of_Sale_Managment.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> |
|||
</sectionGroup> |
|||
</configSections> |
|||
<connectionStrings> |
|||
<add name="Point_Of_Sale_Managment.Properties.Settings.Database1ConnectionString" connectionString="Data Source=|DataDirectory|\Database1.sdf" providerName="Microsoft.SqlServerCe.Client.4.0"/> |
|||
</connectionStrings> |
|||
<startup> |
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> |
|||
</startup> |
|||
<userSettings> |
|||
<BiskLog_Point_Of_Sale.Properties.Settings> |
|||
<setting name="Currency" serializeAs="String"> |
|||
<value>Ghana Cedi</value> |
|||
</setting> |
|||
<setting name="BranchID" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="ReceiptPrinter" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="ReportPrinter" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="Tag_BarcodePrinter" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="BranchName" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="BranchCity" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="BranchAddress" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="BranchTelephone" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="Opensesemi" serializeAs="String"> |
|||
<value>True</value> |
|||
</setting> |
|||
<setting name="Connection" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="Configured" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="CompanyName" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="ReceiptBottomText" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="tinNumber" serializeAs="String"> |
|||
<value>NULL</value> |
|||
</setting> |
|||
<setting name="AutomaticallyTax" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="TaxAgency" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="TaxRate" serializeAs="String"> |
|||
<value>0</value> |
|||
</setting> |
|||
<setting name="CollectTax" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="BeepOnAdd" serializeAs="String"> |
|||
<value>True</value> |
|||
</setting> |
|||
<setting name="pinOnEveryTransaction" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="currrencyCode" serializeAs="String"> |
|||
<value>GHS</value> |
|||
</setting> |
|||
<setting name="idleDuration" serializeAs="String"> |
|||
<value>5</value> |
|||
</setting> |
|||
<setting name="logoutOnIdle" serializeAs="String"> |
|||
<value>True</value> |
|||
</setting> |
|||
<setting name="cancellationConfirmation" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="systemSettingsConfigured" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
<setting name="vatNumber" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="lowStockTreshold" serializeAs="String"> |
|||
<value>10</value> |
|||
</setting> |
|||
<setting name="smtpServer" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="smtpPort" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="emailAddress" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="password" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="smtpReady" serializeAs="String"> |
|||
<value>False</value> |
|||
</setting> |
|||
</BiskLog_Point_Of_Sale.Properties.Settings> |
|||
<Point_Of_Sale_Managment.Properties.Settings> |
|||
<setting name="Currency" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
<setting name="BranchID" serializeAs="String"> |
|||
<value/> |
|||
</setting> |
|||
</Point_Of_Sale_Managment.Properties.Settings> |
|||
</userSettings> |
|||
</configuration> |
File diff suppressed because it is too large
@ -0,0 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<PublishUrlHistory>C:\Users\BarhenWin\Desktop\</PublishUrlHistory> |
|||
<InstallUrlHistory /> |
|||
<SupportUrlHistory /> |
|||
<UpdateUrlHistory /> |
|||
<BootstrapperUrlHistory /> |
|||
<ErrorReportUrlHistory /> |
|||
<FallbackCulture>en-US</FallbackCulture> |
|||
<VerifyUploadedFiles>false</VerifyUploadedFiles> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<EnableSecurityDebugging>false</EnableSecurityDebugging> |
|||
</PropertyGroup> |
|||
</Project> |
@ -0,0 +1,25 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio Version 16 |
|||
VisualStudioVersion = 16.0.30104.148 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BISKILOG POS PREMIUM", "BISKILOG POS PREMIUM.csproj", "{B157BDA6-BADD-4749-991E-44A1CE0EBDFD}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{B157BDA6-BADD-4749-991E-44A1CE0EBDFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{B157BDA6-BADD-4749-991E-44A1CE0EBDFD}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{B157BDA6-BADD-4749-991E-44A1CE0EBDFD}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{B157BDA6-BADD-4749-991E-44A1CE0EBDFD}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {AF6657E3-DDB2-432A-B608-1FC775ACF5A1} |
|||
EndGlobalSection |
|||
EndGlobal |
@ -0,0 +1,99 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> |
|||
<Body> |
|||
<ReportItems> |
|||
<Image Name="barcode"> |
|||
<Source>Database</Source> |
|||
<Value>=First(Fields!image.Value, "BarSet")</Value> |
|||
<MIMEType>image/jpeg</MIMEType> |
|||
<Sizing>Fit</Sizing> |
|||
<Top>0.0392in</Top> |
|||
<Left>0.01041in</Left> |
|||
<Height>0.44791in</Height> |
|||
<Width>1.86333in</Width> |
|||
<Style> |
|||
<Border> |
|||
<Style>None</Style> |
|||
</Border> |
|||
</Style> |
|||
</Image> |
|||
<Textbox Name="Textbox1"> |
|||
<CanGrow>true</CanGrow> |
|||
<KeepTogether>true</KeepTogether> |
|||
<Paragraphs> |
|||
<Paragraph> |
|||
<TextRuns> |
|||
<TextRun> |
|||
<Value>=First(Fields!code.Value, "BarSet")</Value> |
|||
<Style> |
|||
<FontSize>8pt</FontSize> |
|||
</Style> |
|||
</TextRun> |
|||
</TextRuns> |
|||
<Style> |
|||
<TextAlign>Center</TextAlign> |
|||
</Style> |
|||
</Paragraph> |
|||
</Paragraphs> |
|||
<rd:DefaultName>Textbox1</rd:DefaultName> |
|||
<Top>0.54266in</Top> |
|||
<Left>0.01041in</Left> |
|||
<Height>0.20833in</Height> |
|||
<Width>1.86333in</Width> |
|||
<ZIndex>1</ZIndex> |
|||
<Style> |
|||
<Border> |
|||
<Style>None</Style> |
|||
</Border> |
|||
<PaddingLeft>2pt</PaddingLeft> |
|||
<PaddingRight>2pt</PaddingRight> |
|||
<PaddingTop>2pt</PaddingTop> |
|||
<PaddingBottom>2pt</PaddingBottom> |
|||
</Style> |
|||
</Textbox> |
|||
</ReportItems> |
|||
<Height>0.79737in</Height> |
|||
<Style /> |
|||
</Body> |
|||
<Width>1.905in</Width> |
|||
<Page> |
|||
<PageHeight>0.98425in</PageHeight> |
|||
<PageWidth>1.9685in</PageWidth> |
|||
<Style /> |
|||
</Page> |
|||
<AutoRefresh>0</AutoRefresh> |
|||
<DataSources> |
|||
<DataSource Name="BarcodeAP"> |
|||
<ConnectionProperties> |
|||
<DataProvider>System.Data.DataSet</DataProvider> |
|||
<ConnectString>/* Local Connection */</ConnectString> |
|||
</ConnectionProperties> |
|||
<rd:DataSourceID>24f2909e-b15a-42e2-a382-7582a1ab5640</rd:DataSourceID> |
|||
</DataSource> |
|||
</DataSources> |
|||
<DataSets> |
|||
<DataSet Name="BarSet"> |
|||
<Query> |
|||
<DataSourceName>BarcodeAP</DataSourceName> |
|||
<CommandText>/* Local Query */</CommandText> |
|||
</Query> |
|||
<Fields> |
|||
<Field Name="code"> |
|||
<DataField>code</DataField> |
|||
<rd:TypeName>System.String</rd:TypeName> |
|||
</Field> |
|||
<Field Name="image"> |
|||
<DataField>image</DataField> |
|||
<rd:TypeName>System.String</rd:TypeName> |
|||
</Field> |
|||
</Fields> |
|||
<rd:DataSetInfo> |
|||
<rd:DataSetName>BarcodeAP</rd:DataSetName> |
|||
<rd:TableName>BarcodeImageClass</rd:TableName> |
|||
<rd:ObjectDataSourceType>BarcodeAP.BarcodeImageClass, BarcodeAP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</rd:ObjectDataSourceType> |
|||
</rd:DataSetInfo> |
|||
</DataSet> |
|||
</DataSets> |
|||
<rd:ReportUnitType>Inch</rd:ReportUnitType> |
|||
<rd:ReportID>c39d997b-eee8-4623-a3ef-a8e1af9e3225</rd:ReportID> |
|||
</Report> |
After Width: | Height: | Size: 133 KiB |
@ -0,0 +1,366 @@ |
|||
namespace BiskLog_Point_Of_Sale.Cashier_Module |
|||
{ |
|||
partial class CashierMain |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.components = new System.ComponentModel.Container(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CashierMain)); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.pictureBox2 = new System.Windows.Forms.PictureBox(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.header = new System.Windows.Forms.Label(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
|||
this.fILEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); |
|||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.pOINTOFSALEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.iNVENToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.productsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.brandsOfProductsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.categoriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.iNVOICEMANGEMENTToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.cToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.hELPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.aboutBISKILOGPOSToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.checkForUpdatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.main = new System.Windows.Forms.Panel(); |
|||
this.update = new System.ComponentModel.BackgroundWorker(); |
|||
this.duration = new System.Windows.Forms.Timer(this.components); |
|||
this.panel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); |
|||
this.panel3.SuspendLayout(); |
|||
this.menuStrip1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(0)))), ((int)(((byte)(46))))); |
|||
this.panel1.Controls.Add(this.pictureBox2); |
|||
this.panel1.Controls.Add(this.label3); |
|||
this.panel1.Controls.Add(this.label2); |
|||
this.panel1.Controls.Add(this.panel2); |
|||
this.panel1.Controls.Add(this.header); |
|||
this.panel1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(1200, 36); |
|||
this.panel1.TabIndex = 1; |
|||
//
|
|||
// pictureBox2
|
|||
//
|
|||
this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left))); |
|||
this.pictureBox2.Image = global::BiskLog_Point_Of_Sale.Properties.Resources.Biskilog; |
|||
this.pictureBox2.Location = new System.Drawing.Point(595, -1); |
|||
this.pictureBox2.Name = "pictureBox2"; |
|||
this.pictureBox2.Size = new System.Drawing.Size(37, 34); |
|||
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
|||
this.pictureBox2.TabIndex = 7; |
|||
this.pictureBox2.TabStop = false; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.label3.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 20.5F); |
|||
this.label3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label3.Location = new System.Drawing.Point(1115, 0); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(43, 34); |
|||
this.label3.TabIndex = 4; |
|||
this.label3.Text = "-"; |
|||
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter; |
|||
this.label3.Click += new System.EventHandler(this.Label3_Click); |
|||
this.label3.MouseEnter += new System.EventHandler(this.Label3_MouseEnter); |
|||
this.label3.MouseLeave += new System.EventHandler(this.Label3_MouseLeave); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.label2.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 17.5F); |
|||
this.label2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label2.Location = new System.Drawing.Point(1158, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(42, 34); |
|||
this.label2.TabIndex = 5; |
|||
this.label2.Text = "x"; |
|||
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter; |
|||
this.label2.Click += new System.EventHandler(this.Label2_Click); |
|||
this.label2.MouseEnter += new System.EventHandler(this.Label2_MouseEnter); |
|||
this.label2.MouseLeave += new System.EventHandler(this.Label2_MouseLeave); |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; |
|||
this.panel2.Location = new System.Drawing.Point(0, 34); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(1200, 2); |
|||
this.panel2.TabIndex = 3; |
|||
//
|
|||
// header
|
|||
//
|
|||
this.header.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.header.AutoSize = true; |
|||
this.header.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.header.ForeColor = System.Drawing.Color.White; |
|||
this.header.Location = new System.Drawing.Point(638, 6); |
|||
this.header.Name = "header"; |
|||
this.header.Size = new System.Drawing.Size(250, 28); |
|||
this.header.TabIndex = 1; |
|||
this.header.Text = "BISKILOG POINT OF SALE"; |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.Controls.Add(this.menuStrip1); |
|||
this.panel3.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel3.Location = new System.Drawing.Point(0, 36); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(1200, 32); |
|||
this.panel3.TabIndex = 2; |
|||
//
|
|||
// menuStrip1
|
|||
//
|
|||
this.menuStrip1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.fILEToolStripMenuItem, |
|||
this.pOINTOFSALEToolStripMenuItem, |
|||
this.iNVENToolStripMenuItem, |
|||
this.iNVOICEMANGEMENTToolStripMenuItem, |
|||
this.cToolStripMenuItem, |
|||
this.hELPToolStripMenuItem}); |
|||
this.menuStrip1.Location = new System.Drawing.Point(0, 0); |
|||
this.menuStrip1.Name = "menuStrip1"; |
|||
this.menuStrip1.Size = new System.Drawing.Size(1200, 29); |
|||
this.menuStrip1.TabIndex = 0; |
|||
this.menuStrip1.Text = "menuStrip1"; |
|||
//
|
|||
// fILEToolStripMenuItem
|
|||
//
|
|||
this.fILEToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.toolStripMenuItem2, |
|||
this.toolStripMenuItem1, |
|||
this.toolStripSeparator1, |
|||
this.exitToolStripMenuItem}); |
|||
this.fILEToolStripMenuItem.Name = "fILEToolStripMenuItem"; |
|||
this.fILEToolStripMenuItem.Size = new System.Drawing.Size(50, 25); |
|||
this.fILEToolStripMenuItem.Text = "FILE"; |
|||
//
|
|||
// toolStripMenuItem2
|
|||
//
|
|||
this.toolStripMenuItem2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; |
|||
this.toolStripMenuItem2.Size = new System.Drawing.Size(198, 26); |
|||
this.toolStripMenuItem2.Text = "User Information"; |
|||
this.toolStripMenuItem2.Click += new System.EventHandler(this.ToolStripMenuItem2_Click); |
|||
//
|
|||
// toolStripMenuItem1
|
|||
//
|
|||
this.toolStripMenuItem1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.toolStripMenuItem1.Name = "toolStripMenuItem1"; |
|||
this.toolStripMenuItem1.Size = new System.Drawing.Size(198, 26); |
|||
this.toolStripMenuItem1.Text = "Settings"; |
|||
this.toolStripMenuItem1.Click += new System.EventHandler(this.SETTINGSToolStripMenuItem_Click); |
|||
//
|
|||
// toolStripSeparator1
|
|||
//
|
|||
this.toolStripSeparator1.Name = "toolStripSeparator1"; |
|||
this.toolStripSeparator1.Size = new System.Drawing.Size(195, 6); |
|||
//
|
|||
// exitToolStripMenuItem
|
|||
//
|
|||
this.exitToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; |
|||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(198, 26); |
|||
this.exitToolStripMenuItem.Text = "Exit"; |
|||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitToolStripMenuItem_Click); |
|||
//
|
|||
// pOINTOFSALEToolStripMenuItem
|
|||
//
|
|||
this.pOINTOFSALEToolStripMenuItem.Name = "pOINTOFSALEToolStripMenuItem"; |
|||
this.pOINTOFSALEToolStripMenuItem.Size = new System.Drawing.Size(130, 25); |
|||
this.pOINTOFSALEToolStripMenuItem.Text = "POINT OF SALE"; |
|||
this.pOINTOFSALEToolStripMenuItem.Click += new System.EventHandler(this.POINTOFSALEToolStripMenuItem_Click); |
|||
//
|
|||
// iNVENToolStripMenuItem
|
|||
//
|
|||
this.iNVENToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.productsToolStripMenuItem, |
|||
this.brandsOfProductsToolStripMenuItem, |
|||
this.categoriesToolStripMenuItem}); |
|||
this.iNVENToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.iNVENToolStripMenuItem.Name = "iNVENToolStripMenuItem"; |
|||
this.iNVENToolStripMenuItem.Size = new System.Drawing.Size(106, 25); |
|||
this.iNVENToolStripMenuItem.Text = "INVENTORY"; |
|||
//
|
|||
// productsToolStripMenuItem
|
|||
//
|
|||
this.productsToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.productsToolStripMenuItem.Name = "productsToolStripMenuItem"; |
|||
this.productsToolStripMenuItem.Size = new System.Drawing.Size(154, 26); |
|||
this.productsToolStripMenuItem.Text = "Products"; |
|||
this.productsToolStripMenuItem.Click += new System.EventHandler(this.ProductsToolStripMenuItem_Click); |
|||
//
|
|||
// brandsOfProductsToolStripMenuItem
|
|||
//
|
|||
this.brandsOfProductsToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.brandsOfProductsToolStripMenuItem.Name = "brandsOfProductsToolStripMenuItem"; |
|||
this.brandsOfProductsToolStripMenuItem.Size = new System.Drawing.Size(154, 26); |
|||
this.brandsOfProductsToolStripMenuItem.Text = "Brands"; |
|||
this.brandsOfProductsToolStripMenuItem.Click += new System.EventHandler(this.BrandsOfProductsToolStripMenuItem_Click); |
|||
//
|
|||
// categoriesToolStripMenuItem
|
|||
//
|
|||
this.categoriesToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.categoriesToolStripMenuItem.Name = "categoriesToolStripMenuItem"; |
|||
this.categoriesToolStripMenuItem.Size = new System.Drawing.Size(154, 26); |
|||
this.categoriesToolStripMenuItem.Text = "Categories"; |
|||
this.categoriesToolStripMenuItem.Click += new System.EventHandler(this.CategoriesToolStripMenuItem_Click); |
|||
//
|
|||
// iNVOICEMANGEMENTToolStripMenuItem
|
|||
//
|
|||
this.iNVOICEMANGEMENTToolStripMenuItem.Name = "iNVOICEMANGEMENTToolStripMenuItem"; |
|||
this.iNVOICEMANGEMENTToolStripMenuItem.Size = new System.Drawing.Size(183, 25); |
|||
this.iNVOICEMANGEMENTToolStripMenuItem.Text = "INVOICE MANGEMENT"; |
|||
this.iNVOICEMANGEMENTToolStripMenuItem.Click += new System.EventHandler(this.INVOICEMANGEMENTToolStripMenuItem_Click); |
|||
//
|
|||
// cToolStripMenuItem
|
|||
//
|
|||
this.cToolStripMenuItem.Name = "cToolStripMenuItem"; |
|||
this.cToolStripMenuItem.Size = new System.Drawing.Size(112, 25); |
|||
this.cToolStripMenuItem.Text = "CUSTOMERS"; |
|||
this.cToolStripMenuItem.Click += new System.EventHandler(this.CToolStripMenuItem_Click); |
|||
//
|
|||
// hELPToolStripMenuItem
|
|||
//
|
|||
this.hELPToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.aboutBISKILOGPOSToolStripMenuItem, |
|||
this.checkForUpdatesToolStripMenuItem}); |
|||
this.hELPToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.hELPToolStripMenuItem.Name = "hELPToolStripMenuItem"; |
|||
this.hELPToolStripMenuItem.Size = new System.Drawing.Size(58, 25); |
|||
this.hELPToolStripMenuItem.Text = "HELP"; |
|||
//
|
|||
// aboutBISKILOGPOSToolStripMenuItem
|
|||
//
|
|||
this.aboutBISKILOGPOSToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.aboutBISKILOGPOSToolStripMenuItem.Name = "aboutBISKILOGPOSToolStripMenuItem"; |
|||
this.aboutBISKILOGPOSToolStripMenuItem.Size = new System.Drawing.Size(225, 26); |
|||
this.aboutBISKILOGPOSToolStripMenuItem.Text = "About BISKILOG POS"; |
|||
this.aboutBISKILOGPOSToolStripMenuItem.Click += new System.EventHandler(this.AboutBISKILOGPOSToolStripMenuItem_Click); |
|||
//
|
|||
// checkForUpdatesToolStripMenuItem
|
|||
//
|
|||
this.checkForUpdatesToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.checkForUpdatesToolStripMenuItem.Name = "checkForUpdatesToolStripMenuItem"; |
|||
this.checkForUpdatesToolStripMenuItem.Size = new System.Drawing.Size(225, 26); |
|||
this.checkForUpdatesToolStripMenuItem.Text = "Check for updates"; |
|||
this.checkForUpdatesToolStripMenuItem.Click += new System.EventHandler(this.checkForUpdatesToolStripMenuItem_Click); |
|||
//
|
|||
// main
|
|||
//
|
|||
this.main.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.main.Location = new System.Drawing.Point(0, 68); |
|||
this.main.Name = "main"; |
|||
this.main.Size = new System.Drawing.Size(1200, 659); |
|||
this.main.TabIndex = 3; |
|||
//
|
|||
// update
|
|||
//
|
|||
this.update.DoWork += new System.ComponentModel.DoWorkEventHandler(this.Update_DoWork); |
|||
//
|
|||
// duration
|
|||
//
|
|||
this.duration.Tick += new System.EventHandler(this.Duration_Tick); |
|||
//
|
|||
// CashierMain
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(1200, 727); |
|||
this.Controls.Add(this.main); |
|||
this.Controls.Add(this.panel3); |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "CashierMain"; |
|||
this.Text = "CashierMain"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); |
|||
this.panel3.ResumeLayout(false); |
|||
this.panel3.PerformLayout(); |
|||
this.menuStrip1.ResumeLayout(false); |
|||
this.menuStrip1.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.PictureBox pictureBox2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private System.Windows.Forms.Label header; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private System.Windows.Forms.MenuStrip menuStrip1; |
|||
private System.Windows.Forms.ToolStripMenuItem fILEToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem pOINTOFSALEToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem iNVENToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem iNVOICEMANGEMENTToolStripMenuItem; |
|||
private System.Windows.Forms.Panel main; |
|||
private System.ComponentModel.BackgroundWorker update; |
|||
private System.Windows.Forms.Timer duration; |
|||
private System.Windows.Forms.ToolStripMenuItem productsToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem brandsOfProductsToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem categoriesToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem hELPToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem aboutBISKILOGPOSToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem checkForUpdatesToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem cToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; |
|||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; |
|||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; |
|||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; |
|||
} |
|||
} |
@ -0,0 +1,277 @@ |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment; |
|||
using Point_Of_Sale_Managment.CashierModule; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
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; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Updates; |
|||
using BiskLog_Point_Of_Sale.Company_Setup; |
|||
using BiskLog_Point_Of_Sale.Mains; |
|||
using Point_Of_Sale_Managment.Cashier_Module.Invoice; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Cashier_Module |
|||
{ |
|||
public partial class CashierMain : Form |
|||
{ |
|||
SqlConnection cn = new SqlConnection(); |
|||
SqlCommand cm = new SqlCommand(); |
|||
SqlDataReader dr; |
|||
DatabaseConn databasecon = new DatabaseConn(); |
|||
Form Active; |
|||
public static Form printerDialog; |
|||
public static string branch, currency, role; |
|||
public static string branchName, bCompanyName, branchLocation, tin, vatno, branchTel; |
|||
bool working = false; |
|||
public static string user; |
|||
public CashierMain(string userl, string accessl) |
|||
{ |
|||
InitializeComponent(); |
|||
this.MaximizedBounds = Screen.FromHandle(this.Handle).WorkingArea; |
|||
this.WindowState = FormWindowState.Maximized; |
|||
menuStrip1.ForeColor = Color.FromArgb(0, 52, 69); |
|||
cn = new SqlConnection(databasecon.MyConnection()); |
|||
currency = Settings.Default.currrencyCode; |
|||
role = accessl; |
|||
branch = Settings.Default.BranchID; |
|||
branchName = Settings.Default.BranchName; |
|||
bCompanyName = Settings.Default.CompanyName; |
|||
branchLocation = Settings.Default.BranchCity; |
|||
tin = Settings.Default.tinNumber; |
|||
vatno = Settings.Default.vatNumber; |
|||
branchTel = Settings.Default.BranchTelephone; |
|||
user = userl; |
|||
} |
|||
private void Update_DoWork(object sender, DoWorkEventArgs e) |
|||
{ |
|||
try |
|||
{ |
|||
working = true; |
|||
cn.Open(); |
|||
cm = new SqlCommand("Declare @retu varchar(50) " + |
|||
"set @retu = case when(Select username from tblUser_activity where username = @username and workstation = @workstation) IS NOT NULL then " + |
|||
"(Select username from tblUser_activity where username = @username and workstation = @workstation) else 'NULL' end " + |
|||
"Update tblUser_activity set last_active = current_timestamp where username = @username and workstation = @workstation and username = @retu " + |
|||
"Select @@ROWCOUNT as updated", cn); |
|||
cm.Parameters.AddWithValue("@username", MainLogin.login_user); |
|||
cm.Parameters.AddWithValue("@workstation", Splashscreen.macAddress); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
dr.Read(); |
|||
if (dr.HasRows) |
|||
{ |
|||
if (dr[0].ToString() == "0") |
|||
{ |
|||
this.Invoke(new Action(() => |
|||
{ |
|||
this.Hide(); |
|||
loggingout loggingout = new loggingout(); |
|||
loggingout.BringToFront(); |
|||
loggingout.ShowDialog(); |
|||
this.Dispose(); |
|||
})); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
} |
|||
working = false; |
|||
} |
|||
|
|||
private void Duration_Tick(object sender, EventArgs e) |
|||
{ |
|||
if (!working) |
|||
{ |
|||
update.RunWorkerAsync(); |
|||
|
|||
} |
|||
} |
|||
public void POS(List<InvoicePOS> invoice = null, string id = null, CustomerClass customer = null) |
|||
{ |
|||
try |
|||
{ |
|||
if (!String.IsNullOrEmpty(Settings.Default.ReceiptPrinter)) |
|||
{ |
|||
NewSalesPOS pos = new NewSalesPOS(this, invoicecode: invoice, invoiceid: id, customer: customer); |
|||
pos.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = pos; |
|||
main.Controls.Add(pos); |
|||
pos.BringToFront(); |
|||
pos.Show(); |
|||
} |
|||
else |
|||
{ |
|||
string title = "Receipt Printer not set"; |
|||
string message = "No default receipt printer has been set, click yes to set default receipt printer"; |
|||
Confirmation confirmation = new Confirmation(title, message); |
|||
confirmation.BringToFront(); |
|||
confirmation.ShowDialog(); |
|||
if (confirmation.DialogResult == DialogResult.Yes) |
|||
{ |
|||
HardwareSetupWizardDirect hardwareSetup = new HardwareSetupWizardDirect(); |
|||
Active = hardwareSetup; |
|||
hardwareSetup.BringToFront(); |
|||
hardwareSetup.ShowDialog(); |
|||
Active = null; |
|||
} |
|||
} |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
} |
|||
} |
|||
private void ProductsToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
Point_Of_Sale_Managment.CashierModule.ProductListForm products = new Point_Of_Sale_Managment.CashierModule.ProductListForm(); |
|||
products.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = products; |
|||
main.Controls.Add(products); |
|||
products.BringToFront(); |
|||
products.LoadRecords(); |
|||
products.Show(); |
|||
} |
|||
|
|||
private void SETTINGSToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
Point_Of_Sale_Managment.CashierModule.SystemSettings settings = new Point_Of_Sale_Managment.CashierModule.SystemSettings(); |
|||
settings.BringToFront(); |
|||
settings.ShowDialog(); |
|||
} |
|||
|
|||
private void INVOICEMANGEMENTToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
CashierInvoiceMain products = new CashierInvoiceMain(this); |
|||
products.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = products; |
|||
main.Controls.Add(products); |
|||
products.BringToFront(); |
|||
products.Show(); |
|||
} |
|||
|
|||
private void CToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
Customers pos = new Customers(cashier: this); |
|||
pos.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = pos; |
|||
main.Controls.Add(pos); |
|||
pos.BringToFront(); |
|||
pos.Show(); |
|||
} |
|||
|
|||
private void ExitToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void ToolStripMenuItem2_Click(object sender, EventArgs e) |
|||
{ |
|||
AdminUser adminUser = new AdminUser(); |
|||
adminUser.BringToFront(); |
|||
adminUser.ShowDialog(); |
|||
} |
|||
|
|||
private void CategoriesToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
Point_Of_Sale_Managment.CashierModule.formCategoryList products = new Point_Of_Sale_Managment.CashierModule.formCategoryList(); |
|||
products.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = products; |
|||
main.Controls.Add(products); |
|||
products.BringToFront(); |
|||
products.LoadRecords(); |
|||
products.Show(); |
|||
} |
|||
|
|||
private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
CheckUpdates check = new CheckUpdates(); |
|||
check.BringToFront(); |
|||
check.ShowDialog(); |
|||
} |
|||
|
|||
private void BrandsOfProductsToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
Point_Of_Sale_Managment.CashierModule.formBrandList products = new Point_Of_Sale_Managment.CashierModule.formBrandList(); |
|||
products.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
main.Controls.Remove(Active); |
|||
} |
|||
Active = products; |
|||
main.Controls.Add(products); |
|||
products.BringToFront(); |
|||
products.LoadRecords(); |
|||
products.Show(); |
|||
} |
|||
|
|||
private void AboutBISKILOGPOSToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
AboutBISKI about = new AboutBISKI(); |
|||
about.BringToFront(); |
|||
about.ShowDialog(); |
|||
} |
|||
|
|||
private void Label2_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
label2.BackColor = Color.Crimson; |
|||
} |
|||
private void Label2_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
label2.BackColor = Color.FromArgb(2, 0, 46); |
|||
} |
|||
private void Label3_Click(object sender, EventArgs e) |
|||
{ |
|||
this.WindowState = FormWindowState.Minimized; |
|||
} |
|||
private void Label3_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
label3.BackColor = Color.FromArgb(10, 10, 56); |
|||
} |
|||
private void Label3_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
label3.BackColor = Color.FromArgb(2, 0, 46); |
|||
} |
|||
|
|||
private void Label2_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void POINTOFSALEToolStripMenuItem_Click(object sender, EventArgs e) |
|||
{ |
|||
POS(); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,423 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Cashier_Module.Invoice |
|||
{ |
|||
partial class CashierAddInvoice |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CashierAddInvoice)); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.invoiceDetails = new System.Windows.Forms.DataGridView(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.btnGenerate = new System.Windows.Forms.Button(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.comboBox3 = new System.Windows.Forms.ComboBox(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.comboBox2 = new System.Windows.Forms.ComboBox(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.titlePanel = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.lblInvoiceTitle = new System.Windows.Forms.Label(); |
|||
this.closeBTN = new System.Windows.Forms.Label(); |
|||
this.DESC = new System.Windows.Forms.TextBox(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.barcodecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Delete = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.panel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceDetails)).BeginInit(); |
|||
this.panel2.SuspendLayout(); |
|||
this.panel3.SuspendLayout(); |
|||
this.titlePanel.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.invoiceDetails); |
|||
this.panel1.Controls.Add(this.panel2); |
|||
this.panel1.Controls.Add(this.panel3); |
|||
this.panel1.Controls.Add(this.titlePanel); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(704, 639); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// invoiceDetails
|
|||
//
|
|||
this.invoiceDetails.AllowUserToAddRows = false; |
|||
this.invoiceDetails.AllowUserToDeleteRows = false; |
|||
this.invoiceDetails.AllowUserToResizeColumns = false; |
|||
this.invoiceDetails.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.invoiceDetails.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.invoiceDetails.BackgroundColor = System.Drawing.Color.White; |
|||
this.invoiceDetails.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.invoiceDetails.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceDetails.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.invoiceDetails.ColumnHeadersHeight = 30; |
|||
this.invoiceDetails.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.invoiceDetails.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.barcodecolumn, |
|||
this.Column4, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column6, |
|||
this.Column7, |
|||
this.Delete}); |
|||
this.invoiceDetails.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.invoiceDetails.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.invoiceDetails.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.invoiceDetails.EnableHeadersVisualStyles = false; |
|||
this.invoiceDetails.Location = new System.Drawing.Point(0, 171); |
|||
this.invoiceDetails.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.invoiceDetails.Name = "invoiceDetails"; |
|||
this.invoiceDetails.ReadOnly = true; |
|||
this.invoiceDetails.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceDetails.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.invoiceDetails.RowHeadersVisible = false; |
|||
this.invoiceDetails.RowTemplate.Height = 40; |
|||
this.invoiceDetails.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.invoiceDetails.Size = new System.Drawing.Size(702, 406); |
|||
this.invoiceDetails.TabIndex = 6; |
|||
this.invoiceDetails.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.InvoiceDetails_CellContentClick); |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.Controls.Add(this.btnGenerate); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; |
|||
this.panel2.Location = new System.Drawing.Point(0, 577); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(702, 60); |
|||
this.panel2.TabIndex = 5; |
|||
//
|
|||
// btnGenerate
|
|||
//
|
|||
this.btnGenerate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.btnGenerate.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.btnGenerate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.btnGenerate.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.btnGenerate.ForeColor = System.Drawing.Color.White; |
|||
this.btnGenerate.Location = new System.Drawing.Point(251, 5); |
|||
this.btnGenerate.Name = "btnGenerate"; |
|||
this.btnGenerate.Size = new System.Drawing.Size(185, 50); |
|||
this.btnGenerate.TabIndex = 3; |
|||
this.btnGenerate.Text = "GENERATE INVOICE"; |
|||
this.btnGenerate.UseVisualStyleBackColor = false; |
|||
this.btnGenerate.Click += new System.EventHandler(this.BtnGenerate_Click); |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.Controls.Add(this.DESC); |
|||
this.panel3.Controls.Add(this.comboBox3); |
|||
this.panel3.Controls.Add(this.button1); |
|||
this.panel3.Controls.Add(this.comboBox2); |
|||
this.panel3.Controls.Add(this.label1); |
|||
this.panel3.Controls.Add(this.label4); |
|||
this.panel3.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel3.Location = new System.Drawing.Point(0, 38); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(702, 133); |
|||
this.panel3.TabIndex = 4; |
|||
//
|
|||
// comboBox3
|
|||
//
|
|||
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|||
this.comboBox3.FormattingEnabled = true; |
|||
this.comboBox3.Location = new System.Drawing.Point(184, 50); |
|||
this.comboBox3.Name = "comboBox3"; |
|||
this.comboBox3.Size = new System.Drawing.Size(218, 29); |
|||
this.comboBox3.TabIndex = 4; |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(187)))), ((int)(((byte)(56))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.button1.Location = new System.Drawing.Point(239, 89); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(163, 39); |
|||
this.button1.TabIndex = 3; |
|||
this.button1.Text = "ADD TO LIST"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// comboBox2
|
|||
//
|
|||
this.comboBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.comboBox2.FormattingEnabled = true; |
|||
this.comboBox2.Location = new System.Drawing.Point(184, 14); |
|||
this.comboBox2.Name = "comboBox2"; |
|||
this.comboBox2.Size = new System.Drawing.Size(218, 29); |
|||
this.comboBox2.TabIndex = 2; |
|||
this.comboBox2.TextUpdate += new System.EventHandler(this.ComboBox2_TextUpdate); |
|||
this.comboBox2.TextChanged += new System.EventHandler(this.ComboBox2_TextChanged); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(38, 51); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(124, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "Unit Of Measure"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label4.Location = new System.Drawing.Point(38, 17); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(129, 21); |
|||
this.label4.TabIndex = 0; |
|||
this.label4.Text = "PRODUCT NAME"; |
|||
//
|
|||
// dataGridViewImageColumn1
|
|||
//
|
|||
this.dataGridViewImageColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.dataGridViewImageColumn1.HeaderText = ""; |
|||
this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image"))); |
|||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; |
|||
//
|
|||
// titlePanel
|
|||
//
|
|||
this.titlePanel.BackColor = System.Drawing.Color.Transparent; |
|||
this.titlePanel.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.titlePanel.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.titlePanel.Controls.Add(this.lblInvoiceTitle); |
|||
this.titlePanel.Controls.Add(this.closeBTN); |
|||
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.titlePanel.Location = new System.Drawing.Point(0, 0); |
|||
this.titlePanel.Name = "titlePanel"; |
|||
this.titlePanel.Size = new System.Drawing.Size(702, 38); |
|||
this.titlePanel.TabIndex = 3; |
|||
//
|
|||
// lblInvoiceTitle
|
|||
//
|
|||
this.lblInvoiceTitle.BackColor = System.Drawing.Color.Transparent; |
|||
this.lblInvoiceTitle.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.lblInvoiceTitle.ForeColor = System.Drawing.Color.White; |
|||
this.lblInvoiceTitle.Location = new System.Drawing.Point(0, 0); |
|||
this.lblInvoiceTitle.Name = "lblInvoiceTitle"; |
|||
this.lblInvoiceTitle.Size = new System.Drawing.Size(659, 38); |
|||
this.lblInvoiceTitle.TabIndex = 1; |
|||
this.lblInvoiceTitle.Text = "NEW INVOICE"; |
|||
this.lblInvoiceTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// closeBTN
|
|||
//
|
|||
this.closeBTN.BackColor = System.Drawing.Color.Transparent; |
|||
this.closeBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.closeBTN.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.closeBTN.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.closeBTN.Location = new System.Drawing.Point(659, 0); |
|||
this.closeBTN.Name = "closeBTN"; |
|||
this.closeBTN.Size = new System.Drawing.Size(43, 38); |
|||
this.closeBTN.TabIndex = 0; |
|||
this.closeBTN.Text = "x"; |
|||
this.closeBTN.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.closeBTN.Click += new System.EventHandler(this.CloseBTN_Click); |
|||
this.closeBTN.MouseEnter += new System.EventHandler(this.CloseBTN_MouseEnter); |
|||
this.closeBTN.MouseLeave += new System.EventHandler(this.CloseBTN_MouseLeave); |
|||
//
|
|||
// DESC
|
|||
//
|
|||
this.DESC.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.DESC.Location = new System.Drawing.Point(432, 9); |
|||
this.DESC.Multiline = true; |
|||
this.DESC.Name = "DESC"; |
|||
this.DESC.ReadOnly = true; |
|||
this.DESC.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
|||
this.DESC.Size = new System.Drawing.Size(259, 118); |
|||
this.DESC.TabIndex = 5; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.DataPropertyName = "invoice_id"; |
|||
this.Column2.HeaderText = "PRODUCT ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Width = 123; |
|||
//
|
|||
// barcodecolumn
|
|||
//
|
|||
this.barcodecolumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.barcodecolumn.HeaderText = "PRODUCT NAME"; |
|||
this.barcodecolumn.Name = "barcodecolumn"; |
|||
this.barcodecolumn.ReadOnly = true; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.DataPropertyName = "pdesc"; |
|||
this.Column4.HeaderText = "QUANTITY"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
this.Column4.Width = 107; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column3.HeaderText = "UNIT"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
this.Column3.Width = 68; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.DataPropertyName = "category"; |
|||
this.Column5.HeaderText = "TOTAL COST"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 119; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.HeaderText = "unitCode"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.ReadOnly = true; |
|||
this.Column6.Visible = false; |
|||
//
|
|||
// Column7
|
|||
//
|
|||
this.Column7.HeaderText = "distinctive"; |
|||
this.Column7.Name = "Column7"; |
|||
this.Column7.ReadOnly = true; |
|||
this.Column7.Visible = false; |
|||
//
|
|||
// Delete
|
|||
//
|
|||
this.Delete.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Delete.HeaderText = ""; |
|||
this.Delete.Image = ((System.Drawing.Image)(resources.GetObject("Delete.Image"))); |
|||
this.Delete.Name = "Delete"; |
|||
this.Delete.ReadOnly = true; |
|||
this.Delete.Width = 5; |
|||
//
|
|||
// AddInvoice
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(704, 639); |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "AddInvoice"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|||
this.Load += new System.EventHandler(this.AddInvoice_Load); |
|||
this.panel1.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceDetails)).EndInit(); |
|||
this.panel2.ResumeLayout(false); |
|||
this.panel3.ResumeLayout(false); |
|||
this.panel3.PerformLayout(); |
|||
this.titlePanel.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private gradientPanel titlePanel; |
|||
private System.Windows.Forms.Label lblInvoiceTitle; |
|||
private System.Windows.Forms.Label closeBTN; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.ComboBox comboBox2; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; |
|||
private System.Windows.Forms.DataGridView invoiceDetails; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private System.Windows.Forms.Button btnGenerate; |
|||
private System.Windows.Forms.ComboBox comboBox3; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.TextBox DESC; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn barcodecolumn; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|||
private System.Windows.Forms.DataGridViewImageColumn Delete; |
|||
} |
|||
} |
@ -0,0 +1,382 @@ |
|||
|
|||
using BarcodeLib; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Company_Setup; |
|||
using BiskLog_Point_Of_Sale.POSDialogs; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Microsoft.Reporting.WinForms; |
|||
using Point_Of_Sale_Managment; |
|||
using Point_Of_Sale_Managment.Cashier_Module.Invoice; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Data.SqlClient; |
|||
using System.Drawing; |
|||
using System.Drawing.Imaging; |
|||
using System.IO; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Cashier_Module.Invoice |
|||
{ |
|||
public partial class CashierAddInvoice : Form |
|||
{ |
|||
SqlConnection cn; |
|||
Point_Of_Sale_Managment.DatabaseConn conn = new Point_Of_Sale_Managment.DatabaseConn(); |
|||
SqlCommand cm; |
|||
SqlDataReader dr; |
|||
SqlTransaction transaction; |
|||
CashierInvoiceMain invoiceMain; |
|||
List<InvoiceObj> ProductNCode = new List<InvoiceObj>(); |
|||
List<InvoiceObj> Selected = new List<InvoiceObj>(); |
|||
List<string> invoiced = new List<string>(); |
|||
int i = 1; |
|||
string invoiceIDGenerated; |
|||
string name, address; |
|||
string printLocation = ""; |
|||
string printerReceiptDefault = Settings.Default.ReportPrinter; |
|||
public static List<ReceiptObject> receiptClasses = new List<ReceiptObject>(); |
|||
public static List<bottom> receiptClasses2 = new List<bottom>(); |
|||
public CashierAddInvoice(CashierInvoiceMain main) |
|||
{ |
|||
InitializeComponent(); |
|||
invoiceMain = main; |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
} |
|||
|
|||
private void CloseBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
public int LoadProducts() |
|||
{ |
|||
ProductNCode.Clear(); |
|||
try |
|||
{ |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select pcode, product_name,baseUnit,uni.unitName,pdesc from tblProduct Inner Join UnitOfMeasure uni On uni.unitCode = tblProduct.baseUnit " + |
|||
"where tblProduct.branchID = @branchID " + |
|||
"Select tblProduct.pcode, product_name,uni.unitName,PAU.unitCode,tblProduct.pdesc,PAU.distinctiveCode from tblProduct Inner Join ProductAltUnit PAU On PAU.pcode = tblProduct.pcode Inner " + |
|||
"Join UnitOfMeasure uni On uni.unitCode = PAU.unitCode where tblProduct.branchID = @branchID", cn); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
InvoiceObj invoice = new InvoiceObj(); |
|||
invoice.pcode = dr[0].ToString(); |
|||
invoice.productName = dr[1].ToString(); |
|||
invoice.unitCode = dr[2].ToString(); |
|||
invoice.unitName = dr[3].ToString(); |
|||
invoice.description = dr[4].ToString(); |
|||
invoice.distinctive = dr[0].ToString(); |
|||
ProductNCode.Add(invoice); |
|||
} |
|||
dr.NextResult(); |
|||
while (dr.Read()) |
|||
{ |
|||
InvoiceObj invoice = new InvoiceObj(); |
|||
invoice.pcode = dr[0].ToString(); |
|||
invoice.productName = dr[1].ToString(); |
|||
invoice.unitCode = dr[3].ToString(); |
|||
invoice.unitName = dr[2].ToString(); |
|||
invoice.description = dr[4].ToString(); |
|||
invoice.distinctive = dr[5].ToString(); |
|||
ProductNCode.Add(invoice); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
return 1; |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
private void CloseBTN_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
closeBTN.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void CloseBTN_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
closeBTN.BackColor = Color.Transparent; |
|||
} |
|||
|
|||
private async void AddInvoice_Load(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(LoadProducts); |
|||
task.Start(); |
|||
await task; |
|||
comboBox2.DataSource = ProductNCode; |
|||
comboBox2.DisplayMember = "productName"; |
|||
comboBox2.ValueMember = "pcode"; |
|||
comboBox2.SelectedIndex = -1; |
|||
|
|||
|
|||
} |
|||
|
|||
public int AddToList(int quantity, string productCode) |
|||
{ |
|||
try |
|||
{ |
|||
string kel = ""; |
|||
invoiceDetails.Invoke(new Action(() => |
|||
{ |
|||
kel = (comboBox3.SelectedItem as InvoiceObj).unitCode; |
|||
})); |
|||
cn.Open(); |
|||
cm = new SqlCommand("Declare @baseunit varchar(150) = (Select baseUnit from tblProduct where pcode = @pcode) " + |
|||
"Declare @dquantity int = Case when @baseUnit = @unit then 1 else " + |
|||
"(Select [quantity/unit] as quantity from ProductAltUnit where pcode = @pcode and unitCode = @unit and branchID = @branchID) " + |
|||
"end " + |
|||
"Declare @costprice decimal(19, 2) = Case when @baseUnit = @unit then (Select price from tblProduct where tblProduct.pcode = @pcode " + |
|||
"and tblProduct.branchID = @branchID) else " + |
|||
"(Select [price/unit] from ProductAltUnit where pcode = @pcode and unitCode = @unit and branchID = @branchID) " + |
|||
"end " + |
|||
"Select @costprice,I.quantity / @dquantity as quantity from tblProduct Inner Join tblInventory I On tblProduct.pcode = I.pcode " + |
|||
"where tblProduct.pcode = @pcode and tblProduct.branchID = @branchID", cn); |
|||
cm.Parameters.AddWithValue("@pcode", productCode); |
|||
cm.Parameters.AddWithValue("@unit", kel); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
dr.Read(); |
|||
if (dr.HasRows) |
|||
{ |
|||
if (quantity <= int.Parse(dr[1].ToString())) |
|||
{ |
|||
decimal price = decimal.Parse(dr[0].ToString()); |
|||
|
|||
invoiceDetails.Invoke(new Action(() => |
|||
{ |
|||
|
|||
string distinctive = (comboBox3.SelectedItem as InvoiceObj).distinctive.ToString(); |
|||
if (!invoiced.Contains(distinctive)) |
|||
{ |
|||
decimal totalPrice = quantity * price; |
|||
invoiceDetails.Rows.Add(i, productCode, comboBox2.Text, quantity.ToString(), comboBox3.Text, Settings.Default.currrencyCode + " " + |
|||
totalPrice.ToString(), kel,distinctive); |
|||
invoiced.Add(distinctive); |
|||
} |
|||
else |
|||
{ |
|||
foreach (DataGridViewRow row in invoiceDetails.Rows) |
|||
{ |
|||
if (row.Cells[7].Value.ToString().Equals(distinctive)) |
|||
{ |
|||
int total_quantity = int.Parse(row.Cells[3].Value.ToString()); |
|||
total_quantity += quantity; |
|||
decimal totalPrice = total_quantity * price; |
|||
row.Cells[3].Value = total_quantity; |
|||
row.Cells[5].Value = Settings.Default.currrencyCode + " " + totalPrice; |
|||
} |
|||
} |
|||
} |
|||
})); |
|||
i++; |
|||
dr.Close(); |
|||
cn.Close(); |
|||
return 1; |
|||
} |
|||
else |
|||
{ |
|||
invoiceDetails.Invoke(new Action(() => |
|||
{ |
|||
DESC.Text = DESC.Text + " \n only " + dr[1].ToString()+ " " + comboBox3.Text + " of " +comboBox2.Text +" available !!!"; |
|||
})); |
|||
dr.Close(); |
|||
cn.Close(); |
|||
return 2; |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
dr.Close(); |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
private void Button1_Click(object sender, EventArgs e) |
|||
{ |
|||
string code = (comboBox2.SelectedItem as InvoiceObj).pcode.ToString(); |
|||
CashierquantityInvoice quantity = new CashierquantityInvoice(this, code); |
|||
quantity.BringToFront(); |
|||
quantity.ShowDialog(); |
|||
} |
|||
private void InvoiceDetails_CellContentClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
|
|||
} |
|||
public Image getBarcodeImage(string Bcode) |
|||
{ |
|||
Barcode barcodeAPI = new Barcode(); |
|||
Color foreColor = Color.Black; |
|||
Color backColor = Color.Transparent; |
|||
return barcodeAPI.Encode(TYPE.UPCA, Bcode, foreColor, backColor, 290, 120); |
|||
} |
|||
public int GenerateInvoice() |
|||
{ |
|||
try |
|||
{ |
|||
receiptClasses.Clear(); |
|||
receiptClasses2.Clear(); |
|||
cn.Open(); |
|||
transaction = cn.BeginTransaction(); |
|||
invoiceIDGenerated = String.Format("{0:d12}", (DateTime.Now.Ticks / 10) % 1000000000); |
|||
invoiceDetails.Invoke(new Action(() => |
|||
{ |
|||
decimal allTotal = 0; |
|||
foreach (DataGridViewRow row in invoiceDetails.Rows) |
|||
{ |
|||
decimal total = decimal.Parse(row.Cells[5].Value.ToString().Substring(Settings.Default.currrencyCode.Length)); |
|||
int qty = int.Parse(row.Cells[3].Value.ToString()); |
|||
cm = new SqlCommand("Insert into tblInvoice (invoiceID,pcode,quantity,totalprice,unitprice,dateGenerated,status,generatedBy,branchID,countID,unit) " + |
|||
"Values (@invoiceID,@pcode,@quantity,@totalprice,@unitprice,@dateGenerated,@status,@generatedBy,@branchID,@countID,@unit)", cn, transaction); |
|||
cm.Parameters.AddWithValue("@invoiceID", invoiceIDGenerated); |
|||
cm.Parameters.AddWithValue("@pcode", row.Cells[1].Value.ToString()); |
|||
cm.Parameters.AddWithValue("@unit", row.Cells[6].Value.ToString()); |
|||
cm.Parameters.AddWithValue("@quantity", qty); |
|||
cm.Parameters.AddWithValue("@totalprice", total); |
|||
cm.Parameters.AddWithValue("@unitprice", (total / qty)); |
|||
cm.Parameters.AddWithValue("@dateGenerated", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")); |
|||
cm.Parameters.AddWithValue("@status", "PENDING PURCHASE"); |
|||
cm.Parameters.AddWithValue("@generatedBy", MainLogin.login_user); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.Parameters.AddWithValue("@countID", row.Cells[1].Value.ToString() + DateTime.Now.ToString("yyyyMMddHHmmssfff")); |
|||
cm.ExecuteNonQuery(); |
|||
|
|||
ReceiptObject receipt = new ReceiptObject(row.Cells[2].Value.ToString(), total / qty, qty, total); |
|||
receiptClasses.Add(receipt); |
|||
allTotal += total; |
|||
} |
|||
transaction.Commit(); |
|||
MemoryStream ms = new MemoryStream(); |
|||
getBarcodeImage(invoiceIDGenerated).Save(ms, ImageFormat.Png); |
|||
byte[] imageBytes = ms.ToArray(); |
|||
string barcodeStringImage = Convert.ToBase64String(imageBytes); |
|||
|
|||
bottom bottomReceipt = new bottom("", invoiceIDGenerated, MainLogin.login_user, allTotal, allTotal, "", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), |
|||
"", "", CashierMain.bCompanyName, CashierMain.branchName, CashierMain.branchLocation, CashierMain.branchTel, CashierMain.tin, CashierMain.vatno, |
|||
barcodeStringImage, name, address); |
|||
receiptClasses2.Add(bottomReceipt); |
|||
|
|||
if (printerReceiptDefault == "Microsoft XPS Document Writer" || printerReceiptDefault == "Microsoft Print to PDF") |
|||
{ |
|||
FolderBrowserDialog folder = new FolderBrowserDialog(); |
|||
DialogResult result = folder.ShowDialog(); |
|||
if (result == DialogResult.OK && !String.IsNullOrEmpty(folder.SelectedPath)) |
|||
{ |
|||
printLocation = folder.SelectedPath; |
|||
LocalReport report = new LocalReport(); |
|||
string path = Path.GetDirectoryName(Application.ExecutablePath); |
|||
string fullpath = Path.GetDirectoryName(Application.ExecutablePath).Remove(path.Length - 10) + |
|||
@"\ProFormar.rdlc"; |
|||
report.ReportPath = fullpath; |
|||
report.DataSources.Add(new ReportDataSource("ReceiptReport", receiptClasses)); |
|||
report.DataSources.Add(new ReportDataSource("ReceiptRest", receiptClasses2)); |
|||
ReportConfig.PrintToPrinter(report, printLocation, printerReceiptDefault); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
printLocation = ""; |
|||
LocalReport report = new LocalReport(); |
|||
string path = Path.GetDirectoryName(Application.ExecutablePath); |
|||
string fullpath = Path.GetDirectoryName(Application.ExecutablePath).Remove(path.Length - 10) + |
|||
@"\ProFormar.rdlc"; |
|||
report.ReportPath = fullpath; |
|||
report.DataSources.Add(new ReportDataSource("ReceiptReport", receiptClasses)); |
|||
report.DataSources.Add(new ReportDataSource("ReceiptRest", receiptClasses2)); |
|||
ReportConfig.PrintToPrinter(report, printLocation, printerReceiptDefault); |
|||
} |
|||
})); |
|||
cn.Close(); |
|||
return 1; |
|||
} |
|||
catch |
|||
{ |
|||
transaction.Rollback(); |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
private async void BtnGenerate_Click(object sender, EventArgs e) |
|||
{ |
|||
FillDetails fillDetails = new FillDetails(); |
|||
fillDetails.BringToFront(); |
|||
fillDetails.ShowDialog(); |
|||
if (fillDetails.DialogResult == DialogResult.OK) |
|||
{ |
|||
name = fillDetails.customerName; |
|||
address = fillDetails.address; |
|||
Task<int> task = new Task<int>(() => |
|||
{ |
|||
GenerateInvoice(); |
|||
invoiceMain.LoadInvoice(); |
|||
return 1; |
|||
}); |
|||
task.Start(); |
|||
await task; |
|||
} |
|||
} |
|||
private void ComboBox2_TextUpdate(object sender, EventArgs e) |
|||
{ |
|||
//string filter_param = comboBox2.Text;
|
|||
//List<string> filteredItems = ProductNCode.ToList().FindAll(x => x.Contains(filter_param.ToUpper()));
|
|||
//comboBox2.DataSource = filteredItems;
|
|||
//if (String.IsNullOrWhiteSpace(filter_param))
|
|||
//{
|
|||
// comboBox2.DataSource = ProductNCode.Values.ToList();
|
|||
//}
|
|||
//comboBox2.DroppedDown = true;
|
|||
//comboBox2.IntegralHeight = true;
|
|||
//comboBox2.SelectedIndex = -1;
|
|||
//comboBox2.Text = filter_param;
|
|||
//comboBox2.SelectionStart = filter_param.Length;
|
|||
//comboBox2.SelectionLength = 0;
|
|||
//selectProductCode(comboBox2.Text);
|
|||
} |
|||
private void ComboBox2_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
Selected.Clear(); |
|||
if (!String.IsNullOrEmpty(comboBox2.Text)) |
|||
{ |
|||
foreach (InvoiceObj invoiceObj in ProductNCode) |
|||
{ |
|||
if (invoiceObj.productName.Equals(comboBox2.Text)) |
|||
{ |
|||
if (!Selected.Contains(invoiceObj)) |
|||
Selected.Add(invoiceObj); |
|||
} |
|||
} |
|||
comboBox3.DataSource = null; |
|||
comboBox3.DataSource = Selected; |
|||
comboBox3.DisplayMember = "unitName"; |
|||
comboBox3.ValueMember = "unitCode"; |
|||
comboBox3.SelectedIndex = -1; |
|||
if (comboBox2.SelectedItem != null) |
|||
{ |
|||
comboBox3.Text = (comboBox2.SelectedItem as InvoiceObj).unitName.ToString(); |
|||
DESC.Text = (comboBox2.SelectedItem as InvoiceObj).description.ToString(); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
comboBox3.DataSource = null; |
|||
comboBox3.DataSource = Selected; |
|||
DESC.Text = ""; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,168 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="barcodecolumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Delete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|||
<data name="Delete.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
|||
xAAADsQBlSsOGwAAAQNJREFUOE/N0yFrQmEUxvEXGSILInKDyWT0I8gQMYlJZB/EMEREMMjFYBYRMZjH |
|||
EIPIZcHgJzAsiSwuGQwiC/o/eMbLxKtOyw78wjn3nIcrXM2p2hmTxRIb9YmcPj5fLAbwhb4cqQ5WCOra |
|||
7+LBA15QRxM79LQXbZ21tC/DhtHkIQt/UdRzOmNG2OIb6wtkR3Y9PT8UA3m1sba+xc4rmtraYliTAIQw |
|||
RwIS6iKuszDecDbgEfIbk+hiAAmTWRQS4OqZLYb/I2CCmwOquCZgCN8AD3cFvCMI+ZxjKOAZjs4kXD66 |
|||
hp7ZYljCAhk8IXVEZml8oKJnthhGMMXPX9jPDM7hypg9OwIavDoR7wIAAAAASUVORK5CYII= |
|||
</value> |
|||
</data> |
|||
<data name="dataGridViewImageColumn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
|||
xAAADsQBlSsOGwAAAQNJREFUOE/N0yFrQmEUxvEXGSILInKDyWT0I8gQMYlJZB/EMEREMMjFYBYRMZjH |
|||
EIPIZcHgJzAsiSwuGQwiC/o/eMbLxKtOyw78wjn3nIcrXM2p2hmTxRIb9YmcPj5fLAbwhb4cqQ5WCOra |
|||
7+LBA15QRxM79LQXbZ21tC/DhtHkIQt/UdRzOmNG2OIb6wtkR3Y9PT8UA3m1sba+xc4rmtraYliTAIQw |
|||
RwIS6iKuszDecDbgEfIbk+hiAAmTWRQS4OqZLYb/I2CCmwOquCZgCN8AD3cFvCMI+ZxjKOAZjs4kXD66 |
|||
hp7ZYljCAhk8IXVEZml8oKJnthhGMMXPX9jPDM7hypg9OwIavDoR7wIAAAAASUVORK5CYII= |
|||
</value> |
|||
</data> |
|||
</root> |
@ -0,0 +1,420 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Invoice |
|||
{ |
|||
partial class CashierInvoiceDialog |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceDialog)); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.holding = new System.Windows.Forms.Panel(); |
|||
this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner(); |
|||
this.panel4 = new System.Windows.Forms.Panel(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.invoiceDetails = new System.Windows.Forms.DataGridView(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.lblTotalCost = new System.Windows.Forms.Label(); |
|||
this.lblInvoice = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.titlePanel = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.lblInvoiceTitle = new System.Windows.Forms.Label(); |
|||
this.closeBTN = new System.Windows.Forms.Label(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.barcodecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Delete = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.panel1.SuspendLayout(); |
|||
this.holding.SuspendLayout(); |
|||
this.panel4.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceDetails)).BeginInit(); |
|||
this.panel3.SuspendLayout(); |
|||
this.titlePanel.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.holding); |
|||
this.panel1.Controls.Add(this.invoiceDetails); |
|||
this.panel1.Controls.Add(this.panel3); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 38); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Padding = new System.Windows.Forms.Padding(5); |
|||
this.panel1.Size = new System.Drawing.Size(659, 616); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// holding
|
|||
//
|
|||
this.holding.Controls.Add(this.metroProgressSpinner1); |
|||
this.holding.Controls.Add(this.panel4); |
|||
this.holding.Location = new System.Drawing.Point(166, 289); |
|||
this.holding.Name = "holding"; |
|||
this.holding.Size = new System.Drawing.Size(273, 121); |
|||
this.holding.TabIndex = 6; |
|||
this.holding.Visible = false; |
|||
//
|
|||
// metroProgressSpinner1
|
|||
//
|
|||
this.metroProgressSpinner1.Location = new System.Drawing.Point(103, 63); |
|||
this.metroProgressSpinner1.Maximum = 100; |
|||
this.metroProgressSpinner1.Name = "metroProgressSpinner1"; |
|||
this.metroProgressSpinner1.Size = new System.Drawing.Size(51, 41); |
|||
this.metroProgressSpinner1.TabIndex = 1; |
|||
this.metroProgressSpinner1.UseCustomBackColor = true; |
|||
this.metroProgressSpinner1.UseSelectable = true; |
|||
//
|
|||
// panel4
|
|||
//
|
|||
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.panel4.Controls.Add(this.label2); |
|||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel4.Location = new System.Drawing.Point(0, 0); |
|||
this.panel4.Name = "panel4"; |
|||
this.panel4.Size = new System.Drawing.Size(273, 40); |
|||
this.panel4.TabIndex = 0; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label2.Location = new System.Drawing.Point(0, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(273, 40); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Please Wait...."; |
|||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
//
|
|||
// invoiceDetails
|
|||
//
|
|||
this.invoiceDetails.AllowUserToAddRows = false; |
|||
this.invoiceDetails.AllowUserToDeleteRows = false; |
|||
this.invoiceDetails.AllowUserToResizeColumns = false; |
|||
this.invoiceDetails.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.invoiceDetails.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.invoiceDetails.BackgroundColor = System.Drawing.Color.White; |
|||
this.invoiceDetails.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.invoiceDetails.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceDetails.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.invoiceDetails.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|||
this.invoiceDetails.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.barcodecolumn, |
|||
this.Column4, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column6, |
|||
this.Column7, |
|||
this.Delete}); |
|||
this.invoiceDetails.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.invoiceDetails.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.invoiceDetails.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.invoiceDetails.EnableHeadersVisualStyles = false; |
|||
this.invoiceDetails.Location = new System.Drawing.Point(5, 119); |
|||
this.invoiceDetails.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.invoiceDetails.Name = "invoiceDetails"; |
|||
this.invoiceDetails.ReadOnly = true; |
|||
this.invoiceDetails.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceDetails.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.invoiceDetails.RowHeadersVisible = false; |
|||
this.invoiceDetails.RowTemplate.Height = 40; |
|||
this.invoiceDetails.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.invoiceDetails.Size = new System.Drawing.Size(647, 490); |
|||
this.invoiceDetails.TabIndex = 5; |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.Controls.Add(this.button1); |
|||
this.panel3.Controls.Add(this.lblTotalCost); |
|||
this.panel3.Controls.Add(this.lblInvoice); |
|||
this.panel3.Controls.Add(this.label3); |
|||
this.panel3.Controls.Add(this.label1); |
|||
this.panel3.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel3.Location = new System.Drawing.Point(5, 5); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(647, 114); |
|||
this.panel3.TabIndex = 4; |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(187)))), ((int)(((byte)(56))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.button1.ForeColor = System.Drawing.SystemColors.ControlDark; |
|||
this.button1.Location = new System.Drawing.Point(264, 68); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(145, 41); |
|||
this.button1.TabIndex = 1; |
|||
this.button1.Text = "SELL OFF"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// lblTotalCost
|
|||
//
|
|||
this.lblTotalCost.AutoSize = true; |
|||
this.lblTotalCost.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.lblTotalCost.Location = new System.Drawing.Point(236, 38); |
|||
this.lblTotalCost.Name = "lblTotalCost"; |
|||
this.lblTotalCost.Size = new System.Drawing.Size(0, 21); |
|||
this.lblTotalCost.TabIndex = 0; |
|||
//
|
|||
// lblInvoice
|
|||
//
|
|||
this.lblInvoice.AutoSize = true; |
|||
this.lblInvoice.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.lblInvoice.Location = new System.Drawing.Point(236, 9); |
|||
this.lblInvoice.Name = "lblInvoice"; |
|||
this.lblInvoice.Size = new System.Drawing.Size(0, 21); |
|||
this.lblInvoice.TabIndex = 0; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label3.Location = new System.Drawing.Point(118, 38); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(96, 21); |
|||
this.label3.TabIndex = 0; |
|||
this.label3.Text = "TOTAL COST"; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(118, 9); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(89, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "INVOICE ID"; |
|||
//
|
|||
// titlePanel
|
|||
//
|
|||
this.titlePanel.BackColor = System.Drawing.Color.Transparent; |
|||
this.titlePanel.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.titlePanel.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.titlePanel.Controls.Add(this.lblInvoiceTitle); |
|||
this.titlePanel.Controls.Add(this.closeBTN); |
|||
this.titlePanel.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.titlePanel.Location = new System.Drawing.Point(0, 0); |
|||
this.titlePanel.Name = "titlePanel"; |
|||
this.titlePanel.Size = new System.Drawing.Size(659, 38); |
|||
this.titlePanel.TabIndex = 3; |
|||
//
|
|||
// lblInvoiceTitle
|
|||
//
|
|||
this.lblInvoiceTitle.BackColor = System.Drawing.Color.Transparent; |
|||
this.lblInvoiceTitle.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.lblInvoiceTitle.ForeColor = System.Drawing.Color.White; |
|||
this.lblInvoiceTitle.Location = new System.Drawing.Point(0, 0); |
|||
this.lblInvoiceTitle.Name = "lblInvoiceTitle"; |
|||
this.lblInvoiceTitle.Size = new System.Drawing.Size(616, 38); |
|||
this.lblInvoiceTitle.TabIndex = 1; |
|||
this.lblInvoiceTitle.Text = "INVOICE REVIEW"; |
|||
this.lblInvoiceTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// closeBTN
|
|||
//
|
|||
this.closeBTN.BackColor = System.Drawing.Color.Transparent; |
|||
this.closeBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.closeBTN.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.closeBTN.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.closeBTN.Location = new System.Drawing.Point(616, 0); |
|||
this.closeBTN.Name = "closeBTN"; |
|||
this.closeBTN.Size = new System.Drawing.Size(43, 38); |
|||
this.closeBTN.TabIndex = 0; |
|||
this.closeBTN.Text = "x"; |
|||
this.closeBTN.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.closeBTN.Click += new System.EventHandler(this.CloseBTN_Click); |
|||
this.closeBTN.MouseEnter += new System.EventHandler(this.CloseBTN_MouseEnter); |
|||
this.closeBTN.MouseLeave += new System.EventHandler(this.CloseBTN_MouseLeave); |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.DataPropertyName = "invoice_id"; |
|||
this.Column2.HeaderText = "PRODUCT ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Width = 123; |
|||
//
|
|||
// barcodecolumn
|
|||
//
|
|||
this.barcodecolumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.barcodecolumn.HeaderText = "PRODUCT NAME"; |
|||
this.barcodecolumn.Name = "barcodecolumn"; |
|||
this.barcodecolumn.ReadOnly = true; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.DataPropertyName = "pdesc"; |
|||
this.Column4.HeaderText = "QUANTITY"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
this.Column4.Width = 107; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column3.HeaderText = "UNIT"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
this.Column3.Width = 68; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.DataPropertyName = "category"; |
|||
this.Column5.HeaderText = "TOTAL COST"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 119; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.HeaderText = "unitCode"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.ReadOnly = true; |
|||
this.Column6.Visible = false; |
|||
//
|
|||
// Column7
|
|||
//
|
|||
this.Column7.HeaderText = "distinctiveCode"; |
|||
this.Column7.Name = "Column7"; |
|||
this.Column7.ReadOnly = true; |
|||
this.Column7.Visible = false; |
|||
//
|
|||
// Delete
|
|||
//
|
|||
this.Delete.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Delete.HeaderText = ""; |
|||
this.Delete.Image = ((System.Drawing.Image)(resources.GetObject("Delete.Image"))); |
|||
this.Delete.Name = "Delete"; |
|||
this.Delete.ReadOnly = true; |
|||
this.Delete.Width = 5; |
|||
//
|
|||
// InvoiceDialog
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(659, 654); |
|||
this.Controls.Add(this.panel1); |
|||
this.Controls.Add(this.titlePanel); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "InvoiceDialog"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|||
this.Load += new System.EventHandler(this.InvoiceDialog_Load); |
|||
this.panel1.ResumeLayout(false); |
|||
this.holding.ResumeLayout(false); |
|||
this.panel4.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceDetails)).EndInit(); |
|||
this.panel3.ResumeLayout(false); |
|||
this.panel3.PerformLayout(); |
|||
this.titlePanel.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private gradientPanel titlePanel; |
|||
private System.Windows.Forms.Label lblInvoiceTitle; |
|||
private System.Windows.Forms.Label closeBTN; |
|||
private System.Windows.Forms.DataGridView invoiceDetails; |
|||
private System.Windows.Forms.Label lblTotalCost; |
|||
private System.Windows.Forms.Label lblInvoice; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Panel holding; |
|||
private MetroFramework.Controls.MetroProgressSpinner metroProgressSpinner1; |
|||
private System.Windows.Forms.Panel panel4; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn barcodecolumn; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|||
private System.Windows.Forms.DataGridViewImageColumn Delete; |
|||
} |
|||
} |
@ -0,0 +1,140 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment; |
|||
using Point_Of_Sale_Managment.Cashier_Module.Invoice; |
|||
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 BiskLog_Point_Of_Sale.Invoice |
|||
{ |
|||
public partial class CashierInvoiceDialog : Form |
|||
{ |
|||
CashierInvoiceMain invoiceMain; |
|||
SqlConnection cn; |
|||
SqlCommand cm; |
|||
SqlDataReader dr; |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
public CashierInvoiceDialog(CashierInvoiceMain main, string id, string totalCost, string status) |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
invoiceMain = main; |
|||
lblInvoice.Text = id; |
|||
lblTotalCost.Text = totalCost; |
|||
if (status == "SOLD") |
|||
{ |
|||
button1.Enabled = false; |
|||
} |
|||
else |
|||
{ |
|||
button1.Enabled = true; |
|||
} |
|||
holding.Left = (ClientSize.Width - holding.Width) / 2; |
|||
} |
|||
|
|||
private void CloseBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void CloseBTN_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
closeBTN.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void CloseBTN_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
closeBTN.BackColor = Color.Transparent; |
|||
} |
|||
public int LoadInvoice() |
|||
{ |
|||
try |
|||
{ |
|||
int i = 1; |
|||
invoiceDetails.Invoke(new Action(() => |
|||
{ |
|||
invoiceDetails.Rows.Clear(); |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select I.pcode,P.product_name,I.quantity,I.totalprice,uni.unitname,I.unit,P.baseUnit from tblInvoice I Inner Join tblProduct P On " + |
|||
"P.pcode = I.pcode Inner Join UnitOfMeasure uni On uni.unitCode = I.unit where I.invoiceID = @invoiceID and I.branchID = @branchID " + |
|||
"Select I.pcode,P.product_name,I.quantity,I.totalprice,uni.unitname,I.unit,PAU.distinctiveCode from tblInvoice I Inner Join tblProduct P On " + |
|||
"P.pcode = I.pcode Inner Join UnitOfMeasure uni On uni.unitCode = I.unit Inner Join ProductAltUnit PAU On PAU.unitCode = I.unit and PAU.pcode = I.pcode " + |
|||
"where I.invoiceID = @invoiceID and I.branchID = @branchID", cn); |
|||
cm.Parameters.AddWithValue("@invoiceID", lblInvoice.Text); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
if (dr[5].ToString().Equals(dr[6].ToString())) |
|||
{ |
|||
invoiceDetails.Rows.Add(i, dr[0].ToString(), dr[1].ToString(), dr[2].ToString(), dr[4].ToString() |
|||
, Settings.Default.currrencyCode + " " + dr[3].ToString(), dr[5].ToString(), dr[0].ToString()); |
|||
i++; |
|||
} |
|||
} |
|||
dr.NextResult(); |
|||
while (dr.Read()) |
|||
{ |
|||
invoiceDetails.Rows.Add(i, dr[0].ToString(), dr[1].ToString(), dr[2].ToString(), dr[4].ToString() |
|||
, Settings.Default.currrencyCode + " " + dr[3].ToString(), dr[5].ToString(), dr[6].ToString()); |
|||
i++; |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
})); |
|||
return 1; |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
|
|||
private async void InvoiceDialog_Load(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(LoadInvoice); |
|||
holding.Visible = true; |
|||
task.Start(); |
|||
await task; |
|||
holding.Visible = false; |
|||
} |
|||
private List<InvoicePOS> getList() |
|||
{ |
|||
List<InvoicePOS> invoices = new List<InvoicePOS>(); |
|||
foreach (DataGridViewRow row in invoiceDetails.Rows) |
|||
{ |
|||
decimal total = decimal.Parse(row.Cells[5].Value.ToString().Substring(Settings.Default.currrencyCode.Length)); |
|||
int quantity = int.Parse(row.Cells[3].Value.ToString()); |
|||
decimal unit = total / quantity; |
|||
InvoicePOS invoice = new InvoicePOS( |
|||
productCode: row.Cells[1].Value.ToString(), quantity: quantity, |
|||
totalprice: total, unitprice: unit, |
|||
productname: row.Cells[2].Value.ToString(), |
|||
unitCode: row.Cells[6].Value.ToString(), |
|||
unitName: row.Cells[4].Value.ToString(), |
|||
distinctiveCode: row.Cells[7].Value.ToString() |
|||
); |
|||
invoices.Add(invoice); |
|||
|
|||
|
|||
} |
|||
return invoices; |
|||
} |
|||
private void Button1_Click(object sender, EventArgs e) |
|||
{ |
|||
string id = ""; |
|||
lblInvoice.Invoke(new Action(() => id = lblInvoice.Text)); |
|||
invoiceMain.ShowSalesPOS(this, getList(), lblInvoice.Text); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,158 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="barcodecolumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Delete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|||
<data name="Delete.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
|||
xAAADsQBlSsOGwAAAQNJREFUOE/N0yFrQmEUxvEXGSILInKDyWT0I8gQMYlJZB/EMEREMMjFYBYRMZjH |
|||
EIPIZcHgJzAsiSwuGQwiC/o/eMbLxKtOyw78wjn3nIcrXM2p2hmTxRIb9YmcPj5fLAbwhb4cqQ5WCOra |
|||
7+LBA15QRxM79LQXbZ21tC/DhtHkIQt/UdRzOmNG2OIb6wtkR3Y9PT8UA3m1sba+xc4rmtraYliTAIQw |
|||
RwIS6iKuszDecDbgEfIbk+hiAAmTWRQS4OqZLYb/I2CCmwOquCZgCN8AD3cFvCMI+ZxjKOAZjs4kXD66 |
|||
hp7ZYljCAhk8IXVEZml8oKJnthhGMMXPX9jPDM7hypg9OwIavDoR7wIAAAAASUVORK5CYII= |
|||
</value> |
|||
</data> |
|||
</root> |
@ -0,0 +1,372 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace Point_Of_Sale_Managment.Cashier_Module.Invoice |
|||
{ |
|||
partial class CashierInvoiceMain |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceMain)); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.Header = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.txtSearch = new MetroFramework.Controls.MetroTextBox(); |
|||
this.addProducts = new System.Windows.Forms.PictureBox(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.barcodecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.holding = new System.Windows.Forms.Panel(); |
|||
this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner(); |
|||
this.panel4 = new System.Windows.Forms.Panel(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.Header.SuspendLayout(); |
|||
this.panel2.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.addProducts)).BeginInit(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.holding.SuspendLayout(); |
|||
this.panel4.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// Header
|
|||
//
|
|||
this.Header.BackColor = System.Drawing.Color.Transparent; |
|||
this.Header.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.Header.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.Header.Controls.Add(this.label1); |
|||
this.Header.Controls.Add(this.panel2); |
|||
this.Header.Controls.Add(this.addProducts); |
|||
this.Header.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.Header.Location = new System.Drawing.Point(0, 0); |
|||
this.Header.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.Header.Name = "Header"; |
|||
this.Header.Size = new System.Drawing.Size(1063, 46); |
|||
this.Header.TabIndex = 3; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.White; |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(678, 46); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "INVOICE LIST"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.BackColor = System.Drawing.Color.Transparent; |
|||
this.panel2.Controls.Add(this.txtSearch); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.panel2.Location = new System.Drawing.Point(678, 0); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(325, 46); |
|||
this.panel2.TabIndex = 3; |
|||
//
|
|||
// txtSearch
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.txtSearch.CustomButton.Image = null; |
|||
this.txtSearch.CustomButton.Location = new System.Drawing.Point(288, 2); |
|||
this.txtSearch.CustomButton.Name = ""; |
|||
this.txtSearch.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.txtSearch.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.txtSearch.CustomButton.TabIndex = 1; |
|||
this.txtSearch.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.txtSearch.CustomButton.UseSelectable = true; |
|||
this.txtSearch.CustomButton.Visible = false; |
|||
this.txtSearch.DisplayIcon = true; |
|||
this.txtSearch.FontSize = MetroFramework.MetroTextBoxSize.Medium; |
|||
this.txtSearch.Icon = ((System.Drawing.Image)(resources.GetObject("txtSearch.Icon"))); |
|||
this.txtSearch.Lines = new string[0]; |
|||
this.txtSearch.Location = new System.Drawing.Point(3, 8); |
|||
this.txtSearch.MaxLength = 32767; |
|||
this.txtSearch.Name = "txtSearch"; |
|||
this.txtSearch.PasswordChar = '\0'; |
|||
this.txtSearch.PromptText = "Search Here"; |
|||
this.txtSearch.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.txtSearch.SelectedText = ""; |
|||
this.txtSearch.SelectionLength = 0; |
|||
this.txtSearch.SelectionStart = 0; |
|||
this.txtSearch.ShortcutsEnabled = true; |
|||
this.txtSearch.Size = new System.Drawing.Size(316, 30); |
|||
this.txtSearch.TabIndex = 0; |
|||
this.txtSearch.UseSelectable = true; |
|||
this.txtSearch.WaterMark = "Search Here"; |
|||
this.txtSearch.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.txtSearch.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.txtSearch.TextChanged += new System.EventHandler(this.TxtSearch_TextChanged); |
|||
//
|
|||
// addProducts
|
|||
//
|
|||
this.addProducts.BackColor = System.Drawing.Color.Transparent; |
|||
this.addProducts.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.addProducts.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.addProducts.Image = ((System.Drawing.Image)(resources.GetObject("addProducts.Image"))); |
|||
this.addProducts.Location = new System.Drawing.Point(1003, 0); |
|||
this.addProducts.Name = "addProducts"; |
|||
this.addProducts.Size = new System.Drawing.Size(60, 46); |
|||
this.addProducts.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; |
|||
this.addProducts.TabIndex = 2; |
|||
this.addProducts.TabStop = false; |
|||
this.addProducts.Click += new System.EventHandler(this.AddProducts_Click); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToDeleteRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.barcodecolumn, |
|||
this.Column4, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column6}); |
|||
this.dataGridView1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 46); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.ReadOnly = true; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
this.dataGridView1.RowTemplate.Height = 40; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(1063, 783); |
|||
this.dataGridView1.TabIndex = 4; |
|||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellClick); |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.DataPropertyName = "invoice_id"; |
|||
this.Column2.HeaderText = "INVOICE ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Width = 112; |
|||
//
|
|||
// barcodecolumn
|
|||
//
|
|||
this.barcodecolumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.barcodecolumn.HeaderText = "NUMBER OF ITEMS"; |
|||
this.barcodecolumn.Name = "barcodecolumn"; |
|||
this.barcodecolumn.ReadOnly = true; |
|||
this.barcodecolumn.Width = 168; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.DataPropertyName = "pdesc"; |
|||
this.Column4.HeaderText = "DATE CREATED"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
this.Column4.Width = 137; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.DataPropertyName = "brand"; |
|||
this.Column3.HeaderText = "GENERATED BY"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.DataPropertyName = "category"; |
|||
this.Column5.HeaderText = "TOTAL COST"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 119; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column6.HeaderText = "STATUS"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.ReadOnly = true; |
|||
this.Column6.Width = 86; |
|||
//
|
|||
// holding
|
|||
//
|
|||
this.holding.Controls.Add(this.metroProgressSpinner1); |
|||
this.holding.Controls.Add(this.panel4); |
|||
this.holding.Location = new System.Drawing.Point(439, 314); |
|||
this.holding.Name = "holding"; |
|||
this.holding.Size = new System.Drawing.Size(273, 121); |
|||
this.holding.TabIndex = 5; |
|||
this.holding.Visible = false; |
|||
//
|
|||
// metroProgressSpinner1
|
|||
//
|
|||
this.metroProgressSpinner1.Location = new System.Drawing.Point(103, 63); |
|||
this.metroProgressSpinner1.Maximum = 100; |
|||
this.metroProgressSpinner1.Name = "metroProgressSpinner1"; |
|||
this.metroProgressSpinner1.Size = new System.Drawing.Size(51, 41); |
|||
this.metroProgressSpinner1.TabIndex = 1; |
|||
this.metroProgressSpinner1.UseCustomBackColor = true; |
|||
this.metroProgressSpinner1.UseSelectable = true; |
|||
//
|
|||
// panel4
|
|||
//
|
|||
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.panel4.Controls.Add(this.label2); |
|||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel4.Location = new System.Drawing.Point(0, 0); |
|||
this.panel4.Name = "panel4"; |
|||
this.panel4.Size = new System.Drawing.Size(273, 40); |
|||
this.panel4.TabIndex = 0; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label2.Location = new System.Drawing.Point(0, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(273, 40); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Please Wait...."; |
|||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
//
|
|||
// dataGridViewImageColumn1
|
|||
//
|
|||
this.dataGridViewImageColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.dataGridViewImageColumn1.HeaderText = ""; |
|||
this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image"))); |
|||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; |
|||
//
|
|||
// InvoiceMain
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(1063, 829); |
|||
this.Controls.Add(this.holding); |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Controls.Add(this.Header); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "InvoiceMain"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "InvoiceMain"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.Load += new System.EventHandler(this.InvoiceMain_Load); |
|||
this.Header.ResumeLayout(false); |
|||
this.panel2.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.addProducts)).EndInit(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.holding.ResumeLayout(false); |
|||
this.panel4.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private gradientPanel Header; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private MetroFramework.Controls.MetroTextBox txtSearch; |
|||
private System.Windows.Forms.PictureBox addProducts; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; |
|||
private System.Windows.Forms.Panel holding; |
|||
private MetroFramework.Controls.MetroProgressSpinner metroProgressSpinner1; |
|||
private System.Windows.Forms.Panel panel4; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn barcodecolumn; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
} |
|||
} |
@ -0,0 +1,118 @@ |
|||
using BiskLog_Point_Of_Sale.Cashier_Module; |
|||
using BiskLog_Point_Of_Sale.Cashier_Module.Invoice; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Invoice; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment.CashierModule; |
|||
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 Point_Of_Sale_Managment.Cashier_Module.Invoice |
|||
{ |
|||
public partial class CashierInvoiceMain : Form |
|||
{ |
|||
SqlConnection cn; |
|||
SqlCommand cm; |
|||
SqlDataReader dr; |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
CashierMain mainForm; |
|||
public CashierInvoiceMain(CashierMain form = null) |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
holding.Left = (ClientSize.Width - holding.Width) / 2; |
|||
if (form != null) |
|||
{ |
|||
mainForm = form; |
|||
} |
|||
} |
|||
|
|||
private async void InvoiceMain_Load(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(LoadInvoice); |
|||
holding.Visible = true; |
|||
task.Start(); |
|||
await task; |
|||
holding.Visible = false; |
|||
} |
|||
private void AddProducts_Click(object sender, EventArgs e) |
|||
{ |
|||
CashierAddInvoice newInvoice = new CashierAddInvoice(this); |
|||
newInvoice.BringToFront(); |
|||
newInvoice.ShowDialog(); |
|||
} |
|||
public int LoadInvoice() |
|||
{ |
|||
try |
|||
{ |
|||
int i = 1; |
|||
cn.Open(); |
|||
dataGridView1.Invoke(new Action(() => |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
cm = new SqlCommand("Select Distinct invoiceID,count(invoiceID),dateGenerated,generatedBy,sum(totalprice),status " + |
|||
"from tblInvoice where branchID = @branchID and invoiceID like '%" + txtSearch.Text + "%'group by invoiceID,dateGenerated," + |
|||
"generatedBy,status order by dateGenerated desc", cn); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
dataGridView1.Rows.Add(i, dr[0].ToString(), dr[1].ToString(), Convert.ToDateTime(dr[2].ToString()).ToLongDateString(), |
|||
dr[3].ToString(), dr[4].ToString(), dr[5].ToString()); |
|||
i++; |
|||
} |
|||
})); |
|||
dr.Close(); |
|||
cn.Close(); |
|||
return 1; |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
private async void TxtSearch_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(LoadInvoice); |
|||
holding.Visible = true; |
|||
task.Start(); |
|||
await task; |
|||
holding.Visible = false; |
|||
} |
|||
|
|||
private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
if (e.RowIndex != -1) |
|||
{ |
|||
string id = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); |
|||
string cost = dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString(); |
|||
string status = dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString(); |
|||
CashierInvoiceDialog invoice = new CashierInvoiceDialog(this, id, cost, status); |
|||
invoice.BringToFront(); |
|||
invoice.ShowDialog(); |
|||
} |
|||
} |
|||
public void ShowSalesPOS(Form form, List<InvoicePOS> invoice,string id) |
|||
{ |
|||
try |
|||
{ |
|||
mainForm.POS(invoice: invoice, id: id); |
|||
form.Close(); |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,311 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Invoice |
|||
{ |
|||
partial class CashierInvoiceRecheck |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.invoiceList = new System.Windows.Forms.DataGridView(); |
|||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.panel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.exit = new System.Windows.Forms.Label(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.pcode = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.pname = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.bqty = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.avail = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.oldp = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.newp = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.delete = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.panel2.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceList)).BeginInit(); |
|||
this.panel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.Controls.Add(this.button1); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; |
|||
this.panel2.Location = new System.Drawing.Point(0, 590); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(756, 63); |
|||
this.panel2.TabIndex = 1; |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(187)))), ((int)(((byte)(56))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.button1.Location = new System.Drawing.Point(323, 5); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(138, 52); |
|||
this.button1.TabIndex = 0; |
|||
this.button1.Text = "CONTINUE"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// invoiceList
|
|||
//
|
|||
this.invoiceList.AllowUserToAddRows = false; |
|||
this.invoiceList.AllowUserToResizeColumns = false; |
|||
this.invoiceList.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.invoiceList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.invoiceList.BackgroundColor = System.Drawing.Color.White; |
|||
this.invoiceList.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.invoiceList.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.invoiceList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|||
this.invoiceList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.pcode, |
|||
this.pname, |
|||
this.bqty, |
|||
this.Column2, |
|||
this.avail, |
|||
this.oldp, |
|||
this.newp, |
|||
this.Column3, |
|||
this.Column4, |
|||
this.delete}); |
|||
this.invoiceList.Cursor = System.Windows.Forms.Cursors.IBeam; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.invoiceList.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.invoiceList.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.invoiceList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; |
|||
this.invoiceList.EnableHeadersVisualStyles = false; |
|||
this.invoiceList.Location = new System.Drawing.Point(0, 38); |
|||
this.invoiceList.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.invoiceList.Name = "invoiceList"; |
|||
this.invoiceList.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.Green; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.invoiceList.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.invoiceList.RowHeadersVisible = false; |
|||
this.invoiceList.RowTemplate.Height = 40; |
|||
this.invoiceList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; |
|||
this.invoiceList.Size = new System.Drawing.Size(756, 552); |
|||
this.invoiceList.TabIndex = 22; |
|||
this.invoiceList.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.InvoiceList_CellPainting); |
|||
this.invoiceList.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing); |
|||
//
|
|||
// dataGridViewImageColumn1
|
|||
//
|
|||
this.dataGridViewImageColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.dataGridViewImageColumn1.HeaderText = "Examination Score"; |
|||
this.dataGridViewImageColumn1.Image = global::BiskLog_Point_Of_Sale.Properties.Resources.delete; |
|||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; |
|||
this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.Transparent; |
|||
this.panel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.panel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.panel1.Controls.Add(this.exit); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(756, 38); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// exit
|
|||
//
|
|||
this.exit.BackColor = System.Drawing.Color.Transparent; |
|||
this.exit.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exit.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exit.Font = new System.Drawing.Font("Segoe UI", 14F); |
|||
this.exit.ForeColor = System.Drawing.Color.White; |
|||
this.exit.Location = new System.Drawing.Point(699, 0); |
|||
this.exit.Name = "exit"; |
|||
this.exit.Size = new System.Drawing.Size(57, 38); |
|||
this.exit.TabIndex = 0; |
|||
this.exit.Text = "x"; |
|||
this.exit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exit.Click += new System.EventHandler(this.Exit_Click); |
|||
this.exit.MouseEnter += new System.EventHandler(this.Exit_MouseEnter); |
|||
this.exit.MouseLeave += new System.EventHandler(this.Exit_MouseLeave); |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// pcode
|
|||
//
|
|||
this.pcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.pcode.HeaderText = "id"; |
|||
this.pcode.Name = "pcode"; |
|||
this.pcode.Visible = false; |
|||
this.pcode.Width = 46; |
|||
//
|
|||
// pname
|
|||
//
|
|||
this.pname.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.pname.HeaderText = "PRODUCT NAME"; |
|||
this.pname.Name = "pname"; |
|||
//
|
|||
// bqty
|
|||
//
|
|||
this.bqty.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.bqty.HeaderText = "QTY"; |
|||
this.bqty.Name = "bqty"; |
|||
this.bqty.Width = 61; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.HeaderText = "UNIT"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.Width = 68; |
|||
//
|
|||
// avail
|
|||
//
|
|||
this.avail.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.avail.HeaderText = "QTY AVAIL."; |
|||
this.avail.Name = "avail"; |
|||
this.avail.Width = 108; |
|||
//
|
|||
// oldp
|
|||
//
|
|||
this.oldp.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.oldp.HeaderText = "OLD PRICE (per unit)"; |
|||
this.oldp.Name = "oldp"; |
|||
this.oldp.Width = 132; |
|||
//
|
|||
// newp
|
|||
//
|
|||
this.newp.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.newp.HeaderText = "NEW PRICE (per unit)"; |
|||
this.newp.Name = "newp"; |
|||
this.newp.Width = 136; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column3.HeaderText = "unitCode"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.Visible = false; |
|||
this.Column3.Width = 96; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.HeaderText = "distinctiveCode"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.Visible = false; |
|||
//
|
|||
// delete
|
|||
//
|
|||
this.delete.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.delete.HeaderText = ""; |
|||
this.delete.Image = global::BiskLog_Point_Of_Sale.Properties.Resources.delete; |
|||
this.delete.Name = "delete"; |
|||
this.delete.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.delete.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|||
this.delete.Width = 17; |
|||
//
|
|||
// InvoiceRecheck
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(756, 653); |
|||
this.Controls.Add(this.invoiceList); |
|||
this.Controls.Add(this.panel2); |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "InvoiceRecheck"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|||
this.Text = "InvoiceRecheck"; |
|||
this.Load += new System.EventHandler(this.InvoiceRecheck_Load); |
|||
this.panel2.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.invoiceList)).EndInit(); |
|||
this.panel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private gradientPanel panel1; |
|||
private System.Windows.Forms.Label exit; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.DataGridView invoiceList; |
|||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn pcode; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn pname; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn bqty; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn avail; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn oldp; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn newp; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewImageColumn delete; |
|||
} |
|||
} |
@ -0,0 +1,232 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace BiskLog_Point_Of_Sale.Invoice |
|||
{ |
|||
public partial class CashierInvoiceRecheck : Form |
|||
{ |
|||
List<OldAndNew> list; |
|||
public List<InvoicePOS> vetted = new List<InvoicePOS>(); |
|||
List<InvoicePOS> changed = new List<InvoicePOS>(); |
|||
List<InvoicePOS> unchanged = new List<InvoicePOS>(); |
|||
public CashierInvoiceRecheck(List<OldAndNew> list) |
|||
{ |
|||
InitializeComponent(); |
|||
this.list = list; |
|||
} |
|||
|
|||
private void InvoiceRecheck_Load(object sender, System.EventArgs e) |
|||
{ |
|||
invoiceList.Columns["bqty"].ReadOnly = false; |
|||
invoiceList.Columns[0].ReadOnly = true; |
|||
invoiceList.Columns[1].ReadOnly = true; |
|||
invoiceList.Columns[2].ReadOnly = true; |
|||
invoiceList.Columns[4].ReadOnly = true; |
|||
invoiceList.Columns[5].ReadOnly = true; |
|||
invoiceList.Columns[6].ReadOnly = true; |
|||
invoiceList.Columns[7].ReadOnly = true; |
|||
invoiceList.Columns[8].ReadOnly = true; |
|||
invoiceList.Columns[9].ReadOnly = true; |
|||
string currency = Settings.Default.currrencyCode + " "; |
|||
int i = 1; |
|||
foreach (OldAndNew pos in list) |
|||
{ |
|||
invoiceList.Rows.Add(i, pos.productCode, pos.productname, pos.old_quantity, pos.unitName, |
|||
pos.new_quantity, currency + pos.old_price, currency + pos.new_price, pos.unitCode, pos.distinctiveCode); |
|||
invoiceList.Rows[i - 1].Cells[3].Style.BackColor = Color.FromArgb(10, 10, 120); |
|||
if (pos.old_quantity > pos.new_quantity) |
|||
{ |
|||
invoiceList.Rows[i - 1].Cells[3].Style.BackColor = Color.DarkRed; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.ForeColor = Color.White; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.Font = new Font("Segoe UI", 12, style: FontStyle.Bold); |
|||
} |
|||
else |
|||
{ |
|||
invoiceList.Rows[i - 1].Cells[3].Style.BackColor = Color.DarkGreen; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.ForeColor = Color.White; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
|||
invoiceList.Rows[i - 1].Cells[3].Style.Font = new Font("Segoe UI", 12, style: FontStyle.Bold); |
|||
} |
|||
i++; |
|||
} |
|||
} |
|||
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) |
|||
{ |
|||
e.Control.KeyPress -= new KeyPressEventHandler(Column1_KeyPress); |
|||
if (invoiceList.CurrentCell.ColumnIndex == 3) //Desired Column
|
|||
{ |
|||
TextBox tb = e.Control as TextBox; |
|||
if (tb != null) |
|||
{ |
|||
tb.KeyPress += new KeyPressEventHandler(Column1_KeyPress); |
|||
} |
|||
} |
|||
} |
|||
|
|||
private void Column1_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)) |
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
} |
|||
public int checkAvailabilty() |
|||
{ |
|||
int priceChanges = 0; |
|||
bool outOfOrder = false; |
|||
try |
|||
{ |
|||
|
|||
foreach (DataGridViewRow rows in invoiceList.Rows) |
|||
{ |
|||
string code = rows.Cells[1].Value.ToString(); |
|||
string name = rows.Cells[2].Value.ToString(); |
|||
string unitName = rows.Cells[4].Value.ToString(); |
|||
string unitCode = rows.Cells[8].Value.ToString(); |
|||
string distinctiveCode = rows.Cells[9].Value.ToString(); |
|||
|
|||
int quantity = int.Parse(rows.Cells[3].Value.ToString().TrimStart('0')); |
|||
int available = int.Parse(rows.Cells[5].Value.ToString()); |
|||
decimal perUnit = decimal.Parse(rows.Cells[7].Value.ToString().Substring(Settings.Default.currrencyCode.Length)); |
|||
// decimal price = (quantity * perUnit);
|
|||
decimal oldprice = decimal.Parse(rows.Cells[6].Value.ToString().Substring(Settings.Default.currrencyCode.Length)); |
|||
if (quantity > available) |
|||
{ |
|||
rows.Cells[3].Style.BackColor = Color.DarkRed; |
|||
rows.Cells[3].Style.ForeColor = Color.White; |
|||
rows.Cells[3].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
|||
rows.Cells[3].Style.Font = new Font("Segoe UI", 12, style: FontStyle.Bold); |
|||
outOfOrder = true; |
|||
} |
|||
else |
|||
{ |
|||
rows.Cells[3].Style.BackColor = Color.DarkGreen; |
|||
rows.Cells[3].Style.ForeColor = Color.White; |
|||
rows.Cells[3].Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
|||
rows.Cells[3].Style.Font = new Font("Segoe UI", 12, style: FontStyle.Bold); |
|||
} |
|||
|
|||
if (oldprice != perUnit) priceChanges++; |
|||
InvoicePOS POSold = new InvoicePOS( |
|||
productCode: code, quantity: quantity, totalprice: oldprice * quantity, unitprice: oldprice, productname: name, |
|||
distinctiveCode: distinctiveCode, unitCode: unitCode, unitName: unitName |
|||
); |
|||
|
|||
InvoicePOS POSnew = new InvoicePOS( |
|||
productCode: code, quantity: quantity, totalprice: perUnit * quantity, unitprice: perUnit, productname: name, |
|||
distinctiveCode: distinctiveCode, unitCode: unitCode, unitName: unitName |
|||
); |
|||
|
|||
changed.Add(POSnew); |
|||
unchanged.Add(POSold); |
|||
invoiceList.ClearSelection(); |
|||
} |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
} |
|||
if (!outOfOrder && (priceChanges == 0)) |
|||
{ |
|||
|
|||
return 1; |
|||
} |
|||
else if (!outOfOrder && (priceChanges != 0)) |
|||
{ |
|||
|
|||
return 2; |
|||
} |
|||
else { return 3; } |
|||
|
|||
} |
|||
private void Exit_Click(object sender, System.EventArgs e) |
|||
{ |
|||
this.DialogResult = DialogResult.Abort; |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Exit_MouseEnter(object sender, System.EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Exit_MouseLeave(object sender, System.EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Transparent; |
|||
} |
|||
|
|||
private void InvoiceList_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) |
|||
{ |
|||
if (e.ColumnIndex == 3 && e.RowIndex != -1) |
|||
{ |
|||
e.AdvancedBorderStyle.All = DataGridViewAdvancedCellBorderStyle.Single; |
|||
} |
|||
else |
|||
{ |
|||
e.AdvancedBorderStyle.All = DataGridViewAdvancedCellBorderStyle.None; |
|||
} |
|||
} |
|||
|
|||
private void Button1_Click(object sender, System.EventArgs e) |
|||
{ |
|||
string title = ""; |
|||
string message = ""; |
|||
int result = checkAvailabilty(); |
|||
switch (result) |
|||
{ |
|||
case 1: |
|||
title = "Continue"; |
|||
message = "Would you like to continue with the new changes ?"; |
|||
Confirmation confirmation = new Confirmation(title, message); |
|||
confirmation.BringToFront(); |
|||
confirmation.ShowDialog(); |
|||
if (confirmation.DialogResult == DialogResult.Yes) |
|||
{ |
|||
vetted = unchanged; |
|||
this.DialogResult = DialogResult.OK; |
|||
this.Close(); |
|||
} |
|||
break; |
|||
case 2: |
|||
title = "Confirm"; |
|||
message = "Prices of some products might have been altered since the generation of this invoice, would you like to continue " + |
|||
"with the latest pricings ?"; |
|||
Confirmation confirmatioon = new Confirmation(title, message); |
|||
confirmatioon.BringToFront(); |
|||
confirmatioon.ShowDialog(); |
|||
if (confirmatioon.DialogResult == DialogResult.Yes) |
|||
{ |
|||
vetted = changed; |
|||
this.DialogResult = DialogResult.OK; |
|||
this.Close(); |
|||
} |
|||
else |
|||
{ |
|||
vetted = unchanged; |
|||
this.DialogResult = DialogResult.OK; |
|||
this.Close(); |
|||
} |
|||
break; |
|||
case 3: |
|||
title = "Attention"; |
|||
message = "The quantity of some selected products may not been available please check and try again"; |
|||
NoAction confirmatiooned = new NoAction(title, message); |
|||
confirmatiooned.BringToFront(); |
|||
confirmatiooned.ShowDialog(); |
|||
break; |
|||
default: |
|||
break; |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,153 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="pcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="pname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="bqty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="avail.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="oldp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="newp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="delete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
@ -0,0 +1,72 @@ |
|||
namespace Point_Of_Sale_Managment.Cashier_Module.Invoice |
|||
{ |
|||
partial class CashierquantityInvoice |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(quantityInvoice)); |
|||
this.txtqty = new System.Windows.Forms.TextBox(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// txtqty
|
|||
//
|
|||
this.txtqty.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.txtqty.Font = new System.Drawing.Font("Consolas", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.txtqty.Location = new System.Drawing.Point(0, 0); |
|||
this.txtqty.Name = "txtqty"; |
|||
this.txtqty.Size = new System.Drawing.Size(179, 39); |
|||
this.txtqty.TabIndex = 0; |
|||
this.txtqty.TextChanged += new System.EventHandler(this.txtqty_TextChanged); |
|||
this.txtqty.KeyDown += new System.Windows.Forms.KeyEventHandler(this.quantityManual_KeyDown); |
|||
this.txtqty.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Txtqty_KeyPress); |
|||
//
|
|||
// quantityInvoice
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(179, 39); |
|||
this.Controls.Add(this.txtqty); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "quantityInvoice"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Text = "Quantity"; |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.quantityManual_KeyDown); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
public System.Windows.Forms.TextBox txtqty; |
|||
} |
|||
} |
@ -0,0 +1,79 @@ |
|||
using BiskLog_Point_Of_Sale.Cashier_Module.Invoice; |
|||
using BiskLog_Point_Of_Sale.Invoice; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
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 Point_Of_Sale_Managment.Cashier_Module.Invoice |
|||
{ |
|||
public partial class CashierquantityInvoice : Form |
|||
{ |
|||
CashierAddInvoice addInvoice; |
|||
string codeOfProduct = ""; |
|||
public CashierquantityInvoice(CashierAddInvoice invoice,string productCode = null) |
|||
{ |
|||
InitializeComponent(); |
|||
addInvoice = invoice; |
|||
codeOfProduct = productCode; |
|||
} |
|||
|
|||
private void txtqty_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
|
|||
private async void quantityManual_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
|
|||
if (e.KeyCode == Keys.Enter) |
|||
{ |
|||
int quantity = int.Parse(txtqty.Text); |
|||
Task<int> task = new Task<int>(() => |
|||
{ |
|||
int result = addInvoice.AddToList(quantity, codeOfProduct); |
|||
return result; |
|||
}); |
|||
task.Start(); |
|||
int finalResult = await task; |
|||
if (finalResult == 1) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
else if(finalResult == 2) |
|||
{ |
|||
string title = "Product is out of stock"; |
|||
string message = "Sorry you do not have enough quantity of the item available"; |
|||
NoAction noAction = new NoAction(title,message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
else |
|||
{ |
|||
string title = "Sorry an error has occured"; |
|||
string message = "Sorry, there was an error while adding the item to the invoice"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
this.Close(); |
|||
} |
|||
} |
|||
} |
|||
private void Txtqty_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 8) |
|||
{ |
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) |
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,381 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class AddProducttoCart |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddProducttoCart)); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.exit = new System.Windows.Forms.Label(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.proNAME = new MetroFramework.Controls.MetroTextBox(); |
|||
this.proID = new MetroFramework.Controls.MetroTextBox(); |
|||
this.LABE = new System.Windows.Forms.Label(); |
|||
this.LA = new System.Windows.Forms.Label(); |
|||
this.panel2.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel2.Controls.Add(this.gradientPanel1); |
|||
this.panel2.Controls.Add(this.dataGridView1); |
|||
this.panel2.Controls.Add(this.proNAME); |
|||
this.panel2.Controls.Add(this.proID); |
|||
this.panel2.Controls.Add(this.LABE); |
|||
this.panel2.Controls.Add(this.LA); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel2.Location = new System.Drawing.Point(0, 0); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(569, 564); |
|||
this.panel2.TabIndex = 6; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label1); |
|||
this.gradientPanel1.Controls.Add(this.exit); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(567, 35); |
|||
this.gradientPanel1.TabIndex = 10; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(520, 35); |
|||
this.label1.TabIndex = 1; |
|||
this.label1.Text = "ADD PRODUCTS TO CART"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// exit
|
|||
//
|
|||
this.exit.BackColor = System.Drawing.Color.Transparent; |
|||
this.exit.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exit.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exit.Font = new System.Drawing.Font("Microsoft Sans Serif", 18.25F); |
|||
this.exit.ForeColor = System.Drawing.Color.White; |
|||
this.exit.Location = new System.Drawing.Point(520, 0); |
|||
this.exit.Name = "exit"; |
|||
this.exit.Size = new System.Drawing.Size(47, 35); |
|||
this.exit.TabIndex = 2; |
|||
this.exit.Text = "x"; |
|||
this.exit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exit.Click += new System.EventHandler(this.Exit_Click); |
|||
this.exit.MouseEnter += new System.EventHandler(this.Exit_MouseEnter); |
|||
this.exit.MouseLeave += new System.EventHandler(this.Exit_MouseLeave); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToDeleteRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column2, |
|||
this.Column3, |
|||
this.Column1, |
|||
this.Column5, |
|||
this.Column4, |
|||
this.Column6, |
|||
this.Column7, |
|||
this.Column8}); |
|||
this.dataGridView1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(4, 112); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.ReadOnly = true; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(560, 447); |
|||
this.dataGridView1.TabIndex = 9; |
|||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellClick); |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.HeaderText = "ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Visible = false; |
|||
this.Column2.Width = 50; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "Name"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column1.HeaderText = "Description"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Visible = false; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.HeaderText = "Price"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 67; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.HeaderText = "Quantity Left"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
this.Column4.Width = 123; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column6.HeaderText = "Unit Of Measure"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.ReadOnly = true; |
|||
this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.Column6.Width = 147; |
|||
//
|
|||
// Column7
|
|||
//
|
|||
this.Column7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column7.HeaderText = "unitCode"; |
|||
this.Column7.Name = "Column7"; |
|||
this.Column7.ReadOnly = true; |
|||
this.Column7.Visible = false; |
|||
this.Column7.Width = 98; |
|||
//
|
|||
// Column8
|
|||
//
|
|||
this.Column8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column8.HeaderText = "distinctive"; |
|||
this.Column8.Name = "Column8"; |
|||
this.Column8.ReadOnly = true; |
|||
this.Column8.Visible = false; |
|||
this.Column8.Width = 105; |
|||
//
|
|||
// proNAME
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.proNAME.CustomButton.Image = null; |
|||
this.proNAME.CustomButton.Location = new System.Drawing.Point(273, 2); |
|||
this.proNAME.CustomButton.Name = ""; |
|||
this.proNAME.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.proNAME.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.proNAME.CustomButton.TabIndex = 1; |
|||
this.proNAME.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.proNAME.CustomButton.UseSelectable = true; |
|||
this.proNAME.CustomButton.Visible = false; |
|||
this.proNAME.FontSize = MetroFramework.MetroTextBoxSize.Medium; |
|||
this.proNAME.Lines = new string[0]; |
|||
this.proNAME.Location = new System.Drawing.Point(164, 77); |
|||
this.proNAME.MaxLength = 32767; |
|||
this.proNAME.Name = "proNAME"; |
|||
this.proNAME.PasswordChar = '\0'; |
|||
this.proNAME.PromptText = "ADD PRODUCT BY NAME"; |
|||
this.proNAME.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.proNAME.SelectedText = ""; |
|||
this.proNAME.SelectionLength = 0; |
|||
this.proNAME.SelectionStart = 0; |
|||
this.proNAME.ShortcutsEnabled = true; |
|||
this.proNAME.Size = new System.Drawing.Size(301, 30); |
|||
this.proNAME.TabIndex = 8; |
|||
this.proNAME.UseSelectable = true; |
|||
this.proNAME.WaterMark = "ADD PRODUCT BY NAME"; |
|||
this.proNAME.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.proNAME.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); |
|||
this.proNAME.TextChanged += new System.EventHandler(this.ProNAME_TextChanged); |
|||
//
|
|||
// proID
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.proID.CustomButton.Image = null; |
|||
this.proID.CustomButton.Location = new System.Drawing.Point(273, 2); |
|||
this.proID.CustomButton.Name = ""; |
|||
this.proID.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.proID.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.proID.CustomButton.TabIndex = 1; |
|||
this.proID.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.proID.CustomButton.UseSelectable = true; |
|||
this.proID.CustomButton.Visible = false; |
|||
this.proID.Lines = new string[0]; |
|||
this.proID.Location = new System.Drawing.Point(164, 41); |
|||
this.proID.MaxLength = 32767; |
|||
this.proID.Name = "proID"; |
|||
this.proID.PasswordChar = '\0'; |
|||
this.proID.PromptText = "ADD PRODUCT BY ID"; |
|||
this.proID.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.proID.SelectedText = ""; |
|||
this.proID.SelectionLength = 0; |
|||
this.proID.SelectionStart = 0; |
|||
this.proID.ShortcutsEnabled = true; |
|||
this.proID.Size = new System.Drawing.Size(301, 30); |
|||
this.proID.TabIndex = 7; |
|||
this.proID.UseSelectable = true; |
|||
this.proID.WaterMark = "ADD PRODUCT BY ID"; |
|||
this.proID.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.proID.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); |
|||
this.proID.TextChanged += new System.EventHandler(this.ProID_TextChanged); |
|||
//
|
|||
// LABE
|
|||
//
|
|||
this.LABE.AutoSize = true; |
|||
this.LABE.Location = new System.Drawing.Point(23, 78); |
|||
this.LABE.Name = "LABE"; |
|||
this.LABE.Size = new System.Drawing.Size(129, 21); |
|||
this.LABE.TabIndex = 5; |
|||
this.LABE.Text = "PRODUCT NAME"; |
|||
//
|
|||
// LA
|
|||
//
|
|||
this.LA.AutoSize = true; |
|||
this.LA.Location = new System.Drawing.Point(23, 44); |
|||
this.LA.Name = "LA"; |
|||
this.LA.Size = new System.Drawing.Size(100, 21); |
|||
this.LA.TabIndex = 6; |
|||
this.LA.Text = "PRODUCT ID"; |
|||
//
|
|||
// AddProducttoCart
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(569, 564); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "AddProducttoCart"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.AddProducttoCart_KeyDown); |
|||
this.panel2.ResumeLayout(false); |
|||
this.panel2.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel2; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private MetroFramework.Controls.MetroTextBox proNAME; |
|||
private MetroFramework.Controls.MetroTextBox proID; |
|||
private System.Windows.Forms.Label LABE; |
|||
private System.Windows.Forms.Label LA; |
|||
private System.Windows.Forms.Label exit; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column8; |
|||
} |
|||
} |
@ -0,0 +1,147 @@ |
|||
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; |
|||
using BiskLog_Point_Of_Sale.Cashier_Module; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class AddProducttoCart : Form |
|||
{ |
|||
SqlConnection cn; |
|||
SqlCommand command; |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
SqlDataReader dr; |
|||
string currency; |
|||
public static string id, product_name, price, quantity,unitname,unitcode,distinctive; |
|||
NewSalesPOS formSale; |
|||
|
|||
public AddProducttoCart(NewSalesPOS formsales = null) |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
formSale = formsales; |
|||
currency = Settings.Default.currrencyCode + " "; |
|||
} |
|||
|
|||
private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
|
|||
if (e.RowIndex != -1) |
|||
{ |
|||
string colName = dataGridView1.Columns[e.ColumnIndex].Name; |
|||
id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); |
|||
product_name = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); |
|||
price = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString(); |
|||
quantity = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString(); |
|||
unitname = dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString(); |
|||
unitcode= dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString(); |
|||
distinctive = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString(); |
|||
|
|||
if (int.Parse(quantity) <= 0) |
|||
{ |
|||
string title = "Out of stock"; |
|||
string message = "Sorry, " + product_name + " is out of stock!!"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
else |
|||
{ |
|||
quantityManual quant = new quantityManual(this); |
|||
quant.BringToFront(); |
|||
quant.ShowDialog(); |
|||
} |
|||
} |
|||
} |
|||
public void AddtoCart(string pid, string productName, string pPrice, int quantity,string unitname,string unitCode,string distinctive) |
|||
{ |
|||
formSale.loadProductManual(pid, productName, pPrice, quantity,unitname,unitCode,distinctive); |
|||
dataGridView1.Rows.Clear(); |
|||
proID.Text = ""; |
|||
proNAME.Text = ""; |
|||
} |
|||
public void products(string key) |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
cn.Open(); |
|||
command = new SqlCommand("Select tblProduct.pcode,tblProduct.product_name,tblProduct.pdesc,tblInventory.quantity,tblProduct.price,uni.unitname as unit,tblProduct.baseUnit from tblProduct Inner Join tblInventory On tblInventory.pcode =" + |
|||
"tblProduct.pcode Inner Join UnitOfMeasure uni On uni.unitCode = tblProduct.baseUnit where tblProduct.branchID = @branch and tblProduct.status = 'ACTIVE' and tblProduct.pcode like '%" + key + "%' or " + |
|||
"tblProduct.branchID = @branch and tblProduct.status = 'ACTIVE' and tblProduct.product_name like '%" + key + "%' " + |
|||
"SELECT PAU.pcode,tp.product_name,tp.pdesc ,uni.unitname,[price/unit] as price,(ti.quantity / [quantity/unit]) as quantity,PAU.unitCode ,distinctiveCode " + |
|||
"FROM ProductAltUnit PAU Inner Join UnitOfMeasure uni On uni.unitCode = PAU.unitCode Inner Join tblProduct tp On tp.pcode = PAU.pcode " + |
|||
"Inner Join tblInventory ti On ti.pcode = PAU.pcode where tp.branchID = @branch and tp.status = 'ACTIVE' and PAU.pcode like '%" + key + "%' or " + |
|||
"tp.branchID = @branch and tp.status = 'ACTIVE' and tp.product_name like '%" + key + "%'", cn); |
|||
command.Parameters.AddWithValue("@branch", CashierMain.branch); |
|||
command.ExecuteNonQuery(); |
|||
dr = command.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
dataGridView1.Rows.Add(dr[0].ToString(), dr["product_name"].ToString(), dr["pdesc"].ToString(), currency + dr["price"].ToString(), dr["quantity"].ToString(),dr["unit"].ToString(),dr["baseUnit"].ToString(),dr[0].ToString()); |
|||
} |
|||
dr.NextResult(); |
|||
while (dr.Read()) |
|||
{ |
|||
dataGridView1.Rows.Add(dr[0].ToString(), dr["product_name"].ToString(), dr["pdesc"].ToString(), currency + dr["price"].ToString(), dr["quantity"].ToString(), dr["unitname"].ToString(), dr["unitCode"].ToString(), dr["distinctiveCode"].ToString()); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
|
|||
private void Exit_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Exit_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Exit_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Transparent; |
|||
} |
|||
|
|||
private void AddProducttoCart_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
|
|||
private void ProID_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
if (String.IsNullOrEmpty(proID.Text)) |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
} |
|||
else |
|||
{ |
|||
products(proID.Text); |
|||
} |
|||
|
|||
} |
|||
|
|||
private void ProNAME_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
if (String.IsNullOrEmpty(proNAME.Text)) |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
} |
|||
else |
|||
{ |
|||
products(proNAME.Text); |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,296 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class CashierCustomerBill |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomerBill)); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.exit = new System.Windows.Forms.Label(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.proNAME = new MetroFramework.Controls.MetroTextBox(); |
|||
this.LABE = new System.Windows.Forms.Label(); |
|||
this.panel2.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel2.Controls.Add(this.gradientPanel1); |
|||
this.panel2.Controls.Add(this.dataGridView1); |
|||
this.panel2.Controls.Add(this.proNAME); |
|||
this.panel2.Controls.Add(this.LABE); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel2.Location = new System.Drawing.Point(0, 0); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(616, 564); |
|||
this.panel2.TabIndex = 6; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label1); |
|||
this.gradientPanel1.Controls.Add(this.exit); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(614, 35); |
|||
this.gradientPanel1.TabIndex = 10; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(567, 35); |
|||
this.label1.TabIndex = 1; |
|||
this.label1.Text = "BILL TO CUSTOMER"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// exit
|
|||
//
|
|||
this.exit.BackColor = System.Drawing.Color.Transparent; |
|||
this.exit.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exit.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exit.Font = new System.Drawing.Font("Microsoft Sans Serif", 18.25F); |
|||
this.exit.ForeColor = System.Drawing.Color.White; |
|||
this.exit.Location = new System.Drawing.Point(567, 0); |
|||
this.exit.Name = "exit"; |
|||
this.exit.Size = new System.Drawing.Size(47, 35); |
|||
this.exit.TabIndex = 2; |
|||
this.exit.Text = "x"; |
|||
this.exit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exit.Click += new System.EventHandler(this.Exit_Click); |
|||
this.exit.MouseEnter += new System.EventHandler(this.Exit_MouseEnter); |
|||
this.exit.MouseLeave += new System.EventHandler(this.Exit_MouseLeave); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToDeleteRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column2, |
|||
this.Column3, |
|||
this.Column4, |
|||
this.Column5, |
|||
this.Column1}); |
|||
this.dataGridView1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(4, 96); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.ReadOnly = true; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(607, 463); |
|||
this.dataGridView1.TabIndex = 9; |
|||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellClick); |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.HeaderText = "ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Visible = false; |
|||
this.Column2.Width = 50; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "Name"; |
|||
this.Column3.MinimumWidth = 299; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.HeaderText = "Telephone"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
this.Column4.Width = 103; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.HeaderText = "address"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Visible = false; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.HeaderText = "mail"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Visible = false; |
|||
//
|
|||
// proNAME
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.proNAME.CustomButton.Image = null; |
|||
this.proNAME.CustomButton.Location = new System.Drawing.Point(367, 2); |
|||
this.proNAME.CustomButton.Name = ""; |
|||
this.proNAME.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.proNAME.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.proNAME.CustomButton.TabIndex = 1; |
|||
this.proNAME.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.proNAME.CustomButton.UseSelectable = true; |
|||
this.proNAME.CustomButton.Visible = false; |
|||
this.proNAME.FontSize = MetroFramework.MetroTextBoxSize.Medium; |
|||
this.proNAME.Lines = new string[0]; |
|||
this.proNAME.Location = new System.Drawing.Point(172, 46); |
|||
this.proNAME.MaxLength = 32767; |
|||
this.proNAME.Name = "proNAME"; |
|||
this.proNAME.PasswordChar = '\0'; |
|||
this.proNAME.PromptText = "ENTER CUSTOMER NAME OR TELEPHONE"; |
|||
this.proNAME.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.proNAME.SelectedText = ""; |
|||
this.proNAME.SelectionLength = 0; |
|||
this.proNAME.SelectionStart = 0; |
|||
this.proNAME.ShortcutsEnabled = true; |
|||
this.proNAME.Size = new System.Drawing.Size(395, 30); |
|||
this.proNAME.TabIndex = 8; |
|||
this.proNAME.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
|||
this.proNAME.UseSelectable = true; |
|||
this.proNAME.WaterMark = "ENTER CUSTOMER NAME OR TELEPHONE"; |
|||
this.proNAME.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.proNAME.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic); |
|||
this.proNAME.TextChanged += new System.EventHandler(this.ProNAME_TextChanged); |
|||
//
|
|||
// LABE
|
|||
//
|
|||
this.LABE.AutoSize = true; |
|||
this.LABE.Location = new System.Drawing.Point(11, 49); |
|||
this.LABE.Name = "LABE"; |
|||
this.LABE.Size = new System.Drawing.Size(155, 21); |
|||
this.LABE.TabIndex = 5; |
|||
this.LABE.Text = "LOOKUP CUSTOMER"; |
|||
//
|
|||
// CustomerBill
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(616, 564); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "CustomerBill"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.panel2.ResumeLayout(false); |
|||
this.panel2.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel2; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private MetroFramework.Controls.MetroTextBox proNAME; |
|||
private System.Windows.Forms.Label LABE; |
|||
private System.Windows.Forms.Label exit; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
} |
|||
} |
@ -0,0 +1,102 @@ |
|||
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; |
|||
using BiskLog_Point_Of_Sale.Cashier_Module; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class CashierCustomerBill : Form |
|||
{ |
|||
SqlConnection cn; |
|||
SqlCommand command; |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
SqlDataReader dr; |
|||
string currency; |
|||
public string id, name, address, telephone, email; |
|||
public CustomerClass customer = new CustomerClass(); |
|||
NewSalesPOS formSale; |
|||
|
|||
public CashierCustomerBill(NewSalesPOS formsales = null) |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
formSale = formsales; |
|||
currency = Settings.Default.currrencyCode + " "; |
|||
} |
|||
|
|||
private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
|
|||
if (e.RowIndex != -1) |
|||
{ |
|||
string colName = dataGridView1.Columns[e.ColumnIndex].Name; |
|||
id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); |
|||
name = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); |
|||
address = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString(); |
|||
telephone = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); |
|||
email = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString(); |
|||
customer.id = id; |
|||
customer.firstname = name; |
|||
this.DialogResult = DialogResult.OK; |
|||
this.Close(); |
|||
} |
|||
} |
|||
public void products(string key) |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
cn.Open(); |
|||
command = new SqlCommand("Select C.customerID,C.Firstname,C.Surname,C.address,C.telephone,C.email,C.financialStatus from tblCustomers C " + |
|||
"where C.branchID = @branch and C.status = 'ACTIVE' and C.name_key1 like '%" + key + "%' or " + |
|||
"C.branchID = @branch and C.status = 'ACTIVE' and C.name_key2 like '%" + key + "%' or " + |
|||
"C.branchID = @branch and C.status = 'ACTIVE' and C.firstname like '%" + key + "%' or " + |
|||
"C.branchID = @branch and C.status = 'ACTIVE' and C.surname like '%" + key + "%' or " + |
|||
"C.branchID = @branch and C.status = 'ACTIVE' and C.telephone like '%" + key + "%'", cn); |
|||
command.Parameters.AddWithValue("@branch", CashierMain.branch); |
|||
command.ExecuteNonQuery(); |
|||
dr = command.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
dataGridView1.Rows.Add(dr[0].ToString(), dr[1].ToString().ToUpper() + " " + dr[2].ToString().ToUpper(), |
|||
dr[4].ToString(), dr[3].ToString(), dr[5].ToString()); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
|
|||
private void Exit_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Exit_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Exit_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Transparent; |
|||
} |
|||
private void ProNAME_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
if (String.IsNullOrEmpty(proNAME.Text)) |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
} |
|||
else |
|||
{ |
|||
products(proNAME.Text); |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,481 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class CashierCustomerSettlePayment |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(settlePayment)); |
|||
this.panel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.close = new System.Windows.Forms.Label(); |
|||
this.payment = new System.Windows.Forms.TextBox(); |
|||
this.label7 = new System.Windows.Forms.Label(); |
|||
this.button19 = new System.Windows.Forms.Button(); |
|||
this.owe = new System.Windows.Forms.Label(); |
|||
this.button15 = new System.Windows.Forms.Button(); |
|||
this.bal = new System.Windows.Forms.Label(); |
|||
this.button11 = new System.Windows.Forms.Button(); |
|||
this.cost = new System.Windows.Forms.Label(); |
|||
this.button18 = new System.Windows.Forms.Button(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.button14 = new System.Windows.Forms.Button(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.button10 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.button21 = new System.Windows.Forms.Button(); |
|||
this.button17 = new System.Windows.Forms.Button(); |
|||
this.button13 = new System.Windows.Forms.Button(); |
|||
this.button9 = new System.Windows.Forms.Button(); |
|||
this.button16 = new System.Windows.Forms.Button(); |
|||
this.button12 = new System.Windows.Forms.Button(); |
|||
this.btnSave = new System.Windows.Forms.Button(); |
|||
this.panel1.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.Transparent; |
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.ColorBottom = System.Drawing.SystemColors.ActiveCaption; |
|||
this.panel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.panel1.Controls.Add(this.gradientPanel1); |
|||
this.panel1.Controls.Add(this.payment); |
|||
this.panel1.Controls.Add(this.label7); |
|||
this.panel1.Controls.Add(this.button19); |
|||
this.panel1.Controls.Add(this.owe); |
|||
this.panel1.Controls.Add(this.button15); |
|||
this.panel1.Controls.Add(this.bal); |
|||
this.panel1.Controls.Add(this.button11); |
|||
this.panel1.Controls.Add(this.cost); |
|||
this.panel1.Controls.Add(this.button18); |
|||
this.panel1.Controls.Add(this.label3); |
|||
this.panel1.Controls.Add(this.button14); |
|||
this.panel1.Controls.Add(this.label2); |
|||
this.panel1.Controls.Add(this.button10); |
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Controls.Add(this.button21); |
|||
this.panel1.Controls.Add(this.button17); |
|||
this.panel1.Controls.Add(this.button13); |
|||
this.panel1.Controls.Add(this.button9); |
|||
this.panel1.Controls.Add(this.button16); |
|||
this.panel1.Controls.Add(this.button12); |
|||
this.panel1.Controls.Add(this.btnSave); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(370, 461); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label4); |
|||
this.gradientPanel1.Controls.Add(this.close); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(368, 45); |
|||
this.gradientPanel1.TabIndex = 32; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; |
|||
this.label4.Location = new System.Drawing.Point(0, 0); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(316, 45); |
|||
this.label4.TabIndex = 1; |
|||
this.label4.Text = "BILL PAYMENT"; |
|||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// close
|
|||
//
|
|||
this.close.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.close.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.close.ForeColor = System.Drawing.Color.White; |
|||
this.close.Location = new System.Drawing.Point(316, 0); |
|||
this.close.Name = "close"; |
|||
this.close.Size = new System.Drawing.Size(52, 45); |
|||
this.close.TabIndex = 0; |
|||
this.close.Text = "x"; |
|||
this.close.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.close.Click += new System.EventHandler(this.Close_Click); |
|||
this.close.MouseEnter += new System.EventHandler(this.Close_MouseEnter); |
|||
this.close.MouseLeave += new System.EventHandler(this.Close_MouseLeave); |
|||
//
|
|||
// payment
|
|||
//
|
|||
this.payment.Font = new System.Drawing.Font("Segoe UI", 18F); |
|||
this.payment.Location = new System.Drawing.Point(152, 52); |
|||
this.payment.Name = "payment"; |
|||
this.payment.Size = new System.Drawing.Size(206, 39); |
|||
this.payment.TabIndex = 7; |
|||
this.payment.TextChanged += new System.EventHandler(this.payment_TextChanged); |
|||
this.payment.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.payment_KeyPress); |
|||
//
|
|||
// label7
|
|||
//
|
|||
this.label7.AutoSize = true; |
|||
this.label7.ForeColor = System.Drawing.Color.White; |
|||
this.label7.Location = new System.Drawing.Point(24, 61); |
|||
this.label7.Name = "label7"; |
|||
this.label7.Size = new System.Drawing.Size(78, 21); |
|||
this.label7.TabIndex = 6; |
|||
this.label7.Text = "PAYMENT"; |
|||
//
|
|||
// button19
|
|||
//
|
|||
this.button19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button19.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button19.FlatAppearance.BorderSize = 0; |
|||
this.button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button19.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button19.ForeColor = System.Drawing.Color.White; |
|||
this.button19.Location = new System.Drawing.Point(242, 331); |
|||
this.button19.Name = "button19"; |
|||
this.button19.Size = new System.Drawing.Size(62, 54); |
|||
this.button19.TabIndex = 19; |
|||
this.button19.Text = "."; |
|||
this.button19.UseVisualStyleBackColor = false; |
|||
this.button19.Click += new System.EventHandler(this.button19_Click); |
|||
//
|
|||
// owe
|
|||
//
|
|||
this.owe.AutoSize = true; |
|||
this.owe.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.owe.ForeColor = System.Drawing.Color.DarkRed; |
|||
this.owe.Location = new System.Drawing.Point(142, 161); |
|||
this.owe.Name = "owe"; |
|||
this.owe.Size = new System.Drawing.Size(65, 28); |
|||
this.owe.TabIndex = 5; |
|||
this.owe.Text = "00.00"; |
|||
//
|
|||
// button15
|
|||
//
|
|||
this.button15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button15.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button15.FlatAppearance.BorderSize = 0; |
|||
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button15.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button15.ForeColor = System.Drawing.Color.White; |
|||
this.button15.Location = new System.Drawing.Point(242, 271); |
|||
this.button15.Name = "button15"; |
|||
this.button15.Size = new System.Drawing.Size(62, 54); |
|||
this.button15.TabIndex = 20; |
|||
this.button15.Text = "0"; |
|||
this.button15.UseVisualStyleBackColor = false; |
|||
this.button15.Click += new System.EventHandler(this.button15_Click); |
|||
//
|
|||
// bal
|
|||
//
|
|||
this.bal.AutoSize = true; |
|||
this.bal.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.bal.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.bal.Location = new System.Drawing.Point(142, 129); |
|||
this.bal.Name = "bal"; |
|||
this.bal.Size = new System.Drawing.Size(65, 28); |
|||
this.bal.TabIndex = 4; |
|||
this.bal.Text = "00.00"; |
|||
//
|
|||
// button11
|
|||
//
|
|||
this.button11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button11.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button11.FlatAppearance.BorderSize = 0; |
|||
this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button11.ForeColor = System.Drawing.Color.White; |
|||
this.button11.Location = new System.Drawing.Point(242, 211); |
|||
this.button11.Name = "button11"; |
|||
this.button11.Size = new System.Drawing.Size(62, 54); |
|||
this.button11.TabIndex = 21; |
|||
this.button11.Text = "C"; |
|||
this.button11.UseVisualStyleBackColor = false; |
|||
this.button11.Click += new System.EventHandler(this.button11_Click); |
|||
//
|
|||
// cost
|
|||
//
|
|||
this.cost.AutoSize = true; |
|||
this.cost.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.cost.ForeColor = System.Drawing.Color.White; |
|||
this.cost.Location = new System.Drawing.Point(142, 97); |
|||
this.cost.Name = "cost"; |
|||
this.cost.Size = new System.Drawing.Size(65, 28); |
|||
this.cost.TabIndex = 3; |
|||
this.cost.Text = "00.00"; |
|||
//
|
|||
// button18
|
|||
//
|
|||
this.button18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button18.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button18.FlatAppearance.BorderSize = 0; |
|||
this.button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button18.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button18.ForeColor = System.Drawing.Color.White; |
|||
this.button18.Location = new System.Drawing.Point(177, 331); |
|||
this.button18.Name = "button18"; |
|||
this.button18.Size = new System.Drawing.Size(62, 54); |
|||
this.button18.TabIndex = 22; |
|||
this.button18.Text = "3"; |
|||
this.button18.UseVisualStyleBackColor = false; |
|||
this.button18.Click += new System.EventHandler(this.button18_Click); |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.ForeColor = System.Drawing.Color.White; |
|||
this.label3.Location = new System.Drawing.Point(24, 167); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(77, 21); |
|||
this.label3.TabIndex = 2; |
|||
this.label3.Text = "ARREARS"; |
|||
//
|
|||
// button14
|
|||
//
|
|||
this.button14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button14.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button14.FlatAppearance.BorderSize = 0; |
|||
this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button14.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button14.ForeColor = System.Drawing.Color.White; |
|||
this.button14.Location = new System.Drawing.Point(177, 271); |
|||
this.button14.Name = "button14"; |
|||
this.button14.Size = new System.Drawing.Size(62, 54); |
|||
this.button14.TabIndex = 23; |
|||
this.button14.Text = "6"; |
|||
this.button14.UseVisualStyleBackColor = false; |
|||
this.button14.Click += new System.EventHandler(this.button14_Click); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.ForeColor = System.Drawing.Color.White; |
|||
this.label2.Location = new System.Drawing.Point(24, 135); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(77, 21); |
|||
this.label2.TabIndex = 1; |
|||
this.label2.Text = "BALANCE"; |
|||
//
|
|||
// button10
|
|||
//
|
|||
this.button10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button10.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button10.FlatAppearance.BorderSize = 0; |
|||
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button10.ForeColor = System.Drawing.Color.White; |
|||
this.button10.Location = new System.Drawing.Point(177, 211); |
|||
this.button10.Name = "button10"; |
|||
this.button10.Size = new System.Drawing.Size(62, 54); |
|||
this.button10.TabIndex = 24; |
|||
this.button10.Text = "9"; |
|||
this.button10.UseVisualStyleBackColor = false; |
|||
this.button10.Click += new System.EventHandler(this.button10_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.ForeColor = System.Drawing.Color.White; |
|||
this.label1.Location = new System.Drawing.Point(24, 103); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(82, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "BILL COST"; |
|||
//
|
|||
// button21
|
|||
//
|
|||
this.button21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button21.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button21.FlatAppearance.BorderSize = 0; |
|||
this.button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button21.ForeColor = System.Drawing.Color.White; |
|||
this.button21.Location = new System.Drawing.Point(47, 391); |
|||
this.button21.Name = "button21"; |
|||
this.button21.Size = new System.Drawing.Size(257, 57); |
|||
this.button21.TabIndex = 25; |
|||
this.button21.Text = "PAY"; |
|||
this.button21.UseVisualStyleBackColor = false; |
|||
this.button21.Click += new System.EventHandler(this.Button21_Click); |
|||
//
|
|||
// button17
|
|||
//
|
|||
this.button17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button17.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button17.FlatAppearance.BorderSize = 0; |
|||
this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button17.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button17.ForeColor = System.Drawing.Color.White; |
|||
this.button17.Location = new System.Drawing.Point(112, 331); |
|||
this.button17.Name = "button17"; |
|||
this.button17.Size = new System.Drawing.Size(62, 54); |
|||
this.button17.TabIndex = 26; |
|||
this.button17.Text = "2"; |
|||
this.button17.UseVisualStyleBackColor = false; |
|||
this.button17.Click += new System.EventHandler(this.button17_Click); |
|||
//
|
|||
// button13
|
|||
//
|
|||
this.button13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button13.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button13.FlatAppearance.BorderSize = 0; |
|||
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button13.ForeColor = System.Drawing.Color.White; |
|||
this.button13.Location = new System.Drawing.Point(112, 271); |
|||
this.button13.Name = "button13"; |
|||
this.button13.Size = new System.Drawing.Size(62, 54); |
|||
this.button13.TabIndex = 27; |
|||
this.button13.Text = "5"; |
|||
this.button13.UseVisualStyleBackColor = false; |
|||
this.button13.Click += new System.EventHandler(this.button13_Click); |
|||
//
|
|||
// button9
|
|||
//
|
|||
this.button9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button9.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button9.FlatAppearance.BorderSize = 0; |
|||
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button9.ForeColor = System.Drawing.Color.White; |
|||
this.button9.Location = new System.Drawing.Point(112, 211); |
|||
this.button9.Name = "button9"; |
|||
this.button9.Size = new System.Drawing.Size(62, 54); |
|||
this.button9.TabIndex = 28; |
|||
this.button9.Text = "8"; |
|||
this.button9.UseVisualStyleBackColor = false; |
|||
this.button9.Click += new System.EventHandler(this.button9_Click); |
|||
//
|
|||
// button16
|
|||
//
|
|||
this.button16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button16.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button16.FlatAppearance.BorderSize = 0; |
|||
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button16.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button16.ForeColor = System.Drawing.Color.White; |
|||
this.button16.Location = new System.Drawing.Point(47, 331); |
|||
this.button16.Name = "button16"; |
|||
this.button16.Size = new System.Drawing.Size(62, 54); |
|||
this.button16.TabIndex = 29; |
|||
this.button16.Text = "1"; |
|||
this.button16.UseVisualStyleBackColor = false; |
|||
this.button16.Click += new System.EventHandler(this.button16_Click); |
|||
//
|
|||
// button12
|
|||
//
|
|||
this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button12.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button12.FlatAppearance.BorderSize = 0; |
|||
this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button12.ForeColor = System.Drawing.Color.White; |
|||
this.button12.Location = new System.Drawing.Point(47, 271); |
|||
this.button12.Name = "button12"; |
|||
this.button12.Size = new System.Drawing.Size(62, 54); |
|||
this.button12.TabIndex = 30; |
|||
this.button12.Text = "4"; |
|||
this.button12.UseVisualStyleBackColor = false; |
|||
this.button12.Click += new System.EventHandler(this.button12_Click); |
|||
//
|
|||
// btnSave
|
|||
//
|
|||
this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.btnSave.FlatAppearance.BorderSize = 0; |
|||
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.btnSave.ForeColor = System.Drawing.Color.White; |
|||
this.btnSave.Location = new System.Drawing.Point(47, 211); |
|||
this.btnSave.Name = "btnSave"; |
|||
this.btnSave.Size = new System.Drawing.Size(62, 54); |
|||
this.btnSave.TabIndex = 31; |
|||
this.btnSave.Text = "7"; |
|||
this.btnSave.UseVisualStyleBackColor = false; |
|||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|||
//
|
|||
// settlePayment
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(370, 461); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "settlePayment"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|||
this.Load += new System.EventHandler(this.settlePayment_Load); |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.settlePayment_KeyDown); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private gradientPanel panel1; |
|||
private System.Windows.Forms.TextBox payment; |
|||
private System.Windows.Forms.Label label7; |
|||
private System.Windows.Forms.Label owe; |
|||
private System.Windows.Forms.Label bal; |
|||
private System.Windows.Forms.Label cost; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Button button19; |
|||
private System.Windows.Forms.Button button15; |
|||
private System.Windows.Forms.Button button11; |
|||
private System.Windows.Forms.Button button18; |
|||
private System.Windows.Forms.Button button14; |
|||
private System.Windows.Forms.Button button10; |
|||
private System.Windows.Forms.Button button21; |
|||
private System.Windows.Forms.Button button17; |
|||
private System.Windows.Forms.Button button13; |
|||
private System.Windows.Forms.Button button9; |
|||
private System.Windows.Forms.Button button16; |
|||
private System.Windows.Forms.Button button12; |
|||
private System.Windows.Forms.Button btnSave; |
|||
private gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label close; |
|||
private System.Windows.Forms.Label label4; |
|||
} |
|||
} |
@ -0,0 +1,247 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment.CashierModule; |
|||
using System; |
|||
using System.Data.SqlClient; |
|||
using System.Drawing; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class CashierCustomerSettlePayment : Form |
|||
{ |
|||
string currency; |
|||
NewSalesPOS selling; |
|||
decimal balponit, paymentponit, carryForward; |
|||
public CashierCustomerSettlePayment(NewSalesPOS sales, decimal carryForward) |
|||
{ |
|||
InitializeComponent(); |
|||
currency = Settings.Default.currrencyCode + " "; |
|||
selling = sales; |
|||
this.carryForward = carryForward; |
|||
} |
|||
|
|||
private void settlePayment_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
private void button16_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("1"); |
|||
} |
|||
private void button17_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("2"); |
|||
} |
|||
private void button18_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("3"); |
|||
} |
|||
private void button19_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("."); |
|||
} |
|||
private void button15_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("0"); |
|||
} |
|||
private void button11_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.Text = ""; |
|||
} |
|||
private void button14_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("6"); |
|||
} |
|||
private void button13_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("5"); |
|||
} |
|||
private void button12_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("4"); |
|||
} |
|||
private void button10_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("9"); |
|||
} |
|||
private void button9_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("8"); |
|||
} |
|||
private void btnSave_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("7"); |
|||
} |
|||
private void settlePayment_Load(object sender, EventArgs e) |
|||
{ |
|||
payment.Focus(); |
|||
if (carryForward > 0 && carryForward < NewSalesPOS.mainTotal) |
|||
{ |
|||
cost.Text = currency + (NewSalesPOS.mainTotal); |
|||
owe.Text = currency + (NewSalesPOS.mainTotal - carryForward); |
|||
} |
|||
else if(carryForward > 0 && carryForward > NewSalesPOS.mainTotal) |
|||
{ |
|||
cost.Text = currency + (NewSalesPOS.mainTotal); |
|||
owe.Text = currency + (0); |
|||
bal.Text = currency + (carryForward - NewSalesPOS.mainTotal); |
|||
} |
|||
else |
|||
{ |
|||
cost.Text = currency + NewSalesPOS.mainTotal.ToString(); |
|||
owe.Text = currency + NewSalesPOS.mainTotal.ToString(); |
|||
} |
|||
} |
|||
private void payment_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
if (!String.IsNullOrEmpty(payment.Text)) |
|||
{ |
|||
decimal amount = decimal.Parse(payment.Text); |
|||
if (!String.IsNullOrEmpty(payment.Text)) |
|||
{ |
|||
arrangement(amount); |
|||
} |
|||
else |
|||
{ |
|||
arrangement(decimal.Parse("0.00")); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
payment.Text = "0.00"; |
|||
} |
|||
|
|||
} |
|||
public void arrangement(decimal payment) |
|||
{ |
|||
decimal paid = 0; |
|||
if (carryForward > 0) |
|||
{ |
|||
paid = NewSalesPOS.mainTotal - payment - carryForward; |
|||
} |
|||
else |
|||
{ |
|||
paid = NewSalesPOS.mainTotal - payment; |
|||
} |
|||
|
|||
paymentponit = payment; |
|||
|
|||
if (paid < 0) |
|||
{ |
|||
bal.Text = currency + (paid * -1).ToString(); |
|||
balponit = decimal.Parse((paid * -1).ToString()); |
|||
owe.Text = currency + 0.00; |
|||
} |
|||
else if (paid == 0) |
|||
{ |
|||
bal.Text = currency + paid.ToString(); |
|||
balponit = decimal.Parse(paid.ToString()); |
|||
owe.Text = currency + 0.00; |
|||
} |
|||
else |
|||
{ |
|||
owe.Text = currency + paid.ToString(); |
|||
bal.Text = currency + 0.00; |
|||
balponit = decimal.Parse("00.00"); |
|||
} |
|||
} |
|||
private void payment_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 8) |
|||
{ |
|||
//accepts backspace
|
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) //ascii code 48-57 between 0-9
|
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
else if (e.KeyChar == 46) |
|||
{ |
|||
// accepts . character
|
|||
} |
|||
} |
|||
|
|||
private void Close_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Close_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
close.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Close_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
close.BackColor = Color.Transparent; |
|||
} |
|||
|
|||
private async void Button21_Click(object sender, EventArgs e) |
|||
{ |
|||
if (owe.Text.Equals(currency + 0.00)) |
|||
{ |
|||
Task<int> task = new Task<int>(() => selling.creditSale(0, paymentponit)); |
|||
task.Start(); |
|||
int result = await task; |
|||
if (result == 1) |
|||
{ |
|||
|
|||
string title = "Success"; |
|||
string message = "Payment made successfully"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
this.Close(); |
|||
} |
|||
else |
|||
{ |
|||
|
|||
string title = "Error Occurred"; |
|||
string message = "Sorry an error occurred while making payment, please try again"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
string title = "Full amount not paid"; |
|||
string message = "Would you like to take the cash tendered and credit the arrears to the customer's account ?"; |
|||
Confirmation noAction = new Confirmation(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
if (noAction.DialogResult == DialogResult.Yes) |
|||
{ |
|||
|
|||
Task<int> task = new Task<int>(() => selling.creditSale(decimal.Parse(owe.Text.Substring(currency.Length)), paymentponit)); |
|||
task.Start(); |
|||
int result = await task; |
|||
if (result == 1) |
|||
{ |
|||
|
|||
string title1 = "Success"; |
|||
string message1 = "Payment made successfully"; |
|||
NoAction noAction1 = new NoAction(title1, message1); |
|||
noAction1.BringToFront(); |
|||
noAction1.ShowDialog(); |
|||
this.Close(); |
|||
} |
|||
else |
|||
{ |
|||
|
|||
string title2 = "Error Occurred"; |
|||
string message2 = "Sorry an error occurred while making payment, please try again"; |
|||
NoAction noAction2 = new NoAction(title2, message2); |
|||
noAction2.BringToFront(); |
|||
noAction2.ShowDialog(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,318 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class DailySales |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DailySales)); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.dailyIncome = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.numberCustomers = new System.Windows.Forms.Label(); |
|||
this.holding = new MetroFramework.Controls.MetroProgressSpinner(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.exit = new System.Windows.Forms.Label(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column4, |
|||
this.Column6}); |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(-1, 150); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(596, 449); |
|||
this.dataGridView1.TabIndex = 5; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "Product Name"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.HeaderText = "Price"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 67; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.HeaderText = "Qty"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.Width = 58; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column6.HeaderText = "Total"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.Width = 65; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(3, 45); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(101, 21); |
|||
this.label1.TabIndex = 6; |
|||
this.label1.Text = "SELECT DATE"; |
|||
//
|
|||
// dateTimePicker1
|
|||
//
|
|||
this.dateTimePicker1.Location = new System.Drawing.Point(202, 39); |
|||
this.dateTimePicker1.Name = "dateTimePicker1"; |
|||
this.dateTimePicker1.Size = new System.Drawing.Size(299, 29); |
|||
this.dateTimePicker1.TabIndex = 8; |
|||
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.DateTimePicker1_ValueChanged); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label2.Location = new System.Drawing.Point(3, 80); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(117, 21); |
|||
this.label2.TabIndex = 9; |
|||
this.label2.Text = "TOTAL INCOME"; |
|||
//
|
|||
// dailyIncome
|
|||
//
|
|||
this.dailyIncome.AutoSize = true; |
|||
this.dailyIncome.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.dailyIncome.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.dailyIncome.Location = new System.Drawing.Point(198, 80); |
|||
this.dailyIncome.Name = "dailyIncome"; |
|||
this.dailyIncome.Size = new System.Drawing.Size(50, 21); |
|||
this.dailyIncome.TabIndex = 10; |
|||
this.dailyIncome.Text = "00.00"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label4.Location = new System.Drawing.Point(3, 112); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(192, 21); |
|||
this.label4.TabIndex = 9; |
|||
this.label4.Text = "NUMBER OF CUSTOMERS"; |
|||
//
|
|||
// numberCustomers
|
|||
//
|
|||
this.numberCustomers.AutoSize = true; |
|||
this.numberCustomers.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.numberCustomers.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.numberCustomers.Location = new System.Drawing.Point(198, 112); |
|||
this.numberCustomers.Name = "numberCustomers"; |
|||
this.numberCustomers.Size = new System.Drawing.Size(19, 21); |
|||
this.numberCustomers.TabIndex = 10; |
|||
this.numberCustomers.Text = "0"; |
|||
//
|
|||
// holding
|
|||
//
|
|||
this.holding.Anchor = System.Windows.Forms.AnchorStyles.None; |
|||
this.holding.Location = new System.Drawing.Point(229, 369); |
|||
this.holding.Maximum = 100; |
|||
this.holding.Name = "holding"; |
|||
this.holding.Size = new System.Drawing.Size(47, 45); |
|||
this.holding.TabIndex = 12; |
|||
this.holding.UseSelectable = true; |
|||
this.holding.Visible = false; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label6); |
|||
this.gradientPanel1.Controls.Add(this.exit); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(587, 33); |
|||
this.gradientPanel1.TabIndex = 11; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.BackColor = System.Drawing.Color.Transparent; |
|||
this.label6.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label6.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label6.Location = new System.Drawing.Point(0, 0); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(528, 33); |
|||
this.label6.TabIndex = 1; |
|||
this.label6.Text = "DAILY SALES"; |
|||
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// exit
|
|||
//
|
|||
this.exit.BackColor = System.Drawing.Color.Transparent; |
|||
this.exit.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exit.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exit.Font = new System.Drawing.Font("Microsoft Sans Serif", 18.25F); |
|||
this.exit.ForeColor = System.Drawing.Color.White; |
|||
this.exit.Location = new System.Drawing.Point(528, 0); |
|||
this.exit.Name = "exit"; |
|||
this.exit.Size = new System.Drawing.Size(59, 33); |
|||
this.exit.TabIndex = 2; |
|||
this.exit.Text = "x"; |
|||
this.exit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exit.Click += new System.EventHandler(this.Exit_Click); |
|||
this.exit.MouseEnter += new System.EventHandler(this.Exit_MouseEnter); |
|||
this.exit.MouseLeave += new System.EventHandler(this.Exit_MouseLeave); |
|||
//
|
|||
// DailySales
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(587, 584); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.holding); |
|||
this.Controls.Add(this.gradientPanel1); |
|||
this.Controls.Add(this.numberCustomers); |
|||
this.Controls.Add(this.dailyIncome); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.dateTimePicker1); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "DailySales"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Load += new System.EventHandler(this.DateTimePicker1_ValueChanged); |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DailySales_KeyDown); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.DateTimePicker dateTimePicker1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label dailyIncome; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label numberCustomers; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label label6; |
|||
private MetroFramework.Controls.MetroProgressSpinner holding; |
|||
private System.Windows.Forms.Label exit; |
|||
} |
|||
} |
@ -0,0 +1,122 @@ |
|||
using BiskLog_Point_Of_Sale.Cashier_Module; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Company_Setup; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class DailySales : Form |
|||
{ |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
SqlConnection cn; |
|||
SqlCommand cm; |
|||
SqlDataReader dr; |
|||
public DailySales() |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
holding.Left = (ClientSize.Width - holding.Width) / 2; |
|||
holding.Top = (ClientSize.Height - holding.Height) / 2; |
|||
} |
|||
private void DailySales_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
public int getForDay(DateTime date, string cashier) |
|||
{ |
|||
try |
|||
{ |
|||
dataGridView1.Invoke(new Action(() => |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
int i = 1; |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select p.product_name,tc.price,tc.quantity,tc.total from tblCart tc Inner Join tblProduct p On p.pcode = tc.id where " + |
|||
"Year(tc.date) = @dateYear and MONTH(tc.date) = @dateMonth and DAY(tc.date) = @dateDay and tc.cashier = @cashier and tc.status = 'SOLD' and tc.branchID = @branchID group by p.product_name, tc.price, tc.quantity, tc.total " + |
|||
"Select Count(Distinct tc.transno), sum(total) from tblCart tc where Year(tc.date) = @dateYear and MONTH(tc.date) = @dateMonth and DAY(tc.date) = @dateDay and tc.cashier = @cashier and tc.status = 'SOLD' and tc.branchID = @branchID", cn); |
|||
cm.Parameters.AddWithValue("@dateYear", date.Year); |
|||
cm.Parameters.AddWithValue("@dateMonth", date.Month); |
|||
cm.Parameters.AddWithValue("@dateDay", date.Day); |
|||
cm.Parameters.AddWithValue("@cashier", cashier); |
|||
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
dataGridView1.Rows.Add(i, dr[0].ToString(), Settings.Default.currrencyCode + " " + dr[1].ToString(), dr[2].ToString(), Settings.Default.currrencyCode + " " + dr[3].ToString()); |
|||
i++; |
|||
} |
|||
dr.NextResult(); |
|||
dr.Read(); |
|||
if (dr.HasRows) |
|||
{ |
|||
numberCustomers.Text = dr[0].ToString(); |
|||
dailyIncome.Text = Settings.Default.currrencyCode + " " + dr[1].ToString(); |
|||
} |
|||
else |
|||
{ |
|||
numberCustomers.Text = ""; |
|||
dailyIncome.Text = ""; |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
})); |
|||
return 1; |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
cn.Close(); |
|||
MessageBox.Show(ex.ToString()); |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
return 0; |
|||
|
|||
} |
|||
} |
|||
private async void DateTimePicker1_ValueChanged(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(() => getForDay(dateTimePicker1.Value, MainLogin.login_user)); |
|||
holding.Visible = true; |
|||
task.Start(); |
|||
int result = await task; |
|||
if (result == 0) |
|||
{ |
|||
string title = "Error Occurred"; |
|||
string message = "Sorry an error occurred while looking up sales on this date"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
holding.Visible = false; |
|||
} |
|||
|
|||
|
|||
private void Exit_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Exit_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Exit_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Transparent; |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,137 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Discount |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Discount)); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.textBox1 = new System.Windows.Forms.TextBox(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.exitBTN = new System.Windows.Forms.Label(); |
|||
this.panel1.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 22F); |
|||
this.label1.Location = new System.Drawing.Point(177, 39); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(43, 41); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "%"; |
|||
//
|
|||
// textBox1
|
|||
//
|
|||
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.textBox1.Font = new System.Drawing.Font("Segoe UI", 22F); |
|||
this.textBox1.Location = new System.Drawing.Point(0, 39); |
|||
this.textBox1.Name = "textBox1"; |
|||
this.textBox1.Size = new System.Drawing.Size(177, 47); |
|||
this.textBox1.TabIndex = 1; |
|||
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1_TextChanged); |
|||
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox1_KeyPress); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.textBox1); |
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Controls.Add(this.gradientPanel1); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(222, 89); |
|||
this.panel1.TabIndex = 2; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.exitBTN); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(220, 39); |
|||
this.gradientPanel1.TabIndex = 0; |
|||
//
|
|||
// exitBTN
|
|||
//
|
|||
this.exitBTN.BackColor = System.Drawing.Color.Transparent; |
|||
this.exitBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exitBTN.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exitBTN.ForeColor = System.Drawing.Color.White; |
|||
this.exitBTN.Location = new System.Drawing.Point(172, 0); |
|||
this.exitBTN.Name = "exitBTN"; |
|||
this.exitBTN.Size = new System.Drawing.Size(48, 39); |
|||
this.exitBTN.TabIndex = 0; |
|||
this.exitBTN.Text = "x"; |
|||
this.exitBTN.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exitBTN.Click += new System.EventHandler(this.ExitBTN_Click); |
|||
this.exitBTN.MouseEnter += new System.EventHandler(this.ExitBTN_MouseEnter); |
|||
this.exitBTN.MouseLeave += new System.EventHandler(this.ExitBTN_MouseLeave); |
|||
//
|
|||
// Discount
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(222, 89); |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "Discount"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Text = "Discount"; |
|||
this.Load += new System.EventHandler(this.Discount_Load); |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Discount_KeyDown); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.TextBox textBox1; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label exitBTN; |
|||
} |
|||
} |
@ -0,0 +1,85 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using System; |
|||
using System.Drawing; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Discount : Form |
|||
{ |
|||
int discount; |
|||
NewSalesPOS formSale; |
|||
|
|||
|
|||
public Discount(NewSalesPOS formsales) |
|||
{ |
|||
InitializeComponent(); |
|||
formSale = formsales; |
|||
} |
|||
|
|||
private void Discount_Load(object sender, EventArgs e) |
|||
{ |
|||
discount = 0; |
|||
textBox1.Focus(); |
|||
} |
|||
|
|||
private void Discount_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Enter) |
|||
{ |
|||
try |
|||
{ |
|||
discount = int.Parse(textBox1.Text); |
|||
formSale.LoadDiscount(discount); |
|||
Close(); |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
discount = 0; |
|||
Close(); |
|||
} |
|||
} |
|||
else if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
Close(); |
|||
} |
|||
} |
|||
|
|||
private void TextBox1_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
|
|||
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 46) |
|||
{ |
|||
// accepts . character
|
|||
} |
|||
else if (e.KeyChar == 8) |
|||
{ |
|||
//accepts backspace
|
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) //ascii code 48-57 between 0-9
|
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
} |
|||
|
|||
private void ExitBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void ExitBTN_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
exitBTN.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void ExitBTN_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
exitBTN.BackColor = Color.Transparent; |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,282 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class SaleCancellation |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SaleCancellation)); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.dateP = new System.Windows.Forms.DateTimePicker(); |
|||
this.textBox1 = new System.Windows.Forms.TextBox(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.exit = new System.Windows.Forms.Label(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Location = new System.Drawing.Point(12, 52); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(143, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "TRANSACTION NO"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Location = new System.Drawing.Point(12, 90); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(155, 21); |
|||
this.label2.TabIndex = 1; |
|||
this.label2.Text = "TRANSACTION DATE"; |
|||
//
|
|||
// dateP
|
|||
//
|
|||
this.dateP.Enabled = false; |
|||
this.dateP.Location = new System.Drawing.Point(170, 85); |
|||
this.dateP.Name = "dateP"; |
|||
this.dateP.Size = new System.Drawing.Size(286, 29); |
|||
this.dateP.TabIndex = 2; |
|||
//
|
|||
// textBox1
|
|||
//
|
|||
this.textBox1.Location = new System.Drawing.Point(170, 49); |
|||
this.textBox1.Name = "textBox1"; |
|||
this.textBox1.Size = new System.Drawing.Size(286, 29); |
|||
this.textBox1.TabIndex = 3; |
|||
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1_TextChanged); |
|||
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox1_KeyPress); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.LemonChiffon; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Black; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column4, |
|||
this.Column6, |
|||
this.Column2}); |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.LemonChiffon; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 164); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(464, 429); |
|||
this.dataGridView1.TabIndex = 4; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "Product Name"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.HeaderText = "Price"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 67; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column4.HeaderText = "Qty"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.Width = 58; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column6.HeaderText = "Total"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.Width = 65; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.HeaderText = ""; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.Visible = false; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label3); |
|||
this.gradientPanel1.Controls.Add(this.exit); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(452, 33); |
|||
this.gradientPanel1.TabIndex = 6; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.BackColor = System.Drawing.Color.Transparent; |
|||
this.label3.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label3.Location = new System.Drawing.Point(0, 0); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(393, 33); |
|||
this.label3.TabIndex = 1; |
|||
this.label3.Text = "SALE CANCELLATION"; |
|||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// exit
|
|||
//
|
|||
this.exit.BackColor = System.Drawing.Color.Transparent; |
|||
this.exit.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.exit.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.exit.Font = new System.Drawing.Font("Microsoft Sans Serif", 18.25F); |
|||
this.exit.ForeColor = System.Drawing.Color.White; |
|||
this.exit.Location = new System.Drawing.Point(393, 0); |
|||
this.exit.Name = "exit"; |
|||
this.exit.Size = new System.Drawing.Size(59, 33); |
|||
this.exit.TabIndex = 2; |
|||
this.exit.Text = "x"; |
|||
this.exit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.exit.Click += new System.EventHandler(this.Exit_Click); |
|||
this.exit.MouseEnter += new System.EventHandler(this.Exit_MouseEnter); |
|||
this.exit.MouseLeave += new System.EventHandler(this.Exit_MouseLeave); |
|||
//
|
|||
// SaleCancellation
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(452, 580); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.gradientPanel1); |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Controls.Add(this.textBox1); |
|||
this.Controls.Add(this.dateP); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "SaleCancellation"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Load += new System.EventHandler(this.SaleCancellation_Load); |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SaleCancellation_KeyDown); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.DateTimePicker dateP; |
|||
private System.Windows.Forms.TextBox textBox1; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label exit; |
|||
} |
|||
} |
@ -0,0 +1,155 @@ |
|||
using BiskLog_Point_Of_Sale.Cashier_Module; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
using BiskLog_Point_Of_Sale.Company_Setup; |
|||
using BiskLog_Point_Of_Sale.Dialogs; |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class SaleCancellation : Form |
|||
{ |
|||
SqlConnection cn; |
|||
SqlCommand cm; |
|||
SqlDataReader dr; |
|||
DatabaseConn conn = new DatabaseConn(); |
|||
public SaleCancellation() |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(conn.MyConnection()); |
|||
} |
|||
|
|||
private void SaleCancellation_Load(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
|
|||
private void SaleCancellation_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
|
|||
private void TextBox1_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
getReceipt(textBox1.Text); |
|||
} |
|||
public void cancelSales(string transactionKey) |
|||
{ |
|||
SqlTransaction transaction; |
|||
cn.Open(); |
|||
transaction = cn.BeginTransaction(); |
|||
try |
|||
{ |
|||
cm = new SqlCommand("Update tblCart set status = @status where branchID = @branch and transno = @transno", cn); |
|||
cm.Parameters.AddWithValue("@status", "CANCELLED"); |
|||
cm.Parameters.AddWithValue("@transno", transactionKey); |
|||
cm.Parameters.AddWithValue("@branch", CashierMain.branch); |
|||
cm.Transaction = transaction; |
|||
cm.ExecuteNonQuery(); |
|||
|
|||
cm = new SqlCommand("Insert into tblCancelledTransactions (transno,dateCancelled,cancelledBy,branchID,countID) " + |
|||
"values (@transno,@dateCancelled,@cancelledBy,@branchID,@countID)", cn); |
|||
cm.Parameters.AddWithValue("@dateCancelled", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")); |
|||
cm.Parameters.AddWithValue("@transno", transactionKey); |
|||
cm.Parameters.AddWithValue("@branchID", CashierMain.branch); |
|||
cm.Parameters.AddWithValue("@cancelledBy", MainLogin.login_user); |
|||
cm.Parameters.AddWithValue("@countID", transactionKey + CashierMain.branch + DateTime.Now.ToString("yyyyMMddHHmmssfff")); |
|||
cm.Transaction = transaction; |
|||
cm.ExecuteNonQuery(); |
|||
|
|||
foreach (DataGridViewRow row in dataGridView1.Rows) |
|||
{ |
|||
cm = new SqlCommand("Declare @newQuantity int = (Select MAX(quantity) + MIN(@quantity) from tblInventory where pcode = @pcode and branchID = @branchID) " + |
|||
"Update tblInventory set quantity = @newQuantity where branchID = @branchID and pcode = @pcode " + |
|||
"Insert into tblInventoryEntries(pcode, quantity, date, countID, branchID) values (@pcode,@newQuantity,@date,@countID,@branchID)", cn); |
|||
cm.Parameters.AddWithValue("@quantity", row.Cells[3].Value.ToString()); |
|||
cm.Parameters.AddWithValue("@pcode", row.Cells[5].Value.ToString()); |
|||
cm.Parameters.AddWithValue("@date", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")); |
|||
cm.Parameters.AddWithValue("@branchID", CashierMain.branch); |
|||
cm.Parameters.AddWithValue("@countID", transactionKey + CashierMain.branch + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")); |
|||
cm.Transaction = transaction; |
|||
cm.ExecuteNonQuery(); |
|||
} |
|||
transaction.Commit(); |
|||
cn.Close(); |
|||
string title = "Cancelled"; |
|||
string message = "Receipt with transaction number " + transactionKey + " has been cancelled successfully"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
transaction.Rollback(); |
|||
cn.Close(); |
|||
ErrorLogging.WriteToFile(ex.ToString()); |
|||
} |
|||
} |
|||
public void getReceipt(string key) |
|||
{ |
|||
int i = 1; |
|||
try |
|||
{ |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select tblProduct.product_name, tblCart.price,tblCart.quantity,tblCart.total,date,tblCart.id " + |
|||
"from tblCart Inner Join tblProduct On tblProduct.pcode = tblCart.id where tblCart.branchID = @branch " + |
|||
"and transno = @transaction and tblCart.status = 'SOLD'", cn); |
|||
cm.Parameters.AddWithValue("@transaction", key); |
|||
cm.Parameters.AddWithValue("@branch", CashierMain.branch); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
dateP.Value = Convert.ToDateTime(dr[4].ToString()); |
|||
dataGridView1.Rows.Add(i, dr[0].ToString().ToUpper(), dr[1].ToString().ToUpper(), dr[2].ToString(), dr[3].ToString(), dr[5].ToString()); |
|||
i++; |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
} |
|||
} |
|||
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 8) |
|||
{ |
|||
//accepts backspace
|
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) //ascii code 48-57 between 0-9
|
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
} |
|||
|
|||
private void Exit_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Exit_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Exit_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
exit.BackColor = Color.Transparent; |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,137 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class quantityManual |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(quantityManual)); |
|||
this.txtqty = new System.Windows.Forms.TextBox(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.panel1.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// txtqty
|
|||
//
|
|||
this.txtqty.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.txtqty.Font = new System.Drawing.Font("Consolas", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.txtqty.Location = new System.Drawing.Point(0, 41); |
|||
this.txtqty.Name = "txtqty"; |
|||
this.txtqty.Size = new System.Drawing.Size(202, 39); |
|||
this.txtqty.TabIndex = 0; |
|||
this.txtqty.TextChanged += new System.EventHandler(this.txtqty_TextChanged); |
|||
this.txtqty.KeyDown += new System.Windows.Forms.KeyEventHandler(this.quantityManual_KeyDown); |
|||
this.txtqty.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Txtqty_KeyPress); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.txtqty); |
|||
this.panel1.Controls.Add(this.gradientPanel1); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(204, 81); |
|||
this.panel1.TabIndex = 1; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label2); |
|||
this.gradientPanel1.Controls.Add(this.label1); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(202, 41); |
|||
this.gradientPanel1.TabIndex = 0; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.BackColor = System.Drawing.Color.Transparent; |
|||
this.label2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.label2.ForeColor = System.Drawing.Color.White; |
|||
this.label2.Location = new System.Drawing.Point(0, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(162, 41); |
|||
this.label2.TabIndex = 1; |
|||
this.label2.Text = "Quantity"; |
|||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.label1.ForeColor = System.Drawing.Color.White; |
|||
this.label1.Location = new System.Drawing.Point(162, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(40, 41); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "x"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.label1.Click += new System.EventHandler(this.Label1_Click); |
|||
this.label1.MouseEnter += new System.EventHandler(this.Label1_MouseEnter); |
|||
this.label1.MouseLeave += new System.EventHandler(this.Label1_MouseLeave); |
|||
//
|
|||
// quantityManual
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(204, 81); |
|||
this.Controls.Add(this.panel1); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "quantityManual"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Text = "Quantity"; |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.quantityManual_KeyDown); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
public System.Windows.Forms.TextBox txtqty; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label1; |
|||
} |
|||
} |
@ -0,0 +1,79 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class quantityManual : Form |
|||
{ |
|||
AddProducttoCart formSale; |
|||
|
|||
public quantityManual(AddProducttoCart formsales) |
|||
{ |
|||
InitializeComponent(); |
|||
formSale = formsales; |
|||
} |
|||
|
|||
private void txtqty_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
|
|||
private void quantityManual_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Enter) |
|||
{ |
|||
int quantity = int.Parse(txtqty.Text); |
|||
int possibility = int.Parse(AddProducttoCart.quantity) - quantity; |
|||
if (possibility >= 0) |
|||
{ |
|||
formSale.AddtoCart(AddProducttoCart.id, AddProducttoCart.product_name, AddProducttoCart.price, quantity, |
|||
AddProducttoCart.unitname, AddProducttoCart.unitcode, AddProducttoCart.distinctive); |
|||
this.Close(); |
|||
} |
|||
else |
|||
{ |
|||
string title = "Out of stock"; |
|||
string message = "Sorry you do not have enough quantity of the item available to sell to customer"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
private void Txtqty_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 8) |
|||
{ |
|||
//accepts backspace
|
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) //ascii code 48-57 between 0-9
|
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
} |
|||
|
|||
private void Label1_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Label1_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
label1.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Label1_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
label1.BackColor = Color.Transparent; |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,481 @@ |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class settlePayment |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(settlePayment)); |
|||
this.panel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.gradientPanel1 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.close = new System.Windows.Forms.Label(); |
|||
this.payment = new System.Windows.Forms.TextBox(); |
|||
this.label7 = new System.Windows.Forms.Label(); |
|||
this.button19 = new System.Windows.Forms.Button(); |
|||
this.owe = new System.Windows.Forms.Label(); |
|||
this.button15 = new System.Windows.Forms.Button(); |
|||
this.bal = new System.Windows.Forms.Label(); |
|||
this.button11 = new System.Windows.Forms.Button(); |
|||
this.cost = new System.Windows.Forms.Label(); |
|||
this.button18 = new System.Windows.Forms.Button(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.button14 = new System.Windows.Forms.Button(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.button10 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.button21 = new System.Windows.Forms.Button(); |
|||
this.button17 = new System.Windows.Forms.Button(); |
|||
this.button13 = new System.Windows.Forms.Button(); |
|||
this.button9 = new System.Windows.Forms.Button(); |
|||
this.button16 = new System.Windows.Forms.Button(); |
|||
this.button12 = new System.Windows.Forms.Button(); |
|||
this.btnSave = new System.Windows.Forms.Button(); |
|||
this.panel1.SuspendLayout(); |
|||
this.gradientPanel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.Transparent; |
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.ColorBottom = System.Drawing.SystemColors.ActiveCaption; |
|||
this.panel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.panel1.Controls.Add(this.gradientPanel1); |
|||
this.panel1.Controls.Add(this.payment); |
|||
this.panel1.Controls.Add(this.label7); |
|||
this.panel1.Controls.Add(this.button19); |
|||
this.panel1.Controls.Add(this.owe); |
|||
this.panel1.Controls.Add(this.button15); |
|||
this.panel1.Controls.Add(this.bal); |
|||
this.panel1.Controls.Add(this.button11); |
|||
this.panel1.Controls.Add(this.cost); |
|||
this.panel1.Controls.Add(this.button18); |
|||
this.panel1.Controls.Add(this.label3); |
|||
this.panel1.Controls.Add(this.button14); |
|||
this.panel1.Controls.Add(this.label2); |
|||
this.panel1.Controls.Add(this.button10); |
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Controls.Add(this.button21); |
|||
this.panel1.Controls.Add(this.button17); |
|||
this.panel1.Controls.Add(this.button13); |
|||
this.panel1.Controls.Add(this.button9); |
|||
this.panel1.Controls.Add(this.button16); |
|||
this.panel1.Controls.Add(this.button12); |
|||
this.panel1.Controls.Add(this.btnSave); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(370, 461); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// gradientPanel1
|
|||
//
|
|||
this.gradientPanel1.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel1.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.gradientPanel1.Controls.Add(this.label4); |
|||
this.gradientPanel1.Controls.Add(this.close); |
|||
this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel1.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel1.Name = "gradientPanel1"; |
|||
this.gradientPanel1.Size = new System.Drawing.Size(368, 45); |
|||
this.gradientPanel1.TabIndex = 32; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; |
|||
this.label4.Location = new System.Drawing.Point(0, 0); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(316, 45); |
|||
this.label4.TabIndex = 1; |
|||
this.label4.Text = "BILL PAYMENT"; |
|||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// close
|
|||
//
|
|||
this.close.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.close.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.close.ForeColor = System.Drawing.Color.White; |
|||
this.close.Location = new System.Drawing.Point(316, 0); |
|||
this.close.Name = "close"; |
|||
this.close.Size = new System.Drawing.Size(52, 45); |
|||
this.close.TabIndex = 0; |
|||
this.close.Text = "x"; |
|||
this.close.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
this.close.Click += new System.EventHandler(this.Close_Click); |
|||
this.close.MouseEnter += new System.EventHandler(this.Close_MouseEnter); |
|||
this.close.MouseLeave += new System.EventHandler(this.Close_MouseLeave); |
|||
//
|
|||
// payment
|
|||
//
|
|||
this.payment.Font = new System.Drawing.Font("Segoe UI", 18F); |
|||
this.payment.Location = new System.Drawing.Point(152, 52); |
|||
this.payment.Name = "payment"; |
|||
this.payment.Size = new System.Drawing.Size(206, 39); |
|||
this.payment.TabIndex = 7; |
|||
this.payment.TextChanged += new System.EventHandler(this.payment_TextChanged); |
|||
this.payment.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.payment_KeyPress); |
|||
//
|
|||
// label7
|
|||
//
|
|||
this.label7.AutoSize = true; |
|||
this.label7.ForeColor = System.Drawing.Color.White; |
|||
this.label7.Location = new System.Drawing.Point(24, 61); |
|||
this.label7.Name = "label7"; |
|||
this.label7.Size = new System.Drawing.Size(78, 21); |
|||
this.label7.TabIndex = 6; |
|||
this.label7.Text = "PAYMENT"; |
|||
//
|
|||
// button19
|
|||
//
|
|||
this.button19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button19.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button19.FlatAppearance.BorderSize = 0; |
|||
this.button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button19.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button19.ForeColor = System.Drawing.Color.White; |
|||
this.button19.Location = new System.Drawing.Point(242, 331); |
|||
this.button19.Name = "button19"; |
|||
this.button19.Size = new System.Drawing.Size(62, 54); |
|||
this.button19.TabIndex = 19; |
|||
this.button19.Text = "."; |
|||
this.button19.UseVisualStyleBackColor = false; |
|||
this.button19.Click += new System.EventHandler(this.button19_Click); |
|||
//
|
|||
// owe
|
|||
//
|
|||
this.owe.AutoSize = true; |
|||
this.owe.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.owe.ForeColor = System.Drawing.Color.DarkRed; |
|||
this.owe.Location = new System.Drawing.Point(142, 161); |
|||
this.owe.Name = "owe"; |
|||
this.owe.Size = new System.Drawing.Size(65, 28); |
|||
this.owe.TabIndex = 5; |
|||
this.owe.Text = "00.00"; |
|||
//
|
|||
// button15
|
|||
//
|
|||
this.button15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button15.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button15.FlatAppearance.BorderSize = 0; |
|||
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button15.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button15.ForeColor = System.Drawing.Color.White; |
|||
this.button15.Location = new System.Drawing.Point(242, 271); |
|||
this.button15.Name = "button15"; |
|||
this.button15.Size = new System.Drawing.Size(62, 54); |
|||
this.button15.TabIndex = 20; |
|||
this.button15.Text = "0"; |
|||
this.button15.UseVisualStyleBackColor = false; |
|||
this.button15.Click += new System.EventHandler(this.button15_Click); |
|||
//
|
|||
// bal
|
|||
//
|
|||
this.bal.AutoSize = true; |
|||
this.bal.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.bal.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(137))))); |
|||
this.bal.Location = new System.Drawing.Point(142, 129); |
|||
this.bal.Name = "bal"; |
|||
this.bal.Size = new System.Drawing.Size(65, 28); |
|||
this.bal.TabIndex = 4; |
|||
this.bal.Text = "00.00"; |
|||
//
|
|||
// button11
|
|||
//
|
|||
this.button11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button11.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button11.FlatAppearance.BorderSize = 0; |
|||
this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button11.ForeColor = System.Drawing.Color.White; |
|||
this.button11.Location = new System.Drawing.Point(242, 211); |
|||
this.button11.Name = "button11"; |
|||
this.button11.Size = new System.Drawing.Size(62, 54); |
|||
this.button11.TabIndex = 21; |
|||
this.button11.Text = "C"; |
|||
this.button11.UseVisualStyleBackColor = false; |
|||
this.button11.Click += new System.EventHandler(this.button11_Click); |
|||
//
|
|||
// cost
|
|||
//
|
|||
this.cost.AutoSize = true; |
|||
this.cost.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.cost.ForeColor = System.Drawing.Color.White; |
|||
this.cost.Location = new System.Drawing.Point(142, 97); |
|||
this.cost.Name = "cost"; |
|||
this.cost.Size = new System.Drawing.Size(65, 28); |
|||
this.cost.TabIndex = 3; |
|||
this.cost.Text = "00.00"; |
|||
//
|
|||
// button18
|
|||
//
|
|||
this.button18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button18.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button18.FlatAppearance.BorderSize = 0; |
|||
this.button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button18.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button18.ForeColor = System.Drawing.Color.White; |
|||
this.button18.Location = new System.Drawing.Point(177, 331); |
|||
this.button18.Name = "button18"; |
|||
this.button18.Size = new System.Drawing.Size(62, 54); |
|||
this.button18.TabIndex = 22; |
|||
this.button18.Text = "3"; |
|||
this.button18.UseVisualStyleBackColor = false; |
|||
this.button18.Click += new System.EventHandler(this.button18_Click); |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.ForeColor = System.Drawing.Color.White; |
|||
this.label3.Location = new System.Drawing.Point(24, 167); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(77, 21); |
|||
this.label3.TabIndex = 2; |
|||
this.label3.Text = "ARREARS"; |
|||
//
|
|||
// button14
|
|||
//
|
|||
this.button14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button14.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button14.FlatAppearance.BorderSize = 0; |
|||
this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button14.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button14.ForeColor = System.Drawing.Color.White; |
|||
this.button14.Location = new System.Drawing.Point(177, 271); |
|||
this.button14.Name = "button14"; |
|||
this.button14.Size = new System.Drawing.Size(62, 54); |
|||
this.button14.TabIndex = 23; |
|||
this.button14.Text = "6"; |
|||
this.button14.UseVisualStyleBackColor = false; |
|||
this.button14.Click += new System.EventHandler(this.button14_Click); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.ForeColor = System.Drawing.Color.White; |
|||
this.label2.Location = new System.Drawing.Point(24, 135); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(77, 21); |
|||
this.label2.TabIndex = 1; |
|||
this.label2.Text = "BALANCE"; |
|||
//
|
|||
// button10
|
|||
//
|
|||
this.button10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button10.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button10.FlatAppearance.BorderSize = 0; |
|||
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button10.ForeColor = System.Drawing.Color.White; |
|||
this.button10.Location = new System.Drawing.Point(177, 211); |
|||
this.button10.Name = "button10"; |
|||
this.button10.Size = new System.Drawing.Size(62, 54); |
|||
this.button10.TabIndex = 24; |
|||
this.button10.Text = "9"; |
|||
this.button10.UseVisualStyleBackColor = false; |
|||
this.button10.Click += new System.EventHandler(this.button10_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.ForeColor = System.Drawing.Color.White; |
|||
this.label1.Location = new System.Drawing.Point(24, 103); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(82, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "BILL COST"; |
|||
//
|
|||
// button21
|
|||
//
|
|||
this.button21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button21.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button21.FlatAppearance.BorderSize = 0; |
|||
this.button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button21.ForeColor = System.Drawing.Color.White; |
|||
this.button21.Location = new System.Drawing.Point(47, 391); |
|||
this.button21.Name = "button21"; |
|||
this.button21.Size = new System.Drawing.Size(257, 57); |
|||
this.button21.TabIndex = 25; |
|||
this.button21.Text = "PAY"; |
|||
this.button21.UseVisualStyleBackColor = false; |
|||
this.button21.Click += new System.EventHandler(this.Button21_Click); |
|||
//
|
|||
// button17
|
|||
//
|
|||
this.button17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button17.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button17.FlatAppearance.BorderSize = 0; |
|||
this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button17.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button17.ForeColor = System.Drawing.Color.White; |
|||
this.button17.Location = new System.Drawing.Point(112, 331); |
|||
this.button17.Name = "button17"; |
|||
this.button17.Size = new System.Drawing.Size(62, 54); |
|||
this.button17.TabIndex = 26; |
|||
this.button17.Text = "2"; |
|||
this.button17.UseVisualStyleBackColor = false; |
|||
this.button17.Click += new System.EventHandler(this.button17_Click); |
|||
//
|
|||
// button13
|
|||
//
|
|||
this.button13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button13.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button13.FlatAppearance.BorderSize = 0; |
|||
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button13.ForeColor = System.Drawing.Color.White; |
|||
this.button13.Location = new System.Drawing.Point(112, 271); |
|||
this.button13.Name = "button13"; |
|||
this.button13.Size = new System.Drawing.Size(62, 54); |
|||
this.button13.TabIndex = 27; |
|||
this.button13.Text = "5"; |
|||
this.button13.UseVisualStyleBackColor = false; |
|||
this.button13.Click += new System.EventHandler(this.button13_Click); |
|||
//
|
|||
// button9
|
|||
//
|
|||
this.button9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button9.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button9.FlatAppearance.BorderSize = 0; |
|||
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button9.ForeColor = System.Drawing.Color.White; |
|||
this.button9.Location = new System.Drawing.Point(112, 211); |
|||
this.button9.Name = "button9"; |
|||
this.button9.Size = new System.Drawing.Size(62, 54); |
|||
this.button9.TabIndex = 28; |
|||
this.button9.Text = "8"; |
|||
this.button9.UseVisualStyleBackColor = false; |
|||
this.button9.Click += new System.EventHandler(this.button9_Click); |
|||
//
|
|||
// button16
|
|||
//
|
|||
this.button16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button16.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button16.FlatAppearance.BorderSize = 0; |
|||
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button16.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button16.ForeColor = System.Drawing.Color.White; |
|||
this.button16.Location = new System.Drawing.Point(47, 331); |
|||
this.button16.Name = "button16"; |
|||
this.button16.Size = new System.Drawing.Size(62, 54); |
|||
this.button16.TabIndex = 29; |
|||
this.button16.Text = "1"; |
|||
this.button16.UseVisualStyleBackColor = false; |
|||
this.button16.Click += new System.EventHandler(this.button16_Click); |
|||
//
|
|||
// button12
|
|||
//
|
|||
this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button12.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button12.FlatAppearance.BorderSize = 0; |
|||
this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.button12.ForeColor = System.Drawing.Color.White; |
|||
this.button12.Location = new System.Drawing.Point(47, 271); |
|||
this.button12.Name = "button12"; |
|||
this.button12.Size = new System.Drawing.Size(62, 54); |
|||
this.button12.TabIndex = 30; |
|||
this.button12.Text = "4"; |
|||
this.button12.UseVisualStyleBackColor = false; |
|||
this.button12.Click += new System.EventHandler(this.button12_Click); |
|||
//
|
|||
// btnSave
|
|||
//
|
|||
this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.btnSave.FlatAppearance.BorderSize = 0; |
|||
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.btnSave.ForeColor = System.Drawing.Color.White; |
|||
this.btnSave.Location = new System.Drawing.Point(47, 211); |
|||
this.btnSave.Name = "btnSave"; |
|||
this.btnSave.Size = new System.Drawing.Size(62, 54); |
|||
this.btnSave.TabIndex = 31; |
|||
this.btnSave.Text = "7"; |
|||
this.btnSave.UseVisualStyleBackColor = false; |
|||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|||
//
|
|||
// settlePayment
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(370, 461); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.KeyPreview = true; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "settlePayment"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|||
this.Load += new System.EventHandler(this.settlePayment_Load); |
|||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.settlePayment_KeyDown); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.gradientPanel1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private gradientPanel panel1; |
|||
private System.Windows.Forms.TextBox payment; |
|||
private System.Windows.Forms.Label label7; |
|||
private System.Windows.Forms.Label owe; |
|||
private System.Windows.Forms.Label bal; |
|||
private System.Windows.Forms.Label cost; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Button button19; |
|||
private System.Windows.Forms.Button button15; |
|||
private System.Windows.Forms.Button button11; |
|||
private System.Windows.Forms.Button button18; |
|||
private System.Windows.Forms.Button button14; |
|||
private System.Windows.Forms.Button button10; |
|||
private System.Windows.Forms.Button button21; |
|||
private System.Windows.Forms.Button button17; |
|||
private System.Windows.Forms.Button button13; |
|||
private System.Windows.Forms.Button button9; |
|||
private System.Windows.Forms.Button button16; |
|||
private System.Windows.Forms.Button button12; |
|||
private System.Windows.Forms.Button btnSave; |
|||
private gradientPanel gradientPanel1; |
|||
private System.Windows.Forms.Label close; |
|||
private System.Windows.Forms.Label label4; |
|||
} |
|||
} |
@ -0,0 +1,192 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using System; |
|||
using System.Data.SqlClient; |
|||
using System.Drawing; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class settlePayment : Form |
|||
{ |
|||
string currency; |
|||
NewSalesPOS selling; |
|||
decimal balponit, paymentponit; |
|||
public settlePayment(NewSalesPOS sales) |
|||
{ |
|||
InitializeComponent(); |
|||
currency = Settings.Default.currrencyCode + " "; |
|||
selling = sales; |
|||
} |
|||
|
|||
private void settlePayment_KeyDown(object sender, KeyEventArgs e) |
|||
{ |
|||
if (e.KeyCode == Keys.Escape) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
private void button16_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("1"); |
|||
} |
|||
private void button17_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("2"); |
|||
} |
|||
private void button18_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("3"); |
|||
} |
|||
private void button19_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("."); |
|||
} |
|||
private void button15_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("0"); |
|||
} |
|||
private void button11_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.Text = ""; |
|||
} |
|||
private void button14_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("6"); |
|||
} |
|||
private void button13_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("5"); |
|||
} |
|||
private void button12_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("4"); |
|||
} |
|||
private void button10_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("9"); |
|||
} |
|||
private void button9_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("8"); |
|||
} |
|||
private void btnSave_Click(object sender, EventArgs e) |
|||
{ |
|||
payment.AppendText("7"); |
|||
} |
|||
private void settlePayment_Load(object sender, EventArgs e) |
|||
{ |
|||
payment.Focus(); |
|||
cost.Text = currency + NewSalesPOS.mainTotal.ToString(); |
|||
owe.Text = currency + NewSalesPOS.mainTotal.ToString(); |
|||
} |
|||
private void payment_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
if (!String.IsNullOrEmpty(payment.Text)) |
|||
{ |
|||
decimal amount = decimal.Parse(payment.Text); |
|||
if (!String.IsNullOrEmpty(payment.Text)) |
|||
{ |
|||
arrangement(amount); |
|||
} |
|||
else |
|||
{ |
|||
arrangement(decimal.Parse("0.00")); |
|||
} |
|||
} |
|||
|
|||
} |
|||
public void arrangement(decimal payment) |
|||
{ |
|||
decimal paid = NewSalesPOS.mainTotal - payment; |
|||
paymentponit = payment; |
|||
|
|||
if (paid < 0) |
|||
{ |
|||
bal.Text = currency + (paid * -1).ToString(); |
|||
balponit = decimal.Parse((paid * -1).ToString()); |
|||
owe.Text = currency + 0.00; |
|||
} |
|||
else if (paid == 0) |
|||
{ |
|||
bal.Text = currency + paid.ToString(); |
|||
balponit = decimal.Parse(paid.ToString()); |
|||
owe.Text = currency + 0.00; |
|||
} |
|||
else |
|||
{ |
|||
owe.Text = currency + paid.ToString(); |
|||
bal.Text = currency + 0.00; |
|||
balponit = decimal.Parse("00.00"); |
|||
} |
|||
} |
|||
private void payment_KeyPress(object sender, KeyPressEventArgs e) |
|||
{ |
|||
if (e.KeyChar == 8) |
|||
{ |
|||
//accepts backspace
|
|||
} |
|||
else if ((e.KeyChar < 48) || (e.KeyChar > 57)) //ascii code 48-57 between 0-9
|
|||
{ |
|||
e.Handled = true; |
|||
} |
|||
else if (e.KeyChar == 46) |
|||
{ |
|||
// accepts . character
|
|||
} |
|||
} |
|||
|
|||
private void Close_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
|
|||
private void Close_MouseEnter(object sender, EventArgs e) |
|||
{ |
|||
close.BackColor = Color.Crimson; |
|||
} |
|||
|
|||
private void Close_MouseLeave(object sender, EventArgs e) |
|||
{ |
|||
close.BackColor = Color.Transparent; |
|||
} |
|||
|
|||
private async void Button21_Click(object sender, EventArgs e) |
|||
{ |
|||
if (owe.Text.Equals(currency + 0.00)) |
|||
{ |
|||
Task<int> task = new Task<int>(() => selling.makePayment(balponit, paymentponit)); |
|||
task.Start(); |
|||
int result = await task; |
|||
if (result == 1) |
|||
{ |
|||
|
|||
string title = "Success"; |
|||
string message = "Payment made successfully"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
this.Close(); |
|||
} |
|||
else |
|||
{ |
|||
|
|||
string title = "Error Occurred"; |
|||
string message = "Sorry an error occurred while making payment, please try again"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
string title = "Full amount not paid"; |
|||
string message = "Bill needs to be fully settled to continue"; |
|||
NoAction noAction = new NoAction(title, message); |
|||
noAction.BringToFront(); |
|||
noAction.ShowDialog(); |
|||
} |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,402 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class ProductListForm |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.components = new System.ComponentModel.Container(); |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductListForm)); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); |
|||
this.ProductOptions = new System.Windows.Forms.ContextMenuStrip(this.components); |
|||
this.cHANGEPRICEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.rESTOCKPRODUCTToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.pRINTTAGSANDBARCODEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.gradientPanel2 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.txtSearch = new MetroFramework.Controls.MetroTextBox(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.barcodecolumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.holding = new MetroFramework.Controls.MetroProgressSpinner(); |
|||
this.ProductOptions.SuspendLayout(); |
|||
this.gradientPanel2.SuspendLayout(); |
|||
this.panel1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.White; |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(446, 42); |
|||
this.label1.TabIndex = 4; |
|||
this.label1.Text = "PRODUCT LIST"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// dataGridViewImageColumn1
|
|||
//
|
|||
this.dataGridViewImageColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.dataGridViewImageColumn1.HeaderText = ""; |
|||
this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image"))); |
|||
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; |
|||
this.dataGridViewImageColumn1.ReadOnly = true; |
|||
//
|
|||
// dataGridViewImageColumn2
|
|||
//
|
|||
this.dataGridViewImageColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.dataGridViewImageColumn2.HeaderText = ""; |
|||
this.dataGridViewImageColumn2.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn2.Image"))); |
|||
this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2"; |
|||
this.dataGridViewImageColumn2.ReadOnly = true; |
|||
//
|
|||
// ProductOptions
|
|||
//
|
|||
this.ProductOptions.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.ProductOptions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.cHANGEPRICEToolStripMenuItem, |
|||
this.rESTOCKPRODUCTToolStripMenuItem, |
|||
this.pRINTTAGSANDBARCODEToolStripMenuItem}); |
|||
this.ProductOptions.Name = "ProductOptions"; |
|||
this.ProductOptions.Size = new System.Drawing.Size(251, 76); |
|||
//
|
|||
// cHANGEPRICEToolStripMenuItem
|
|||
//
|
|||
this.cHANGEPRICEToolStripMenuItem.Name = "cHANGEPRICEToolStripMenuItem"; |
|||
this.cHANGEPRICEToolStripMenuItem.Size = new System.Drawing.Size(250, 24); |
|||
this.cHANGEPRICEToolStripMenuItem.Text = "CHANGE PRICE"; |
|||
//
|
|||
// rESTOCKPRODUCTToolStripMenuItem
|
|||
//
|
|||
this.rESTOCKPRODUCTToolStripMenuItem.Name = "rESTOCKPRODUCTToolStripMenuItem"; |
|||
this.rESTOCKPRODUCTToolStripMenuItem.Size = new System.Drawing.Size(250, 24); |
|||
this.rESTOCKPRODUCTToolStripMenuItem.Text = "RESTOCK PRODUCT"; |
|||
//
|
|||
// pRINTTAGSANDBARCODEToolStripMenuItem
|
|||
//
|
|||
this.pRINTTAGSANDBARCODEToolStripMenuItem.Name = "pRINTTAGSANDBARCODEToolStripMenuItem"; |
|||
this.pRINTTAGSANDBARCODEToolStripMenuItem.Size = new System.Drawing.Size(250, 24); |
|||
this.pRINTTAGSANDBARCODEToolStripMenuItem.Text = "PRINT TAGS AND BARCODE"; |
|||
//
|
|||
// gradientPanel2
|
|||
//
|
|||
this.gradientPanel2.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel2.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.gradientPanel2.Controls.Add(this.label1); |
|||
this.gradientPanel2.Controls.Add(this.panel1); |
|||
this.gradientPanel2.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel2.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel2.Name = "gradientPanel2"; |
|||
this.gradientPanel2.Size = new System.Drawing.Size(746, 42); |
|||
this.gradientPanel2.TabIndex = 7; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.Transparent; |
|||
this.panel1.Controls.Add(this.txtSearch); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right; |
|||
this.panel1.Location = new System.Drawing.Point(446, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(300, 42); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// txtSearch
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.txtSearch.CustomButton.Image = null; |
|||
this.txtSearch.CustomButton.Location = new System.Drawing.Point(261, 2); |
|||
this.txtSearch.CustomButton.Name = ""; |
|||
this.txtSearch.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.txtSearch.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.txtSearch.CustomButton.TabIndex = 1; |
|||
this.txtSearch.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.txtSearch.CustomButton.UseSelectable = true; |
|||
this.txtSearch.CustomButton.Visible = false; |
|||
this.txtSearch.DisplayIcon = true; |
|||
this.txtSearch.FontSize = MetroFramework.MetroTextBoxSize.Medium; |
|||
this.txtSearch.Icon = ((System.Drawing.Image)(resources.GetObject("txtSearch.Icon"))); |
|||
this.txtSearch.Lines = new string[0]; |
|||
this.txtSearch.Location = new System.Drawing.Point(6, 3); |
|||
this.txtSearch.MaxLength = 32767; |
|||
this.txtSearch.Name = "txtSearch"; |
|||
this.txtSearch.PasswordChar = '\0'; |
|||
this.txtSearch.PromptText = "Search Here"; |
|||
this.txtSearch.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.txtSearch.SelectedText = ""; |
|||
this.txtSearch.SelectionLength = 0; |
|||
this.txtSearch.SelectionStart = 0; |
|||
this.txtSearch.ShortcutsEnabled = true; |
|||
this.txtSearch.Size = new System.Drawing.Size(289, 30); |
|||
this.txtSearch.TabIndex = 1; |
|||
this.txtSearch.UseSelectable = true; |
|||
this.txtSearch.WaterMark = "Search Here"; |
|||
this.txtSearch.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.txtSearch.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.txtSearch.TextChanged += new System.EventHandler(this.txtSearch_TextChanged); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToDeleteRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.barcodecolumn, |
|||
this.Column8, |
|||
this.Column4, |
|||
this.Column3, |
|||
this.Column5, |
|||
this.Column9, |
|||
this.Column6, |
|||
this.Column7}); |
|||
this.dataGridView1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 42); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.ReadOnly = true; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5; |
|||
this.dataGridView1.RowTemplate.Height = 40; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(746, 468); |
|||
this.dataGridView1.TabIndex = 8; |
|||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 39; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column2.DataPropertyName = "pcode"; |
|||
this.Column2.HeaderText = "PCODE"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Width = 72; |
|||
//
|
|||
// barcodecolumn
|
|||
//
|
|||
this.barcodecolumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.barcodecolumn.HeaderText = "BARCODE"; |
|||
this.barcodecolumn.Name = "barcodecolumn"; |
|||
this.barcodecolumn.ReadOnly = true; |
|||
this.barcodecolumn.Width = 88; |
|||
//
|
|||
// Column8
|
|||
//
|
|||
this.Column8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column8.HeaderText = "PRODUCT NAME"; |
|||
this.Column8.Name = "Column8"; |
|||
this.Column8.ReadOnly = true; |
|||
this.Column8.Width = 130; |
|||
//
|
|||
// Column4
|
|||
//
|
|||
this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column4.DataPropertyName = "pdesc"; |
|||
this.Column4.HeaderText = "DESCRIPTION"; |
|||
this.Column4.Name = "Column4"; |
|||
this.Column4.ReadOnly = true; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column3.DataPropertyName = "brand"; |
|||
this.Column3.HeaderText = "BRAND"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
this.Column3.Width = 73; |
|||
//
|
|||
// Column5
|
|||
//
|
|||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column5.DataPropertyName = "category"; |
|||
this.Column5.HeaderText = "CATEGORY"; |
|||
this.Column5.Name = "Column5"; |
|||
this.Column5.ReadOnly = true; |
|||
this.Column5.Width = 94; |
|||
//
|
|||
// Column9
|
|||
//
|
|||
this.Column9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column9.HeaderText = "BASE UNIT OF MEASURE"; |
|||
this.Column9.Name = "Column9"; |
|||
this.Column9.ReadOnly = true; |
|||
this.Column9.Width = 175; |
|||
//
|
|||
// Column6
|
|||
//
|
|||
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column6.DataPropertyName = "price"; |
|||
this.Column6.HeaderText = "PRICE"; |
|||
this.Column6.Name = "Column6"; |
|||
this.Column6.ReadOnly = true; |
|||
this.Column6.Width = 64; |
|||
//
|
|||
// Column7
|
|||
//
|
|||
this.Column7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column7.DataPropertyName = "qty"; |
|||
this.Column7.HeaderText = "QTY"; |
|||
this.Column7.Name = "Column7"; |
|||
this.Column7.ReadOnly = true; |
|||
this.Column7.Width = 54; |
|||
//
|
|||
// holding
|
|||
//
|
|||
this.holding.BackColor = System.Drawing.Color.White; |
|||
this.holding.Location = new System.Drawing.Point(348, 236); |
|||
this.holding.Maximum = 100; |
|||
this.holding.Name = "holding"; |
|||
this.holding.Size = new System.Drawing.Size(50, 39); |
|||
this.holding.TabIndex = 9; |
|||
this.holding.UseCustomBackColor = true; |
|||
this.holding.UseSelectable = true; |
|||
//
|
|||
// ProductListForm
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(746, 510); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.holding); |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Controls.Add(this.gradientPanel2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|||
this.Name = "ProductListForm"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.Activated += new System.EventHandler(this.txtSearch_TextChanged); |
|||
this.Load += new System.EventHandler(this.txtSearch_TextChanged); |
|||
this.ProductOptions.ResumeLayout(false); |
|||
this.gradientPanel2.ResumeLayout(false); |
|||
this.panel1.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; |
|||
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2; |
|||
private System.Windows.Forms.ContextMenuStrip ProductOptions; |
|||
private System.Windows.Forms.ToolStripMenuItem cHANGEPRICEToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem rESTOCKPRODUCTToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem pRINTTAGSANDBARCODEToolStripMenuItem; |
|||
private System.Windows.Forms.Label label1; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel2; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private MetroFramework.Controls.MetroTextBox txtSearch; |
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn barcodecolumn; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column8; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column9; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|||
private MetroFramework.Controls.MetroProgressSpinner holding; |
|||
} |
|||
} |
@ -0,0 +1,83 @@ |
|||
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; |
|||
using System.Data.SqlClient; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using BiskLog_Point_Of_Sale.Products_Module; |
|||
using BiskLog_Point_Of_Sale.Classes; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class ProductListForm : Form |
|||
{ |
|||
SqlConnection cn = new SqlConnection(); |
|||
SqlCommand cm = new SqlCommand(); |
|||
DatabaseConn databasecon = new DatabaseConn(); |
|||
SqlDataReader dr; |
|||
string currency; |
|||
public ProductListForm() |
|||
{ |
|||
InitializeComponent(); |
|||
currency = Settings.Default.currrencyCode + " "; |
|||
cn = new SqlConnection(databasecon.MyConnection()); |
|||
holding.Left = (ClientSize.Width - holding.Width) / 2; |
|||
|
|||
} |
|||
public int LoadRecords() |
|||
{ |
|||
try |
|||
{ |
|||
int i = 0; |
|||
dataGridView1.Invoke(new Action(() => |
|||
{ |
|||
dataGridView1.Rows.Clear(); |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select p.pcode,p.barcode,p.product_name,p.pdesc, b.brand, c.category,um.unitshort ,p.price , I.quantity from tblProduct as p " + |
|||
"inner join tblBrand as b on b.id = p.bid inner join tblInventory as I on I.pcode = p.pcode inner join tblCategory as c on c.id = p.cid inner join UnitOfMeasure um on " + |
|||
"um.unitCode = p.baseUnit where p.branchID = @branch and p.status = 'ACTIVE' and (p.pdesc like '%" + txtSearch.Text + "%' or p.product_name like '%" + txtSearch.Text + "%' or " + |
|||
"p.pcode like '%" + txtSearch.Text + "%')", cn); |
|||
cm.Parameters.AddWithValue("@branch", Settings.Default.BranchID); |
|||
cm.ExecuteNonQuery(); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
i += 1; |
|||
dataGridView1.Rows.Add(i, dr[0].ToString(), dr[1].ToString(), dr[2].ToString(), dr[3].ToString(), |
|||
dr[4].ToString(), dr[5].ToString(), dr[6].ToString(), currency + dr[7].ToString(), dr[8].ToString()); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
})); |
|||
return 1; |
|||
} |
|||
catch |
|||
{ |
|||
cn.Close(); |
|||
return 0; |
|||
} |
|||
} |
|||
private async void txtSearch_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
Task<int> task = new Task<int>(LoadRecords); |
|||
holding.Visible = true; |
|||
task.Start(); |
|||
await task; |
|||
holding.Visible = false; |
|||
} |
|||
|
|||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) |
|||
{ |
|||
string id = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); |
|||
string productname = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString(); |
|||
InfoWindow info = new InfoWindow(id, productname); |
|||
info.BringToFront(); |
|||
info.ShowDialog(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,192 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|||
<data name="dataGridViewImageColumn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
|||
xAAADsQBlSsOGwAAAUtJREFUOE+N07FLAzEUx/EbipMUOaSIiFMRESni7Cgi4igdxKmIiJM4OblIhyIO |
|||
Ujo5iDg4+wc4OjuJk4OTiDhI0Y71+7t7d6S5ePjgwyWvyUsuvURZtO5+WpjDFI4whrb91kkGhYIf9/CG |
|||
L3zgHX3LfXvPR0za1DRI3GMRm5hBjCYq2LUx+/a8waraeZBQgQXrlgbjemjgANUsmRSAVtzGTsC0ja2i |
|||
iyEe1HcLqL2E5YBx6FD1Cir4AhW59QvoX5gP0MonuIIOVEWesO4WSA4tQO97iWzr8ol45AySjhfktW2t |
|||
7E4eYMOGFA7xDOdGk7TlvycrSBR2QF8rq5g/eQuzNiwNEqECend9jSMr4wJrNiwNEqECp1iBiuTb5qlX |
|||
Ki9AewK6D8fQ6eefLu1/FahDF6xmqTzIXaNQ4BC6aa9Gn6huXdZ3PcMpHEW/Ob7EnghaNBIAAAAASUVO |
|||
RK5CYII= |
|||
</value> |
|||
</data> |
|||
<data name="dataGridViewImageColumn2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO |
|||
xAAADsQBlSsOGwAAAQNJREFUOE/N0yFrQmEUxvEXGSILInKDyWT0I8gQMYlJZB/EMEREMMjFYBYRMZjH |
|||
EIPIZcHgJzAsiSwuGQwiC/o/eMbLxKtOyw78wjn3nIcrXM2p2hmTxRIb9YmcPj5fLAbwhb4cqQ5WCOra |
|||
7+LBA15QRxM79LQXbZ21tC/DhtHkIQt/UdRzOmNG2OIb6wtkR3Y9PT8UA3m1sba+xc4rmtraYliTAIQw |
|||
RwIS6iKuszDecDbgEfIbk+hiAAmTWRQS4OqZLYb/I2CCmwOquCZgCN8AD3cFvCMI+ZxjKOAZjs4kXD66 |
|||
hp7ZYljCAhk8IXVEZml8oKJnthhGMMXPX9jPDM7hypg9OwIavDoR7wIAAAAASUVORK5CYII= |
|||
</value> |
|||
</data> |
|||
<metadata name="ProductOptions.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|||
<value>17, 17</value> |
|||
</metadata> |
|||
<data name="txtSearch.Icon" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAoRJREFUSEtj |
|||
cC/woSnGKkhNjFWQmhirIDUxVkEQZmAIZdY3di22cQrb5+yRcMHRI/6shY3/Jl1dOzts6nFhrIJKSsb8 |
|||
5tb+h5Lz+n8n1c/4n9Q9/39S17z/SZVT/ofF1b41MnXvx6YPG8YqaG7tuzOtfPr/1AVr/lecvQLH5acu |
|||
/o9tm/4/Nr3ji76ZWyE2vegYQ0Bf39I9OqX5S9K0pSiGI+OE+mn/Hd1jrzA4OLCg60fHGALGVt5Lksom |
|||
/y8/ffl/6fHzYANLjp37X3HmMtgHIJy6YPX/2NS2H2pqxjbo+tExhoClffCmpLoZYAPnrFz+v3TNpv/T |
|||
16z+X79qzf+e1Wv/dwNx3q7D/xMyu/9rG9inoutHxxgCZta+K5MqpoBdXrRpx/+yE+f+F+/Y/7/0yOn/ |
|||
JXsOg3H68o3/4zI6/6hrm3qg60fHGAK6Bg4JCdk9v9IWrUMJd2Qc3z7rv5tv6h0pKWMudP3oGFMAmP6t |
|||
7INPJ1dO+5+7ZS+G4QmTF/xPyp/wx9jMYxK6XmwYq6CGvo2avWvU1dTSqf+TOub8T5qyCIgX/4+rnfI/ |
|||
Mafvl6aezUU5ZV1jbW1tNmz6kTFWQRCWltYQNrXyXuzsGX8tIKL4mU9w3hN7l8jTeibOVUBvMlkYmWxv |
|||
Tgt8Eupmv0tGxpITmxkgjFUQHSsq6oirq6vzIoulBbud+LOr/v/LteX/wj0c9uOyBEOAWOxlbxM5ryLm |
|||
+aMVpXgtQeGQit2sLeKnFke+ODw5E24JerygaCAHwyw5MyPn//WFhX8dLMxSkOVRFJOLQZbUp/g/LIz0 |
|||
um9uaKiFLIeikBKsoGAgoKKiwocujsKhBcYqSE2MVZB62IcBAFkE6RNYT3DmAAAAAElFTkSuQmCC |
|||
</value> |
|||
</data> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="barcodecolumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
@ -0,0 +1,187 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class formBrandList |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.gradientPanel2 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.gradientPanel2.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.Column3}); |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 33); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5; |
|||
this.dataGridView1.RowTemplate.Height = 40; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(844, 475); |
|||
this.dataGridView1.TabIndex = 2; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 42; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.HeaderText = "ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Visible = false; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "BRAND"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// gradientPanel2
|
|||
//
|
|||
this.gradientPanel2.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel2.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.gradientPanel2.Controls.Add(this.label1); |
|||
this.gradientPanel2.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel2.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel2.Name = "gradientPanel2"; |
|||
this.gradientPanel2.Size = new System.Drawing.Size(844, 33); |
|||
this.gradientPanel2.TabIndex = 7; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.label1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(844, 33); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "BRAND LIST"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// formBrandList
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(844, 508); |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Controls.Add(this.gradientPanel2); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Name = "formBrandList"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "formBrand"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.Load += new System.EventHandler(this.formBrandList_Load); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.gradientPanel2.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
//private void dataGridView1_CellContentClick(object sender, System.Windows.Forms.DataGridViewCellEventArgs e)
|
|||
//{
|
|||
// throw new System.NotImplementedException();
|
|||
//}
|
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel2; |
|||
private System.Windows.Forms.Label label1; |
|||
} |
|||
} |
@ -0,0 +1,48 @@ |
|||
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; |
|||
using System.Data.SqlClient; |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class formBrandList : Form |
|||
{ |
|||
SqlConnection cn = new SqlConnection(); |
|||
SqlCommand cm = new SqlCommand(); |
|||
SqlDataReader dr; |
|||
DatabaseConn databasecon = new DatabaseConn(); |
|||
|
|||
public formBrandList() |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(databasecon.MyConnection()); |
|||
LoadRecords(); |
|||
} |
|||
|
|||
private void formBrandList_Load(object sender, EventArgs e) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public void LoadRecords() |
|||
{ |
|||
int i = 0; |
|||
dataGridView1.Rows.Clear(); |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select * from tblbrand order by brand", cn); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
i += 1; |
|||
dataGridView1.Rows.Add(i, dr["id"].ToString(), dr["brand"].ToString()); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
@ -0,0 +1,185 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class formCategoryList |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.gradientPanel2 = new BiskLog_Point_Of_Sale.Classes.gradientPanel(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.gradientPanel2.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.AllowUserToAddRows = false; |
|||
this.dataGridView1.AllowUserToResizeColumns = false; |
|||
this.dataGridView1.AllowUserToResizeRows = false; |
|||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Gainsboro; |
|||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|||
this.dataGridView1.BackgroundColor = System.Drawing.Color.White; |
|||
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; |
|||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|||
this.dataGridView1.ColumnHeadersHeight = 30; |
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|||
this.Column1, |
|||
this.Column2, |
|||
this.Column3}); |
|||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; |
|||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.EnableHeadersVisualStyles = false; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 39); |
|||
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
|||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaptionText; |
|||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; |
|||
this.dataGridView1.RowHeadersVisible = false; |
|||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; |
|||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; |
|||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White; |
|||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5; |
|||
this.dataGridView1.RowTemplate.Height = 40; |
|||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|||
this.dataGridView1.Size = new System.Drawing.Size(755, 434); |
|||
this.dataGridView1.TabIndex = 3; |
|||
//
|
|||
// Column1
|
|||
//
|
|||
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; |
|||
this.Column1.HeaderText = "#"; |
|||
this.Column1.Name = "Column1"; |
|||
this.Column1.ReadOnly = true; |
|||
this.Column1.Width = 39; |
|||
//
|
|||
// Column2
|
|||
//
|
|||
this.Column2.HeaderText = "ID"; |
|||
this.Column2.Name = "Column2"; |
|||
this.Column2.ReadOnly = true; |
|||
this.Column2.Visible = false; |
|||
//
|
|||
// Column3
|
|||
//
|
|||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|||
this.Column3.HeaderText = "CATEGORY"; |
|||
this.Column3.Name = "Column3"; |
|||
this.Column3.ReadOnly = true; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.BackColor = System.Drawing.Color.Transparent; |
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(755, 39); |
|||
this.label1.TabIndex = 4; |
|||
this.label1.Text = "CATEGORY LIST"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|||
//
|
|||
// gradientPanel2
|
|||
//
|
|||
this.gradientPanel2.ColorBottom = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56))))); |
|||
this.gradientPanel2.ColorTop = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.gradientPanel2.Controls.Add(this.label1); |
|||
this.gradientPanel2.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.gradientPanel2.Location = new System.Drawing.Point(0, 0); |
|||
this.gradientPanel2.Name = "gradientPanel2"; |
|||
this.gradientPanel2.Size = new System.Drawing.Size(755, 39); |
|||
this.gradientPanel2.TabIndex = 5; |
|||
//
|
|||
// formCategoryList
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.BackColor = System.Drawing.SystemColors.Control; |
|||
this.ClientSize = new System.Drawing.Size(755, 473); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.dataGridView1); |
|||
this.Controls.Add(this.gradientPanel2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.ForeColor = System.Drawing.Color.White; |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|||
this.Name = "formCategoryList"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.gradientPanel2.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|||
private System.Windows.Forms.Label label1; |
|||
private BiskLog_Point_Of_Sale.Classes.gradientPanel gradientPanel2; |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
using System.Data.SqlClient; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class formCategoryList : Form |
|||
{ |
|||
SqlConnection cn = new SqlConnection(); |
|||
SqlCommand cm = new SqlCommand(); |
|||
SqlDataReader dr; |
|||
DatabaseConn databasecon = new DatabaseConn(); |
|||
public formCategoryList() |
|||
{ |
|||
InitializeComponent(); |
|||
cn = new SqlConnection(databasecon.MyConnection()); |
|||
LoadRecords(); |
|||
} |
|||
|
|||
private void pictureBox1_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Dispose(); |
|||
} |
|||
public void LoadRecords() |
|||
{ |
|||
int i = 0; |
|||
dataGridView1.Rows.Clear(); |
|||
cn.Open(); |
|||
cm = new SqlCommand("Select * from tblCategory order by category", cn); |
|||
dr = cm.ExecuteReader(); |
|||
while (dr.Read()) |
|||
{ |
|||
i += 1; |
|||
dataGridView1.Rows.Add(i, dr["id"].ToString(), dr["category"].ToString()); |
|||
} |
|||
dr.Close(); |
|||
cn.Close(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|||
<value>True</value> |
|||
</metadata> |
|||
</root> |
@ -0,0 +1,928 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class BranchSetup |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.label8 = new System.Windows.Forms.Label(); |
|||
this.textBox1 = new System.Windows.Forms.TextBox(); |
|||
this.textBox2 = new System.Windows.Forms.TextBox(); |
|||
this.textBox3 = new System.Windows.Forms.TextBox(); |
|||
this.textBox4 = new System.Windows.Forms.TextBox(); |
|||
this.textBox7 = new System.Windows.Forms.TextBox(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.panel8 = new System.Windows.Forms.Panel(); |
|||
this.label42 = new System.Windows.Forms.Label(); |
|||
this.label43 = new System.Windows.Forms.Label(); |
|||
this.label44 = new System.Windows.Forms.Label(); |
|||
this.label45 = new System.Windows.Forms.Label(); |
|||
this.label38 = new System.Windows.Forms.Label(); |
|||
this.label39 = new System.Windows.Forms.Label(); |
|||
this.label40 = new System.Windows.Forms.Label(); |
|||
this.label41 = new System.Windows.Forms.Label(); |
|||
this.label34 = new System.Windows.Forms.Label(); |
|||
this.label35 = new System.Windows.Forms.Label(); |
|||
this.label36 = new System.Windows.Forms.Label(); |
|||
this.label37 = new System.Windows.Forms.Label(); |
|||
this.panel7 = new System.Windows.Forms.Panel(); |
|||
this.panel6 = new System.Windows.Forms.Panel(); |
|||
this.label29 = new System.Windows.Forms.Label(); |
|||
this.label22 = new System.Windows.Forms.Label(); |
|||
this.label33 = new System.Windows.Forms.Label(); |
|||
this.label32 = new System.Windows.Forms.Label(); |
|||
this.label31 = new System.Windows.Forms.Label(); |
|||
this.label30 = new System.Windows.Forms.Label(); |
|||
this.label24 = new System.Windows.Forms.Label(); |
|||
this.label23 = new System.Windows.Forms.Label(); |
|||
this.label25 = new System.Windows.Forms.Label(); |
|||
this.label26 = new System.Windows.Forms.Label(); |
|||
this.label28 = new System.Windows.Forms.Label(); |
|||
this.label27 = new System.Windows.Forms.Label(); |
|||
this.panel5 = new System.Windows.Forms.Panel(); |
|||
this.label16 = new System.Windows.Forms.Label(); |
|||
this.label17 = new System.Windows.Forms.Label(); |
|||
this.label18 = new System.Windows.Forms.Label(); |
|||
this.label19 = new System.Windows.Forms.Label(); |
|||
this.label20 = new System.Windows.Forms.Label(); |
|||
this.label21 = new System.Windows.Forms.Label(); |
|||
this.panel4 = new System.Windows.Forms.Panel(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.label15 = new System.Windows.Forms.Label(); |
|||
this.label12 = new System.Windows.Forms.Label(); |
|||
this.label14 = new System.Windows.Forms.Label(); |
|||
this.label13 = new System.Windows.Forms.Label(); |
|||
this.label10 = new System.Windows.Forms.Label(); |
|||
this.label11 = new System.Windows.Forms.Label(); |
|||
this.label9 = new System.Windows.Forms.Label(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
this.panel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(24, 32); |
|||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(154, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "Set up your receipt"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label2.Location = new System.Drawing.Point(24, 75); |
|||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(123, 21); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Company Name"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label3.Location = new System.Drawing.Point(24, 109); |
|||
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(58, 21); |
|||
this.label3.TabIndex = 0; |
|||
this.label3.Text = "Branch"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label4.Location = new System.Drawing.Point(24, 143); |
|||
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(69, 21); |
|||
this.label4.TabIndex = 0; |
|||
this.label4.Text = "Location"; |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label5.Location = new System.Drawing.Point(24, 176); |
|||
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(80, 21); |
|||
this.label5.TabIndex = 0; |
|||
this.label5.Text = "Telephone"; |
|||
//
|
|||
// label8
|
|||
//
|
|||
this.label8.AutoSize = true; |
|||
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label8.Location = new System.Drawing.Point(24, 212); |
|||
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label8.Name = "label8"; |
|||
this.label8.Size = new System.Drawing.Size(126, 21); |
|||
this.label8.TabIndex = 0; |
|||
this.label8.Text = "Receipt Message"; |
|||
//
|
|||
// textBox1
|
|||
//
|
|||
this.textBox1.Enabled = false; |
|||
this.textBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.textBox1.Location = new System.Drawing.Point(191, 72); |
|||
this.textBox1.Name = "textBox1"; |
|||
this.textBox1.Size = new System.Drawing.Size(254, 29); |
|||
this.textBox1.TabIndex = 1; |
|||
//
|
|||
// textBox2
|
|||
//
|
|||
this.textBox2.Enabled = false; |
|||
this.textBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.textBox2.Location = new System.Drawing.Point(191, 106); |
|||
this.textBox2.Name = "textBox2"; |
|||
this.textBox2.Size = new System.Drawing.Size(254, 29); |
|||
this.textBox2.TabIndex = 1; |
|||
//
|
|||
// textBox3
|
|||
//
|
|||
this.textBox3.Enabled = false; |
|||
this.textBox3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.textBox3.Location = new System.Drawing.Point(191, 140); |
|||
this.textBox3.Name = "textBox3"; |
|||
this.textBox3.Size = new System.Drawing.Size(254, 29); |
|||
this.textBox3.TabIndex = 1; |
|||
//
|
|||
// textBox4
|
|||
//
|
|||
this.textBox4.Enabled = false; |
|||
this.textBox4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.textBox4.Location = new System.Drawing.Point(191, 173); |
|||
this.textBox4.Name = "textBox4"; |
|||
this.textBox4.Size = new System.Drawing.Size(254, 29); |
|||
this.textBox4.TabIndex = 1; |
|||
//
|
|||
// textBox7
|
|||
//
|
|||
this.textBox7.Enabled = false; |
|||
this.textBox7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.textBox7.Location = new System.Drawing.Point(191, 209); |
|||
this.textBox7.Multiline = true; |
|||
this.textBox7.Name = "textBox7"; |
|||
this.textBox7.Size = new System.Drawing.Size(254, 88); |
|||
this.textBox7.TabIndex = 1; |
|||
this.textBox7.Text = "COME BACK SOON !!! CHEERS !!!"; |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BackColor = System.Drawing.Color.White; |
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|||
this.panel1.Controls.Add(this.panel8); |
|||
this.panel1.Controls.Add(this.label42); |
|||
this.panel1.Controls.Add(this.label43); |
|||
this.panel1.Controls.Add(this.label44); |
|||
this.panel1.Controls.Add(this.label45); |
|||
this.panel1.Controls.Add(this.label38); |
|||
this.panel1.Controls.Add(this.label39); |
|||
this.panel1.Controls.Add(this.label40); |
|||
this.panel1.Controls.Add(this.label41); |
|||
this.panel1.Controls.Add(this.label34); |
|||
this.panel1.Controls.Add(this.label35); |
|||
this.panel1.Controls.Add(this.label36); |
|||
this.panel1.Controls.Add(this.label37); |
|||
this.panel1.Controls.Add(this.panel7); |
|||
this.panel1.Controls.Add(this.panel6); |
|||
this.panel1.Controls.Add(this.label29); |
|||
this.panel1.Controls.Add(this.label22); |
|||
this.panel1.Controls.Add(this.label33); |
|||
this.panel1.Controls.Add(this.label32); |
|||
this.panel1.Controls.Add(this.label31); |
|||
this.panel1.Controls.Add(this.label30); |
|||
this.panel1.Controls.Add(this.label24); |
|||
this.panel1.Controls.Add(this.label23); |
|||
this.panel1.Controls.Add(this.label25); |
|||
this.panel1.Controls.Add(this.label26); |
|||
this.panel1.Controls.Add(this.label28); |
|||
this.panel1.Controls.Add(this.label27); |
|||
this.panel1.Controls.Add(this.panel5); |
|||
this.panel1.Controls.Add(this.label16); |
|||
this.panel1.Controls.Add(this.label17); |
|||
this.panel1.Controls.Add(this.label18); |
|||
this.panel1.Controls.Add(this.label19); |
|||
this.panel1.Controls.Add(this.label20); |
|||
this.panel1.Controls.Add(this.label21); |
|||
this.panel1.Controls.Add(this.panel4); |
|||
this.panel1.Controls.Add(this.panel3); |
|||
this.panel1.Controls.Add(this.panel2); |
|||
this.panel1.Controls.Add(this.label15); |
|||
this.panel1.Controls.Add(this.label12); |
|||
this.panel1.Controls.Add(this.label14); |
|||
this.panel1.Controls.Add(this.label13); |
|||
this.panel1.Controls.Add(this.label10); |
|||
this.panel1.Controls.Add(this.label11); |
|||
this.panel1.Controls.Add(this.label9); |
|||
this.panel1.Location = new System.Drawing.Point(475, 37); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(229, 317); |
|||
this.panel1.TabIndex = 2; |
|||
//
|
|||
// panel8
|
|||
//
|
|||
this.panel8.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel8.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel8.Location = new System.Drawing.Point(-3, 61); |
|||
this.panel8.Name = "panel8"; |
|||
this.panel8.Size = new System.Drawing.Size(231, 0); |
|||
this.panel8.TabIndex = 36; |
|||
//
|
|||
// label42
|
|||
//
|
|||
this.label42.AutoSize = true; |
|||
this.label42.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label42.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label42.Location = new System.Drawing.Point(6, 108); |
|||
this.label42.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label42.Name = "label42"; |
|||
this.label42.Size = new System.Drawing.Size(43, 12); |
|||
this.label42.TabIndex = 32; |
|||
this.label42.Text = "CASHIER"; |
|||
//
|
|||
// label43
|
|||
//
|
|||
this.label43.AutoSize = true; |
|||
this.label43.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label43.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label43.Location = new System.Drawing.Point(7, 127); |
|||
this.label43.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label43.Name = "label43"; |
|||
this.label43.Size = new System.Drawing.Size(84, 12); |
|||
this.label43.TabIndex = 33; |
|||
this.label43.Text = "RECEIPT NUMBER"; |
|||
//
|
|||
// label44
|
|||
//
|
|||
this.label44.AutoSize = true; |
|||
this.label44.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label44.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label44.Location = new System.Drawing.Point(109, 107); |
|||
this.label44.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label44.Name = "label44"; |
|||
this.label44.Size = new System.Drawing.Size(65, 12); |
|||
this.label44.TabIndex = 34; |
|||
this.label44.Text = "111111111111"; |
|||
//
|
|||
// label45
|
|||
//
|
|||
this.label45.AutoSize = true; |
|||
this.label45.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label45.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label45.Location = new System.Drawing.Point(109, 126); |
|||
this.label45.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label45.Name = "label45"; |
|||
this.label45.Size = new System.Drawing.Size(65, 12); |
|||
this.label45.TabIndex = 35; |
|||
this.label45.Text = "111111111111"; |
|||
//
|
|||
// label38
|
|||
//
|
|||
this.label38.AutoSize = true; |
|||
this.label38.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label38.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label38.Location = new System.Drawing.Point(5, 74); |
|||
this.label38.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label38.Name = "label38"; |
|||
this.label38.Size = new System.Drawing.Size(34, 12); |
|||
this.label38.TabIndex = 28; |
|||
this.label38.Text = "TAX ID"; |
|||
//
|
|||
// label39
|
|||
//
|
|||
this.label39.AutoSize = true; |
|||
this.label39.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label39.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label39.Location = new System.Drawing.Point(6, 93); |
|||
this.label39.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label39.Name = "label39"; |
|||
this.label39.Size = new System.Drawing.Size(61, 12); |
|||
this.label39.TabIndex = 29; |
|||
this.label39.Text = "VAT REG. NO"; |
|||
//
|
|||
// label40
|
|||
//
|
|||
this.label40.AutoSize = true; |
|||
this.label40.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label40.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label40.Location = new System.Drawing.Point(108, 73); |
|||
this.label40.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label40.Name = "label40"; |
|||
this.label40.Size = new System.Drawing.Size(65, 12); |
|||
this.label40.TabIndex = 30; |
|||
this.label40.Text = "111111111111"; |
|||
//
|
|||
// label41
|
|||
//
|
|||
this.label41.AutoSize = true; |
|||
this.label41.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label41.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label41.Location = new System.Drawing.Point(108, 92); |
|||
this.label41.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label41.Name = "label41"; |
|||
this.label41.Size = new System.Drawing.Size(65, 12); |
|||
this.label41.TabIndex = 31; |
|||
this.label41.Text = "111111111111"; |
|||
//
|
|||
// label34
|
|||
//
|
|||
this.label34.AutoSize = true; |
|||
this.label34.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); |
|||
this.label34.ForeColor = System.Drawing.Color.Black; |
|||
this.label34.Location = new System.Drawing.Point(75, 43); |
|||
this.label34.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label34.Name = "label34"; |
|||
this.label34.Size = new System.Drawing.Size(61, 13); |
|||
this.label34.TabIndex = 24; |
|||
this.label34.Text = "Telephone"; |
|||
//
|
|||
// label35
|
|||
//
|
|||
this.label35.AutoSize = true; |
|||
this.label35.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); |
|||
this.label35.ForeColor = System.Drawing.Color.Black; |
|||
this.label35.Location = new System.Drawing.Point(80, 29); |
|||
this.label35.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label35.Name = "label35"; |
|||
this.label35.Size = new System.Drawing.Size(52, 13); |
|||
this.label35.TabIndex = 25; |
|||
this.label35.Text = "Location"; |
|||
//
|
|||
// label36
|
|||
//
|
|||
this.label36.AutoSize = true; |
|||
this.label36.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); |
|||
this.label36.ForeColor = System.Drawing.Color.Black; |
|||
this.label36.Location = new System.Drawing.Point(84, 17); |
|||
this.label36.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label36.Name = "label36"; |
|||
this.label36.Size = new System.Drawing.Size(43, 13); |
|||
this.label36.TabIndex = 26; |
|||
this.label36.Text = "Branch"; |
|||
//
|
|||
// label37
|
|||
//
|
|||
this.label37.AutoSize = true; |
|||
this.label37.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); |
|||
this.label37.ForeColor = System.Drawing.Color.Black; |
|||
this.label37.Location = new System.Drawing.Point(61, 2); |
|||
this.label37.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label37.Name = "label37"; |
|||
this.label37.Size = new System.Drawing.Size(91, 13); |
|||
this.label37.TabIndex = 27; |
|||
this.label37.Text = "Company Name"; |
|||
//
|
|||
// panel7
|
|||
//
|
|||
this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel7.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel7.Location = new System.Drawing.Point(-3, 143); |
|||
this.panel7.Name = "panel7"; |
|||
this.panel7.Size = new System.Drawing.Size(231, 0); |
|||
this.panel7.TabIndex = 23; |
|||
//
|
|||
// panel6
|
|||
//
|
|||
this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel6.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel6.Location = new System.Drawing.Point(-3, 162); |
|||
this.panel6.Name = "panel6"; |
|||
this.panel6.Size = new System.Drawing.Size(231, 0); |
|||
this.panel6.TabIndex = 22; |
|||
//
|
|||
// label29
|
|||
//
|
|||
this.label29.AutoSize = true; |
|||
this.label29.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label29.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label29.Location = new System.Drawing.Point(159, 171); |
|||
this.label29.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label29.Name = "label29"; |
|||
this.label29.Size = new System.Drawing.Size(27, 12); |
|||
this.label29.TabIndex = 19; |
|||
this.label29.Text = "00.00"; |
|||
//
|
|||
// label22
|
|||
//
|
|||
this.label22.AutoSize = true; |
|||
this.label22.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label22.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label22.Location = new System.Drawing.Point(194, 171); |
|||
this.label22.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label22.Name = "label22"; |
|||
this.label22.Size = new System.Drawing.Size(27, 12); |
|||
this.label22.TabIndex = 19; |
|||
this.label22.Text = "00.00"; |
|||
//
|
|||
// label33
|
|||
//
|
|||
this.label33.AutoSize = true; |
|||
this.label33.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label33.ForeColor = System.Drawing.Color.Black; |
|||
this.label33.Location = new System.Drawing.Point(192, 148); |
|||
this.label33.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label33.Name = "label33"; |
|||
this.label33.Size = new System.Drawing.Size(33, 12); |
|||
this.label33.TabIndex = 16; |
|||
this.label33.Text = "TOTAL"; |
|||
//
|
|||
// label32
|
|||
//
|
|||
this.label32.AutoSize = true; |
|||
this.label32.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label32.ForeColor = System.Drawing.Color.Black; |
|||
this.label32.Location = new System.Drawing.Point(153, 147); |
|||
this.label32.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label32.Name = "label32"; |
|||
this.label32.Size = new System.Drawing.Size(31, 12); |
|||
this.label32.TabIndex = 16; |
|||
this.label32.Text = "PRICE"; |
|||
//
|
|||
// label31
|
|||
//
|
|||
this.label31.AutoSize = true; |
|||
this.label31.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label31.ForeColor = System.Drawing.Color.Black; |
|||
this.label31.Location = new System.Drawing.Point(101, 147); |
|||
this.label31.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label31.Name = "label31"; |
|||
this.label31.Size = new System.Drawing.Size(24, 12); |
|||
this.label31.TabIndex = 16; |
|||
this.label31.Text = "QTY"; |
|||
//
|
|||
// label30
|
|||
//
|
|||
this.label30.AutoSize = true; |
|||
this.label30.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label30.ForeColor = System.Drawing.Color.Black; |
|||
this.label30.Location = new System.Drawing.Point(4, 147); |
|||
this.label30.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label30.Name = "label30"; |
|||
this.label30.Size = new System.Drawing.Size(32, 12); |
|||
this.label30.TabIndex = 16; |
|||
this.label30.Text = "ITEMS"; |
|||
//
|
|||
// label24
|
|||
//
|
|||
this.label24.AutoSize = true; |
|||
this.label24.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label24.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label24.Location = new System.Drawing.Point(4, 169); |
|||
this.label24.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label24.Name = "label24"; |
|||
this.label24.Size = new System.Drawing.Size(33, 12); |
|||
this.label24.TabIndex = 16; |
|||
this.label24.Text = "Item 1"; |
|||
//
|
|||
// label23
|
|||
//
|
|||
this.label23.AutoSize = true; |
|||
this.label23.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label23.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label23.Location = new System.Drawing.Point(159, 190); |
|||
this.label23.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label23.Name = "label23"; |
|||
this.label23.Size = new System.Drawing.Size(27, 12); |
|||
this.label23.TabIndex = 21; |
|||
this.label23.Text = "00.00"; |
|||
//
|
|||
// label25
|
|||
//
|
|||
this.label25.AutoSize = true; |
|||
this.label25.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label25.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label25.Location = new System.Drawing.Point(194, 190); |
|||
this.label25.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label25.Name = "label25"; |
|||
this.label25.Size = new System.Drawing.Size(27, 12); |
|||
this.label25.TabIndex = 21; |
|||
this.label25.Text = "00.00"; |
|||
//
|
|||
// label26
|
|||
//
|
|||
this.label26.AutoSize = true; |
|||
this.label26.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label26.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label26.Location = new System.Drawing.Point(5, 188); |
|||
this.label26.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label26.Name = "label26"; |
|||
this.label26.Size = new System.Drawing.Size(33, 12); |
|||
this.label26.TabIndex = 17; |
|||
this.label26.Text = "Item 2"; |
|||
//
|
|||
// label28
|
|||
//
|
|||
this.label28.AutoSize = true; |
|||
this.label28.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label28.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label28.Location = new System.Drawing.Point(107, 171); |
|||
this.label28.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label28.Name = "label28"; |
|||
this.label28.Size = new System.Drawing.Size(15, 12); |
|||
this.label28.TabIndex = 18; |
|||
this.label28.Text = "10"; |
|||
//
|
|||
// label27
|
|||
//
|
|||
this.label27.AutoSize = true; |
|||
this.label27.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label27.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label27.Location = new System.Drawing.Point(107, 190); |
|||
this.label27.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label27.Name = "label27"; |
|||
this.label27.Size = new System.Drawing.Size(15, 12); |
|||
this.label27.TabIndex = 18; |
|||
this.label27.Text = "10"; |
|||
//
|
|||
// panel5
|
|||
//
|
|||
this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel5.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel5.Location = new System.Drawing.Point(0, 223); |
|||
this.panel5.Name = "panel5"; |
|||
this.panel5.Size = new System.Drawing.Size(231, 0); |
|||
this.panel5.TabIndex = 15; |
|||
//
|
|||
// label16
|
|||
//
|
|||
this.label16.AutoSize = true; |
|||
this.label16.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label16.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label16.Location = new System.Drawing.Point(195, 226); |
|||
this.label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label16.Name = "label16"; |
|||
this.label16.Size = new System.Drawing.Size(27, 12); |
|||
this.label16.TabIndex = 12; |
|||
this.label16.Text = "00.00"; |
|||
//
|
|||
// label17
|
|||
//
|
|||
this.label17.AutoSize = true; |
|||
this.label17.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label17.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label17.Location = new System.Drawing.Point(195, 236); |
|||
this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label17.Name = "label17"; |
|||
this.label17.Size = new System.Drawing.Size(27, 12); |
|||
this.label17.TabIndex = 13; |
|||
this.label17.Text = "00.00"; |
|||
//
|
|||
// label18
|
|||
//
|
|||
this.label18.AutoSize = true; |
|||
this.label18.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label18.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label18.Location = new System.Drawing.Point(128, 226); |
|||
this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label18.Name = "label18"; |
|||
this.label18.Size = new System.Drawing.Size(45, 12); |
|||
this.label18.TabIndex = 9; |
|||
this.label18.Text = "Sub Total"; |
|||
//
|
|||
// label19
|
|||
//
|
|||
this.label19.AutoSize = true; |
|||
this.label19.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label19.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label19.Location = new System.Drawing.Point(195, 246); |
|||
this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label19.Name = "label19"; |
|||
this.label19.Size = new System.Drawing.Size(27, 12); |
|||
this.label19.TabIndex = 14; |
|||
this.label19.Text = "00.00"; |
|||
//
|
|||
// label20
|
|||
//
|
|||
this.label20.AutoSize = true; |
|||
this.label20.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label20.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label20.Location = new System.Drawing.Point(128, 236); |
|||
this.label20.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label20.Name = "label20"; |
|||
this.label20.Size = new System.Drawing.Size(44, 12); |
|||
this.label20.TabIndex = 10; |
|||
this.label20.Text = "Discount"; |
|||
//
|
|||
// label21
|
|||
//
|
|||
this.label21.AutoSize = true; |
|||
this.label21.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label21.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label21.Location = new System.Drawing.Point(129, 246); |
|||
this.label21.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label21.Name = "label21"; |
|||
this.label21.Size = new System.Drawing.Size(20, 12); |
|||
this.label21.TabIndex = 11; |
|||
this.label21.Text = "VAT"; |
|||
//
|
|||
// panel4
|
|||
//
|
|||
this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel4.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel4.Location = new System.Drawing.Point(-3, 290); |
|||
this.panel4.Name = "panel4"; |
|||
this.panel4.Size = new System.Drawing.Size(231, 0); |
|||
this.panel4.TabIndex = 8; |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel3.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel3.Location = new System.Drawing.Point(0, 258); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(231, 0); |
|||
this.panel3.TabIndex = 7; |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|||
| System.Windows.Forms.AnchorStyles.Left) |
|||
| System.Windows.Forms.AnchorStyles.Right))); |
|||
this.panel2.BackColor = System.Drawing.Color.DimGray; |
|||
this.panel2.Location = new System.Drawing.Point(-4, 294); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(231, 0); |
|||
this.panel2.TabIndex = 6; |
|||
//
|
|||
// label15
|
|||
//
|
|||
this.label15.AutoSize = true; |
|||
this.label15.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label15.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label15.Location = new System.Drawing.Point(196, 257); |
|||
this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label15.Name = "label15"; |
|||
this.label15.Size = new System.Drawing.Size(27, 12); |
|||
this.label15.TabIndex = 4; |
|||
this.label15.Text = "00.00"; |
|||
//
|
|||
// label12
|
|||
//
|
|||
this.label12.AutoSize = true; |
|||
this.label12.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label12.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label12.Location = new System.Drawing.Point(196, 267); |
|||
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label12.Name = "label12"; |
|||
this.label12.Size = new System.Drawing.Size(27, 12); |
|||
this.label12.TabIndex = 4; |
|||
this.label12.Text = "00.00"; |
|||
//
|
|||
// label14
|
|||
//
|
|||
this.label14.AutoSize = true; |
|||
this.label14.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label14.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label14.Location = new System.Drawing.Point(129, 257); |
|||
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label14.Name = "label14"; |
|||
this.label14.Size = new System.Drawing.Size(40, 12); |
|||
this.label14.TabIndex = 2; |
|||
this.label14.Text = "Bill Total"; |
|||
//
|
|||
// label13
|
|||
//
|
|||
this.label13.AutoSize = true; |
|||
this.label13.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label13.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label13.Location = new System.Drawing.Point(196, 277); |
|||
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label13.Name = "label13"; |
|||
this.label13.Size = new System.Drawing.Size(27, 12); |
|||
this.label13.TabIndex = 5; |
|||
this.label13.Text = "00.00"; |
|||
//
|
|||
// label10
|
|||
//
|
|||
this.label10.AutoSize = true; |
|||
this.label10.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label10.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label10.Location = new System.Drawing.Point(129, 267); |
|||
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label10.Name = "label10"; |
|||
this.label10.Size = new System.Drawing.Size(64, 12); |
|||
this.label10.TabIndex = 2; |
|||
this.label10.Text = "Cash Tenderd"; |
|||
//
|
|||
// label11
|
|||
//
|
|||
this.label11.AutoSize = true; |
|||
this.label11.Font = new System.Drawing.Font("Segoe UI", 7F); |
|||
this.label11.ForeColor = System.Drawing.Color.DimGray; |
|||
this.label11.Location = new System.Drawing.Point(129, 277); |
|||
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|||
this.label11.Name = "label11"; |
|||
this.label11.Size = new System.Drawing.Size(39, 12); |
|||
this.label11.TabIndex = 3; |
|||
this.label11.Text = "Balance"; |
|||
//
|
|||
// label9
|
|||
//
|
|||
this.label9.AutoSize = true; |
|||
this.label9.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label9.Location = new System.Drawing.Point(51, 293); |
|||
this.label9.Name = "label9"; |
|||
this.label9.Size = new System.Drawing.Size(121, 19); |
|||
this.label9.TabIndex = 0; |
|||
this.label9.Text = "Receipt message"; |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.Enabled = false; |
|||
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button1.FlatAppearance.BorderSize = 3; |
|||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button1.Location = new System.Drawing.Point(292, 430); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(129, 36); |
|||
this.button1.TabIndex = 3; |
|||
this.button1.Text = "Previous"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 3; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button3.Location = new System.Drawing.Point(591, 430); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(129, 36); |
|||
this.button3.TabIndex = 4; |
|||
this.button3.Text = "Done"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button2.FlatAppearance.BorderSize = 3; |
|||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button2.Location = new System.Drawing.Point(442, 430); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(129, 36); |
|||
this.button2.TabIndex = 5; |
|||
this.button2.Text = "Next"; |
|||
this.button2.UseVisualStyleBackColor = false; |
|||
this.button2.Click += new System.EventHandler(this.Button2_Click); |
|||
//
|
|||
// BranchSetup
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.BackColor = System.Drawing.Color.Gainsboro; |
|||
this.ClientSize = new System.Drawing.Size(732, 478); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.button2); |
|||
this.Controls.Add(this.button1); |
|||
this.Controls.Add(this.panel1); |
|||
this.Controls.Add(this.textBox7); |
|||
this.Controls.Add(this.textBox4); |
|||
this.Controls.Add(this.textBox3); |
|||
this.Controls.Add(this.textBox2); |
|||
this.Controls.Add(this.textBox1); |
|||
this.Controls.Add(this.label5); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label8); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "BranchSetup"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.Load += new System.EventHandler(this.BranchSetup_Load); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label label5; |
|||
private System.Windows.Forms.Label label8; |
|||
private System.Windows.Forms.TextBox textBox1; |
|||
private System.Windows.Forms.TextBox textBox2; |
|||
private System.Windows.Forms.TextBox textBox3; |
|||
private System.Windows.Forms.TextBox textBox4; |
|||
private System.Windows.Forms.TextBox textBox7; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.Label label9; |
|||
private System.Windows.Forms.Label label12; |
|||
private System.Windows.Forms.Label label13; |
|||
private System.Windows.Forms.Label label10; |
|||
private System.Windows.Forms.Label label11; |
|||
private System.Windows.Forms.Label label15; |
|||
private System.Windows.Forms.Label label14; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private System.Windows.Forms.Panel panel4; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private System.Windows.Forms.Label label16; |
|||
private System.Windows.Forms.Label label17; |
|||
private System.Windows.Forms.Label label18; |
|||
private System.Windows.Forms.Label label19; |
|||
private System.Windows.Forms.Label label20; |
|||
private System.Windows.Forms.Label label21; |
|||
private System.Windows.Forms.Panel panel5; |
|||
private System.Windows.Forms.Label label22; |
|||
private System.Windows.Forms.Label label24; |
|||
private System.Windows.Forms.Label label25; |
|||
private System.Windows.Forms.Label label26; |
|||
private System.Windows.Forms.Label label27; |
|||
private System.Windows.Forms.Label label28; |
|||
private System.Windows.Forms.Panel panel7; |
|||
private System.Windows.Forms.Panel panel6; |
|||
private System.Windows.Forms.Label label29; |
|||
private System.Windows.Forms.Label label33; |
|||
private System.Windows.Forms.Label label32; |
|||
private System.Windows.Forms.Label label31; |
|||
private System.Windows.Forms.Label label30; |
|||
private System.Windows.Forms.Label label23; |
|||
private System.Windows.Forms.Label label34; |
|||
private System.Windows.Forms.Label label35; |
|||
private System.Windows.Forms.Label label36; |
|||
private System.Windows.Forms.Label label37; |
|||
private System.Windows.Forms.Label label42; |
|||
private System.Windows.Forms.Label label43; |
|||
private System.Windows.Forms.Label label38; |
|||
private System.Windows.Forms.Label label39; |
|||
private System.Windows.Forms.Panel panel8; |
|||
private System.Windows.Forms.Label label44; |
|||
private System.Windows.Forms.Label label45; |
|||
private System.Windows.Forms.Label label40; |
|||
private System.Windows.Forms.Label label41; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Button button2; |
|||
} |
|||
} |
@ -0,0 +1,43 @@ |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class BranchSetup : Form |
|||
{ |
|||
SystemSettings system; |
|||
public BranchSetup(SystemSettings settings) |
|||
{ |
|||
InitializeComponent(); |
|||
this.Left = (ClientSize.Width - this.Width) / 2; |
|||
system = settings; |
|||
} |
|||
|
|||
private void Button2_Click(object sender, EventArgs e) |
|||
{ |
|||
Settings.Default.ReceiptBottomText = textBox7.Text.ToUpper(); |
|||
system.MoveToTaxes(); |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
system.Close(); |
|||
} |
|||
|
|||
private void BranchSetup_Load(object sender, EventArgs e) |
|||
{ |
|||
textBox1.Text = Settings.Default.CompanyName.ToUpper(); |
|||
textBox2.Text = Settings.Default.BranchName.ToUpper(); |
|||
textBox3.Text = Settings.Default.BranchCity.ToUpper(); |
|||
textBox4.Text = Settings.Default.BranchTelephone; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,318 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Emailer |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.password = new System.Windows.Forms.TextBox(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.email = new System.Windows.Forms.TextBox(); |
|||
this.label8 = new System.Windows.Forms.Label(); |
|||
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|||
this.server = new System.Windows.Forms.ComboBox(); |
|||
this.label7 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.serverPort = new System.Windows.Forms.TextBox(); |
|||
this.serverClient = new System.Windows.Forms.TextBox(); |
|||
this.groupBox1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 3; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button3.Location = new System.Drawing.Point(591, 430); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(129, 36); |
|||
this.button3.TabIndex = 9; |
|||
this.button3.Text = "Done"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button2.FlatAppearance.BorderSize = 3; |
|||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button2.Location = new System.Drawing.Point(447, 430); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(129, 36); |
|||
this.button2.TabIndex = 8; |
|||
this.button2.Text = "Next"; |
|||
this.button2.UseVisualStyleBackColor = false; |
|||
this.button2.Click += new System.EventHandler(this.Button2_Click); |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button1.FlatAppearance.BorderSize = 3; |
|||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button1.Location = new System.Drawing.Point(304, 430); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(129, 36); |
|||
this.button1.TabIndex = 7; |
|||
this.button1.Text = "Previous"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(9, 29); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(191, 21); |
|||
this.label1.TabIndex = 9; |
|||
this.label1.Text = "Set up your email client"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 13F); |
|||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label3.Location = new System.Drawing.Point(39, 230); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(87, 25); |
|||
this.label3.TabIndex = 9; |
|||
this.label3.Text = "Password"; |
|||
//
|
|||
// password
|
|||
//
|
|||
this.password.Enabled = false; |
|||
this.password.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.password.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.password.Location = new System.Drawing.Point(193, 230); |
|||
this.password.Name = "password"; |
|||
this.password.Size = new System.Drawing.Size(313, 29); |
|||
this.password.TabIndex = 5; |
|||
this.password.UseSystemPasswordChar = true; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label6.Location = new System.Drawing.Point(138, 60); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(509, 42); |
|||
this.label6.TabIndex = 9; |
|||
this.label6.Text = "Note: The correct configuration of the email client would\r\nallow BISKILOG POS to " + |
|||
"send delivery notification to customers via email."; |
|||
//
|
|||
// email
|
|||
//
|
|||
this.email.Enabled = false; |
|||
this.email.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.email.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.email.Location = new System.Drawing.Point(193, 191); |
|||
this.email.Name = "email"; |
|||
this.email.Size = new System.Drawing.Size(313, 29); |
|||
this.email.TabIndex = 4; |
|||
//
|
|||
// label8
|
|||
//
|
|||
this.label8.AutoSize = true; |
|||
this.label8.Font = new System.Drawing.Font("Segoe UI", 13F); |
|||
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label8.Location = new System.Drawing.Point(36, 195); |
|||
this.label8.Name = "label8"; |
|||
this.label8.Size = new System.Drawing.Size(112, 25); |
|||
this.label8.TabIndex = 15; |
|||
this.label8.Text = "Branch email"; |
|||
//
|
|||
// groupBox1
|
|||
//
|
|||
this.groupBox1.BackColor = System.Drawing.SystemColors.Control; |
|||
this.groupBox1.Controls.Add(this.server); |
|||
this.groupBox1.Controls.Add(this.label7); |
|||
this.groupBox1.Controls.Add(this.label4); |
|||
this.groupBox1.Controls.Add(this.label5); |
|||
this.groupBox1.Controls.Add(this.label2); |
|||
this.groupBox1.Controls.Add(this.label8); |
|||
this.groupBox1.Controls.Add(this.serverPort); |
|||
this.groupBox1.Controls.Add(this.serverClient); |
|||
this.groupBox1.Controls.Add(this.email); |
|||
this.groupBox1.Controls.Add(this.password); |
|||
this.groupBox1.Controls.Add(this.label3); |
|||
this.groupBox1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.groupBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.groupBox1.Location = new System.Drawing.Point(117, 109); |
|||
this.groupBox1.Name = "groupBox1"; |
|||
this.groupBox1.Size = new System.Drawing.Size(557, 291); |
|||
this.groupBox1.TabIndex = 16; |
|||
this.groupBox1.TabStop = false; |
|||
this.groupBox1.Text = "Email Details"; |
|||
//
|
|||
// server
|
|||
//
|
|||
this.server.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|||
this.server.Enabled = false; |
|||
this.server.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.server.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.server.FormattingEnabled = true; |
|||
this.server.Items.AddRange(new object[] { |
|||
"Gmail", |
|||
"Outlook", |
|||
"Yahoomail", |
|||
"Other"}); |
|||
this.server.Location = new System.Drawing.Point(193, 36); |
|||
this.server.Name = "server"; |
|||
this.server.Size = new System.Drawing.Size(311, 29); |
|||
this.server.TabIndex = 1; |
|||
this.server.TextChanged += new System.EventHandler(this.Server_TextChanged); |
|||
//
|
|||
// label7
|
|||
//
|
|||
this.label7.AutoSize = true; |
|||
this.label7.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label7.Location = new System.Drawing.Point(56, 68); |
|||
this.label7.Name = "label7"; |
|||
this.label7.Size = new System.Drawing.Size(357, 38); |
|||
this.label7.TabIndex = 9; |
|||
this.label7.Text = "Note: Some smtp server block third party from signing in\r\nwith gmail you can allo" + |
|||
"w them in account settings\r\n"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.label4.Location = new System.Drawing.Point(40, 155); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(131, 21); |
|||
this.label4.TabIndex = 16; |
|||
this.label4.Text = "SMTP Server Port"; |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.label5.Location = new System.Drawing.Point(39, 39); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(99, 21); |
|||
this.label5.TabIndex = 16; |
|||
this.label5.Text = "SMTP Server"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.label2.Location = new System.Drawing.Point(40, 118); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(94, 21); |
|||
this.label2.TabIndex = 16; |
|||
this.label2.Text = "SMTP Client"; |
|||
//
|
|||
// serverPort
|
|||
//
|
|||
this.serverPort.Enabled = false; |
|||
this.serverPort.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.serverPort.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.serverPort.Location = new System.Drawing.Point(193, 152); |
|||
this.serverPort.Name = "serverPort"; |
|||
this.serverPort.Size = new System.Drawing.Size(313, 29); |
|||
this.serverPort.TabIndex = 3; |
|||
//
|
|||
// serverClient
|
|||
//
|
|||
this.serverClient.Enabled = false; |
|||
this.serverClient.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|||
this.serverClient.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.serverClient.Location = new System.Drawing.Point(193, 115); |
|||
this.serverClient.Name = "serverClient"; |
|||
this.serverClient.Size = new System.Drawing.Size(313, 29); |
|||
this.serverClient.TabIndex = 2; |
|||
//
|
|||
// Emailer
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.BackColor = System.Drawing.Color.Gainsboro; |
|||
this.ClientSize = new System.Drawing.Size(732, 478); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.groupBox1); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.button2); |
|||
this.Controls.Add(this.button1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "Emailer"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "SalesTax"; |
|||
this.Load += new System.EventHandler(this.SalesTax_Load); |
|||
this.groupBox1.ResumeLayout(false); |
|||
this.groupBox1.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Button button2; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.TextBox password; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.TextBox email; |
|||
private System.Windows.Forms.Label label8; |
|||
private System.Windows.Forms.GroupBox groupBox1; |
|||
private System.Windows.Forms.ComboBox server; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label label5; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.TextBox serverPort; |
|||
private System.Windows.Forms.TextBox serverClient; |
|||
private System.Windows.Forms.Label label7; |
|||
} |
|||
} |
@ -0,0 +1,119 @@ |
|||
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; |
|||
using BiskLog_Point_Of_Sale; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Emailer : Form |
|||
{ |
|||
SystemSettings systemSettings; |
|||
public Emailer(SystemSettings settings) |
|||
{ |
|||
InitializeComponent(); |
|||
systemSettings = settings; |
|||
} |
|||
|
|||
private void Button1_Click(object sender, EventArgs e) |
|||
{ |
|||
saveSMTP(); |
|||
systemSettings.MoveToGeneral(); |
|||
} |
|||
|
|||
private void Button2_Click(object sender, EventArgs e) |
|||
{ |
|||
saveSMTP(); |
|||
systemSettings.MoveToHard(); |
|||
} |
|||
public void saveSMTP() |
|||
{ |
|||
if (!String.IsNullOrEmpty(serverClient.Text) && !String.IsNullOrEmpty(serverPort.Text) && !String.IsNullOrEmpty(email.Text) && !String.IsNullOrEmpty(password.Text)) |
|||
{ |
|||
Settings.Default.smtpServer = serverClient.Text; |
|||
Settings.Default.smtpPort = serverPort.Text; |
|||
Settings.Default.emailAddress = email.Text; |
|||
Settings.Default.password = passwordEncryption.Encrypt(password.Text); |
|||
Settings.Default.smtpReady = true; |
|||
Settings.Default.Save(); |
|||
} |
|||
} |
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
saveSMTP(); |
|||
systemSettings.Close(); |
|||
} |
|||
|
|||
private void SalesTax_Load(object sender, EventArgs e) |
|||
{ |
|||
if (!String.IsNullOrEmpty(Settings.Default.smtpServer)) |
|||
{ |
|||
serverClient.Text = Settings.Default.smtpServer; |
|||
switch (Settings.Default.smtpServer) |
|||
{ |
|||
case "smtp.gmail.com": |
|||
server.Text = "Gmail"; |
|||
break; |
|||
case "smtp-mail.outlook.com": |
|||
server.Text = "Outlook"; |
|||
break; |
|||
case "smtp.mail.yahoo.com": |
|||
server.Text = "Yahoomail"; |
|||
break; |
|||
default: |
|||
server.Text = "Other"; |
|||
break; |
|||
} |
|||
} |
|||
if (!String.IsNullOrEmpty(Settings.Default.smtpPort)) |
|||
{ |
|||
serverPort.Text = Settings.Default.smtpPort; |
|||
} |
|||
if (!String.IsNullOrEmpty(Settings.Default.emailAddress)) |
|||
{ |
|||
email.Text = Settings.Default.emailAddress; |
|||
} |
|||
if (!String.IsNullOrEmpty(Settings.Default.password)) |
|||
{ |
|||
password.Text = Settings.Default.password; |
|||
} |
|||
} |
|||
private void Server_TextChanged(object sender, EventArgs e) |
|||
{ |
|||
switch (server.Text) |
|||
{ |
|||
case "Gmail": |
|||
serverClient.Text = "smtp.gmail.com"; |
|||
serverPort.Text = "587"; |
|||
serverClient.Enabled = false; |
|||
serverPort.Enabled = false; |
|||
break; |
|||
case "Outlook": |
|||
serverClient.Text = "smtp-mail.outlook.com"; |
|||
serverPort.Text = "587"; |
|||
serverClient.Enabled = false; |
|||
serverPort.Enabled = false; |
|||
break; |
|||
case "Yahoomail": |
|||
serverClient.Text = "smtp.mail.yahoo.com"; |
|||
serverPort.Text = "587"; |
|||
serverClient.Enabled = false; |
|||
serverPort.Enabled = false; |
|||
break; |
|||
case "Other": |
|||
serverClient.Text = ""; |
|||
serverPort.Text = ""; |
|||
serverClient.Enabled = true; |
|||
serverPort.Enabled = true; |
|||
break; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,186 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Finished |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label8 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 3; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button3.Location = new System.Drawing.Point(591, 430); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(129, 36); |
|||
this.button3.TabIndex = 7; |
|||
this.button3.Text = "Done"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button2.Enabled = false; |
|||
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button2.FlatAppearance.BorderSize = 3; |
|||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button2.Location = new System.Drawing.Point(447, 430); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(129, 36); |
|||
this.button2.TabIndex = 8; |
|||
this.button2.Text = "Next"; |
|||
this.button2.UseVisualStyleBackColor = false; |
|||
this.button2.Click += new System.EventHandler(this.Button2_Click); |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button1.FlatAppearance.BorderSize = 3; |
|||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button1.Location = new System.Drawing.Point(304, 430); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(129, 36); |
|||
this.button1.TabIndex = 6; |
|||
this.button1.Text = "Previous"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(36, 59); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(401, 28); |
|||
this.label1.TabIndex = 9; |
|||
this.label1.Text = "That\'s it, you are ready for your first sale"; |
|||
//
|
|||
// label8
|
|||
//
|
|||
this.label8.AutoSize = true; |
|||
this.label8.Font = new System.Drawing.Font("Segoe UI", 13F); |
|||
this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label8.Location = new System.Drawing.Point(55, 139); |
|||
this.label8.Name = "label8"; |
|||
this.label8.Size = new System.Drawing.Size(306, 25); |
|||
this.label8.TabIndex = 15; |
|||
this.label8.Text = "Need to change something later on ?"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label2.Location = new System.Drawing.Point(55, 181); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(242, 19); |
|||
this.label2.TabIndex = 15; |
|||
this.label2.Text = "Click on Settings to return at any time\r\n"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 13F); |
|||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label3.Location = new System.Drawing.Point(55, 249); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(212, 25); |
|||
this.label3.TabIndex = 15; |
|||
this.label3.Text = "Need help or assistance ?"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label4.Location = new System.Drawing.Point(54, 283); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(316, 19); |
|||
this.label4.TabIndex = 15; |
|||
this.label4.Text = "Contact developer at biskilogpos@barhendev.com"; |
|||
//
|
|||
// Finished
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.BackColor = System.Drawing.Color.Gainsboro; |
|||
this.ClientSize = new System.Drawing.Size(732, 478); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.label8); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.button2); |
|||
this.Controls.Add(this.button1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "Finished"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "SalesTax"; |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Button button2; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label8; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label4; |
|||
} |
|||
} |
@ -0,0 +1,38 @@ |
|||
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; |
|||
using Point_Of_Sale_Managment; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Finished : Form |
|||
{ |
|||
SystemSettings systemSettings; |
|||
public Finished(SystemSettings settings) |
|||
{ |
|||
InitializeComponent(); |
|||
systemSettings = settings; |
|||
} |
|||
|
|||
private void Button1_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.MoveToHard(); |
|||
} |
|||
|
|||
private void Button2_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.MoveToHard(); |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.Close(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,378 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Hardware |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.defaultReport = new System.Windows.Forms.Label(); |
|||
this.button4 = new System.Windows.Forms.Button(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.defaultReceipt = new System.Windows.Forms.Label(); |
|||
this.label9 = new System.Windows.Forms.Label(); |
|||
this.label10 = new System.Windows.Forms.Label(); |
|||
this.button5 = new System.Windows.Forms.Button(); |
|||
this.label11 = new System.Windows.Forms.Label(); |
|||
this.label12 = new System.Windows.Forms.Label(); |
|||
this.button6 = new System.Windows.Forms.Button(); |
|||
this.label13 = new System.Windows.Forms.Label(); |
|||
this.label14 = new System.Windows.Forms.Label(); |
|||
this.button7 = new System.Windows.Forms.Button(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.defaultBarcode = new System.Windows.Forms.Label(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 3; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button3.Location = new System.Drawing.Point(591, 430); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(129, 36); |
|||
this.button3.TabIndex = 10; |
|||
this.button3.Text = "Done"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button2.FlatAppearance.BorderSize = 3; |
|||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button2.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button2.Location = new System.Drawing.Point(447, 430); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(129, 36); |
|||
this.button2.TabIndex = 11; |
|||
this.button2.Text = "Next"; |
|||
this.button2.UseVisualStyleBackColor = false; |
|||
this.button2.Click += new System.EventHandler(this.Button2_Click); |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button1.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button1.FlatAppearance.BorderSize = 3; |
|||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button1.ForeColor = System.Drawing.SystemColors.Control; |
|||
this.button1.Location = new System.Drawing.Point(304, 430); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(129, 36); |
|||
this.button1.TabIndex = 9; |
|||
this.button1.Text = "Previous"; |
|||
this.button1.UseVisualStyleBackColor = false; |
|||
this.button1.Click += new System.EventHandler(this.Button1_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label1.Location = new System.Drawing.Point(12, 9); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(234, 21); |
|||
this.label1.TabIndex = 12; |
|||
this.label1.Text = "Set up your hardware devices"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label2.Location = new System.Drawing.Point(28, 59); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(64, 21); |
|||
this.label2.TabIndex = 13; |
|||
this.label2.Text = "Printers"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label3.Location = new System.Drawing.Point(141, 59); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(68, 21); |
|||
this.label3.TabIndex = 13; |
|||
this.label3.Text = "Reports "; |
|||
//
|
|||
// defaultReport
|
|||
//
|
|||
this.defaultReport.AutoSize = true; |
|||
this.defaultReport.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.defaultReport.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.defaultReport.Location = new System.Drawing.Point(262, 59); |
|||
this.defaultReport.Name = "defaultReport"; |
|||
this.defaultReport.Size = new System.Drawing.Size(202, 21); |
|||
this.defaultReport.TabIndex = 13; |
|||
this.defaultReport.Text = "Set Default report printer"; |
|||
//
|
|||
// button4
|
|||
//
|
|||
this.button4.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button4.Location = new System.Drawing.Point(513, 54); |
|||
this.button4.Name = "button4"; |
|||
this.button4.Size = new System.Drawing.Size(190, 33); |
|||
this.button4.TabIndex = 14; |
|||
this.button4.Text = "Configure / Test"; |
|||
this.button4.UseVisualStyleBackColor = true; |
|||
this.button4.Click += new System.EventHandler(this.Button4_Click); |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label5.Location = new System.Drawing.Point(141, 86); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(61, 21); |
|||
this.label5.TabIndex = 13; |
|||
this.label5.Text = "Receipt"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 11F); |
|||
this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label6.Location = new System.Drawing.Point(45, 146); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(638, 40); |
|||
this.label6.TabIndex = 13; |
|||
this.label6.Text = "Note : In the hardware setup wizard select the device and click save to set as th" + |
|||
"e default device.\r\nAlso the default report printer would be set as the default p" + |
|||
"rinter for printing order invoices.\r\n"; |
|||
//
|
|||
// defaultReceipt
|
|||
//
|
|||
this.defaultReceipt.AutoSize = true; |
|||
this.defaultReceipt.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.defaultReceipt.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.defaultReceipt.Location = new System.Drawing.Point(262, 86); |
|||
this.defaultReceipt.Name = "defaultReceipt"; |
|||
this.defaultReceipt.Size = new System.Drawing.Size(208, 21); |
|||
this.defaultReceipt.TabIndex = 13; |
|||
this.defaultReceipt.Text = "Set Default receipt printer"; |
|||
//
|
|||
// label9
|
|||
//
|
|||
this.label9.AutoSize = true; |
|||
this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label9.Location = new System.Drawing.Point(28, 206); |
|||
this.label9.Name = "label9"; |
|||
this.label9.Size = new System.Drawing.Size(96, 21); |
|||
this.label9.TabIndex = 13; |
|||
this.label9.Text = "RFID Reader"; |
|||
//
|
|||
// label10
|
|||
//
|
|||
this.label10.AutoSize = true; |
|||
this.label10.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label10.Location = new System.Drawing.Point(231, 206); |
|||
this.label10.Name = "label10"; |
|||
this.label10.Size = new System.Drawing.Size(231, 21); |
|||
this.label10.TabIndex = 13; |
|||
this.label10.Text = "Click Setup to use this device"; |
|||
//
|
|||
// button5
|
|||
//
|
|||
this.button5.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button5.Location = new System.Drawing.Point(540, 200); |
|||
this.button5.Name = "button5"; |
|||
this.button5.Size = new System.Drawing.Size(145, 33); |
|||
this.button5.TabIndex = 14; |
|||
this.button5.Text = "Setup"; |
|||
this.button5.UseVisualStyleBackColor = true; |
|||
this.button5.Click += new System.EventHandler(this.Button5_Click); |
|||
//
|
|||
// label11
|
|||
//
|
|||
this.label11.AutoSize = true; |
|||
this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label11.Location = new System.Drawing.Point(28, 261); |
|||
this.label11.Name = "label11"; |
|||
this.label11.Size = new System.Drawing.Size(94, 21); |
|||
this.label11.TabIndex = 13; |
|||
this.label11.Text = "Pole Display"; |
|||
//
|
|||
// label12
|
|||
//
|
|||
this.label12.AutoSize = true; |
|||
this.label12.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label12.Location = new System.Drawing.Point(231, 261); |
|||
this.label12.Name = "label12"; |
|||
this.label12.Size = new System.Drawing.Size(231, 21); |
|||
this.label12.TabIndex = 13; |
|||
this.label12.Text = "Click Setup to use this device"; |
|||
//
|
|||
// button6
|
|||
//
|
|||
this.button6.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button6.Enabled = false; |
|||
this.button6.Location = new System.Drawing.Point(540, 255); |
|||
this.button6.Name = "button6"; |
|||
this.button6.Size = new System.Drawing.Size(145, 33); |
|||
this.button6.TabIndex = 14; |
|||
this.button6.Text = "Setup"; |
|||
this.button6.UseVisualStyleBackColor = true; |
|||
//
|
|||
// label13
|
|||
//
|
|||
this.label13.AutoSize = true; |
|||
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label13.Location = new System.Drawing.Point(28, 315); |
|||
this.label13.Name = "label13"; |
|||
this.label13.Size = new System.Drawing.Size(64, 21); |
|||
this.label13.TabIndex = 13; |
|||
this.label13.Text = "PIN Pad"; |
|||
//
|
|||
// label14
|
|||
//
|
|||
this.label14.AutoSize = true; |
|||
this.label14.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label14.Location = new System.Drawing.Point(231, 315); |
|||
this.label14.Name = "label14"; |
|||
this.label14.Size = new System.Drawing.Size(231, 21); |
|||
this.label14.TabIndex = 13; |
|||
this.label14.Text = "Click Setup to use this device"; |
|||
//
|
|||
// button7
|
|||
//
|
|||
this.button7.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button7.Enabled = false; |
|||
this.button7.Location = new System.Drawing.Point(540, 309); |
|||
this.button7.Name = "button7"; |
|||
this.button7.Size = new System.Drawing.Size(145, 33); |
|||
this.button7.TabIndex = 14; |
|||
this.button7.Text = "Setup"; |
|||
this.button7.UseVisualStyleBackColor = true; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.label4.Location = new System.Drawing.Point(141, 112); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(112, 21); |
|||
this.label4.TabIndex = 13; |
|||
this.label4.Text = "Barcode or Tag"; |
|||
//
|
|||
// defaultBarcode
|
|||
//
|
|||
this.defaultBarcode.AutoSize = true; |
|||
this.defaultBarcode.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.defaultBarcode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.defaultBarcode.Location = new System.Drawing.Point(262, 112); |
|||
this.defaultBarcode.Name = "defaultBarcode"; |
|||
this.defaultBarcode.Size = new System.Drawing.Size(208, 21); |
|||
this.defaultBarcode.TabIndex = 13; |
|||
this.defaultBarcode.Text = "Set Default receipt printer"; |
|||
//
|
|||
// Hardware
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.BackColor = System.Drawing.Color.Gainsboro; |
|||
this.ClientSize = new System.Drawing.Size(732, 478); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.button7); |
|||
this.Controls.Add(this.button6); |
|||
this.Controls.Add(this.button5); |
|||
this.Controls.Add(this.button4); |
|||
this.Controls.Add(this.label14); |
|||
this.Controls.Add(this.label12); |
|||
this.Controls.Add(this.defaultBarcode); |
|||
this.Controls.Add(this.defaultReceipt); |
|||
this.Controls.Add(this.label10); |
|||
this.Controls.Add(this.defaultReport); |
|||
this.Controls.Add(this.label13); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label11); |
|||
this.Controls.Add(this.label5); |
|||
this.Controls.Add(this.label9); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.button2); |
|||
this.Controls.Add(this.button1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "Hardware"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.Load += new System.EventHandler(this.Hardware_Load); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Button button2; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label defaultReport; |
|||
private System.Windows.Forms.Button button4; |
|||
private System.Windows.Forms.Label label5; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.Label defaultReceipt; |
|||
private System.Windows.Forms.Label label9; |
|||
private System.Windows.Forms.Label label10; |
|||
private System.Windows.Forms.Button button5; |
|||
private System.Windows.Forms.Label label11; |
|||
private System.Windows.Forms.Label label12; |
|||
private System.Windows.Forms.Button button6; |
|||
private System.Windows.Forms.Label label13; |
|||
private System.Windows.Forms.Label label14; |
|||
private System.Windows.Forms.Button button7; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label defaultBarcode; |
|||
} |
|||
} |
@ -0,0 +1,74 @@ |
|||
using BiskLog_Point_Of_Sale; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using Point_Of_Sale_Managment; |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Hardware : Form |
|||
{ |
|||
SystemSettings systemSettings; |
|||
public Hardware(SystemSettings settings) |
|||
{ |
|||
InitializeComponent(); |
|||
systemSettings = settings; |
|||
} |
|||
|
|||
private void Button1_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.moveToMailer(); |
|||
} |
|||
|
|||
private void Button2_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.Done(); |
|||
} |
|||
|
|||
private void Button4_Click(object sender, EventArgs e) |
|||
{ |
|||
HardwareSetupWizard hardwareSetup = new HardwareSetupWizard(this); |
|||
hardwareSetup.BringToFront(); |
|||
hardwareSetup.ShowDialog(); |
|||
} |
|||
|
|||
private void Button5_Click(object sender, EventArgs e) |
|||
{ |
|||
HardwareSetupWizard hardwareSetup = new HardwareSetupWizard(this); |
|||
hardwareSetup.BringToFront(); |
|||
hardwareSetup.ShowDialog(); |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
systemSettings.Close(); |
|||
} |
|||
|
|||
private void Hardware_Load(object sender, EventArgs e) |
|||
{ |
|||
DefaultsPrinter(); |
|||
} |
|||
public void DefaultsPrinter() |
|||
{ |
|||
if (!String.IsNullOrEmpty(Settings.Default.ReportPrinter)) |
|||
{ |
|||
defaultReport.Text = Settings.Default.ReportPrinter; |
|||
} |
|||
if (!String.IsNullOrEmpty(Settings.Default.ReceiptPrinter)) |
|||
{ |
|||
defaultReceipt.Text = Settings.Default.ReceiptPrinter; |
|||
} |
|||
if (!String.IsNullOrEmpty(Settings.Default.Tag_BarcodePrinter)) |
|||
{ |
|||
defaultBarcode.Text = Settings.Default.Tag_BarcodePrinter; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,198 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class BarcodeScannerSetup |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BarcodeScannerSetup)); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.bcodescanner_attached = new System.Windows.Forms.CheckBox(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox(); |
|||
this.panel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.Location = new System.Drawing.Point(22, 35); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(200, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "Set up a barcode scanner"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label2.Location = new System.Drawing.Point(16, 70); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(428, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "1. Select the checkbox below if you have a barcode scanner to set up"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label4.Location = new System.Drawing.Point(22, 201); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(175, 19); |
|||
this.label4.TabIndex = 1; |
|||
this.label4.Text = "Test the barcode scanner"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(121, 389); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(286, 19); |
|||
this.label6.TabIndex = 1; |
|||
this.label6.Text = "Select \"Next\" below to save and continue"; |
|||
//
|
|||
// bcodescanner_attached
|
|||
//
|
|||
this.bcodescanner_attached.AutoSize = true; |
|||
this.bcodescanner_attached.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.bcodescanner_attached.Location = new System.Drawing.Point(36, 94); |
|||
this.bcodescanner_attached.Name = "bcodescanner_attached"; |
|||
this.bcodescanner_attached.Size = new System.Drawing.Size(185, 23); |
|||
this.bcodescanner_attached.TabIndex = 2; |
|||
this.bcodescanner_attached.Text = "Barcode scanner attached"; |
|||
this.bcodescanner_attached.UseVisualStyleBackColor = true; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label3.Location = new System.Drawing.Point(16, 120); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(551, 57); |
|||
this.label3.TabIndex = 3; |
|||
this.label3.Text = resources.GetString("label3.Text"); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.metroTextBox1); |
|||
this.panel1.Controls.Add(this.label5); |
|||
this.panel1.Location = new System.Drawing.Point(29, 228); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(510, 78); |
|||
this.panel1.TabIndex = 4; |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label5.Location = new System.Drawing.Point(16, 22); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(72, 19); |
|||
this.label5.TabIndex = 1; |
|||
this.label5.Text = "Scan UPC"; |
|||
//
|
|||
// metroTextBox1
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.metroTextBox1.CustomButton.Image = null; |
|||
this.metroTextBox1.CustomButton.Location = new System.Drawing.Point(291, 2); |
|||
this.metroTextBox1.CustomButton.Name = ""; |
|||
this.metroTextBox1.CustomButton.Size = new System.Drawing.Size(27, 27); |
|||
this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.metroTextBox1.CustomButton.TabIndex = 1; |
|||
this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.metroTextBox1.CustomButton.UseSelectable = true; |
|||
this.metroTextBox1.CustomButton.Visible = false; |
|||
this.metroTextBox1.Lines = new string[0]; |
|||
this.metroTextBox1.Location = new System.Drawing.Point(106, 19); |
|||
this.metroTextBox1.MaxLength = 32767; |
|||
this.metroTextBox1.Name = "metroTextBox1"; |
|||
this.metroTextBox1.PasswordChar = '\0'; |
|||
this.metroTextBox1.PromptText = "<Click here and Scan the barcode on a product to test>"; |
|||
this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.metroTextBox1.SelectedText = ""; |
|||
this.metroTextBox1.SelectionLength = 0; |
|||
this.metroTextBox1.SelectionStart = 0; |
|||
this.metroTextBox1.ShortcutsEnabled = true; |
|||
this.metroTextBox1.Size = new System.Drawing.Size(321, 30); |
|||
this.metroTextBox1.TabIndex = 2; |
|||
this.metroTextBox1.UseSelectable = true; |
|||
this.metroTextBox1.WaterMark = "<Click here and Scan the barcode on a product to test>"; |
|||
this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); |
|||
//
|
|||
// BarcodeScannerSetup
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel1); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.bcodescanner_attached); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "BarcodeScannerSetup"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.CheckBox bcodescanner_attached; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private MetroFramework.Controls.MetroTextBox metroTextBox1; |
|||
private System.Windows.Forms.Label label5; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class BarcodeScannerSetup : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public BarcodeScannerSetup(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,125 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<data name="label3.Text" xml:space="preserve"> |
|||
<value>2. Plug the scanner into your computer (if not already attached) and allow Windows |
|||
to install the device (this may take a few minutes). |
|||
3. Test the scanner by clicking the box below and scan a UPC barcode from any product.</value> |
|||
</data> |
|||
</root> |
@ -0,0 +1,127 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Barcode_LabelPrinter |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.printers = new System.Windows.Forms.ListBox(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label2.Location = new System.Drawing.Point(35, 69); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(286, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Set up a barcode or product label printer"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(101, 388); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(287, 19); |
|||
this.label6.TabIndex = 5; |
|||
this.label6.Text = "Select \"Next\" below to set up next device"; |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.LightGray; |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 2; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.button3.Location = new System.Drawing.Point(317, 318); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(173, 39); |
|||
this.button3.TabIndex = 6; |
|||
this.button3.Text = "Set as default"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label1.Location = new System.Drawing.Point(43, 111); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(441, 38); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "This printer would be the default printer used to print product barcode\r\nor produ" + |
|||
"ct price tags .\r\n"; |
|||
//
|
|||
// printers
|
|||
//
|
|||
this.printers.FormattingEnabled = true; |
|||
this.printers.ItemHeight = 21; |
|||
this.printers.Location = new System.Drawing.Point(52, 166); |
|||
this.printers.Name = "printers"; |
|||
this.printers.Size = new System.Drawing.Size(431, 130); |
|||
this.printers.TabIndex = 7; |
|||
//
|
|||
// Barcode_LabelPrinter
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.printers); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.label2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "Barcode_LabelPrinter"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.ListBox printers; |
|||
} |
|||
} |
@ -0,0 +1,53 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Drawing.Printing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Barcode_LabelPrinter : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public Barcode_LabelPrinter(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
PopulateInstalledPrintersCombo(); |
|||
} |
|||
private void PopulateInstalledPrintersCombo() |
|||
{ |
|||
String pkInstalledPrinters; |
|||
for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++) |
|||
{ |
|||
pkInstalledPrinters = PrinterSettings.InstalledPrinters[i]; |
|||
printers.Items.Add(pkInstalledPrinters); |
|||
} |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
string text = printers.GetItemText(printers.SelectedItem); |
|||
string title = "Setting Default printer"; |
|||
string message = "Are you sure you would like to set " + text + " as your " + |
|||
"default product barcodes and product label printer ?"; |
|||
Confirmation confirmation = new Confirmation(title, message); |
|||
confirmation.BringToFront(); |
|||
confirmation.ShowDialog(); |
|||
if (confirmation.DialogResult == DialogResult.Yes) |
|||
{ |
|||
Settings.Default.Tag_BarcodePrinter = text; |
|||
Settings.Default.Save(); |
|||
hardwareSetupWizard.SetThem(); |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,356 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class HardwareSetupWizard |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HardwareSetupWizard)); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.panel2 = new System.Windows.Forms.Panel(); |
|||
this.content = new System.Windows.Forms.Panel(); |
|||
this.menu = new System.Windows.Forms.Panel(); |
|||
this.labelBTN = new System.Windows.Forms.Button(); |
|||
this.reportBTN = new System.Windows.Forms.Button(); |
|||
this.pinnpadBTN = new System.Windows.Forms.Button(); |
|||
this.poleBTN = new System.Windows.Forms.Button(); |
|||
this.receiptBTN = new System.Windows.Forms.Button(); |
|||
this.rfidBTN = new System.Windows.Forms.Button(); |
|||
this.baarcodescannerBTN = new System.Windows.Forms.Button(); |
|||
this.welcomeBTN = new System.Windows.Forms.Button(); |
|||
this.panel3 = new System.Windows.Forms.Panel(); |
|||
this.button4 = new System.Windows.Forms.Button(); |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
this.panel1.SuspendLayout(); |
|||
this.panel2.SuspendLayout(); |
|||
this.menu.SuspendLayout(); |
|||
this.panel3.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.Controls.Add(this.label1); |
|||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.panel1.Location = new System.Drawing.Point(0, 0); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(792, 43); |
|||
this.panel1.TabIndex = 0; |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 15F, System.Drawing.FontStyle.Bold); |
|||
this.label1.Location = new System.Drawing.Point(0, 0); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(792, 43); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = " Hardware Setup Wizard"; |
|||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
//
|
|||
// panel2
|
|||
//
|
|||
this.panel2.Controls.Add(this.content); |
|||
this.panel2.Controls.Add(this.menu); |
|||
this.panel2.Controls.Add(this.panel3); |
|||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.panel2.Location = new System.Drawing.Point(0, 43); |
|||
this.panel2.Name = "panel2"; |
|||
this.panel2.Size = new System.Drawing.Size(792, 490); |
|||
this.panel2.TabIndex = 1; |
|||
//
|
|||
// content
|
|||
//
|
|||
this.content.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|||
this.content.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.content.Location = new System.Drawing.Point(221, 0); |
|||
this.content.Name = "content"; |
|||
this.content.Size = new System.Drawing.Size(571, 428); |
|||
this.content.TabIndex = 4; |
|||
//
|
|||
// menu
|
|||
//
|
|||
this.menu.BackColor = System.Drawing.Color.White; |
|||
this.menu.Controls.Add(this.labelBTN); |
|||
this.menu.Controls.Add(this.reportBTN); |
|||
this.menu.Controls.Add(this.pinnpadBTN); |
|||
this.menu.Controls.Add(this.poleBTN); |
|||
this.menu.Controls.Add(this.receiptBTN); |
|||
this.menu.Controls.Add(this.rfidBTN); |
|||
this.menu.Controls.Add(this.baarcodescannerBTN); |
|||
this.menu.Controls.Add(this.welcomeBTN); |
|||
this.menu.Dock = System.Windows.Forms.DockStyle.Left; |
|||
this.menu.Location = new System.Drawing.Point(0, 0); |
|||
this.menu.Name = "menu"; |
|||
this.menu.Size = new System.Drawing.Size(221, 428); |
|||
this.menu.TabIndex = 3; |
|||
//
|
|||
// labelBTN
|
|||
//
|
|||
this.labelBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.labelBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.labelBTN.FlatAppearance.BorderSize = 0; |
|||
this.labelBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.labelBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.labelBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.labelBTN.Location = new System.Drawing.Point(0, 336); |
|||
this.labelBTN.Name = "labelBTN"; |
|||
this.labelBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.labelBTN.TabIndex = 7; |
|||
this.labelBTN.Text = "Barcode / Label Printer"; |
|||
this.labelBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.labelBTN.UseVisualStyleBackColor = true; |
|||
this.labelBTN.Click += new System.EventHandler(this.LabelBTN_Click); |
|||
//
|
|||
// reportBTN
|
|||
//
|
|||
this.reportBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.reportBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.reportBTN.FlatAppearance.BorderSize = 0; |
|||
this.reportBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.reportBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.reportBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.reportBTN.Location = new System.Drawing.Point(0, 288); |
|||
this.reportBTN.Name = "reportBTN"; |
|||
this.reportBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.reportBTN.TabIndex = 6; |
|||
this.reportBTN.Text = "Report Printer"; |
|||
this.reportBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.reportBTN.UseVisualStyleBackColor = true; |
|||
this.reportBTN.Click += new System.EventHandler(this.ReportBTN_Click); |
|||
//
|
|||
// pinnpadBTN
|
|||
//
|
|||
this.pinnpadBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.pinnpadBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.pinnpadBTN.Enabled = false; |
|||
this.pinnpadBTN.FlatAppearance.BorderSize = 0; |
|||
this.pinnpadBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.pinnpadBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.pinnpadBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.pinnpadBTN.Location = new System.Drawing.Point(0, 240); |
|||
this.pinnpadBTN.Name = "pinnpadBTN"; |
|||
this.pinnpadBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.pinnpadBTN.TabIndex = 5; |
|||
this.pinnpadBTN.Text = "PIN Pad Device"; |
|||
this.pinnpadBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.pinnpadBTN.UseVisualStyleBackColor = true; |
|||
//
|
|||
// poleBTN
|
|||
//
|
|||
this.poleBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.poleBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.poleBTN.Enabled = false; |
|||
this.poleBTN.FlatAppearance.BorderSize = 0; |
|||
this.poleBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.poleBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.poleBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.poleBTN.Location = new System.Drawing.Point(0, 192); |
|||
this.poleBTN.Name = "poleBTN"; |
|||
this.poleBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.poleBTN.TabIndex = 4; |
|||
this.poleBTN.Text = "Customer Pole Display"; |
|||
this.poleBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.poleBTN.UseVisualStyleBackColor = true; |
|||
//
|
|||
// receiptBTN
|
|||
//
|
|||
this.receiptBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.receiptBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.receiptBTN.FlatAppearance.BorderSize = 0; |
|||
this.receiptBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.receiptBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.receiptBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.receiptBTN.Location = new System.Drawing.Point(0, 144); |
|||
this.receiptBTN.Name = "receiptBTN"; |
|||
this.receiptBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.receiptBTN.TabIndex = 3; |
|||
this.receiptBTN.Text = "Receipt Printer"; |
|||
this.receiptBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.receiptBTN.UseVisualStyleBackColor = true; |
|||
this.receiptBTN.Click += new System.EventHandler(this.ReceiptBTN_Click); |
|||
//
|
|||
// rfidBTN
|
|||
//
|
|||
this.rfidBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.rfidBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.rfidBTN.FlatAppearance.BorderSize = 0; |
|||
this.rfidBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.rfidBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.rfidBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.rfidBTN.Location = new System.Drawing.Point(0, 96); |
|||
this.rfidBTN.Name = "rfidBTN"; |
|||
this.rfidBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.rfidBTN.TabIndex = 2; |
|||
this.rfidBTN.Text = "RFID Reader"; |
|||
this.rfidBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.rfidBTN.UseVisualStyleBackColor = true; |
|||
this.rfidBTN.Click += new System.EventHandler(this.RfidBTN_Click); |
|||
//
|
|||
// baarcodescannerBTN
|
|||
//
|
|||
this.baarcodescannerBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.baarcodescannerBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.baarcodescannerBTN.FlatAppearance.BorderSize = 0; |
|||
this.baarcodescannerBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.baarcodescannerBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.baarcodescannerBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.baarcodescannerBTN.Location = new System.Drawing.Point(0, 48); |
|||
this.baarcodescannerBTN.Name = "baarcodescannerBTN"; |
|||
this.baarcodescannerBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.baarcodescannerBTN.TabIndex = 1; |
|||
this.baarcodescannerBTN.Text = "Barcode Scanner"; |
|||
this.baarcodescannerBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.baarcodescannerBTN.UseVisualStyleBackColor = true; |
|||
this.baarcodescannerBTN.Click += new System.EventHandler(this.BaarcodescannerBTN_Click); |
|||
//
|
|||
// welcomeBTN
|
|||
//
|
|||
this.welcomeBTN.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.welcomeBTN.Dock = System.Windows.Forms.DockStyle.Top; |
|||
this.welcomeBTN.FlatAppearance.BorderSize = 0; |
|||
this.welcomeBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.welcomeBTN.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.welcomeBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.welcomeBTN.Location = new System.Drawing.Point(0, 0); |
|||
this.welcomeBTN.Name = "welcomeBTN"; |
|||
this.welcomeBTN.Size = new System.Drawing.Size(221, 48); |
|||
this.welcomeBTN.TabIndex = 0; |
|||
this.welcomeBTN.Text = "Welcome"; |
|||
this.welcomeBTN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|||
this.welcomeBTN.UseVisualStyleBackColor = true; |
|||
this.welcomeBTN.Click += new System.EventHandler(this.WelcomeBTN_Click); |
|||
//
|
|||
// panel3
|
|||
//
|
|||
this.panel3.Controls.Add(this.button4); |
|||
this.panel3.Controls.Add(this.button3); |
|||
this.panel3.Controls.Add(this.button2); |
|||
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; |
|||
this.panel3.Location = new System.Drawing.Point(0, 428); |
|||
this.panel3.Name = "panel3"; |
|||
this.panel3.Size = new System.Drawing.Size(792, 62); |
|||
this.panel3.TabIndex = 2; |
|||
//
|
|||
// button4
|
|||
//
|
|||
this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button4.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button4.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button4.FlatAppearance.BorderSize = 2; |
|||
this.button4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button4.ForeColor = System.Drawing.Color.White; |
|||
this.button4.Location = new System.Drawing.Point(638, 11); |
|||
this.button4.Name = "button4"; |
|||
this.button4.Size = new System.Drawing.Size(132, 39); |
|||
this.button4.TabIndex = 0; |
|||
this.button4.Text = "Leave"; |
|||
this.button4.UseVisualStyleBackColor = false; |
|||
this.button4.Click += new System.EventHandler(this.Button4_Click); |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 2; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.Color.White; |
|||
this.button3.Location = new System.Drawing.Point(500, 12); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(132, 39); |
|||
this.button3.TabIndex = 0; |
|||
this.button3.Text = "Next"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(158)))), ((int)(((byte)(132))))); |
|||
this.button2.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button2.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button2.FlatAppearance.BorderSize = 2; |
|||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button2.ForeColor = System.Drawing.Color.White; |
|||
this.button2.Location = new System.Drawing.Point(352, 11); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(132, 39); |
|||
this.button2.TabIndex = 0; |
|||
this.button2.Text = "Previous"; |
|||
this.button2.UseVisualStyleBackColor = false; |
|||
this.button2.Click += new System.EventHandler(this.Button2_Click); |
|||
//
|
|||
// HardwareSetupWizard
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(792, 533); |
|||
this.Controls.Add(this.panel2); |
|||
this.Controls.Add(this.panel1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.MaximizeBox = false; |
|||
this.MinimizeBox = false; |
|||
this.Name = "HardwareSetupWizard"; |
|||
this.ShowInTaskbar = false; |
|||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|||
this.Text = "Hardware Setup Wizard"; |
|||
this.Load += new System.EventHandler(this.HardwareSetupWizard_Load); |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel2.ResumeLayout(false); |
|||
this.menu.ResumeLayout(false); |
|||
this.panel3.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Panel panel1; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Panel panel2; |
|||
private System.Windows.Forms.Panel content; |
|||
private System.Windows.Forms.Panel menu; |
|||
private System.Windows.Forms.Panel panel3; |
|||
private System.Windows.Forms.Button button4; |
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Button button2; |
|||
private System.Windows.Forms.Button labelBTN; |
|||
private System.Windows.Forms.Button reportBTN; |
|||
private System.Windows.Forms.Button pinnpadBTN; |
|||
private System.Windows.Forms.Button poleBTN; |
|||
private System.Windows.Forms.Button receiptBTN; |
|||
private System.Windows.Forms.Button rfidBTN; |
|||
private System.Windows.Forms.Button baarcodescannerBTN; |
|||
private System.Windows.Forms.Button welcomeBTN; |
|||
} |
|||
} |
@ -0,0 +1,252 @@ |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class HardwareSetupWizard : Form |
|||
{ |
|||
Form Active; |
|||
int page = 0; |
|||
Hardware hard; |
|||
public HardwareSetupWizard(Hardware hardware) |
|||
{ |
|||
InitializeComponent(); |
|||
hard = hardware; |
|||
} |
|||
public void MoveToWlecome() |
|||
{ |
|||
button2.Enabled = false; |
|||
welcomeBTN.FlatStyle = FlatStyle.System; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.Flat; |
|||
labelBTN.FlatStyle = FlatStyle.Flat; |
|||
rfidBTN.FlatStyle = FlatStyle.Flat; |
|||
receiptBTN.FlatStyle = FlatStyle.Flat; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.Flat; |
|||
Welcome welcome = new Welcome(this); |
|||
welcome.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 1; |
|||
content.Controls.Add(welcome); |
|||
Active = welcome; |
|||
welcome.BringToFront(); |
|||
welcome.Show(); |
|||
} |
|||
public void MoveToScanner() |
|||
{ |
|||
button2.Enabled = true; |
|||
welcomeBTN.FlatStyle = FlatStyle.Flat; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.System; |
|||
labelBTN.FlatStyle = FlatStyle.Flat; |
|||
rfidBTN.FlatStyle = FlatStyle.Flat; |
|||
receiptBTN.FlatStyle = FlatStyle.Flat; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.Flat; |
|||
BarcodeScannerSetup barcodeScannerSetup = new BarcodeScannerSetup(this); |
|||
barcodeScannerSetup.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 2; |
|||
content.Controls.Add(barcodeScannerSetup); |
|||
Active = barcodeScannerSetup; |
|||
barcodeScannerSetup.BringToFront(); |
|||
barcodeScannerSetup.Show(); |
|||
} |
|||
public void MoveToRFID() |
|||
{ |
|||
button2.Enabled = true; |
|||
welcomeBTN.FlatStyle = FlatStyle.Flat; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.Flat; |
|||
labelBTN.FlatStyle = FlatStyle.Flat; |
|||
rfidBTN.FlatStyle = FlatStyle.System; |
|||
receiptBTN.FlatStyle = FlatStyle.Flat; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.Flat; |
|||
RFID rfid = new RFID(this); |
|||
rfid.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 3; |
|||
content.Controls.Add(rfid); |
|||
Active = rfid; |
|||
rfid.BringToFront(); |
|||
rfid.Show(); |
|||
} |
|||
public void MoveToReceipt() |
|||
{ |
|||
button2.Enabled = true; |
|||
welcomeBTN.FlatStyle = FlatStyle.Flat; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.Flat; |
|||
labelBTN.FlatStyle = FlatStyle.Flat; |
|||
rfidBTN.FlatStyle = FlatStyle.Flat; |
|||
receiptBTN.FlatStyle = FlatStyle.System; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.Flat; |
|||
ReceiptPrinter receiptPrinter = new ReceiptPrinter(this); |
|||
receiptPrinter.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 4; |
|||
content.Controls.Add(receiptPrinter); |
|||
Active = receiptPrinter; |
|||
receiptPrinter.BringToFront(); |
|||
receiptPrinter.Show(); |
|||
} |
|||
public void MoveToReport() |
|||
{ |
|||
button2.Enabled = true; |
|||
welcomeBTN.FlatStyle = FlatStyle.Flat; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.Flat; |
|||
labelBTN.FlatStyle = FlatStyle.Flat; |
|||
rfidBTN.FlatStyle = FlatStyle.Flat; |
|||
receiptBTN.FlatStyle = FlatStyle.Flat; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.System; |
|||
ReportPrinter reportPrinter = new ReportPrinter(this); |
|||
reportPrinter.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 5; |
|||
content.Controls.Add(reportPrinter); |
|||
Active = reportPrinter; |
|||
reportPrinter.BringToFront(); |
|||
reportPrinter.Show(); |
|||
} |
|||
public void MoveToTag() |
|||
{ |
|||
button2.Enabled = true; |
|||
welcomeBTN.FlatStyle = FlatStyle.Flat; |
|||
baarcodescannerBTN.FlatStyle = FlatStyle.Flat; |
|||
labelBTN.FlatStyle = FlatStyle.System; |
|||
rfidBTN.FlatStyle = FlatStyle.Flat; |
|||
receiptBTN.FlatStyle = FlatStyle.Flat; |
|||
poleBTN.FlatStyle = FlatStyle.Flat; |
|||
pinnpadBTN.FlatStyle = FlatStyle.Flat; |
|||
reportBTN.FlatStyle = FlatStyle.Flat; |
|||
Barcode_LabelPrinter reportPrinter = new Barcode_LabelPrinter(this); |
|||
reportPrinter.TopLevel = false; |
|||
if (Active != null) |
|||
{ |
|||
content.Controls.Remove(Active); |
|||
} |
|||
page = 6; |
|||
content.Controls.Add(reportPrinter); |
|||
Active = reportPrinter; |
|||
reportPrinter.BringToFront(); |
|||
reportPrinter.Show(); |
|||
} |
|||
|
|||
private void HardwareSetupWizard_Load(object sender, EventArgs e) |
|||
{ |
|||
MoveToWlecome(); |
|||
} |
|||
|
|||
private void WelcomeBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToWlecome(); |
|||
} |
|||
|
|||
private void BaarcodescannerBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToScanner(); |
|||
} |
|||
public void SetThem() |
|||
{ |
|||
hard.DefaultsPrinter(); |
|||
} |
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
switch (page) |
|||
{ |
|||
case 1: |
|||
MoveToScanner(); |
|||
break; |
|||
case 2: |
|||
MoveToRFID(); |
|||
break; |
|||
case 3: |
|||
MoveToReceipt(); |
|||
break; |
|||
case 4: |
|||
MoveToReport(); |
|||
break; |
|||
case 5: |
|||
MoveToTag(); |
|||
break; |
|||
|
|||
} |
|||
} |
|||
|
|||
private void Button2_Click(object sender, EventArgs e) |
|||
{ |
|||
switch (page) |
|||
{ |
|||
case 1: |
|||
break; |
|||
case 2: |
|||
MoveToWlecome(); |
|||
break; |
|||
case 3: |
|||
MoveToScanner(); |
|||
break; |
|||
case 4: |
|||
MoveToRFID(); |
|||
break; |
|||
case 5: |
|||
MoveToReceipt(); |
|||
break; |
|||
case 6: |
|||
MoveToReport(); |
|||
break; |
|||
} |
|||
} |
|||
|
|||
private void RfidBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToRFID(); |
|||
} |
|||
|
|||
private void ReceiptBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToReceipt(); |
|||
} |
|||
|
|||
private void ReportBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToReport(); |
|||
} |
|||
|
|||
private void LabelBTN_Click(object sender, EventArgs e) |
|||
{ |
|||
MoveToTag(); |
|||
} |
|||
|
|||
private void Button4_Click(object sender, EventArgs e) |
|||
{ |
|||
this.Close(); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,198 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class RFID |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RFID)); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.bcodescanner_attached = new System.Windows.Forms.CheckBox(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.panel1 = new System.Windows.Forms.Panel(); |
|||
this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.panel1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.Location = new System.Drawing.Point(22, 35); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(375, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "Set up a Radio-Frequency Identification scanner"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label2.Location = new System.Drawing.Point(16, 70); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(416, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "1. Select the checkbox below if you have an RFID scanner to set up"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label4.Location = new System.Drawing.Point(22, 201); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(149, 19); |
|||
this.label4.TabIndex = 1; |
|||
this.label4.Text = "Test the RFID scanner"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(121, 389); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(286, 19); |
|||
this.label6.TabIndex = 1; |
|||
this.label6.Text = "Select \"Next\" below to save and continue"; |
|||
//
|
|||
// bcodescanner_attached
|
|||
//
|
|||
this.bcodescanner_attached.AutoSize = true; |
|||
this.bcodescanner_attached.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.bcodescanner_attached.Location = new System.Drawing.Point(36, 94); |
|||
this.bcodescanner_attached.Name = "bcodescanner_attached"; |
|||
this.bcodescanner_attached.Size = new System.Drawing.Size(165, 23); |
|||
this.bcodescanner_attached.TabIndex = 2; |
|||
this.bcodescanner_attached.Text = "RFID scanner attached"; |
|||
this.bcodescanner_attached.UseVisualStyleBackColor = true; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label3.Location = new System.Drawing.Point(16, 120); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(527, 76); |
|||
this.label3.TabIndex = 3; |
|||
this.label3.Text = resources.GetString("label3.Text"); |
|||
//
|
|||
// panel1
|
|||
//
|
|||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|||
this.panel1.Controls.Add(this.metroTextBox1); |
|||
this.panel1.Controls.Add(this.label5); |
|||
this.panel1.Location = new System.Drawing.Point(29, 228); |
|||
this.panel1.Name = "panel1"; |
|||
this.panel1.Size = new System.Drawing.Size(510, 78); |
|||
this.panel1.TabIndex = 4; |
|||
//
|
|||
// metroTextBox1
|
|||
//
|
|||
//
|
|||
//
|
|||
//
|
|||
this.metroTextBox1.CustomButton.Image = null; |
|||
this.metroTextBox1.CustomButton.Location = new System.Drawing.Point(293, 2); |
|||
this.metroTextBox1.CustomButton.Name = ""; |
|||
this.metroTextBox1.CustomButton.Size = new System.Drawing.Size(25, 25); |
|||
this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; |
|||
this.metroTextBox1.CustomButton.TabIndex = 1; |
|||
this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; |
|||
this.metroTextBox1.CustomButton.UseSelectable = true; |
|||
this.metroTextBox1.CustomButton.Visible = false; |
|||
this.metroTextBox1.Lines = new string[0]; |
|||
this.metroTextBox1.Location = new System.Drawing.Point(144, 24); |
|||
this.metroTextBox1.MaxLength = 32767; |
|||
this.metroTextBox1.Name = "metroTextBox1"; |
|||
this.metroTextBox1.PasswordChar = '\0'; |
|||
this.metroTextBox1.PromptText = "<Click here and swipe tag or card over the surface to test>"; |
|||
this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None; |
|||
this.metroTextBox1.SelectedText = ""; |
|||
this.metroTextBox1.SelectionLength = 0; |
|||
this.metroTextBox1.SelectionStart = 0; |
|||
this.metroTextBox1.ShortcutsEnabled = true; |
|||
this.metroTextBox1.Size = new System.Drawing.Size(321, 30); |
|||
this.metroTextBox1.TabIndex = 2; |
|||
this.metroTextBox1.UseSelectable = true; |
|||
this.metroTextBox1.WaterMark = "<Click here and swipe tag or card over the surface to test>"; |
|||
this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); |
|||
this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label5.Location = new System.Drawing.Point(2, 30); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(136, 19); |
|||
this.label5.TabIndex = 1; |
|||
this.label5.Text = "Scan RFID tag/card"; |
|||
//
|
|||
// RFID
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.panel1); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.bcodescanner_attached); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "RFID"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.panel1.ResumeLayout(false); |
|||
this.panel1.PerformLayout(); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.CheckBox bcodescanner_attached; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Panel panel1; |
|||
private MetroFramework.Controls.MetroTextBox metroTextBox1; |
|||
private System.Windows.Forms.Label label5; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class RFID : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public RFID(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,126 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<data name="label3.Text" xml:space="preserve"> |
|||
<value>2. Plug the scanner into your computer (if not already attached) and allow Windows |
|||
to install the device (this may take a few minutes). |
|||
3. Test the scanner by clicking the box below and swipe an RFID tag or card over the |
|||
surface of the scanner or reader.</value> |
|||
</data> |
|||
</root> |
@ -0,0 +1,126 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class ReceiptPrinter |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.printers = new System.Windows.Forms.ListBox(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label2.Location = new System.Drawing.Point(22, 49); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(446, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Select the name of receipt printer you would like to set as default"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(101, 388); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(287, 19); |
|||
this.label6.TabIndex = 5; |
|||
this.label6.Text = "Select \"Next\" below to set up next device"; |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.LightGray; |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 2; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.button3.Location = new System.Drawing.Point(319, 316); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(173, 39); |
|||
this.button3.TabIndex = 6; |
|||
this.button3.Text = "Set as default"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label1.Location = new System.Drawing.Point(35, 97); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(373, 38); |
|||
this.label1.TabIndex = 7; |
|||
this.label1.Text = "This printer would be the default printer used to print sales \r\nreceipts.\r\n"; |
|||
//
|
|||
// printers
|
|||
//
|
|||
this.printers.FormattingEnabled = true; |
|||
this.printers.ItemHeight = 21; |
|||
this.printers.Location = new System.Drawing.Point(40, 145); |
|||
this.printers.Name = "printers"; |
|||
this.printers.Size = new System.Drawing.Size(452, 151); |
|||
this.printers.TabIndex = 8; |
|||
//
|
|||
// ReceiptPrinter
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.printers); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "ReceiptPrinter"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.ListBox printers; |
|||
} |
|||
} |
@ -0,0 +1,52 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Drawing.Printing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class ReceiptPrinter : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public ReceiptPrinter(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
PopulateInstalledPrintersCombo(); |
|||
} |
|||
private void PopulateInstalledPrintersCombo() |
|||
{ |
|||
String pkInstalledPrinters; |
|||
for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++) |
|||
{ |
|||
pkInstalledPrinters = PrinterSettings.InstalledPrinters[i]; |
|||
printers.Items.Add(pkInstalledPrinters); |
|||
} |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
string text = printers.GetItemText(printers.SelectedItem); |
|||
string title = "Setting Default printer"; |
|||
string message = "Are you sure you would like to set " + text + " as your " + |
|||
"default receipt printer ?"; |
|||
Confirmation confirmation = new Confirmation(title,message); |
|||
confirmation.BringToFront(); |
|||
confirmation.ShowDialog(); |
|||
if (confirmation.DialogResult == DialogResult.Yes) |
|||
{ |
|||
Settings.Default.ReceiptPrinter = text; |
|||
Settings.Default.Save(); |
|||
hardwareSetupWizard.SetThem(); |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,127 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class ReportPrinter |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.button3 = new System.Windows.Forms.Button(); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.printers = new System.Windows.Forms.ListBox(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label2.Location = new System.Drawing.Point(22, 49); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(442, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "Select the name of report printer you would like to set as default"; |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label6.Location = new System.Drawing.Point(101, 388); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(287, 19); |
|||
this.label6.TabIndex = 5; |
|||
this.label6.Text = "Select \"Next\" below to set up next device"; |
|||
//
|
|||
// button3
|
|||
//
|
|||
this.button3.BackColor = System.Drawing.Color.LightGray; |
|||
this.button3.Cursor = System.Windows.Forms.Cursors.Hand; |
|||
this.button3.FlatAppearance.BorderColor = System.Drawing.Color.White; |
|||
this.button3.FlatAppearance.BorderSize = 2; |
|||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.RoyalBlue; |
|||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|||
this.button3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.button3.Location = new System.Drawing.Point(334, 304); |
|||
this.button3.Name = "button3"; |
|||
this.button3.Size = new System.Drawing.Size(173, 39); |
|||
this.button3.TabIndex = 6; |
|||
this.button3.Text = "Set as default"; |
|||
this.button3.UseVisualStyleBackColor = false; |
|||
this.button3.Click += new System.EventHandler(this.Button3_Click); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label1.Location = new System.Drawing.Point(35, 86); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(389, 38); |
|||
this.label1.TabIndex = 7; |
|||
this.label1.Text = "This printer would be the default printer used to print financial\r\nreports, sales" + |
|||
" reports, inventory lists etc.\r\n"; |
|||
//
|
|||
// printers
|
|||
//
|
|||
this.printers.FormattingEnabled = true; |
|||
this.printers.ItemHeight = 21; |
|||
this.printers.Location = new System.Drawing.Point(35, 143); |
|||
this.printers.Name = "printers"; |
|||
this.printers.Size = new System.Drawing.Size(472, 151); |
|||
this.printers.TabIndex = 8; |
|||
//
|
|||
// ReportPrinter
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.printers); |
|||
this.Controls.Add(this.label1); |
|||
this.Controls.Add(this.button3); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label2); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "ReportPrinter"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.Button button3; |
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.ListBox printers; |
|||
} |
|||
} |
@ -0,0 +1,52 @@ |
|||
using BiskLog_Point_Of_Sale.Multiple_Login; |
|||
using BiskLog_Point_Of_Sale.Properties; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Drawing; |
|||
using System.Drawing.Printing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class ReportPrinter : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public ReportPrinter(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
PopulateInstalledPrintersCombo(); |
|||
} |
|||
private void PopulateInstalledPrintersCombo() |
|||
{ |
|||
String pkInstalledPrinters; |
|||
for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++) |
|||
{ |
|||
pkInstalledPrinters = PrinterSettings.InstalledPrinters[i]; |
|||
printers.Items.Add(pkInstalledPrinters); |
|||
} |
|||
} |
|||
|
|||
private void Button3_Click(object sender, EventArgs e) |
|||
{ |
|||
string reportprinter = printers.GetItemText(printers.SelectedItem); |
|||
string title = "Setting Default printer"; |
|||
string message = "Are you sure you would like to set " + reportprinter + " as your " + |
|||
"default report printer ?"; |
|||
Confirmation confirmation = new Confirmation(title, message); |
|||
confirmation.BringToFront(); |
|||
confirmation.ShowDialog(); |
|||
if (confirmation.DialogResult == DialogResult.Yes) |
|||
{ |
|||
Settings.Default.ReportPrinter = reportprinter; |
|||
Settings.Default.Save(); |
|||
hardwareSetupWizard.SetThem(); |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,155 @@ |
|||
namespace Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
partial class Welcome |
|||
{ |
|||
/// <summary>
|
|||
/// Required designer variable.
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// Clean up any resources being used.
|
|||
/// </summary>
|
|||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows Form Designer generated code
|
|||
|
|||
/// <summary>
|
|||
/// Required method for Designer support - do not modify
|
|||
/// the contents of this method with the code editor.
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Welcome)); |
|||
this.label1 = new System.Windows.Forms.Label(); |
|||
this.label2 = new System.Windows.Forms.Label(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.label4 = new System.Windows.Forms.Label(); |
|||
this.label5 = new System.Windows.Forms.Label(); |
|||
this.label6 = new System.Windows.Forms.Label(); |
|||
this.pictureBox1 = new System.Windows.Forms.PictureBox(); |
|||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label1
|
|||
//
|
|||
this.label1.AutoSize = true; |
|||
this.label1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold); |
|||
this.label1.Location = new System.Drawing.Point(22, 35); |
|||
this.label1.Name = "label1"; |
|||
this.label1.Size = new System.Drawing.Size(454, 21); |
|||
this.label1.TabIndex = 0; |
|||
this.label1.Text = "Welcome to the BISKILOG Point Of Sale Hardware Wizard!!"; |
|||
//
|
|||
// label2
|
|||
//
|
|||
this.label2.AutoSize = true; |
|||
this.label2.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label2.Location = new System.Drawing.Point(22, 70); |
|||
this.label2.Name = "label2"; |
|||
this.label2.Size = new System.Drawing.Size(269, 19); |
|||
this.label2.TabIndex = 0; |
|||
this.label2.Text = "The hardware wizard will assist you in :"; |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.AutoSize = true; |
|||
this.label3.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label3.Location = new System.Drawing.Point(259, 98); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(296, 76); |
|||
this.label3.TabIndex = 0; |
|||
this.label3.Text = "• Selecting which Point Of Sale device you have\r\n attached to your computer.\r\n•" + |
|||
" Setting up your Point Of Sale devices.\r\n• Selecting the right settings for you" + |
|||
".\r\n"; |
|||
//
|
|||
// label4
|
|||
//
|
|||
this.label4.AutoSize = true; |
|||
this.label4.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); |
|||
this.label4.Location = new System.Drawing.Point(22, 216); |
|||
this.label4.Name = "label4"; |
|||
this.label4.Size = new System.Drawing.Size(249, 19); |
|||
this.label4.TabIndex = 1; |
|||
this.label4.Text = "Leave and return any time you want"; |
|||
//
|
|||
// label5
|
|||
//
|
|||
this.label5.AutoSize = true; |
|||
this.label5.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label5.Location = new System.Drawing.Point(51, 235); |
|||
this.label5.Name = "label5"; |
|||
this.label5.Size = new System.Drawing.Size(448, 76); |
|||
this.label5.TabIndex = 1; |
|||
this.label5.Text = resources.GetString("label5.Text"); |
|||
//
|
|||
// label6
|
|||
//
|
|||
this.label6.AutoSize = true; |
|||
this.label6.Font = new System.Drawing.Font("Segoe UI", 10F); |
|||
this.label6.Location = new System.Drawing.Point(3, 381); |
|||
this.label6.Name = "label6"; |
|||
this.label6.Size = new System.Drawing.Size(540, 38); |
|||
this.label6.TabIndex = 1; |
|||
this.label6.Text = "Select \"Next\" below to step through each hardware type or click directly on the t" + |
|||
"ype of \r\nhardware device you would like to setup from the list at the left side " + |
|||
"of the wizard."; |
|||
//
|
|||
// pictureBox1
|
|||
//
|
|||
this.pictureBox1.BackColor = System.Drawing.Color.White; |
|||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); |
|||
this.pictureBox1.Location = new System.Drawing.Point(40, 92); |
|||
this.pictureBox1.Name = "pictureBox1"; |
|||
this.pictureBox1.Size = new System.Drawing.Size(156, 106); |
|||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
|||
this.pictureBox1.TabIndex = 2; |
|||
this.pictureBox1.TabStop = false; |
|||
//
|
|||
// Welcome
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(571, 428); |
|||
this.ControlBox = false; |
|||
this.Controls.Add(this.pictureBox1); |
|||
this.Controls.Add(this.label6); |
|||
this.Controls.Add(this.label5); |
|||
this.Controls.Add(this.label4); |
|||
this.Controls.Add(this.label3); |
|||
this.Controls.Add(this.label2); |
|||
this.Controls.Add(this.label1); |
|||
this.Font = new System.Drawing.Font("Segoe UI", 12F); |
|||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69))))); |
|||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
|||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); |
|||
this.Name = "Welcome"; |
|||
this.ShowIcon = false; |
|||
this.ShowInTaskbar = false; |
|||
this.Text = "Welcome"; |
|||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
|||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
private System.Windows.Forms.Label label1; |
|||
private System.Windows.Forms.Label label2; |
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.Label label4; |
|||
private System.Windows.Forms.Label label5; |
|||
private System.Windows.Forms.Label label6; |
|||
private System.Windows.Forms.PictureBox pictureBox1; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
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 Point_Of_Sale_Managment.CashierModule |
|||
{ |
|||
public partial class Welcome : Form |
|||
{ |
|||
HardwareSetupWizard hardwareSetupWizard; |
|||
public Welcome(HardwareSetupWizard setupWizard) |
|||
{ |
|||
InitializeComponent(); |
|||
hardwareSetupWizard = setupWizard; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,635 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<data name="label5.Text" xml:space="preserve"> |
|||
<value>You can leave the hardware set up wizard at any time and return later. |
|||
If you don't complete the setup to can always return to the Hardware |
|||
Setup Wizard by clicking "System Settings" then select "Hardware" from |
|||
the options at the top of the opened dialog box. |
|||
</value> |
|||
</data> |
|||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|||
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value> |
|||
/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4R |
|||
ExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoa |
|||
GhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wgARCAGQAZADAREAAhEBAxEB/8QA |
|||
HAABAAEFAQEAAAAAAAAAAAAAAAECAwQFBgcI/8QAGwEBAQEBAQEBAQAAAAAAAAAAAAECAwQFBgf/2gAM |
|||
AwEAAhADEAAAAffwAAA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oPoDn6fQJsAASAABAioWp |
|||
AALR5R5PT2fo4dRrMkUAAPl3p5tHvNUSxLV5myBFwtggkttUkHv/AD9HoU6AACQAAAAAAQnB8O8ax33T |
|||
mtEAAIPnbfDhunMskl0tZzMQVlCwRpUW0kia+lufo66aABRIAAAAAANHzvC46eo9uV2gIMJOC358+t9n |
|||
rdOf1nFMZNM5c5vGlMKXDLS2att2SmSgtrJFmy59MKpW6u/l+lsdNwSAAAAABJYl8s49/Su/DYUAIjzr |
|||
fPxnr5N/L0c7QY9Y6a6zUM6swzHW0S1bLBBTLSU1BGbSRpBSsHXc9fWON5agAAAACI8949t3059RvBQB |
|||
EngXTlxm+XL22bZJ0krzKmqmJJaEkAFGoKMoWkpFUlKivL6+4ejoQAAACzlbW7qaTlvmpr0XtyAAFMny |
|||
F28+p0umPFqa6rG9gVFQUSAASQgi2khOYs1es0kEnt3PfuGOk0AALZJWcT59ubo+2eGzr0LvnKsAAGkZ |
|||
+Yu/m9JrTc9+PxhOtMAgAAAEl1L6XS+l5L+s5KXDmJ2sL6xH0zjpNAAWsuc5XDnXqu3Hiuetb5713ozi |
|||
bnXbAAAec3n4h24d5ccPz7cWYzdqakgEEgARmzPpPTzXUkqKysuF0uCXy2d79v2Xz7VAAHN8rz3HrqD0 |
|||
T0cuI46xuN3/AKcZ251ewAAHgFz4h250GWzmOdstTckEEgFIKhL6QntMsxNSVlwxjTrpmeX1PLdZ+xPP |
|||
6tw0EK1mHGebpop27n0cNnc8Py64vPOy7Z7LtnagCgB849OXF747NnSrG+YAAAAEkLJ67x75zWnTUXOp |
|||
00rnh7zISShr6a83s7CaFMa3m5bG7WOvV+jjls0HJ8mludbrXeVkmfpsSrQAfMvbz8tvhsMrS5O81lsk |
|||
ElQJAASC2Q1csllNCtIKVoNC19G+b2egZ1iRy3HWfppsa6vti8mHliZVFkrJqCirpudsqlD536ebhN8c |
|||
sF6seW5VZWklcgroACSkpIigpuqSZLrNtq0a+36X4ezrc65TlvIzI0z63HTOJlq+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elKtQXBdfq185c |
|||
K8eBuS95908xMBE+yTgFtk/mYihPqf0GOGTdPuCel/8AdIfkimjNx+mwzWdF9ME6IMf2fXnwLoA2FzIj |
|||
m5sr3X8QVsoomLEeYXv4NZxqzMpO5cDte9RklXxrAWaVQkq9RmJWQ4GzKHb33u9GlUzD6iddBTa+WJVj |
|||
woG598358V3EA2598TZl2HV796DWYhpp5cKtYy5gEoKAOWutyh6Evym6PYw3tlIDZhZRygfxtA2Zmcv+ |
|||
reULiusDQsOiUK9sN0B/xIij6JwF2n9t/qH+z/U/2f6nwb8Q33H+og3OTW35JOaBXqu36jorV+daJtcM |
|||
GvniaPZd2POk0Er9PRowzMAVlum2SYU9UKPlLNRHaKq2NcQJVSqCTWua/wCB0zKTSPaPBi/+IDoxOgnQ |
|||
TpPAOgm5RFNCOkek/wA4lG3htrwwdT2yJ19FKC7Jph/D/9k= |
|||
</value> |
|||
</data> |
|||
</root> |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue