Initial commit

main
muhammad.faique 2025-02-03 16:14:01 +05:00
commit 3265172aef
407 changed files with 45059 additions and 0 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

BIN
.vs/AVS/v16/.suo Normal file

Binary file not shown.

BIN
.vs/AVS/v17/.futdcache.v2 Normal file

Binary file not shown.

BIN
.vs/AVS/v17/.suo Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

BIN
.vs/Documents/v17/.wsuo Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,8 @@
{
"ExpandedNodes": [
"",
"\\My Music"
],
"SelectedNode": "\\MainForm.cs",
"PreviewInSolutionExplorer": false
}

BIN
.vs/slnx.sqlite Normal file

Binary file not shown.

69
AVS.csproj Normal file
View File

@ -0,0 +1,69 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<ApplicationIcon />
<Win32Resource />
</PropertyGroup>
<ItemGroup>
<None Remove="C:\Users\muhammad.faique\.nuget\packages\microsoft.net.compilers\1.0.0\build\..\tools\**" />
</ItemGroup>
<ItemGroup>
<Content Include="bin\Debug\netcoreapp3.1\logo-dark.ico" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\netcoreapp3.1\logout.png" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\netcoreapp3.1\user.png" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\netcoreapp3.1\pass.png" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\netcoreapp3.1\red.png" />
</ItemGroup>
<ItemGroup>
<None Include="bin\Debug\netcoreapp3.1\blue.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MaterialSkin" Version="0.2.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
<PackageReference Include="MySql.Data" Version="8.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SerialPortStream" Version="2.4.1" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
<PackageReference Include="System.Data.SQLite" Version="1.0.118" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
<PackageReference Include="System.Management" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
</Project>

17
AVS.csproj.user Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>D:\Projects\AVS\Properties\PublishProfiles\ClickOnceProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="CartonForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="LoginForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="MainForm.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

25
AVS.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32929.386
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AVS", "AVS.csproj", "{8B0D8243-4104-4765-A8A5-4E549CCD0E54}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8B0D8243-4104-4765-A8A5-4E549CCD0E54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8B0D8243-4104-4765-A8A5-4E549CCD0E54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8B0D8243-4104-4765-A8A5-4E549CCD0E54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8B0D8243-4104-4765-A8A5-4E549CCD0E54}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {86FA99AD-446C-4D18-A907-CE93AE4D6113}
EndGlobalSection
EndGlobal

43
AutoClosingMessageBox.cs Normal file
View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace AVS
{
class AutoClosingMessageBox
{
System.Threading.Timer _timeoutTimer;
string _caption;
AutoClosingMessageBox(string text, string caption, int timeout)
{
_caption = caption;
_timeoutTimer = new System.Threading.Timer(OnTimerElapsed,
null, timeout, System.Threading.Timeout.Infinite);
using (_timeoutTimer)
MessageBox.Show(text, caption);
}
public static void Show(string text, string caption, int timeout)
{
new AutoClosingMessageBox(text, caption, timeout);
}
void OnTimerElapsed(object state)
{
IntPtr mbWnd = FindWindow("#32770", _caption); // lpClassName is #32770 for MessageBox
if (mbWnd != IntPtr.Zero)
SendMessage(mbWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);
_timeoutTimer.Dispose();
}
const int WM_CLOSE = 0x0010;
[System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)]
static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
private Label lblMessage;
}
}

174
CartonForm.Designer.cs generated Normal file
View File

@ -0,0 +1,174 @@

namespace AVS
{
partial class CartonForm
{
/// <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.txt_barcode = new System.Windows.Forms.TextBox();
this.txt_model_no = new System.Windows.Forms.TextBox();
this.lbl_status = new System.Windows.Forms.Label();
this.txt_result = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.lbl_title = new System.Windows.Forms.Label();
this.lbl_qr = new System.Windows.Forms.Label();
this.lbl_model = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// txt_barcode
//
this.txt_barcode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txt_barcode.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.txt_barcode.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txt_barcode.Location = new System.Drawing.Point(9, 83);
this.txt_barcode.MaxLength = 1000;
this.txt_barcode.Name = "txt_barcode";
this.txt_barcode.Size = new System.Drawing.Size(376, 29);
this.txt_barcode.TabIndex = 17;
this.txt_barcode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_barcode_KeyPress);
//
// txt_model_no
//
this.txt_model_no.BackColor = System.Drawing.SystemColors.MenuBar;
this.txt_model_no.Enabled = false;
this.txt_model_no.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.txt_model_no.Location = new System.Drawing.Point(391, 83);
this.txt_model_no.Name = "txt_model_no";
this.txt_model_no.Size = new System.Drawing.Size(134, 29);
this.txt_model_no.TabIndex = 18;
//
// lbl_status
//
this.lbl_status.AutoSize = true;
this.lbl_status.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_status.Location = new System.Drawing.Point(12, 130);
this.lbl_status.Name = "lbl_status";
this.lbl_status.Size = new System.Drawing.Size(0, 21);
this.lbl_status.TabIndex = 19;
//
// txt_result
//
this.txt_result.BackColor = System.Drawing.SystemColors.MenuBar;
this.txt_result.Enabled = false;
this.txt_result.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txt_result.Location = new System.Drawing.Point(5, 6);
this.txt_result.Name = "txt_result";
this.txt_result.Size = new System.Drawing.Size(516, 33);
this.txt_result.TabIndex = 21;
//
// panel1
//
this.panel1.BackColor = System.Drawing.SystemColors.Control;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.txt_result);
this.panel1.Location = new System.Drawing.Point(2, 170);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(527, 48);
this.panel1.TabIndex = 23;
this.panel1.Visible = false;
//
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.Highlight;
this.panel2.Controls.Add(this.lbl_title);
this.panel2.Location = new System.Drawing.Point(0, 11);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(531, 36);
this.panel2.TabIndex = 24;
//
// lbl_title
//
this.lbl_title.AutoSize = true;
this.lbl_title.Font = new System.Drawing.Font("Segoe UI", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_title.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_title.Location = new System.Drawing.Point(4, -2);
this.lbl_title.Name = "lbl_title";
this.lbl_title.Size = new System.Drawing.Size(204, 37);
this.lbl_title.TabIndex = 0;
this.lbl_title.Text = "Shipping mark";
this.lbl_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl_qr
//
this.lbl_qr.AutoSize = true;
this.lbl_qr.Location = new System.Drawing.Point(7, 62);
this.lbl_qr.Name = "lbl_qr";
this.lbl_qr.Size = new System.Drawing.Size(57, 15);
this.lbl_qr.TabIndex = 25;
this.lbl_qr.Text = "Scan QR :";
//
// lbl_model
//
this.lbl_model.AutoSize = true;
this.lbl_model.Location = new System.Drawing.Point(391, 62);
this.lbl_model.Name = "lbl_model";
this.lbl_model.Size = new System.Drawing.Size(51, 15);
this.lbl_model.TabIndex = 26;
this.lbl_model.Text = "Model #";
//
// CartonForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(531, 348);
this.Controls.Add(this.lbl_model);
this.Controls.Add(this.lbl_qr);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.lbl_status);
this.Controls.Add(this.txt_model_no);
this.Controls.Add(this.txt_barcode);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.MinimizeBox = false;
this.Name = "CartonForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CartonForm_FormClosing);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox txt_barcode;
private System.Windows.Forms.TextBox txt_model_no;
private System.Windows.Forms.Label lbl_status;
private System.Windows.Forms.TextBox txt_result;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label lbl_title;
private System.Windows.Forms.Label lbl_qr;
private System.Windows.Forms.Label lbl_model;
}
}

118
CartonForm.cs Normal file
View File

@ -0,0 +1,118 @@
using MaterialSkin.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Media;
using System.Windows.Forms;
namespace AVS
{
public partial class CartonForm : Form
{
public SoundPlayer soundPlayer = new SoundPlayer();
public int ID;
public CartonForm(string modelNO, int id)
{
InitializeComponent();
this.ControlBox = false;
txt_model_no.Text = modelNO;
ID = id;
}
private void txt_barcode_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)13)
{
if (txt_barcode.Text.Length > 0)
{
txt_result.Text = txt_barcode.Text;
//Remove unique date from shipping mark
if (txt_barcode.Text.Contains(";"))
{
txt_barcode.Text = txt_barcode.Text.Split(';')[0].Trim();
}
if (txt_model_no.Text.ToUpper().TrimEnd() == txt_barcode.Text.ToUpper().TrimEnd())
{
lbl_status.ForeColor = Color.Green;
lbl_status.Text = "CARTON MATCHED";
panel1.Visible = false;
// Optionally hide the form without closing
HideFormOrReset();
// Set up a timer to close the form after 5 seconds
////Timer timer = new Timer();
////timer.Interval = 1000; // 5 seconds
////timer.Tick += (s, args) =>
////{
//// timer.Stop(); // Stop the timer
//// this.Close(); // Close the form
////};
////timer.Start();
}
else
{
string FinalValue = txt_result.Text.Trim().ToString();
LiteDbClass liteDbClass = new LiteDbClass(null);
liteDbClass.UpdateCartonValue(FinalValue, ID);
lbl_status.ForeColor = Color.Red;
lbl_status.Text = "WRONG CARTON";
showControls();
PlayAlertSound();
}
txt_barcode.Text = "";
}
}
}
private void HideFormOrReset()
{
// Option 1: Hide the form if its a secondary form
if (this != Application.OpenForms[0])
{
this.Hide();
}
else
{
// Option 2: Reset form fields without closing
txt_barcode.Clear();
txt_result.Clear();
lbl_status.Text = "Ready for next scan";
panel1.Visible = true;
}
}
public void showControls()
{
panel1.Visible = true;
}
void PlayAlertSound()
{
string soundFilePath = @"C:\Users\Public\Documents\AVS\alert-alaram.wav";
soundPlayer.SoundLocation = soundFilePath;
soundPlayer.PlayLooping();
}
private void CartonForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (soundPlayer != null)
{
soundPlayer.Stop();
}
}
}
}

60
CartonForm.resx Normal file
View File

@ -0,0 +1,60 @@
<root>
<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>

45
ConnectionClass.cs Normal file
View File

@ -0,0 +1,45 @@
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace AVS
{
class ConnectionClass
{
public string connectionString = "Server=192.168.90.75;Database=world;Uid=utopia;Pwd=Utopia01";
public string SERVER_URL = "https://cosmos.utopiadeals.com/cosmos/rest/website/product-detail?data=";
public string SERVER_URL_CONTAINER = "https://cosmos.utopiadeals.com/cosmos/rest/get-container-items?containerNo=";
public string SERVER_URL_MOEDEL_NO = "https://cosmos.utopiadeals.com/cosmos/rest/get-product-details?modelNo=";
public void OpenConnectionMysql(MySqlConnection connection)
{
try
{
connection.Open();
}
catch (Exception ex)
{
MessageBox.Show("Error opening connection: " + ex.Message);
}
}
public void CloseConnectionMysql(MySqlConnection connection)
{
try
{
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Error opening connection: " + ex.Message);
}
}
}
}

68
DailyLog.cs Normal file
View File

@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AVS
{
public class DailyLog
{
public string FNSKU { get; set; }
public DateTime RECORD_DATE { get; set; }
public string SYS_IP { get; set; }
public string USER_ID { get; set; }
public decimal LIVE_WEIGHT { get; set; }
public string WRONG_FNSKU { get; set; }
public bool IS_WEIGHT_WRONG { get; set; }
public bool IS_FNSKU_WRONG { get; set; }
public string MODEL_NO { get; set; }
public decimal NET_WEIGHT { get; set; }
public string WRONG_CARTON { get; set; }
public string MARKET_PLACE { get; set; }
public string PC_NAME { get; set; }
public class TableColumn
{
public string Name { get; set; }
public string DataType { get; set; }
}
public class DailyLogTable
{
public static List<TableColumn> GetColumns()
{
return new List<TableColumn>
{
new TableColumn { Name = "Id", DataType = "INTEGER PRIMARY KEY AUTOINCREMENT" },
new TableColumn { Name = "FNSKU", DataType = "TEXT" },
new TableColumn { Name = "RECORD_DATE", DataType = "DATETIME" },
new TableColumn { Name = "SYS_IP", DataType = "TEXT" },
new TableColumn { Name = "USER_ID", DataType = "TEXT" },
new TableColumn { Name = "LIVE_WEIGHT", DataType = "REAL" },
new TableColumn { Name = "WRONG_FNSKU", DataType = "TEXT" },
new TableColumn { Name = "IS_WEIGHT_WRONG", DataType = "BOOLEAN" },
new TableColumn { Name = "IS_FNSKU_WRONG", DataType = "BOOLEAN" },
new TableColumn { Name = "MODEL_NO", DataType = "TEXT" },
new TableColumn { Name = "NET_WEIGHT", DataType = "REAL" },
new TableColumn { Name = "WRONG_CARTON", DataType = "TEXT" },
new TableColumn { Name = "MARKET_PLACE", DataType = "TEXT" },
new TableColumn { Name = "PC_NAME", DataType = "TEXT" }
};
}
}
public static string GetColumnsDefinition(List<TableColumn> columns)
{
// Convert the list of columns into a string for the CREATE TABLE command
return string.Join(", ", columns.Select(c => $"{c.Name} {c.DataType}"));
}
}
}

1147
LiteDbClass.cs Normal file

File diff suppressed because it is too large Load Diff

272
LoginForm.Designer.cs generated Normal file
View File

@ -0,0 +1,272 @@

namespace AVS
{
partial class LoginForm
{
/// <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);
}
private void InitializeComponent()
{
this.txt_userName = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.txt_password = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.btn_login = new MaterialSkin.Controls.MaterialRaisedButton();
this.lbl_wrong = new System.Windows.Forms.Label();
this.pb_user = new System.Windows.Forms.PictureBox();
this.pb_pass = new System.Windows.Forms.PictureBox();
this.lbl_login = new System.Windows.Forms.Label();
this.lbl_title = new System.Windows.Forms.Label();
this.btn_close = new MaterialSkin.Controls.MaterialRaisedButton();
this.panel_blue = new System.Windows.Forms.Panel();
this.cb_remember = new MaterialSkin.Controls.MaterialCheckBox();
this.cb_container = new MaterialSkin.Controls.MaterialCheckBox();
this.cb_carton = new MaterialSkin.Controls.MaterialCheckBox();
((System.ComponentModel.ISupportInitialize)(this.pb_user)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_pass)).BeginInit();
this.SuspendLayout();
//
// txt_userName
//
this.txt_userName.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.txt_userName.Depth = 0;
this.txt_userName.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txt_userName.Hint = "User Name";
this.txt_userName.Location = new System.Drawing.Point(72, 184);
this.txt_userName.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.txt_userName.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_userName.Name = "txt_userName";
this.txt_userName.PasswordChar = '\0';
this.txt_userName.SelectedText = "";
this.txt_userName.SelectionLength = 0;
this.txt_userName.SelectionStart = 0;
this.txt_userName.Size = new System.Drawing.Size(204, 23);
this.txt_userName.TabIndex = 0;
this.txt_userName.UseSystemPasswordChar = false;
//
// txt_password
//
this.txt_password.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.txt_password.Depth = 0;
this.txt_password.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txt_password.Hint = "Password";
this.txt_password.Location = new System.Drawing.Point(72, 230);
this.txt_password.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.txt_password.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_password.Name = "txt_password";
this.txt_password.PasswordChar = '*';
this.txt_password.SelectedText = "";
this.txt_password.SelectionLength = 0;
this.txt_password.SelectionStart = 0;
this.txt_password.Size = new System.Drawing.Size(204, 23);
this.txt_password.TabIndex = 1;
this.txt_password.UseSystemPasswordChar = false;
//
// btn_login
//
this.btn_login.Depth = 0;
this.btn_login.Location = new System.Drawing.Point(351, 313);
this.btn_login.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.btn_login.MouseState = MaterialSkin.MouseState.HOVER;
this.btn_login.Name = "btn_login";
this.btn_login.Primary = true;
this.btn_login.Size = new System.Drawing.Size(88, 38);
this.btn_login.TabIndex = 3;
this.btn_login.Text = "LOGIN";
this.btn_login.UseVisualStyleBackColor = true;
this.btn_login.Click += new System.EventHandler(this.btn_login_Click);
//
// lbl_wrong
//
this.lbl_wrong.AutoSize = true;
this.lbl_wrong.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_wrong.ForeColor = System.Drawing.Color.DarkRed;
this.lbl_wrong.Location = new System.Drawing.Point(80, 113);
this.lbl_wrong.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl_wrong.Name = "lbl_wrong";
this.lbl_wrong.Size = new System.Drawing.Size(274, 24);
this.lbl_wrong.TabIndex = 4;
this.lbl_wrong.Text = "WRONG ARTICLE FOUND !";
this.lbl_wrong.Visible = false;
//
// pb_user
//
this.pb_user.BackgroundImage = global::AVS.Resource.user;
this.pb_user.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_user.Location = new System.Drawing.Point(13, 172);
this.pb_user.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.pb_user.Name = "pb_user";
this.pb_user.Size = new System.Drawing.Size(35, 35);
this.pb_user.TabIndex = 6;
this.pb_user.TabStop = false;
//
// pb_pass
//
this.pb_pass.BackgroundImage = global::AVS.Resource.pass;
this.pb_pass.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_pass.Location = new System.Drawing.Point(13, 224);
this.pb_pass.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.pb_pass.Name = "pb_pass";
this.pb_pass.Size = new System.Drawing.Size(35, 35);
this.pb_pass.TabIndex = 5;
this.pb_pass.TabStop = false;
//
// lbl_login
//
this.lbl_login.AutoSize = true;
this.lbl_login.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_login.ForeColor = System.Drawing.Color.DarkRed;
this.lbl_login.Location = new System.Drawing.Point(149, 113);
this.lbl_login.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl_login.Name = "lbl_login";
this.lbl_login.Size = new System.Drawing.Size(141, 24);
this.lbl_login.TabIndex = 7;
this.lbl_login.Text = "LOGIN FORM";
//
// lbl_title
//
this.lbl_title.AutoSize = true;
this.lbl_title.BackColor = System.Drawing.Color.Transparent;
this.lbl_title.Font = new System.Drawing.Font("Algerian", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_title.ForeColor = System.Drawing.Color.WhiteSmoke;
this.lbl_title.Location = new System.Drawing.Point(67, 35);
this.lbl_title.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl_title.Name = "lbl_title";
this.lbl_title.Size = new System.Drawing.Size(316, 21);
this.lbl_title.TabIndex = 21;
this.lbl_title.Text = "Article Verification Software";
//
// btn_close
//
this.btn_close.Depth = 0;
this.btn_close.Location = new System.Drawing.Point(438, 3);
this.btn_close.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.btn_close.MouseState = MaterialSkin.MouseState.HOVER;
this.btn_close.Name = "btn_close";
this.btn_close.Primary = true;
this.btn_close.Size = new System.Drawing.Size(34, 20);
this.btn_close.TabIndex = 25;
this.btn_close.Text = "X";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// panel_blue
//
this.panel_blue.BackColor = System.Drawing.SystemColors.Highlight;
this.panel_blue.Location = new System.Drawing.Point(0, 396);
this.panel_blue.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.panel_blue.Name = "panel_blue";
this.panel_blue.Size = new System.Drawing.Size(474, 17);
this.panel_blue.TabIndex = 26;
//
// cb_remember
//
this.cb_remember.AutoSize = true;
this.cb_remember.Checked = true;
this.cb_remember.CheckState = System.Windows.Forms.CheckState.Checked;
this.cb_remember.Depth = 0;
this.cb_remember.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.cb_remember.Location = new System.Drawing.Point(63, 270);
this.cb_remember.Margin = new System.Windows.Forms.Padding(0);
this.cb_remember.MouseLocation = new System.Drawing.Point(-1, -1);
this.cb_remember.MouseState = MaterialSkin.MouseState.HOVER;
this.cb_remember.Name = "cb_remember";
this.cb_remember.Ripple = true;
this.cb_remember.Size = new System.Drawing.Size(97, 30);
this.cb_remember.TabIndex = 27;
this.cb_remember.Text = "Remember";
this.cb_remember.UseVisualStyleBackColor = true;
//
// cb_container
//
this.cb_container.AutoSize = true;
this.cb_container.Depth = 0;
this.cb_container.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.cb_container.Location = new System.Drawing.Point(177, 337);
this.cb_container.Margin = new System.Windows.Forms.Padding(0);
this.cb_container.MouseLocation = new System.Drawing.Point(-1, -1);
this.cb_container.MouseState = MaterialSkin.MouseState.HOVER;
this.cb_container.Name = "cb_container";
this.cb_container.Ripple = true;
this.cb_container.Size = new System.Drawing.Size(113, 30);
this.cb_container.TabIndex = 28;
this.cb_container.Text = "For Container ";
this.cb_container.UseVisualStyleBackColor = true;
this.cb_container.Visible = false;
//
// cb_carton
//
this.cb_carton.AutoSize = true;
this.cb_carton.Depth = 0;
this.cb_carton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.cb_carton.Location = new System.Drawing.Point(177, 270);
this.cb_carton.Margin = new System.Windows.Forms.Padding(0);
this.cb_carton.MouseLocation = new System.Drawing.Point(-1, -1);
this.cb_carton.MouseState = MaterialSkin.MouseState.HOVER;
this.cb_carton.Name = "cb_carton";
this.cb_carton.Ripple = true;
this.cb_carton.Size = new System.Drawing.Size(95, 30);
this.cb_carton.TabIndex = 29;
this.cb_carton.Text = "For Carton";
this.cb_carton.UseVisualStyleBackColor = true;
//
// LoginForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.ClientSize = new System.Drawing.Size(474, 415);
this.Controls.Add(this.cb_carton);
this.Controls.Add(this.cb_container);
this.Controls.Add(this.cb_remember);
this.Controls.Add(this.panel_blue);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.lbl_title);
this.Controls.Add(this.lbl_login);
this.Controls.Add(this.pb_user);
this.Controls.Add(this.pb_pass);
this.Controls.Add(this.lbl_wrong);
this.Controls.Add(this.btn_login);
this.Controls.Add(this.txt_password);
this.Controls.Add(this.txt_userName);
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.Name = "LoginForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Load += new System.EventHandler(this.LoginForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pb_user)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_pass)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private MaterialSkin.Controls.MaterialSingleLineTextField txt_userName;
private MaterialSkin.Controls.MaterialSingleLineTextField txt_password;
private MaterialSkin.Controls.MaterialRaisedButton btn_login;
private System.Windows.Forms.Label lbl_wrong;
private System.Windows.Forms.PictureBox pb_pass;
private System.Windows.Forms.PictureBox pb_user;
private System.Windows.Forms.Label lbl_login;
private System.Windows.Forms.Label lbl_title;
private MaterialSkin.Controls.MaterialRaisedButton btn_close;
private System.Windows.Forms.Panel panel_blue;
private MaterialSkin.Controls.MaterialCheckBox cb_remember;
private MaterialSkin.Controls.MaterialCheckBox cb_container;
private MaterialSkin.Controls.MaterialCheckBox cb_carton;
}
}

189
LoginForm.cs Normal file
View File

@ -0,0 +1,189 @@
using MaterialSkin.Controls;
using System;
using System.IO;
using System.Linq;
using System.Media;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AVS
{
public partial class LoginForm : MaterialForm
{
private MainForm mainForm = null;
static ConnectionClass ConnectionClass = new ConnectionClass();
SoundPlayer soundplayerNew = null;
private static string SERVER_URL;
private static string SERVER_LOGIN_URL = "https://cosmos.utopiadeals.com/cosmos/rest/authenticate-user?";
public static string filePath = "C:\\Users\\Public\\Documents\\AVS\\credentials.txt";
public static string username;
public static string password;
public bool bool_cb_cont = false;
public LoginForm(Form callingForm, bool val)
{
InitializeComponent();
if (callingForm != null)
{
if (val == true)
{
bool_cb_cont = true;
}
mainForm = callingForm as MainForm;
soundplayerNew = mainForm.soundPlayer;
lbl_wrong.Visible = true;
lbl_login.Visible = false;
}
MaterialSkinClass.ApplySkin(this);
ControlBox = false;
SERVER_URL = ConnectionClass.SERVER_URL.ToString();
}
private void LoginForm_Load(object sender, EventArgs e)
{
// If credentials exist, load them
if (File.Exists(filePath))
{
bool success = tryReadCredentials(out username, out password);
if (success)
{
txt_userName.Text = username;
txt_password.Text = password;
// btn_login_Click(null, null);
if (bool_cb_cont == true)
{
cb_carton.Checked = true;
}
}
}
}
private void btn_login_Click(object sender, EventArgs e)
{
if (soundplayerNew != null)
{
soundplayerNew.Stop();
CloseAlertWindow();
}
else
{
_ = CheckLoginEndpoint();
}
}
private async Task CheckLoginEndpoint()
{
try
{
HttpClient client = new HttpClient();
client.Timeout = TimeSpan.FromMinutes(5);
string paramater = string.Format("{0}&{1}", "username=" + txt_userName.Text + "", "password=" + txt_password.Text + "");
var response = await client.GetAsync(string.Format("{0}{1}", SERVER_LOGIN_URL, paramater));
string responseString = await response.Content.ReadAsStringAsync();
if (responseString != "Username or password incorrect")
{
if (soundplayerNew == null)
{
if (cb_remember.Checked)
{
saveCredentials();
}
//if (cb_container.Checked)
if (cb_carton.Checked)
{
bool_cb_cont = true;
}
this.Hide();
MainForm mainForm = new MainForm(txt_userName.Text, bool_cb_cont);
mainForm.Show();
}
}
else
{
MessageBox.Show(responseString);
}
}
catch (Exception ex)
{
// Handle exception
}
}
private void saveCredentials()
{
string username = txt_userName.Text;
string password = txt_password.Text;
try
{
if (File.Exists(filePath))
{
File.Delete(filePath);
}
using (StreamWriter writer = new StreamWriter(filePath))
{
writer.WriteLine(username);
writer.WriteLine(password);
//writer.WriteLine(cb_container.Checked);
writer.WriteLine(cb_carton.Checked);
}
}
catch (Exception ex)
{
// Handle error
}
}
private void CloseAlertWindow()
{
DateTime dt = DateTime.MinValue;
this.mainForm.ScanTimeText = dt;
this.Close();
MainForm mainForm = Application.OpenForms.OfType<MainForm>().FirstOrDefault();
mainForm?.Show();
}
private static bool tryReadCredentials(out string username, out string password)
{
username = null;
password = null;
try
{
if (File.Exists(filePath))
{
string[] lines = File.ReadAllLines(filePath);
if (lines.Length >= 2)
{
username = lines[0];
password = lines[1];
return true;
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error reading credentials: " + ex.Message);
}
return false;
}
private void btn_close_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}

60
LoginForm.resx Normal file
View File

@ -0,0 +1,60 @@
<root>
<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>

55
MODELLog.cs Normal file
View File

@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AVS
{
class MODELLog
{
//public string CONTAINER_NO { get; set; }
public string MODEL_NO { get; set; }
public string QR { get; set; }
public decimal LIVE_WEIGHT { get; set; }
public string SYS_IP { get; set; }
public DateTime RECORD_DATE { get; set; }
public string USER_ID { get; set; }
public string PC_NAME { get; set; }
public string MARKET_PLACE { get; set; }
public class TableColumn
{
public string Name { get; set; }
public string DataType { get; set; }
}
public class MODELLogTable
{
public static List<TableColumn> GetColumns()
{
return new List<TableColumn>
{
new TableColumn { Name = "Id", DataType = "INTEGER PRIMARY KEY AUTOINCREMENT" },
//new TableColumn { Name = "CONTAINER_NO", DataType = "TEXT" },
new TableColumn { Name = "QR", DataType = "TEXT" },
new TableColumn { Name = "MODEL_NO", DataType = "TEXT" },
new TableColumn { Name = "LIVE_WEIGHT", DataType = "REAL" },
new TableColumn { Name = "SYS_IP", DataType = "TEXT" },
new TableColumn { Name = "RECORD_DATE", DataType = "DATETIME" },
new TableColumn { Name = "USER_ID", DataType = "TEXT" },
new TableColumn { Name = "PC_NAME", DataType = "TEXT" },
new TableColumn { Name = "MARKET_PLACE", DataType = "TEXT" },
};
}
}
public static string GetColumnsDefinition(List<TableColumn> columns)
{
// Convert the list of columns into a string for the CREATE TABLE command
return string.Join(", ", columns.Select(c => $"{c.Name} {c.DataType}"));
}
}
}

884
MainForm.Designer.cs generated Normal file
View File

@ -0,0 +1,884 @@

using System.Drawing;
namespace AVS
{
partial class MainForm
{
/// <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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.lbl_ScanDateTime = new System.Windows.Forms.Label();
this.txt_barcode = new System.Windows.Forms.TextBox();
this.lblBarcode = new System.Windows.Forms.Label();
this.lbl_fnsku = new System.Windows.Forms.Label();
this.lbl_title = new System.Windows.Forms.Label();
this.panel_blue = new System.Windows.Forms.Panel();
this.lbl_msg = new System.Windows.Forms.Label();
this.pb_blue = new System.Windows.Forms.PictureBox();
this.btn_post_data = new System.Windows.Forms.Button();
this.lbl_weight = new System.Windows.Forms.Label();
this.lbl_hold_weight = new System.Windows.Forms.Label();
this.txt_weight = new System.Windows.Forms.Label();
this.pb_red = new System.Windows.Forms.PictureBox();
this.btn_reset_port = new System.Windows.Forms.Button();
this.timer_weighing = new System.Windows.Forms.Timer(this.components);
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.dataGridView = new System.Windows.Forms.DataGridView();
this.txt_sku = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.lb_sysIp = new System.Windows.Forms.Label();
this.btn_upload = new MaterialSkin.Controls.MaterialRaisedButton();
this.lbl_netWeight = new System.Windows.Forms.Label();
this.lbl_color = new System.Windows.Forms.Label();
this.lbl_detail = new System.Windows.Forms.Label();
this.lbl_sku = new System.Windows.Forms.Label();
this.lbl_size = new System.Windows.Forms.Label();
this.btn_update = new System.Windows.Forms.Button();
this.lbl_ship_from = new System.Windows.Forms.Label();
this.lbl_ship_to = new System.Windows.Forms.Label();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.btn_close = new System.Windows.Forms.Button();
this.btn_logout = new System.Windows.Forms.Button();
this.btn_minimize = new System.Windows.Forms.Button();
this.lbl_username = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_market_place = new System.Windows.Forms.Label();
this.lbl_error = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_delete = new System.Windows.Forms.Button();
this.lbl_marketplace = new System.Windows.Forms.Label();
this.cb_marketplace = new System.Windows.Forms.ComboBox();
this.txt_search = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.txt_seal_no = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.lbl_boxCount = new System.Windows.Forms.Label();
this.txt_vehicle_no = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.lbl_item_box = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lbl_counter = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.userTextBox = new System.Windows.Forms.Label();
this.lbl_ver = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pb_blue)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_red)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// lbl_ScanDateTime
//
this.lbl_ScanDateTime.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.lbl_ScanDateTime.AutoSize = true;
this.lbl_ScanDateTime.BackColor = System.Drawing.Color.Transparent;
this.lbl_ScanDateTime.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_ScanDateTime.ForeColor = System.Drawing.Color.Maroon;
this.lbl_ScanDateTime.Location = new System.Drawing.Point(106, 4);
this.lbl_ScanDateTime.Name = "lbl_ScanDateTime";
this.lbl_ScanDateTime.Size = new System.Drawing.Size(93, 23);
this.lbl_ScanDateTime.TabIndex = 10;
this.lbl_ScanDateTime.Text = "Scan time :";
//
// txt_barcode
//
this.txt_barcode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txt_barcode.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.txt_barcode.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.txt_barcode.Location = new System.Drawing.Point(106, 30);
this.txt_barcode.MaxLength = 10;
this.txt_barcode.Name = "txt_barcode";
this.txt_barcode.Size = new System.Drawing.Size(295, 24);
this.txt_barcode.TabIndex = 16;
this.txt_barcode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_barcode_KeyPress);
//
// lblBarcode
//
this.lblBarcode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lblBarcode.AutoSize = true;
this.lblBarcode.BackColor = System.Drawing.Color.Transparent;
this.lblBarcode.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lblBarcode.ForeColor = System.Drawing.SystemColors.ControlText;
this.lblBarcode.Location = new System.Drawing.Point(10, 31);
this.lblBarcode.Name = "lblBarcode";
this.lblBarcode.Size = new System.Drawing.Size(92, 22);
this.lblBarcode.TabIndex = 17;
this.lblBarcode.Text = "FNSKU : ";
//
// lbl_fnsku
//
this.lbl_fnsku.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_fnsku.AutoSize = true;
this.lbl_fnsku.BackColor = System.Drawing.Color.Transparent;
this.lbl_fnsku.Font = new System.Drawing.Font("Arial Narrow", 12F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point);
this.lbl_fnsku.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_fnsku.Location = new System.Drawing.Point(407, 33);
this.lbl_fnsku.Name = "lbl_fnsku";
this.lbl_fnsku.Size = new System.Drawing.Size(0, 20);
this.lbl_fnsku.TabIndex = 18;
//
// lbl_title
//
this.lbl_title.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.lbl_title.AutoSize = true;
this.lbl_title.BackColor = System.Drawing.Color.Transparent;
this.lbl_title.Font = new System.Drawing.Font("Algerian", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_title.ForeColor = System.Drawing.Color.WhiteSmoke;
this.lbl_title.Location = new System.Drawing.Point(9, 3);
this.lbl_title.Name = "lbl_title";
this.lbl_title.Size = new System.Drawing.Size(411, 30);
this.lbl_title.TabIndex = 20;
this.lbl_title.Text = "Article Verification System";
this.lbl_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel_blue
//
this.panel_blue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel_blue.AutoSize = true;
this.panel_blue.BackColor = System.Drawing.SystemColors.Highlight;
this.panel_blue.Location = new System.Drawing.Point(2, 843);
this.panel_blue.Name = "panel_blue";
this.panel_blue.Size = new System.Drawing.Size(1240, 12);
this.panel_blue.TabIndex = 21;
//
// lbl_msg
//
this.lbl_msg.AutoSize = true;
this.lbl_msg.Location = new System.Drawing.Point(16, 827);
this.lbl_msg.Name = "lbl_msg";
this.lbl_msg.Size = new System.Drawing.Size(11, 13);
this.lbl_msg.TabIndex = 56;
this.lbl_msg.Text = "-";
//
// pb_blue
//
this.pb_blue.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.pb_blue.BackgroundImage = global::AVS.Resource.blue;
this.pb_blue.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_blue.Location = new System.Drawing.Point(1175, 776);
this.pb_blue.Name = "pb_blue";
this.pb_blue.Size = new System.Drawing.Size(56, 50);
this.pb_blue.TabIndex = 23;
this.pb_blue.TabStop = false;
this.pb_blue.Visible = false;
//
// btn_post_data
//
this.btn_post_data.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.btn_post_data.Location = new System.Drawing.Point(924, 775);
this.btn_post_data.Name = "btn_post_data";
this.btn_post_data.Size = new System.Drawing.Size(126, 50);
this.btn_post_data.TabIndex = 53;
this.btn_post_data.Text = "POST DATA";
this.btn_post_data.UseVisualStyleBackColor = true;
this.btn_post_data.Click += new System.EventHandler(this.btn_post_data_Click);
//
// lbl_weight
//
this.lbl_weight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_weight.AutoSize = true;
this.lbl_weight.BackColor = System.Drawing.SystemColors.Highlight;
this.lbl_weight.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_weight.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_weight.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_weight.Location = new System.Drawing.Point(12, 778);
this.lbl_weight.Name = "lbl_weight";
this.lbl_weight.Size = new System.Drawing.Size(207, 47);
this.lbl_weight.TabIndex = 25;
this.lbl_weight.Text = "Live weight :";
//
// lbl_hold_weight
//
this.lbl_hold_weight.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.lbl_hold_weight.AutoSize = true;
this.lbl_hold_weight.BackColor = System.Drawing.SystemColors.Highlight;
this.lbl_hold_weight.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_hold_weight.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_hold_weight.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_hold_weight.Location = new System.Drawing.Point(806, 778);
this.lbl_hold_weight.Name = "lbl_hold_weight";
this.lbl_hold_weight.Size = new System.Drawing.Size(41, 47);
this.lbl_hold_weight.TabIndex = 47;
this.lbl_hold_weight.Text = "0";
//
// txt_weight
//
this.txt_weight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txt_weight.AutoSize = true;
this.txt_weight.BackColor = System.Drawing.SystemColors.Highlight;
this.txt_weight.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.txt_weight.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.txt_weight.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.txt_weight.Location = new System.Drawing.Point(225, 778);
this.txt_weight.Name = "txt_weight";
this.txt_weight.Size = new System.Drawing.Size(41, 47);
this.txt_weight.TabIndex = 26;
this.txt_weight.Text = "0";
//
// pb_red
//
this.pb_red.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.pb_red.BackgroundImage = global::AVS.Resource.red;
this.pb_red.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_red.Location = new System.Drawing.Point(1174, 776);
this.pb_red.Name = "pb_red";
this.pb_red.Size = new System.Drawing.Size(56, 50);
this.pb_red.TabIndex = 22;
this.pb_red.TabStop = false;
//
// btn_reset_port
//
this.btn_reset_port.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_reset_port.BackColor = System.Drawing.Color.DarkGreen;
this.btn_reset_port.FlatAppearance.BorderSize = 0;
this.btn_reset_port.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_reset_port.ForeColor = System.Drawing.Color.White;
this.btn_reset_port.Location = new System.Drawing.Point(1044, 220);
this.btn_reset_port.Name = "btn_reset_port";
this.btn_reset_port.Size = new System.Drawing.Size(170, 23);
this.btn_reset_port.TabIndex = 57;
this.btn_reset_port.Text = "RESET PORT";
this.btn_reset_port.UseVisualStyleBackColor = false;
this.btn_reset_port.Click += new System.EventHandler(this.btn_reset_port_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// dataGridView
//
this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView.BackgroundColor = System.Drawing.Color.White;
this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowFrame;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.GrayText;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView.Location = new System.Drawing.Point(11, 77);
this.dataGridView.Name = "dataGridView";
this.dataGridView.ReadOnly = true;
this.dataGridView.Size = new System.Drawing.Size(771, 312);
this.dataGridView.TabIndex = 29;
this.dataGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_CellClick);
//
// txt_sku
//
this.txt_sku.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.txt_sku.BackColor = System.Drawing.Color.White;
this.txt_sku.Depth = 0;
this.txt_sku.Hint = "Type SKU";
this.txt_sku.Location = new System.Drawing.Point(11, 22);
this.txt_sku.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_sku.Name = "txt_sku";
this.txt_sku.PasswordChar = '\0';
this.txt_sku.SelectedText = "";
this.txt_sku.SelectionLength = 0;
this.txt_sku.SelectionStart = 0;
this.txt_sku.Size = new System.Drawing.Size(321, 23);
this.txt_sku.TabIndex = 30;
this.txt_sku.UseSystemPasswordChar = false;
this.txt_sku.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_sku_KeyPress);
//
// lb_sysIp
//
this.lb_sysIp.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lb_sysIp.AutoSize = true;
this.lb_sysIp.BackColor = System.Drawing.Color.Transparent;
this.lb_sysIp.Font = new System.Drawing.Font("Algerian", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lb_sysIp.ForeColor = System.Drawing.Color.WhiteSmoke;
this.lb_sysIp.Location = new System.Drawing.Point(955, 3);
this.lb_sysIp.Name = "lb_sysIp";
this.lb_sysIp.Size = new System.Drawing.Size(27, 21);
this.lb_sysIp.TabIndex = 31;
this.lb_sysIp.Text = "ip";
this.lb_sysIp.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_upload
//
this.btn_upload.Depth = 0;
this.btn_upload.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btn_upload.ForeColor = System.Drawing.SystemColors.ControlText;
this.btn_upload.Location = new System.Drawing.Point(704, 3);
this.btn_upload.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.btn_upload.MouseState = MaterialSkin.MouseState.HOVER;
this.btn_upload.Name = "btn_upload";
this.btn_upload.Primary = true;
this.btn_upload.Size = new System.Drawing.Size(88, 38);
this.btn_upload.TabIndex = 35;
this.btn_upload.Text = "SAVE";
this.btn_upload.UseVisualStyleBackColor = true;
this.btn_upload.Visible = false;
//
// lbl_netWeight
//
this.lbl_netWeight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_netWeight.AutoSize = true;
this.lbl_netWeight.BackColor = System.Drawing.Color.Silver;
this.lbl_netWeight.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_netWeight.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_netWeight.Location = new System.Drawing.Point(23, 712);
this.lbl_netWeight.Name = "lbl_netWeight";
this.lbl_netWeight.Size = new System.Drawing.Size(118, 22);
this.lbl_netWeight.TabIndex = 11;
this.lbl_netWeight.Text = "Net weight :";
//
// lbl_color
//
this.lbl_color.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_color.AutoSize = true;
this.lbl_color.BackColor = System.Drawing.Color.Silver;
this.lbl_color.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_color.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_color.Location = new System.Drawing.Point(23, 646);
this.lbl_color.Name = "lbl_color";
this.lbl_color.Size = new System.Drawing.Size(73, 22);
this.lbl_color.TabIndex = 36;
this.lbl_color.Text = "Color :";
//
// lbl_detail
//
this.lbl_detail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_detail.BackColor = System.Drawing.Color.Silver;
this.lbl_detail.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_detail.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_detail.Location = new System.Drawing.Point(23, 602);
this.lbl_detail.Name = "lbl_detail";
this.lbl_detail.Size = new System.Drawing.Size(1204, 22);
this.lbl_detail.TabIndex = 12;
this.lbl_detail.Text = "Title :";
//
// lbl_sku
//
this.lbl_sku.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_sku.AutoSize = true;
this.lbl_sku.BackColor = System.Drawing.Color.Silver;
this.lbl_sku.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_sku.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_sku.Location = new System.Drawing.Point(23, 624);
this.lbl_sku.Name = "lbl_sku";
this.lbl_sku.Size = new System.Drawing.Size(58, 22);
this.lbl_sku.TabIndex = 13;
this.lbl_sku.Text = "Sku :";
//
// lbl_size
//
this.lbl_size.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_size.AutoSize = true;
this.lbl_size.BackColor = System.Drawing.Color.Silver;
this.lbl_size.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_size.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_size.Location = new System.Drawing.Point(23, 668);
this.lbl_size.Name = "lbl_size";
this.lbl_size.Size = new System.Drawing.Size(61, 22);
this.lbl_size.TabIndex = 37;
this.lbl_size.Text = "Size :";
//
// btn_update
//
this.btn_update.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.btn_update.FlatAppearance.BorderSize = 0;
this.btn_update.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btn_update.ForeColor = System.Drawing.SystemColors.HighlightText;
this.btn_update.Location = new System.Drawing.Point(704, 42);
this.btn_update.Name = "btn_update";
this.btn_update.Size = new System.Drawing.Size(88, 38);
this.btn_update.TabIndex = 40;
this.btn_update.Text = "UPDATE";
this.btn_update.UseVisualStyleBackColor = false;
this.btn_update.Visible = false;
this.btn_update.Click += new System.EventHandler(this.btn_update_Click);
//
// lbl_ship_from
//
this.lbl_ship_from.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_ship_from.AutoSize = true;
this.lbl_ship_from.BackColor = System.Drawing.Color.Silver;
this.lbl_ship_from.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_ship_from.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_ship_from.Location = new System.Drawing.Point(10, 439);
this.lbl_ship_from.Name = "lbl_ship_from";
this.lbl_ship_from.Size = new System.Drawing.Size(0, 22);
this.lbl_ship_from.TabIndex = 41;
this.lbl_ship_from.Visible = false;
//
// lbl_ship_to
//
this.lbl_ship_to.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_ship_to.AutoSize = true;
this.lbl_ship_to.BackColor = System.Drawing.Color.Silver;
this.lbl_ship_to.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_ship_to.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_ship_to.Location = new System.Drawing.Point(23, 690);
this.lbl_ship_to.Name = "lbl_ship_to";
this.lbl_ship_to.Size = new System.Drawing.Size(0, 22);
this.lbl_ship_to.TabIndex = 42;
this.lbl_ship_to.Visible = false;
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// btn_close
//
this.btn_close.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_close.BackColor = System.Drawing.SystemColors.Highlight;
this.btn_close.BackgroundImage = global::AVS.Resource.close_icon_13577;
this.btn_close.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btn_close.FlatAppearance.BorderColor = System.Drawing.SystemColors.Highlight;
this.btn_close.FlatAppearance.BorderSize = 0;
this.btn_close.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Highlight;
this.btn_close.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Highlight;
this.btn_close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_close.Location = new System.Drawing.Point(1206, 3);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(36, 21);
this.btn_close.TabIndex = 43;
this.btn_close.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.btn_close.UseVisualStyleBackColor = false;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// btn_logout
//
this.btn_logout.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_logout.BackColor = System.Drawing.SystemColors.Highlight;
this.btn_logout.BackgroundImage = global::AVS.Resource.pngwing_com;
this.btn_logout.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btn_logout.FlatAppearance.BorderColor = System.Drawing.SystemColors.Highlight;
this.btn_logout.FlatAppearance.BorderSize = 0;
this.btn_logout.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Highlight;
this.btn_logout.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Highlight;
this.btn_logout.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_logout.Location = new System.Drawing.Point(1142, 3);
this.btn_logout.Name = "btn_logout";
this.btn_logout.Size = new System.Drawing.Size(36, 21);
this.btn_logout.TabIndex = 44;
this.btn_logout.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.btn_logout.UseVisualStyleBackColor = false;
this.btn_logout.Click += new System.EventHandler(this.btn_logout_LinkClicked);
//
// btn_minimize
//
this.btn_minimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_minimize.BackColor = System.Drawing.Color.Transparent;
this.btn_minimize.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btn_minimize.FlatAppearance.BorderColor = System.Drawing.SystemColors.Highlight;
this.btn_minimize.FlatAppearance.BorderSize = 0;
this.btn_minimize.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Highlight;
this.btn_minimize.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Highlight;
this.btn_minimize.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_minimize.Font = new System.Drawing.Font("Algerian", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.btn_minimize.Location = new System.Drawing.Point(1177, 1);
this.btn_minimize.Name = "btn_minimize";
this.btn_minimize.Size = new System.Drawing.Size(28, 23);
this.btn_minimize.TabIndex = 45;
this.btn_minimize.Text = "-";
this.btn_minimize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.btn_minimize.UseVisualStyleBackColor = false;
this.btn_minimize.Click += new System.EventHandler(this.btn_minimize_Click);
//
// lbl_username
//
this.lbl_username.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_username.AutoSize = true;
this.lbl_username.BackColor = System.Drawing.Color.Transparent;
this.lbl_username.Font = new System.Drawing.Font("Algerian", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_username.ForeColor = System.Drawing.Color.WhiteSmoke;
this.lbl_username.Location = new System.Drawing.Point(12, 33);
this.lbl_username.Name = "lbl_username";
this.lbl_username.Size = new System.Drawing.Size(108, 21);
this.lbl_username.TabIndex = 46;
this.lbl_username.Text = "Username";
this.lbl_username.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel1
//
this.panel1.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.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.btn_reset_port);
this.panel1.Controls.Add(this.lbl_market_place);
this.panel1.Controls.Add(this.lbl_error);
this.panel1.Controls.Add(this.lbl_fnsku);
this.panel1.Controls.Add(this.lbl_ship_from);
this.panel1.Controls.Add(this.lblBarcode);
this.panel1.Controls.Add(this.txt_barcode);
this.panel1.Controls.Add(this.lbl_ScanDateTime);
this.panel1.Location = new System.Drawing.Point(12, 518);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1219, 248);
this.panel1.TabIndex = 50;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// lbl_market_place
//
this.lbl_market_place.AutoSize = true;
this.lbl_market_place.Location = new System.Drawing.Point(507, 55);
this.lbl_market_place.Name = "lbl_market_place";
this.lbl_market_place.Size = new System.Drawing.Size(11, 13);
this.lbl_market_place.TabIndex = 43;
this.lbl_market_place.Text = ".";
//
// lbl_error
//
this.lbl_error.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_error.AutoSize = true;
this.lbl_error.BackColor = System.Drawing.Color.White;
this.lbl_error.Font = new System.Drawing.Font("Arial Narrow", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_error.ForeColor = System.Drawing.Color.Red;
this.lbl_error.Location = new System.Drawing.Point(761, 430);
this.lbl_error.Name = "lbl_error";
this.lbl_error.Size = new System.Drawing.Size(73, 33);
this.lbl_error.TabIndex = 42;
this.lbl_error.Text = "Error";
this.lbl_error.Visible = false;
//
// 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.Silver;
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.btn_delete);
this.panel2.Controls.Add(this.lbl_marketplace);
this.panel2.Controls.Add(this.cb_marketplace);
this.panel2.Controls.Add(this.txt_search);
this.panel2.Controls.Add(this.dataGridView);
this.panel2.Controls.Add(this.txt_sku);
this.panel2.Controls.Add(this.btn_update);
this.panel2.Controls.Add(this.btn_upload);
this.panel2.Location = new System.Drawing.Point(12, 71);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(812, 432);
this.panel2.TabIndex = 51;
this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
//
// btn_delete
//
this.btn_delete.Location = new System.Drawing.Point(733, 402);
this.btn_delete.Name = "btn_delete";
this.btn_delete.Size = new System.Drawing.Size(75, 23);
this.btn_delete.TabIndex = 50;
this.btn_delete.Text = "Delete";
this.btn_delete.UseVisualStyleBackColor = true;
this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
//
// lbl_marketplace
//
this.lbl_marketplace.AutoSize = true;
this.lbl_marketplace.Location = new System.Drawing.Point(540, 27);
this.lbl_marketplace.Name = "lbl_marketplace";
this.lbl_marketplace.Size = new System.Drawing.Size(81, 13);
this.lbl_marketplace.TabIndex = 49;
this.lbl_marketplace.Text = "Marketplace-";
//
// cb_marketplace
//
this.cb_marketplace.FormattingEnabled = true;
this.cb_marketplace.Location = new System.Drawing.Point(622, 24);
this.cb_marketplace.Name = "cb_marketplace";
this.cb_marketplace.Size = new System.Drawing.Size(184, 21);
this.cb_marketplace.TabIndex = 48;
//
// txt_search
//
this.txt_search.BackColor = System.Drawing.Color.White;
this.txt_search.Depth = 0;
this.txt_search.Hint = "Search here";
this.txt_search.Location = new System.Drawing.Point(10, 48);
this.txt_search.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_search.Name = "txt_search";
this.txt_search.PasswordChar = '\0';
this.txt_search.SelectedText = "";
this.txt_search.SelectionLength = 0;
this.txt_search.SelectionStart = 0;
this.txt_search.Size = new System.Drawing.Size(214, 23);
this.txt_search.TabIndex = 47;
this.txt_search.UseSystemPasswordChar = false;
this.txt_search.TextChanged += new System.EventHandler(this.txt_search_TextChanged);
//
// txt_seal_no
//
this.txt_seal_no.Depth = 0;
this.txt_seal_no.Hint = "SEAL NO";
this.txt_seal_no.Location = new System.Drawing.Point(8, 372);
this.txt_seal_no.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_seal_no.Name = "txt_seal_no";
this.txt_seal_no.PasswordChar = '\0';
this.txt_seal_no.SelectedText = "";
this.txt_seal_no.SelectionLength = 0;
this.txt_seal_no.SelectionStart = 0;
this.txt_seal_no.Size = new System.Drawing.Size(163, 23);
this.txt_seal_no.TabIndex = 48;
this.txt_seal_no.UseSystemPasswordChar = false;
this.txt_seal_no.Visible = false;
//
// lbl_boxCount
//
this.lbl_boxCount.AutoSize = true;
this.lbl_boxCount.BackColor = System.Drawing.Color.Transparent;
this.lbl_boxCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_boxCount.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_boxCount.ForeColor = System.Drawing.Color.Black;
this.lbl_boxCount.Location = new System.Drawing.Point(33, 46);
this.lbl_boxCount.Name = "lbl_boxCount";
this.lbl_boxCount.Size = new System.Drawing.Size(219, 39);
this.lbl_boxCount.TabIndex = 28;
this.lbl_boxCount.Text = "Box count : 0";
//
// txt_vehicle_no
//
this.txt_vehicle_no.Depth = 0;
this.txt_vehicle_no.Hint = "VEHICLE NO";
this.txt_vehicle_no.Location = new System.Drawing.Point(8, 343);
this.txt_vehicle_no.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_vehicle_no.Name = "txt_vehicle_no";
this.txt_vehicle_no.PasswordChar = '\0';
this.txt_vehicle_no.SelectedText = "";
this.txt_vehicle_no.SelectionLength = 0;
this.txt_vehicle_no.SelectionStart = 0;
this.txt_vehicle_no.Size = new System.Drawing.Size(163, 23);
this.txt_vehicle_no.TabIndex = 49;
this.txt_vehicle_no.UseSystemPasswordChar = false;
this.txt_vehicle_no.Visible = false;
//
// lbl_item_box
//
this.lbl_item_box.AutoSize = true;
this.lbl_item_box.BackColor = System.Drawing.Color.Transparent;
this.lbl_item_box.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_item_box.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_item_box.ForeColor = System.Drawing.Color.Black;
this.lbl_item_box.Location = new System.Drawing.Point(33, 87);
this.lbl_item_box.Name = "lbl_item_box";
this.lbl_item_box.Size = new System.Drawing.Size(254, 39);
this.lbl_item_box.TabIndex = 15;
this.lbl_item_box.Text = "Item per box : 0";
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Arial Narrow", 12F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
this.label1.Location = new System.Drawing.Point(416, 614);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 20);
this.label1.TabIndex = 18;
//
// lbl_counter
//
this.lbl_counter.AutoSize = true;
this.lbl_counter.BackColor = System.Drawing.Color.Transparent;
this.lbl_counter.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_counter.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.lbl_counter.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.lbl_counter.ForeColor = System.Drawing.Color.Black;
this.lbl_counter.Location = new System.Drawing.Point(33, 3);
this.lbl_counter.Name = "lbl_counter";
this.lbl_counter.Size = new System.Drawing.Size(225, 39);
this.lbl_counter.TabIndex = 14;
this.lbl_counter.Text = "Item count : 0";
//
// 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.Silver;
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.lbl_counter);
this.panel3.Controls.Add(this.lbl_item_box);
this.panel3.Controls.Add(this.lbl_boxCount);
this.panel3.Controls.Add(this.label1);
this.panel3.Controls.Add(this.txt_vehicle_no);
this.panel3.Controls.Add(this.txt_seal_no);
this.panel3.Location = new System.Drawing.Point(836, 71);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(391, 432);
this.panel3.TabIndex = 52;
this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint);
//
// userTextBox
//
this.userTextBox.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.userTextBox.AutoSize = true;
this.userTextBox.BackColor = System.Drawing.Color.Transparent;
this.userTextBox.Font = new System.Drawing.Font("Algerian", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.userTextBox.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
this.userTextBox.Location = new System.Drawing.Point(957, 33);
this.userTextBox.Name = "userTextBox";
this.userTextBox.Size = new System.Drawing.Size(16, 21);
this.userTextBox.TabIndex = 54;
this.userTextBox.Text = "-";
//
// lbl_ver
//
this.lbl_ver.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.lbl_ver.AutoSize = true;
this.lbl_ver.Location = new System.Drawing.Point(1151, 829);
this.lbl_ver.Name = "lbl_ver";
this.lbl_ver.Size = new System.Drawing.Size(53, 13);
this.lbl_ver.TabIndex = 57;
this.lbl_ver.Text = "Version-";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1243, 856);
this.Controls.Add(this.lbl_ver);
this.Controls.Add(this.lbl_msg);
this.Controls.Add(this.pb_blue);
this.Controls.Add(this.pb_red);
this.Controls.Add(this.lbl_weight);
this.Controls.Add(this.txt_weight);
this.Controls.Add(this.userTextBox);
this.Controls.Add(this.btn_post_data);
this.Controls.Add(this.lb_sysIp);
this.Controls.Add(this.lbl_username);
this.Controls.Add(this.btn_minimize);
this.Controls.Add(this.lbl_hold_weight);
this.Controls.Add(this.btn_logout);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.panel_blue);
this.Controls.Add(this.lbl_title);
this.Controls.Add(this.lbl_color);
this.Controls.Add(this.lbl_detail);
this.Controls.Add(this.lbl_size);
this.Controls.Add(this.lbl_ship_to);
this.Controls.Add(this.lbl_netWeight);
this.Controls.Add(this.lbl_sku);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel3);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.Name = "MainForm";
this.Sizable = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Load += new System.EventHandler(this.MainForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pb_blue)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_red)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label lbl_ScanDateTime;
private System.Windows.Forms.TextBox txt_barcode;
private System.Windows.Forms.Label lblBarcode;
private System.Windows.Forms.Label lbl_fnsku;
private System.Windows.Forms.Label lbl_title;
private System.Windows.Forms.Panel panel_blue;
private System.Windows.Forms.PictureBox pb_red;
private System.Windows.Forms.PictureBox pb_blue;
private System.Windows.Forms.Timer timer_weighing;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.DataGridView dataGridView;
private MaterialSkin.Controls.MaterialSingleLineTextField txt_sku;
private System.Windows.Forms.Label lb_sysIp;
private MaterialSkin.Controls.MaterialRaisedButton btn_upload;
private System.Windows.Forms.Label lbl_netWeight;
private System.Windows.Forms.Label lbl_color;
private System.Windows.Forms.Label lbl_detail;
private System.Windows.Forms.Label lbl_weight;
private System.Windows.Forms.Label lbl_sku;
private System.Windows.Forms.Label lbl_size;
private System.Windows.Forms.Label txt_weight;
private System.Windows.Forms.Button btn_update;
private System.Windows.Forms.Label lbl_ship_from;
private System.Windows.Forms.Label lbl_ship_to;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Button btn_logout;
private System.Windows.Forms.Button btn_minimize;
private System.Windows.Forms.Label lbl_username;
private System.Windows.Forms.Label lbl_hold_weight;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private MaterialSkin.Controls.MaterialSingleLineTextField txt_search;
private MaterialSkin.Controls.MaterialSingleLineTextField txt_seal_no;
private System.Windows.Forms.Label lbl_boxCount;
private MaterialSkin.Controls.MaterialSingleLineTextField txt_vehicle_no;
private System.Windows.Forms.Label lbl_item_box;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lbl_counter;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label lbl_error;
public System.Windows.Forms.Button btn_post_data;
private System.Windows.Forms.ComboBox cb_marketplace;
private System.Windows.Forms.Label lbl_marketplace;
private System.Windows.Forms.Button btn_delete;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lbl_msg;
private System.Windows.Forms.Label lbl_market_place;
private System.Windows.Forms.Button btn_reset_port;
private System.Windows.Forms.Label lbl_ver;
}
}

1891
MainForm.cs Normal file

File diff suppressed because it is too large Load Diff

72
MainForm.resx Normal file
View File

@ -0,0 +1,72 @@
<root>
<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="timer_weighing.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>152, 17</value>
</metadata>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>292, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>

44
Marketplace.cs Normal file
View File

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace AVS
{
public class Marketplace
{
public int Id { get; set; }
public string Name { get; set; }
public Marketplace(int id, string name)
{
Id = id;
Name = name;
}
}
public class MarketplaceService
{
private List<Marketplace> marketplaces;
public MarketplaceService()
{
// Initialize with data. This simulates database data.
marketplaces = new List<Marketplace>
{
new Marketplace(1, "AMAZON_USA"),
new Marketplace(2, "AMAZON_CA"),
new Marketplace(3, "AMAZON_UK"),
new Marketplace(4, "AMAZON_EU"),
new Marketplace(5, "AMAZON_AU")
};
}
public List<Marketplace> GetMarketplaces()
{
// Adding '--Select--' as the first option
var listWithSelect = new List<Marketplace> { new Marketplace(0, "--Select--") };
listWithSelect.AddRange(marketplaces);
return listWithSelect;
}
}
}

19
MaterialSkinClass.cs Normal file
View File

@ -0,0 +1,19 @@
using MaterialSkin;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace AVS
{
class MaterialSkinClass
{
public static void ApplySkin(Form form)
{
var materialSkinManager = MaterialSkinManager.Instance;
materialSkinManager.AddFormToManage((MaterialSkin.Controls.MaterialForm)form);
materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.Blue700, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
}
}
}

129
Program.cs Normal file
View File

@ -0,0 +1,129 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AVS
{
static class Program
{
public static string filePath = "C:\\Users\\Public\\Documents\\AVS\\credentials.txt";
public static string username;
public static bool CheckContainer;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// Path to save the extracted updater file
string updaterPath = Path.Combine(Path.GetTempPath(), "AVSUpdater.exe");
// Check if the updater file already exists
if (!File.Exists(updaterPath))
{
// Access the embedded resource stream
using (var resourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("AVS.AVSUpdater.exe"))
{
if (resourceStream != null)
{
// Create a new file in the temporary folder
using (var fileStream = new FileStream(updaterPath, FileMode.Create, FileAccess.Write))
{
// Copy the content of the resource stream to the file
resourceStream.CopyTo(fileStream);
}
Console.WriteLine($"Updater extracted to {updaterPath}");
}
else
{
Console.WriteLine("Embedded resource not found.");
}
}
}
else
{
Console.WriteLine("Updater already exists.");
}
//if (System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1)
// return;
if (File.Exists(filePath))
{
tryReadCredentials();
Application.Run(new MainForm(username,CheckContainer));
}
else
{
Application.Run(new LoginForm(null,false));
}
}
// Method to check if a form of a specific type is already open
private static bool IsFormOpen(Type formType)
{
foreach (Form form in Application.OpenForms)
{
if (form.GetType() == formType)
{
// Form of the specified type is already open
return true;
}
}
// Form of the specified type is not open
return false;
}
private static void tryReadCredentials()
{
// Initialize variables to store the values
username = null;
CheckContainer = false;
try
{
// Check if the file exists
if (File.Exists(filePath))
{
// Read the lines from the file
string[] lines = File.ReadAllLines(filePath);
// Check if there are enough lines (username and password)
if (lines.Length >= 2)
{
username = lines[0];
CheckContainer = Convert.ToBoolean(lines[2]);
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error reading credentials: " + ex.Message);
}
}
}
}

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.0</ApplicationVersion>
<BootstrapperEnabled>True</BootstrapperEnabled>
<Configuration>Release</Configuration>
<CreateWebPageOnPublish>False</CreateWebPageOnPublish>
<GenerateManifests>True</GenerateManifests>
<Install>True</Install>
<InstallFrom>Disk</InstallFrom>
<IsRevisionIncremented>False</IsRevisionIncremented>
<IsWebBootstrapper>False</IsWebBootstrapper>
<MapFileExtensions>True</MapFileExtensions>
<OpenBrowserOnPublish>False</OpenBrowserOnPublish>
<Platform>Any CPU</Platform>
<PublishDir>bin\publish\</PublishDir>
<PublishUrl>bin\publish\</PublishUrl>
<PublishProtocol>ClickOnce</PublishProtocol>
<PublishReadyToRun>False</PublishReadyToRun>
<PublishSingleFile>True</PublishSingleFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>False</SelfContained>
<SignatureAlgorithm>(none)</SignatureAlgorithm>
<SignManifests>False</SignManifests>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UpdateEnabled>False</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateRequired>False</UpdateRequired>
<WebPageFileName>Publish.html</WebPageFileName>
</PropertyGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.NetCore.DesktopRuntime.3.1.x64">
<Install>True</Install>
<ProductName>.NET Desktop Runtime 3.1.32 (x64)</ProductName>
</BootstrapperPackage>
</ItemGroup>
</Project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2025-01-22T13:06:10.2021515Z;True|2025-01-20T17:03:46.3339359+05:00;True|2025-01-17T16:05:43.4268668+05:00;True|2025-01-17T15:29:15.3040623+05:00;True|2025-01-17T14:43:18.0168523+05:00;True|2025-01-17T12:10:42.9600907+05:00;True|2025-01-16T15:41:00.8488244+05:00;True|2025-01-15T16:56:17.6142392+05:00;True|2025-01-15T16:33:55.6417349+05:00;True|2025-01-15T13:21:45.4638138+05:00;True|2025-01-15T13:15:20.5641887+05:00;True|2025-01-15T12:40:01.2419621+05:00;True|2025-01-15T12:03:30.8084697+05:00;True|2025-01-14T14:28:18.3366894+05:00;True|2025-01-14T14:26:26.2462065+05:00;True|2025-01-14T14:15:07.2883239+05:00;True|2025-01-13T12:30:23.8416299+05:00;True|2025-01-13T11:42:39.1224890+05:00;True|2025-01-03T12:33:10.2793698+05:00;True|2024-12-18T15:18:14.4395717+05:00;True|2024-12-18T12:54:56.8084778+05:00;True|2024-12-13T15:44:24.4352978+05:00;True|2024-12-05T10:51:18.0390128+05:00;True|2024-11-19T15:15:29.2333962+05:00;False|2024-11-19T15:14:41.4128664+05:00;False|2024-11-19T15:14:36.3176067+05:00;True|2024-11-19T12:46:09.5293823+05:00;True|2024-11-15T15:47:24.5856469+05:00;True|2024-11-15T10:37:27.3010142+05:00;True|2024-11-14T16:04:59.4907408+05:00;True|2024-11-14T11:36:56.6431970+05:00;True|2024-11-14T11:34:49.6598132+05:00;True|2024-11-14T11:28:45.2501074+05:00;True|2024-11-14T11:26:24.2442493+05:00;True|2024-11-14T11:23:19.7352473+05:00;True|2024-11-14T11:14:58.0824649+05:00;True|2024-11-14T11:11:54.9014794+05:00;True|2024-11-13T15:09:33.1039388+05:00;True|2024-11-11T15:27:08.4922899+05:00;True|2024-11-11T11:11:44.1076640+05:00;True|2024-11-08T16:55:19.8477794+05:00;True|2024-11-07T13:00:42.6710690+05:00;True|2024-11-06T15:51:05.5447288+05:00;True|2024-10-24T12:42:25.3699824+05:00;True|2024-10-24T11:23:10.1903366+05:00;True|2024-10-16T16:14:16.3746546+05:00;True|2024-10-16T15:50:04.4963422+05:00;True|2024-10-16T13:05:44.8782830+05:00;True|2024-10-16T13:01:07.1428555+05:00;True|2024-10-14T16:14:19.8020734+05:00;True|2024-09-14T10:16:00.4694353+05:00;True|2024-09-10T11:51:34.4061980+05:00;True|2024-09-09T13:16:17.8966236+05:00;True|2024-09-06T16:06:27.3649451+05:00;True|2024-09-06T16:04:47.1924045+05:00;True|2024-09-06T15:57:13.6901243+05:00;True|2024-09-06T12:32:36.9615856+05:00;True|2024-09-04T15:57:14.4892617+05:00;</History>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,7 @@
{
"profiles": {
"AVS": {
"commandName": "Project"
}
}
}

143
Resource.Designer.cs generated Normal file
View File

@ -0,0 +1,143 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace AVS {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resource {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resource() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AVS.Resource", typeof(Resource).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap blue {
get {
object obj = ResourceManager.GetObject("blue", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap close_icon_13577 {
get {
object obj = ResourceManager.GetObject("close-icon-13577", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap logout {
get {
object obj = ResourceManager.GetObject("logout", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap pass {
get {
object obj = ResourceManager.GetObject("pass", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap pngwing_com {
get {
object obj = ResourceManager.GetObject("pngwing.com", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap red {
get {
object obj = ResourceManager.GetObject("red", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap submit_btn {
get {
object obj = ResourceManager.GetObject("submit-btn", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap user {
get {
object obj = ResourceManager.GetObject("user", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

151
Resource.resx Normal file
View File

@ -0,0 +1,151 @@
<?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.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="close-icon-13577" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\close-icon-13577.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pngwing.com" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\pngwing.com.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\pass.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logo-dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\logo-dark.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logo_dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\logo-dark.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logout" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\logout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="user" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="submit-btn" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>bin\Debug\netcoreapp3.1\submit-btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
Resources/pngwing.com.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

59
SKULog.cs Normal file
View File

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AVS
{
public class SKULog
{
public string FNSKU { get; set; }
public string SKU { get; set; }
public string Title { get; set; }
public int ItemsPerBox { get; set; }
public double NetWeightKg { get; set; }
public string Colour { get; set; }
public string Size { get; set; }
public string ModelNo { get; set; }
public DateTime RECORD_DATE { get; set; }
public string SYS_IP { get; set; }
public string USER_ID { get; set; }
public string MARKET_PLACE { get; set; }
public class TableColumn
{
public string Name { get; set; }
public string DataType { get; set; }
}
public class SKULogTable
{
public static List<TableColumn> GetColumns()
{
return new List<TableColumn>
{
new TableColumn { Name = "Id", DataType = "INTEGER PRIMARY KEY AUTOINCREMENT" },
new TableColumn { Name = "FNSKU", DataType = "TEXT" },
new TableColumn { Name = "SKU", DataType = "TEXT" },
new TableColumn { Name = "Title", DataType = "TEXT" },
new TableColumn { Name = "ItemsPerBox", DataType = "INTEGER" },
new TableColumn { Name = "NetWeightKg", DataType = "REAL" },
new TableColumn { Name = "Colour", DataType = "TEXT" },
new TableColumn { Name = "Size", DataType = "TEXT" },
new TableColumn { Name = "ModelNo", DataType = "TEXT" },
new TableColumn { Name = "RECORD_DATE", DataType = "DATETIME" },
new TableColumn { Name = "SYS_IP", DataType = "TEXT" },
new TableColumn { Name = "USER_ID", DataType = "TEXT" },
new TableColumn { Name = "MARKET_PLACE", DataType = "TEXT" },
};
}
}
public static string GetColumnsDefinition(List<TableColumn> columns)
{
// Convert the list of columns into a string for the CREATE TABLE command
return string.Join(", ", columns.Select(c => $"{c.Name} {c.DataType}"));
}
}
}

28
SoftwareVersionUtility.cs Normal file
View File

@ -0,0 +1,28 @@
using System.IO;
using System.Net;
using System.Threading.Tasks;
namespace AVS
{
public class SoftwareVersionUtility
{
public string SvnUrlPKG = "http://svn.utopiadeals.com:7700/svn/Technology/Utopia%20Tracker%20Utils/AVS/Publish/";
public string SvnUrlPKG_softVersion = "http://svn.utopiadeals.com:7700/svn/Technology/Utopia%20Tracker%20Utils/AVS/SoftwareVersion.txt";
string UserName = "muhammad.faique";
string Pass = "mFaique95";
WebClient webClient = new WebClient();
public async Task<string> CheckVersion()
{
webClient.Credentials = new NetworkCredential(UserName, Pass);
string GetVersionFromSVN = webClient.DownloadString(SvnUrlPKG_softVersion);
return GetVersionFromSVN;
}
}
}

89
Updater.cs Normal file
View File

@ -0,0 +1,89 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AVS
{
class Updater
{
public string SVNversion;
public string Softwareversion;
SoftwareVersionUtility SoftwareVersionUtility = new SoftwareVersionUtility();
public async Task CheckVersionAsync()
{
// Read version from SVN
SVNversion = await SoftwareVersionUtility.CheckVersion();
// Assembly version in properties
Softwareversion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
// If versions are different, trigger the update
if (SVNversion != Softwareversion)
{
DialogResult dialogResult = MessageBox.Show("A new version is available. Do you want to update now?",
"Update Available", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dialogResult == DialogResult.Yes)
{
// Start the update process
await StartUpdateProcessAsync();
}
}
}
public async Task StartUpdateProcessAsync()
{
try
{
string updaterPath = @"\\FileServer\eData\AVS\AVSUpdater.exe";
// Copy the updater executable to a temporary location
//if (!File.Exists(updaterPath))
//{
// using (Stream resourceStream = Assembly.GetExecutingAssembly()
// .GetManifestResourceStream("AVS.Resources.AVSUpdater.exe"))
// {
// if (resourceStream != null)
// {
// using (FileStream fileStream = new FileStream(updaterPath, FileMode.Create, FileAccess.Write))
// {
// await resourceStream.CopyToAsync(fileStream);
// }
// }
// else
// {
// MessageBox.Show("Updater resource not found.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
// return;
// }
// }
//}
//string sourcePath = @"\\FileServer\eData\AVS";
//string destinationPath = @"C:\Users\Public\Documents\AVS";
// Start the updater process
ProcessStartInfo processStartInfo = new ProcessStartInfo
{
FileName = updaterPath,
//Arguments = $"\"{sourcePath}\" \"{destinationPath}\"",
UseShellExecute = false,
CreateNoWindow = true,
};
Process.Start(processStartInfo);
// Close the current application
await Task.Delay(3000); // Delay to allow the updater to initialize
Environment.Exit(0);
}
catch (Exception ex)
{
MessageBox.Show($"Failed to start the update process: {ex.Message}", "Update Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}

BIN
bin/Debug/AVS.1.0.0.nupkg Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\muhammad.faique\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\muhammad.faique\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet"
]
}
}

View File

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "3.1.0"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

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