-Weight tolerance added.

-Responsive UI for laptop screens
main
muhammad.faique 2025-04-28 09:35:14 +05:00
parent db53287bc0
commit 2611e5b67e
78 changed files with 1005 additions and 1445 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -67,7 +67,13 @@ namespace AVS
lbl_status.ForeColor = Color.Red;
lbl_status.Text = "WRONG CARTON";
showControls();
PlayAlertSound();
//PlayAlertSound();
this.Hide(); // Hide the MainForm
LoginForm loginForm = new LoginForm(this, false,null);
loginForm.Show();
}
txt_barcode.Text = "";

View File

@ -424,6 +424,8 @@ namespace AVS
return LogList;
}
public void DeleteRow(string FNSKU, string market_place)
{
// Open the connection
@ -1125,7 +1127,7 @@ namespace AVS
}
else
{
MessageBox.Show("ERROR POSTING DATA ! " + response.StatusCode );
MessageBox.Show("ERROR POSTING DATA ! " + response.StatusCode);
_mainForm.btn_post_data.Enabled = true;
}

1
LoginForm.Designer.cs generated
View File

@ -190,6 +190,7 @@ namespace AVS
this.cb_remember.TabIndex = 27;
this.cb_remember.Text = "Remember";
this.cb_remember.UseVisualStyleBackColor = true;
this.cb_remember.Visible = false;
//
// cb_container
//

View File

@ -22,7 +22,7 @@ namespace AVS
public static string password;
public bool bool_cb_cont = false;
public LoginForm(Form callingForm, bool val)
public LoginForm(Form callingForm, bool val, string value)
{
InitializeComponent();
if (callingForm != null)
@ -33,8 +33,17 @@ namespace AVS
}
mainForm = callingForm as MainForm;
soundplayerNew = mainForm.soundPlayer;
if (value != null)
{
lbl_wrong.Visible = true;
lbl_login.Visible = false;
lbl_wrong.Text = "Wrong Weight";
}
else
{
lbl_wrong.Visible = true;
lbl_login.Visible = false;
}
}

376
MainForm.Designer.cs generated
View File

@ -31,7 +31,6 @@ namespace AVS
/// </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();
@ -39,7 +38,6 @@ namespace AVS
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();
@ -48,8 +46,6 @@ namespace AVS
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();
@ -62,28 +58,29 @@ namespace AVS
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_ver = new System.Windows.Forms.Label();
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.btn_delete = new System.Windows.Forms.Button();
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.btn_save_tol = new System.Windows.Forms.Button();
this.lbl_weightTolerance = new System.Windows.Forms.Label();
this.txt_weight_tol = new System.Windows.Forms.TextBox();
this.btn_refresh = new System.Windows.Forms.Button();
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();
@ -109,19 +106,23 @@ namespace AVS
//
// txt_barcode
//
this.txt_barcode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txt_barcode.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.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.Size = new System.Drawing.Size(297, 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.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.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);
@ -139,7 +140,7 @@ namespace AVS
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.Location = new System.Drawing.Point(421, 32);
this.lbl_fnsku.Name = "lbl_fnsku";
this.lbl_fnsku.Size = new System.Drawing.Size(0, 20);
this.lbl_fnsku.TabIndex = 18;
@ -160,21 +161,13 @@ namespace AVS
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.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_msg.AutoSize = true;
this.lbl_msg.Location = new System.Drawing.Point(16, 827);
this.lbl_msg.Location = new System.Drawing.Point(9, 252);
this.lbl_msg.Name = "lbl_msg";
this.lbl_msg.Size = new System.Drawing.Size(11, 13);
this.lbl_msg.TabIndex = 56;
@ -182,14 +175,11 @@ namespace AVS
//
// 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.Location = new System.Drawing.Point(1156, 159);
this.pb_blue.Name = "pb_blue";
this.pb_blue.Size = new System.Drawing.Size(56, 50);
this.pb_blue.Size = new System.Drawing.Size(57, 54);
this.pb_blue.TabIndex = 23;
this.pb_blue.TabStop = false;
this.pb_blue.Visible = false;
@ -199,9 +189,10 @@ namespace AVS
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.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btn_post_data.Location = new System.Drawing.Point(1057, 166);
this.btn_post_data.Name = "btn_post_data";
this.btn_post_data.Size = new System.Drawing.Size(126, 50);
this.btn_post_data.Size = new System.Drawing.Size(93, 47);
this.btn_post_data.TabIndex = 53;
this.btn_post_data.Text = "POST DATA";
this.btn_post_data.UseVisualStyleBackColor = true;
@ -209,13 +200,15 @@ namespace AVS
//
// lbl_weight
//
this.lbl_weight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_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_weight.AutoSize = true;
this.lbl_weight.BackColor = System.Drawing.SystemColors.Highlight;
this.lbl_weight.BackColor = System.Drawing.SystemColors.ControlLightLight;
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.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_weight.Location = new System.Drawing.Point(13, 177);
this.lbl_weight.Name = "lbl_weight";
this.lbl_weight.Size = new System.Drawing.Size(207, 47);
this.lbl_weight.TabIndex = 25;
@ -227,11 +220,11 @@ namespace AVS
| 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.BackColor = System.Drawing.SystemColors.ControlLightLight;
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.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.lbl_hold_weight.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_hold_weight.Location = new System.Drawing.Point(421, 177);
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;
@ -239,13 +232,15 @@ namespace AVS
//
// txt_weight
//
this.txt_weight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.txt_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.txt_weight.AutoSize = true;
this.txt_weight.BackColor = System.Drawing.SystemColors.Highlight;
this.txt_weight.BackColor = System.Drawing.SystemColors.ControlLightLight;
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.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.txt_weight.ForeColor = System.Drawing.SystemColors.ControlText;
this.txt_weight.Location = new System.Drawing.Point(222, 177);
this.txt_weight.Name = "txt_weight";
this.txt_weight.Size = new System.Drawing.Size(41, 47);
this.txt_weight.TabIndex = 26;
@ -253,38 +248,41 @@ namespace AVS
//
// pb_red
//
this.pb_red.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.pb_red.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_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.Location = new System.Drawing.Point(1156, 159);
this.pb_red.Name = "pb_red";
this.pb_red.Size = new System.Drawing.Size(56, 50);
this.pb_red.Size = new System.Drawing.Size(57, 54);
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.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_reset_port.AutoSize = true;
this.btn_reset_port.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
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.Location = new System.Drawing.Point(302, 358);
this.btn_reset_port.Name = "btn_reset_port";
this.btn_reset_port.Size = new System.Drawing.Size(170, 23);
this.btn_reset_port.Size = new System.Drawing.Size(96, 23);
this.btn_reset_port.TabIndex = 57;
this.btn_reset_port.Text = "RESET PORT";
this.btn_reset_port.UseVisualStyleBackColor = false;
this.btn_reset_port.Visible = 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)
this.dataGridView.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.dataGridView.BackgroundColor = System.Drawing.Color.White;
this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None;
@ -305,20 +303,22 @@ namespace AVS
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.Location = new System.Drawing.Point(3, 77);
this.dataGridView.Name = "dataGridView";
this.dataGridView.ReadOnly = true;
this.dataGridView.Size = new System.Drawing.Size(771, 312);
this.dataGridView.Size = new System.Drawing.Size(803, 303);
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.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.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.Location = new System.Drawing.Point(11, 17);
this.txt_sku.MouseState = MaterialSkin.MouseState.HOVER;
this.txt_sku.Name = "txt_sku";
this.txt_sku.PasswordChar = '\0';
@ -332,12 +332,14 @@ namespace AVS
//
// lb_sysIp
//
this.lb_sysIp.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lb_sysIp.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.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.Location = new System.Drawing.Point(955, 5);
this.lb_sysIp.Name = "lb_sysIp";
this.lb_sysIp.Size = new System.Drawing.Size(27, 21);
this.lb_sysIp.TabIndex = 31;
@ -362,12 +364,14 @@ namespace AVS
//
// lbl_netWeight
//
this.lbl_netWeight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_netWeight.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_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.Location = new System.Drawing.Point(11, 143);
this.lbl_netWeight.Name = "lbl_netWeight";
this.lbl_netWeight.Size = new System.Drawing.Size(118, 22);
this.lbl_netWeight.TabIndex = 11;
@ -375,12 +379,14 @@ namespace AVS
//
// lbl_color
//
this.lbl_color.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_color.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_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.Location = new System.Drawing.Point(11, 99);
this.lbl_color.Name = "lbl_color";
this.lbl_color.Size = new System.Drawing.Size(73, 22);
this.lbl_color.TabIndex = 36;
@ -388,24 +394,29 @@ namespace AVS
//
// lbl_detail
//
this.lbl_detail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_detail.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_detail.AutoSize = true;
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.Location = new System.Drawing.Point(9, 77);
this.lbl_detail.Name = "lbl_detail";
this.lbl_detail.Size = new System.Drawing.Size(1204, 22);
this.lbl_detail.Size = new System.Drawing.Size(62, 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.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_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.Location = new System.Drawing.Point(11, 55);
this.lbl_sku.Name = "lbl_sku";
this.lbl_sku.Size = new System.Drawing.Size(58, 22);
this.lbl_sku.TabIndex = 13;
@ -413,12 +424,14 @@ namespace AVS
//
// lbl_size
//
this.lbl_size.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_size.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_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.Location = new System.Drawing.Point(12, 121);
this.lbl_size.Name = "lbl_size";
this.lbl_size.Size = new System.Drawing.Size(61, 22);
this.lbl_size.TabIndex = 37;
@ -446,7 +459,7 @@ namespace AVS
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.Location = new System.Drawing.Point(10, 550);
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;
@ -459,18 +472,12 @@ namespace AVS
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.Location = new System.Drawing.Point(23, 647);
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)));
@ -531,7 +538,9 @@ namespace AVS
//
// lbl_username
//
this.lbl_username.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lbl_username.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_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);
@ -548,26 +557,51 @@ namespace AVS
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.AutoScroll = true;
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_msg);
this.panel1.Controls.Add(this.lbl_ver);
this.panel1.Controls.Add(this.lbl_market_place);
this.panel1.Controls.Add(this.txt_weight);
this.panel1.Controls.Add(this.lbl_weight);
this.panel1.Controls.Add(this.pb_blue);
this.panel1.Controls.Add(this.lbl_error);
this.panel1.Controls.Add(this.lbl_hold_weight);
this.panel1.Controls.Add(this.pb_red);
this.panel1.Controls.Add(this.btn_post_data);
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.Controls.Add(this.lbl_netWeight);
this.panel1.Controls.Add(this.lbl_detail);
this.panel1.Controls.Add(this.lbl_sku);
this.panel1.Controls.Add(this.lbl_color);
this.panel1.Controls.Add(this.lbl_size);
this.panel1.Location = new System.Drawing.Point(9, 462);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1219, 248);
this.panel1.Size = new System.Drawing.Size(1218, 276);
this.panel1.TabIndex = 50;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// 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(1114, 252);
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-";
//
// lbl_market_place
//
this.lbl_market_place.AutoSize = true;
this.lbl_market_place.Location = new System.Drawing.Point(507, 55);
this.lbl_market_place.Location = new System.Drawing.Point(587, 41);
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;
@ -580,7 +614,7 @@ namespace AVS
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.Location = new System.Drawing.Point(761, 541);
this.lbl_error.Name = "lbl_error";
this.lbl_error.Size = new System.Drawing.Size(73, 33);
this.lbl_error.TabIndex = 42;
@ -592,9 +626,9 @@ namespace AVS
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.AutoScroll = true;
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);
@ -604,20 +638,10 @@ namespace AVS
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.Size = new System.Drawing.Size(812, 385);
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;
@ -629,6 +653,9 @@ namespace AVS
//
// cb_marketplace
//
this.cb_marketplace.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.cb_marketplace.FormattingEnabled = true;
this.cb_marketplace.Location = new System.Drawing.Point(622, 24);
this.cb_marketplace.Name = "cb_marketplace";
@ -637,6 +664,9 @@ namespace AVS
//
// txt_search
//
this.txt_search.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.txt_search.BackColor = System.Drawing.Color.White;
this.txt_search.Depth = 0;
this.txt_search.Hint = "Search here";
@ -652,21 +682,20 @@ namespace AVS
this.txt_search.UseSystemPasswordChar = false;
this.txt_search.TextChanged += new System.EventHandler(this.txt_search_TextChanged);
//
// txt_seal_no
// btn_delete
//
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;
this.btn_delete.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_delete.AutoSize = true;
this.btn_delete.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btn_delete.Location = new System.Drawing.Point(3, 359);
this.btn_delete.Name = "btn_delete";
this.btn_delete.Size = new System.Drawing.Size(54, 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_boxCount
//
@ -681,22 +710,6 @@ namespace AVS
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;
@ -717,7 +730,7 @@ namespace AVS
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.Location = new System.Drawing.Point(416, 678);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(0, 20);
this.label1.TabIndex = 18;
@ -742,71 +755,92 @@ namespace AVS
| 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.btn_delete);
this.panel3.Controls.Add(this.btn_save_tol);
this.panel3.Controls.Add(this.btn_reset_port);
this.panel3.Controls.Add(this.lbl_weightTolerance);
this.panel3.Controls.Add(this.txt_weight_tol);
this.panel3.Controls.Add(this.btn_refresh);
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.Location = new System.Drawing.Point(825, 71);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(391, 432);
this.panel3.Size = new System.Drawing.Size(402, 385);
this.panel3.TabIndex = 52;
this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint);
//
// btn_save_tol
//
this.btn_save_tol.Location = new System.Drawing.Point(251, 128);
this.btn_save_tol.Name = "btn_save_tol";
this.btn_save_tol.Size = new System.Drawing.Size(75, 23);
this.btn_save_tol.TabIndex = 53;
this.btn_save_tol.Text = "Save";
this.btn_save_tol.UseVisualStyleBackColor = true;
this.btn_save_tol.Click += new System.EventHandler(this.btn_save_tol_Click);
//
// lbl_weightTolerance
//
this.lbl_weightTolerance.AutoSize = true;
this.lbl_weightTolerance.Location = new System.Drawing.Point(35, 134);
this.lbl_weightTolerance.Name = "lbl_weightTolerance";
this.lbl_weightTolerance.Size = new System.Drawing.Size(108, 13);
this.lbl_weightTolerance.TabIndex = 52;
this.lbl_weightTolerance.Text = "Weight Tolerance";
//
// txt_weight_tol
//
this.txt_weight_tol.Location = new System.Drawing.Point(148, 130);
this.txt_weight_tol.Name = "txt_weight_tol";
this.txt_weight_tol.Size = new System.Drawing.Size(100, 20);
this.txt_weight_tol.TabIndex = 51;
this.txt_weight_tol.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_weight_tol_KeyPress);
//
// btn_refresh
//
this.btn_refresh.BackColor = System.Drawing.Color.DarkGreen;
this.btn_refresh.FlatAppearance.BorderSize = 0;
this.btn_refresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_refresh.ForeColor = System.Drawing.Color.White;
this.btn_refresh.Location = new System.Drawing.Point(312, 101);
this.btn_refresh.Name = "btn_refresh";
this.btn_refresh.Size = new System.Drawing.Size(75, 23);
this.btn_refresh.TabIndex = 50;
this.btn_refresh.Text = "Refresh";
this.btn_refresh.UseVisualStyleBackColor = false;
this.btn_refresh.Click += new System.EventHandler(this.btn_refresh_Click);
//
// userTextBox
//
this.userTextBox.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.userTextBox.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.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.Location = new System.Drawing.Point(957, 35);
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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoScroll = true;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(1243, 750);
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);
@ -835,11 +869,8 @@ namespace AVS
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;
@ -854,7 +885,6 @@ namespace AVS
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;
@ -863,9 +893,7 @@ namespace AVS
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;
@ -880,6 +908,10 @@ namespace AVS
private System.Windows.Forms.Label lbl_market_place;
private System.Windows.Forms.Button btn_reset_port;
private System.Windows.Forms.Label lbl_ver;
private System.Windows.Forms.Button btn_refresh;
private System.Windows.Forms.Button btn_save_tol;
private System.Windows.Forms.Label lbl_weightTolerance;
private System.Windows.Forms.TextBox txt_weight_tol;
}
}

View File

@ -118,6 +118,7 @@ namespace AVS
private System.Threading.Timer _timer;
WeightTolerance WeightTolerance = new WeightTolerance();
//[STAThread]
public SoundPlayer soundPlayer = new SoundPlayer();
@ -201,6 +202,7 @@ namespace AVS
}
private void txt_barcode_KeyPress(object sender, KeyPressEventArgs e)
{
@ -244,7 +246,7 @@ namespace AVS
}
//FOR CARTON ----------------------------------------------
//FOR ONLY CARTON ----------------------------------------------
if (global_cb_carton == true)
{
@ -265,11 +267,11 @@ namespace AVS
part2 = barcodeParts[1]; // "241106052682"
// You can use these parts as needed. For example:
_ = VerifyBarcodeEndpoint(part1, "CONT", "", cb_marketplace.Text);
_ = VerifyBarcodeCarton(part1, "CONT", "", cb_marketplace.Text);
}
else
{
//_ = VerifyBarcodeEndpoint(barcode, "CONT", "");
MessageBox.Show("Incorrect model no");
this.Enabled = true;
return;
@ -277,6 +279,7 @@ namespace AVS
}
//FOR UINT AND CARTON
else
{
@ -293,9 +296,55 @@ namespace AVS
else
{
//_ = VerifyBarcodeEndpoint(txt_barcode.Text.Trim(), "FNSKU", "");
VerifyBarcodeOffline(txt_barcode.Text.Trim());
if (userTextBox.Text.Contains("SITE05") || userTextBox.Text.Contains("SITE06"))
{
// Check for weight tolerance (+-5 %)
double lowerLimit = 0;
double upperLimit = 0;
if (double.TryParse(txt_weight_tol.Text, out double tolWeight) &&
double.TryParse(lbl_hold_weight.Text, out double actualWeight))
{
//For pillow Site05 (+-3 %)
if (userTextBox.Text.Contains("SITE05"))
{
lowerLimit = tolWeight * 0.97;
upperLimit = tolWeight * 1.03;
}
else
{
lowerLimit = tolWeight * 0.95;
upperLimit = tolWeight * 1.05;
}
if (actualWeight < lowerLimit || actualWeight > upperLimit)
{
PlayAlertSound();
OpenLoginForm(false, "Weight Tolerance");
txt_barcode.Text = "";
this.Enabled = true;
}
else
{
VerifyBarcodeOffline(txt_barcode.Text.Trim());
}
}
else
{
// Optional: handle invalid input
MessageBox.Show("Invalid weight tolerance.");
this.Enabled = true;
}
}
//For Site02 without tolerance
else
{
VerifyBarcodeOffline(txt_barcode.Text.Trim());
}
}
}
else
@ -389,7 +438,7 @@ namespace AVS
InsertDailyLog(barcode, true, false);
PlayAlertSound();
OpenLoginForm(false);
OpenLoginForm(false,null);
txt_barcode.Text = "";
@ -499,7 +548,7 @@ namespace AVS
// You can access response.StatusCode and response.ReasonPhrase for details
}
}
public async Task VerifyBarcodeEndpoint(string barcode, string type, string command, string marketPlace)
public async Task VerifyBarcodeCarton(string barcode, string type, string command, string marketPlace)
{
try
{
@ -537,35 +586,7 @@ namespace AVS
}
}
else
{
lbl_error.Visible = false;
using (HttpClient client = new HttpClient())
{
client.Timeout = TimeSpan.FromMinutes(5);
string parameter = $"{barcode}&type={type}";
var response = await client.GetAsync($"{SERVER_URL}{parameter}");
string responseString = await response.Content.ReadAsStringAsync();
if (responseString.Equals("Invalid FNSKU"))
{
HandleInvalidFNSKU(command);
}
else
{
//Thread.Sleep(800);
HandleValidFNSKU(responseString, command);
}
txt_barcode.Text = "";
this.Enabled = true;
txt_barcode.Focus();
}
}
}
catch (Exception ex)
{
@ -749,7 +770,7 @@ namespace AVS
else
{
PlayAlertSound();
OpenLoginForm(false);
OpenLoginForm(false,null);
}
}
@ -795,7 +816,7 @@ namespace AVS
if (liteDbClass.checkCarton(part1, part2) == true)
{
PlayAlertSound();
OpenLoginForm(true);
OpenLoginForm(true,null);
}
else
@ -912,11 +933,11 @@ namespace AVS
}
}
}
private void OpenLoginForm(bool val)
private void OpenLoginForm(bool val,string value)
{
this.Hide(); // Hide the MainForm
LoginForm = new LoginForm(this, val);
LoginForm = new LoginForm(this, val, value);
LoginForm.Show();
}
private void OpenCartonForm(int id)
@ -952,33 +973,6 @@ namespace AVS
lbl_netWeight.Visible = true;
}
//public string DetectComPort()
//{
// string comPortName = "COM1"; // Replace with the COM port you want to read from
// int baudRate = 9600; // Set to match your device's baud rate
// using (SerialPort serialPort = new SerialPort(comPortName, baudRate))
// {
// serialPort.Open();
// serialPort.ReadTimeout = 5000;
// while (true)
// {
// try
// {
// string data = serialPort.ReadLine();
// Console.WriteLine("Received data: " + data);
// pb_blue.Visible = true;
// pb_red.Visible = false;
// }
// catch (TimeoutException)
// {
// pb_blue.Visible = false;
// pb_red.Visible = true;
// Console.WriteLine("No data received");
// }
// }
// }
//}
public void CartonControls()
{
lbl_counter.Visible = false;
@ -1046,7 +1040,7 @@ namespace AVS
return false;
}
public void checkAVSuser()
public void CheckAVSuser()
{
// Define the root directory and the file name
@ -1063,6 +1057,20 @@ namespace AVS
// Display the site ID in the TextBox
userTextBox.Text = user;
if (userTextBox.Text.Contains("SITE05") || userTextBox.Text.Contains("SITE06"))
{
btn_save_tol.Visible = true;
lbl_weightTolerance.Visible = true;
txt_weight_tol.Visible = true;
}
else
{
btn_save_tol.Visible = false;
lbl_weightTolerance.Visible = false;
txt_weight_tol.Visible = false;
}
}
else
{
@ -1097,7 +1105,7 @@ namespace AVS
//timer_weighing.Start();
//timer_weighing_Tick(null, null);
StartReading();
checkAVSuser();
CheckAVSuser();
// fillMarketPlaces();
Softwareversion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
lbl_ver.Text = "Version-" + Softwareversion;
@ -1200,7 +1208,7 @@ namespace AVS
SKULog.MARKET_PLACE = selectedRow.Cells["MARKET_PLACE"].Value.ToString();
lbl_market_place.Text = SKULog.MARKET_PLACE;
lbl_counter.Text = "Item count : " + liteDbClass.FillCounts(lbl_fnsku.Text, lbl_market_place.Text).ToString();
txt_weight_tol.Text = WeightTolerance.GetWeightTolerance(fnsku, SKULog.MARKET_PLACE).ToString();
if (Int16.TryParse(Regex.Match(lbl_counter.Text, @"\d+").Value, out Int16 countt) &&
Int16.TryParse(Regex.Match(lbl_item_box.Text, @"\d+").Value, out Int16 itemPerBox))
{
@ -1213,7 +1221,7 @@ namespace AVS
}
//_ = VerifyBarcodeEndpoint(log.SKU, "SKU", "forSKU");
}
Resetvalues();
}
@ -1273,7 +1281,7 @@ namespace AVS
File.Delete(filePath);
this.Close();
LoginForm form = new LoginForm(null, false);
LoginForm form = new LoginForm(null, false,null);
form.Show();
}
@ -1519,7 +1527,7 @@ namespace AVS
}
// Run the update process in another thread
_ = RunUpdateProcessAsync();
_ = Task.Delay(500).ContinueWith(async _ => await RunUpdateProcessAsync());
}
@ -1562,7 +1570,6 @@ namespace AVS
}
private string GetCompatiblePort(string[] availablePorts)
{
// Start by assuming no compatible port is found
string compatiblePort = null;
foreach (string portName in availablePorts)
@ -1570,15 +1577,27 @@ namespace AVS
string portDescription = GetPortDescription(portName);
Debug.WriteLine($"Port: {portName}, Description: {portDescription}");
// Prioritize Prolific and CH340 first
if (portDescription.Contains("Prolific USB-to-Serial Comm Port") || portDescription.Contains("USB-SERIAL CH340"))
{
compatiblePort = portName; // Store the found compatible port
break; // Exit the loop once a compatible port is found
compatiblePort = portName;
break;
}
}
// Update UI based on the result of the port search
//UpdateUIForPortSelection(compatiblePort);
// If still no compatible port, check for COM1 as a fallback
if (compatiblePort == null)
{
foreach (string portName in availablePorts)
{
string portDescription = GetPortDescription(portName);
if (portDescription.Contains("Communications Port (COM1)"))
{
compatiblePort = portName;
break;
}
}
}
return compatiblePort;
}
@ -1729,6 +1748,8 @@ namespace AVS
public void btn_post_data_Click(object sender, EventArgs e)
{
// Disable the button to prevent multiple clicks
btn_post_data.Enabled = false;
try
@ -1952,7 +1973,105 @@ namespace AVS
}
}
private void btn_refresh_Click(object sender, EventArgs e)
{
//if (dataGridView.SelectedRows.Count == 0)
//{
// MessageBox.Show("Please select a row");
// return;
//}
var selectedRow = dataGridView.Rows[dataGridView.SelectedCells[0].RowIndex];
var marketPlace = selectedRow.Cells["MARKET_PLACE"].Value?.ToString();
if (string.IsNullOrWhiteSpace(marketPlace))
{
MessageBox.Show("Please select market place first.");
return;
}
SKULog.MARKET_PLACE = marketPlace;
lbl_market_place.Text = marketPlace;
txt_sku.Text = SKULog.SKU;
var cells = selectedRow.Cells;
SKULog.FNSKU = cells["FNSKU"].Value?.ToString();
SKULog.ModelNo = cells["ModelNo"].Value?.ToString();
SKULog.NetWeightKg = Convert.ToDouble(cells["NetWeightKg"].Value?.ToString());
SKULog.Size = cells["Size"].Value?.ToString();
SKULog.Colour = cells["Colour"].Value?.ToString();
SKULog.Title = cells["Title"].Value?.ToString();
if (Int16.TryParse(cells["itemsPerBox"].Value?.ToString(), out Int16 itemPerBox))
{
SKULog.ItemsPerBox = itemPerBox;
lbl_item_box.Text = $"Item per box: {itemPerBox}";
var itemCount = liteDbClass.FillCounts(SKULog.FNSKU, marketPlace);
lbl_counter.Text = $"Item count : {itemCount}";
if (Int16.TryParse(itemCount.ToString(), out Int16 countt))
{
var boxCount = countt / itemPerBox;
lbl_boxCount.Text = $"Box count : {boxCount}";
count = countt;
boxcount = boxCount;
}
}
}
private void btn_save_tol_Click(object sender, EventArgs e)
{
var selectedRow = dataGridView.Rows[dataGridView.SelectedCells[0].RowIndex];
if(fnsku == "")
{
MessageBox.Show("Please select row");
return;
}
if (txt_weight_tol.Text.Length > 0 && txt_weight_tol.Text != 0.ToString())
{
SKULog.FNSKU = fnsku;
SKULog.MARKET_PLACE = selectedRow.Cells["MARKET_PLACE"].Value?.ToString();
double weightTolerance = Convert.ToDouble(txt_weight_tol.Text);
bool result = WeightTolerance.InsertOrUpdateWeightTolerance(fnsku, SKULog.MARKET_PLACE, weightTolerance, userTextBox.Text);
if (result == true)
{
MessageBox.Show("Weight Tolerance saved successfully.");
}
else
{
MessageBox.Show("Weight Tolerance not saved.");
}
}
else
{
MessageBox.Show("Please enter weight tolerance.");
}
txt_weight_tol.Text = "";
}
private void txt_weight_tol_KeyPress(object sender, KeyPressEventArgs e)
{
TextBox txt = sender as TextBox;
// Allow control keys (like backspace), digits, and one dot (.)
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && e.KeyChar != '.')
{
e.Handled = true;
}
// Only allow one dot
if (e.KeyChar == '.' && txt.Text.Contains("."))
{
e.Handled = true;
}
}
}
}

View File

@ -57,15 +57,6 @@
<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>

View File

@ -71,7 +71,7 @@ namespace AVS
else
{
Application.Run(new LoginForm(null,false));
Application.Run(new LoginForm(null,false,null));
}

View File

@ -34,8 +34,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
</PropertyGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.NetCore.DesktopRuntime.3.1.x64">
<Install>True</Install>
<Install>true</Install>
<ProductName>.NET Desktop Runtime 3.1.32 (x64)</ProductName>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<PublishFile Include="bin\Debug\netcoreapp3.1\logo-dark.ico">
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>true</IncludeHash>
<FileType>File</FileType>
</PublishFile>
</ItemGroup>
</Project>

View File

@ -4,7 +4,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2025-02-20T07:06:50.5256566Z;True|2025-02-20T12:04:47.9811232+05:00;True|2025-02-20T10:32:10.1630807+05:00;True|2025-02-19T16:15:25.9652099+05:00;True|2025-02-19T11:49:48.6682011+05:00;True|2025-02-14T17:26:14.3396292+05:00;True|2025-02-14T15:19:10.9203072+05:00;True|2025-02-14T14:56:45.1511366+05:00;True|2025-02-14T11:28:26.1564993+05:00;True|2025-02-13T15:35:07.9451265+05:00;True|2025-02-13T15:29:09.6509368+05:00;True|2025-02-13T15:15:42.9625389+05:00;True|2025-02-13T12:17:29.1198751+05:00;True|2025-02-07T10:32:29.7309449+05:00;True|2025-02-07T10:27:55.4280510+05:00;True|2025-02-07T10:21:49.7222635+05:00;True|2025-02-06T15:41:41.2223957+05:00;True|2025-02-06T13:03:45.4378887+05:00;True|2025-02-06T12:47:23.0466564+05:00;True|2025-02-06T12:07:59.3347451+05:00;True|2025-02-06T11:13:58.9226036+05:00;True|2025-02-06T10:56:53.5700768+05:00;True|2025-01-22T18:06:10.2021515+05:00;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>
<LastFailureDetails />
<History>True|2025-04-25T07:28:18.3725903Z;True|2025-04-25T12:27:54.3223053+05:00;</History>
</PropertyGroup>
</Project>

10
Resource.Designer.cs generated
View File

@ -120,6 +120,16 @@ namespace AVS {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap refresh {
get {
object obj = ResourceManager.GetObject("refresh", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View File

@ -124,8 +124,8 @@
<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 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>
<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>
@ -139,13 +139,16 @@
<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 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="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="refresh" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
Resources/refresh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

129
WeightTolerance.cs Normal file
View File

@ -0,0 +1,129 @@
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace AVS
{
internal class WeightTolerance
{
private MySqlConnection connection;
private string connectionString = "server=utopia-2.c5qech8o9lgg.us-east-1.rds.amazonaws.com;user=itemVerification;password=itemVerification01;database=item_verification_system;";
public bool InsertOrUpdateWeightTolerance(string FNSKU, string market_place, double weight_tolerance , string avs_name)
{
try
{
OpenConnection();
string query = @"INSERT INTO weight_tolerance (FNSKU, MARKET_PLACE, WEIGHT ,WEIGHT_DATETIME,WEIGHT_ADD_BY)
VALUES (@fnsku, @market_place, @weight_tolerance , @datetime , @avs_name )
ON DUPLICATE KEY UPDATE WEIGHT = VALUES(WEIGHT)";
using (MySqlCommand cmd = new MySqlCommand(query, connection))
{
cmd.Parameters.AddWithValue("@fnsku", FNSKU);
cmd.Parameters.AddWithValue("@market_place", market_place);
cmd.Parameters.AddWithValue("@weight_tolerance", weight_tolerance);
cmd.Parameters.AddWithValue("@datetime", DateTime.Now);
cmd.Parameters.AddWithValue("@avs_name", avs_name);
cmd.ExecuteNonQuery();
}
return true;
}
catch (Exception ex)
{
Console.WriteLine($"InsertOrUpdate Error: {ex.Message}");
return false;
}
finally
{
CloseConnection();
}
}
public MySqlConnection OpenConnection()
{
try
{
// Open the Mysql connection
connection = new MySqlConnection(connectionString);
connection.Open();
//MessageBox.Show("MySQL connection opened successfully", "Connection Status", MessageBoxButtons.OK, MessageBoxIcon.Information);
Console.WriteLine("Mysql connection opened successfully");
return connection;
}
catch (Exception ex)
{
Console.WriteLine($"Error opening SQLite connection: {ex.Message}");
return null;
}
}
public void CloseConnection()
{
try
{
connection = new MySqlConnection(connectionString);
// Close the Mysql connection
connection?.Close();
Console.WriteLine("Mysql connection closed successfully");
}
catch (Exception ex)
{
Console.WriteLine($"Error closing SQLite connection: {ex.Message}");
}
}
public double GetWeightTolerance(string fnsku, string marketPlace)
{
double weightTolerance = 0;
try
{
OpenConnection();
string query = @"
SELECT WEIGHT
FROM weight_tolerance
WHERE FNSKU = @fnsku AND MARKET_PLACE = @market_place";
using (MySqlCommand cmd = new MySqlCommand(query, connection))
{
cmd.Parameters.AddWithValue("@fnsku", fnsku);
cmd.Parameters.AddWithValue("@market_place", marketPlace);
var result = cmd.ExecuteScalar();
if (result != null && result != DBNull.Value)
{
weightTolerance = Convert.ToDouble(result);
}
}
}
catch (Exception ex)
{
Console.WriteLine($"Error fetching weight tolerance: {ex.Message}");
}
finally
{
CloseConnection();
}
return weightTolerance;
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,9 +4,6 @@
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "3.1.0"
},
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}

View File

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>KvPXDue8jpizVW3pVfuUQZBI//1BsNryaaCTGnLB8PY=</dsig:DigestValue>
<dsig:DigestValue>U646R5VvTUg8+SGcUCwQINDLr6DcH11tKWUJKn6ZQwI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@ -53,13 +53,13 @@
</hash>
</dependentAssembly>
</dependency>
<file name="AVS.exe" size="21920770">
<file name="AVS.exe" size="21969796">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>rGL1YG5MTxsEqJYYgNVqsSMqfphKY7EHUL5m+0JkZHg=</dsig:DigestValue>
<dsig:DigestValue>DP08gYRmtxcj9ODAGI/o7B8M9suw+HOulaMYfkptXXc=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@ -4,9 +4,6 @@
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "3.1.0"
},
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}

View File

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>KvPXDue8jpizVW3pVfuUQZBI//1BsNryaaCTGnLB8PY=</dsig:DigestValue>
<dsig:DigestValue>U646R5VvTUg8+SGcUCwQINDLr6DcH11tKWUJKn6ZQwI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

Binary file not shown.

Binary file not shown.

View File

@ -53,13 +53,13 @@
</hash>
</dependentAssembly>
</dependency>
<file name="AVS.exe" size="21920770">
<file name="AVS.exe" size="21969796">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>rGL1YG5MTxsEqJYYgNVqsSMqfphKY7EHUL5m+0JkZHg=</dsig:DigestValue>
<dsig:DigestValue>DP08gYRmtxcj9ODAGI/o7B8M9suw+HOulaMYfkptXXc=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@ -90,8 +90,7 @@
"net47",
"net471",
"net472",
"net48",
"net481"
"net48"
],
"assetTargetFallback": true,
"warn": true,
@ -103,7 +102,7 @@
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.403\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.416\\RuntimeIdentifierGraph.json"
}
}
}

View File

@ -7,13 +7,16 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\muhammad.faique\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.6</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\muhammad.faique\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft\Xamarin\NuGet\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)entityframework\6.4.4\buildTransitive\netcoreapp3.0\EntityFramework.props" Condition="Exists('$(NuGetPackageRoot)entityframework\6.4.4\buildTransitive\netcoreapp3.0\EntityFramework.props')" />
</ImportGroup>

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets" Condition="Exists('$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets')" />
<Import Project="$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets')" />

View File

@ -8,11 +8,11 @@
<dependencies>
<group targetFramework=".NETCoreApp3.1">
<dependency id="MaterialSkin" version="0.2.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.Management.Infrastructure" version="3.0.0" exclude="Build,Analyzers" />
<dependency id="MySql.Data" version="8.1.0" exclude="Build,Analyzers" />
<dependency id="Newtonsoft.Json" version="13.0.3" exclude="Build,Analyzers" />
<dependency id="SerialPortStream" version="2.4.1" exclude="Build,Analyzers" />
<dependency id="SharpCompress" version="0.38.0" exclude="Build,Analyzers" />
<dependency id="System.Data.SQLite" version="1.0.118" exclude="Build,Analyzers" />
<dependency id="System.IO.Ports" version="7.0.0" exclude="Build,Analyzers" />
<dependency id="System.Management" version="9.0.0" exclude="Build,Analyzers" />

View File

@ -1,9 +1,3 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.RootNamespace = AVS
build_property.ProjectDir = D:\Projects\AVS\

View File

@ -1 +1 @@
91363e811efde127f82e334f6fa11b537055a0b6
952bfb2735d05ec9b79c014d31e167b0141dec43

View File

@ -252,11 +252,6 @@ D:\Projects\AVS - Updated\obj\Debug\netcoreapp3.1\AVS.dll
D:\Projects\AVS - Updated\obj\Debug\netcoreapp3.1\AVS.pdb
D:\Projects\AVS - Updated\obj\Debug\netcoreapp3.1\AVS.genruntimeconfig.cache
D:\Projects\AVS - Updated\obj\Debug\netcoreapp3.1\AVS.csproj.AssemblyReference.cache
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.csproj.AssemblyReference.cache
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.CartonForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.LoginForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.MainForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.csproj.GenerateResource.cache
D:\Projects\AVS\bin\Debug\netcoreapp3.1\AVS.exe
D:\Projects\AVS\bin\Debug\netcoreapp3.1\AVS.deps.json
D:\Projects\AVS\bin\Debug\netcoreapp3.1\AVS.runtimeconfig.json
@ -319,7 +314,12 @@ D:\Projects\AVS\bin\Debug\netcoreapp3.1\runtimes\win-x64\native\SQLite.Interop.d
D:\Projects\AVS\bin\Debug\netcoreapp3.1\runtimes\win-x86\native\SQLite.Interop.dll
D:\Projects\AVS\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.1\System.Data.SqlClient.dll
D:\Projects\AVS\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.1\System.Data.SqlClient.dll
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.csproj.AssemblyReference.cache
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.CartonForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.LoginForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.MainForm.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.Resource.resources
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.csproj.GenerateResource.cache
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.GeneratedMSBuildEditorConfig.editorconfig
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.AssemblyInfoInputs.cache
D:\Projects\AVS\obj\Debug\netcoreapp3.1\AVS.AssemblyInfo.cs

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,3 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.RootNamespace = AVS
build_property.ProjectDir = D:\Projects\AVS\

View File

@ -1 +1 @@
d45e18d858abd9e4612315496809a1942bddeff8
aeadd1f78e98d696c5ed90229fd22a9940ff8add

Binary file not shown.

View File

@ -1 +1 @@
3b7286f61495c7d2a729b2ca4204b37093b9b260
aab138238c877ec8b9e7be57a7513929e0c4ed07

Binary file not shown.

View File

@ -1,9 +1,3 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.RootNamespace = AVS
build_property.ProjectDir = D:\Projects\AVS\

View File

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>KvPXDue8jpizVW3pVfuUQZBI//1BsNryaaCTGnLB8PY=</dsig:DigestValue>
<dsig:DigestValue>U646R5VvTUg8+SGcUCwQINDLr6DcH11tKWUJKn6ZQwI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@ -1 +1 @@
7594bf74b6bcd0f943fb968eb5879569aac00f22
dc1595f7db13d7405649004d6441fae661f0186b

View File

@ -53,13 +53,13 @@
</hash>
</dependentAssembly>
</dependency>
<file name="AVS.exe" size="21920770">
<file name="AVS.exe" size="21969796">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>rGL1YG5MTxsEqJYYgNVqsSMqfphKY7EHUL5m+0JkZHg=</dsig:DigestValue>
<dsig:DigestValue>DP08gYRmtxcj9ODAGI/o7B8M9suw+HOulaMYfkptXXc=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@ -1 +1 @@
a67c786e42c74a558a9892c7f40ca3f3ffa94154
c0b3ad061c7f74cb84a4f0b38d13b59a87dfef53

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "Yc6dAPaG2caIYjP2rH8CkdLo7Q2RCH5D4KXVlbGQzwhGQNvw+YAiWs3KRaa+ey6NjPYbK0E2IXLn0sugPsnCdg==",
"dgSpecHash": "YYOUHTMF43todL+JSqfRwQxi+NvVF+beryQ2sRL2AJFuJN/+wF8uv6ohQuSMHaoiT94MLRwGxDHb8VJAPFWUwg==",
"success": true,
"projectFilePath": "D:\\Projects\\AVS\\AVS.csproj",
"expectedPackageFiles": [
@ -146,7 +146,7 @@
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'MaterialSkin 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.",
"message": "Package 'MaterialSkin 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.",
"libraryId": "MaterialSkin",
"targetGraphs": [
".NETCoreApp,Version=v3.1"

View File

@ -90,8 +90,7 @@
"net47",
"net471",
"net472",
"net48",
"net481"
"net48"
],
"assetTargetFallback": true,
"warn": true,
@ -103,7 +102,7 @@
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.403\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.416\\RuntimeIdentifierGraph.json"
}
},
"runtimes": {

View File

@ -7,13 +7,16 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\muhammad.faique\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.11.6</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\muhammad.faique\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft\Xamarin\NuGet\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)entityframework\6.4.4\buildTransitive\netcoreapp3.0\EntityFramework.props" Condition="Exists('$(NuGetPackageRoot)entityframework\6.4.4\buildTransitive\netcoreapp3.0\EntityFramework.props')" />
</ImportGroup>

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets" Condition="Exists('$(NuGetPackageRoot)system.text.encodings.web\7.0.0\buildTransitive\netcoreapp2.0\System.Text.Encodings.Web.targets')" />
<Import Project="$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json\7.0.1\buildTransitive\netcoreapp2.0\System.Text.Json.targets')" />

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "z9dARiX7gAMH87wvbJEYWPlzkPiG8Ii8CE1TihTWIoUox3OQLEcdyjc4UuP4xQZA4LthJsdNgvMx/EJjvaXpVQ==",
"dgSpecHash": "jBSJscXO+TNxuecCqFdshhaP01Ii6sz33UUw18GyB9gX+k+cUv5HKmCurihppOkqUlFNM3UyYHMzFa5ROPf07A==",
"success": true,
"projectFilePath": "D:\\Projects\\AVS\\AVS.csproj",
"expectedPackageFiles": [
@ -172,7 +172,7 @@
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Package 'MaterialSkin 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.",
"message": "Package 'MaterialSkin 0.2.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.",
"libraryId": "MaterialSkin",
"targetGraphs": [
".NETCoreApp,Version=v3.1"