498 lines
19 KiB
C#
498 lines
19 KiB
C#
namespace IBRCAD
|
|
{
|
|
partial class frm_cadproducts : Form
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frm_cadproducts));
|
|
pn_data = new Panel();
|
|
btn_addsubcat = new Button();
|
|
btn_addunidmed = new Button();
|
|
btn_addcat = new Button();
|
|
btn_delImage = new Button();
|
|
btn_addimage = new Button();
|
|
pnFoto = new Panel();
|
|
pb_image = new PictureBox();
|
|
cbSubCategoria = new ComboBox();
|
|
label9 = new Label();
|
|
cbCategoria = new ComboBox();
|
|
label8 = new Label();
|
|
cbUnd = new ComboBox();
|
|
label7 = new Label();
|
|
txtQtde = new TextBox();
|
|
label6 = new Label();
|
|
txtValorVenda = new TextBox();
|
|
txtValorPago = new TextBox();
|
|
label5 = new Label();
|
|
label4 = new Label();
|
|
txtdiscprod = new RichTextBox();
|
|
label3 = new Label();
|
|
txt_nameProd = new TextBox();
|
|
label2 = new Label();
|
|
txtCod = new TextBox();
|
|
label1 = new Label();
|
|
pn_controls = new Panel();
|
|
btn_cancel = new Button();
|
|
btn_save = new Button();
|
|
btn_excluir = new Button();
|
|
btn_alterar = new Button();
|
|
btn_localizar = new Button();
|
|
btn_inserir = new Button();
|
|
pb_exit = new PictureBox();
|
|
pn_data.SuspendLayout();
|
|
pnFoto.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pb_image).BeginInit();
|
|
pn_controls.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pb_exit).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// pn_data
|
|
//
|
|
pn_data.Controls.Add(btn_addsubcat);
|
|
pn_data.Controls.Add(btn_addunidmed);
|
|
pn_data.Controls.Add(btn_addcat);
|
|
pn_data.Controls.Add(btn_delImage);
|
|
pn_data.Controls.Add(btn_addimage);
|
|
pn_data.Controls.Add(pnFoto);
|
|
pn_data.Controls.Add(cbSubCategoria);
|
|
pn_data.Controls.Add(label9);
|
|
pn_data.Controls.Add(cbCategoria);
|
|
pn_data.Controls.Add(label8);
|
|
pn_data.Controls.Add(cbUnd);
|
|
pn_data.Controls.Add(label7);
|
|
pn_data.Controls.Add(txtQtde);
|
|
pn_data.Controls.Add(label6);
|
|
pn_data.Controls.Add(txtValorVenda);
|
|
pn_data.Controls.Add(txtValorPago);
|
|
pn_data.Controls.Add(label5);
|
|
pn_data.Controls.Add(label4);
|
|
pn_data.Controls.Add(txtdiscprod);
|
|
pn_data.Controls.Add(label3);
|
|
pn_data.Controls.Add(txt_nameProd);
|
|
pn_data.Controls.Add(label2);
|
|
pn_data.Controls.Add(txtCod);
|
|
pn_data.Controls.Add(label1);
|
|
pn_data.Location = new Point(2, 29);
|
|
pn_data.Name = "pn_data";
|
|
pn_data.Size = new Size(830, 448);
|
|
pn_data.TabIndex = 0;
|
|
//
|
|
// btn_addsubcat
|
|
//
|
|
btn_addsubcat.Location = new Point(453, 412);
|
|
btn_addsubcat.Name = "btn_addsubcat";
|
|
btn_addsubcat.Size = new Size(25, 25);
|
|
btn_addsubcat.TabIndex = 22;
|
|
btn_addsubcat.Text = "+";
|
|
btn_addsubcat.UseVisualStyleBackColor = true;
|
|
btn_addsubcat.Click += btn_addsubcat_Click;
|
|
//
|
|
// btn_addunidmed
|
|
//
|
|
btn_addunidmed.Location = new Point(453, 355);
|
|
btn_addunidmed.Name = "btn_addunidmed";
|
|
btn_addunidmed.Size = new Size(25, 25);
|
|
btn_addunidmed.TabIndex = 21;
|
|
btn_addunidmed.Text = "+";
|
|
btn_addunidmed.UseVisualStyleBackColor = true;
|
|
btn_addunidmed.Click += btn_addunidmed_Click;
|
|
//
|
|
// btn_addcat
|
|
//
|
|
btn_addcat.Location = new Point(178, 414);
|
|
btn_addcat.Name = "btn_addcat";
|
|
btn_addcat.Size = new Size(25, 25);
|
|
btn_addcat.TabIndex = 20;
|
|
btn_addcat.Text = "+";
|
|
btn_addcat.UseVisualStyleBackColor = true;
|
|
btn_addcat.Click += btn_addcat_Click;
|
|
//
|
|
// btn_delImage
|
|
//
|
|
btn_delImage.Image = (Image)resources.GetObject("btn_delImage.Image");
|
|
btn_delImage.Location = new Point(668, 331);
|
|
btn_delImage.Name = "btn_delImage";
|
|
btn_delImage.Size = new Size(136, 117);
|
|
btn_delImage.TabIndex = 19;
|
|
btn_delImage.Text = "Excluir ";
|
|
btn_delImage.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_delImage.UseVisualStyleBackColor = true;
|
|
btn_delImage.Click += btn_delImage_Click;
|
|
//
|
|
// btn_addimage
|
|
//
|
|
btn_addimage.Image = (Image)resources.GetObject("btn_addimage.Image");
|
|
btn_addimage.Location = new Point(497, 331);
|
|
btn_addimage.Name = "btn_addimage";
|
|
btn_addimage.Size = new Size(136, 117);
|
|
btn_addimage.TabIndex = 6;
|
|
btn_addimage.Text = "Add Imagem";
|
|
btn_addimage.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_addimage.UseVisualStyleBackColor = true;
|
|
btn_addimage.Click += btn_addimage_Click;
|
|
//
|
|
// pnFoto
|
|
//
|
|
pnFoto.Controls.Add(pb_image);
|
|
pnFoto.Location = new Point(497, 17);
|
|
pnFoto.Name = "pnFoto";
|
|
pnFoto.Size = new Size(307, 306);
|
|
pnFoto.TabIndex = 18;
|
|
//
|
|
// pb_image
|
|
//
|
|
pb_image.Image = (Image)resources.GetObject("pb_image.Image");
|
|
pb_image.Location = new Point(0, 0);
|
|
pb_image.Name = "pb_image";
|
|
pb_image.Size = new Size(307, 306);
|
|
pb_image.SizeMode = PictureBoxSizeMode.StretchImage;
|
|
pb_image.TabIndex = 0;
|
|
pb_image.TabStop = false;
|
|
//
|
|
// cbSubCategoria
|
|
//
|
|
cbSubCategoria.FormattingEnabled = true;
|
|
cbSubCategoria.Location = new Point(235, 414);
|
|
cbSubCategoria.Name = "cbSubCategoria";
|
|
cbSubCategoria.Size = new Size(212, 23);
|
|
cbSubCategoria.TabIndex = 17;
|
|
//
|
|
// label9
|
|
//
|
|
label9.AutoSize = true;
|
|
label9.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label9.Location = new Point(235, 390);
|
|
label9.Name = "label9";
|
|
label9.Size = new Size(183, 21);
|
|
label9.TabIndex = 16;
|
|
label9.Text = "Subcategoria do produto";
|
|
//
|
|
// cbCategoria
|
|
//
|
|
cbCategoria.FormattingEnabled = true;
|
|
cbCategoria.Location = new Point(10, 414);
|
|
cbCategoria.Name = "cbCategoria";
|
|
cbCategoria.Size = new Size(162, 23);
|
|
cbCategoria.TabIndex = 15;
|
|
cbCategoria.SelectedIndexChanged += cbCategoria_SelectedIndexChanged;
|
|
//
|
|
// label8
|
|
//
|
|
label8.AutoSize = true;
|
|
label8.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label8.Location = new Point(10, 390);
|
|
label8.Name = "label8";
|
|
label8.Size = new Size(159, 21);
|
|
label8.TabIndex = 14;
|
|
label8.Text = "Categoria do Produto";
|
|
//
|
|
// cbUnd
|
|
//
|
|
cbUnd.FormattingEnabled = true;
|
|
cbUnd.Location = new Point(235, 355);
|
|
cbUnd.Name = "cbUnd";
|
|
cbUnd.Size = new Size(212, 23);
|
|
cbUnd.TabIndex = 13;
|
|
//
|
|
// label7
|
|
//
|
|
label7.AutoSize = true;
|
|
label7.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label7.Location = new Point(235, 331);
|
|
label7.Name = "label7";
|
|
label7.Size = new Size(145, 21);
|
|
label7.TabIndex = 12;
|
|
label7.Text = "Unidade de Medida";
|
|
//
|
|
// txtQtde
|
|
//
|
|
txtQtde.Location = new Point(10, 355);
|
|
txtQtde.Name = "txtQtde";
|
|
txtQtde.Size = new Size(162, 23);
|
|
txtQtde.TabIndex = 11;
|
|
txtQtde.KeyPress += txtQtde_KeyPress;
|
|
txtQtde.Leave += txtQtde_Leave;
|
|
//
|
|
// label6
|
|
//
|
|
label6.AutoSize = true;
|
|
label6.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label6.Location = new Point(10, 331);
|
|
label6.Name = "label6";
|
|
label6.Size = new Size(94, 21);
|
|
label6.TabIndex = 10;
|
|
label6.Text = "Quantidade:";
|
|
//
|
|
// txtValorVenda
|
|
//
|
|
txtValorVenda.Location = new Point(235, 300);
|
|
txtValorVenda.Name = "txtValorVenda";
|
|
txtValorVenda.Size = new Size(212, 23);
|
|
txtValorVenda.TabIndex = 9;
|
|
txtValorVenda.KeyPress += txtValorVenda_KeyPress;
|
|
txtValorVenda.Leave += txtValorVenda_Leave;
|
|
//
|
|
// txtValorPago
|
|
//
|
|
txtValorPago.Location = new Point(10, 300);
|
|
txtValorPago.Name = "txtValorPago";
|
|
txtValorPago.Size = new Size(162, 23);
|
|
txtValorPago.TabIndex = 8;
|
|
txtValorPago.KeyPress += txtValorPago_KeyPress;
|
|
txtValorPago.Leave += txtValorPago_Leave;
|
|
//
|
|
// label5
|
|
//
|
|
label5.AutoSize = true;
|
|
label5.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label5.Location = new Point(235, 276);
|
|
label5.Name = "label5";
|
|
label5.Size = new Size(212, 21);
|
|
label5.TabIndex = 7;
|
|
label5.Text = "Valor de revenda do Produto:";
|
|
//
|
|
// label4
|
|
//
|
|
label4.AutoSize = true;
|
|
label4.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label4.Location = new Point(10, 276);
|
|
label4.Name = "label4";
|
|
label4.Size = new Size(170, 21);
|
|
label4.TabIndex = 6;
|
|
label4.Text = "Valor pago do Produto:";
|
|
//
|
|
// txtdiscprod
|
|
//
|
|
txtdiscprod.Location = new Point(10, 141);
|
|
txtdiscprod.Name = "txtdiscprod";
|
|
txtdiscprod.Size = new Size(437, 132);
|
|
txtdiscprod.TabIndex = 5;
|
|
txtdiscprod.Text = "";
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label3.Location = new Point(10, 117);
|
|
label3.Name = "label3";
|
|
label3.Size = new Size(162, 21);
|
|
label3.TabIndex = 4;
|
|
label3.Text = "Descrição do Produto:";
|
|
//
|
|
// txt_nameProd
|
|
//
|
|
txt_nameProd.Location = new Point(10, 89);
|
|
txt_nameProd.Name = "txt_nameProd";
|
|
txt_nameProd.Size = new Size(437, 23);
|
|
txt_nameProd.TabIndex = 3;
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label2.Location = new Point(10, 65);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(138, 21);
|
|
label2.TabIndex = 2;
|
|
label2.Text = "Nome do Produto:";
|
|
//
|
|
// txtCod
|
|
//
|
|
txtCod.Enabled = false;
|
|
txtCod.Location = new Point(10, 35);
|
|
txtCod.Name = "txtCod";
|
|
txtCod.Size = new Size(94, 23);
|
|
txtCod.TabIndex = 1;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
|
|
label1.Location = new Point(10, 11);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(63, 21);
|
|
label1.TabIndex = 0;
|
|
label1.Text = "Código:";
|
|
//
|
|
// pn_controls
|
|
//
|
|
pn_controls.Controls.Add(btn_cancel);
|
|
pn_controls.Controls.Add(btn_save);
|
|
pn_controls.Controls.Add(btn_excluir);
|
|
pn_controls.Controls.Add(btn_alterar);
|
|
pn_controls.Controls.Add(btn_localizar);
|
|
pn_controls.Controls.Add(btn_inserir);
|
|
pn_controls.Location = new Point(2, 483);
|
|
pn_controls.Name = "pn_controls";
|
|
pn_controls.Size = new Size(830, 149);
|
|
pn_controls.TabIndex = 1;
|
|
//
|
|
// btn_cancel
|
|
//
|
|
btn_cancel.Image = (Image)resources.GetObject("btn_cancel.Image");
|
|
btn_cancel.Location = new Point(696, 17);
|
|
btn_cancel.Name = "btn_cancel";
|
|
btn_cancel.Size = new Size(127, 122);
|
|
btn_cancel.TabIndex = 5;
|
|
btn_cancel.Text = "Cancelar";
|
|
btn_cancel.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_cancel.UseVisualStyleBackColor = true;
|
|
btn_cancel.Click += btn_cancel_Click;
|
|
//
|
|
// btn_save
|
|
//
|
|
btn_save.Image = (Image)resources.GetObject("btn_save.Image");
|
|
btn_save.Location = new Point(560, 17);
|
|
btn_save.Name = "btn_save";
|
|
btn_save.Size = new Size(127, 122);
|
|
btn_save.TabIndex = 4;
|
|
btn_save.Text = "Salvar";
|
|
btn_save.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_save.UseVisualStyleBackColor = true;
|
|
btn_save.Click += btn_save_Click;
|
|
//
|
|
// btn_excluir
|
|
//
|
|
btn_excluir.Image = (Image)resources.GetObject("btn_excluir.Image");
|
|
btn_excluir.Location = new Point(424, 17);
|
|
btn_excluir.Name = "btn_excluir";
|
|
btn_excluir.Size = new Size(127, 122);
|
|
btn_excluir.TabIndex = 3;
|
|
btn_excluir.Text = "Excluir ";
|
|
btn_excluir.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_excluir.UseVisualStyleBackColor = true;
|
|
btn_excluir.Click += btn_excluir_Click;
|
|
//
|
|
// btn_alterar
|
|
//
|
|
btn_alterar.Image = (Image)resources.GetObject("btn_alterar.Image");
|
|
btn_alterar.Location = new Point(288, 17);
|
|
btn_alterar.Name = "btn_alterar";
|
|
btn_alterar.Size = new Size(127, 122);
|
|
btn_alterar.TabIndex = 2;
|
|
btn_alterar.Text = "Atualizar Cadastro";
|
|
btn_alterar.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_alterar.UseVisualStyleBackColor = true;
|
|
btn_alterar.Click += btn_alterar_Click;
|
|
//
|
|
// btn_localizar
|
|
//
|
|
btn_localizar.Image = (Image)resources.GetObject("btn_localizar.Image");
|
|
btn_localizar.Location = new Point(152, 17);
|
|
btn_localizar.Name = "btn_localizar";
|
|
btn_localizar.Size = new Size(127, 122);
|
|
btn_localizar.TabIndex = 1;
|
|
btn_localizar.Text = "Localizar Cadastro";
|
|
btn_localizar.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_localizar.UseVisualStyleBackColor = true;
|
|
btn_localizar.Click += btn_localizar_Click;
|
|
//
|
|
// btn_inserir
|
|
//
|
|
btn_inserir.Image = (Image)resources.GetObject("btn_inserir.Image");
|
|
btn_inserir.Location = new Point(16, 17);
|
|
btn_inserir.Name = "btn_inserir";
|
|
btn_inserir.Size = new Size(127, 122);
|
|
btn_inserir.TabIndex = 0;
|
|
btn_inserir.Text = "Novo Cadastro";
|
|
btn_inserir.TextAlign = ContentAlignment.BottomCenter;
|
|
btn_inserir.UseVisualStyleBackColor = true;
|
|
btn_inserir.Click += btn_inserir_Click;
|
|
//
|
|
// pb_exit
|
|
//
|
|
pb_exit.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
pb_exit.Image = (Image)resources.GetObject("pb_exit.Image");
|
|
pb_exit.Location = new Point(807, 1);
|
|
pb_exit.Name = "pb_exit";
|
|
pb_exit.Size = new Size(25, 25);
|
|
pb_exit.SizeMode = PictureBoxSizeMode.StretchImage;
|
|
pb_exit.TabIndex = 2;
|
|
pb_exit.TabStop = false;
|
|
pb_exit.Click += pb_exit_Click;
|
|
//
|
|
// frm_cadproducts
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.White;
|
|
ClientSize = new Size(837, 633);
|
|
Controls.Add(pb_exit);
|
|
Controls.Add(pn_controls);
|
|
Controls.Add(pn_data);
|
|
FormBorderStyle = FormBorderStyle.None;
|
|
Name = "frm_cadproducts";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "frm_cadSubCat";
|
|
Load += frm_cadproducts_Load;
|
|
pn_data.ResumeLayout(false);
|
|
pn_data.PerformLayout();
|
|
pnFoto.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pb_image).EndInit();
|
|
pn_controls.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pb_exit).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
protected Panel pn_data;
|
|
protected Panel pn_controls;
|
|
protected Button btn_save;
|
|
protected Button btn_excluir;
|
|
protected Button btn_alterar;
|
|
protected Button btn_localizar;
|
|
protected Button btn_inserir;
|
|
protected Button btn_cancel;
|
|
private Label label4;
|
|
private RichTextBox txtdiscprod;
|
|
private Label label3;
|
|
private TextBox txt_nameProd;
|
|
private Label label2;
|
|
private TextBox txtCod;
|
|
private Label label1;
|
|
private ComboBox cbCategoria;
|
|
private Label label8;
|
|
private ComboBox cbUnd;
|
|
private Label label7;
|
|
private TextBox txtQtde;
|
|
private Label label6;
|
|
private TextBox txtValorVenda;
|
|
private TextBox txtValorPago;
|
|
private Label label5;
|
|
private ComboBox cbSubCategoria;
|
|
private Label label9;
|
|
protected Button btn_delImage;
|
|
protected Button btn_addimage;
|
|
private Panel pnFoto;
|
|
private PictureBox pb_image;
|
|
private PictureBox pb_exit;
|
|
protected Button btn_addsubcat;
|
|
protected Button btn_addunidmed;
|
|
protected Button btn_addcat;
|
|
}
|
|
} |