Browse Source

Partial commit for BISKILOG POS BASIC

master
Benjamin Arhen 3 months ago
parent
commit
a8867c95f4
  1. 11
      BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/project-colors.json
  2. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/v17/.suo
  3. 115
      BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/v17/DocumentLayout.json
  4. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/.suo
  5. 0
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/db.lock
  6. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide
  7. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide-shm
  8. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide-wal
  9. BIN
      BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v16/.suo
  10. 129
      BISKILOG POS BASIC/App.config
  11. 1976
      BISKILOG POS BASIC/BISKILOG POS BASIC.csproj
  12. 16
      BISKILOG POS BASIC/BISKILOG POS BASIC.csproj.user
  13. 25
      BISKILOG POS BASIC/BISKILOG POS BASIC.sln
  14. 99
      BISKILOG POS BASIC/Barcode.rdlc
  15. BIN
      BISKILOG POS BASIC/Biskilog.ico
  16. 366
      BISKILOG POS BASIC/Cashier Module/CashierMain.Designer.cs
  17. 277
      BISKILOG POS BASIC/Cashier Module/CashierMain.cs
  18. 2408
      BISKILOG POS BASIC/Cashier Module/CashierMain.resx
  19. 423
      BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.Designer.cs
  20. 382
      BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.cs
  21. 168
      BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.resx
  22. 420
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.Designer.cs
  23. 140
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.cs
  24. 158
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.resx
  25. 372
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.Designer.cs
  26. 118
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.cs
  27. 7392
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.resx
  28. 311
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.Designer.cs
  29. 232
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.cs
  30. 153
      BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.resx
  31. 72
      BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.Designer.cs
  32. 79
      BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.cs
  33. 7330
      BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.resx
  34. 333
      BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.Designer.cs
  35. 132
      BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.cs
  36. 2423
      BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.resx
  37. 296
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.Designer.cs
  38. 102
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.cs
  39. 2414
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.resx
  40. 481
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .Designer.cs
  41. 247
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .cs
  42. 2399
      BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .resx
  43. 283
      BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.Designer.cs
  44. 108
      BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.cs
  45. 2414
      BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.resx
  46. 137
      BISKILOG POS BASIC/Cashier Module/POS Module/Discount.Designer.cs
  47. 85
      BISKILOG POS BASIC/Cashier Module/POS Module/Discount.cs
  48. 7330
      BISKILOG POS BASIC/Cashier Module/POS Module/Discount.resx
  49. 426
      BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.Designer.cs
  50. 129
      BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.cs
  51. 2426
      BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.resx
  52. 588
      BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.Designer.cs
  53. 342
      BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.cs
  54. 2423
      BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.resx
  55. 1132
      BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.Designer.cs
  56. 1207
      BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.cs
  57. 2488
      BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.resx
  58. 154
      BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.Designer.cs
  59. 99
      BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.cs
  60. 7330
      BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.resx
  61. 524
      BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.Designer.cs
  62. 195
      BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.cs
  63. 7330
      BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.resx
  64. 120
      BISKILOG POS BASIC/Cashier Module/Products Module/.resx
  65. 402
      BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.Designer.cs
  66. 86
      BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.cs
  67. 192
      BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.resx
  68. 187
      BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.Designer.cs
  69. 48
      BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.cs
  70. 129
      BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.resx
  71. 185
      BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.Designer.cs
  72. 47
      BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.cs
  73. 129
      BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.resx
  74. 928
      BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.Designer.cs
  75. 43
      BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.cs
  76. 120
      BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.resx
  77. 318
      BISKILOG POS BASIC/Cashier Module/Settings/Emailer.Designer.cs
  78. 119
      BISKILOG POS BASIC/Cashier Module/Settings/Emailer.cs
  79. 120
      BISKILOG POS BASIC/Cashier Module/Settings/Emailer.resx
  80. 186
      BISKILOG POS BASIC/Cashier Module/Settings/Finished.Designer.cs
  81. 38
      BISKILOG POS BASIC/Cashier Module/Settings/Finished.cs
  82. 120
      BISKILOG POS BASIC/Cashier Module/Settings/Finished.resx
  83. 378
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware.Designer.cs
  84. 74
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware.cs
  85. 120
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware.resx
  86. 198
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.Designer.cs
  87. 22
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.cs
  88. 125
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.resx
  89. 127
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.Designer.cs
  90. 53
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.cs
  91. 120
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.resx
  92. 356
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.Designer.cs
  93. 252
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.cs
  94. 7330
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.resx
  95. 198
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.Designer.cs
  96. 22
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.cs
  97. 126
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.resx
  98. 126
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.Designer.cs
  99. 52
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.cs
  100. 120
      BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.resx

11
BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/project-colors.json

@ -0,0 +1,11 @@
{
"Version": 1,
"ProjectMap": {
"a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": {
"ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3",
"DisplayName": "Miscellaneous Files",
"ColorIndex": -1
}
},
"NextColorIndex": 0
}

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/v17/.suo

Binary file not shown.

115
BISKILOG POS BASIC/.vs/BISKILOG POS BASIC/v17/DocumentLayout.json

@ -0,0 +1,115 @@
{
"Version": 1,
"WorkspaceRootPath": "I:\\Projects\\Desktop\\BISKILOG\\@@ POS BETA\\BISKILOG POS BASIC\\",
"Documents": [],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:130:0:{13b12e3e-c1b4-4539-9371-4fe9a0d523fc}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
},
{
"$type": "Bookmark",
"Name": "ST:134:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:135:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:136:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:137:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:138:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:139:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:140:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:141:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Bookmark",
"Name": "ST:136:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:131:0:{13b12e3e-c1b4-4539-9371-4fe9a0d523fc}"
},
{
"$type": "Bookmark",
"Name": "ST:132:0:{13b12e3e-c1b4-4539-9371-4fe9a0d523fc}"
},
{
"$type": "Bookmark",
"Name": "ST:230200213:0:{83107a3e-496a-485e-b455-16ddb978e55e}"
},
{
"$type": "Bookmark",
"Name": "ST:1412215131:0:{83107a3e-496a-485e-b455-16ddb978e55e}"
},
{
"$type": "Bookmark",
"Name": "ST:30:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:32:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:2:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:16:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:17:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:38:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
},
{
"$type": "Bookmark",
"Name": "ST:45:0:{dcc4ea97-1c0c-482b-b205-e541c0df9728}"
}
]
}
]
}
]
}

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/.suo

Binary file not shown.

0
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/db.lock

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide

Binary file not shown.

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide-shm

Binary file not shown.

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v15/Server/sqlite3/storage.ide-wal

Binary file not shown.

BIN
BISKILOG POS BASIC/.vs/BISKILOG POS PREMIUM/v16/.suo

Binary file not shown.

129
BISKILOG POS BASIC/App.config

@ -0,0 +1,129 @@
<?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>
<setting name="DontShow" 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>

1976
BISKILOG POS BASIC/BISKILOG POS BASIC.csproj

File diff suppressed because it is too large

16
BISKILOG POS BASIC/BISKILOG POS BASIC.csproj.user

@ -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>

25
BISKILOG POS BASIC/BISKILOG POS BASIC.sln

@ -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

99
BISKILOG POS BASIC/Barcode.rdlc

@ -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>

BIN
BISKILOG POS BASIC/Biskilog.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

366
BISKILOG POS BASIC/Cashier Module/CashierMain.Designer.cs

@ -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;
}
}

277
BISKILOG POS BASIC/Cashier Module/CashierMain.cs

@ -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();
}
}
}

2408
BISKILOG POS BASIC/Cashier Module/CashierMain.resx

File diff suppressed because it is too large

423
BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.Designer.cs

@ -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;
}
}

382
BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.cs

@ -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 = "";
}
}
}
}

168
BISKILOG POS BASIC/Cashier Module/Invoice/AddInvoice.resx

@ -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>

420
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.Designer.cs

@ -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;
}
}

140
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.cs

@ -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);
}
}
}

158
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceDialog.resx

@ -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>

372
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.Designer.cs

@ -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;
}
}

118
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.cs

@ -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());
}
}
}
}

7392
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceMain.resx

File diff suppressed because it is too large

311
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.Designer.cs

@ -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;
}
}

232
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.cs

@ -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;
}
}
}
}

153
BISKILOG POS BASIC/Cashier Module/Invoice/InvoiceRecheck.resx

@ -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>

72
BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.Designer.cs

@ -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;
}
}

79
BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.cs

@ -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;
}
}
}
}

7330
BISKILOG POS BASIC/Cashier Module/Invoice/quantityInvoice.resx

File diff suppressed because it is too large

333
BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.Designer.cs

@ -0,0 +1,333 @@
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.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(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(0, 86);
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(567, 474);
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(173, 37);
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);
//
// LABE
//
this.LABE.AutoSize = true;
this.LABE.Location = new System.Drawing.Point(32, 38);
this.LABE.Name = "LABE";
this.LABE.Size = new System.Drawing.Size(129, 21);
this.LABE.TabIndex = 5;
this.LABE.Text = "PRODUCT NAME";
//
// 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 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 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;
}
}

132
BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.cs

@ -0,0 +1,132 @@
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();
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 ProNAME_TextChanged(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(proNAME.Text))
{
dataGridView1.Rows.Clear();
}
else
{
products(proNAME.Text);
}
}
}
}

2423
BISKILOG POS BASIC/Cashier Module/POS Module/AddProducttoCart.resx

File diff suppressed because it is too large

296
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.Designer.cs

@ -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;
}
}

102
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.cs

@ -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);
}
}
}
}

2414
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerBill.resx

File diff suppressed because it is too large

481
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .Designer.cs

@ -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;
}
}

247
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .cs

@ -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();
}
}
}
}
}
}

2399
BISKILOG POS BASIC/Cashier Module/POS Module/CashierCustomerSettlePayment .resx

File diff suppressed because it is too large

283
BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.Designer.cs

@ -0,0 +1,283 @@
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.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.label6 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// 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(23, 31);
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(222, 25);
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(23, 66);
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(218, 66);
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(23, 98);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(89, 21);
this.label4.TabIndex = 9;
this.label4.Text = "All Sales By";
this.label4.Visible = false;
//
// 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(218, 98);
this.numberCustomers.Name = "numberCustomers";
this.numberCustomers.Size = new System.Drawing.Size(19, 21);
this.numberCustomers.TabIndex = 10;
this.numberCustomers.Text = "0";
this.numberCustomers.Visible = false;
//
// holding
//
this.holding.Anchor = System.Windows.Forms.AnchorStyles.None;
this.holding.Location = new System.Drawing.Point(359, 292);
this.holding.Maximum = 100;
this.holding.Name = "holding";
this.holding.Size = new System.Drawing.Size(47, 45);
this.holding.TabIndex = 13;
this.holding.UseSelectable = true;
this.holding.Visible = false;
//
// 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(539, 33);
this.label6.TabIndex = 1;
this.label6.Text = "DAILY SALES";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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.Column5,
this.Column3,
this.Column2,
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.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(816, 461);
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;
//
// Column5
//
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Column5.HeaderText = "Customer Name";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// Column3
//
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column3.HeaderText = "Receipt Number";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 146;
//
// Column2
//
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column2.HeaderText = "Time";
this.Column2.Name = "Column2";
this.Column2.Width = 67;
//
// Column6
//
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column6.HeaderText = "Total";
this.Column6.Name = "Column6";
this.Column6.Width = 65;
//
// DailySales
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(815, 612);
this.Controls.Add(this.holding);
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.Cursor = System.Windows.Forms.Cursors.Default;
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.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Daily Sales";
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.ResumeLayout(false);
this.PerformLayout();
}
#endregion
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.Label label6;
private MetroFramework.Controls.MetroProgressSpinner holding;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
}
}

108
BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.cs

@ -0,0 +1,108 @@
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();
dailyIncome.Text = "";
numberCustomers.Text = "";
decimal TotalSale = 0;
int i = 1;
cn.Open();
cm = new SqlCommand("usp_cashier_daily_sales @BranchID = @branchID,@month=@dateMonth,@year=@dateYear,@day=@dateDay," +
"@cashier = @cashier1", cn);
cm.Parameters.AddWithValue("@dateYear", date.Year);
cm.Parameters.AddWithValue("@dateMonth", date.Month);
cm.Parameters.AddWithValue("@dateDay", date.Day);
cm.Parameters.AddWithValue("@cashier1", cashier);
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID);
dr = cm.ExecuteReader();
while (dr.Read())
{
dataGridView1.Rows.Add(i, dr["Customer"].ToString(), dr["transno"].ToString(), Convert.ToDateTime(dr["date"].ToString()).ToLocalTime(), Settings.Default.currrencyCode + " " + dr["Receipt Total"].ToString());
TotalSale += decimal.Parse(dr["Receipt Total"].ToString());
i++;
dailyIncome.Text = Settings.Default.currrencyCode + " " + TotalSale.ToString();
}
numberCustomers.Text = cashier;
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 dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex != -1)
{
string receiptid = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
ReceiptModule receipt = new ReceiptModule(receiptid);
receipt.BringToFront();
receipt.ShowDialog();
}
}
}
}

2414
BISKILOG POS BASIC/Cashier Module/POS Module/DailySales.resx

File diff suppressed because it is too large

137
BISKILOG POS BASIC/Cashier Module/POS Module/Discount.Designer.cs

@ -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;
}
}

85
BISKILOG POS BASIC/Cashier Module/POS Module/Discount.cs

@ -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;
}
}
}

7330
BISKILOG POS BASIC/Cashier Module/POS Module/Discount.resx

File diff suppressed because it is too large

426
BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.Designer.cs

@ -0,0 +1,426 @@
namespace Point_Of_Sale_Managment.CashierModule
{
partial class HeldTransactions
{
/// <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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HeldTransactions));
this.panel1 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.detailsPanel = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel4 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.holding = new MetroFramework.Controls.MetroProgressSpinner();
this.transactionHeld = 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.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel3 = new System.Windows.Forms.Panel();
this.date = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailsPanel)).BeginInit();
this.panel4.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.transactionHeld)).BeginInit();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.detailsPanel);
this.panel1.Controls.Add(this.panel4);
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
this.panel1.Location = new System.Drawing.Point(708, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(381, 621);
this.panel1.TabIndex = 0;
//
// panel5
//
this.panel5.Controls.Add(this.button2);
this.panel5.Controls.Add(this.button1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel5.Location = new System.Drawing.Point(0, 507);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(377, 110);
this.panel5.TabIndex = 8;
//
// button2
//
this.button2.BackColor = System.Drawing.Color.Maroon;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button2.ForeColor = System.Drawing.Color.White;
this.button2.Location = new System.Drawing.Point(138, 65);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(138, 39);
this.button2.TabIndex = 0;
this.button2.Text = "Cancel";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.RoyalBlue;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Location = new System.Drawing.Point(138, 15);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(138, 39);
this.button1.TabIndex = 0;
this.button1.Text = "Sell Off";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// detailsPanel
//
this.detailsPanel.AllowUserToAddRows = false;
this.detailsPanel.AllowUserToResizeColumns = false;
this.detailsPanel.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.detailsPanel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.detailsPanel.BackgroundColor = System.Drawing.Color.White;
this.detailsPanel.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.detailsPanel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.detailsPanel.ColumnHeadersHeight = 30;
this.detailsPanel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.detailsPanel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn5});
this.detailsPanel.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.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.detailsPanel.DefaultCellStyle = dataGridViewCellStyle3;
this.detailsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailsPanel.EnableHeadersVisualStyles = false;
this.detailsPanel.Location = new System.Drawing.Point(0, 40);
this.detailsPanel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.detailsPanel.Name = "detailsPanel";
this.detailsPanel.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.detailsPanel.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.detailsPanel.RowHeadersVisible = false;
this.detailsPanel.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.detailsPanel.Size = new System.Drawing.Size(377, 577);
this.detailsPanel.TabIndex = 7;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn2.HeaderText = "Product";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.dataGridViewTextBoxColumn4.HeaderText = "QTY";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.Width = 61;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.dataGridViewTextBoxColumn1.HeaderText = "UNIT";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Width = 68;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.dataGridViewTextBoxColumn5.HeaderText = "Total";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.Width = 65;
//
// panel4
//
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(377, 40);
this.panel4.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69)))));
this.label2.Location = new System.Drawing.Point(154, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 21);
this.label2.TabIndex = 0;
this.label2.Text = "Details";
//
// panel2
//
this.panel2.Controls.Add(this.holding);
this.panel2.Controls.Add(this.transactionHeld);
this.panel2.Controls.Add(this.panel3);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(708, 621);
this.panel2.TabIndex = 1;
//
// holding
//
this.holding.Anchor = System.Windows.Forms.AnchorStyles.None;
this.holding.Location = new System.Drawing.Point(331, 288);
this.holding.Maximum = 100;
this.holding.Name = "holding";
this.holding.Size = new System.Drawing.Size(47, 45);
this.holding.TabIndex = 14;
this.holding.UseSelectable = true;
this.holding.Visible = false;
//
// transactionHeld
//
this.transactionHeld.AllowUserToAddRows = false;
this.transactionHeld.AllowUserToResizeColumns = false;
this.transactionHeld.AllowUserToResizeRows = false;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.Gainsboro;
dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 12F);
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69)))));
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.White;
this.transactionHeld.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
this.transactionHeld.BackgroundColor = System.Drawing.Color.White;
this.transactionHeld.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(56)))));
dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 12F);
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.transactionHeld.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.transactionHeld.ColumnHeadersHeight = 30;
this.transactionHeld.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.transactionHeld.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column3,
this.Column5,
this.Column2,
this.Column6});
this.transactionHeld.Cursor = System.Windows.Forms.Cursors.Hand;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle7.Font = new System.Drawing.Font("Segoe UI", 12F);
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69)))));
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.White;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.transactionHeld.DefaultCellStyle = dataGridViewCellStyle7;
this.transactionHeld.Dock = System.Windows.Forms.DockStyle.Fill;
this.transactionHeld.EnableHeadersVisualStyles = false;
this.transactionHeld.Location = new System.Drawing.Point(0, 50);
this.transactionHeld.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.transactionHeld.Name = "transactionHeld";
this.transactionHeld.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
dataGridViewCellStyle8.Font = new System.Drawing.Font("Segoe UI", 12F);
dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.transactionHeld.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.transactionHeld.RowHeadersVisible = false;
this.transactionHeld.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.transactionHeld.Size = new System.Drawing.Size(708, 571);
this.transactionHeld.TabIndex = 6;
this.transactionHeld.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.transactionHeld_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;
//
// Column3
//
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column3.HeaderText = "Transaction ID";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Visible = false;
this.Column3.Width = 133;
//
// Column5
//
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Column5.HeaderText = "Customer Name";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// Column2
//
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column2.HeaderText = "Time";
this.Column2.Name = "Column2";
this.Column2.Width = 67;
//
// Column6
//
this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column6.HeaderText = "Total";
this.Column6.Name = "Column6";
this.Column6.Width = 65;
//
// panel3
//
this.panel3.Controls.Add(this.date);
this.panel3.Controls.Add(this.label1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(708, 50);
this.panel3.TabIndex = 0;
//
// date
//
this.date.Location = new System.Drawing.Point(239, 11);
this.date.Name = "date";
this.date.Size = new System.Drawing.Size(299, 29);
this.date.TabIndex = 10;
this.date.ValueChanged += new System.EventHandler(this.HeldTransactions_Load);
//
// 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(40, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 21);
this.label1.TabIndex = 9;
this.label1.Text = "SELECT DATE";
//
// HeldTransactions
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1089, 621);
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.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.MaximizeBox = false;
this.Name = "HeldTransactions";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Held Transactions";
this.Load += new System.EventHandler(this.HeldTransactions_Load);
this.panel1.ResumeLayout(false);
this.panel5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailsPanel)).EndInit();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.transactionHeld)).EndInit();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.DateTimePicker date;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridView transactionHeld;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.DataGridView detailsPanel;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private MetroFramework.Controls.MetroProgressSpinner holding;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
}
}

129
BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.cs

@ -0,0 +1,129 @@
using BiskLog_Point_Of_Sale.Classes;
using BiskLog_Point_Of_Sale.Company_Setup;
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.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 HeldTransactions : Form
{
private List<HeldItems> held { get; set; } = new List<HeldItems>();
public List<HeldItems> selectedheld { get; set; } = new List<HeldItems>();
List<string> added = new List<string>();
DatabaseConn conn = new DatabaseConn();
SqlConnection cn;
SqlCommand cm;
SqlDataReader dr;
public HeldTransactions()
{
InitializeComponent();
cn = new SqlConnection(conn.MyConnection());
holding.Left = (ClientSize.Width - holding.Width) / 2;
holding.Top = (ClientSize.Height - holding.Height) / 2;
}
private async Task GetHeld()
{
held.Clear();
cn.Open();
cm = new SqlCommand("Exec usp_get_held_sales @BranchID = @branchID,@month=@dateMonth,@year=@dateYear,@day=@dateDay", cn);
cm.Parameters.AddWithValue("@dateYear", date.Value.Year);
cm.Parameters.AddWithValue("@dateMonth", date.Value.Month);
cm.Parameters.AddWithValue("@dateDay", date.Value.Day);
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID);
dr = cm.ExecuteReader();
while (dr.Read())
{
held.Add(new HeldItems
{
branchID = Settings.Default.BranchID,
cashier = dr["cashier"].ToString(),
customerID = dr["customerID"].ToString(),
date = DateTime.Now.ToString(),
discount = dr["discount"].ToString(),
distinctive = dr["distinctive"].ToString(),
id = dr["productID"].ToString(),
invoiceID = dr["invoiceID"].ToString(),
pcode = dr["productID"].ToString(),
price = dr["price"].ToString(),
quantity = dr["quantity"].ToString(),
total = dr["total"].ToString(),
transno = dr["transactionID"].ToString(),
unit = dr["unit"].ToString(),
rowid = dr["Customer Name"].ToString(),
countID = dr["Product"].ToString(),
status = dr["unitName"].ToString(),
});
}
dr.Close();
cn.Close();
return;
}
private async void HeldTransactions_Load(object sender, EventArgs e)
{
transactionHeld.Rows.Clear();
holding.Visible = true;
await GetHeld();
int i = 1;
foreach (HeldItems items in held)
{
if (!added.Contains(items.transno))
{
added.Add(items.transno);
transactionHeld.Rows.Add(i, items.transno, items.rowid, items.date, Settings.Default.currrencyCode + " " + items.total);
i++;
}
}
holding.Visible = false;
}
private void transactionHeld_CellClick(object sender, DataGridViewCellEventArgs d)
{
detailsPanel.Rows.Clear();
if (d.RowIndex != -1)
{
string ID = transactionHeld.Rows[d.RowIndex].Cells[1].Value.ToString();
selectedheld = this.held.Where((e) => e.transno == ID).ToList();
foreach (HeldItems held in this.held.Where((e) => e.transno == ID))
{
detailsPanel.Rows.Add(held.countID, held.quantity, held.status, held.total);
}
}
}
private void button1_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Yes;
this.Close();
}
private int CancelHeld()
{
cn.Open();
cm = new SqlCommand("Exec usp_remove_held_transaction @BranchID = @branchID,@heldTransno=@held", cn);
cm.Parameters.AddWithValue("@held", selectedheld.FirstOrDefault().transno);
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID);
cm.ExecuteNonQuery();
cn.Close();
return 1;
}
private async void button2_Click(object sender, EventArgs e)
{
holding.Visible = true;
Task<int> task = new Task<int>(CancelHeld);
task.Start();
await task;
holding.Visible = false;
}
}
}

2426
BISKILOG POS BASIC/Cashier Module/POS Module/HeldTransactions.resx

File diff suppressed because it is too large

588
BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.Designer.cs

@ -0,0 +1,588 @@
namespace Point_Of_Sale_Managment.CashierModule
{
partial class ReceiptModule
{
/// <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(ReceiptModule));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
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.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel3 = new System.Windows.Forms.Panel();
this.detailsBox = new System.Windows.Forms.GroupBox();
this.lblTendered = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lblBalance = new System.Windows.Forms.Label();
this.lblBillTotal = new System.Windows.Forms.Label();
this.lblVAT = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.lblDiscount = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lblSubTotal = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.lblDate = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lblCustomer = new System.Windows.Forms.Label();
this.lblCashier = new System.Windows.Forms.Label();
this.label99 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.btnPrint = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.holding = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel3.SuspendLayout();
this.detailsBox.SuspendLayout();
this.holding.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(39, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(143, 21);
this.label1.TabIndex = 0;
this.label1.Text = "TRANSACTION NO";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(197, 13);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(413, 29);
this.textBox1.TabIndex = 3;
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBox1_KeyPress);
//
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.textBox1);
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(1102, 59);
this.panel1.TabIndex = 7;
//
// button1
//
this.button1.BackColor = System.Drawing.Color.OliveDrab;
this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.button1.ForeColor = System.Drawing.SystemColors.Control;
this.button1.Location = new System.Drawing.Point(649, 9);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(142, 34);
this.button1.TabIndex = 5;
this.button1.Text = "FIND";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.TextBox1_TextChanged);
//
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Controls.Add(this.panel3);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 59);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1102, 611);
this.panel2.TabIndex = 8;
//
// 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.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.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.Column7,
this.Column6,
this.Column2,
this.Column8});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
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.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EnableHeadersVisualStyles = false;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
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(803, 611);
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;
//
// Column7
//
this.Column7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column7.HeaderText = "Unit";
this.Column7.Name = "Column7";
this.Column7.Width = 62;
//
// 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;
//
// Column8
//
this.Column8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.Column8.HeaderText = "unitCode";
this.Column8.Name = "Column8";
this.Column8.Visible = false;
this.Column8.Width = 98;
//
// panel3
//
this.panel3.Controls.Add(this.detailsBox);
this.panel3.Controls.Add(this.btnPrint);
this.panel3.Controls.Add(this.btnCancel);
this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
this.panel3.Location = new System.Drawing.Point(803, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(299, 611);
this.panel3.TabIndex = 6;
//
// detailsBox
//
this.detailsBox.Controls.Add(this.lblTendered);
this.detailsBox.Controls.Add(this.label11);
this.detailsBox.Controls.Add(this.lblBalance);
this.detailsBox.Controls.Add(this.lblBillTotal);
this.detailsBox.Controls.Add(this.lblVAT);
this.detailsBox.Controls.Add(this.label4);
this.detailsBox.Controls.Add(this.label6);
this.detailsBox.Controls.Add(this.label9);
this.detailsBox.Controls.Add(this.lblDiscount);
this.detailsBox.Controls.Add(this.label7);
this.detailsBox.Controls.Add(this.lblSubTotal);
this.detailsBox.Controls.Add(this.label5);
this.detailsBox.Controls.Add(this.lblDate);
this.detailsBox.Controls.Add(this.label3);
this.detailsBox.Controls.Add(this.lblCustomer);
this.detailsBox.Controls.Add(this.lblCashier);
this.detailsBox.Controls.Add(this.label99);
this.detailsBox.Controls.Add(this.label2);
this.detailsBox.Location = new System.Drawing.Point(5, 23);
this.detailsBox.Name = "detailsBox";
this.detailsBox.Size = new System.Drawing.Size(287, 345);
this.detailsBox.TabIndex = 8;
this.detailsBox.TabStop = false;
this.detailsBox.Text = "Receipt Details";
this.detailsBox.Visible = false;
//
// lblTendered
//
this.lblTendered.AutoSize = true;
this.lblTendered.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.lblTendered.Location = new System.Drawing.Point(105, 272);
this.lblTendered.Name = "lblTendered";
this.lblTendered.Size = new System.Drawing.Size(0, 21);
this.lblTendered.TabIndex = 0;
//
// label11
//
this.label11.Location = new System.Drawing.Point(6, 262);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(86, 49);
this.label11.TabIndex = 0;
this.label11.Text = "CASH TENDERED";
//
// lblBalance
//
this.lblBalance.AutoSize = true;
this.lblBalance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.lblBalance.Location = new System.Drawing.Point(105, 311);
this.lblBalance.Name = "lblBalance";
this.lblBalance.Size = new System.Drawing.Size(0, 21);
this.lblBalance.TabIndex = 0;
//
// lblBillTotal
//
this.lblBillTotal.AutoSize = true;
this.lblBillTotal.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.lblBillTotal.Location = new System.Drawing.Point(105, 234);
this.lblBillTotal.Name = "lblBillTotal";
this.lblBillTotal.Size = new System.Drawing.Size(0, 21);
this.lblBillTotal.TabIndex = 0;
//
// lblVAT
//
this.lblVAT.AutoSize = true;
this.lblVAT.Location = new System.Drawing.Point(105, 203);
this.lblVAT.Name = "lblVAT";
this.lblVAT.Size = new System.Drawing.Size(0, 21);
this.lblVAT.TabIndex = 0;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 311);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(77, 21);
this.label4.TabIndex = 0;
this.label4.Text = "BALANCE";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(6, 234);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(67, 21);
this.label6.TabIndex = 0;
this.label6.Text = "Bill Total";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(6, 203);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(36, 21);
this.label9.TabIndex = 0;
this.label9.Text = "VAT";
//
// lblDiscount
//
this.lblDiscount.AutoSize = true;
this.lblDiscount.Location = new System.Drawing.Point(105, 168);
this.lblDiscount.Name = "lblDiscount";
this.lblDiscount.Size = new System.Drawing.Size(0, 21);
this.lblDiscount.TabIndex = 0;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(6, 168);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(71, 21);
this.label7.TabIndex = 0;
this.label7.Text = "Discount";
//
// lblSubTotal
//
this.lblSubTotal.AutoSize = true;
this.lblSubTotal.Location = new System.Drawing.Point(105, 130);
this.lblSubTotal.Name = "lblSubTotal";
this.lblSubTotal.Size = new System.Drawing.Size(0, 21);
this.lblSubTotal.TabIndex = 0;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 130);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(73, 21);
this.label5.TabIndex = 0;
this.label5.Text = "Sub Total";
//
// lblDate
//
this.lblDate.AutoSize = true;
this.lblDate.Location = new System.Drawing.Point(105, 96);
this.lblDate.Name = "lblDate";
this.lblDate.Size = new System.Drawing.Size(0, 21);
this.lblDate.TabIndex = 0;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 96);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(42, 21);
this.label3.TabIndex = 0;
this.label3.Text = "Date";
//
// lblCustomer
//
this.lblCustomer.AutoSize = true;
this.lblCustomer.Location = new System.Drawing.Point(105, 62);
this.lblCustomer.Name = "lblCustomer";
this.lblCustomer.Size = new System.Drawing.Size(0, 21);
this.lblCustomer.TabIndex = 0;
//
// lblCashier
//
this.lblCashier.AutoSize = true;
this.lblCashier.Location = new System.Drawing.Point(105, 33);
this.lblCashier.Name = "lblCashier";
this.lblCashier.Size = new System.Drawing.Size(0, 21);
this.lblCashier.TabIndex = 0;
//
// label99
//
this.label99.AutoSize = true;
this.label99.Location = new System.Drawing.Point(6, 62);
this.label99.Name = "label99";
this.label99.Size = new System.Drawing.Size(78, 21);
this.label99.TabIndex = 0;
this.label99.Text = "Customer";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 33);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(62, 21);
this.label2.TabIndex = 0;
this.label2.Text = "Cashier";
//
// btnPrint
//
this.btnPrint.BackColor = System.Drawing.Color.YellowGreen;
this.btnPrint.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnPrint.Enabled = false;
this.btnPrint.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnPrint.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.btnPrint.ForeColor = System.Drawing.SystemColors.Control;
this.btnPrint.Location = new System.Drawing.Point(71, 418);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(160, 47);
this.btnPrint.TabIndex = 6;
this.btnPrint.Text = "PRINT RECEIPT";
this.btnPrint.UseVisualStyleBackColor = false;
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// btnCancel
//
this.btnCancel.BackColor = System.Drawing.Color.DarkRed;
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnCancel.Enabled = false;
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold);
this.btnCancel.ForeColor = System.Drawing.SystemColors.Control;
this.btnCancel.Location = new System.Drawing.Point(71, 481);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(160, 47);
this.btnCancel.TabIndex = 7;
this.btnCancel.Text = "CANCEL SALE";
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Visible = false;
this.btnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// holding
//
this.holding.BackColor = System.Drawing.SystemColors.Control;
this.holding.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.holding.Controls.Add(this.label13);
this.holding.Controls.Add(this.metroProgressSpinner1);
this.holding.Location = new System.Drawing.Point(422, 299);
this.holding.Name = "holding";
this.holding.Size = new System.Drawing.Size(259, 73);
this.holding.TabIndex = 14;
this.holding.Visible = false;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Segoe UI", 12F);
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69)))));
this.label13.Location = new System.Drawing.Point(41, 8);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(162, 21);
this.label13.TabIndex = 1;
this.label13.Text = "Looking for receipt.......";
//
// metroProgressSpinner1
//
this.metroProgressSpinner1.Location = new System.Drawing.Point(107, 32);
this.metroProgressSpinner1.Maximum = 100;
this.metroProgressSpinner1.Name = "metroProgressSpinner1";
this.metroProgressSpinner1.Size = new System.Drawing.Size(37, 36);
this.metroProgressSpinner1.TabIndex = 0;
this.metroProgressSpinner1.UseCustomBackColor = true;
this.metroProgressSpinner1.UseSelectable = true;
//
// ReceiptModule
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1102, 670);
this.Controls.Add(this.holding);
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.FixedDialog;
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 = "ReceiptModule";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Receipt Module";
this.Load += new System.EventHandler(this.SaleCancellation_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SaleCancellation_KeyDown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel3.ResumeLayout(false);
this.detailsBox.ResumeLayout(false);
this.detailsBox.PerformLayout();
this.holding.ResumeLayout(false);
this.holding.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
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 Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.GroupBox detailsBox;
private System.Windows.Forms.Label lblTendered;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label lblBalance;
private System.Windows.Forms.Label lblBillTotal;
private System.Windows.Forms.Label lblVAT;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lblDiscount;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label lblSubTotal;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label lblDate;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label lblCashier;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Label lblCustomer;
private System.Windows.Forms.Label label99;
private System.Windows.Forms.Panel holding;
private System.Windows.Forms.Label label13;
private MetroFramework.Controls.MetroProgressSpinner metroProgressSpinner1;
}
}

342
BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.cs

@ -0,0 +1,342 @@
using BarcodeLib;
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 Microsoft.Reporting.WinForms;
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 Point_Of_Sale_Managment.CashierModule
{
public partial class ReceiptModule : Form
{
SqlConnection cn;
SqlCommand cm;
SqlDataReader dr;
DatabaseConn conn = new DatabaseConn();
bool soldToCustomer = false;
public static List<ReceiptObject> receiptClasses = new List<ReceiptObject>();
public static List<bottom> receiptClasses2 = new List<bottom>();
string printLocation = "";
string printerReceiptDefault = Settings.Default.ReceiptPrinter;
private decimal m_balance,m_tendered,m_vat = 0;
private string receiptID;
public ReceiptModule(string receiptID = null)
{
InitializeComponent();
cn = new SqlConnection(conn.MyConnection());
holding.Left = (ClientSize.Width - holding.Width) / 2;
if (!String.IsNullOrEmpty(receiptID))
this.receiptID = receiptID;
}
private void SaleCancellation_Load(object sender, EventArgs e)
{
}
private void SaleCancellation_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
this.Close();
}
}
private async void TextBox1_TextChanged(object sender, EventArgs e)
{
holding.Visible = true;
await getReceipt(textBox1.Text);
holding.Visible = false;
}
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", Settings.Default.BranchID);
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", Settings.Default.BranchID);
cm.Parameters.AddWithValue("@cancelledBy", MainLogin.login_user);
cm.Parameters.AddWithValue("@countID", transactionKey + Settings.Default.BranchID + DateTime.Now.ToString("yyyyMMddHHmmssfff"));
cm.Transaction = transaction;
cm.ExecuteNonQuery();
if (soldToCustomer)
{
cm = new SqlCommand("Declare @debit decimal(19,2) = Case when (Select paid from CreditPurchases where receiptID = @transaction and branchID = @branchID) is not null then " +
"(Select paid from CreditPurchases where receiptID = @transaction and branchID = @branchID) else " +
"(Select SUM(total) from tblCart where transno = @transaction and branchID = @branchID) end " +
"Declare @customerID varchar(50) = (Select customerID from tblCustomerPurchases where transactionID = @transaction and branchID = @branchID) " +
"Declare @total decimal(19,2) = Case when (Select SUM(debit - credit) from CustomerAccounts where branchID = @branchID " +
"and customerID = @customerID) is null then 0 else (Select SUM(debit - credit) from CustomerAccounts where branchID = @branchID and customerID = @customerID) end " +
"set @total = (@total + @debit) - @credit " +
"Insert into CustomerAccounts(customerID, transactionID, date, debit, credit, balance, comments, branchID, countID) " +
"Values(@customerID, @transactionID, @date, @debit, @credit, @total, @comments, @branchID, @countID) " +
"Delete from tblCustomerPurchases where transactionID = @transaction and branchID = @branchID and customerID = @customerID", cn);
cm.Parameters.AddWithValue("@transaction", transactionKey);
cm.Parameters.AddWithValue("@transactionID", DateTime.Now.ToString("yyyyMMddHHmmssfff"));
cm.Parameters.AddWithValue("@branchID", Settings.Default.BranchID);
cm.Parameters.AddWithValue("@credit", 0);
cm.Parameters.AddWithValue("@comments", "ReceiptID with transaction ID : " + transactionKey + " was cancelled");
cm.Parameters.AddWithValue("@date", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));
cm.Parameters.AddWithValue("@countID", transactionKey + Settings.Default.BranchID + DateTime.Now.ToString("yyyyMMddHHmmssfff"));
cm.Transaction = transaction;
cm.ExecuteNonQuery();
}
foreach (DataGridViewRow row in dataGridView1.Rows)
{
cm = new SqlCommand("Declare @baseunit varchar(150) = (Select baseUnit from tblProduct where pcode = @pcode) " +
"Declare @dquantity int = Case when @baseUnit = @unit then 1 * @quantity else " +
"(Select[quantity/unit] * @quantity as quantity from ProductAltUnit where pcode = @pcode and unitCode = @unit and branchID = @branchID) end " +
"Declare @newQuantity int = (Select MAX(quantity) + MIN(@dquantity) from tblInventory where pcode = @pcode and branchID = @branchID) " +
"Update tblInventory set quantity = @newQuantity where pcode = @pcode and branchID = @branchID " +
"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("@unit", row.Cells[7].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", Settings.Default.BranchID);
cm.Parameters.AddWithValue("@countID", transactionKey + Settings.Default.BranchID + 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 async Task getReceipt(string key)
{
m_balance = 0;
m_tendered = 0;
m_vat = 0;
int i = 1;
try
{
dataGridView1.Invoke(new Action(() =>
{
decimal total = (decimal)0.00;
decimal discount = (decimal)0.00;
decimal vat = (decimal)0.00;
dataGridView1.Rows.Clear();
cn.Open();
cm = new SqlCommand("Exec usp_fetch_receipts_by_transaction_number @BranchID = @branch,@TransNumber = @transno", cn);
cm.Parameters.AddWithValue("@transno", key);
cm.Parameters.AddWithValue("@branch", Settings.Default.BranchID);
dr = cm.ExecuteReader();
bool found = dr.HasRows;
while (dr.Read())
{
dataGridView1.Rows.Add(i, dr["Product"].ToString().ToUpper(), dr["Price"].ToString().ToUpper(), dr["quantity"].ToString(),
dr["unitName"].ToString(), dr["total"].ToString(), dr["ProductID"].ToString(), dr["unit"].ToString());
lblBalance.Text = $" {Settings.Default.currrencyCode} {dr["balance"].ToString()}";
lblTendered.Text = $" {Settings.Default.currrencyCode} {dr["tendered"].ToString()}";
lblDiscount.Text = $" {Settings.Default.currrencyCode} {dr["discount"].ToString()}";
lblDate.Text = dr["date"].ToString();
lblCashier.Text = dr["cashier"].ToString();
lblCustomer.Text = !String.IsNullOrEmpty(dr["name_key1"].ToString()) ? dr["name_key1"].ToString() : "Walk-In Purchase";
discount = decimal.Parse(dr["discount"].ToString());
vat = decimal.Parse(!String.IsNullOrEmpty(dr["vat"].ToString()) ? dr["vat"].ToString() : "0");
lblVAT.Text = $" {Settings.Default.currrencyCode} {vat}";
total += decimal.Parse(dr["total"].ToString());
m_balance = decimal.Parse(dr["balance"].ToString());
m_tendered = decimal.Parse(dr["tendered"].ToString());
m_vat = vat;
i++;
}
dr.Close();
cn.Close();
lblSubTotal.Text = $" {Settings.Default.currrencyCode} {total}";
lblBillTotal.Text = $" {Settings.Default.currrencyCode} {total - discount + vat}";
if (found)
{
detailsBox.Visible = true;
btnPrint.Enabled = true;
btnCancel.Enabled = true;
}
else
{
detailsBox.Visible = false;
btnPrint.Enabled = false;
btnCancel.Enabled = false;
}
}));
}
catch (Exception ex)
{
ErrorLogging.WriteToFile(ex.ToString());
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 BtnCancel_Click(object sender, EventArgs e)
{
string title = "Confirm Cancellation";
string message = "Are you sure you would like to cancel this transaction ?";
Confirmation confirmation = new Confirmation(title, message);
confirmation.BringToFront();
confirmation.ShowDialog();
if (confirmation.DialogResult == DialogResult.Yes)
{
if (Settings.Default.cancellationConfirmation)
{
Prompt promptCancel = new Prompt();
promptCancel.BringToFront();
promptCancel.ShowDialog();
if ((promptCancel.DialogResult == DialogResult.OK) && (promptCancel.confirmed))
{
cancelSales(textBox1.Text);
ClearModule();
}
}
else
{
cancelSales(textBox1.Text);
ClearModule();
}
}
}
private void ClearModule()
{
dataGridView1.Rows.Clear();
textBox1.Text = "";
lblBalance.Text = "";
lblTendered.Text = "";
lblDiscount.Text = "";
lblDate.Text = "";
lblCashier.Text = "";
lblCustomer.Text = "";
lblVAT.Text = "";
lblSubTotal.Text = "";
lblBillTotal.Text = "";
detailsBox.Visible = false;
btnPrint.Enabled = false;
btnCancel.Enabled = false;
}
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);
}
private async void btnPrint_Click(object sender, EventArgs e)
{
holding.Visible = true;
Task task = new Task<int>(() =>{
PreparePrint();
return 1;
});
task.Start();
await task;
holding.Visible = false;
}
private async Task PreparePrint()
{
try
{
textBox1.Invoke(new Action(() =>
{
receiptClasses.Clear();
receiptClasses2.Clear();
MemoryStream ms = new MemoryStream();
getBarcodeImage(textBox1.Text).Save(ms, ImageFormat.Png);
byte[] imageBytes = ms.ToArray();
string barcodeStringImage = Convert.ToBase64String(imageBytes);
bottom bottomReceipt = new bottom(lblVAT.Text, textBox1.Text, lblCashier.Text,m_balance,m_tendered, lblDiscount.Text, lblDate.Text,
lblSubTotal.Text, lblBillTotal.Text, Form1.bCompanyName, Form1.branchName, Form1.branchLocation, Form1.branchTel, Form1.tin, Form1.vatno,
barcodeStringImage);
receiptClasses2.Add(bottomReceipt);
foreach (DataGridViewRow row in dataGridView1.Rows)
{
ReceiptObject receipt = new ReceiptObject(row.Cells[1].Value.ToString(), decimal.Parse(row.Cells[2].Value.ToString()),
int.Parse(row.Cells[3].Value.ToString()), decimal.Parse(row.Cells[5].Value.ToString()));
receiptClasses.Add(receipt);
}
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) +
@"\Receipt.rdlc";
report.ReportPath = fullpath;
report.DataSources.Add(new ReportDataSource("ReceiptReport", receiptClasses));
report.DataSources.Add(new ReportDataSource("ReceiptRest", receiptClasses2));
ReceiptConfig.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) +
@"\Receipt.rdlc";
report.ReportPath = fullpath;
report.DataSources.Add(new ReportDataSource("ReceiptReport", receiptClasses));
report.DataSources.Add(new ReportDataSource("ReceiptRest", receiptClasses2));
ReceiptConfig.PrintToPrinter(report, printLocation, printerReceiptDefault);
}
}));
}
catch (Exception ex)
{
}
}
}
}

2423
BISKILOG POS BASIC/Cashier Module/POS Module/ReceiptModule.resx

File diff suppressed because it is too large

1132
BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.Designer.cs

File diff suppressed because it is too large

1207
BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.cs

File diff suppressed because it is too large

2488
BISKILOG POS BASIC/Cashier Module/POS Module/SalesPOS.resx

File diff suppressed because it is too large

154
BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.Designer.cs

@ -0,0 +1,154 @@
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.button1 = new System.Windows.Forms.Button();
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(132, 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.button1);
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);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Green;
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Location = new System.Drawing.Point(132, 41);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(70, 38);
this.button1.TabIndex = 2;
this.button1.Text = "ADD";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// 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;
private System.Windows.Forms.Button button1;
}
}

99
BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.cs

@ -0,0 +1,99 @@
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;
}
private void button1_Click(object sender, EventArgs e)
{
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();
}
}
}
}

7330
BISKILOG POS BASIC/Cashier Module/POS Module/quantitycsManual.resx

File diff suppressed because it is too large

524
BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.Designer.cs

@ -0,0 +1,524 @@
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.holding = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.metroProgressSpinner1 = new MetroFramework.Controls.MetroProgressSpinner();
this.panel1.SuspendLayout();
this.gradientPanel1.SuspendLayout();
this.holding.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);
//
// holding
//
this.holding.BackColor = System.Drawing.SystemColors.Control;
this.holding.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.holding.Controls.Add(this.label13);
this.holding.Controls.Add(this.metroProgressSpinner1);
this.holding.Location = new System.Drawing.Point(56, 194);
this.holding.Name = "holding";
this.holding.Size = new System.Drawing.Size(259, 73);
this.holding.TabIndex = 15;
this.holding.Visible = false;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Segoe UI", 12F);
this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(52)))), ((int)(((byte)(69)))));
this.label13.Location = new System.Drawing.Point(13, 7);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(187, 21);
this.label13.TabIndex = 1;
this.label13.Text = "Processing transaction.......";
//
// metroProgressSpinner1
//
this.metroProgressSpinner1.Location = new System.Drawing.Point(107, 32);
this.metroProgressSpinner1.Maximum = 100;
this.metroProgressSpinner1.Name = "metroProgressSpinner1";
this.metroProgressSpinner1.Size = new System.Drawing.Size(37, 36);
this.metroProgressSpinner1.TabIndex = 0;
this.metroProgressSpinner1.UseCustomBackColor = true;
this.metroProgressSpinner1.UseSelectable = true;
//
// 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.holding);
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.holding.ResumeLayout(false);
this.holding.PerformLayout();
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;
private System.Windows.Forms.Panel holding;
private System.Windows.Forms.Label label13;
private MetroFramework.Controls.MetroProgressSpinner metroProgressSpinner1;
}
}

195
BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.cs

@ -0,0 +1,195 @@
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;
holding.Left = (this.Width - holding.Width) / 2;
}
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));
holding.Visible = true;
task.Start();
int result = await task;
if (result == 1)
{
holding.Visible = false;
string title = "Success";
string message = "Payment made successfully";
NoAction noAction = new NoAction(title, message);
noAction.BringToFront();
noAction.ShowDialog();
this.Close();
}
else
{
holding.Visible = false;
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
{
holding.Visible = false;
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();
}
}
}
}

7330
BISKILOG POS BASIC/Cashier Module/POS Module/settlePayment.resx

File diff suppressed because it is too large

120
BISKILOG POS BASIC/Cashier Module/Products Module/.resx

@ -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>

402
BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.Designer.cs

@ -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;
}
}

86
BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.cs

@ -0,0 +1,86 @@
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("EXEC usp_product_list @filter,@branch", cn);
cm.Parameters.AddWithValue("@filter", txtSearch.Text);
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(), String.IsNullOrEmpty(dr[6].ToString()) ? "N/A" : dr[6].ToString(),
String.IsNullOrEmpty(dr[7].ToString()) ? "N/A" : currency + dr[7].ToString(), String.IsNullOrEmpty(dr[8].ToString()) ? "N/A" : 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)
{
if (e.RowIndex != -1)
{
string id = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
string productname = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
string desc = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
string bar = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
InfoWindow info = new InfoWindow(id, productname, bar, desc);
info.BringToFront();
info.ShowDialog();
}
}
}
}

192
BISKILOG POS BASIC/Cashier Module/Products Module/ProductListForm.resx

@ -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>

187
BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.Designer.cs

@ -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;
}
}

48
BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.cs

@ -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();
}
}
}

129
BISKILOG POS BASIC/Cashier Module/Products Module/formBrandList.resx

@ -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>

185
BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.Designer.cs

@ -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;
}
}

47
BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.cs

@ -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();
}
}
}

129
BISKILOG POS BASIC/Cashier Module/Products Module/formCategoryList.resx

@ -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>

928
BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.Designer.cs

@ -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;
}
}

43
BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.cs

@ -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;
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/BranchSetup.resx

@ -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>

318
BISKILOG POS BASIC/Cashier Module/Settings/Emailer.Designer.cs

@ -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;
}
}

119
BISKILOG POS BASIC/Cashier Module/Settings/Emailer.cs

@ -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;
}
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/Emailer.resx

@ -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>

186
BISKILOG POS BASIC/Cashier Module/Settings/Finished.Designer.cs

@ -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;
}
}

38
BISKILOG POS BASIC/Cashier Module/Settings/Finished.cs

@ -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();
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/Finished.resx

@ -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>

378
BISKILOG POS BASIC/Cashier Module/Settings/Hardware.Designer.cs

@ -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;
}
}

74
BISKILOG POS BASIC/Cashier Module/Settings/Hardware.cs

@ -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;
}
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/Hardware.resx

@ -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>

198
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.Designer.cs

@ -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;
}
}

22
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.cs

@ -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;
}
}
}

125
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/BarcodeScannerSetup.resx

@ -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>

127
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.Designer.cs

@ -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;
}
}

53
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.cs

@ -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();
}
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/Barcode_LabelPrinter.resx

@ -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>

356
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.Designer.cs

@ -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;
}
}

252
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.cs

@ -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();
}
}
}

7330
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/HardwareSetupWizard.resx

File diff suppressed because it is too large

198
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.Designer.cs

@ -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;
}
}

22
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.cs

@ -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;
}
}
}

126
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/RFID.resx

@ -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>

126
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.Designer.cs

@ -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;
}
}

52
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.cs

@ -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();
}
}
}
}

120
BISKILOG POS BASIC/Cashier Module/Settings/Hardware/ReceiptPrinter.resx

@ -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>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save